Since version 4.6, Godot has pluralization for CSV localization files.
CSV can have a ?plural column:
keys,?plural,en,ru
SCORE,SCORE_PL,point,очко
,,points,очка
,,,очков
And can be used like this:
string.Format(TrN("SCORE", "SCORE_PL", arg0), arg0));
Unfortunately, if it has a parameter,
keys,?plural,en,ru
SCORE,SCORE_PL,{0} point,{0} очко
,,{0} points,{0} очка
,,,{0} очков
generation of the TR and TRExtensions classes fails.
Since version 4.6, Godot has pluralization for CSV localization files.
CSV can have a ?plural column:
And can be used like this:
string.Format(TrN("SCORE", "SCORE_PL", arg0), arg0));Unfortunately, if it has a parameter,
generation of the TR and TRExtensions classes fails.