Welcome Guest, Not a member yet? Register   Sign In
How do you i18n?
#11

[eluser]boldewyn[/eluser]
My line of thought is, that the selection of language has (ideally) nothing to do with routing to a specific content, therefore I do it at the CI_URI stage.

With "ideally" I mean, that on my site every page exists in every available language. Then a MY_URI class takes over URI handling, excerpts the language as being the first part of the uri_string, negotiates language w/ browser, if it's missing or not conforming and hands over a stripped version of the URI to the routing. It also saves the found language in the config for use with gettext.

Inside my application I use gettext (or, because PHP's gettext is horrible, <http://savannah.nongnu.org/projects/php-gettext/>).

Any comments about this way? I'd be glad to hear.


Messages In This Thread
How do you i18n? - by El Forum - 02-25-2008, 05:07 PM
How do you i18n? - by El Forum - 02-25-2008, 05:19 PM
How do you i18n? - by El Forum - 02-25-2008, 05:31 PM
How do you i18n? - by El Forum - 02-25-2008, 05:44 PM
How do you i18n? - by El Forum - 02-25-2008, 06:04 PM
How do you i18n? - by El Forum - 02-25-2008, 07:16 PM
How do you i18n? - by El Forum - 02-26-2008, 02:01 AM
How do you i18n? - by El Forum - 02-26-2008, 04:32 AM
How do you i18n? - by El Forum - 02-26-2008, 06:30 AM
How do you i18n? - by El Forum - 03-04-2008, 11:40 AM
How do you i18n? - by El Forum - 03-15-2008, 12:18 PM
How do you i18n? - by El Forum - 03-15-2008, 02:36 PM
How do you i18n? - by El Forum - 03-16-2008, 03:49 AM
How do you i18n? - by El Forum - 03-19-2008, 07:42 AM
How do you i18n? - by El Forum - 03-19-2008, 10:41 AM
How do you i18n? - by El Forum - 03-19-2008, 05:23 PM
How do you i18n? - by El Forum - 03-26-2008, 08:49 AM
How do you i18n? - by El Forum - 05-31-2008, 08:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB