]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
authorRobert Millan <rmh@aybabtu.com>
Tue, 17 Nov 2009 11:20:39 +0000 (11:20 +0000)
committerRobert Millan <rmh@aybabtu.com>
Tue, 17 Nov 2009 11:20:39 +0000 (11:20 +0000)
        * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT, LINGUAS): New variables.
        (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
        (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
        (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
        * po/LINGUAS: New file.

ChangeLog.gettext
Makefile.in
po/LINGUAS [new file with mode: 0644]

index 19e83f0bb5d0adb6fd7a183df72923f8dc5f7737..a1451f1d1bcbf2b6707166902b647f4104e4ec22 100644 (file)
@@ -1,3 +1,11 @@
+2009-11-17  Robert Millan  <rmh.grub@aybabtu.com>
+
+       * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT, LINGUAS): New variables.
+       (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
+       (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
+       (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
+       * po/LINGUAS: New file.
+
 2009-11-17  Robert Millan  <rmh.grub@aybabtu.com>
 
        * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
index 07f0b6fec2b77aca2643dcf8a79b6d6b06c29d89..a87ace29dec4997de607f54a419deca760ffabcc 100644 (file)
@@ -41,7 +41,11 @@ includedir = @includedir@
 pkgdatadir = $(datadir)/`echo @PACKAGE_TARNAME@ | sed '$(transform)'`
 pkglibdir =  $(libdir)/`echo @PACKAGE_TARNAME@/$(target_cpu)-$(platform) | sed '$(transform)'`
 
-LINGUAS = ca
+XGETTEXT = @XGETTEXT@
+MSGMERGE = @MSGMERGE@
+MSGFMT = @MSGFMT@
+
+LINGUAS = $(shell tr '\n' ' ' < $(srcdir)/po/LINGUAS)
 
 PACKAGE_NAME = @PACKAGE_NAME@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
@@ -467,14 +471,14 @@ genkernsyms.sh: genkernsyms.sh.in config.status
        $(SHELL) ./config.status
 
 po/$(PACKAGE).pot: po/POTFILES
-       xgettext --from-code=utf-8 --keyword=_ -f $< -o $@
+       $(XGETTEXT) --from-code=utf-8 --keyword=_ -f $< -o $@
 
 po/*.po: po/$(PACKAGE).pot
-       msgmerge -U $@ po/$(PACKAGE).pot
+       $(MSGMERGE) -U $@ po/$(PACKAGE).pot
 
 po/%.mo: po/%.po
        $(MKDIR_P) $$(dirname $@)
-       msgfmt -c --statistics -o $@ $^
+       $(MSGFMT) -c --statistics -o $@ $^
 
 .PHONY: all install install-strip uninstall clean mostlyclean distclean
 .PHONY: maintainer-clean info dvi dist check
diff --git a/po/LINGUAS b/po/LINGUAS
new file mode 100644 (file)
index 0000000..16fc679
--- /dev/null
@@ -0,0 +1 @@
+ca