#5663: Multiline plural message strings not supported
-------------------------------+--------------------------------------------
Reporter: mensler | Type: Bug
Status: new | Priority: Low
Milestone: 1.2.x.x | Component: i18n/l10n
Version: RC3 | Severity: Normal
Keywords: | Php_version: PHP 5
Cake_version: 1.2.0.7692 RC3 |
-------------------------------+--------------------------------------------
If my po file contains entries like this:
{{{
msgid "%d apple"
"another line"
msgid_plural "%d apples"
msgstr[0] "%d Apfel"
"weitere Zeile"
msgstr[1] "%d Äpfel"
}}}
the complete translation is unsetted.
From I18n::!__loadPo():
{{{
} elseif (preg_match("/^\"(.*)\"$/i", $line, $regs) && $type == 6 &&
$translationKey) {
unset($translations[$translationKey]);
$type = 0;
$translationKey = "";
$plural = 0;
}
}}}
Why is this done? Wouldn't the following be correct?
{{{
} elseif (preg_match("/^\"(.*)\"$/i", $line, $regs) && $type == 6 &&
$translationKey) {
$translations[$translationKey][$plural] .=
stripcslashes($regs[1]);
}
}}}
--
Ticket URL: <https://trac.cakephp.org/ticket/5663>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---