commit e54a914e4c86862f31e01d2d816ec66d9cac3157 Author: Erik Stielstra Date: Wed Jun 26 11:39:42 2013 +0100 #26 diff --git a/core/lib/Drupal/Component/Gettext/PoHeader.php b/core/lib/Drupal/Component/Gettext/PoHeader.php index d5ad380..6a491f3 100644 --- a/core/lib/Drupal/Component/Gettext/PoHeader.php +++ b/core/lib/Drupal/Component/Gettext/PoHeader.php @@ -513,6 +513,6 @@ protected function evaluatePlural($element_stack, $n) { } } } - return $element_stack[0]; + return (int) $element_stack[0]; } } diff --git a/core/modules/locale/lib/Drupal/locale/PoDatabaseWriter.php b/core/modules/locale/lib/Drupal/locale/PoDatabaseWriter.php index eebf85a..4ac4a89f 100644 --- a/core/modules/locale/lib/Drupal/locale/PoDatabaseWriter.php +++ b/core/modules/locale/lib/Drupal/locale/PoDatabaseWriter.php @@ -178,7 +178,7 @@ function setHeader(PoHeader $header) { list($nplurals, $formula) = $p; $locale_plurals[$langcode] = array( 'plurals' => $nplurals, - 'formula' => serialize($formula), + 'formula' => $formula, ); \Drupal::state()->set('locale.translation.plurals', $locale_plurals); }