Welcome Guest, Not a member yet? Register   Sign In
Switching contents language in CodeIgniter
#1

[eluser]KeyStroke[/eluser]
Hi,

I'm going to use CI's language class to make a site that supports English and Arabic. I have two questions about that though:

1) How do you usually separate both versions of the site?

for example: is it like ar.yourdomain.com/home (ar = Arabic), or yourdomain.com/ar/home? or maybe another way?




2) How do you swap languages within the application? Do you set a global language variable in each PHP file or a bunch of IF statements throughout the program or how exactly?


You help is much appreciated Smile


Messages In This Thread
Switching contents language in CodeIgniter - by El Forum - 04-07-2008, 03:25 AM
Switching contents language in CodeIgniter - by El Forum - 04-07-2008, 03:39 AM
Switching contents language in CodeIgniter - by El Forum - 04-07-2008, 05:33 AM
Switching contents language in CodeIgniter - by El Forum - 04-07-2008, 05:41 AM
Switching contents language in CodeIgniter - by El Forum - 04-07-2008, 06:04 AM
Switching contents language in CodeIgniter - by El Forum - 04-08-2008, 07:57 PM
Switching contents language in CodeIgniter - by El Forum - 04-09-2008, 07:07 AM
Switching contents language in CodeIgniter - by El Forum - 04-13-2008, 05:18 AM
Switching contents language in CodeIgniter - by El Forum - 04-13-2008, 06:18 AM
Switching contents language in CodeIgniter - by El Forum - 04-13-2008, 07:21 AM
Switching contents language in CodeIgniter - by El Forum - 06-19-2008, 05:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB