From 79179fb65a6c7045fc97969851dd0d4f1524a14f Mon Sep 17 00:00:00 2001 From: FlyingSky Date: Fri, 23 Jul 2021 17:23:36 +0800 Subject: [PATCH] fix #1118; @see #1118 --- var/Typecho/I18n/GetTextMulti.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/var/Typecho/I18n/GetTextMulti.php b/var/Typecho/I18n/GetTextMulti.php index 5338da47..0596b740 100644 --- a/var/Typecho/I18n/GetTextMulti.php +++ b/var/Typecho/I18n/GetTextMulti.php @@ -79,6 +79,8 @@ class Typecho_I18n_GetTextMulti */ public function ngettext($single, $plural, $number) { + $count = -1; + foreach ($this->_handles as $handle) { $string = $handle->ngettext($single, $plural, $number, $count); if (-1 != $count) {