20 lines
471 B
Text
20 lines
471 B
Text
Er2 Locale source
|
|
|
|
Let's create a new string
|
|
"Just string"
|
|
Currently it haven't got translation
|
|
but we can fix it
|
|
= "No, it's localized string"
|
|
Spaces is optional
|
|
Also we can replace this translation
|
|
= "Power string!"
|
|
|
|
This is basic, how about plural forms?
|
|
> "Power strings!"
|
|
Spaces is also optional
|
|
|
|
Oh, I forgot! We can use interpolation
|
|
> "\$escaped $plural not escaped variable"
|
|
To use it, type _("string", {key = value})
|
|
|
|
Now you know this localization format!
|