summaryrefslogtreecommitdiff
path: root/modules/quotearg
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2011-12-18 15:33:53 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2012-01-07 15:22:09 +0100
commita7b66296691d754d26a3cdd829814e892e71a4d3 (patch)
treedc74a3e88b55190ba512e4fa6587307a034009e0 /modules/quotearg
parentcacad9e8e34b4e8caac6bc8863a78734e08d9ee8 (diff)
downloadgnulib-a7b66296691d754d26a3cdd829814e892e71a4d3.tar.gz
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.
Diffstat (limited to 'modules/quotearg')
-rw-r--r--modules/quotearg2
1 files changed, 2 insertions, 0 deletions
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