#5614: timeAgoInWords return wrong singular/plural day/month/hour etc.
--------------------------+-------------------------------------------------
    Reporter:  nchankov   |         Owner:          
        Type:  Bug        |        Status:  reopened
    Priority:  Medium     |     Milestone:  1.2.x.x 
   Component:  i18n/l10n  |       Version:  RC3     
    Severity:  Normal     |    Resolution:          
    Keywords:             |   Php_version:  PHP 5   
Cake_version:             |  
--------------------------+-------------------------------------------------
Changes (by nchankov):

  * status:  closed => reopened
  * resolution:  needmoreinfo =>

Comment:

 Here is the test case:

 attachment is a app dir of a brand new project

 I've changed only:

 /app/app_controller.php - by adding helpers in the controller

 /app/views/pages/test.ctp - called the function timeAcoInWords with 15-th
 of october /at least to show some difference/

 /app/locale/eng/LC_MESSAGES/default.po - just added hours and hour
 translation.

 by accessing
 http://your_server/testproject/pages/test you will see the test

 1. the the problem case - the translation should show "hours plural" for
 hours and "hour singular" for hour.
 2. normal result - remove default.po from /app/locale/eng/LC_MESSAGES/ and
 clear the cache, hours are shown properly


 Hope this is much clearer.

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5614#comment:2>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to