Debian Codegraph @

po/localization_note.txt

raw
1 ### Adding new local ###
2
3 # Step 1 : updating pot file if code changed
4 cd lios-3/
5 find lios/ -iname "*.py" | xargs xgettext -o po/lios.pot
6
7 # Step 2 : creating new local file
8 cp po/lios.pot po/<your_languge_code>.po
9
10 # Step 3 : Translate using poedi or favorite text editer
11 pluma po/<your_languge_code>.po
12
13 # Step 4 : compile message catalog to binary format
14 mkdir share/locale/<your_languge_code>
15
16 # Step 5 : compile message catalog to binary format
17 msgfmt po/<your_languge_code>.po -o share/locale/<your_languge_code>/LC_MESSAGES/lios.mo
18
19 # Step 6 : listing language file in setup script
20 # Add following line in between similar lines in setup.py
21 ('share/locale/fr/LC_MESSAGES',['share/locale/<your_languge_code>/LC_MESSAGES/lios.mo']),
22
23 # To correct translations repeat step 3 and 4.