]> git.ipfire.org Git - thirdparty/gettext.git/log
thirdparty/gettext.git
11 years agotests: Add test for msgfilter plural handling
Daiki Ueno [Thu, 15 May 2014 06:37:49 +0000 (15:37 +0900)] 
tests: Add test for msgfilter plural handling

11 years agotests: Add test for msgexec plural handling
Daiki Ueno [Thu, 15 May 2014 06:18:35 +0000 (15:18 +0900)] 
tests: Add test for msgexec plural handling

11 years agomsgexec, msgfilter: Fix typo in comments
Stanislav Brabec [Wed, 14 May 2014 21:34:48 +0000 (23:34 +0200)] 
msgexec, msgfilter: Fix typo in comments

Refere to the correct environment variables MSG{EXEC,FILTER}_MSGCTXT
and MSG{EXEC,FILTER}_MSGCTXT in comments.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
11 years agomsgfilter: Implement plural support
Stanislav Brabec [Thu, 15 May 2014 03:00:53 +0000 (12:00 +0900)] 
msgfilter: Implement plural support

* msgfilter.c (process_message): Set or unset
MSGFILTER_MSGID_PLURAL and MSGFILTER_PLURAL_FORM.

11 years agomsgexec: Implement plural support
Stanislav Brabec [Thu, 15 May 2014 03:00:01 +0000 (12:00 +0900)] 
msgexec: Implement plural support

* msgexec.c (process_string): Set or unset MSGEXEC_MSGID_PLURAL.
(process_message): Set or unset MSGEXEC_PLURAL_FORM.

11 years agotests: Don't assume ga_IE locale is present
Daiki Ueno [Thu, 15 May 2014 02:57:54 +0000 (11:57 +0900)] 
tests: Don't assume ga_IE locale is present

* msginit-3: Fix charset value after msginit invocation.

11 years agoFix typo in commit 2a644d7a
Daiki Ueno [Wed, 14 May 2014 09:48:40 +0000 (18:48 +0900)] 
Fix typo in commit 2a644d7a

11 years agoRemove non-existing regex.diff from distribution
Daiki Ueno [Wed, 14 May 2014 08:59:16 +0000 (17:59 +0900)] 
Remove non-existing regex.diff from distribution

11 years agoUpdate after gnulib changed.
Daiki Ueno [Wed, 14 May 2014 08:42:09 +0000 (17:42 +0900)] 
Update after gnulib changed.

11 years agoUpdate Gnulib
Daiki Ueno [Wed, 14 May 2014 08:35:35 +0000 (17:35 +0900)] 
Update Gnulib

11 years agotests: Fix errors when CFLAGS contains --coverage
Daiki Ueno [Wed, 14 May 2014 08:10:05 +0000 (17:10 +0900)] 
tests: Fix errors when CFLAGS contains --coverage

* lang-c: Supply $CFLAGS to the libtool link command.
* lang-objc: Likewise.

11 years agoUpdate .gitignore
Daiki Ueno [Wed, 14 May 2014 07:53:17 +0000 (16:53 +0900)] 
Update .gitignore

11 years agomsgfmt: Report error on accelerator mismatch
Daiki Ueno [Wed, 14 May 2014 07:44:31 +0000 (16:44 +0900)] 
msgfmt: Report error on accelerator mismatch

* msgl-check.c (check_pair): Increment error count on missing
accelerator character or too many accelerators.

11 years agofilter-quote: Minor refactoring of string copy
Daiki Ueno [Wed, 14 May 2014 02:42:34 +0000 (11:42 +0900)] 
filter-quote: Minor refactoring of string copy

11 years agotests: Improve test coverage
Daiki Ueno [Wed, 14 May 2014 02:42:19 +0000 (11:42 +0900)] 
tests: Improve test coverage

11 years agobuild: Fallback $docdir to $datarootdir/doc/gettext
Daiki Ueno [Tue, 13 May 2014 23:09:41 +0000 (08:09 +0900)] 
build: Fallback $docdir to $datarootdir/doc/gettext

Problem reported by Santiago Vila in
<http://lists.gnu.org/archive/html/bug-gettext/2014-05/msg00014.html>.
* gettext-runtime/configure.ac: Adjust $docdir assuming that
AC_PACKAGE_TARNAME is set.
* gettext-tools/configure.ac: Likewise.
* gettext-tools/examples/configure.ac: Likewise.

11 years agotests: Adjust the error message check after commit 4aaaccd2
Daiki Ueno [Tue, 13 May 2014 06:26:08 +0000 (15:26 +0900)] 
tests: Adjust the error message check after commit 4aaaccd2

* msgfmt-10: Increment expected error count.

11 years agomsgfmt: Accumulate errors when parsing the PO header
Daiki Ueno [Tue, 13 May 2014 06:16:39 +0000 (15:16 +0900)] 
msgfmt: Accumulate errors when parsing the PO header

Problem reported by Peter Eisentraut at
<https://savannah.gnu.org/bugs/?40262>.
* msgl-check.c (check_header_entry): Return the number of errors.
(check_message): Check the return value of check_header_entry.

11 years agoproject-id: Add missing quotes around `pwd` for basename
Daiki Ueno [Mon, 12 May 2014 20:46:25 +0000 (05:46 +0900)] 
project-id: Add missing quotes around `pwd` for basename

Problem reported at <http://bugs.debian.org/654779>.
* project-id: Quote argument of the basename command.

11 years agopo: Set PACKAGE_GNU to empty by default, to preserve the old behavior
Daiki Ueno [Sat, 10 May 2014 20:56:44 +0000 (05:56 +0900)] 
po: Set PACKAGE_GNU to empty by default, to preserve the old behavior

11 years agotests: Improve test coverage
Daiki Ueno [Mon, 12 May 2014 09:20:59 +0000 (18:20 +0900)] 
tests: Improve test coverage

11 years agomsgfilter: Fix quote handling of doubled grave charaters
Daiki Ueno [Mon, 12 May 2014 09:14:54 +0000 (18:14 +0900)] 
msgfilter: Fix quote handling of doubled grave charaters

* filter-quote.c (convert_ascii_quote_to_unicode): Fix handling of
doubled grave characters.

11 years agobuild: Remove unused variables
Daiki Ueno [Mon, 12 May 2014 08:16:11 +0000 (17:16 +0900)] 
build: Remove unused variables

11 years agobuild: Don't regenerate man.1 if man.1.in does not exist
Daiki Ueno [Mon, 12 May 2014 07:17:03 +0000 (16:17 +0900)] 
build: Don't regenerate man.1 if man.1.in does not exist

* Makefile.am (gettext.1 ngettext.1): Don't try to replace
@localedir@ in .1.in if x-to-1 fails; rewrite the target using the
snippet in the Autoconf manual.

11 years agobuild: Fix Woe32 cross build
Daiki Ueno [Mon, 12 May 2014 06:18:38 +0000 (15:18 +0900)] 
build: Fix Woe32 cross build

* msgfmt.c (add_languages): New function split from get_languages.
(get_languages): Use add_languages instead of manually parsing
LINGUAS envvar with strtok_r possibly provided by libgettextlib.

* x-c.h (literalstring_c): Remove unnecessary DLL_VARIABLE.
* xgettext.c (arglist_parser_alloc): Use LET_NONE instead of 0.
(arglist_parser_remember): Likewise.
* xgettext.h (enum literalstring_escape_type): New enum value
LET_NONE.

* woe32dll/gettextsrc-exports.c: Don't export line_comment and
po_lex_iconv if undefined.

11 years agointl: Define possibly undefined _GL_UNUSED in xsize.c
Daiki Ueno [Sat, 10 May 2014 20:44:35 +0000 (05:44 +0900)] 
intl: Define possibly undefined _GL_UNUSED in xsize.c

11 years agodoc: Fix wording
Daiki Ueno [Sat, 10 May 2014 07:17:56 +0000 (16:17 +0900)] 
doc: Fix wording

11 years agotests: Fix file modes
Daiki Ueno [Sat, 10 May 2014 07:15:55 +0000 (16:15 +0900)] 
tests: Fix file modes

11 years agoUpdate after Gnulib changed.
Daiki Ueno [Sat, 10 May 2014 03:42:25 +0000 (12:42 +0900)] 
Update after Gnulib changed.

11 years agoman: Don't depend on the binary executable
Daiki Ueno [Sat, 10 May 2014 03:40:57 +0000 (12:40 +0900)] 
man: Don't depend on the binary executable

11 years agoNEWS: Mention msgattrib --empty
Daiki Ueno [Sat, 10 May 2014 00:48:30 +0000 (09:48 +0900)] 
NEWS: Mention msgattrib --empty

11 years agomsgattrib: Add --empty option
Guido Flohr [Thu, 10 Apr 2014 08:40:52 +0000 (17:40 +0900)] 
msgattrib: Add --empty option

11 years agovala: Interpret string literals lazily
Daiki Ueno [Fri, 9 May 2014 08:00:48 +0000 (17:00 +0900)] 
vala: Interpret string literals lazily

* x-vala.c (P7_EOF, P7_STRING_END, P7_QUOTES, P7_QUOTE, P7_NEWLINE)
(UNICODE, IS_UNICODE, UNICODE_VALUE): Remove.
(phase7_getc): Remove.
(phase7_ungetc): Remove.
(phase3_get): Use 'phase2_get' directly to extract string
literals; use 'arglist_parser_remember_literal' instead of
'arglist_parser_remember'.
(literalstring_c): Declare external variable.
(extract_balanced): Remove the
'xgettext_current_source_encoding' setting to prevent encoding
conversion around 'arglist_parser_done'.
(token_ty): New field 'escape'.
* x-vala.h (SCANNERS_VALA): Register 'literalstring_c' as a
literalstring_parser.

11 years agoc: Interpret string literals lazily
Daiki Ueno [Wed, 7 May 2014 09:51:14 +0000 (18:51 +0900)] 
c: Interpret string literals lazily

* x-c.c (P7_EOF, P7_STRING_END, P7_QUOTES, P7_QUOTE, P7_NEWLINE)
(UNICODE, IS_UNICODE, UNICODE_VALUE): Remove.
(phase7_get): Remove.
(phase7_ungetc): Remove.
(phase5_get): Use 'phase3_get' directly to extract string
literals; use 'arglist_parser_remember_literal' instead of
'arglist_parser_remember'.
(literalstring_parse): New function.
(literalstring_c): New variable.
(extract_parenthesized): Remove the
'xgettext_current_source_encoding' setting to prevent encoding
conversion around 'arglist_parser_done'.
* x-c.h (SCANNERS_C): Register 'literalstring_c' as a
literalstring_parser.
(literalstring_c): New variable declaration.

11 years agoxgettext: Provide a way to interpret string literals lazily
Daiki Ueno [Wed, 7 May 2014 09:48:25 +0000 (18:48 +0900)] 
xgettext: Provide a way to interpret string literals lazily

* xgettext.c (extract_ty): New field 'literalstring_parser'.
(current_literalstring_parser): New variable.
(extract_from_file): Set 'current_literalstring_parser'.
(savable_comment_convert_encoding): New function.
(arglist_parser_remember_literal): New function.
(arglist_parser_remember): Call 'arglist_parser_remember_literal'.
(arglist_parser_done): Call literalstring_parser on msgctxt,
msgid, and msgid_plural before calling 'remember_a_message';
convert encoding of msgid_comment.
* x-*.h: Register 'literalstring_parser' through SCANNER_*.
* xgettext.h (enum literalstring_escape_type): New enum.
(struct literalstring_parser): New struct.
(struct partial_call): New fields 'msgctxt_escape',
'msgid_escape', and 'msgid_plural_escape'.
(arglist_parser_remember_literal): New function declaration.
(savable_comment_convert_encoding): New function declaration.

11 years agoxgettext: Make mixed_string_buffer_done always return UTF-8 string
Daiki Ueno [Wed, 7 May 2014 03:32:27 +0000 (12:32 +0900)] 
xgettext: Make mixed_string_buffer_done always return UTF-8 string

11 years agoexamples: Don't fail on "make install" when a PO file is missing
Daiki Ueno [Tue, 6 May 2014 00:54:33 +0000 (09:54 +0900)] 
examples: Don't fail on "make install" when a PO file is missing

* Makefile.am (install-data-local): Don't fail if a PO file does
not exist, but warn user to do "make dist".

11 years agodoc: Add tips to maintain PO files in the repository
Daiki Ueno [Mon, 5 May 2014 06:21:59 +0000 (15:21 +0900)] 
doc: Add tips to maintain PO files in the repository

* gettext.texi (Translations under Version Control): New section.

11 years agodoc: Talk about generic VCS, not CVS
Daiki Ueno [Mon, 5 May 2014 02:33:23 +0000 (11:33 +0900)] 
doc: Talk about generic VCS, not CVS

* gettext.texi (Version Control Issues): Rename from "CVS Issues";
talk about generic issues when using version control systems.

11 years agomaint: Update Admin/plans
Daiki Ueno [Sun, 4 May 2014 20:37:56 +0000 (05:37 +0900)] 
maint: Update Admin/plans

11 years agoNEWS: Mention the prefixed comment-tag change
Daiki Ueno [Sun, 4 May 2014 10:01:24 +0000 (19:01 +0900)] 
NEWS: Mention the prefixed comment-tag change

11 years agoAdd missing file tests/xgettext-11
Daiki Ueno [Sun, 4 May 2014 09:55:19 +0000 (18:55 +0900)] 
Add missing file tests/xgettext-11

11 years agoconfigure: require automake >= 1.13
Jehan [Sat, 3 May 2014 10:26:50 +0000 (22:26 +1200)] 
configure: require automake >= 1.13

Macro AM_EXTRA_RECURSIVE_TARGETS defined in Automake 1.13.
* configure.ac (AM_INIT_AUTOMAKE): Require Automake 1.13 or later.

11 years agotests: Add test for prefixed comment tag
Daiki Ueno [Sat, 3 May 2014 02:10:24 +0000 (11:10 +0900)] 
tests: Add test for prefixed comment tag

* xgettext-11: New file.
* Makefile.am (TESTS): Add new test.

11 years agoxgettext: Recognize comment tag prefix
Daiki Ueno [Mon, 21 Apr 2014 04:32:00 +0000 (13:32 +0900)] 
xgettext: Recognize comment tag prefix

Reported by Jiang Xin in
<http://article.gmane.org/gmane.comp.version-control.git/246462>.
* xgettext.c (remember_a_message): Discard a string prefixed to the comment
tag from all remaining comment lines.

11 years agoNEWS: Mention Scheme scanner change
Daiki Ueno [Sat, 3 May 2014 01:11:14 +0000 (10:11 +0900)] 
NEWS: Mention Scheme scanner change

11 years agoUpdate ChangeLog.
Daiki Ueno [Sat, 3 May 2014 01:10:48 +0000 (10:10 +0900)] 
Update ChangeLog.

11 years agoNEWS: Mention more changes for 0.19
Daiki Ueno [Fri, 2 May 2014 20:15:43 +0000 (05:15 +0900)] 
NEWS: Mention more changes for 0.19

11 years agoc: Support C99-style Unicode character escapes
Daiki Ueno [Fri, 2 May 2014 19:57:37 +0000 (04:57 +0900)] 
c: Support C99-style Unicode character escapes

* x-c.c: Include assert.h and po-charset.h.
(P7_QUOTES, P7_QUOTE, P7_NEWLINE): Redefine as a negative integer.
(P7_EOF, P7_STRING_END): New definitions.
(UNICODE): New macro.
(IS_UNICODE): New macro.
(UNICODE_VALUE): New macro.
(phase7_getc): Recognize "\unnnn" and "\Unnnnnnnn".
(phase5_get): Use mixed_string_buffer for parse string literal.

11 years agoxgettext: Allow mixed_string_buffer_done to return non-UTF-8 string
Daiki Ueno [Fri, 2 May 2014 19:53:05 +0000 (04:53 +0900)] 
xgettext: Allow mixed_string_buffer_done to return non-UTF-8 string

11 years agoFix typo in commit f597467a
Daiki Ueno [Fri, 2 May 2014 19:29:37 +0000 (04:29 +0900)] 
Fix typo in commit f597467a

11 years agoxgettext: Fix memleaks around wrong usage of mixed_string_buffer_done
Daiki Ueno [Fri, 2 May 2014 12:18:33 +0000 (21:18 +0900)] 
xgettext: Fix memleaks around wrong usage of mixed_string_buffer_done

11 years agoxgettext: Add more comments to mixed_string_buffer usage
Daiki Ueno [Fri, 2 May 2014 09:13:33 +0000 (18:13 +0900)] 
xgettext: Add more comments to mixed_string_buffer usage

11 years agovala: Support C99-style Unicode escapes
Daiki Ueno [Fri, 2 May 2014 08:39:37 +0000 (17:39 +0900)] 
vala: Support C99-style Unicode escapes

11 years agoxgettext: Factor out commonly used mixed_string_buffer
Daiki Ueno [Fri, 2 May 2014 06:58:04 +0000 (15:58 +0900)] 
xgettext: Factor out commonly used mixed_string_buffer

* x-python.c (init_mixed_string_buffer)
(mixed_string_buffer_append_byte)
(mixed_string_buffer_append_unicode_grow)
(mixed_string_buffer_append_unicode)
(mixed_string_buffer_flush_utf16_surr)
(mixed_string_buffer_flush_curr_buffer)
(mixed_string_buffer_append, mixed_string_buffer_result)
(free_mixed_string_buffer): Move to...
* xgettext.c: ...here.
(mixed_string_buffer_alloc): Rename from init_mixed_string_buffer.
(mixed_string_buffer_append_to_curr_buffer): Rename from
mixed_string_buffer_append_byte.
(mixed_string_buffer_append_to_utf8_buffer): Rename from
mixed_string_buffer_append_unicode.
(mixed_string_buffer_grow_utf8_buffer): Rename from
mixed_string_buffer_append_unicode_grow.
(mixed_string_buffer_append_char): Split from
mixed_string_buffer_append.
(mixed_string_buffer_append_unicode): Split from
mixed_string_buffer_append.
(mixed_string_buffer_done): New function merging
mixed_string_buffer_result and free_mixed_string_buffer.
* xgettext.h (mixed_string_buffer): New struct moved from
x-python.c; add logical_file_name and line_number fields.
(mixed_string_buffer_alloc): New function declaration.
(mixed_string_buffer_append_char): New function declaration.
(mixed_string_buffer_append_unicode): New function declaration.
(mixed_string_buffer_done): New function declaration.
* x-javascript.c (init_mixed_string_buffer)
(mixed_string_buffer_append_byte)
(mixed_string_buffer_append_unicode_grow)
(mixed_string_buffer_append_unicode)
(mixed_string_buffer_flush_utf16_surr)
(mixed_string_buffer_flush_curr_buffer)
(mixed_string_buffer_append, mixed_string_buffer_result)
(free_mixed_string_buffer): Remove.

11 years agoFix commit 4dc36d2f
Daiki Ueno [Fri, 2 May 2014 03:06:57 +0000 (12:06 +0900)] 
Fix commit 4dc36d2f

11 years agoMakefile.in.in: Rename DIST_DEPENDS_ON_POT to DIST_DEPENDS_ON_UPDATE_PO
Daiki Ueno [Fri, 2 May 2014 01:38:43 +0000 (10:38 +0900)] 
Makefile.in.in: Rename DIST_DEPENDS_ON_POT to DIST_DEPENDS_ON_UPDATE_PO

11 years agomaint: Update Admin/plans
Daiki Ueno [Fri, 2 May 2014 00:16:53 +0000 (09:16 +0900)] 
maint: Update Admin/plans

11 years agoMakefile.in.in: Turn {POFILES,DISTFILES}DEPS into yes/no options
Daiki Ueno [Thu, 1 May 2014 23:43:17 +0000 (08:43 +0900)] 
Makefile.in.in: Turn {POFILES,DISTFILES}DEPS into yes/no options

Preserve the previous behavior even if a user forgot to update
Makevars, after calling autopoint.
* Makevars (PO_DEPENDS_ON_POT): Rename from POFILESDEPS and turn
it into a yes/no option.
(DIST_DEPENDS_ON_POT): Rename from DISTFILESDEPS and turn it into
a yes/no option.

11 years agoUpdate ChangeLog.
Daiki Ueno [Thu, 1 May 2014 09:36:47 +0000 (18:36 +0900)] 
Update ChangeLog.

11 years agoMakefile.in.in: Add an option to claim the package as GNU/non-GNU
Daiki Ueno [Thu, 1 May 2014 09:26:33 +0000 (18:26 +0900)] 
Makefile.in.in: Add an option to claim the package as GNU/non-GNU
Reporeted by David Shea at:
<https://savannah.gnu.org/bugs/?40520>.
* Makevars (PACKAGE_GNU): New variable.
* Makefile.in.in ($(DOMAIN).pot-update): Don't search for "GNU
packagename" if $(PACKAGE_GNU) is set.

11 years agoMakefile.in.in: Make dependencies of a PO file and 'dist' customizable
Daiki Ueno [Thu, 1 May 2014 04:39:23 +0000 (13:39 +0900)] 
Makefile.in.in: Make dependencies of a PO file and 'dist' customizable

* Makevars (POFILESDEPS): New variable.
(DISTFILESDEPS): New variable.
* Makefile.in.in ($(POFILES)): Depend on $(POFILESDEPS) instead of
$(srcdir)/$(DOMAIN).pot.
(dist distdir): Run $(DISTFILEDEPS) instead of 'update-po'.

11 years agomaint: Remove duplicate files from the repository
Daiki Ueno [Thu, 1 May 2014 02:46:16 +0000 (11:46 +0900)] 
maint: Remove duplicate files from the repository

11 years agointl: Define PRI_MACROS_BROKEN if undefined
Steve Ellcey [Wed, 30 Apr 2014 09:56:31 +0000 (18:56 +0900)] 
intl: Define PRI_MACROS_BROKEN if undefined

* loadmsgcat.c (PRI_MACROS_BROKEN) [_LIBC]: Define to 0, if
undefined.

11 years agoscheme: Recognize GIMP script-fu extension _"abc"
Daiki Ueno [Wed, 30 Apr 2014 08:29:04 +0000 (17:29 +0900)] 
scheme: Recognize GIMP script-fu extension _"abc"

* gettext-tools/src/x-scheme.c (read_object): Recognize _"abc".

11 years agoformat-python-brace: Limit acceptable format specifiers
Daiki Ueno [Wed, 30 Apr 2014 04:20:16 +0000 (13:20 +0900)] 
format-python-brace: Limit acceptable format specifiers

11 years agotests: Don't run a test only successful after "make dist" by default
Daiki Ueno [Tue, 29 Apr 2014 09:21:28 +0000 (18:21 +0900)] 
tests: Don't run a test only successful after "make dist" by default

* Makefile.am (TESTS): Move xgettext-1 to...
(EXTRA_DIST): ...here.

11 years agotests: Add work around for newer Bison version used in autopoint test
Daiki Ueno [Tue, 29 Apr 2014 09:18:38 +0000 (18:18 +0900)] 
tests: Add work around for newer Bison version used in autopoint test

* autopoint-3 (gettext_datadir): Don't regenerate intl/plural.c.

11 years agoexamples: Don't use KDE build infrastructure when generating POT
Daiki Ueno [Fri, 25 Apr 2014 06:41:23 +0000 (15:41 +0900)] 
examples: Don't use KDE build infrastructure when generating POT

11 years agobuild: Turn update-po.sh into a Makefile rule
Daiki Ueno [Fri, 25 Apr 2014 03:31:11 +0000 (12:31 +0900)] 
build: Turn update-po.sh into a Makefile rule

Suggested by Andreas Stricker in:
<https://lists.gnu.org/archive/html/bug-gettext/2014-04/msg00020.html>.
* configure.ac (maintainer-update-po): New recursive rule.
* update-po.sh: Remove.
* autogen.sh: Don't mention update-po.sh.
* Makefile.am (maintainer-update-po-local): New rule.
* gettext-runtime/Makefile.am (maintainer-update-po): New rule.
* gettext-runtime/man/Makefile.am (update-man1): Remove; add explicit
dependency on the executable to each .1 rule.
* gettext-tools/man/Makefile.am (update-man1): Remove; add explicit
dependency on the executable to each .1 rule.

11 years agoexamples: Rename gnome3 XML files shorter than 99
Daiki Ueno [Thu, 24 Apr 2014 03:27:17 +0000 (12:27 +0900)] 
examples: Rename gnome3 XML files shorter than 99

* gettext-tools/examples/hello-c-gnome3/hello.gresource.xml: Rename
from org.gnu.gettext.examples.hello.gresource.xml.
* gettext-tools/examples/hello-c-gnome3/hello-gschema.xml: Rename
from org.gnu.gettext.examples.hello.gschema.xml.
* gettext-tools/examples/hello-c-gnome3/po/POTFILES.in: Adjust the
file name change.
* gettext-tools/examples/hello-c-gnome3/po/Makefile.am: Adjust the
file name change.
* gettext-tools/examples/Makefile.am: Adjust the file name change.
* gettext-tools/examples/po/Makefile.am: Adjust the file name change.

11 years agointl: Remove generated plural.c from the repository
Daiki Ueno [Thu, 24 Apr 2014 03:13:57 +0000 (12:13 +0900)] 
intl: Remove generated plural.c from the repository

11 years agointl: Support older Bison versions
Daiki Ueno [Thu, 24 Apr 2014 02:46:58 +0000 (11:46 +0900)] 
intl: Support older Bison versions

* gettext-runtime/intl/plural.y: Use %lex-param / %parse-param instead
of %param, which is only available in Bison 3.0.1 or later.

11 years agoexamples: Lower the required gettext version to 0.15
Daiki Ueno [Wed, 23 Apr 2014 12:29:26 +0000 (21:29 +0900)] 
examples: Lower the required gettext version to 0.15

11 years agointl: Port to Bison 3.0
Daiki Ueno [Wed, 23 Apr 2014 08:44:46 +0000 (17:44 +0900)] 
intl: Port to Bison 3.0

* gettext-runtime/intl/plural.y: Don't use removed YYLEX_PARAM and
YYPARSE_PARAM macros; replace deprecated %pure_parser with
'%define api.pure full'; adjust yylex/yyerror arglist.
* gettext-runtime/intl/plural-exp.h (PLURAL_PARSE): Use explicit type
'struct parse_args *arg' for ARG.

11 years agoautopoint: Unset variables known to interfere with common tools
Daiki Ueno [Wed, 23 Apr 2014 02:57:14 +0000 (11:57 +0900)] 
autopoint: Unset variables known to interfere with common tools

Reported by Jan Cholasta at:
<https://bugzilla.redhat.com/show_bug.cgi?id=801374>.
* autopoint.in: Unset CDPATH, CLICOLOR_FORCE, and GREP_OPTIONS.
* gettextize.in: Unset CLICOLOR_FORCE and GREP_OPTIONS.

11 years agomaint: Mention Git tag based versioning in Admin/release-steps
Daiki Ueno [Tue, 22 Apr 2014 07:05:51 +0000 (16:05 +0900)] 
maint: Mention Git tag based versioning in Admin/release-steps

11 years agobuild: Use Automake 'subdir-objects' option
Roumen Petrov [Sun, 26 Jan 2014 16:53:43 +0000 (18:53 +0200)] 
build: Use Automake 'subdir-objects' option

* gettext-runtime/tests/Makefile.am (AUTOMAKE_OPTIONS): Add 'subdir-objects'.
* gettext-tools/libgettextpo/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
* gettext-tools/libgrep/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
* gettext-tools/src/Makefile.am (AUTOMAKE_OPTIONS): Likewise.

11 years agom4: Apply NM detection fix from Libtool
Daiki Ueno [Tue, 22 Apr 2014 06:00:24 +0000 (15:00 +0900)] 
m4: Apply NM detection fix from Libtool

2013-04-28  Peter Rosin <peda@lysator.liu.se>
libtool: break all the way out when a good nm is found
* m4/libtool.m4 (LT_PATH_NM): Break all the way out on a good
match.

11 years agom4: Revert commit d6690cc7 to libtool.m4
Daiki Ueno [Tue, 22 Apr 2014 05:55:39 +0000 (14:55 +0900)] 
m4: Revert commit d6690cc7 to libtool.m4

Reported by Benjamin Gilbert at:
<https://savannah.gnu.org/bugs/?41203>
With recent libtool, this patch did nothing but fixing the output
message of configure.
* m4/libtool.m4: Remove the special handling of NM detection when
cross-compiling mingw32 on cygwin.

11 years agoUpdate .gitignore
Daiki Ueno [Tue, 22 Apr 2014 04:22:21 +0000 (13:22 +0900)] 
Update .gitignore

11 years agoUpdate after Gnulib changed.
Daiki Ueno [Tue, 22 Apr 2014 03:26:50 +0000 (12:26 +0900)] 
Update after Gnulib changed.

11 years agoUpdate copyright year.
Daiki Ueno [Tue, 22 Apr 2014 03:01:49 +0000 (12:01 +0900)] 
Update copyright year.

11 years agobuild: Use git-version-gen intead of version.sh
Daiki Ueno [Tue, 22 Apr 2014 02:19:38 +0000 (11:19 +0900)] 
build: Use git-version-gen intead of version.sh

* version.sh: Remove.
* autogen.sh: Import git-version-gen from Gnulib.
* Makefile.am (EXTRA_DIST): Add $(top_srcdir)/.version.
(BUILT_SOURCES): Likewise.
($(top_srcdir)/.version): New rule.
(dist-hook): New rule.
* configure.ac: Use git-version-gen in AC_INIT.
* gettext-runtime/configure.ac: Likewise.
* gettext-tools/configure.ac: Likewise.
* gettext-tools/examples/configure.ac: Likewise.
* gettext-runtime/man/Makefile.am: Refer to .version instead of
version.sh.
* gettext-tools/doc/Makefile.am: Likewise.
* gettext-tools/man/Makefile.am: Likewise.

11 years agoRules-quot: Use built-in quot filter if possible
Daiki Ueno [Mon, 21 Apr 2014 08:58:41 +0000 (17:58 +0900)] 
Rules-quot: Use built-in quot filter if possible

11 years agomsgfilter: Fix single quote handling in the quot filter
Daiki Ueno [Mon, 21 Apr 2014 08:54:38 +0000 (17:54 +0900)] 
msgfilter: Fix single quote handling in the quot filter

* filter-quote.c (convert_ascii_quote_to_unicode): Fix single
quote handling to accept multiple quotations in a string.

11 years agoexamples: Quote shell variables in hello-java*/configure
Daiki Ueno [Mon, 21 Apr 2014 07:10:54 +0000 (16:10 +0900)] 
examples: Quote shell variables in hello-java*/configure

When running from xsmallpot.sh, embedded shell-script snippets are
stripped off from configure.ac and some variables are not set.
Make sure to quote them to avoid error.
* hello-java/configure.ac: Quote $BUILDJAVA.
* hello-java-awt/configure.ac: Quote $BUILDJAVAEXE and $BUILDJAVA.
* hello-java-qtjambi/configure.ac: Likewise.
* hello-java-swing/configure.ac: Likewise.

11 years agotests: Don't run system dependent test by default
Daiki Ueno [Mon, 21 Apr 2014 06:56:51 +0000 (15:56 +0900)] 
tests: Don't run system dependent test by default

* Makefile.am (TESTS): Move xgettext-c-1 to...
(EXTRA_DIST): ...here.

11 years agoautogen.sh: Split the regeneration of data files into update.sh
Daiki Ueno [Fri, 18 Apr 2014 09:13:44 +0000 (18:13 +0900)] 
autogen.sh: Split the regeneration of data files into update.sh

* autogen.sh: Separate out PO files update logic to...
* update-po.sh: ...here.
* Makefile.am (EXTRA_DIST): Add update-po.sh.

11 years agoautopoint: Rename gettext_dir to gettext_datadir
Daiki Ueno [Mon, 21 Apr 2014 03:02:01 +0000 (12:02 +0900)] 
autopoint: Rename gettext_dir to gettext_datadir

11 years agoRevert "examples: Don't error out from configure in hello-c-gnome3"
Daiki Ueno [Fri, 18 Apr 2014 08:10:36 +0000 (17:10 +0900)] 
Revert "examples: Don't error out from configure in hello-c-gnome3"

This reverts commit 5536ee522d6a9d60972c78882e2d2761cf9afdc9.
It was not necessary since xsmallpot.sh removes unneeded lines from
configure.ac.

11 years agoautogen.sh: Use included gettext-tools for bootstrap
Daiki Ueno [Thu, 17 Apr 2014 07:56:55 +0000 (16:56 +0900)] 
autogen.sh: Use included gettext-tools for bootstrap

To regenerate POT files, autogen.sh had an implicit dependency on
gettext-tools installed on system.  This prohibited to use any new
features in our examples.  Let autogen.sh use included version of
gettext-tools, by prepending $builddir to the PATH.

11 years agoxgettext: Strip multiple ".in" suffixes from the file name.
Daiki Ueno [Thu, 17 Apr 2014 08:09:20 +0000 (17:09 +0900)] 
xgettext: Strip multiple ".in" suffixes from the file name.

* xgettext.c (main): Strip multiple ".in" suffixes.

11 years agoexamples: Don't error out from configure in hello-c-gnome3
Daiki Ueno [Thu, 17 Apr 2014 08:06:51 +0000 (17:06 +0900)] 
examples: Don't error out from configure in hello-c-gnome3

The configure script shouldn't fail even if there is a fatal
error, to allow the toplevel autogen.sh to regenerate POT files.
* hello-c-gnome3/configure.ac: Don't error out, but warn user.

11 years agomsgfmt: Fix commit cfac1548
Daiki Ueno [Thu, 17 Apr 2014 09:04:31 +0000 (18:04 +0900)] 
msgfmt: Fix commit cfac1548

11 years agomsgfmt: Simplify LINGUAS parsing
Daiki Ueno [Thu, 17 Apr 2014 02:32:53 +0000 (11:32 +0900)] 
msgfmt: Simplify LINGUAS parsing

11 years agoexamples: Add missing XML files to hello-c-gnome3 example
Daiki Ueno [Thu, 17 Apr 2014 02:24:04 +0000 (11:24 +0900)] 
examples: Add missing XML files to hello-c-gnome3 example

11 years agoexamples: Utilize GSettings in hello-c-gnome3 example
Daiki Ueno [Wed, 16 Apr 2014 08:50:17 +0000 (17:50 +0900)] 
examples: Utilize GSettings in hello-c-gnome3 example

11 years agoexamples: Utilize msgfmt --desktop
Daiki Ueno [Wed, 16 Apr 2014 03:10:43 +0000 (12:10 +0900)] 
examples: Utilize msgfmt --desktop

11 years agomsgfmt: Allow any whitespace as a list separator in LINGUAS
Daiki Ueno [Wed, 16 Apr 2014 04:12:59 +0000 (13:12 +0900)] 
msgfmt: Allow any whitespace as a list separator in LINGUAS