]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Use the msgmerge --update option.
authorBruno Haible <bruno@clisp.org>
Mon, 22 Oct 2001 08:47:57 +0000 (08:47 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 22 Oct 2001 08:47:57 +0000 (08:47 +0000)
Don't use or mention the .pox suffix any more.

doc/ChangeLog
doc/gettext.texi
m4/ChangeLog
m4/gettext.m4
po/ChangeLog
po/Makefile.in.in

index 3895438a6192c7cd7eb3b1de007725f252cb7c6f..1959a2f50245c3a8394cc0c79bafa31d4c3cf638 100644 (file)
@@ -1,3 +1,7 @@
+2001-09-18  Bruno Haible  <haible@clisp.cons.org>
+
+       * gettext.texi: Use file suffix .po instead of .pox.
+
 2001-08-13  Bruno Haible  <haible@clisp.cons.org>
 
        * gettext.texi (YCP): New node.
index f59f0d30dc1733604f431ece3ffcc44028db6329..8967a911c262ba62642213dda08150bc5aee2ac2 100644 (file)
@@ -597,8 +597,7 @@ empty translations.  Program @code{msgmerge} takes care of adjusting
 PO files between releases of the corresponding sources, commenting
 obsolete entries, initializing new ones, and updating all source
 line references.  Files ending with @file{.pot} are kind of base
-translation files found in distributions, in PO file format, and
-@file{.pox} files are often temporary PO files.
+translation files found in distributions, in PO file format.
 
 MO files are meant to be read by programs, and are binary in nature.
 A few systems already offer tools for creating and handling MO files
@@ -632,11 +631,11 @@ Original C Sources ---> PO mode ---> Marked C Sources ---.
 |   |                                            |             ^
 |   |                                            `---.         |
 |   `---.                                            +---> PO mode ---.
-|       +----> msgmerge ------> LANG.po--->--------'                |
+|       +----> msgmerge ------> LANG.po ---->--------'                |
 |   .---'                                                             |
 |   |                                                                 |
 |   `-------------<---------------.                                   |
-|                                 +--- LANG.po <--- New LANG.pox <----'
+|                                 +--- New LANG.po <------------------'
 |   .--- LANG.gmo <--- msgfmt <---'
 |   |
 |   `---> install ---> /.../LANG/PACKAGE.mo ---.
@@ -715,8 +714,8 @@ should now generate the proper things automatically for you!
 
 The first time through, there is no @file{@var{lang}.po} yet, so the
 @code{msgmerge} step may be skipped and replaced by a mere copy of
-@file{@var{package}.pot} to @file{@var{lang}.pox}, where @var{lang}
-represents the target language.
+@file{@var{package}.pot} to @file{@var{lang}.po}, where @var{lang}
+represents the target language.  See @ref{Creating} for details.
 
 Then comes the initial translation of messages.  Translation in
 itself is a whole matter, still exclusively meant for humans,
@@ -727,7 +726,7 @@ about how to contact translating teams, or becoming part of them,
 for sharing your translating concerns with others who target the same
 native language.
 
-While adding the translated messages into the @file{@var{lang}.pox}
+While adding the translated messages into the @file{@var{lang}.po}
 PO file, if you do not have Emacs handy, you are on your own
 for ensuring that your efforts fully respect the PO file format, and quoting
 conventions (@pxref{PO Files}).  This is surely not an impossible task,
@@ -778,7 +777,7 @@ existing @file{@var{lang}.po} file, by comparing it with a newer
 out of recent C sources.  The refreshing operation adjusts all
 references to C source locations for strings, since these strings
 move as programs are modified.  Also, @code{msgmerge} comments out as
-obsolete, in @file{@var{lang}.pox}, those already translated entries
+obsolete, in @file{@var{lang}.po}, those already translated entries
 which are no longer used in the program sources (@pxref{Obsolete
 Entries}).  It finally discovers new strings and inserts them in
 the resulting PO file as untranslated entries (@pxref{Untranslated
@@ -786,9 +785,7 @@ Entries}).  @xref{msgmerge Invocation}, for more information about what
 @code{msgmerge} really does.
 
 Whatever route or means taken, the goal is to obtain an updated
-@file{@var{lang}.pox} file offering translations for all strings.
-When this is properly achieved, this file @file{@var{lang}.pox} may
-take the place of the previous official @file{@var{lang}.po} file.
+@file{@var{lang}.po} file offering translations for all strings.
 
 The temporal mobility, or fluidity of PO files, is an integral part of
 the translation game, and should be well understood, and accepted.
@@ -861,7 +858,7 @@ like:
 (autoload 'po-mode "po-mode" "Major mode for translators to edit PO files" t)
 @end example
 
-Later, whenever you edit some @file{.po}, @file{.pot} or @file{.pox}
+Later, whenever you edit some @file{.po}
 file, or any file having the string @samp{.po.} within its name,
 Emacs loads @file{po-mode.elc} (or @file{po-mode.el}) as needed, and
 automatically activates PO mode commands for the associated buffer.
index 24f9f126cf485d825d6284635c75ca055d46d22d..5dcdead865d0b189d6e1528f25a8e164faec9496 100644 (file)
@@ -1,3 +1,8 @@
+2001-09-18  Bruno Haible  <haible@clisp.cons.org>
+
+       * gettext.m4 (AM_WITH_NLS): Test for msgmerge which understands the
+       --update option.
+
 2001-10-20  Bruno Haible  <haible@clisp.cons.org>
 
        Assume strchr() exists.
index 4362d8cba1b22be3b464f31e5dc1253651a2639b..0513cdc41e97aab1ddb2fc61d7722290a3831429 100644 (file)
@@ -202,6 +202,10 @@ return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", ""
        AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
          [$ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1], :)
 
+       dnl Search for GNU msgmerge 0.11 or newer in the PATH.
+       AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
+         [$ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1], :)
+
        dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
        dnl Test whether we really found GNU msgfmt.
        if test "$GMSGFMT" != ":"; then
index 6b684214abf682027e3ad793984fb5470ab48c69..359760acb3dc58637b2c183622e251b09e3a13d4 100644 (file)
@@ -1,3 +1,12 @@
+2001-09-18  Bruno Haible  <haible@clisp.cons.org>
+
+       * Makefile.in.in (MSGMERGE_UPDATE): New variable.
+       (.SUFFIXES): Remove .pox.
+       (.po.pox): Remove rule.
+       ($(POFILES)): New rule.
+       (mostlyclean): Don't remove *.pox.
+       (force): New target.
+
 2001-10-20  Bruno Haible  <haible@clisp.cons.org>
 
        * es.po: Update from Max de Mendizábal <max@upn.mx>.
index a1943c523c4fad30a784be918fd20ff9b37df147..6a655f3bcde577171803fb08ba3107cbe8928340 100644 (file)
@@ -37,6 +37,7 @@ GMSGFMT = @GMSGFMT@
 MSGFMT = @MSGFMT@
 XGETTEXT = @XGETTEXT@
 MSGMERGE = msgmerge
+MSGMERGE_UPDATE = @MSGMERGE@ --update
 
 POFILES = @POFILES@
 GMOFILES = @GMOFILES@
@@ -48,11 +49,7 @@ POTFILES = \
 CATALOGS = @CATALOGS@
 
 .SUFFIXES:
-.SUFFIXES: .po .pox .gmo .mo
-
-.po.pox:
-       $(MAKE) $(PACKAGE).pot
-       $(MSGMERGE) $< $(srcdir)/$(PACKAGE).pot -o $*.pox
+.SUFFIXES: .po .gmo .mo
 
 .po.mo:
        $(MSGFMT) -c -o $@ $<
@@ -79,6 +76,9 @@ $(srcdir)/$(PACKAGE).pot: $(POTFILES) $(srcdir)/POTFILES.in
           || ( rm -f $(srcdir)/$(PACKAGE).pot \
                && mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot )
 
+$(POFILES): force
+       $(MSGMERGE_UPDATE) $@ $(srcdir)/$(PACKAGE).pot
+
 
 install: install-exec install-data
 install-exec:
@@ -134,7 +134,7 @@ check: all
 dvi info tags TAGS ID:
 
 mostlyclean:
-       rm -f core core.* *.pox $(PACKAGE).po *.new.po
+       rm -f core core.* $(PACKAGE).po *.new.po
        rm -fr *.o
 
 clean: mostlyclean
@@ -185,6 +185,8 @@ Makefile: Makefile.in.in $(top_builddir)/config.status POTFILES.in
          && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
               $(SHELL) ./config.status
 
+force:
+
 # Tell versions [3.59,3.63) of GNU make not to export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT: