mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 19:14:34 +04:00
build: i18n-sync.sh: allow restricting to directory
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
@@ -5,9 +5,9 @@
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
./build/mkbasepot.sh
|
[ -n "$1" ] || ./build/mkbasepot.sh
|
||||||
|
|
||||||
find . -name '*.pot' -and -not -name base.pot | \
|
find "${1:-.}" -name '*.pot' -and -not -name base.pot | \
|
||||||
while read path; do
|
while read path; do
|
||||||
dir="${path%/po/templates/*}"
|
dir="${path%/po/templates/*}"
|
||||||
echo -n "Updating ${path#./} ... "
|
echo -n "Updating ${path#./} ... "
|
||||||
@@ -15,4 +15,4 @@ find . -name '*.pot' -and -not -name base.pot | \
|
|||||||
echo "done"
|
echo "done"
|
||||||
done
|
done
|
||||||
|
|
||||||
./build/i18n-update.pl
|
./build/i18n-update.pl "${1:-./*/*/po}"
|
||||||
|
|||||||
Reference in New Issue
Block a user