From a7b66296691d754d26a3cdd829814e892e71a4d3 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Sun, 18 Dec 2011 15:33:53 +0100 Subject: quotearg: fall back to Unicode single quotes in UTF-8 and GB-18030 locales Most programs do not have translation catalogs for English and much less separate catalogs for British and American English. Drop the suggestion to translators about these two, and provide it automatically for Unicode locales. Like most programs, even those using American English, we use single quotation marks. This conflicts with the American typographic convention, but works better when you cite the entire error message within double quotes. It also tries not to clash with established practice and with what non-gnulib programs will usually do. * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when using an UTF-8 or GB-18030 locale. The list of other locales with quotes was provided by Bruno Haible. (quotearg_buffer_restyled): Adjust instructions to translators. * lib/quotearg.h (locale_quoting_style): Do not put an example in the text, since this would be wrong when using Unicode. * modules/quotearg: Depend on c-strcaseeq. --- modules/quotearg | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/quotearg') diff --git a/modules/quotearg b/modules/quotearg index b3f1ad17fe..176ff707f6 100644 --- a/modules/quotearg +++ b/modules/quotearg @@ -9,12 +9,14 @@ m4/mbrtowc.m4 m4/quotearg.m4 Depends-on: +c-strcaseeq extensions gettext-h mbrtowc mbsinit memcmp quotearg-simple +localcharset stdbool wchar wctype-h -- cgit v1.2.1