mirror of
https://github.com/itdoginfo/podkop.git
synced 2026-08-05 05:15:15 +03:00
chore: set width variable to 120 for consistent msgmerge and xgettext formatting in localization scripts
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
SRC_DIR="htdocs/luci-static/resources/view/podkop"
|
||||
OUT_POT="po/templates/podkop.pot"
|
||||
ENCODING="UTF-8"
|
||||
WIDTH=120
|
||||
|
||||
mapfile -t FILES < <(find "$SRC_DIR" -type f -name "*.js")
|
||||
if [ ${#FILES[@]} -eq 0 ]; then
|
||||
@@ -17,7 +18,7 @@ xgettext --language=JavaScript \
|
||||
--keyword=_ \
|
||||
--from-code="$ENCODING" \
|
||||
--output="$OUT_POT" \
|
||||
--width=120 \
|
||||
--width="$WIDTH" \
|
||||
--package-name="PODKOP" \
|
||||
"${FILES[@]}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user