Adding more strings to the template.
[squirrelmail.git] / po / xgetpo
index 1ef5db6..6fa2407 100755 (executable)
--- a/po/xgetpo
+++ b/po/xgetpo
@@ -1,12 +1,10 @@
 #!/bin/sh
 
-# **
-# ** This script regenerates main POT file
-# **
-# ** Philipe Mingo <mingo@rotedic.com>
-# ** 
-# **  $Id$
+# This script regenerates main POT file
 #
+# Philipe Mingo <mingo@rotedic.com>
+#
+# $Id$
 
 # force use of same locale in order to keep same sorting order
 LC_ALL=en_US.ISO8859-1
@@ -23,32 +21,27 @@ if [ $SM_LANG_PHP ] ; then
 else
  XGETTEXT_OPTIONS="${XGETTEXT_OPTIONS} -C";
 fi
-  
 
 cd ..
 xgettext ${XGETTEXT_OPTIONS} \
     src/*.php --output=po/squirrelmail.pot
 xgettext ${XGETTEXT_OPTIONS} -j \
-    functions/*.php --output=po/squirrelmail.pot
-xgettext ${XGETTEXT_OPTIONS} -j \
     class/*.php --output=po/squirrelmail.pot
 xgettext ${XGETTEXT_OPTIONS} -j \
-    class/mime/*.php --output=po/squirrelmail.pot
+    class/*/*.php --output=po/squirrelmail.pot
 xgettext ${XGETTEXT_OPTIONS} -j \
-    class/deliver/*.php --output=po/squirrelmail.pot
+    functions/*.php --output=po/squirrelmail.pot
 xgettext ${XGETTEXT_OPTIONS} -j \
-    class/helper/*.php --output=po/squirrelmail.pot    
+    functions/template/*.php --output=po/squirrelmail.pot
 xgettext ${XGETTEXT_OPTIONS} -j \
-    class/l10n/*.php --output=po/squirrelmail.pot    
+    images/themes/*/*.php --output=po/squirrelmail.pot
 xgettext ${XGETTEXT_OPTIONS} -j \
     include/*.php --output=po/squirrelmail.pot
 xgettext ${XGETTEXT_OPTIONS} -j \
     include/options/*.php --output=po/squirrelmail.pot
-xgettext ${XGETTEXT_OPTIONS} -j \
-    images/themes/*/*.php --output=po/squirrelmail.pot
-    
-# ** Plugins
-    
+
+# Plugins
+
 xgettext ${XGETTEXT_OPTIONS} -j \
     plugins/administrator/*.php --output=po/squirrelmail.pot
 xgettext ${XGETTEXT_OPTIONS} -j \
@@ -70,35 +63,47 @@ xgettext ${XGETTEXT_OPTIONS} -j \
 xgettext ${XGETTEXT_OPTIONS} -j \
     plugins/listcommands/*.php --output=po/squirrelmail.pot
 xgettext ${XGETTEXT_OPTIONS} -j \
+    plugins/listcommands/templates/default/*.tpl --output=po/squirrelmail.pot
+xgettext ${XGETTEXT_OPTIONS} -j \
     plugins/mail_fetch/*.php --output=po/squirrelmail.pot
 xgettext ${XGETTEXT_OPTIONS} -j \
     plugins/message_details/*.php --output=po/squirrelmail.pot
 xgettext ${XGETTEXT_OPTIONS} -j \
     plugins/newmail/*.php --output=po/squirrelmail.pot
 xgettext ${XGETTEXT_OPTIONS} -j \
+    plugins/preview_pane/*.php --output=po/squirrelmail.pot
+xgettext ${XGETTEXT_OPTIONS} -j \
     plugins/sent_subfolders/*.php --output=po/squirrelmail.pot
 xgettext ${XGETTEXT_OPTIONS} -j \
     plugins/spamcop/*.php --output=po/squirrelmail.pot
 xgettext ${XGETTEXT_OPTIONS} -j \
     plugins/squirrelspell/*.php --output=po/squirrelmail.pot
 xgettext ${XGETTEXT_OPTIONS} -j \
-    plugins/squirrelspell/modules/*.mod \
-    --output=po/squirrelmail.pot
+    plugins/squirrelspell/class/*.php --output=po/squirrelmail.pot
+xgettext ${XGETTEXT_OPTIONS} -j \
+    plugins/squirrelspell/modules/*.mod --output=po/squirrelmail.pot
 xgettext ${XGETTEXT_OPTIONS} -j \
     plugins/translate/*.php --output=po/squirrelmail.pot
 
-# ** Templates
+# 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/plugins/fortune/*.tpl --output=po/squirrelmail.pot
+xgettext ${XGETTEXT_OPTIONS} -j \
+    templates/default/plugins/listcommands/*.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
 
+# print stats
+msgfmt --statistics ${SM_LOCALES_PATH}/po/squirrelmail.pot -o /dev/null
+
 cd po