File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,13 @@ echo "" > hestiacp.pot
1414find ../.. \( -name ' *.php' -o -name ' *.html' -o -name ' *.sh' \) | xgettext --output=hestiacp.pot --language=PHP --join-existing -f -
1515OLDIFS=$IFS
1616IFS=$' \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
1724for 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
You can’t perform that action at this time.
0 commit comments