8 Commits

Author SHA1 Message Date
Hannu Nyman
ab7018cd6e build: Fix variable usage in i18n-update.pl
Use 'file' instead of 'cmd' to show the failed file name more clearly.

Fixes: 6e9a7e1 "build: set i18n-update.pl to break at .po error"

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2025-10-26 15:31:59 +02:00
Hannu Nyman
6e9a7e12ca build: set i18n-update.pl to break at .po error
Add logic into i18n-update.pl to break on noticing a fatal error
in the .po file. That is needed especially for syncing with
i18n-sync script, where possibly all modules and applications are synced
and errors easily disappear from screen.

Example:

Updating ./applications/luci-app-keepalived/po/de/keepalived.po./applications/luci-app-keepalived/po/de/keepalived.po:928:40: invalid control sequence
./applications/luci-app-keepalived/po/de/keepalived.po:928:51: invalid control sequence
msgmerge: found 2 fatal errors
./build/i18n-update.pl: [] failed: 256

and

Updating modules/luci-base/po/zh_Hant/base.po    modules/luci-base/po/zh_Hant/base.po:1169: duplicate message definition...
modules/luci-base/po/zh_Hant/base.po:1129: ...this is the location of the first definition
modules/luci-base/po/zh_Hant/base.po:1173: duplicate message definition...
modules/luci-base/po/zh_Hant/base.po:1133: ...this is the location of the first definition
msgmerge: found 2 fatal errors
./build/i18n-update.pl: [] failed: 256

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2025-10-26 09:36:05 +02:00
Paul Donald
b98d8c526e 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>
2024-01-03 13:14:06 +00:00
Jo-Philipp Wich
fe9ef86750 build: adapt i18n-update.pl to new structure
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 16:46:58 +01:00
Jo-Philipp Wich
91ac51d693 build: preserve original .po header when updating from templates to reduce diff noise
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-06-13 09:40:43 +00:00
Jo-Philipp Wich
0b0df324bf build: fixup header order in i18n-update.pl to minimize diffs to pootle 2012-07-01 22:46:49 +00:00
Jo-Philipp Wich
bcbaad34e1 build/i18n-update.pl: disable fuzzy maching for po updates, does not work well with our key format 2009-05-19 17:32:27 +00:00
Jo-Philipp Wich
1f3666f722 build: add i18n-update.pl to refresh *.po files from *.pot templates 2009-05-19 17:21:07 +00:00