Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.32 KB

CONTRIBUTING.md

File metadata and controls

44 lines (29 loc) · 1.32 KB

Contributing to MyNotes

First, thank you for your interest in MyNotes. I would especially appreciate help to translate MyNotes into more languages.

Translation guidelines

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:

  1. Fork MyNotes and create a new branch (called translation_<lang> for instance)

  2. Create the <lang>.po translation file from MyNotes.pot (in the /po folder):

        $ msginit --input=po/MyNotes.pot --locale=<lang> --output=po/<lang>.po
  3. Translate the strings, for instance:

        msgid "Title"
        msgstr "<translation>"
    
  4. 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
  5. Add the language in the LANGUAGES dictionary in mynoteslib/constantes.py (line 193): for instance, for the German translation, add "de": "Deutsch".

  6. 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.

Other contributions

If you have an idea, feel free to open an issue to describe it.