Strange behavior with i18n variables - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Strange behavior with i18n variables (/showthread.php?tid=75812) |
Strange behavior with i18n variables - futureisnow - 03-19-2020 Hi, I try to i18n strings with message files as explained in the manual, however if I use similar names with different postfixes, the framework seem to confuse the variables. E.g. in the example: 'msg_pro_ab_1' => 'Hello', 'msg_pro_ab_1a' => 'Bla bla', 'msg_pro_ab_1b' => 'bye bye', etc. it shows only 'hello' in the all cases. Anyone has an idea what could I check? It seems to be too trivial to be a bug. Best Regards, RE: Strange behavior with i18n variables - includebeer - 03-20-2020 Are you sure you didn’t reuse the same key more than one time in your language file? Can you show some code? |