]> git.ipfire.org Git - thirdparty/gettext.git/log
thirdparty/gettext.git
11 years agovala: Don't elide comments while parsing string literal
Daiki Ueno [Mon, 2 Jun 2014 21:04:28 +0000 (06:04 +0900)] 
vala: Don't elide comments while parsing string literal

* x-vala.c (phase3_get): Use phase1_getc to read characters inside
a string literal.

11 years agomsgl-check: Treat missing header errors as warnings
Daiki Ueno [Mon, 2 Jun 2014 09:04:41 +0000 (18:04 +0900)] 
msgl-check: Treat missing header errors as warnings

Problem reported by Richard Hughes at
<https://lists.fedoraproject.org/pipermail/devel/2014-June/199539.html>.
After <https://savannah.gnu.org/bugs/?40262>, "msgfmt -c" reports
error on missing PO headers.  However, it turned out to be too strict
for the projects using Launchpad Translations.  Let's relax the check
for the moment and wait for one or two release cycles.
* gettext-tools/src/msgl-check.c (check_header_entry): Report missing
required headers as warning, instead of error.

11 years agopo: Sync gettext-tools/po/Makevars with gettext-runtime/po/Makevars
Daiki Ueno [Mon, 2 Jun 2014 08:20:04 +0000 (17:20 +0900)] 
po: Sync gettext-tools/po/Makevars with gettext-runtime/po/Makevars

* Makevars (PACKAGE_GNU, PO_DEPENDS_ON_POT)
(DIST_DEPENDS_ON_UPDATE_PO): New variables.
* Makevars.template (PACKAGE_GNU, PO_DEPENDS_ON_POT)
(DIST_DEPENDS_ON_UPDATE_PO): New variables.

11 years agoRelease 0.19 v0.19
Daiki Ueno [Sun, 1 Jun 2014 23:07:47 +0000 (08:07 +0900)] 
Release 0.19

11 years agoRegenerate files for 0.19
Daiki Ueno [Sun, 1 Jun 2014 02:22:52 +0000 (11:22 +0900)] 
Regenerate files for 0.19

11 years agoPrepare for 0.19.
Daiki Ueno [Sun, 11 May 2014 00:01:37 +0000 (09:01 +0900)] 
Prepare for 0.19.

11 years agobuild: Handle 'environ' global variable differently on cygwin x86_64
Daiki Ueno [Sun, 1 Jun 2014 23:05:19 +0000 (08:05 +0900)] 
build: Handle 'environ' global variable differently on cygwin x86_64

Problem reported by Vasyl Khalak in:
<https://cygwin.com/ml/cygwin/2013-06/msg00228.html>.
* lib/execute.c.diff: New file.
* lib/spawn-pipe.c.diff: Likewise.
* Makefile.am (EXTRA_DIST): Add new patches.

11 years agobuild: Fix make distcheck
Daiki Ueno [Sun, 1 Jun 2014 09:52:29 +0000 (18:52 +0900)] 
build: Fix make distcheck

* gettext-runtime/man/Makefile.am (EXTRA_DIST): Add $(man_HTML3) so not to
regenerate them on make distcheck.

11 years agodoc: Update from ISO languages database
Daiki Ueno [Sun, 1 Jun 2014 00:28:22 +0000 (09:28 +0900)] 
doc: Update from ISO languages database

* ISO_639: Remove Moldavian. Update Bihari, Bengali, Catalan,
Church Slavic, Divehi, Dzongkha, Ewe, Greek, Spanish, Fijian,
Gaelic, Hebrew, Interlingua, Indonesian, Inupiak, Central Khmer,
Kirghiz, Luxembourgish, Limburgan, Lao, Latvian, Norwegian Bokmal,
North Ndebele, Dutch, Norwegian Nynorsk, South Ndebele, Occitan,
Oromo, Pushto, Rundi, Romanian, Sango, Swati, South Sotho, Tswana,
Tonga, Uighur, Volapuk, Yiddish, and Zhuang.

11 years agomsgexec: Pass previous msgid to the child process
Daiki Ueno [Sat, 31 May 2014 06:44:17 +0000 (15:44 +0900)] 
msgexec: Pass previous msgid to the child process

Suggested by Pavel Kharitonov in:
<http://lists.gnu.org/archive/html/bug-gettext/2014-05/msg00022.html>.
* msgexec.c (process_string): Set MSGEXEC_PREV_* envvar.

11 years agomsgfilter: Pass previous msgid to the child process
Daiki Ueno [Sat, 31 May 2014 02:28:39 +0000 (11:28 +0900)] 
msgfilter: Pass previous msgid to the child process

Suggested by Pavel Kharitonov in:
<http://lists.gnu.org/archive/html/bug-gettext/2014-05/msg00022.html>.
* msgfilter.c (process_message): Set MSGFILTER_PREV_* envvar.

11 years agobuild: Fix VPATH build for po-gram-gen2.h
Daiki Ueno [Mon, 19 May 2014 08:51:17 +0000 (17:51 +0900)] 
build: Fix VPATH build for po-gram-gen2.h

11 years agobuild: Simplify man and HTML documentation generation
Daiki Ueno [Mon, 19 May 2014 03:17:39 +0000 (12:17 +0900)] 
build: Simplify man and HTML documentation generation

Problem reported by Santiago Vila in:
<https://lists.gnu.org/archive/html/bug-gettext/2014-05/msg00024.html>.

11 years agoNEWS: Mention msgexec/msgfilter plural handling
Daiki Ueno [Thu, 15 May 2014 06:46:43 +0000 (15:46 +0900)] 
NEWS: Mention msgexec/msgfilter plural handling

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.