[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kexi] /: Fix i18n scripts so tools such as 'releaseme' work fine
From:       Jaroslaw Staniek <staniek () kde ! org>
Date:       2016-09-13 17:32:13
Message-ID: E1bjrZ7-0005s9-Eh () code ! kde ! org
[Download RAW message or body]

Git commit 0ea68114c0677da1b98a4ff1e96093277f947f51 by Jaroslaw Staniek.
Committed on 13/09/2016 at 17:25.
Pushed by staniek into branch 'master'.

Fix i18n scripts so tools such as 'releaseme' work fine

M  +1    -1    kexi_xgettext.sh
M  +2    -2    src/Messages.sh
M  +1    -1    src/migration/mdb/.i18n
M  +2    -2    src/migration/mdb/Messages.sh
M  +1    -1    src/migration/mysql/.i18n
M  +2    -2    src/migration/mysql/Messages.sh
M  +1    -1    src/migration/odb/.i18n
M  +2    -2    src/migration/odb/Messages.sh
M  +1    -1    src/migration/postgresql/.i18n
M  +2    -2    src/migration/postgresql/Messages.sh
M  +2    -2    src/migration/spreadsheet/Messages.sh
M  +1    -1    src/migration/sybase/.i18n
M  +2    -2    src/migration/sybase/Messages.sh
M  +1    -1    src/migration/tsv/.i18n
M  +2    -2    src/migration/tsv/Messages.sh
M  +1    -1    src/migration/xbase/.i18n
M  +2    -2    src/migration/xbase/Messages.sh
M  +1    -1    src/plugins/forms/widgets/mapbrowser/.i18n
M  +2    -2    src/plugins/forms/widgets/mapbrowser/Messages.sh
M  +1    -1    src/plugins/forms/widgets/webbrowser/.i18n
M  +2    -2    src/plugins/forms/widgets/webbrowser/Messages.sh

http://commits.kde.org/kexi/0ea68114c0677da1b98a4ff1e96093277f947f51

diff --git a/kexi_xgettext.sh b/kexi_xgettext.sh
index 94c7d99..8e668ac 100644
--- a/kexi_xgettext.sh
+++ b/kexi_xgettext.sh
@@ -68,7 +68,7 @@ function kexi_xgettext_internal() {
 
 # Sets EXCLUDE variable to excludes compatible with the find(1) command, e.g. '-path \
a -o -path b'.  # To unconditionally exclude dir (with subdirs) just put an empty \
                file .i18n in it.
-# To exclude dir for all translations but one, e.g. foo.pot, put a single "foo" line \
into the .i18n file. +# To disable excluding for given file, e.g. foo.pot, add \
"foo.pot" line to the .i18n file.  function find_exclude() {
     EXCLUDE=""
     for f in `find . -name .i18n | sed 's/\/\.i18n$//g' | sort`; do
diff --git a/src/Messages.sh b/src/Messages.sh
index e648ec2..8ffde14 100755
--- a/src/Messages.sh
+++ b/src/Messages.sh
@@ -1,7 +1,7 @@
 #! /bin/sh
 source ../kexi_xgettext.sh
 
-potfile=kexi
+potfile=kexi.pot
 find_exclude $potfile
 
 LIST="`find . \( $EXCLUDE \) -prune -o \( -name \*.ui \) -type f -print | grep -v -e \
'/\.'`" @@ -14,5 +14,5 @@ LIST=`find . \( $EXCLUDE \) -prune -o \( -name \*.h -o \
-name \*.cpp -o -name \*.  if ! grep -q '^#warning noi18n ' $f ; then echo $f; fi \
 done \
 `
-kexi_xgettext $potfile.pot $LIST
+kexi_xgettext $potfile $LIST
 rm -f rc.cpp
diff --git a/src/migration/mdb/.i18n b/src/migration/mdb/.i18n
index 891842f..68abf58 100644
--- a/src/migration/mdb/.i18n
+++ b/src/migration/mdb/.i18n
@@ -1 +1 @@
-keximigrate_mdb
+keximigrate_mdb.pot
diff --git a/src/migration/mdb/Messages.sh b/src/migration/mdb/Messages.sh
index 3ef81f4..9fdd5ce 100755
--- a/src/migration/mdb/Messages.sh
+++ b/src/migration/mdb/Messages.sh
@@ -1,7 +1,7 @@
 #! /bin/sh
 source ../../../kexi_xgettext.sh
 
-potfile=keximigrate_mdb
+potfile=keximigrate_mdb.pot
 find_exclude $potfile
 
 # Exclude files containing "#warning noi18n"
@@ -9,5 +9,5 @@ LIST=`find . \( $EXCLUDE \) -prune -o \( -name \*.h -o -name \*.cpp \
-o -name \*.  if ! grep -q '^#warning noi18n ' $f ; then echo $f; fi \
 done \
 `
-kexi_xgettext $potfile.pot $LIST
+kexi_xgettext $potfile $LIST
 rm -f rc.cpp
diff --git a/src/migration/mysql/.i18n b/src/migration/mysql/.i18n
index 2cd7f86..0bcdef4 100644
--- a/src/migration/mysql/.i18n
+++ b/src/migration/mysql/.i18n
@@ -1 +1 @@
-keximigrate_mysql
+keximigrate_mysql.pot
diff --git a/src/migration/mysql/Messages.sh b/src/migration/mysql/Messages.sh
index 9f862db..4a65b89 100644
--- a/src/migration/mysql/Messages.sh
+++ b/src/migration/mysql/Messages.sh
@@ -1,7 +1,7 @@
 #! /bin/sh
 source ../../../kexi_xgettext.sh
 
-potfile=keximigrate_mysql
+potfile=keximigrate_mysql.pot
 find_exclude $potfile
 
 # Exclude files containing "#warning noi18n"
@@ -9,5 +9,5 @@ LIST=`find . \( $EXCLUDE \) -prune -o \( -name \*.h -o -name \*.cpp \
-o -name \*.  if ! grep -q '^#warning noi18n ' $f ; then echo $f; fi \
 done \
 `
-kexi_xgettext $potfile.pot $LIST
+kexi_xgettext $potfile $LIST
 rm -f rc.cpp
diff --git a/src/migration/odb/.i18n b/src/migration/odb/.i18n
index b61723a..4dcb4f1 100644
--- a/src/migration/odb/.i18n
+++ b/src/migration/odb/.i18n
@@ -1 +1 @@
-keximigrate_odb
+keximigrate_odb.pot
diff --git a/src/migration/odb/Messages.sh b/src/migration/odb/Messages.sh
index 9ba3067..8be2782 100755
--- a/src/migration/odb/Messages.sh
+++ b/src/migration/odb/Messages.sh
@@ -1,7 +1,7 @@
 #! /bin/sh
 source ../../../kexi_xgettext.sh
 
-potfile=keximigrate_odb
+potfile=keximigrate_odb.pot
 find_exclude $potfile
 
 # Exclude files containing "#warning noi18n"
@@ -9,5 +9,5 @@ LIST=`find . \( $EXCLUDE \) -prune -o \( -name \*.h -o -name \*.cpp \
-o -name \*.  if ! grep -q '^#warning noi18n ' $f ; then echo $f; fi \
 done \
 `
-kexi_xgettext $potfile.pot $LIST
+kexi_xgettext $potfile $LIST
 rm -f rc.cpp
diff --git a/src/migration/postgresql/.i18n b/src/migration/postgresql/.i18n
index f86af5f..ce8bd8c 100644
--- a/src/migration/postgresql/.i18n
+++ b/src/migration/postgresql/.i18n
@@ -1 +1 @@
-keximigrate_postgresql
+keximigrate_postgresql.pot
diff --git a/src/migration/postgresql/Messages.sh \
b/src/migration/postgresql/Messages.sh index 08caa83..6c85c14 100644
--- a/src/migration/postgresql/Messages.sh
+++ b/src/migration/postgresql/Messages.sh
@@ -1,7 +1,7 @@
 #! /bin/sh
 source ../../../kexi_xgettext.sh
 
-potfile=keximigrate_postgresql
+potfile=keximigrate_postgresql.pot
 find_exclude $potfile
 
 # Exclude files containing "#warning noi18n"
@@ -9,5 +9,5 @@ LIST=`find . \( $EXCLUDE \) -prune -o \( -name \*.h -o -name \*.cpp \
-o -name \*.  if ! grep -q '^#warning noi18n ' $f ; then echo $f; fi \
 done \
 `
-kexi_xgettext $potfile.pot $LIST
+kexi_xgettext $potfile $LIST
 rm -f rc.cpp
diff --git a/src/migration/spreadsheet/Messages.sh \
b/src/migration/spreadsheet/Messages.sh index 8a79dd5..6dc5a0f 100755
--- a/src/migration/spreadsheet/Messages.sh
+++ b/src/migration/spreadsheet/Messages.sh
@@ -1,7 +1,7 @@
 #! /bin/sh
 source ../../../kexi_xgettext.sh
 
-potfile=keximigrate_spreadsheet
+potfile=keximigrate_spreadsheet.pot
 find_exclude $potfile
 
 # Exclude files containing "#warning noi18n"
@@ -9,5 +9,5 @@ LIST=`find . \( $EXCLUDE \) -prune -o \( -name \*.h -o -name \*.cpp \
-o -name \*.  if ! grep -q '^#warning noi18n ' $f ; then echo $f; fi \
 done \
 `
-kexi_xgettext $potfile.pot $LIST
+kexi_xgettext $potfile $LIST
 rm -f rc.cpp
diff --git a/src/migration/sybase/.i18n b/src/migration/sybase/.i18n
index fc7c48d..b46d563 100644
--- a/src/migration/sybase/.i18n
+++ b/src/migration/sybase/.i18n
@@ -1 +1 @@
-keximigrate_sybase
+keximigrate_sybase.pot
diff --git a/src/migration/sybase/Messages.sh b/src/migration/sybase/Messages.sh
index a64c92b..0dddfd3 100644
--- a/src/migration/sybase/Messages.sh
+++ b/src/migration/sybase/Messages.sh
@@ -1,7 +1,7 @@
 #! /bin/sh
 source ../../../kexi_xgettext.sh
 
-potfile=keximigrate_sybase
+potfile=keximigrate_sybase.pot
 find_exclude $potfile
 
 # Exclude files containing "#warning noi18n"
@@ -9,5 +9,5 @@ LIST=`find . \( $EXCLUDE \) -prune -o \( -name \*.h -o -name \*.cpp \
-o -name \*.  if ! grep -q '^#warning noi18n ' $f ; then echo $f; fi \
 done \
 `
-kexi_xgettext $potfile.pot $LIST
+kexi_xgettext $potfile $LIST
 rm -f rc.cpp
diff --git a/src/migration/tsv/.i18n b/src/migration/tsv/.i18n
index ffcd718..4505872 100644
--- a/src/migration/tsv/.i18n
+++ b/src/migration/tsv/.i18n
@@ -1 +1 @@
-keximigrate_tsv
+keximigrate_tsv.pot
diff --git a/src/migration/tsv/Messages.sh b/src/migration/tsv/Messages.sh
index 0d095a5..224cdd2 100755
--- a/src/migration/tsv/Messages.sh
+++ b/src/migration/tsv/Messages.sh
@@ -1,7 +1,7 @@
 #! /bin/sh
 source ../../../kexi_xgettext.sh
 
-potfile=keximigrate_tsv
+potfile=keximigrate_tsv.pot
 find_exclude $potfile
 
 # Exclude files containing "#warning noi18n"
@@ -9,5 +9,5 @@ LIST=`find . \( $EXCLUDE \) -prune -o \( -name \*.h -o -name \*.cpp \
-o -name \*.  if ! grep -q '^#warning noi18n ' $f ; then echo $f; fi \
 done \
 `
-kexi_xgettext $potfile.pot $LIST
+kexi_xgettext $potfile $LIST
 rm -f rc.cpp
diff --git a/src/migration/xbase/.i18n b/src/migration/xbase/.i18n
index 4fc1b33..ef33fec 100644
--- a/src/migration/xbase/.i18n
+++ b/src/migration/xbase/.i18n
@@ -1 +1 @@
-keximigrate_xbase
+keximigrate_xbase.pot
diff --git a/src/migration/xbase/Messages.sh b/src/migration/xbase/Messages.sh
index a55e900..cef1747 100644
--- a/src/migration/xbase/Messages.sh
+++ b/src/migration/xbase/Messages.sh
@@ -1,7 +1,7 @@
 #! /bin/sh
 source ../../../kexi_xgettext.sh
 
-potfile=keximigrate_xbase
+potfile=keximigrate_xbase.pot
 find_exclude $potfile
 
 # Exclude files containing "#warning noi18n"
@@ -9,5 +9,5 @@ LIST=`find . \( $EXCLUDE \) -prune -o \( -name \*.h -o -name \*.cpp \
-o -name \*.  if ! grep -q '^#warning noi18n ' $f ; then echo $f; fi \
 done \
 `
-kexi_xgettext $potfile.pot $LIST
+kexi_xgettext $potfile $LIST
 rm -f rc.cpp
diff --git a/src/plugins/forms/widgets/mapbrowser/.i18n \
b/src/plugins/forms/widgets/mapbrowser/.i18n index 5329299..30d0ffe 100644
--- a/src/plugins/forms/widgets/mapbrowser/.i18n
+++ b/src/plugins/forms/widgets/mapbrowser/.i18n
@@ -1 +1 @@
-kexiforms_mapwidgetplugin
+kexiforms_mapwidgetplugin.pot
diff --git a/src/plugins/forms/widgets/mapbrowser/Messages.sh \
b/src/plugins/forms/widgets/mapbrowser/Messages.sh index 5a0715b..85c8d0d 100755
--- a/src/plugins/forms/widgets/mapbrowser/Messages.sh
+++ b/src/plugins/forms/widgets/mapbrowser/Messages.sh
@@ -1,7 +1,7 @@
 #! /bin/sh
 source ../../../../../kexi_xgettext.sh
 
-potfile=kexiforms_mapwidgetplugin
+potfile=kexiforms_mapwidgetplugin.pot
 find_exclude $potfile
 
 # Exclude files containing "#warning noi18n"
@@ -9,5 +9,5 @@ LIST=`find . \( $EXCLUDE \) -prune -o \( -name \*.h -o -name \*.cpp \
-o -name \*.  if ! grep -q '^#warning noi18n ' $f ; then echo $f; fi \
 done \
 `
-kexi_xgettext $potfile.pot $LIST
+kexi_xgettext $potfile $LIST
 rm -f rc.cpp
diff --git a/src/plugins/forms/widgets/webbrowser/.i18n \
b/src/plugins/forms/widgets/webbrowser/.i18n index 8cea2f7..513adf0 100644
--- a/src/plugins/forms/widgets/webbrowser/.i18n
+++ b/src/plugins/forms/widgets/webbrowser/.i18n
@@ -1 +1 @@
-kexiforms_webbrowserwidgetplugin
+kexiforms_webbrowserwidgetplugin.pot
diff --git a/src/plugins/forms/widgets/webbrowser/Messages.sh \
b/src/plugins/forms/widgets/webbrowser/Messages.sh index 1e2815a..da67727 100755
--- a/src/plugins/forms/widgets/webbrowser/Messages.sh
+++ b/src/plugins/forms/widgets/webbrowser/Messages.sh
@@ -1,7 +1,7 @@
 #! /bin/sh
 source ../../../../../kexi_xgettext.sh
 
-potfile=kexiforms_webbrowserwidgetplugin
+potfile=kexiforms_webbrowserwidgetplugin.pot
 find_exclude $potfile
 
 # Exclude files containing "#warning noi18n"
@@ -9,5 +9,5 @@ LIST=`find . \( $EXCLUDE \) -prune -o \( -name \*.h -o -name \*.cpp \
-o -name \*.  if ! grep -q '^#warning noi18n ' $f ; then echo $f; fi \
 done \
 `
-kexi_xgettext $potfile.pot $LIST
+kexi_xgettext $potfile $LIST
 rm -f rc.cpp


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic