Hello,
I like your awesome module. Can you please explain, how to correctly set the module to work with languages that use plural formats?
I tried to do the following (in Czech language, that uses different plural formats for 1 "items", 2-4 "items" and >5 "items"):
1. Keep the texts on admin/settings/jstimer intact and tried to translate phrases like "@count days" using Drupal translate interface. Timer shows phrases like "@count[2] days" (exactly as you see it). Searching for "@count[2] days" in Drupal translate interface finds nothing, therefore I cannot translate it (and obviously @count[2] does not show real number of days, so translation would not probably work anyway).
2. Translate the texts on admin/settings/jstimer and manually edit generated timer.js in the files/jstimer folder, adding lines for @count[2] cases. But it does nothing (maybe I am doing something wrong).
Can you help please? Maybe I am only missing something obvious...
Thank you!
Comments
Comment #1
jvandervort CreditAttribution: jvandervort commentedI'm not sure how javascript translation works on javascript files that are built dynamically.
I don't think http://localize.drupal.org/translate/projects/jstimer has the strings from the js file.
Comment #2
tribsel CreditAttribution: tribsel commentedyeah, this does not work in other languages then english.... out of box
Comment #3
jvandervort CreditAttribution: jvandervort commentedThe translation strings should be like:
1 day
@count days
I've added them to the module so they should show up on localize.drupal.org
Hopefully fixed in dev.