homepage Welcome to WebmasterWorld Guest from 54.161.197.188
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
Multilanguage site / how to name pages
OldWolf




msg:3158517
 2:03 pm on Nov 16, 2006 (gmt 0)

Hi all

I am thinking to have couple my articles translated other languages but don't know how to name them.

widgets.com/blue-widgets/

I have index.php (English) in that directory which i don't use it when linking to page for purpose of it may change to .html or any in the future.

how would you call for example German,Spanish translated pages .
I also want to know if i need to do something expect changing language in doctype

Thanks

 

mack




msg:3161291
 2:47 am on Nov 19, 2006 (gmt 0)

I can see a number of ways to achieve this. First of all what language to you code your pages in. (not the actual language but the programming language :) )

If you are using a scripting language you can set your pages up to display the same content but in different languages. One way if doing this is to have different language content read from a database. The preference can be set by the user.

Another way if doing this and one that may not be preferable is to have different mini sites for each language. For example if you have a site on French use www.example.com/fr/ for Spanish use www.example.com/es/ then have the correct regional content for each language. The problem with this situation is what to do on www.example.com perhaps just a link to each of the regional homepages.

Mack.

OldWolf




msg:3161452
 12:35 pm on Nov 19, 2006 (gmt 0)

Thanks for the answer

I dont want to use scripting languages and dont know anything about databases.I think simply put flags of available languages on my english page.

I just want to learn if there is a standard which webmasters use when naming lang page names

should i go like below or is there any preferred naming
widgets.com/blue-widgets/spanish.php

encyclo




msg:3161683
 6:31 pm on Nov 19, 2006 (gmt 0)

I think simply put flags of available languages on my english page

Using flags is a bad idea when dealing with multi-language content. Flags represent countries, not languages. Which flag would you use for Engish? The Union Jack? The Stars and Stripes? Neither will work for me, as I'm Canadian. How about French? Again, I speak French but I'm not from France.

Using words rather than flags is a better option unless the different versions are really country-specific. English, franšais, dansk, suomi, Deutsch and not the English names too. :)

I agree with mack that the best way is to either language-specific subdirectories, or subdomains if each language variant is truly a separate site:

example.com/en/
example.com/fr/
example.com/de/

Use the standard two-letter ID for each language.

OldWolf




msg:3162037
 2:59 am on Nov 20, 2006 (gmt 0)

Thanks for the answer

I was thinking which flag i would put for English lol and you are very right ill go with words :)

as for,
example.com/de/

Then my content will be far from root 2 levels which i already have 3 levels and if i use /de/ everything in directory should be in German but i want to post news in English only.

I just think to say something like 'this page available in German, French' cause i will ask friends to translate them free so 1 page can be in French only but other page can be German and French .I know its not professional but i dont have money to pay for it :(

So may be better i use example.com/node21/german.html

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved