Procházet zdrojové kódy

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.
philippe_mingo před 24 roky
rodič
revize
5938f2ba4e
2 změnil soubory, kde provedl 32 přidání a 0 odebrání
  1. 14 0
      locale/compilepo
  2. 18 0
      locale/mergepo

+ 14 - 0
locale/compilepo

@@ -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
+

+ 18 - 0
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 <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"