summaryrefslogtreecommitdiffhomepage
path: root/documentation/i18n.md
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2016-10-30 12:22:58 +0200
committerHannu Nyman <hannu.nyman@iki.fi>2016-10-30 12:37:04 +0200
commit87ae1242b89245e47d2a63c7cbd411428c9b1e72 (patch)
tree4ab5e0d8122dd2aee1cf53631fea0c18bf428e18 /documentation/i18n.md
parent5f4b0fe274d1fffa3ae00c6b06b047d0122bc668 (diff)
documentation: Update i18n advice
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'documentation/i18n.md')
-rw-r--r--documentation/i18n.md16
1 files changed, 9 insertions, 7 deletions
diff --git a/documentation/i18n.md b/documentation/i18n.md
index fdacb0853a..226a406c2a 100644
--- a/documentation/i18n.md
+++ b/documentation/i18n.md
@@ -1,17 +1,19 @@
# 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 .
+Translations are saved in the folder po/ for each module and application. 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/[application] > applications/[application]/po/templates/[application_basename].pot
+ ./build/i18n-update.pl applications/[application]/po
+ Example:
+ ./build/i18n-scan.pl applications/luci-app-firewall > applications/luci-app-firewall/po/templates/firewall.pot
+ ./build/i18n-update.pl applications/luci-app-firewall/po
+ (note that the directory argument can be omitted for i18n-update.pl to update all apps)
- ./build/i18n-scan.pl applications/[package-1] applications/[package-2] applications/[package-n] > po/templates/[application].pot
+*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] > [location of shared template]/[application].pot