X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=po%2Fxgetpo;h=b71cf299afb405ae3f7dce26a992fe5548c91d94;hp=295ee192f6636a67dfc13279e22b1d5d137e0beb;hb=daf777102978219856d97b6b4e93f8b5815db234;hpb=859f2151e76a54023d7265e9e312f1ff026ed3a8 diff --git a/po/xgetpo b/po/xgetpo index 295ee192..b71cf299 100755 --- a/po/xgetpo +++ b/po/xgetpo @@ -7,6 +7,13 @@ # ** # ** $Id$ # + +# force use of same locale in order to keep same sorting order +LC_ALL=en_US.ISO8859-1 +LANG=en_US.ISO8859-1 +export LC_ALL LANG + +# set common gettext options XGETTEXT_OPTIONS="--keyword=_ -keyword=N_ --keyword=ngettext:1,2 --default-domain=squirrelmail --no-location --add-comments" # Allows controlling language option @@ -80,6 +87,17 @@ xgettext ${XGETTEXT_OPTIONS} -j \ xgettext ${XGETTEXT_OPTIONS} -j \ plugins/translate/*.php --output=po/squirrelmail.pot +# ** Templates + +xgettext ${XGETTEXT_OPTIONS} -j \ + templates/*.php --output=po/squirrelmail.pot +xgettext ${XGETTEXT_OPTIONS} -j \ + templates/default/*.tpl --output=po/squirrelmail.pot +xgettext ${XGETTEXT_OPTIONS} -j \ + templates/default_advanced/*.tpl --output=po/squirrelmail.pot + +# Independent strings + xgettext ${XGETTEXT_OPTIONS} -j \ po/independent_strings.txt --output=po/squirrelmail.pot