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 September 18th, 2003, 10:21 PM
enzo250gto's Avatar
enzo250gto enzo250gto is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: San Francisco, CA
Posts: 272 enzo250gto User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Multi-language design

I have a huge website I want to translate into other languages. I use PHP for the entire site. Is it better to have all the other languages as a subdomain

language.mysite.com

Or to just make it a dir

www.mysite.com/lang/

What do you suggest? Any advantages of one over the other?

Reply With Quote
  #2  
Old September 19th, 2003, 09:13 AM
icy_polecat's Avatar
icy_polecat icy_polecat is offline
Senior Polecat
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Jersey (the original version)
Posts: 210 icy_polecat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 57 sec
Reputation Power: 5
Send a message via Yahoo to icy_polecat
depends on the way the site is written. A sub domain means that if you have used site root relative links ( ie /page.php ) you don't need to change them. A sub folder is easier to maintain and doesn't cost any more to setup.
__________________
Quidquid latine dictum sit, altum viditur.

http://www.XSet.co.uk

Reply With Quote
  #3  
Old September 19th, 2003, 11:07 PM
sardonyx's Avatar
sardonyx sardonyx is offline
sardonyx quinx
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 157 sardonyx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 34 m 3 sec
Reputation Power: 5
Send a message via Yahoo to sardonyx
There are many ways to set up your site into different languages.

You can use a single file that contains different variables and values for the language that you want to translate.

But I think your previous suggestion will work together with the reply of icy_polecat.

but I have a question, are you going to use a database that will hold the information for your multi-language or are you going to put them in a separate php files or folders?

Reply With Quote
  #4  
Old September 20th, 2003, 07:34 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
Apache has the ability to deliver different files to the browser based on the browser's locale. So index.html.en would go to english users, and index.html.fr would go to french users. Not sure if this would work with php, but it might be work looking into.

Reply With Quote
  #5  
Old September 21st, 2003, 06:59 AM
enzo250gto's Avatar
enzo250gto enzo250gto is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: San Francisco, CA
Posts: 272 enzo250gto User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Thanks for all the replys. At the moment the different text for languages wouldn't be stored in a database but called from different files or folders.

Reply With Quote
  #6  
Old September 21st, 2003, 12:44 PM
sardonyx's Avatar
sardonyx sardonyx is offline
sardonyx quinx
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 157 sardonyx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 34 m 3 sec
Reputation Power: 5
Send a message via Yahoo to sardonyx
will it be ok guys if enzo's going to do that kind of strategy? i think it would be very stressful for him. ^_^ just asking coz im planning to do the same thing too. but now for now. ^^

Reply With Quote
  #7  
Old September 21st, 2003, 03:16 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
Well, my recommendation would be to keep your translated text together in one form (db or files), your layouts together in one form (db or files), and your other, dynamic data in the database. You can then either combine the translations and layouts when you publish them, or let php combine them dynamically for each request.

Reply With Quote
  #8  
Old September 22nd, 2003, 02:46 AM
sardonyx's Avatar
sardonyx sardonyx is offline
sardonyx quinx
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 157 sardonyx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 34 m 3 sec
Reputation Power: 5
Send a message via Yahoo to sardonyx
that was a good idea bricker42. i can see what you mean about your post.

Reply With Quote
  #9  
Old September 26th, 2003, 04:47 PM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,571 jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 3 Weeks 2 Days 10 h 34 m 6 sec
Reputation Power: 1494
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
Hi,

I go this suggestion from one of the guys on the forums. I had never thopught of it before, but check out this thread for more.

It essentially expands on what bricker42 said. I am currently implementing and it seems faily straight forward enough.

I am using files (ini) for translatable files and then extracting the variables dependant on where the user is on the site.

Please excuse the typos / Friday -> 12:25 -> Beer -> Gabriel Crowe (check this out if you like trance -> I don't but I have been listening to this for hours and hours....

regards

Jamie
__________________
Cheers,

Jamie


# skiFFie | Home of the 'accessibility module' for Drupal
# Jamie Burns [me] Accessibility Module [drupal]
# guidelines | search | wap resources | not getting help | fold to cure

# Any form of employment is strictly prohibited ......


__________________

Let the might of your compassion arise to bring a quick end
to the flowing stream of the blood and tears .....
Please hear my anguished words of truth.

__________________

Reply With Quote
  #10  
Old September 27th, 2003, 12:48 AM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
jabba, that's a really cool idea.

As a side note, if you're working in Java, use ResourceBundles for this. That's what they're designed for. The functionality is very similar the .ini idea.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > Multi-language design


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





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