mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 03:35:55 +00:00
pref-prefs: don't use schema-defined help/desc/section names
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
LC_ALL=C
|
||||
LANG=C
|
||||
LANGUAGE=C
|
||||
|
||||
BASENAME=`basename $0`
|
||||
TMPFILE="/tmp/$BASENAME-$$.tmp"
|
||||
OUTFILE="include/localized_schema.php"
|
||||
|
||||
cat schema/ttrss_schema_pgsql.sql | grep 'insert.*pref_name' | awk -F\' '{ print $8 }' > $TMPFILE
|
||||
cat schema/ttrss_schema_pgsql.sql | grep 'insert.*pref_name' | awk -F\' '{ print $6 }' >> $TMPFILE
|
||||
|
||||
echo "<?php # This file has been generated at: " `date` > $OUTFILE
|
||||
echo >> $OUTFILE
|
||||
cat utils/localized_schema.txt >> $OUTFILE
|
||||
echo >> $OUTFILE
|
||||
|
||||
cat $TMPFILE | grep -v '^$' | sed "s/.*/__('&');/" >> $OUTFILE
|
||||
|
||||
echo "?>" >> $OUTFILE
|
||||
|
||||
rm $TMPFILE
|
||||
@@ -1,8 +1,6 @@
|
||||
#!/bin/sh
|
||||
TEMPLATE=messages.pot
|
||||
|
||||
./utils/update-schema-translations.sh
|
||||
|
||||
xgettext -kT_js_decl -kT_sprintf -kT_ngettext:1,2 -k__ -L PHP -o $TEMPLATE *.php include/*.php `find classes -iname '*.php'` `find plugins -iname '*.php'`
|
||||
|
||||
xgettext --from-code utf-8 -k__ -knotify_info -knotify_progress -kngettext -L Java -j -o $TEMPLATE js/*.js `find plugins -iname '*.js'`
|
||||
|
||||
Reference in New Issue
Block a user