From 542711fc88608cb86c732edf5aa5bfc3db1f7669 Mon Sep 17 00:00:00 2001 From: Jan Nemec Date: Thu, 25 Jun 2015 23:34:40 +0200 Subject: [PATCH] fixed translation for plural translation with missing translation --- GettextTranslator/Gettext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GettextTranslator/Gettext.php b/GettextTranslator/Gettext.php index 6895ab3..109bb73 100644 --- a/GettextTranslator/Gettext.php +++ b/GettextTranslator/Gettext.php @@ -183,7 +183,7 @@ public function translate($message, $form = 1) $this->sessionStorage->newStrings[$this->lang][$message] = empty($message_plural) ? array($message) : array($message, $message_plural); } - if ($form > 1 && !empty($message_plural)) { + if ($form > 1 && !empty($message_plural) && is_string($message_plural)) { $message = $message_plural; } }