Improvement in localization script - creating single pot file
authorEugene Gagarin <mosfet07@ya.ru>
Wed, 20 May 2009 12:35:10 +0000 (16:35 +0400)
committerEugene Gagarin <mosfet07@ya.ru>
Wed, 20 May 2009 12:35:10 +0000 (16:35 +0400)
tools/POTFILES [new file with mode: 0755]
tools/create_pos.sh [deleted file]
tools/create_pot.sh [new file with mode: 0755]

diff --git a/tools/POTFILES b/tools/POTFILES
new file mode 100755 (executable)
index 0000000..a1c2d78
--- /dev/null
@@ -0,0 +1,10 @@
+../src/debs/outdiagram.py
+../src/debs/outtable.py
+../src/debs/search.py
+../src/files/out_diabar.py
+../src/files/out_diaold.py
+../src/files/out_diapie.py
+../src/files/out_table.py
+../src/files/search.py
+../src/main.py
+../src/objects.py
diff --git a/tools/create_pos.sh b/tools/create_pos.sh
deleted file mode 100755 (executable)
index cda522b..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-
-echo Please comment out '"def _(text)"' in src/misc.py before use !!!
-echo
-echo Start translating?
-
-read yesno
-
-if [ "$yesno" = "y" ]
-then
-
-    mkdir -p ./pos
-    
-    
-    for file in `find ../src/ -name '*.py'`
-    do
-        if [ -s $file ] # cut off empty files
-        then
-            echo Working on $file ...
-            pygettext.py -o ./pos/`basename $file`.po $file
-        fi
-    done
-
-fi
diff --git a/tools/create_pot.sh b/tools/create_pot.sh
new file mode 100755 (executable)
index 0000000..069d9dd
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# Script for create localization template from files in POTFILES list
+
+xgettext -o findit.pot `sed 's/\\\\$//' POTFILES`