[Kimchi-devel] [PATCH V3 7/7] generate the translation files for plugins/sample
shaohef at linux.vnet.ibm.com
shaohef at linux.vnet.ibm.com
Wed May 21 08:54:42 UTC 2014
From: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
please use this command to generate the translation files for
plugins/sample
$ make -C plugins/sample/po/ update-po
Signed-off-by: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
---
configure.ac | 1 +
plugins/sample/Makefile.am | 9 ++++++++-
plugins/sample/config.status | 1 +
plugins/sample/po/LINGUAS | 1 +
plugins/sample/po/Makefile.in.in | 1 +
plugins/sample/po/Makevars | 1 +
plugins/sample/po/POTFILES.in | 2 ++
plugins/sample/po/en_US.po | 21 +++++++++++++++++++++
plugins/sample/po/gen-pot | 1 +
plugins/sample/po/pt_BR.po | 24 ++++++++++++++++++++++++
plugins/sample/po/zh_CN.po | 24 ++++++++++++++++++++++++
11 files changed, 85 insertions(+), 1 deletion(-)
create mode 120000 plugins/sample/config.status
create mode 120000 plugins/sample/po/LINGUAS
create mode 120000 plugins/sample/po/Makefile.in.in
create mode 120000 plugins/sample/po/Makevars
create mode 100644 plugins/sample/po/POTFILES.in
create mode 100644 plugins/sample/po/en_US.po
create mode 120000 plugins/sample/po/gen-pot
create mode 100644 plugins/sample/po/pt_BR.po
create mode 100644 plugins/sample/po/zh_CN.po
diff --git a/configure.ac b/configure.ac
index 047cf9d..13dd967 100644
--- a/configure.ac
+++ b/configure.ac
@@ -72,6 +72,7 @@ AC_CONFIG_FILES([
src/kimchi/model/Makefile
plugins/Makefile
plugins/sample/Makefile
+ plugins/sample/po/Makefile.in
plugins/sample/ui/Makefile
plugins/sample/ui/config/Makefile
ui/Makefile
diff --git a/plugins/sample/Makefile.am b/plugins/sample/Makefile.am
index 7835c3f..0bc601b 100644
--- a/plugins/sample/Makefile.am
+++ b/plugins/sample/Makefile.am
@@ -17,7 +17,7 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-SUBDIRS = ui
+SUBDIRS = ui po
EXTRA_DIST = API.json sample.conf.in $(wildcard *.py)
@@ -35,3 +35,10 @@ sample.conf: sample.conf.in Makefile
BUILT_SOURCES = sample.conf
CLEANFILES = sample.conf
+
+all-local:
+ while read L && test -n "$$L"; do \
+ dir=mo/$$L/LC_MESSAGES ; \
+ $(MKDIR_P) $$dir ; \
+ ln -sf ../../../po/$$L.gmo $$dir/kimchi.mo ; \
+ done < po/LINGUAS
diff --git a/plugins/sample/config.status b/plugins/sample/config.status
new file mode 120000
index 0000000..6cd6b4f
--- /dev/null
+++ b/plugins/sample/config.status
@@ -0,0 +1 @@
+../../config.status
\ No newline at end of file
diff --git a/plugins/sample/po/LINGUAS b/plugins/sample/po/LINGUAS
new file mode 120000
index 0000000..4fb83a5
--- /dev/null
+++ b/plugins/sample/po/LINGUAS
@@ -0,0 +1 @@
+../../../po/LINGUAS
\ No newline at end of file
diff --git a/plugins/sample/po/Makefile.in.in b/plugins/sample/po/Makefile.in.in
new file mode 120000
index 0000000..44028c0
--- /dev/null
+++ b/plugins/sample/po/Makefile.in.in
@@ -0,0 +1 @@
+../../../po/Makefile.in.in
\ No newline at end of file
diff --git a/plugins/sample/po/Makevars b/plugins/sample/po/Makevars
new file mode 120000
index 0000000..3b6b02f
--- /dev/null
+++ b/plugins/sample/po/Makevars
@@ -0,0 +1 @@
+../../../po/Makevars
\ No newline at end of file
diff --git a/plugins/sample/po/POTFILES.in b/plugins/sample/po/POTFILES.in
new file mode 100644
index 0000000..f1b069f
--- /dev/null
+++ b/plugins/sample/po/POTFILES.in
@@ -0,0 +1,2 @@
+# List of source files which contain translatable strings.
+ui/pages/*.tmpl
diff --git a/plugins/sample/po/en_US.po b/plugins/sample/po/en_US.po
new file mode 100644
index 0000000..1889845
--- /dev/null
+++ b/plugins/sample/po/en_US.po
@@ -0,0 +1,21 @@
+# English translations for kimchi package.
+# Copyright (C) 2014 THE kimchi'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the kimchi package.
+# shhfeng <shaohef at linux.vnet.ibm.com>, 2014.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: kimchi 1.2.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-05-17 02:13+0800\n"
+"PO-Revision-Date: 2014-05-17 02:08+0800\n"
+"Last-Translator: shhfeng <shaohef at linux.vnet.ibm.com>\n"
+"Language-Team: English\n"
+"Language: en_US\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ASCII\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: pygettext.py 1.5\n"
+
+msgid "SampleTab"
+msgstr "SampleTab"
diff --git a/plugins/sample/po/gen-pot b/plugins/sample/po/gen-pot
new file mode 120000
index 0000000..b449d56
--- /dev/null
+++ b/plugins/sample/po/gen-pot
@@ -0,0 +1 @@
+../../../po/gen-pot
\ No newline at end of file
diff --git a/plugins/sample/po/pt_BR.po b/plugins/sample/po/pt_BR.po
new file mode 100644
index 0000000..0ff1d43
--- /dev/null
+++ b/plugins/sample/po/pt_BR.po
@@ -0,0 +1,24 @@
+# Portuguese translations for kimchi package
+# Copyright (C) 2014 THE kimchi'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the kimchi package.
+# shhfeng <shaohef at linux.vnet.ibm.com>, 2014.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: kimchi 1.2.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-05-17 02:13+0800\n"
+"PO-Revision-Date: 2014-05-17 02:09+0800\n"
+"Last-Translator: Crístian Viana <vianac at linux.vnet.ibm.com>\n"
+"Language-Team: Aline Manera <alinefm at br.ibm.com>\n"
+"Language: pt_BR\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: pygettext.py 1.5\n"
+"X-Poedit-Country: Brazil\n"
+"X-Poedit-Language: Portuguese\n"
+"X-Poedit-SourceCharset: utf-8\n"
+
+msgid "SampleTab"
+msgstr "Tab de exemplo"
diff --git a/plugins/sample/po/zh_CN.po b/plugins/sample/po/zh_CN.po
new file mode 100644
index 0000000..bba53c3
--- /dev/null
+++ b/plugins/sample/po/zh_CN.po
@@ -0,0 +1,24 @@
+# Chinese translations for kimchi package
+# Copyright (C) 2014 THE kimchi'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the kimchi package.
+# shhfeng <shaohef at linux.vnet.ibm.com>, 2014.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: kimchi 1.2.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-05-17 02:13+0800\n"
+"PO-Revision-Date: 2014-05-17 02:10+0800\n"
+"Last-Translator: shhfeng <shaohef at linux.vnet.ibm.com>\n"
+"Language-Team: Chinese (simplified)\n"
+"Language: zh_CN\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: pygettext.py 1.5\n"
+"X-Poedit-Country: CHINA\n"
+"X-Poedit-Language: Chinese\n"
+"X-Poedit-SourceCharset: utf-8\n"
+
+msgid "SampleTab"
+msgstr "示例标签"
--
1.9.0
More information about the Kimchi-devel
mailing list