]> git.ipfire.org Git - thirdparty/gettext.git/log
thirdparty/gettext.git
10 years agoFix reporter credit
Daiki Ueno [Wed, 24 Jun 2015 08:03:40 +0000 (17:03 +0900)] 
Fix reporter credit

10 years agoautopoint: Update for 0.19.5
Daiki Ueno [Wed, 24 Jun 2015 07:58:19 +0000 (16:58 +0900)] 
autopoint: Update for 0.19.5

* autopoint.in: Update for 0.19.5.

10 years agotests: Don't rely on echo -n
Daiki Ueno [Wed, 24 Jun 2015 03:04:25 +0000 (12:04 +0900)] 
tests: Don't rely on echo -n

* gettext-tools/tests/msgfilter-8: Port the "echo -n" equivalent from gettext-2.
Reported by paul zimmermann in:
<https://lists.gnu.org/archive/html/bug-gettext/2015-06/msg00019.html>.

10 years agotests: Skip CLDR tests when libexpat is missing
Daiki Ueno [Wed, 24 Jun 2015 01:53:22 +0000 (10:53 +0900)] 
tests: Skip CLDR tests when libexpat is missing

* gettext-tools/tests/cldr-plurals-1: Skip if XML is not supported.
* gettext-tools/tests/msginit-4: Likewise.

10 years agotests: Skip KUIT tests when libexpat is missing
Daiki Ueno [Wed, 24 Jun 2015 01:35:25 +0000 (10:35 +0900)] 
tests: Skip KUIT tests when libexpat is missing

* format-kde-kuit-1: Skip if KDE KUIT format is not supported.
* format-kde-kuit-2: Likewise.
Suggested by Chusslove Illich.

10 years agobuild: Fix error when expat is not available
Daiki Ueno [Tue, 23 Jun 2015 09:47:20 +0000 (18:47 +0900)] 
build: Fix error when expat is not available

* cldr-plurals.c (main): Fix unmatched braces when
!(DYNLOAD_LIBEXPAT || HAVE_LIBEXPAT).

10 years agobuild: Fix build failure on Solaris
Daiki Ueno [Tue, 23 Jun 2015 09:04:35 +0000 (18:04 +0900)] 
build: Fix build failure on Solaris

* gettext-tools/src/cldr-plurals.c: Include "basename.h".
(main): Place optind on the right hand side of the expression, to
work around build failure on Solaris.
Reported by Dagobert Michelsen in:
<https://lists.gnu.org/archive/html/bug-gettext/2015-06/msg00015.html>.

10 years agobuild: Clean leftover of "make uninstall"
Daiki Ueno [Tue, 23 Jun 2015 06:45:01 +0000 (15:45 +0900)] 
build: Clean leftover of "make uninstall"

* Makefile.am (uninstall-local): Remove cldr-plurals.

10 years agobuild: Fix test failure on VPATH build
Daiki Ueno [Tue, 23 Jun 2015 06:12:30 +0000 (15:12 +0900)] 
build: Fix test failure on VPATH build

* msginit-4: Don't check Project-Id-Version: field, since we can't
use the project-id script when $builddir != $srcdir.

10 years agobuild: Add missing headers in distribution
Daiki Ueno [Tue, 23 Jun 2015 05:14:04 +0000 (14:14 +0900)] 
build: Add missing headers in distribution

* Makefile.am (noinst_HEADERS): Add cldr-plural.h and cldr-plural-exp.h.

10 years agom4, help2man: Update from gnulib
Daiki Ueno [Tue, 23 Jun 2015 04:03:09 +0000 (13:03 +0900)] 
m4, help2man: Update from gnulib

* gettext-runtime/m4/codeset.m4: Update copyright year.
* gettext-runtime/m4/gettext.m4: Likewise.
* gettext-runtime/m4/iconv.m4: Likewise.
* gettext-runtime/m4/intl.m4: Likewise.
* gettext-runtime/m4/intldir.m4: Likewise.
* gettext-runtime/m4/intlmacosx.m4: Likewise.
* gettext-runtime/m4/lcmessage.m4: Likewise.
* gettext-runtime/m4/nls.m4: Likewise.
* gettext-runtime/m4/po.m4: Likewise.
* gettext-runtime/m4/extern-inline.m4: Likewise.  Port the following
change:
  2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
    extern-inline: no need for workaround in GCC 5.1
    * doc/extern-inline.texi (extern inline):
    * m4/extern-inline.m4 (gl_EXTERN_INLINE):
    GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
    around these bugs in GCC 5.1 and later.  Maybe in a decade or
    two we can remove these workarounds.
* gettext-tools/man/help2man: Update copyright year.

10 years agodoc: Update gettext-tools/ABOUT-NLS too
Daiki Ueno [Tue, 23 Jun 2015 03:43:58 +0000 (12:43 +0900)] 
doc: Update gettext-tools/ABOUT-NLS too

10 years agoPrepare for 0.19.5
Daiki Ueno [Tue, 23 Jun 2015 03:32:37 +0000 (12:32 +0900)] 
Prepare for 0.19.5

10 years agointl: Update locale.alias
Daiki Ueno [Tue, 23 Jun 2015 03:28:41 +0000 (12:28 +0900)] 
intl: Update locale.alias

* locale.alias: Update from glibc:
2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
  Remove obsolete aliases that broke 'locale -a'
  [BZ #18412]
  * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
  which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
  breaking some applications that use 'locale -a' output.
  Change the encoding of this file from Latin-1 to ASCII to avoid
  other potential problems with people grepping this file.

10 years agodoc: Regenerate translation matrix
Daiki Ueno [Tue, 23 Jun 2015 03:20:25 +0000 (12:20 +0900)] 
doc: Regenerate translation matrix

* gettext-runtime/ABOUT-NLS: Regenerate for 0.19.5.
* gettext-runtime/doc/matrix.texi: Regenerate for 0.19.5.

10 years agomaint: Make Matrix.java more flexible
Daiki Ueno [Tue, 23 Jun 2015 03:01:28 +0000 (12:01 +0900)] 
maint: Make Matrix.java more flexible

* gettext-runtime/doc/Admin/Matrix.java (Matrix): Group teams
considering the actual table width, instead of using a hard-coded rule.

10 years agoNEWS: Adjust for 0.19.5 release
Daiki Ueno [Tue, 23 Jun 2015 01:28:37 +0000 (10:28 +0900)] 
NEWS: Adjust for 0.19.5 release

10 years agotests: Add test for msginit CLDR support
Daiki Ueno [Tue, 23 Jun 2015 01:16:25 +0000 (10:16 +0900)] 
tests: Add test for msginit CLDR support

* gettext-tools/tests/msginit-4: New file.
* gettext-tools/tests/common/supplemental/plurals.xml: New data file.
* gettext-tools/tests/Makefile.am (TESTS): Add new tests.
(EXTRA_DIST): Add new data file.

10 years agoUpdate gnulib
Daiki Ueno [Tue, 23 Jun 2015 00:50:24 +0000 (09:50 +0900)] 
Update gnulib

10 years agomaint: Minor adjustment to the release steps
Daiki Ueno [Tue, 23 Jun 2015 00:49:24 +0000 (09:49 +0900)] 
maint: Minor adjustment to the release steps

10 years agoNEWS: Fix wording
Daiki Ueno [Mon, 22 Jun 2015 11:20:49 +0000 (20:20 +0900)] 
NEWS: Fix wording

10 years agomsginit: Guess plural rules from Unicode CLDR
Daiki Ueno [Thu, 21 May 2015 04:03:50 +0000 (13:03 +0900)] 
msginit: Guess plural rules from Unicode CLDR

* gettext-tools/src/Makefile.am (noinst_PROGRAMS): Add cldr-plurals.
(install-exec-local): Install cldr-plurals.
(BUILT_SOURCES): Add cldr-plural.c and cldr-plural.h.
(cldr_plural_SOURCES): New variable.
(cldr_plural_LDADD): New variable.
* gettext-tools/src/cldr-plural-exp.h: New file.
* gettext-tools/src/cldr-plural-exp.c: New file.
* gettext-tools/src/cldr-plural.y: New file.
* gettext-tools/src/cldr-plurals.c: New file.
* gettext-tools/src/msginit.c (plural_forms): Call cldr-plurals program
if the plural rule is not defined in the code.
* gettext-tools/doc/msginit.texi: More explanations about "meta
information".
* gettext-tools/doc/gettext.texi (Plural forms): Mention Unicode CLDR
support in msginit.
* gettext-tools/tests/cldr-plurals-1: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add new tests.
* NEWS: Mention msginit change.

10 years agoUpdate gnulib.
Daiki Ueno [Fri, 5 Jun 2015 22:01:25 +0000 (07:01 +0900)] 
Update gnulib.

10 years agomaint: Revert copyright year changes in test data
Daiki Ueno [Fri, 5 Jun 2015 07:37:38 +0000 (16:37 +0900)] 
maint: Revert copyright year changes in test data

10 years agoUpdate gnulib
Daiki Ueno [Fri, 5 Jun 2015 07:13:19 +0000 (16:13 +0900)] 
Update gnulib

10 years agomaint: Update copyright year
Daiki Ueno [Fri, 5 Jun 2015 07:11:39 +0000 (16:11 +0900)] 
maint: Update copyright year

10 years agopo: When doing msgmerge --version, no other options are needed.
Benno Schulenberg [Mon, 1 Jun 2015 10:46:45 +0000 (12:46 +0200)] 
po: When doing msgmerge --version, no other options are needed.

* gettext-runtime/po/Makefile.in.in: Do not use --update when simply
checking for the version, as this might fail when msgmerge is very old.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agoawk: Recognize .twjr file extension
Daiki Ueno [Mon, 1 Jun 2015 03:12:28 +0000 (12:12 +0900)] 
awk: Recognize .twjr file extension

* gettext-tools/src/x-awk.h (EXTENSIONS_AWK): Register file extensions
".gawk" and ".twjr".  Suggested by Karl Berry in:
<https://lists.gnu.org/archive/html/bug-gettext/2015-05/msg00032.html>.

* gettext-tools/doc/gettext.texi (gawk): Mention new file extensions
".gawk" and ".twjr".

10 years agodoc: Update link to GNU hello
Daiki Ueno [Mon, 1 Jun 2015 01:19:23 +0000 (10:19 +0900)] 
doc: Update link to GNU hello

* gettext.texi (Adjusting Files): Update link to GNU hello
distribution.  Suggested by Karl Berry in:
<https://lists.gnu.org/archive/html/bug-gettext/2015-05/msg00031.html>.

10 years agokde: Enable ki18n keywords by default
Часлав Илић (Chusslove Illich) [Mon, 11 May 2015 06:30:55 +0000 (15:30 +0900)] 
kde: Enable ki18n keywords by default

* gettext-tools/src/x-c.c (init_flag_table_kde): New function.
(additional_keywords_kde): New variable.
(activate_additional_keywords_kde): New function.
(init_keywords): Optional addition of KDE-specific keywords.
* gettext-tools/src/x-c.h (init_flag_table_kde): New function declaration.
(activate_additional_keywords_kde): New function declaration.
* gettext-tools/src/xgettext.c (main): Invoke addition of KDE-specific
keywords when language is C++ with KDE.

* NEWS: Mention --kde behavior change.

10 years agoTHANKS: Update
Daiki Ueno [Fri, 8 May 2015 02:32:25 +0000 (11:32 +0900)] 
THANKS: Update

10 years agodoc: Update link to Python String Formatting
Matt Behrens [Sat, 2 May 2015 15:24:03 +0000 (08:24 -0700)] 
doc: Update link to Python String Formatting

10 years agopo-mode: Add option to keep .mo when validating
Manuel Uberti [Fri, 24 Apr 2015 06:49:28 +0000 (08:49 +0200)] 
po-mode: Add option to keep .mo when validating

* gettext-tools/misc/po-mode.el (po-keep-mo-file): New user option.
(po-validate): Respect po-keep-mo-file.  Fix comment indentation.

10 years agokde-kuit: Use xmlns to avoid element name conflict
Daiki Ueno [Fri, 20 Mar 2015 01:36:27 +0000 (10:36 +0900)] 
kde-kuit: Use xmlns to avoid element name conflict

* format-kde-kuit.c (XML_NS): New macro.
(format_parse): Add namespace qualifier to the <kuit> tag.

10 years agodoc: Fix a typo and a punctuation error.
Benno Schulenberg [Sun, 15 Mar 2015 13:12:46 +0000 (14:12 +0100)] 
doc: Fix a typo and a punctuation error.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agointl: Update from gnulib
Daiki Ueno [Thu, 12 Mar 2015 04:12:37 +0000 (13:12 +0900)] 
intl: Update from gnulib

* gettext-runtime/intl/localename.c, gettext-runtime/intl/vasnprintf.c:
Update from gnulib.
* gettext-runtime/libasprintf/vasnprintf.c: Update from gnulib.

10 years agobuild: Suppress dead assignment warning
Daiki Ueno [Thu, 12 Mar 2015 04:08:06 +0000 (13:08 +0900)] 
build: Suppress dead assignment warning

* gettext-tools/src/format-kde-kuit.c (format_parse): Remove dead
assignment, spotted by clang-analyzer.
* gettext-tools/src/x-c.c (phase5_get): Likewise.

10 years agobuild: Fix VPATH build
Daiki Ueno [Thu, 12 Mar 2015 02:59:13 +0000 (11:59 +0900)] 
build: Fix VPATH build

10 years agoTypo and documentation fixes
Daiki Ueno [Thu, 12 Mar 2015 02:27:15 +0000 (11:27 +0900)] 
Typo and documentation fixes

10 years agomsgunfmt: Check allocated size for static segment
Daiki Ueno [Wed, 11 Mar 2015 07:18:26 +0000 (16:18 +0900)] 
msgunfmt: Check allocated size for static segment

Reported by Max Lin in:
http://lists.gnu.org/archive/html/bug-gettext/2015-03/msg00005.html
* read-mo.c (get_sysdep_string): Check if the embedded segment
size is valid, before adding it to the string length.

10 years agopo: Update POTFILES.in for gettext-tools
Daiki Ueno [Mon, 9 Mar 2015 09:39:28 +0000 (18:39 +0900)] 
po: Update POTFILES.in for gettext-tools

10 years agoformat-kde: Recognize KUIT markup
Daiki Ueno [Thu, 5 Mar 2015 03:00:09 +0000 (12:00 +0900)] 
format-kde: Recognize KUIT markup

Reported by Chusslove Illich in:
https://lists.gnu.org/archive/html/bug-gettext/2015-01/msg00017.html
* gettext-tools/src/format.h (formatstring_kde_kuit): New variable
declaration.
* gettext-tools/src/format.c (formatstring_parsers): Register
formatstring_kde_kuitas a format string parser.
* gettext-tools/src/format-kde-kuit.c: New file.
* gettext-tools/src/message.h (NFORMATS): Increment.
(enum format_type): New enum value format_kde_kuit.
* gettext-tools/src/xgettext.c (xgettext_record_flag): Handle
format_kde_kuit.
* gettext-tools/src/Makefile.am (xgettext_SOURCES): Move
libexpat-compat.c to...
(libgettextsrc_la_SOURCES): ...here.
(xgettext_LDADD): Move @LTLIBEXPAT@ to...
(libgettextsrc_la_LDFLAGS): ...here.
(FORMAT_SOURCE): Add format-kde-kuit.c.
* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES):
Add ../src/format-kde-kuit.c and ../src/libexpat-compat.c.
(libgettextpo_la_LDFLAGS): Add @LTLIBEXPAT@.
* gettext-tools/tests/format-kde-kuit-1: New file.
* gettext-tools/tests/format-kde-kuit-2: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add new tests.
* gettext-tools/doc/gettext.texi (kde-kuit-format): New subsection.
* NEWS: Mention KUIT format string support.

10 years agohello-c-gnome3: Simplify variable substitution
Daiki Ueno [Sat, 7 Mar 2015 12:12:49 +0000 (21:12 +0900)] 
hello-c-gnome3: Simplify variable substitution

* gettext-tools/examples/hello-c-gnome3/Makefile.am (hello.desktop):
Remove unnecessary $srcdir check.

10 years agohello-c-gnome3: Improve comment in Makefile.am
Daiki Ueno [Fri, 6 Mar 2015 02:32:23 +0000 (11:32 +0900)] 
hello-c-gnome3: Improve comment in Makefile.am

* hello-c-gnome3/Makefile.am: Suggest hello.desktop.in should be
included in EXTRA_DIST.

10 years agoUpdate .gitignore
Daiki Ueno [Wed, 4 Mar 2015 06:39:37 +0000 (15:39 +0900)] 
Update .gitignore

10 years agoUpdate gnulib
Daiki Ueno [Wed, 4 Mar 2015 06:31:48 +0000 (15:31 +0900)] 
Update gnulib

10 years agobuild: Update libtool files to 2.4.6
Daiki Ueno [Wed, 4 Mar 2015 06:29:53 +0000 (15:29 +0900)] 
build: Update libtool files to 2.4.6

* m4/libtool.m4: Update from libtool-2.4.6, with modifications.
2008-04-06  Bruno Haible  <bruno@clisp.org>
* m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
to ${CONFIG_SHELL}.
* m4/ltversion.m4: Likewise.
* build-aux/ltmain.sh: Likewise.

10 years agoNEWS: Add 0.19.5 changes
Daiki Ueno [Wed, 4 Mar 2015 02:55:27 +0000 (11:55 +0900)] 
NEWS: Add 0.19.5 changes

10 years agoFix ChangeLog botches
Daiki Ueno [Wed, 4 Mar 2015 02:38:45 +0000 (11:38 +0900)] 
Fix ChangeLog botches

10 years agoxgettext: Support message syntax checks
Daiki Ueno [Thu, 29 Jan 2015 08:22:14 +0000 (17:22 +0900)] 
xgettext: Support message syntax checks

With this change, xgettext could report common syntactic problems
in extracted strings.  The current built-in checks are
ellipsis-unicode, space-ellipsis, and quote-unicode.  Those checks
can be enabled with --check option of xgettext and disabled with
special "xgettext:" comment in source files.
Feature suggested by Philip Withnall in:
https://savannah.gnu.org/bugs/?44098
* gettext-tools/src/message.h (enum syntax_check_type): New enum.
(NSYNTAXCHECKS): New constant.
(enum is_syntax_check): New enum.
(struct message_ty): New field 'do_syntax_check'.
(syntax_check_name): New variable declaration.
* gettext-tools/src/message.c (syntax_check_name): New variable.
* gettext-tools/src/msgl-cat.c (catenate_msgdomain_list): Propagate
mp->do_syntax_check.
* gettext-tools/src/msgmerge.c (message_merge): Propagate
ref->do_syntax_check.
* gettext-tools/src/msgl-check.h (syntax_check_message_list): New
declaration.
* gettext-tools/src/msgl-check.c (sentence_end): New function.
(syntax_check_ellipsis_unicode): New function.
(syntax_check_space_ellipsis): New function.
(syntax_check_quote_unicode): New function.
(syntax_check_message): New function.
(syntax_check_message_list): New function.
* gettext-tools/src/read-catalog-abstract.h (po_parse_comment_special):
Adjust function declaration.
* gettext-tools/src/read-catalog-abstract.c (po_parse_comment_special):
Add new argument SCP for syntax checking; all callers changed.
* gettext-tools/src/read-catalog.h (DEFAULT_CATALOG_READER_TY): New
field 'do_syntax_check'.
* gettext-tools/src/read-catalog.c (default_constructor): Initialize
this->do_syntax_check.
(default_copy_comment_state): Propagate this->do_syntax_check.
* gettext-tools/src/xgettext.c (long_options): Add --check option.
(main): Handle --check option.
(usage): Document --check option.
(remember_a_message): Propagate do_syntax_check value.

* gettext-tools/tests/xgettext-14: New file.
* gettext-tools/tests/sentence.c: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add new test.
(noinst_PROGRAMS): Add 'sentence'.
(sentence_SOURCES): New variable.
(sentence_CPPFLAGS): New variable.
(sentence_LDADD): New variable.

* gettext-tools/doc/xgettext.texi: Document --check option.

10 years agopo: Clarify license notice
Daiki Ueno [Wed, 18 Feb 2015 02:17:38 +0000 (11:17 +0900)] 
po: Clarify license notice

* gettext-runtime/po/Makefile.in.in: Replace our own wording of
licensing with GNU All-Permissive License.  Reported by Riley Baird in:
<https://lists.debian.org/debian-legal/2015/01/msg00048.html>.

10 years agoTHANKS: Update
Daiki Ueno [Tue, 10 Feb 2015 03:00:11 +0000 (12:00 +0900)] 
THANKS: Update

10 years agodoc: Document plural forms for arb, tha, and ind
Daiki Ueno [Mon, 9 Feb 2015 03:17:22 +0000 (12:17 +0900)] 
doc: Document plural forms for arb, tha, and ind

* gettext.texi (Plural forms): Add Arabic, Bahasa Indonesian, and
Thai.
Reported by Maryam Aly in:
<https://lists.gnu.org/archive/html/bug-gettext/2015-02/msg00012.html>.

10 years agotests: Fix "broken pipe" error in msgfilter-7
Daiki Ueno [Fri, 6 Feb 2015 03:26:43 +0000 (12:26 +0900)] 
tests: Fix "broken pipe" error in msgfilter-7

* msgfilter-7: Eat up filter input to avoid EPIPE in the parent
msgfilter process, which was exposed on AIX 5.
Reported by Michael Felt.

10 years agoTHANKS: Update
Daiki Ueno [Fri, 6 Feb 2015 00:17:11 +0000 (09:17 +0900)] 
THANKS: Update

10 years agotests: Improve comments in xgettext-13
Alex Henrie [Fri, 6 Feb 2015 00:04:01 +0000 (09:04 +0900)] 
tests: Improve comments in xgettext-13

10 years agoxgettext: Wrap location comments to 79 characters
Alex Henrie [Thu, 5 Feb 2015 05:59:14 +0000 (22:59 -0700)] 
xgettext: Wrap location comments to 79 characters

Previously, messages wre wrapped to 79 characters, but location
comments were wrapped to 78 characters.
* gettext-tools/src/write-po.c (message_print_comment_filepos): Fix
off-by-one in calculating line-wrapping width of location comment.

* gettext-tools/tests/xgettext-13: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add new test.
* gettext-tools/tests/mm-viet.out: Adjust to the recent line-wrapping
behavior change.

10 years agodoc: Fix markup error in msgexec/msgfilter
Daiki Ueno [Tue, 3 Feb 2015 08:10:52 +0000 (17:10 +0900)] 
doc: Fix markup error in msgexec/msgfilter

* msgexec.texi, msgfilter.texi: Fix markup error caused by commit
96dde0b8 and a4d132f7.

10 years agomsgfilter: Factor out quoted string handling
Daiki Ueno [Tue, 3 Feb 2015 08:09:23 +0000 (17:09 +0900)] 
msgfilter: Factor out quoted string handling

For later use in xgettext, separate out the scanner part in
filter-quote.c into a separate file.  See:
<https://savannah.gnu.org/bugs/?44098>.
* quote.h: New file split from filter-quote.c.
* filter-quote.c: Include "quote.h".
(convert_quote_callback): New function.
(convert_ascii_quote_to_unicode): Use scan_quoted from quote.h.
* Makefile.am (libgettextsrc_la_SOURCES): Add quote.h.

10 years agoexamples: Require gettext 0.19 in hello-c-gnome3
Matthias Clasen [Mon, 2 Feb 2015 06:19:17 +0000 (15:19 +0900)] 
examples: Require gettext 0.19 in hello-c-gnome3

* gettext-tools/examples/hello-c-gnome3/configure.ac: Require gettext
0.19, for GSettings and Desktop files.

10 years agomsgexec: Add --newline option
Daiki Ueno [Thu, 29 Jan 2015 03:35:37 +0000 (12:35 +0900)] 
msgexec: Add --newline option

See the commit 96dde0b for the rationale.
* gettext-tools/src/msgexec.c (newline): New variable.
(long_options): Add --newline option.
(main): Handle --newline option.
(usage): Document --newline option.
(process_string): Handle --newline option.

* gettext-tools/tests/msgexec-6: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add new test.

* gettext-tools/doc/msgexec.texi: Document --newline option.

10 years agomsgfilter: Add --newline option
Daiki Ueno [Wed, 28 Jan 2015 07:50:20 +0000 (16:50 +0900)] 
msgfilter: Add --newline option

The filter program was supposed to handle translation without a
newline character at the end of line.  This was causing
portability problems with standard text processing programs on
some platforms (BSD sed, for instance) and not friendly towards
POSIX, where a "text file" is required to have an ending newline.
The new --newline option controls the behavior.  If it is given,
both filter input and output are assumed to end with a newline
character.
* gettext-tools/src/msgfilter.c (newline): New variable.
(long_options): Add --newline option.
(main): Handle --newline option.
(usage): Document --newline option.
(process_string_with_newline): New function which wraps
process_string.
(process_message): Use process_string_with_newline instead of
process_string if --newline is specified.

* gettext-tools/tests/msgfilter-8: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add new test.

* gettext-tools/doc/msgfilter.texi: Document --newline option.

10 years agoxgettext, msgmerge: Avoid undefined non-null argument behavior
Daiki Ueno [Sat, 24 Jan 2015 07:51:18 +0000 (16:51 +0900)] 
xgettext, msgmerge: Avoid undefined non-null argument behavior

* xgettext.c (remember_a_message): Building with gcc's
-fsanitize=undefined and running tests triggered:
  xgettext.c:2425:17: runtime error: null pointer passed as argument \
    2, which is declared to never be null
Adjust the argument of strncmp to never be null.
* msgmerge.c (message_merge): Likewise for memcpy.

10 years agobuild: Update libtool files to 2.4.5
Daiki Ueno [Fri, 23 Jan 2015 03:11:41 +0000 (12:11 +0900)] 
build: Update libtool files to 2.4.5

* m4/libtool.m4: Update from libtool-2.4.5, with modifications.
2008-04-06  Bruno Haible  <bruno@clisp.org>
* m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
to ${CONFIG_SHELL}.
* m4/ltoptions.m4: Likewise.
* m4/ltversion.m4: Likewise.
* build-aux/ltmain.sh: Likewise.

10 years agobuild: Fix parallel build from git checkout
Daiki Ueno [Fri, 23 Jan 2015 02:22:47 +0000 (11:22 +0900)] 
build: Fix parallel build from git checkout

Since po-gram-gen2.h depends on po-gram-gen.h, an explicit
dependency on the YACC rule is needed for parallel compilation.
* Makefile.am (po-gram-gen.h): Depend on po-gram-gen.c.

10 years agointl: Update from gnulib
Daiki Ueno [Thu, 22 Jan 2015 08:40:17 +0000 (17:40 +0900)] 
intl: Update from gnulib

* config.charset, localcharset.c, relocatable.c, vasnprintf.c:
Update from gnulib.
* codeset.m4, extern-inline.m4, fcntl-o.m4, gettext.m4, glibc2.m4:
* glibc21.m4, iconv.m4, intdiv0.m4, intldir.m4, intlmacosx.m4:
* intmax.m4, inttypes-pri.m4, inttypes_h.m4, lcmessage.m4, lock.m4:
* longlong.m4, nls.m4, printf-posix.m4, progtest.m4:
* size_max.m4, stdint_h.m4, threadlib.m4, uintmax_t.m4:
* visibility.m4, wchar_t.m4, wint_t.m4, xsize.m4: Update copyright
year.

10 years agoTHANKS: Update
Daiki Ueno [Wed, 21 Jan 2015 07:57:17 +0000 (16:57 +0900)] 
THANKS: Update

10 years agopo-mode: Better C format string highlighting
Peter Eisentraut [Wed, 21 Jan 2015 07:47:14 +0000 (16:47 +0900)] 
po-mode: Better C format string highlighting

* po-mode.el (po-font-lock-keywords): Support all possible length
modifiers in C89/C99 format strings.

10 years agointl: Merge from glibc
Will Newton [Wed, 21 Jan 2015 02:55:02 +0000 (11:55 +0900)] 
intl: Merge from glibc

* bindtextdom.c: Update copyright to use year ranges.
* dcgettext.c: Update copyright to use year ranges.
[_LIBC]: Use libc_hidden_def instead of INTDEF.
* dcigettext.c: Update copyright to use year ranges.
Test HAVE_TSEARCH with #ifdef rather than #if.
(DCIGETTEXT) [_LIBC]: Use __current_locale_name instead of
_current_locale_name.
* dcngettext.c: Update copyright to use year ranges.
* dgettext.c: Update copyright to use year ranges.
[_LIBC]: Remove use of INTUSE macro.
* dngettext.c: Update copyright to use year ranges.
* explodename.c: Likewise.
* finddomain.c: Update copyright to use year ranges.
(_nl_finddomain_subfreeres): Use void in no-arguments function
definition.
* gettext.c: Update copyright to use year ranges.
[_LIBC]: Remove use of INTUSE macro.
* gettextP.h: Update copyright to use year ranges.
[_LIBC]: Forward declaration of struct loaded_domain.
* gmo.h: Update copyright to use year ranges.
* hash-string.c: Likewise.
* hash-string.h: Likewise.
* l10nflist.c: Update copyright to use year ranges.
[_LIBC]: Remove use of INTUSE macro.
Wrap pop function in [!ARCH_POP].
* loadinfo.h: Update copyright to use year ranges.
* loadmsgcat.c: Likewise.
* localealias.c: Update copyright to use year ranges.
Test ENABLE_RELOCATABLE with #ifdef rather than #if.
[_LIBC]: Use __strcasecmp_l for strcasecmp.
[_LIBC]: Use __fgets_unlocked for FGETS.
Test HAVE_DECL_FGETS_UNLOCKED with #ifdef rather than #if.
Test HAVE_DECL_FEOF_UNLOCKED with #ifdef rather than #if.
(read_alias_file) [_LIBC]: Open file with O_CLOEXEC.
(extend_alias_table): Use void in no-arguments function
definition.
* ngettext.c: Update copyright to use year ranges.
* plural-exp.c: Update copyright to use year ranges.
Test __APPLE_CC__ with #ifdef rather than #if.
(GERMANIC_PLURAL): Make const.
(init_germanic_plural): Use void in no-arguments function
definition.
* plural-exp.h: Update copyright to use year ranges.
(GERMANIC_PLURAL): Make const.
* plural.y: Update copyright to use year ranges.
* textdomain.c: Likewise.

10 years agoUpdate Gnulib
Daiki Ueno [Tue, 20 Jan 2015 09:33:47 +0000 (18:33 +0900)] 
Update Gnulib

10 years agoUpdate Gnulib
Daiki Ueno [Tue, 20 Jan 2015 07:14:30 +0000 (16:14 +0900)] 
Update Gnulib

10 years agodesktop: Avoid useless warning for group header
Daiki Ueno [Fri, 16 Jan 2015 10:01:34 +0000 (19:01 +0900)] 
desktop: Avoid useless warning for group header

Reported by Marek Černocký at:
<https://savannah.gnu.org/bugs/?44005>
* gettext-tools/src/read-desktop.c (desktop_lex): Fix
"invalid non-blank character" check after reading a group header.
* gettext-tools/tests/xgettext-desktop-1: Check "invalid non-blank
character" warning.

10 years agoc++: Fix commit 4dfe1c46
Daiki Ueno [Tue, 13 Jan 2015 06:29:35 +0000 (15:29 +0900)] 
c++: Fix commit 4dfe1c46

* gettext-tools/src/x-c.c (phase5_get): Reset raw_expected at the
beginning of the function.
* gettext-tools/tests/xgettext-c-20: Improve test coverage of raw string
tests.

10 years agoc++: Make C++11 raw string recognition stricter
Daiki Ueno [Tue, 13 Jan 2015 03:09:08 +0000 (12:09 +0900)] 
c++: Make C++11 raw string recognition stricter

Reported by Vaclav Slavik at:
<http://savannah.gnu.org/bugs/?43970>.
* gettext-tools/src/x-c.c (struct token_ty): New field 'escape'.
(struct xgettext_token_ty): New field 'escape'.
(phase5_get): Recognize raw strings more strictly.  Set 'escape'
field of token appropriately for string literals.
(extract_parenthesized): Respect 'escape' field of token.

* gettext-tools/tests/xgettext-c-20: Adjust to the latest xgettext C++
scanner change; don't accept unbalanced prefix in raw string literal.

10 years agoc++: Differentiate scanning logic from C
Daiki Ueno [Tue, 13 Jan 2015 03:00:35 +0000 (12:00 +0900)] 
c++: Differentiate scanning logic from C

To enable raw string literals only in C++, add a flag indicating
the current source language is C++.
Suggested by Vaclav Slavik at:
<https://savannah.gnu.org/bugs/?43970>.

* gettext-tools/src/x-c.h (extract_cxx): New declaration.
(SCANNERS_C): Use extract_cxx for "C++".
* gettext-tools/src/x-c.c (cxx_extensions): New variable.
(phase5_get): Respect cxx_extensions and recognize raw string
literals only when it is set.
(extract_cxx): New function.
(extract_c, extract_objc): Reset cxx_extensions.

* gettext-tools/tests/xgettext-c-20: Adjust the source file name
from *.c to *.cc to enable handling of raw string literals.

10 years agoexamples: Make hello-c-gnome3 translator friendly
Daiki Ueno [Thu, 8 Jan 2015 02:09:14 +0000 (11:09 +0900)] 
examples: Make hello-c-gnome3 translator friendly

Suggested by Benno Schulenberg in:
<https://lists.gnu.org/archive/html/bug-gettext/2015-01/msg00003.html>.

* hello-c-gnome3/hello.gschema.xml: Use "use-markup" property
instead of "sensitive", to clarify the meaning of the extracted
strings.
* hello-c-gnome3/hello.c (HelloApplicationWindow): Rename the
"label2" member to "label".
(update_content): New function.
(clicked_callback): Rename from quit_callback and call
update_content instead of quitting.  All callers changed.
* hello-c-gnome3/hello.ui: Abolish the first label and put a
translatable text inside the button.

10 years agodoc: Document Vala language support
Daiki Ueno [Mon, 5 Jan 2015 09:05:13 +0000 (18:05 +0900)] 
doc: Document Vala language support

10 years agoTHANKS: Update
Daiki Ueno [Sat, 3 Jan 2015 23:45:06 +0000 (08:45 +0900)] 
THANKS: Update

10 years agointl: Add missing libintl.h dependency from pluralx.$lo
Václav Slavík [Sat, 3 Jan 2015 23:39:29 +0000 (08:39 +0900)] 
intl: Add missing libintl.h dependency from pluralx.$lo

plural(x).c depends on libintl.h if ENABLE_NLS, but the makefile
didn't have corresponding dependency for pluralx.c, because
d2d04ba forgot to add it.  Fix by using $(PLURAL_OBJECT) for the
dependency rule too.
* Makefile.in ($(PLURAL_OBJECT)): Depend on libintl.h.

10 years agobuild-aux: Update texinfo.tex to 2014-12-03.16
Daiki Ueno [Thu, 25 Dec 2014 04:04:47 +0000 (13:04 +0900)] 
build-aux: Update texinfo.tex to 2014-12-03.16

* build-aux/texinfo.tex: Update to 2014-12-03.16.  Needed because
the original texinfo does not allow @heading usage inside
@enumeration and texi2dvi fails due to this.

10 years agoRelease 0.19.4 v0.19.4
Daiki Ueno [Wed, 24 Dec 2014 06:33:18 +0000 (15:33 +0900)] 
Release 0.19.4

10 years agoPrepare for 0.19.4
Daiki Ueno [Tue, 9 Dec 2014 08:44:38 +0000 (17:44 +0900)] 
Prepare for 0.19.4

10 years agoUpdate translations
Daiki Ueno [Tue, 9 Dec 2014 08:55:25 +0000 (17:55 +0900)] 
Update translations

10 years agoconfigure: Also distribute lzip-compressed tarballs
Daiki Ueno [Wed, 24 Dec 2014 04:01:04 +0000 (13:01 +0900)] 
configure: Also distribute lzip-compressed tarballs

* configure.ac (AM_INIT_AUTOMAKE): Add dist-lzip.

10 years agognulib-local: Suppress compiler warning with -Wunused
Daiki Ueno [Wed, 24 Dec 2014 04:38:25 +0000 (13:38 +0900)] 
gnulib-local: Suppress compiler warning with -Wunused

* lib/diffseq.h.diff: New file.

10 years agoNEWS: Mention Bash ANSI-C quoting change
Daiki Ueno [Thu, 18 Dec 2014 06:15:18 +0000 (15:15 +0900)] 
NEWS: Mention Bash ANSI-C quoting change

10 years agosh: Test Bash ANSI-C quoting
Daiki Ueno [Thu, 18 Dec 2014 03:18:22 +0000 (12:18 +0900)] 
sh: Test Bash ANSI-C quoting

* xgettext-sh-3: Test Bash ANSI-C quoting.

10 years agosh: Fix handling of Bash ANSI-C quoting
Daiki Ueno [Thu, 18 Dec 2014 03:17:51 +0000 (12:17 +0900)] 
sh: Fix handling of Bash ANSI-C quoting

* x-sh.c (read_word): Use phase1 instead of phase2 for Bash ANSI-C
escape sequences.  Also handle '\"' and '\E'.

10 years agosh: Fix typo
Daiki Ueno [Wed, 17 Dec 2014 03:48:19 +0000 (12:48 +0900)] 
sh: Fix typo

* x-sh.c (phase2_getc): Fix typo: debackslahificication ->
debackslashification.

10 years agoRemove init-package-version.m4
Daiki Ueno [Tue, 16 Dec 2014 09:00:43 +0000 (18:00 +0900)] 
Remove init-package-version.m4

* m4/init-package-version.m4: Remove unused file.  The package
name and version number are now obtained from git-version-gen.

10 years agoBackport iOS check from Gnulib
Daiki Ueno [Tue, 16 Dec 2014 08:59:43 +0000 (17:59 +0900)] 
Backport iOS check from Gnulib

* gnulib-local/lib/unistd.in.h.diff: Update.

10 years agoWork around interoperability with preinstalled libunistring
Daiki Ueno [Mon, 15 Dec 2014 07:52:10 +0000 (16:52 +0900)] 
Work around interoperability with preinstalled libunistring

* modules/unilbrk/base.diff: New file; bump minimum version of
unilbrk.h.

10 years agodesktop: Suppress compiler warning
Daiki Ueno [Fri, 12 Dec 2014 08:33:36 +0000 (17:33 +0900)] 
desktop: Suppress compiler warning

* read-desktop.c (desktop_parse): Check and ignore
token_type_other.

10 years agotests: Check invalid memory access in Lisp/Scheme
Daiki Ueno [Fri, 12 Dec 2014 08:20:23 +0000 (17:20 +0900)] 
tests: Check invalid memory access in Lisp/Scheme

* format-lisp-2, format-scheme-2: Test type compatibility with
non-strict checking mode.

10 years agolisp, scheme: Avoid invalid memory access
Daiki Ueno [Fri, 12 Dec 2014 08:18:51 +0000 (17:18 +0900)] 
lisp, scheme: Avoid invalid memory access

* format-lisp.c (make_intersected_list): Don't dereference
potentially released memory.  'append_repeated_to_initial' may
release the LIST->element.  Spotted by clang-analyzer.
* format-scheme.c (make_intersected_list): Likewise.

10 years agointl: Bump m4 serial
Daiki Ueno [Wed, 10 Dec 2014 04:05:20 +0000 (13:05 +0900)] 
intl: Bump m4 serial

* intl.m4, po.m4: Bump serial to avoid any conflict with Gnulib's
version after Gnulib commit 71be4c87.

10 years agoautogen.sh: Copy intl.m4 and po.m4
Daiki Ueno [Wed, 10 Dec 2014 03:30:07 +0000 (12:30 +0900)] 
autogen.sh: Copy intl.m4 and po.m4

* autogen.sh: Copy intl.m4 and po.m4 to gettext-tools, if Gnulib's
version are older.

10 years agomsgfmt: Suppress compiler warning
Daiki Ueno [Wed, 10 Dec 2014 03:10:16 +0000 (12:10 +0900)] 
msgfmt: Suppress compiler warning

* msgl-check.c (check_header_entry): Don't declare unused variable
'nrequiredfields'.

10 years agomaint: Update THANKS file
Daiki Ueno [Wed, 10 Dec 2014 02:55:31 +0000 (11:55 +0900)] 
maint: Update THANKS file

* THANKS: Add contributors since 0.18.2.

10 years agotests: Fix the last change to gettext-8-prg.c
Daiki Ueno [Tue, 9 Dec 2014 10:15:59 +0000 (19:15 +0900)] 
tests: Fix the last change to gettext-8-prg.c

* gettext-8-prg.c: Include <assert.h>.
(main): Check return value of 'gettext'.