• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Strange behavior with i18n variables

#1
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,
Reply

#2
Are you sure you didn’t reuse the same key more than one time in your language file?
Can you show some code?
Test your translation files with Translation Tester
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.