[vhffs-dev] [1861] No more need to extract i18n from tmpl files.

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1861
Author:   beuss
Date:     2011-06-03 12:43:27 +0200 (Fri, 03 Jun 2011)
Log Message:
-----------
No more need to extract i18n from tmpl files.

Modified Paths:
--------------
    trunk/vhffs-intl/update-POTFILES.in.sh

Modified: trunk/vhffs-intl/update-POTFILES.in.sh
===================================================================
--- trunk/vhffs-intl/update-POTFILES.in.sh	2011-06-03 10:43:16 UTC (rev 1860)
+++ trunk/vhffs-intl/update-POTFILES.in.sh	2011-06-03 10:43:27 UTC (rev 1861)
@@ -1,8 +1,6 @@
 #!/bin/bash
 VHFFS_DIRS='../vhffs-contrib ../vhffs-panel ../vhffs-forum ../vhffs-listengine ../vhffs-tools ../vhffs-mw ../vhffs-api ../vhffs-shells ../vhffs-public ../vhffs-jabber ../vhffs-irc ../vhffs-stsmon'
-touch template_strings.pl.tmp
-find $VHFFS_DIRS -name '*.tmpl' | xargs perl -ne 'if(/<TMPL_I18N\s+KEY="([^"]+)/i) { print "gettext(\"$1\");\n"; }' > template_strings.pl.tmp
-find $VHFFS_DIRS -name '*.tt' | xargs perl -ne 'print "gettext(\"$1\");\n" if(/\[%\s+'\''([^|]+?)'\''\s*\|\s*i18n\b/);' >> template_strings.pl.tmp
+find $VHFFS_DIRS -name '*.tt' | xargs perl -ne 'print "gettext(\"$1\");\n" if(/\[%\s+'\''([^|]+?)'\''\s*\|\s*i18n\b/);' > template_strings.pl.tmp
 sort template_strings.pl.tmp > template_strings.pl
 rm template_strings.pl.tmp
 find $VHFFS_DIRS -name '*.p[ml]' | sed s!^../!! | sort > 'POTFILES.in'


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/