From e1ad3612c4be2a828b0a47c4c9cc962585bdc3d8 Mon Sep 17 00:00:00 2001 From: Mauro Scomparin Date: Tue, 17 Jul 2018 22:42:44 +0200 Subject: [PATCH] added instruction for translation on readme --- README.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 -- 2.25.1