浏览代码

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 年之前
父节点
当前提交
4fef396514
共有 2 个文件被更改,包括 224 次插入113 次删除
  1. 213 112
      po/squirrelmail.pot
  2. 11 1
      po/xgetpo

文件差异内容过多而无法显示
+ 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

部分文件因为文件数量过多而无法显示