diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-06-16 10:11:03 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-06-16 10:11:45 +0200 |
commit | 4b11843e4ce3e7636d67cf3e987ae94ca8c8977d (patch) | |
tree | 83f266a068949bba4f940965f2f69ca5c63c6622 /documentation/i18n.md | |
parent | 37a9d6aee7ad944ea89754c31351ebae961793db (diff) |
Add documentation converted from old Trac wiki pages
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'documentation/i18n.md')
-rw-r--r-- | documentation/i18n.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/documentation/i18n.md b/documentation/i18n.md new file mode 100644 index 000000000..fdacb0853 --- /dev/null +++ b/documentation/i18n.md @@ -0,0 +1,17 @@ +# General +Translations are saved in the folder po/. You find the reference in po/templates/<package>.pot. The actual translation files can be found at po/<lang>/<package>.po . + +In order to use the commands below you need to have the _gettext'' utilities (''msgcat'', ''msgfmt'', ''msgmerge_) installed on your system. + +# Rebuild po files +If you want to rebuild the translations after you made changes to a package this is an easy way: + + + ./build/i18n-scan.pl applications/[package] > po/templates/[application].pot + ./build/i18n-update.pl po [application].po + +*Note:* Some packages share translation files, in this case you need to scan through all their folders. The first command from above should then be: + + + ./build/i18n-scan.pl applications/[package-1] applications/[package-2] applications/[package-n] > po/templates/[application].pot + |