Welcome Guest, Not a member yet? Register   Sign In
validation errors multi-lingual
#10

[eluser]benjamincurrie[/eluser]
I created a Multi-Language Hook that I created for a project I have been working on. Multi-Language front-end support seems to be a very desired functionality that doesn't seem to be well supported in any frameworks, heres hoping this helps some people.

https://github.com/benjamincurrie/CodeIg...age-Switch

My main goal was to support multi-lingual search engine friendly URL's, for example:
http://mysite.com/home (home page in English)
http://mysite.com/accueil (home page in French)

This does require a config file to keep track of controller and function translations, for those who don't wish to maintain translations it reverts to URL's like this:
http://mysite.com/fr/home

There is also an option to use a query string:
http://mysite.com/home?lang=fr

I've put the project up on Github and would love some feedback, feel free to fork and improve on the code.
A lot of people seem to want to use cookies for storing user language preference, however I don't believe this is the best practice for search engine crawlers. Will eventually get to supporting this method too (as well as subdomain).

Ben


Messages In This Thread
validation errors multi-lingual - by El Forum - 08-24-2008, 07:37 AM
validation errors multi-lingual - by El Forum - 08-24-2008, 12:46 PM
validation errors multi-lingual - by El Forum - 08-24-2008, 08:55 PM
validation errors multi-lingual - by El Forum - 08-25-2008, 01:12 AM
validation errors multi-lingual - by El Forum - 08-25-2008, 01:33 AM
validation errors multi-lingual - by El Forum - 08-25-2008, 02:41 AM
validation errors multi-lingual - by El Forum - 02-14-2009, 11:56 AM
validation errors multi-lingual - by El Forum - 07-07-2009, 04:13 AM
validation errors multi-lingual - by El Forum - 07-07-2009, 09:54 AM
validation errors multi-lingual - by El Forum - 02-05-2012, 09:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB