mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-08 18:05:17 +02:00
Merge pull request #4928 from Crizz0/ticket/15350
[ticket/15350] Changes outdated wiki-link for plural-rules to new docs/ * github.com:phpbb/phpbb: [ticket/15350] Changes outdated wiki-link to new docs/
This commit is contained in:
commit
7221a47bb6
@ -2387,7 +2387,7 @@ if (utf8_case_fold_nfc($string1) == utf8_case_fold_nfc($string2))
|
||||
You have <code>[1/21/31] slon</code>, <code>[2/3/4] slona</code>, <code>[0/5/6] slonova</code> and <code>[7/8/9/11] ...</code> and some more difficult rules.
|
||||
</p>
|
||||
|
||||
<p>The <a href="https://wiki.phpbb.com/Plural_Rules">plural system</a> takes care of this and can be used as follows:</p>
|
||||
<p>The <a href="https://area51.phpbb.com/docs/dev/32x/language/plurals.html">plural system</a> takes care of this and can be used as follows:</p>
|
||||
|
||||
<p>The PHP code will basically look like this:</p>
|
||||
|
||||
|
@ -488,7 +488,7 @@ function phpbb_realpath($path)
|
||||
* Determine which plural form we should use.
|
||||
* 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 $rule int ID of the plural rule we want to use, see https://area51.phpbb.com/docs/dev/32x/language/plurals.html
|
||||
* @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
|
||||
*
|
||||
|
@ -48,7 +48,7 @@ $lang = array_merge($lang, array(
|
||||
'USER_LANG' => 'en-gb',
|
||||
|
||||
// You can define different rules for the determination of plural forms here.
|
||||
// See http://wiki.phpbb.com/Plural_Rules for more information
|
||||
// See https://area51.phpbb.com/docs/dev/32x/language/plurals.html for more information
|
||||
// or ask the translation manager for help.
|
||||
'PLURAL_RULE' => 1,
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user