RE: [WSG] multi-lingual

2005-05-30 Thread Richard Ishida
Hello John,

See 
http://www.w3.org/International/tutorials/language-decl/en/all.html#Slide006
0 and 
http://www.w3.org/TR/i18n-html-tech-lang/#ri20040728.121358444

The lang and xml:lang attributes can and should only specify one language at
a time, as they indicate the language of the text you are currently dealing
with.  You can indicate that the document as a whole has two primary
languages using the HTTP header.  Meta elements may also serve the same
purpose, but it is not clear to what extent they are used by anyone.

Hope that helps,
RI



Richard Ishida
W3C

contact info:
http://www.w3.org/People/Ishida/ 

W3C Internationalization:
http://www.w3.org/International/ 

Publication blog:
http://people.w3.org/rishida/blog/
 
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of john
> Sent: 30 May 2005 09:11
> To: web standards list
> Subject: [WSG] multi-lingual
> 
> Hello.
> 
> I have a question.  I've been doing a lot of multi-lingual 
> sites lately, and I usually separate them into individual 
> sites based on language, and indicate so properly in the code.
> 
> However, one of my clients wants two languages integrated 
> into one site (basically two languages, one next to the 
> other, but in different colors).  My question is, how do I 
> code this so that it makes sense? 
> For individual languages sites, I add:
> 
> lang="en" xml:lang="en" (changing the language, of course)
> 
> But if I'm putting two languages on one page, how is that 
> done?  Can I use:
> 
> lang="en,pt" xml:lang="en,pt" (or something similar)?
> 
> Thanks, in advance, for your assistance.
> -- 
> 
> ~john
> _
> Dr. Zeus Web Design
> http://www.DrZeus.net
> "content without clutter"
> 
> 
> **
> The discussion list for  http://webstandardsgroup.org/
> 
>  See http://webstandardsgroup.org/mail/guidelines.cfm
>  for some hints on posting to the list & getting help
> **
> 

**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
**



Re: [WSG] multi-lingual

2005-05-30 Thread john
Oh, duh.  If all else fails, read the W3 specs.  If that doesn't work? 
Follow them.


Thanks again.

~john
_
Dr. Zeus Web Design
http://www.DrZeus.net
"content without clutter"




on 5/30/2005 11:08 AM Bert Doorn said the following:

john wrote:

Ah, I see.  What about mixing languages in the KEYWORDS and DESCRIPTION? 
 Is that a problem?


 From http://www.w3.org/TR/html401/struct/global.html#edef-META :

-
META and search engines

A common use for META is to specify keywords that a search engine 
may use to improve the quality of search results. When several 
META elements provide language-dependent information about a 
document, search engines may filter on the lang attribute to 
display search results using the language preferences of the 
user. For example,


<-- For speakers of US English -->

<-- For speakers of British English -->

<-- For speakers of French -->

--


Regards

**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**



Re: [WSG] multi-lingual

2005-05-30 Thread Bert Doorn

john wrote:

Ah, I see.  What about mixing languages in the KEYWORDS and DESCRIPTION? 
 Is that a problem?


From http://www.w3.org/TR/html401/struct/global.html#edef-META :

-
META and search engines

A common use for META is to specify keywords that a search engine 
may use to improve the quality of search results. When several 
META elements provide language-dependent information about a 
document, search engines may filter on the lang attribute to 
display search results using the language preferences of the 
user. For example,


<-- For speakers of US English -->

<-- For speakers of British English -->

<-- For speakers of French -->

--


Regards
--
Bert Doorn, Better Web Design
http://www.betterwebdesign.com.au/
Fast-loading, user-friendly websites

**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**



Re: [WSG] multi-lingual

2005-05-30 Thread john
Ah, I see.  What about mixing languages in the KEYWORDS and DESCRIPTION? 
 Is that a problem?


~john
_
Dr. Zeus Web Design
http://www.DrZeus.net
"content without clutter"




on 5/30/2005 10:00 AM Bert Doorn said the following:

G'day

However, one of my clients wants two languages integrated into one site 
(basically two languages, one next to the other, but in different 
colors).  My question is, how do I code this so that it makes sense? For 
individual languages sites, I add:


lang="en" xml:lang="en" (changing the language, of course)

But if I'm putting two languages on one page, how is that done?  Can I use:


If you mean putting them side by side in columns (e.g. floating 
divs), you could use the lang attribute on individual divs.


...
...

Or to make it easier, set the html element to lang="en" and put 
lang="pt" only on the elements (divs or whatever you're using) 
with portuguese content.


Regards

**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**



Re: [WSG] multi-lingual

2005-05-30 Thread Bert Doorn

G'day

However, one of my clients wants two languages integrated into one site 
(basically two languages, one next to the other, but in different 
colors).  My question is, how do I code this so that it makes sense? For 
individual languages sites, I add:


lang="en" xml:lang="en" (changing the language, of course)

But if I'm putting two languages on one page, how is that done?  Can I use:


If you mean putting them side by side in columns (e.g. floating 
divs), you could use the lang attribute on individual divs.


...
...

Or to make it easier, set the html element to lang="en" and put 
lang="pt" only on the elements (divs or whatever you're using) 
with portuguese content.


Regards
--
Bert Doorn, Better Web Design
http://www.betterwebdesign.com.au/
Fast-loading, user-friendly websites

**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**



Re: [WSG] multi-lingual

2005-05-30 Thread Rimantas Liubertas
On 5/30/05, john <[EMAIL PROTECTED]> wrote:
<...> 
> But if I'm putting two languages on one page, how is that done?  Can I use:
> 
> lang="en,pt" xml:lang="en,pt" (or something similar)?
> 

That does not make sense. Or it does in case text is written in mix of
these two languages.
Just mark appropriate paragraphs with correct language.

Regards,
Rimantas
--
http://rimantas.com/
**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
**