Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bash scripts to convert .md to and from .po for de (and more languages if configured) #23

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

SantosSi
Copy link

Gettext .po translation files make the initial translation and also subsequent text changes a lot easier by its broad compatibility with desktop and online translation tools.
Script markdown2PO.sh to convert from .md to .pot and to language specific po-files.
Script PO2markdown.sh to convert from (potentially translated) language specific .po files and the original .md files into translated .md files (if done).

Script markdown2PO.sh to convert from .md to .pot and to language specific po-files.
Script PO2markdown.sh to convert from (potentially translated) language specific .po files and the original .md files into translated .md files (if done).
@Ainali
Copy link
Contributor

Ainali commented Jun 17, 2022

Thanks @SantosSi !
Could you add some documentation on how to use the scripts as well?

Both scripts echo how to use when run.
The pot folder was created too late, moved up.
@SantosSi
Copy link
Author

SantosSi commented Jun 18, 2022

Pushed another commit to resolve the above-mentioned documentation issue (and for the initial folder creation).

@SantosSi
Copy link
Author

BTW: I intentionally limited my PR to only the scripts in order to see if the general solution is acceptable and before submitting what I already translated to 'de' using this method.

Refactored spaghetti code into functions with function comments.
User Interface: more messages sent to the standard output to show progress, including a completion message.
Added configured language pt (portuguese) to start translating.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants