locale/syntax/example.els

21 lines
471 B
Plaintext

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!