Welcome Guest, Not a member yet? Register   Sign In
localization issue
#7

It depends on what you are trying to accomplish. For my blog, I have a column in the article table for the language it is written in. I have only one controller that is used by all languages but it fetch only the articles in the language matching the locale defined in the url. I also have a column for the slug because I didn’t want to define a route for each article in every language. In this particular case, I don’t need a different controller for EN and for FR.

For the list of blog posts, the urls will look like this:
Code:
/en/blog
/fr/blog

And for the blog posts, the urls will look like this:
Code:
/en/blog/some-article-in-english
/fr/blog/un-article-en-francais
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply


Messages In This Thread
localization issue - by eleumas - 04-29-2021, 04:34 AM
RE: localization issue - by demyr - 04-29-2021, 09:02 AM
RE: localization issue - by includebeer - 04-29-2021, 05:16 PM
RE: localization issue - by eleumas - 04-30-2021, 02:45 AM
RE: localization issue - by demyr - 04-30-2021, 06:47 AM
RE: localization issue - by eleumas - 04-30-2021, 07:01 AM
RE: localization issue - by includebeer - 04-30-2021, 07:31 AM
RE: localization issue - by demyr - 04-30-2021, 07:54 AM
RE: localization issue - by eleumas - 05-04-2021, 12:45 AM
RE: localization issue - by InsiteFX - 05-04-2021, 02:13 AM
RE: localization issue - by paliz - 05-04-2021, 11:11 AM
RE: localization issue - by eleumas - 05-11-2021, 12:06 AM
RE: localization issue - by includebeer - 05-11-2021, 04:31 AM
RE: localization issue - by eleumas - 05-11-2021, 01:01 PM
RE: localization issue - by InsiteFX - 05-12-2021, 02:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB