added instruction for translation on readme
authorMauro Scomparin <scompo@gmail.com>
Tue, 17 Jul 2018 20:42:44 +0000 (22:42 +0200)
committerMauro Scomparin <scompo@gmail.com>
Tue, 17 Jul 2018 20:42:44 +0000 (22:42 +0200)
README.rst

index 6248b9ccc9821a10c21b9ed4d1da4aec97280719..cfd8b4ca3d434d777700f2548d263791348e4e70 100644 (file)
@@ -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