Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Approach to internationalization
- Hugh Oxford
January 7, 2008, 8:26 pm
rate this thread
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.
- The Natural Philosopher
January 7, 2008, 9:24 pm
Re: Approach to internationalization
I usually have pseudo URL's like:
.. 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 =
Somewhat dirty, but a function which can make live easier, is this: =
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).