Changes between Version 2 and Version 3 of TranslationIntro
- Timestamp:
- 12/02/08 16:44:39 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TranslationIntro
v2 v3 11 11 12 12 1. Check out the current sources of Padre from the subversion repository. 13 1. "{{{cd}}}" to the directory "{{{share/locale/}}}" in the Padre directory. 14 1. Delete the file "{{{messages.pot}}}". 15 1. Exceute 13 1. Update the pot file with the "{{{pot}}}" action of "{{{Module::Build}}}". 16 14 {{{ 17 find ../../lib -name '*.pm' > files.txt 18 }}} 19 to gather the list of Perl modules from which the strings will be extracted. 20 1. Execute 21 {{{ 22 xgettext -o messages.pot -f files.txt 23 }}} 24 to extract the strings to translate from the given list of files and have them written to the message template file. 15 ./Build pot 16 }}} 17 This will extract all strings to be translated from the Perl modules and have them written to the message template file. 25 18 1. 26 19 a. In case of updating a already existing language execute … … 39 32 = Adding a translation = 40 33 41 1. Create the .po file and add it to SVN42 2. Add it to MANIFEST43 3. Change lib/Padre/Wx/Mainwindow.pm(the %languages and %shortname_of )44 4. Add yourself to lib/Padre.pm and lib/Padre/Wx/Menu/Help.pmfor the credit45 5. Changes34 1. Create the {{{.po}}} file and add it to SVN (note: only the {{{.po}}} file, not the {{{.mo}}} one). 35 2. Add it to {{{MANIFEST}}} 36 3. Change {{{lib/Padre/Wx/Mainwindow.pm}}} (the %languages and %shortname_of ) 37 4. Add yourself to {{{lib/Padre.pm}}} and {{{lib/Padre/Wx/Menu/Help.pm}}} for the credit 38 5. Update the {{{Changes}}} file to brag about this new translation! :-) 46 39
