I've applied the attached patch to my build, and just set MSGFMT=gmsgfmt in
the environment when I run configure. It's yours if you want it, since it
seems like a decent addition to the configurability of the build. It's not
complete, though, since it doesn't handle xgettext and msgmerge, but I
don't need to run either one as a part of a typical build, and the latter
at least doesn't have a Solaris "native" version, so we'd end up using the
GNU version anyway.
Thanks,
Danek
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
--- src/config.mk.in.orig Thu May 22 12:22:19 2014
+++ src/config.mk.in Mon Jun 2 14:00:42 2014
@@ -164,6 +164,8 @@
### If the *.po files are to be translated to *.mo files.
MAKEMO = @MAKEMO@
+MSGFMT = @MSGFMT@
+
# Make sure that "make first" will run "make all" once configure has done its
# work. This is needed when using the Makefile in the top directory.
first: all
--- src/po/Makefile.orig Thu May 22 12:22:19 2014
+++ src/po/Makefile Mon Jun 2 14:02:33 2014
@@ -1,5 +1,7 @@
# Makefile for the Vim message translations.
+include ../auto/config.mk
+
# TODO make this configurable
# Note: ja.sjis, *.cp1250 and zh_CN.cp936 are only for MS-Windows, they are
# not installed on Unix
@@ -133,7 +135,7 @@
# tools 0.10.37, which use a slightly different .po file format that is not
# compatible with Solaris (and old gettext implementations) unless these are
# set. gettext 0.10.36 will not work!
-MSGFMT = OLD_PO_FILE_INPUT=yes msgfmt -v
+# MSGFMT = OLD_PO_FILE_INPUT=yes msgfmt -v
XGETTEXT = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes xgettext
MSGMERGE = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes msgmerge
@@ -142,7 +144,7 @@
.PHONY: all install uninstall prefixcheck converted check clean checkclean
distclean update-po $(LANGUAGES) $(CONVERTED)
.po.mo:
- $(MSGFMT) -o $@ $<
+ OLD_PO_FILE_INPUT=yes $(MSGFMT) -v -o $@ $<
.po.ck:
$(VIM) -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq
$<