mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-25 16:31:28 +00:00
lib: Upgrade php-gettext from 1.0.11 to 1.0.12
https://launchpad.net/php-gettext
The local change to rename the gettext_reader function to
__construct (commit 00b6b66827) has been
preserved.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
@@ -350,6 +350,10 @@ class gettext_reader {
|
||||
* @return int array index of the right plural form
|
||||
*/
|
||||
function select_string($n) {
|
||||
if (!is_int($n)) {
|
||||
throw new InvalidArgumentException(
|
||||
"Select_string only accepts integers: " . $n);
|
||||
}
|
||||
$string = $this->get_plural_forms();
|
||||
$string = str_replace('nplurals',"\$total",$string);
|
||||
$string = str_replace("n",$n,$string);
|
||||
|
||||
Reference in New Issue
Block a user