Kind of - I think there’s a mistake in your JSON for ru.cows, or in ru.po, 
should it be:

translations: {
  "es": {
    "cow": "vaca",
    "cows": "vacas"
  },
  "ru": {
    "cow": "korova",
    "cows": [ "korovy", "korov" ]
  }
}

Or should the ru.po be:

msgid "cow"
msgid_plural "cows"
msgstr[0] "korova"
msgstr[1] "korova"
msgstr[2] "korovy"
msgstr[3] "korov"

Just seen that your on #qxdev, left the client running last night and not 
looked at it so will go there now :)

Yes for the PR too :)

John


On 23/02/2016, 08:50, "Dimitri" <mi...@cargosoft.ru> wrote:

Hi John,

Re: msgstr array - I think that's gonna be a good start. Let's
implement it that way and see what qooxdoo guys say. A verbose example
to make sure I understood it right:

es.po:

msgid "cow"
msgid_plural "cows"
msgstr[0] "vaca"
msgstr[1] "vacas"

ru.po:

msgid "cow"
msgid_plural "cows"
msgstr[0] "korova"
msgstr[1] "korovy"
msgstr[2] "korov"

output:

translations: {
 ...
 "es": {
  "cow": "vaca",
  "cows": "vacas"
 },
 "ru": {
  "cow": "korova",
  "cows": [ "korova", "korovy", "korov" ]
 }
}

I guess I now should fork https://github.com/johnspackman/qooxdoo/tree/
qxcompiler , make changes there and file a PR, right?

Dimitri

P.S. you can find me on #qxdev too


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to