Mercurial > hg > octave-kai > gnulib-hg
changeset 11537:0ec84326efef
Ignore no-op translations.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Sun, 03 May 2009 14:32:16 +0200 |
parents | 30ee15176b4d |
children | af683213eeb0 |
files | ChangeLog lib/propername.c |
diffstat | 2 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-05-03 Jim Meyering <meyering@redhat.com> + Bruno Haible <bruno@clisp.org> + + * lib/propername.c (proper_name_utf8): Ignore no-op translations; + use the converted UTF-8 variant of the name instead. + 2009-05-03 Jim Meyering <meyering@redhat.com> tests: tighten some getdate tests
--- a/lib/propername.c +++ b/lib/propername.c @@ -1,5 +1,5 @@ /* Localization of proper names. - Copyright (C) 2006-2008 Free Software Foundation, Inc. + Copyright (C) 2006-2009 Free Software Foundation, Inc. Written by Bruno Haible <bruno@clisp.org>, 2006. This program is free software: you can redistribute it and/or modify @@ -242,7 +242,10 @@ name_converted_translit != NULL ? name_converted_translit : name_ascii); - if (translation != name_ascii) + /* See whether we have a translation. Some translators have not understood + that they should use the UTF-8 form of the name, if possible. So if the + translator provided a no-op translation, we ignore it. */ + if (strcmp (translation, name_ascii) != 0) { /* See whether the translation contains the original name. */ if (mbsstr_trimmed_wordbounded (translation, name_ascii)