BoxBuddyRS/po
2024-04-26 22:49:47 -07:00
..
de_DE/LC_MESSAGES compile translations and run lint 2024-02-20 16:37:16 +00:00
el/LC_MESSAGES compile greek translation 2024-04-01 14:07:30 +01:00
es/LC_MESSAGES use es translations for all es 2024-03-13 08:04:10 +00:00
hi/LC_MESSAGES compile hindi translation, fix long error string on CpuMem display 2024-04-03 17:47:45 +01:00
it_IT/LC_MESSAGES remove unneeded po 2024-02-01 18:43:55 +00:00
pt_BR/LC_MESSAGES compile pt translations 2024-04-18 17:57:43 +01:00
ru_RU/LC_MESSAGES compile translations 2024-02-10 12:36:17 +00:00
uk_UA/LC_MESSAGES compile translations 2024-02-10 12:36:17 +00:00
zh_CN/LC_MESSAGES Add Chinese translation 2024-04-26 22:49:47 -07:00
boxbuddy.pot clone box button 2024-03-30 17:28:01 +00:00
README.md add make translate script to generate mo files 2024-01-27 16:51:38 +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 by running make translate.
    • 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