Having a question about translating phpBB 3.1? Want to discuss and collaborate with people currently translating phpBB 3.1? Here would be the correct place to do so.
Hi.
I have a problem with plural rule. At least in slovenian, when using rule "10".
The problem is in the private message setting, more specific in the "FOLDER_STATUS_MSG". It is using for calculating, which line to use %3$d%% instead of %2$d, or I am missing something?
No. Plural rule number 10 is perfect.
I am saying, that instead of using string number 1, it is using string number 2 (from percents). Just in this case.
Here is the "error":
I'm don't know php at all, but with trying and succeeding , I managed to change it, so it work as it should.
From: $return['message'] = $user->lang('FOLDER_STATUS_MSG', $user->lang('MESSAGES_COUNT', (int) $return['max']), $return['cur'], $return['percent']);
To: $return['message'] = $user->lang('FOLDER_STATUS_MSG', $user->lang('MESSAGES_COUNT', $return['max']), (int) $return['cur'], $return['percent']);
Just moved (int) from $return['max'] to $return['cur'].
But this is not the solution. Or is it?