0
0
mirror of https://github.com/openwrt/luci.git synced 2025-01-18 10:12:08 +00:00
luci/build/mkbasepot.sh
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

17 lines
398 B
Bash
Executable File

#!/bin/sh
[ -d ./build ] || {
echo "Please execute as ./build/mkbasepot.sh" >&2
exit 1
}
echo -n "Updating modules/luci-base/po/templates/base.pot ... "
./build/i18n-scan.pl \
modules/luci-base modules/luci-compat modules/luci-lua-runtime \
modules/luci-mod-network modules/luci-mod-status modules/luci-mod-system \
protocols themes \
> modules/luci-base/po/templates/base.pot
echo "done"