On 24 Dec, Alexander Bokovoy wrote:
> Hello,
Greetings!
> Yes, I suggested the same idea some time ago. This modification at the
> database level will require also changes in mod_midgard in order to
> allow dynamical rewritting of URI that will be processed by Midgard
> engine (http://LC/path -> http://path and setting up special field
> 'language' in $midgard system variable). In such situation we'll get
> system that automatically selects right content from database using
> $midgard->language field as a language ID.
This plan sounds good, we will need a way of supporting
multi-lingual sites in Midgard. However, having a hard
coded path for setting the locale would be a bit against
how Midgard usually works.
A better way to set the $midgard->locale variable could
be to have a function and set the variable in code-init.
This way the site developer could decide what kind of
system for determining the locale he wants to use. Whether
it comes from an URI parameter, user preference, browser
preference or whatever.
Setting this up shouldn't be at all harder than the URI
system proposed. And as code-init is parsed before anything
is sent back to browser it shouldn't cause any problems
with character sets either.
> Alexander mailto:[EMAIL PROTECTED]
/Bergie
--
-- Henri Bergius -- +358 40 525 1334 -- [EMAIL PROTECTED] --
http://www.iki.fi/Henri.Bergius
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]