- From: Richard Ishida <ishida@w3.org>
- Date: Wed, 7 May 2003 10:26:34 +0100
- To: "'Russ Rolfe'" <rrolfe@windows.microsoft.com>, <public-i18n-geo@w3.org>
We should discuss this during today's telecon with a view to approving it for publication. Phil is still working on the format for pages - if he has something ready, we should publish on Friday. RI ============ Richard Ishida W3C tel: +44 1753 480 292 http://www.w3.org/International/ http://www.w3.org/People/Ishida/ > -----Original Message----- > From: public-i18n-geo-request@w3.org > [mailto:public-i18n-geo-request@w3.org] On Behalf Of Russ Rolfe > Sent: 05 May 2003 21:43 > To: ishida@w3.org; public-i18n-geo@w3.org > Subject: [public-i18n-geo] <none> > > > Richard, > > Here is my question as promised Let me know what we need to do next. > > Regards, Russ > > =-=-=-=-=-=-=-=-= > Question: > > As part of a form, I have a list of terms in a drop-down box. > Why are they not correctly sorted when I translate the items > in the list? > > > Answer: > > Although many programming languages have devices like > drop-down boxes that have the capability of sorting a list of > items before displaying them as part of their functionality. > The HTML <select> function has no such capabilities. It will > list the <options> in the order received. Thus one must > manually pre-sort their translated options before presenting > them to the client. > > For example, lets say we have a pull-down list for types of > pets. In the list, we have the following in alphabetical order: > > <form .....> > <select size="1" name="pet"> > <option> cat </option> > <option> dog </option> > <option> mouse </option> > </select> > ... > ... > </form> > > When this is translated to Dutch, the list becomes > > <form .....> > <select size="1" name="pet"> > <option> kat </option> > <option> hond </option> > <option> muis </option> > </select> > ... > ... > </form> > > But for it to be in correct Dutch alphabetical order we will > need to re-arrange to list to: > > > <form .....> > <select size="1" name="pet"> > <option> hond</option> > <option> kat </option> > <option> muis </option> > </select> > ... > ... > </form> > > This must be done for each language to be displayed. > > >
Received on Wednesday, 7 May 2003 05:27:01 UTC