summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* NEWS: Mention gettext.m4 changeDaiki Ueno2016-05-271-0/+2
|
* m4: Rely less on internal symbolsDaiki Ueno2016-05-271-7/+22
| | | | | | | | | | | | | * gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Skip checks for the internal symbols _nl_msg_cat_cntr, _nl_domain_bindings, and _nl_expand_alias, if __GNU_GETTEXT_SUPPORTED_REVISION is defined. Problem reported and fix suggested by Masanori Ogino in: https://lists.gnu.org/archive/html/bug-gettext/2016-04/msg00000.html The rationale behind this is: (1) those symbol checks are for detecting certain broken implementations, namely NetBSD and Solaris 7, and (2) __GNU_GETTEXT_SUPPORTED_REVISION is not defined in those implementations, while it is defined on compatible implementations, such as musl-libc which doesn't have those internal symbols.
* NEWS: Add 0.19.8 changesDaiki Ueno2016-05-251-0/+14
|
* intl: Pacify pre-C99 compilersDaiki Ueno2016-05-252-3/+15
| | | | | | | | | | | | * gettext-runtime/intl/plural-exp.h (HAVE_STRUCT_INITIALIZER): New macro, based on the check previously in plural-exp.c. Also add check for __SUNPRO_C for Solaris Studio C compiler. (GERMANIC_PLURAL): Define as 'struct expression' not 'const struct expression' if struct/union initializers are not supported by the compiler. * gettext-runtime/intl/plural-exp.c: Use HAVE_STRUCT_INITIALIZER. Reported by Dagobert Michelsen and investigated by pan7 in: https://savannah.gnu.org/support/?108743
* desktop: Fix invalid memory accessDavid Shea2016-05-241-6/+8
| | | | | | * gettext-tools/src/read-desktop.c (desktop_lex): Don't access memory deallocated with realloc(). Reported in: http://savannah.gnu.org/bugs/?47991
* tests: Add more tests for JavaScript format stringDaiki Ueno2016-05-232-4/+6
| | | | | | | * gettext-tools/tests/format-javascript-1: Add test for multiple uses of same argument. * gettext-tools/tests/format-javascript-2: Use proper flag to activate javascript format checker.
* javascript: Fix format type compatibility checkDaiki Ueno2016-05-231-3/+4
| | | | | * gettext-tools/src/format-javascript.c (format_check): Check if the two argument types are the same.
* tests: Add test for ITS search pathDaiki Ueno2016-05-202-1/+63
| | | | | * gettext-tools/tests/Makefile.am (TESTS): Add new test. * gettext-tools/tests/xgettext-its-2: New file.
* search-path: Fix XDG_DATA_DIRS traversalDaiki Ueno2016-05-201-9/+23
| | | | | * gettext-tools/src/search-path.c (foreach_elements): Append "gettext" suffix to each element from XDG_DATA_DIRS.
* search-path: Don't relocate dirs given as envvarDaiki Ueno2016-05-204-95/+91
| | | | | | | | | | | | * gettext-tools/src/search-path.c (foreach_function_ty): New typedef. (path_array_ty): New struct. (foreach_components, increment, fill): New functions. (get_search_path): Rewrite using those functions. Relocate GETTEXTDATADIR here. * gettext-tools/src/search-path.h (get_search_path): Update documentation. * gettext-tools/src/msgfmt.c (main): Don't relocate directories in ITS search path. * gettext-tools/src/xgettext.c (main): Likewise.
* Update after Gnulib changedDaiki Ueno2016-05-193-5/+10
| | | | | | * gnulib-local/lib/gettext.h: Update from gnulib. * gettext-runtime/m4/extern-inline.m4: Likewise. * gettext-runtime/m4/intdiv0.m4: Likewise.
* Update gnulibDaiki Ueno2016-05-197-17/+7
| | | | | | | | | | | * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Explicitly pull 'gettext', as the module is now marked as obsolete. * gnulib-local/Makefile.am (EXTRA_DIST): Remove m4/hard-locale.m4.diff. * gnulib-local/m4/hard-locale.m4.diff: Remove, as it is no longer needed. * gettext-tools/gnulib-lib/.gitignore: Ignore files brought by gnulib-tool. * gettext-tools/gnulib-tests/.gitignore: Likewise. * gettext-tools/libgettextpo/.gitignore: Likewise.
* maint: Add --no-git option to autogen.shDaiki Ueno2016-05-181-2/+10
| | | | * autogen.sh: Port --no-git option from Gnulib's bootstrap.
* msgfmt, xgettext: Respect XDG_DATA_DIRSDaiki Ueno2016-05-168-54/+220
| | | | | | | | | | | | | | | Suggested in https://savannah.gnu.org/bugs/?47123 * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add 'xmemdup0'. * gettext-tools/gnulib-lib/.gitignore: Ignore files brought by gnulib-tool. * gettext-tools/gnulib-tests/.gitignore: Likewise. * gettext-tools/src/search-path.c: New file. * gettext-tools/src/search-path.h: New file. * gettext-tools/src/Makefile.am (noinst_HEADERS): Add search-path.h. (libgettextsrc_la_SOURCES): Add search-path.c. * gettext-tools/src/msgfmt.c: Include "search-path.h". (main): Use get_search_path to locate ITS directories. * gettext-tools/src/xgettext.c: Include "search-path.h". (main): Use get_search_path to locate ITS directories.
* javascript: Avoid uninitialized variableDaiki Ueno2016-05-161-1/+1
| | | | | * gettext-tools/src/format-javascript.c (format_check): Fix loop initialization. Spotted by clang-analyzer.
* lua: Avoid heap buffer overflowHanno Boeck2016-03-261-0/+6
| | | | | | | * gettext-tools/src/x-lua.c (string_end): Allocate a room for terminating NUL. Reported in: http://savannah.gnu.org/bugs/?4753 Copyright-paperwork-exempt: yes
* format-python-brace: Support chained expressionDaiki Ueno2016-03-232-30/+39
| | | | | | | | | * gettext-tools/src/format-python-brace.c (parse_directive): Recognize chained getattr/getitem expressions. * gettext-tools/tests/format-python-brace-1: Add test for the case where both getattr and getitem are used. Reported by Paul Franklin in: https://lists.gnu.org/archive/html/bug-gettext/2016-03/msg00017.html
* doc: Fix ngettext usage exampleDaiki Ueno2016-03-231-2/+2
| | | | | | * gettext-tools/doc/gettext.texi (Plural forms): Fix positional argument syntax in the C example. Reported by Jonathan Leffler in: http://lists.gnu.org/archive/html/bug-gettext/2016-03/msg00002.html
* javascript: Fix invalid memory accessDaiki Ueno2016-03-221-1/+1
| | | | | | | * gettext-tools/src/format-javascript.c (format_parse): Fix numbered_arg allocation for the unnumbered case. Reported by Roger Mc Murtrie in: <http://savannah.gnu.org/bugs/?47492>.
* maint: Clean up .gitignoreDaiki Ueno2016-03-221-13/+13
| | | | * gettext-tools/gnulib-lib/.gitignore: Sort lines.
* xgettext: Put --its help in the right sectionDaiki Ueno2016-03-021-2/+4
| | | | | * gettext-tools/src/xgettext.c (usage): Move --its=FILE option under "Language specific options" from "Output details".
* xgettext: Add new check bullet-unicodeDaiki Ueno2016-02-226-11/+158
| | | | | | | | | | | | | | | | | * gettext-tools/src/xgettext.c (main): Generalize --check option handling. * gettext-tools/src/message.h (enum syntax_check_type): New enum value sc_bullet_unicode. (NSYNTAXCHECKS): Increment. * gettext-tools/src/message.c (syntax_check_name): Add name for sc_bullet_unicode. * gettext-tools/src/msgl-check.c (struct bullet_ty, struct bullet_stack_ty): New struct. (bullet_stack): New variable. (syntax_check_bullet_unicode): New function. (sc_funcs): Register syntax_check_bullet_unicode as a check function for sc_bullet_unicode. * gettext-tools/tests/xgettext-14: Add tests for --check=bullet-unicode
* doc: Mention the behavior stripping *.inDaiki Ueno2016-02-101-1/+6
| | | | | | * gettext-tools/doc/gettext.texi (Preparing ITS Rules): Add footnote explaining the matching behavior if the input file name has the .in suffix. Suggested by Jan Synacek.
* javascript: Support '%m$' in format stringsDaiki Ueno2016-02-083-43/+225
| | | | | | | | | | | | | | | | | | Gjs has had support for numbered arguments in format strings since 1.40. Recognize it as well in format-javascript, so msgfmt -c doesn't fail when numbered arguments are in msgstr. Reported by Sean Burke in: https://lists.gnu.org/archive/html/bug-gettext/2015-10/msg00002.html * gettext-tools/src/format-javascript.c (struct numbered_arg): New struct. (struct spec): Rename format_args_count to numbered_arg_count. Add NUMBERED field in place of FORMAT_ARGS. All callers changed. (numbered_arg_compare): New function. (format_parse): Handle numbered arguments. Based on format-awk.c. (format_check): Add check for numbered arguments. * gettext-tools/tests/format-javascript-1: Add tests for numbered arguments. * gettext-tools/tests/lang-javascript: Use numbered argument in format strings. Add check for Gjs version >= 1.40.
* moopp: Revert file modes accidentally setDaiki Ueno2016-02-081-0/+0
|
* gettext-tools: Use a short name for DLLs on OS/2KO Myung-Hun2016-01-204-3/+20
| | | | | | | | | | | | OS/2 does not support a DLL name longer than 8 characters. * gettext-tools/configure.ac (OS2): Define on OS/2. * gettext-tools/gnulib-lib/Makefile.am (libgettextlib_la_LDFLAGS): Set a DLL name to gtlib on OS/2. * gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_LDFLAGS): Set a DLL name to gtpo on OS/2. * gettext-tools/src/Makefile.am (libgettextsrc_la_LDFLAGS): Set a DLL name to gtsrc on OS/2.
* libasprintf: Build a shared library on OS/2KO Myung-Hun2016-01-201-1/+1
| | | | | * gettext-runtime/libasprintf/configure.ac (LTNOUNDEF): Set to -no-undefined on OS/2.
* intl: Support UNIXROOT in BINDTEXTDOMAIN () on EMXKO Myung-Hun2016-01-201-0/+26
| | | | | | | $UNIXROOT is a drive on which a root of FHS is. * gettext-runtime/intl/bindtextdom.c (BINDTEXTDOMAIN): Prepend $UNIXROOT to dirname if it is started '/' or it is an empty string.
* moop: Replace CR as well as LF with a spaceKO Myung-Hun2016-01-201-2/+2
| | | | | | | On OS/2, EOL marker is CR+LF. * gnulib-local/bulid-aux/moopp (func_check_header_syntax): Replace CR as well as LF with a space.
* Change msgfmt to produce little-endian .mo files by default.Bruno Haible2016-01-154-5/+8
| | | | | | | * gettext-tools/src/msgfmt.c (main): Initialize 'byteswap' so as to produce little-endian .mo files by default. * gettext-tools/doc/gettext.texi: Update documentation. * gettext-tools/doc/msgfmt.texi (--endianness): Likewise.
* maint: Revert copyright year changes in test dataDaiki Ueno2016-01-1311-10/+20
| | | | | | | | | | | | | | | | | | Some test programs started failing after mass update of copyright notice for year 2016 (commit 7fa0c277), because of embedded test data with fixed copyright dates. Revert the commit for those files. Reported by Bruno Haible. * .x-update-copyright: Exclude test programs embedding copyright date. * gettext-tools/tests/msgcomm-22: Revert the last change. * gettext-tools/tests/msgfilter-sr-latin-1: Likewise. * gettext-tools/tests/msggrep-1: Likewise. * gettext-tools/tests/msggrep-2: Likewise. * gettext-tools/tests/msggrep-3: Likewise. * gettext-tools/tests/msggrep-4: Likewise. * gettext-tools/tests/msggrep-5: Likewise. * gettext-tools/tests/msggrep-9: Likewise. * gettext-tools/tests/msggrep-11: Likewise. * gettext-tools/tests/msgmerge-14: Likewise.
* its: Recognize *.glade as a GtkBuilder file tooDaiki Ueno2016-01-071-0/+1
|
* * PACKAGING: List version specific filesSantiago Vila2016-01-051-0/+1
| | | | Copyright-paperwork-exempt: yes
* maint: Update copyright yearDaiki Ueno2016-01-02497-556/+517
|
* Update gnulibDaiki Ueno2016-01-021-0/+0
|
* maint: Use maintainer-makefile from gnulibDaiki Ueno2016-01-024-1/+31
| | | | | | | | * autogen.sh: Pull GNUmakefile, maint.mk, and dependency scripts in build-aux. * cfg.mk (update-copyright-env): Adjust for gettext. * .x-update-copyright: New file. * .gitignore: Ignore files brought in by gnulib-tool.
* maint: Update release-steps to current practiceDaiki Ueno2015-12-281-70/+95
| | | | | | * Admin/release-steps: Split document into two sections ('Making a snapshot release' and 'Making an official release'), reorder some steps, and remove mention of manual generation of PO/POT files.
* Release 0.19.7Daiki Ueno2015-12-280-0/+0
|
* Update translationsDaiki Ueno2015-12-2821-8539/+12220
| | | | | | | | | | | | | | | | | | | | | | | | * gettext-runtime/po/fr.po: Update from Stéphane Aulery <lkppo@free.fr>. * gettext-runtime/po/nb.po: Update from Johnny A. Solbu <johnny@solbu.net>. * gettext-runtime/po/pt_BR.po: Update from Rafael Ferreira <rffontenelle@gmail.com>. * gettext-runtime/po/sr.po: Update from Мирослав Николић <miroslavnikolic@rocketmail.com>. * gettext-runtime/po/zh_TW.po: Update from Wei-Lun Chao <bluebat@member.fsf.org>. * gettext-tools/examples/po/fr.po: Update from Stéphane Aulery <lkppo@free.fr>. * gettext-tools/examples/po/nb.po: Update from Johnny A. Solbu <johnny@solbu.net>. * gettext-tools/examples/po/pt_BR.po: Update from Rafael Ferreira <rffontenelle@gmail.com>. * gettext-tools/examples/po/sr.po: Update from Мирослав Николић <miroslavnikolic@rocketmail.com>. * gettext-tools/examples/po/zh_TW.po: Update from Wei-Lun Chao <bluebat@member.fsf.org>. * gettext-tools/po/bg.po: Update from Roumen Petrov <transl@roumenpetrov.info>. * gettext-tools/po/es.po: Update from Antonio Ceballos <aceballos@gmail.com>. * gettext-tools/po/fr.po: Update from Stéphane Aulery <lkppo@free.fr>. * gettext-tools/po/ja.po: Update from Masahito Yamaga <ma@yama-ga.com>. * gettext-tools/po/nl.po: Update from Benno Schulenberg <benno@vertaalt.nl>. * gettext-tools/po/pt_BR.po: Update from Rafael Fontenelle <rffontenelle@gmail.com>. * gettext-tools/po/sk.po: Update from Marcel Telka <marcel@telka.sk>. * gettext-tools/po/sl.po: Update from Primoz PETERLIN <primozz.peterlin@gmail.com>. * gettext-tools/po/sr.po: Update from Мирослав Николић <miroslavnikolic@rocketmail.com>. * gettext-tools/po/uk.po: Update from Yuri Chornoivan <yurchor@ukr.net>. * gettext-tools/po/vi.po: Update from Trần Ngọc Quân <vnwildman@gmail.com>.
* Prepare for 0.19.7Daiki Ueno2015-12-285-5/+5
|
* doc: Regenerate translation matrixDaiki Ueno2015-12-282-210/+155
| | | | | * gettext-runtime/ABOUT-NLS: Regenerate for 0.19.7. * gettext-runtime/doc/matrix.texi: Regenerate for 0.19.7.
* NEWS: Add 0.19.7 changesDaiki Ueno2015-12-281-0/+15
|
* Update gnulibDaiki Ueno2015-12-281-0/+0
|
* Ignore file brought by gnulib-toolDaiki Ueno2015-12-281-0/+1
| | | | | * gettext-tools/gnulib-tests/.gitignore: Ignore file brought by gnulib-tool.
* term-ostream-tests: Add test data for FreeBSD 10.1Daiki Ueno2015-12-233-0/+133
| | | | | | | * gnulib-local/modules/term-ostream-tests: Add test-term-ostream-xterm-freebsd101.out. * gnulib-local/tests/test-term-ostream-xterm: Use new test data. * gnulib-local/tests/test-term-ostream-xterm-freebsd101.out: New file.
* cldr-plurals: Fix errors from clang-analyzerDaiki Ueno2015-12-211-8/+10
| | | | | | * gettext-tools/src/cldr-plurals.c (extract_rules): Add extra null checks for NODE and BUFFER. Don't add NUL byte to the end of buffer manually.
* po: Prefer to use host tools when cross compilingDaiki Ueno2015-12-172-2/+7
| | | | | | | * gettext-runtime/po/Makefile.in.in (CROSS_COMPILING): New substitute variable. (.nop.po-update): Don't prepend ../src to $PATH when cross compiling. * gettext-runtime/po/Rules-quot (.insert-header.po-update-en): Likewise.
* its: Allow CDATA and comments in translatable nodeDaiki Ueno2015-12-171-0/+2
| | | | | * gettext-tools/src/its.c (its_rule_list_is_translatable): Don't return false on CDATA and comments.
* its: Fix typo in GSettings ruleDaiki Ueno2015-12-171-1/+1
| | | | * gettext-tools/its/gsettings.its: Fix typo in escape rule.
* gnulib-local: Fix link error due to symbol dupesDaiki Ueno2015-12-151-1/+1
| | | | * gnulib-local/lib/libxml/trionan.c (minus_zerod): Mark as static.