#6455: i18n locale message category bug
-+--
Reporter: sky_l3ppard | Type: Bug
Status: new | Priority: Medium
Milestone: 1.2.x.x | Component: i18n/l10n
Version: 1.2 Final | Severity: Normal
Keywords: locale, category | Php_version: PHP 5
Cake_version: 1.2.3.8166|
-+--
for example if you have '''LC_MESSAGES''' and '''LC_MONETARY''' in your
locale translations, by calling
{{{
__c('my_translation', LC_MONETARY)
}}}
it will translate correctly, but then default category, of i18n
initialized class, becomes '''LC_MONETARY''' and by calling
{{{
__('my_other_message_in_the_same_page')
}}}
will search for translation in the '''LC_MONETARY''' translation
category..
And there is no way to reset this category, for example if i will be using
a view from a plugin in my layout which has a translation with defined
category, then my plugin translation functions becomes nothing.
I think category should reset to default '''LC_MESSAGES''' after each
call.
--
Ticket URL: https://trac.cakephp.org/ticket/6455
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 tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---