Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add developer note to readme for how to handle internationalization f…
…iles
- Loading branch information
1 parent
a528fe2
commit 98a792a
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,4 @@ Contents | |
web | ||
readme/features | ||
readme/configuration | ||
readme/internationalization |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Internationalization | ||
==================== | ||
|
||
Keg can optionally be installed with the ``morphi`` library to use ``babel`` for internationalization:: | ||
|
||
pip install keg[i18n] | ||
|
||
The ``setup.cfg`` file is configured to handle the standard message extraction commands. For ease of development | ||
and ensuring that all marked strings have translations, a tox environment is defined for testing i18n. This will | ||
run commands to update and compile the catalogs, and specify any strings which need to be added. | ||
|
||
The desired workflow here is to run tox, update strings in the PO files as necessary, run tox again | ||
(until it passes), and then commit the changes to the catalog files. | ||
|
||
.. code:: | ||
tox -e i18n | ||