#5614: timeAgoInWords return wrong singular/plural day/month/hour etc.
-------------------------+--------------------------------------------------
Reporter: nchankov | Type: Bug
Status: new | Priority: Medium
Milestone: 1.2.x.x | Component: i18n/l10n
Version: RC3 | Severity: Normal
Keywords: | Php_version: PHP 5
Cake_version: |
-------------------------+--------------------------------------------------
when I am using translation file i.e.
/app/locale/bul/LC_MESSAGES/default.po
timeAgoInWords is not working as expected instead of returning "4 hours
and 28 minutes" the result is "4 hour and 28 minute".
If the file default.po is not in the current language folder, the result
is correct "4 hours and 28 minutes".
I suspect that the problem is in i18n->translation function. ~ line 150.
The script enters into elseif code block and I think the problem is there.
If I remove elseif codeblock it's working as expected.
It's possible that I am not using properly the translation functionality,
but for me it look like a problem.
--
Ticket URL: <https://trac.cakephp.org/ticket/5614>
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
-~----------~----~----~----~------~----~------~--~---