SunQuest
           Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 13th, 2004, 07:12 PM
iGeek iGeek is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 128 iGeek User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 32 m 3 sec
Reputation Power: 5
multilanguage support revisited, best way?

I would like to hear what you think is the best way to server mulitlanguage support to users but and also make that language viewable by search engines so that you can get those key words (one language i offer is Japanese). At present I have different files for the whole site in mydomain.com/japan/ but the problem is when I update the look on the english side at just mydomain.com/ it doesn't update the other language parts.

Any technology can be used, but I perfer PHP. If you have example sites I can look at that would be great.

I have open base restrictions in effect or I would just buy mydomain.jp and use the same images off the other. All options ideas are welcomed.

Reply With Quote
  #2  
Old March 15th, 2004, 03:12 PM
Jaeger Jaeger is offline
Stuff Doer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Toronto, Canada
Posts: 96 Jaeger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 43 m 45 sec
Reputation Power: 8
Hey there. I just wrote a site in PHP that does exactly that. It has a display page ("show.php") which loads a design shell, loads a language file with all menu text and so on, and then loads a content file. It's not live for another couple weeks, so I can't show you until then. But try taking that idea. Here's the top of the display page...
PHP Code:
 $lang $lang $lang "english";
include_once(
"shell_{$lang}.php");
$page $page $page "home";
include_once(
"{$lang}/{$page}.php");
$display_page 'show.php'

All content files are named the same, with different languages in appropriately named directories. A page is viewed with the URL:
show.php?lang=japanese&page=privacy_policy
If no page or language is specified, it defaults to the english home page.

The final var, $display_page, is there for links. You can rename the "show.php" page and only have to change one var that way. And the language file is just a bunch of vars to be inserted into the design shell. Same thing with the content file.

Hope that helps.

-Jaeger

Reply With Quote
  #3  
Old March 24th, 2004, 04:43 AM
iGeek iGeek is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 128 iGeek User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 32 m 3 sec
Reputation Power: 5
Thanks for the help. I will consider doing this. Only problem, I have probably 200-400+ dynamic URLs I will have to go an add &lang=$var to all of them I would love to be able to modrewrite the URL to japanese.domain.com and so forth but I'm not sure this can be done.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > multilanguage support revisited, best way?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway