ff506956e9
Add zh_TW translation |
||
---|---|---|
.. | ||
cs/LC_MESSAGES | ||
de_DE/LC_MESSAGES | ||
el/LC_MESSAGES | ||
es/LC_MESSAGES | ||
fr_FR/LC_MESSAGES | ||
hi/LC_MESSAGES | ||
it_IT/LC_MESSAGES | ||
nl_NL/LC_MESSAGES | ||
pt_BR/LC_MESSAGES | ||
ru_RU/LC_MESSAGES | ||
uk_UA/LC_MESSAGES | ||
zh_CN/LC_MESSAGES | ||
zh_TW/LC_MESSAGES | ||
boxbuddy.pot | ||
README.md |
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 runningmake translate
.- I don't mind doing this step, so please feel free to commit a PR with just the new
.po
file
- I don't mind doing this step, so please feel free to commit a PR with just the new
- 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