From: Jukka K. Korpela (jkorpela@cs.tut.fi)
Date: Tue Dec 13 2005 - 05:21:12 CST
On Mon, 12 Dec 2005, Mike Ayers wrote:
> Given a dynamic list to enumerate into a sentence ( "dog", "cat",
> "mouse", "ostrich" ), how do I proceed? The list items themselves are
> already globalized, it is the creation of the syntactically correct localized
> string declaring the list ( "dog, cat, mouse, and ostrich" ).
I'm afraid there are no general-purpose definitions of locale data for
It might be useful to add definitions of list separators for non-numeric
This archive was generated by hypermail 2.1.5
: Tue Dec 13 2005 - 05:25:39 CST
list format. The current CLDR data contains a list separator definition,
but only for numeric lists, see
http://www.unicode.org/reports/tr35/#
and it may conflict with the normal list conventions of a language.
It is typically set to the semicolon ";" even if the normal list separator
is a comma ",", since in lists of numbers the use of a comma might cause
serious confusion, if commas are already used as decimal separators
(1,2, 4,5, 8,9 is hard to read, so 1,2; 4,5; 8,9 is used, even though
non-numeric lists use commas).
lists into the CLDR format, for several reasons. The obvious complication
is that you use both the general list separator (e.g., ",") and the
special separator to be used before the last item of a list (e.g.,
" and " or, if a serial comma is used, ", and"). This looks rather
straightforward to me, so that only two simple strings would be needed for
each locale, but I might be missing some obvious and non-obvious issues.
--
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/