Page 1 of 1

Change format Now playing - X minutes ago

PostPosted: Thu Aug 05, 2010 4:40 am
by ziopietro
Hi,

this is not feature but only a little change request ;)

please change format of ResourceBundle, part #main.jsp
from
main.minutesago = minutes ago
to
main.minutesago = {0} minutes ago
(and corresponding part of program too, obviously)

because of translations. In some languages it's impossible translate fix form "NUMBER text", they use another form, eg. "text NUMBER" or even "text NUMBER text".

I have czech translation almost done, but can't translate this item. Question is for czech language even more complicated, frankly for czech grammar rules 3 types of message are needed:
In program need to be switch:
if amount of counted items is 1 use form1 of message
if it's from 2 to 4 use form234 of message
othervise use form5more of message
and in ResourceBundle 3 corresponding types of message.

Yes, natural languages are too complicated, programming ones are better :)

Only for complement, in czech language right form of message in this case is semplified (only form1 and form234 is used):
před 1 minutou (1 minute ago)
před 2, 3, 4, 5, ... minutami (2, 3, 4, 5, ... minutes ago)
but simple counting of time has all 3 forms
1 minuta (1 minute)
2, 3, 4 minuty (2, 3, 4 minutes)
5, 6 a vĂ­ce minut (5, 6, and more minutes)

BTW thanks for Subsonic, found it yesterday, installed and configured, done on the fly czech translation and it's just runing right now. Great piece of SW, hats off.

Regards

Pietro