Yakonche / rollercoin-profit-calculator

Calculator that allows you to determine which cryptocurrency is the most profitable to "mine" on the rollercoin.com website
https://rollercoin.com/?r=k2tlquen
MIT License
3 stars 0 forks source link

Improvements to support internationalisation #3

Closed th3-z closed 3 years ago

th3-z commented 3 years ago

Completes issue #1 with the following new features.

I've added the currency symbol ($) and code (usd) to the translation templates, only one's supported by the API will work. I have also refactored the main script a bit because it was getting long.

The relevant commands for managing the templates are:

python3 setup.py extract_messages - Pulls all the target strings out of the codebase to produce pot file

python3 setup.py update_catalogs - Updates the generated po files, use when strings change

python3 setup.py compile_catalogs - Compiles just the translation files, yields mo files

Additionally python3 setup.py build will now compile translations and copy them into the build.

Yakonche commented 3 years ago

Nice work, thanks for your help !