![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/domains/gositeme.com/public_html/whmcs/vendor/phpmyadmin/sql-parser/tools/ |
#!/bin/sh
# vim: expandtab sw=4 ts=4 sts=4:
export LC_ALL=C
# Exit on failure
set -e
# Update pot (template), ensure that advisor is at the end
LOCS=`ls locale/*/LC_MESSAGES/sqlparser.po | sed 's@.*locale/\(.*\)/LC_MESSAGES/sqlparser\.po@\1@'`
xgettext \
-d sqlparser \
--msgid-bugs-address=translators@phpmyadmin.net \
-o locale/sqlparser.pot \
--language=PHP \
--add-comments=l10n \
--add-location \
--debug \
--from-code=utf-8 \
--keyword=gettext --keyword=error \
--copyright-holder="phpMyAdmin devel team" \
`find -name '*.php' -not -path './tests/*' -not -path './locale/*' -not -path './build/*' -not -path './vendor/*' | sort --dictionary-order --ignore-case`
ver=5
sed -i '
s/SOME DESCRIPTIVE TITLE/phpMyAdmin SQL parser translation/;
s/PACKAGE/SQL parser/;
s/(C) YEAR/(C) 2015 - '`date +%Y`'/;
s/VERSION/'$ver'/;
' locale/sqlparser.pot
# Update po files (translations)
for loc in $LOCS ; do
sed -i '
s/SOME DESCRIPTIVE TITLE/phpMyAdmin SQL parser translation/;
s/PACKAGE/SQL parser/;
s/(C) YEAR/(C) 2015 - '`date +%Y`'/;
s/VERSION/'$ver'/;
s/Project-Id-Version: \(phpMyAdmin\|SQL parser\) .*/Project-Id-Version: SQL parser '$ver'\\n"/;
' locale/$loc/LC_MESSAGES/sqlparser.po
msgmerge --previous -U locale/$loc/LC_MESSAGES/sqlparser.po locale/sqlparser.pot
done
# Generate mo files as well
./tools/generate-mo
# Commit changes
git add locale
git commit -s -m 'Update translations
[CI skip]'