Multicountry - multilanguage website |
Hi everyone,
I need to develop a multicountry site, where the user can change language by selecting a country. All countries have just one language assigned to them and multiple countries can have the same language. Both country and language will always be in the url, after the domain (examples below): www.domain.tld/uk/en/my-url www.domain.tld/fr/fr/my-url www.domain.tld/be/fr/my-url By following the official documentation, I managed to get a working multilanguage site (using the files in the "Language" folder, which I'll use to set the translations), but I don't know how to relate countries with languages. What is the best approach to this issue? Thanks!
first go there
https://codeigniter.com/user_guide/outgo...anslations PHP Code: then go app /config finally send header Accept-Language = en or fa
Enlightenment Is Freedom
(06-14-2021, 12:22 PM)paliz Wrote: first go thereHi @paliz, Thank you for your answer, unfortunately I already did these steps. I already have a working multilanguage site, but I also need to implement the country feature. Any suggestion? Thanks |
Welcome Guest, Not a member yet? Register Sign In |