mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 10:51:51 +00:00
build: update build/i18n-* tools
modify i18n-add-language.sh so it can: - be run from any path - bootstrap any (or all) po folder(s) with existing language(s) - (partially) update luci.mk with new languages deprecate build/i18n-init.sh Signed-off-by: Paul Donald <newtwen@gmail.com>
This commit is contained in:
14
docs/i18n.md
14
docs/i18n.md
@@ -59,6 +59,20 @@ 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.
|
||||
On Debian/Ubuntu you can install with `sudo apt install gettext`.
|
||||
|
||||
### Initialize po files
|
||||
|
||||
When you add or update an app, simply run from your app folder:
|
||||
|
||||
../../build/i18n-add-language.sh
|
||||
|
||||
This creates the skeleton po files for all existing languages open for translation for your app.
|
||||
|
||||
Or from the luci repo root:
|
||||
|
||||
./build/i18n-add-language.sh
|
||||
|
||||
This creates the skeleton po files for all existing languages open for translation for all sub-folders.
|
||||
|
||||
### Rebuild po files
|
||||
If you want to rebuild the translations after you made changes to a package this is an easy way:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user