First, thank you for your interest in MyNotes. I would especially appreciate help to translate MyNotes into more languages.
I use gettext to manage the internationalization of my program. Below are the steps to create a translation and compile it and submit a pull request:
-
Fork MyNotes and create a new branch (called
translation_<lang>
for instance) -
Create the
<lang>.po
translation file fromMyNotes.pot
(in the/po
folder):$ msginit --input=po/MyNotes.pot --locale=<lang> --output=po/<lang>.po
-
Translate the strings, for instance:
msgid "Title" msgstr "<translation>"
-
Compile the translation file
<lang>.po
:$ mkdir -p mynoteslib/locale/<lang>/LC_MESSAGES $ msgfmt --output-file=mynoteslib/locale/<lang>/LC_MESSAGES/MyNotes.mo po/<lang>.po
-
Add the language in the
LANGUAGES
dictionary inmynoteslib/constantes.py
(line 193): for instance, for the German translation, add"de": "Deutsch"
. -
Submit a pull request
If you don't feel comfortable with the compilation of the translation, you can skip step 4 and directly submit the pull request, I will take care of it.
If you have an idea, feel free to open an issue to describe it.