From: Mauro Scomparin Date: Tue, 17 Jul 2018 20:42:44 +0000 (+0200) Subject: added instruction for translation on readme X-Git-Url: https://git.scompo.it/?a=commitdiff_plain;h=e1ad3612c4be2a828b0a47c4c9cc962585bdc3d8;p=money.git added instruction for translation on readme --- diff --git a/README.rst b/README.rst index 6248b9c..cfd8b4c 100644 --- a/README.rst +++ b/README.rst @@ -30,3 +30,22 @@ The default configuration it's equivalent to: "dataFile":"movimenti.dat", "latestMovementsNumber": 5 } + +Translation +*********** + +Example of the command used to create a new translation + +:: + + xgettext money/money.py --output=money/translations/money.pot + msinit --input=money/translations/money.pot --locale=it --output=money/translations/it/LC_MESSAGES/money.po + msgfmt --output=money/translations/it/LC_MESSAGES/money.mo money/translations/it/LC_MESSAGES/money.po + +Example of the commands used to update an existing translation + +:: + + xgettext money/money.py --output=money/translations/money.pot + msgmerge --update money/translations/it/LC_MESSAGES/money.po money/translations/money.pot + msgfmt --output=money/translations/it/LC_MESSAGES/money.mo money/translations/it/LC_MESSAGES/money.po