Forum Moderators: mack
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
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.
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
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.
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