Browse Source

using code from locales that help to run xgettext with different gettext versions.
updating strings.
--add-comments is added for debugging in order to clean the code.

tokul 20 years ago
parent
commit
4fef396514
2 changed files with 224 additions and 113 deletions
  1. 213 112
      po/squirrelmail.pot
  2. 11 1
      po/xgetpo

File diff suppressed because it is too large
+ 213 - 112
po/squirrelmail.pot


+ 11 - 1
po/xgetpo

@@ -7,7 +7,17 @@
 # ** 
 # **  $Id$
 #
-XGETTEXT_OPTIONS="--keyword=_ -keyword=N_ --keyword=ngettext:1,2 --default-domain=squirrelmail --no-location -C"
+XGETTEXT_OPTIONS="--keyword=_ -keyword=N_ --keyword=ngettext:1,2 --default-domain=squirrelmail --no-location --add-comments"
+
+# Allows controlling language option
+# (gettext v.0.10.40 = -C, gettext 0.11+ = -L php).
+if [ $SM_LANG_PHP ] ; then
+ XGETTEXT_OPTIONS="${XGETTEXT_OPTIONS} -L php";
+else
+ XGETTEXT_OPTIONS="${XGETTEXT_OPTIONS} -C";
+fi
+  
+
 cd ..
 xgettext ${XGETTEXT_OPTIONS} \
     src/*.php --output=po/squirrelmail.pot

Some files were not shown because too many files changed in this diff