By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,948 Members | 852 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,948 IT Pros & Developers. It's quick & easy.

Approach to internationalization

P: n/a
Can anyone recommend an approach to internationalization?

I am specifically concerned about the need to append an &lang=xx to
every internal link and URL. I really don't want to have to manually do
this if at all possible. Is there an approach anyone has taken to this
problem, perhaps some way of autogenerating the query string, or
avoiding it altogether.

If it helps I am using Smarty for this project.
Jan 7 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hugh Oxford wrote:
Can anyone recommend an approach to internationalization?
Make them learn English?

>
I am specifically concerned about the need to append an &lang=xx to
every internal link and URL. I really don't want to have to manually do
this if at all possible. Is there an approach anyone has taken to this
problem, perhaps some way of autogenerating the query string, or
avoiding it altogether.
Sessions would allow you to invisbly carry a language variable..
>
If it helps I am using Smarty for this project.
Jan 7 '08 #2

P: n/a

"The Natural Philosopher" <a@b.cwrote in message
news:11****************@proxy02.news.clara.net...
Hugh Oxford wrote:
>Can anyone recommend an approach to internationalization?

Make them learn English?
.... because it is your internet after all?

I hope you didnt realise what you wrote here, and meant it as a joke.
Even then I dont find it very funny...

Richard.
Jan 7 '08 #3

P: n/a
On Mon, 07 Jan 2008 21:26:48 +0100, Hugh Oxford <ar*****@fas.comwrote:
Can anyone recommend an approach to internationalization?

I am specifically concerned about the need to append an &lang=xx to
every internal link and URL. I really don't want to have to manually do
this if at all possible. Is there an approach anyone has taken to this
problem, perhaps some way of autogenerating the query string, or
avoiding it altogether.
I usually have pseudo URL's like:
example.eu/en/rest/of/path/
example.eu/de/rest/of/path/
example.eu/nl/rest/of/path/
example.eu/fr/rest/of/path/
... which will be examined by PHP itself. Requires a 'single point of
entry' system though, or use Apache mod_rewrite to alter it into a GET
variable.

Somewhat dirty, but a function which can make live easier, is this:
http://nl2.php.net/manual/en/functio...ewrite-var.php

Storing them in sessions as suggested is something I do, but don't rely
on. My sessions are not transparant, and I'd hate to have cookies being
required for 'open' pages (or inaccessable for searchbots for example).
--
Rik Wasmus
Jan 7 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.