summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-02 16:20:06 +0400
committerAndrew Dolgov <[email protected]>2013-04-02 16:20:43 +0400
commitdfad9d7a36f1efeafd4e3b5bf1f38dac7aad8de4 (patch)
tree044175f55ccbe064bdaa7911159db9dcee48703b /utils
parent9eeb6d5e233006a35545917c9c9da95cbc53508a (diff)
pref-prefs: don't use schema-defined help/desc/section names
Diffstat (limited to 'utils')
-rwxr-xr-xutils/update-schema-translations.sh23
-rwxr-xr-xutils/update-translations.sh2
2 files changed, 0 insertions, 25 deletions
diff --git a/utils/update-schema-translations.sh b/utils/update-schema-translations.sh
deleted file mode 100755
index d76fb03a4..000000000
--- a/utils/update-schema-translations.sh
+++ /dev/null
@@ -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
diff --git a/utils/update-translations.sh b/utils/update-translations.sh
index c2e8ff54f..4b8dab6b9 100755
--- a/utils/update-translations.sh
+++ b/utils/update-translations.sh
@@ -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'`