[Groonga-commit] groonga/groonga [master] [doc] add init target to initialize .po.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 5月 18日 (水) 15:17:48 JST


Kouhei Sutou	2011-05-18 06:17:48 +0000 (Wed, 18 May 2011)

  New Revision: e9529593a35b20edda3b1c65dec4834ce372c0d2

  Log:
    [doc] add init target to initialize .po.

  Modified files:
    build/makefiles/gettext.mk
    doc/locale/en/LC_MESSAGES/Makefile.am
    doc/locale/ja/LC_MESSAGES/Makefile.am
    doc/locale/template.locale.LC_MESSAGES.Makefile.am

  Modified: build/makefiles/gettext.mk (+6 -0)
===================================================================
--- build/makefiles/gettext.mk    2011-05-18 05:58:37 +0000 (7d9275c)
+++ build/makefiles/gettext.mk    2011-05-18 06:17:48 +0000 (a212835)
@@ -20,6 +20,12 @@ pdf: build
 gettext: sphinx-ensure-updated
 	$(SPHINX_BUILD_COMMAND) -d doctrees -b gettext $(ALLSPHINXOPTS) .
 
+init: gettext
+	for po in $(po_files); do						\
+	  pot=`basename $${po} | sed -e 's,po$$,pot,g'`;			\
+	  msginit --input=$${pot} --output-file=$${po} --locale=$(LOCALE);	\
+	done
+
 pot-build-stamp: $(source_files)
 	$(MAKE) gettext
 	@touch $@

  Modified: doc/locale/en/LC_MESSAGES/Makefile.am (+2 -0)
===================================================================
--- doc/locale/en/LC_MESSAGES/Makefile.am    2011-05-18 05:58:37 +0000 (1457e83)
+++ doc/locale/en/LC_MESSAGES/Makefile.am    2011-05-18 06:17:48 +0000 (4274c5f)
@@ -1 +1,3 @@
+LOCALE = en
+
 include $(abs_top_srcdir)/build/makefiles/gettext.mk

  Modified: doc/locale/ja/LC_MESSAGES/Makefile.am (+2 -0)
===================================================================
--- doc/locale/ja/LC_MESSAGES/Makefile.am    2011-05-18 05:58:37 +0000 (1457e83)
+++ doc/locale/ja/LC_MESSAGES/Makefile.am    2011-05-18 06:17:48 +0000 (e1d69ce)
@@ -1 +1,3 @@
+LOCALE = ja
+
 include $(abs_top_srcdir)/build/makefiles/gettext.mk

  Modified: doc/locale/template.locale.LC_MESSAGES.Makefile.am (+2 -0)
===================================================================
--- doc/locale/template.locale.LC_MESSAGES.Makefile.am    2011-05-18 05:58:37 +0000 (1457e83)
+++ doc/locale/template.locale.LC_MESSAGES.Makefile.am    2011-05-18 06:17:48 +0000 (ec9f527)
@@ -1 +1,3 @@
+LOCALE = %LOCALE%
+
 include $(abs_top_srcdir)/build/makefiles/gettext.mk




Groonga-commit メーリングリストの案内
Back to archive index