W3C home > Mailing lists > Public > www-forms@w3.org > September 2000

Localisation of datatypes with enumerations

From: Gordan Vosicki <gordan.vosicki@icsa.ch>
Date: Tue, 5 Sep 2000 11:10:31 -0400 (EDT)
Message-ID: <39B50DFE.75AE6DDE@icsa.ch>
To: www-forms@w3.org
Has the problem of localising enumerations already been looked at ?

Imagine a form having a drop-down list with three possibilities
(YES / MAYBE / NO).

Now, imagine the same form in french (OUI / PEUT-ETRE / NON).
The XForms data definition should allow to describe this, stating
that OUI and YES are equivalent, so that the french form sends OUI
and the english form sends YES.

<enum ...>
    <text xml:lang="en">YES</text>
    <text xml:lang="fr">OUI</text>
    <text xml:lang="de">JA</text>
</enum>
<enum ...>
    <text xml:lang="en">MAYBE</text>
    <text xml:lang="fr">PEUT-ETRE</text>
    <text xml:lang="de">VIELLEICHT</text>
</enum>

It could be simpler for a form to send an integer when the datatype is
a constained enumeration.

Have an idea ?

Gordan Vosicki
ICS Computer Services
Received on Saturday, 16 September 2000 14:33:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:48 GMT