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

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 ...>
    <text xml:lang="en">MAYBE</text>
    <text xml:lang="fr">PEUT-ETRE</text>
    <text xml:lang="de">VIELLEICHT</text>

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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:03 UTC