Files
oak-editor/app/node
Simran fca485bd69 Fix plural handling for translations (#1424)
* .arg() doesn't handle plurals, replace %1 with %n and pass number to tr(), but only if there is an accompanying word for that we want singular/plural translations and only for whole numbers.

* Qt's translation methods only accept integers and we don't know what grammatical number form would be correct for floating-point numbers in different languages anyway.

* Add optional 2nd argument to SliderBase::SetFormat() to activate deferred plural handling:
  SetFormat(QT_TRANSLATE_N_NOOP("olive::SliderBase", "%n unit(s)"), true)

* Generate en_US.ts with lupdate's -pluralonly option. Only source strings that require plural handling need to be translated (as long as the source language is American English).
2021-04-13 00:58:46 +02:00
..
2021-04-08 12:15:59 +10:00
2021-04-12 11:05:45 +10:00
2021-04-08 12:15:59 +10:00
2021-04-08 12:15:59 +10:00
2021-04-08 12:15:59 +10:00
2021-04-12 16:37:26 +10:00
2021-04-11 18:54:22 +10:00
2021-04-08 12:15:59 +10:00
2021-04-12 16:37:26 +10:00
2021-04-12 16:37:26 +10:00
2021-04-12 16:37:26 +10:00
2021-04-12 16:37:26 +10:00
2021-02-09 15:48:37 +11:00
2021-02-09 15:48:37 +11:00
2021-04-12 16:37:26 +10:00
2021-03-25 22:48:03 +11:00
2021-04-08 12:15:59 +10:00
2021-02-09 15:48:37 +11:00
2021-02-09 15:48:37 +11:00
2021-01-29 16:10:34 +11:00
2021-02-09 15:48:37 +11:00
2021-02-09 15:48:37 +11:00