BoxBuddyRS/po
2024-01-11 18:30:46 +00:00
..
it_IT/LC_MESSAGES move italian translation to folder 2024-01-09 13:41:45 +00:00
ru_RU/LC_MESSAGES move po files and generate mo files, add link to poedit 2024-01-07 14:37:53 +00:00
uk_UA/LC_MESSAGES move po files and generate mo files, add link to poedit 2024-01-07 14:37:53 +00:00
boxbuddy.pot add comments to pot file and add translation readme 2024-01-07 08:55:23 +00:00
README.md correct lang docs 2024-01-11 18:30:46 +00:00

Translations

To add a new translation

  • Make a folder here named after the locale, e.g. mkdir fr_FR
  • Make a folder inside there called LC_MESSAGES, e.g. mkdir fr_FR/LC_MESSAGES
  • Copy boxbuddy.pot to your-locale.po inside that folder, e.g. cp boxbuddy.pot fr_FR/LC_MESSAGES/fr_FR.po
  • Fill in the translations in your new .po file. This can be done using https://poedit.net
  • (Optional) compile your .po to an .mo, e.g. msgfmt fr_FR/LC_MESSAGES/fr_FR.po fr_FR/LC_MESSAGES/boxbuddyrs.mo
    • I don't mind doing this step, so please feel free to commit a PR with just the new .po file
  • Make a Pull Request as normal.

Testing a translation

  • Open up src/utils.rs and find the comment which starts with --TRANSLATORS:
  • Comment out the if/else statement below by adding // to the start of the lines
  • Run cargo run as normal