Skip to content

Pluralization with TR attribute #192

@Terinyo

Description

@Terinyo

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions