Welcome Guest, Not a member yet? Register   Sign In
Check if my codeigniter 4 runs in multilingual mode.
#3

(05-06-2021, 11:30 AM)InsiteFX Wrote: The multi-language in CodeIgniter should only be used for internal errors and strings.
all major new web browsers now support multi-language and they should do the conversion.

You can change the <html lang="en". to a different language and the web browser should pick it up.

Thanks, but I am working on a back-end solution with 3 different languages.

Maybe, I didn't explain it to you well!

My problem is whether the current page uses the language key or if the key is just a variable.

How can I add a boolean variable when Codeigniter parses the fisrt key as a language key and that variable should be callable anywhere in my program.
For example: $ in_multilingual_mode = false;
When CodeIgniter interprets the first segment as a key the variable turns it would change to  $ in_multilingual_mode = true;

I have a specific case for that.
Thank you 

Reply


Messages In This Thread
RE: Check if my codeigniter 4 runs in multilingual mode. - by sdiri - 05-09-2021, 01:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB