NEW SCRIPTS:
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 9 Oct 2001 09:57:31 +0000 (09:57 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 9 Oct 2001 09:57:31 +0000 (09:57 +0000)
These scripts are intended to facilitate translations tasks.

* mergepo. A standard script that merges new strings into
           a locale version.
* compilepo. A standard script to compile po files to mo.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1554 7612ce4b-ef26-0410-bec9-ea0150e637f0

locale/compilepo [new file with mode: 0755]
locale/mergepo [new file with mode: 0755]

diff --git a/locale/compilepo b/locale/compilepo
new file mode 100755 (executable)
index 0000000..ae5d697
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# **
+# ** This script compiles locale PO files
+# **
+# ** Usage:   compilepo <locale id>
+# ** Example: compilepo es
+# **
+# ** Philipe Mingo <mingo@rotedic.com>
+# **
+# **  $Id$
+
+msgfmt -o $1/LC_MESSAGES/squirrelmail.mo $1/LC_MESSAGES/squirrelmail.po
+
diff --git a/locale/mergepo b/locale/mergepo
new file mode 100755 (executable)
index 0000000..20a8e0e
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# **
+# ** This script merges global PO to locale PO files.
+# ** It creates a squirrelmail.po.new that have to
+# ** be renamed to squirrelmail.po once before to
+# ** compile the file.
+# **
+# ** Usage:   mergepo <locale id>
+# ** Example: mergepo es
+# **
+# ** Philipe Mingo <mingo@rotedic.com>
+# **
+# **  $Id$
+
+msgmerge $1/LC_MESSAGES/squirrelmail.po ../po/squirrelmail.po > $1/LC_MESSAGES/squirrelmail.po.new
+echo "Once you've got the strings tranlated rename "
+echo "manualy po file to squirrelmail.po"