From 5cb1ee53dd26d79680f812ea9205c763da12a0fc Mon Sep 17 00:00:00 2001 From: philippe_mingo Date: Tue, 9 Oct 2001 09:57:31 +0000 Subject: [PATCH] NEW SCRIPTS: 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 | 14 ++++++++++++++ locale/mergepo | 18 ++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100755 locale/compilepo create mode 100755 locale/mergepo diff --git a/locale/compilepo b/locale/compilepo new file mode 100755 index 00000000..ae5d6974 --- /dev/null +++ b/locale/compilepo @@ -0,0 +1,14 @@ +#!/bin/sh + +# ** +# ** This script compiles locale PO files +# ** +# ** Usage: compilepo +# ** Example: compilepo es +# ** +# ** Philipe Mingo +# ** +# ** $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 index 00000000..20a8e0e0 --- /dev/null +++ b/locale/mergepo @@ -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 +# ** Example: mergepo es +# ** +# ** Philipe Mingo +# ** +# ** $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" -- 2.25.1