A LIST Apart: For People Who Make Websites

No. 217

Discuss: World Grows Small: Open Standards for the Global Web

Pages

 1 2 >

1 Use HTTP

Please, for declaring the character encoding you really want to use HTTP. More specifically, the charset parameter of the media type. See also http://www.w3.org/International/O-charset.html

Also, you really only want to use and to promote UTF-8, in my humble opinion. Apart from those nitpicks, nice article!

posted at 08:52 am on May 23, 2006 by Anne van Kesteren

2 More on MULTI-Language support

I’m creating a site that presents English, Hebrew and Arabic on the same page and I’m having real difficulty creating a page that has cross-browser compatibility AND validates.

Can anyone recommend a good online resource?

posted at 02:00 pm on May 23, 2006 by Robert Sharp

3 id/class

Some hints on better naming of classes and _id_s can be found in Richard Ishida’s “Locali[z]ation Considerations in DTD Design�:

http://xml.coverpages.org/IshidaDTD-Paper.html

Although actually we could use more documentation about that. If we aren’t supposed to use anything like class=“red” or =“left”, preferring class=“sidebar”, in some other language it isn’t gonna be called a “sidebar.â€?

posted at 07:23 pm on May 23, 2006 by Joe Clark

4 "Standardized" divs/ids?

I agree with Joe that “in some other language it isn’t gonna be called a ‘sidebar’”. True, of course, but don’t we have the same problem with “class”, “id”, not to mention “<strong>”, “<em>”, or “document.getElementsByTagName” for that matter?

Maybe an interim solution is to adopt some kind of “standardized” tags (see for instance “What’s in a Name” at Malarkey http://www.stuffandnonsense.co.uk/archives/whats_in_a_name.html). Designers may not be using id and div names in their own language, but at least there might be some agreement as to what they are.

Better than nothing?

posted at 05:29 pm on May 24, 2006 by Marco Maertens

5

If it is presenting three languages in abundance then usually UTF-8 will cover quite a lot of evils.

However, it will also depend upon the fonts installed on the user computer as to how they display and text direction, i.e. Bidirectional text. Furthermore you’d have to consider both the CSS and the x(ht)ml ‘lang‘ attributes.

posted at 05:53 pm on May 24, 2006 by Robert Wellock

6 Untitled

Re Robert S. “More on MULTI-Language support”; Using UTF-8 as mentioned by Robert W., Arabic, Farsi and Hebrew(not sure) are written right to left. If you are using combination of them in a page dir=“rtl” direction Right To Left can be helpful. I have used it for English/Farsi in rokni.net.

posted at 08:22 pm on May 24, 2006 by Ali Rokni

7 Yes, More Thought Needed.

Molly, Thanks for bringing to light a subject that really needs to be focused on more by web developers.

Over the last year, I have been developing multi-lingual websites (http://www.engvocab.com – for example), and in the process learning a lot more about what is needed in these cases. It’s amazing how easy it could be to simple underestimate the amount of thought that needs to go into developing truly multi-lingual, multi-cultural websites.

I’m glad that you brought out;

1. Character encoding. UTF-8 is the safest bet – but support for it in some editors can be off. TopStyle doesn’t support it.

2. Language declaration. lang=“en” xml:lang=“en” for example. I think a bit more information on this may be needed. These are the ISO 639-1 codes. I believe that ISO 639-2 offers three letter alternatives also. As well as specifying languages, the standards stipulate that you can also specify varieties, ‘fr-ca’ for example; Canadian French.

3. the Semantic Implications. I learnt quite early on that Japanese has no Bold and Italics for example. The idea of emphasising words with a background colour is a good one, but has that been confirmed by a Japanese person to be an accepted method?

4. LTR (Left to Right) and RTL (Right to Left) Text Direction. This is something that seems a little vague still to me. More attention needs to be brought to this, and the best way of implementing it. You can specify text-direction in CSS, but this seems like a bad idea, since it is not a presentational aspect of web development. It is in-fact very Semantic. So a block of text in a RTL language should be specified as dir=“RTL”.

All the best Molly. Thanks for bringing this out. Hope to hear more about it on ALA!

posted at 04:49 pm on May 25, 2006 by Phil Baines

8 Language Codes

Sorry, for the double post. I just found this good page on Joe Clarkes site regarding codes.

http://joeclark.org/book/sashay/serialization/AppendixB.html

Worth a read.

posted at 05:08 pm on May 25, 2006 by Phil Baines

9 Yes! And by the way...

Molly,

un grand merci for your continuous efforts in spreading the good word (OT: and for trying to make I.E. less of a wreck, an important task since most IT managers lack the spine to try anything else).

ALA,

uh, guess what… The version Textile used in your commenting system does not allow us to use the ‘lang’ attribute: Quel dommage, after such a nice article dealing with localization!

posted at 07:33 am on May 26, 2006 by Nicolas Prade

10 Re: id/class

Joe and Marc,

localization is not translation. The article suggests to use semantics-driven names and elements, not language-independant names (is there such a thing?).

Clearly it does not matter what language you pick for your names. Just pick a language that you and your coworkers are familiar with — or have to work with.

If you pick english, ‘sidebar’ is a perfectly good name as long as it is used in the meaning of its Webster definition (hint: it is not “a bar on the side”).

Regardless of which human language is displayed within your sidebar, regardless of its location (top, side, bottom…), regardless of its appearance, it is still a sidebar. When, in 6 months from now, after two site redesigns, you come back to your code and find this class named ‘sidebar’, you will know right away what it is about.

posted at 07:36 am on May 26, 2006 by Nicolas Prade

Pages

 1 2 >

Discussion Closed

New comments are not being accepted, but you are welcome to explore what people said before we closed the door.

Got something to say?

Discuss this article. We reserve the right to delete flames, trolls, and wood nymphs.

Create a new account or sign in below if you’d like to leave a comment.

Remember me

Forgot your password?

Subscribe to this article's comments: RSS (what’s this?)