1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-08 16:45:19 +02:00

[ticket/10345] Document behaviour for floating numbers on phpbb_get_plural_form

The numbers are floored by casting to int.

PHPBB3-10345
This commit is contained in:
Joas Schilling 2011-11-30 21:07:53 +01:00
parent b195fce0a4
commit dd99675f72
2 changed files with 2 additions and 2 deletions

View File

@ -4186,7 +4186,7 @@ function phpbb_optionset($bit, $set, $data)
* For some languages this is not as simple as for English.
*
* @param $rule int ID of the plural rule we want to use, see http://wiki.phpbb.com/Plural_Rules#Plural_Rules
* @param $number int|float The number we want to get the plural case for
* @param $number int|float The number we want to get the plural case for. Float numbers are floored.
* @return int The plural-case we need to use for the number plural-rule combination
*/
function phpbb_get_plural_form($rule, $number)

View File

@ -1914,7 +1914,7 @@ class user extends session
* Determine which plural form we should use.
* For some languages this is not as simple as for English.
*
* @param $number int|float The number we want to get the plural case for
* @param $number int|float The number we want to get the plural case for. Float numbers are floored.
* @param $force_rule mixed False to use the plural rule of the language package
* or an integer to force a certain plural rule
* @return int The plural-case we need to use for the number plural-rule combination