anyone with an idea? :-(
On Friday, September 7, 2012 10:24:58 AM UTC+2, Johannes N wrote:
>
> Hi guys!
>
> I searched the whole web, but didn't found anything about this one.
>
> In my latest project I use following code to inform the user, when a
> sweepstake is going to end:
>
> <?=$this->Time->timeAgoInWords($challenge["Challenge"]["end"], array("end"
> => "+1 year"))?>
>
> Code itself works like a charme, but unfortunately the translations get
> mixed up. CakePHP translates some singular values to plural, and vice versa.
>
> So, my /Locale/deu/LC_MESSAGES/cake.po file looks like
>
> msgid "%d year"
> msgstr "%d Jahr"
>
> msgid "%d years"
> msgstr "%d Jahre"
>
> msgid "%d month"
> msgstr "%d Monat"
>
> msgid "%d months"
> msgstr "%d Monate"
>
> msgid "%d week"
> msgstr "%d Woche"
>
> msgid "%d weeks"
> msgstr "%d Wochen"
>
> msgid "%d day"
> msgstr "%d Tag"
>
> msgid "%d days"
> msgstr "%d Tage"
>
> msgid "%d hour"
> msgstr "%d Stunde"
>
> msgid "%d hours"
> msgstr "%d Stunden"
>
> msgid "%d minute"
> msgstr "%d Minute"
>
> msgid "%d minutes"
> msgstr "%d Minuten"
>
> msgid "%d second"
> msgstr "%d Sekunde"
>
> msgid "%d seconds"
> msgstr "%d Sekunden"
>
>
> Currently the app displays the : 5 Monat, 3 Woche, 3 Tag, although it
> should be: 5 Monate, 3 Wochen, 3 Tage (5 months, 3 weeks, 3 days).
>
> In my opinion everything's set up correctly. I've looked into
> /lib/Cake/Utility/CakeTime.php (829-835) and double checked the code there
> as well. So, Guys, can anyone help me with this problem?
>
> Greetings from Vienna,
>
--
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.