Skip to content

Commit 19d5ef4

Browse files
authored
Add missing translation strings (hestiacp#2778)
1 parent fb1d282 commit 19d5ef4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

web/locale/hst_scan_i18n.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ echo "" > hestiacp.pot
1414
find ../.. \( -name '*.php' -o -name '*.html' -o -name '*.sh' \) | xgettext --output=hestiacp.pot --language=PHP --join-existing -f -
1515
OLDIFS=$IFS
1616
IFS=$'\n'
17+
# Scan the description string for list updates page
18+
for string in $(awk -F'DESCR=' '/data=".+ DESCR=[^"]/ {print $2}' $HESTIA/bin/v-list-sys-hestia-updates | cut -d\' -f2); do
19+
if [ -z "$(grep "\"$string\"" hestiacp.pot)" ]; then
20+
echo -e "\n#: ../../bin/v-list-sys-hestia-updates:"$(grep -n "$string" $HESTIA/bin/v-list-sys-hestia-updates | cut -d: -f1)"\nmsgid \"$string\"\nmsgstr \"\"" >> hestiacp.pot
21+
fi
22+
done
23+
# Scan the description string for list server page
1724
for string in $(awk -F'SYSTEM=' '/data=".+ SYSTEM=[^"]/ {print $2}' $HESTIA/bin/v-list-sys-services | cut -d\' -f2); do
1825
if [ -z "$(grep "\"$string\"" hestiacp.pot)" ]; then
1926
echo -e "\n#: ../../bin/v-list-sys-services:"$(grep -n "$string" $HESTIA/bin/v-list-sys-services | cut -d: -f1)"\nmsgid \"$string\"\nmsgstr \"\"" >> hestiacp.pot

0 commit comments

Comments
 (0)