Need advices from Drupal guru: develop modules that support multilanguages
Dear all I have a project building a portal site (somewhat like myspace.com) for 4 countries: - Japan - Spain - France - England Outline: When users access toppage, system will: 1) check which country is this user from 2) Then redirect user to page that displaying content in corresponding to him/her country language Pages for each country is different in language but totally same in content: Subject, title, label, and main content body also. So I need advices from you: About 1): first option is: I planned to uses Accept-Language request header from browser to check where user is from. Second option is: I planned to user Multiviews in Apache to handling this. And I will redirect user based on above returned result. So my question is: - Above solutions is OK? - Do I need to pay any attention on something? - Is any better solution out there? About 2) I would like to receive any advices from you about: - Ex about using t() function, handling date and times etc - text strings used commonly such as labels on form buttons. - body content such as blog articles, informational pages and static blocks - And any others. Thanks in advanced
This is really more of a support question that a development question but the short answer is use D6 and enable the locale and translation modules. Hit up admin/settings/language/configure and enable Language negotiation. On Wed, Jul 23, 2008 at 7:06 PM, Vu The Cuong <vuthecuong@luvina.net> wrote:
Dear all
I have a project building a portal site (somewhat like myspace.com) for 4 countries:
- Japan
- Spain
- France
- England
Outline:
When users access toppage, system will:
1) check which country is this user from
2) Then redirect user to page that displaying content in corresponding to him/her country language
Pages for each country is different in language but totally same in content:
Subject, title, label, and main content body also.
So I need advices from you:
About 1): first option is: I planned to uses Accept-Language request header from browser to check where user is from.
Second option is: I planned to user Multiviews in Apache to handling this.
And I will redirect user based on above returned result.
So my question is:
- Above solutions is OK?
- Do I need to pay any attention on something?
- Is any better solution out there?
About 2)
I would like to receive any advices from you about:
- Ex about using t() function, handling date and times etc
- text strings used commonly such as labels on form buttons.
- body content such as blog articles, informational pages and static blocks
- And any others.
Thanks in advanced
participants (2)
-
andrew morton -
Vu The Cuong