mirror of
https://github.com/luanti-org/luanti.git
synced 2025-12-10 01:15:24 +01:00
Gettext and plural support for client-side translations (#14726)
--------- Co-authored-by: Ekdohibs <nathanael.courant@laposte.net> Co-authored-by: y5nw <y5nw@protonmail.com> Co-authored-by: rubenwardy <rw@rubenwardy.com>
This commit is contained in:
26
games/devtest/mods/testtranslations/translation_mo.de.po
Normal file
26
games/devtest/mods/testtranslations/translation_mo.de.po
Normal file
@@ -0,0 +1,26 @@
|
||||
msgid ""
|
||||
msgstr "Plural-Forms: nplurals=2; plural= n != 1;"
|
||||
|
||||
msgctxt "context"
|
||||
msgid "With context"
|
||||
msgstr "Has context"
|
||||
|
||||
msgctxt "context"
|
||||
msgid "Singular form"
|
||||
msgid_plural "Plural form"
|
||||
msgstr[0] "Singular result"
|
||||
msgstr[1] "Plural result"
|
||||
|
||||
# Replace plural form delimiter in the msgstr
|
||||
msgid "Corrupt singular"
|
||||
msgid_plural "Corrupt plural"
|
||||
msgstr[0] "Corrupt singular result"
|
||||
msgstr[1] "Corrupt plural result"
|
||||
|
||||
# Replace terminating NUL in the MO file
|
||||
msgid "Corrupt entry"
|
||||
msgstr "Corrupted result"
|
||||
|
||||
# Change the address of this entry to something invalid
|
||||
msgid "Removed entry"
|
||||
msgstr "Removed result"
|
||||
Reference in New Issue
Block a user