Add i18n system

This commit is contained in:
Janet Blackquill 2022-10-19 22:18:40 -04:00
parent d5f46925a3
commit 77be338e46
11 changed files with 340 additions and 17 deletions

0
i18n/.gitkeep Normal file
View file

41
i18n/template.pot Normal file
View file

@ -0,0 +1,41 @@
msgid ""
msgstr ""
"Project-Id-Version: TShock\n"
"POT-Creation-Date: 2022-10-20 00:16:51-0400\n"
"PO-Revision-Date: 2022-10-20 00:16:51-0400\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: GetText.NET Extractor\n"
#: ../../TShockAPI/Commands.cs:701
#, csharp-format
msgid "{0} executed: {1}{2}."
msgstr ""
#: ../../TShockAPI/Commands.cs:687
#, csharp-format
msgid "{0} tried to execute {1}{2}."
msgstr ""
#: ../../TShockAPI/Commands.cs:652
#: ../../TShockAPI/Commands.cs:680
#, csharp-format
msgid "Invalid command entered. Type {0}help for a list of valid commands."
msgstr ""
#: ../../TShockAPI/Commands.cs:691
#, csharp-format
msgid "You can use '{0}sudo {0}{1}' to override this check."
msgstr ""
#: ../../TShockAPI/Commands.cs:688
msgid "You do not have access to this command."
msgstr ""
#: ../../TShockAPI/Commands.cs:696
msgid "You must use this command in-game."
msgstr ""

44
i18n/tok/TShockAPI.po Normal file
View file

@ -0,0 +1,44 @@
# Janet Blackquill <uhhadd@gmail.com>, 2022.
msgid ""
msgstr ""
"Project-Id-Version: TShock\n"
"POT-Creation-Date: 2022-10-20 00:16:51-0400\n"
"PO-Revision-Date: 2022-10-19 23:20-0400\n"
"Last-Translator: Janet Blackquill <uhhadd@gmail.com>\n"
"Language-Team: none>\n"
"Language: tok\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=4; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || n%10>=5 && n%10<=9 || "
"n%100>=11 && n%100<=14 ? 2 : 3;\n"
"X-Generator: Lokalize 22.11.70\n"
#: ../../TShockAPI/Commands.cs:701
#, csharp-format
msgid "{0} executed: {1}{2}."
msgstr "jan {0} li kepeken: {1}{2}."
#: ../../TShockAPI/Commands.cs:687
#, csharp-format
msgid "{0} tried to execute {1}{2}."
msgstr "jan {0} li wile kepeken {1}{2}. taso ona li ken ala."
#: ../../TShockAPI/Commands.cs:652 ../../TShockAPI/Commands.cs:680
#, csharp-format
msgid "Invalid command entered. Type {0}help for a list of valid commands."
msgstr "ilo ni li lon ala. sina wile sona e ilo lon la o toki e {0}help."
#: ../../TShockAPI/Commands.cs:691
#, csharp-format
msgid "You can use '{0}sudo {0}{1}' to override this check."
msgstr "sina wile weka e awen pona ni la o kepeken '{0}sudo {0}{1}'."
#: ../../TShockAPI/Commands.cs:688
msgid "You do not have access to this command."
msgstr "sina ken ala kepeken ilo ni."
#: ../../TShockAPI/Commands.cs:696
msgid "You must use this command in-game."
msgstr "ilo ni li pali lon musi taso."