mirror of
https://github.com/minetest-mods/intllib.git
synced 2025-07-07 10:20:37 +02:00
Add Selected gettext
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
|
||||
-- Load support for intllib.
|
||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
local S, NS = dofile(MP.."/intllib.lua")
|
||||
local S, NS, SS = dofile(MP.."/intllib.lua")
|
||||
|
||||
local use_count = 0
|
||||
|
||||
@ -26,3 +26,8 @@ minetest.register_craftitem("intltest:test", {
|
||||
minetest.chat_send_player(user:get_player_name(), message)
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.log("action", "(nil)"..SS(nil, "Test: @1 @2", SS(nil, "Blue"), SS(nil, "Car")))
|
||||
minetest.log("action", "(es) "..SS("es", "Test: @1 @2", SS("es", "Blue"), SS("es", "Car")))
|
||||
minetest.log("action", "(pt) "..SS("pt", "Test: @1 @2", SS("pt", "Blue"), SS("pt", "Car")))
|
||||
minetest.log("action", "(de) "..SS("de", "Test: @1 @2", SS("de", "Blue"), SS("de", "Car")))
|
||||
|
45
intltest/locale/de.po
Normal file
45
intltest/locale/de.po
Normal file
@ -0,0 +1,45 @@
|
||||
# I18N Test Mod.
|
||||
# Copyright (C) 2013-2017 Diego Martínez <kaeza@users.sf.net>
|
||||
# This file is distributed under the same license as the intllib mod.
|
||||
# Diego Martínez <kaeza@users.sf.net>, 2013-2017.
|
||||
# Diego Martnez <kaeza@users.sf.net>, 2017.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: I18N Test Mod 0.1.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-02-25 20:40-0300\n"
|
||||
"PO-Revision-Date: 2017-07-13 13:36-0300\n"
|
||||
"Last-Translator: Diego Martnez <kaeza@users.sf.net>\n"
|
||||
"Language-Team: Spanish\n"
|
||||
"Language: es\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Gtranslator 2.91.7\n"
|
||||
|
||||
#: init.lua
|
||||
msgid "Hello, world!"
|
||||
msgstr "Hallo Welt!"
|
||||
|
||||
#. Translators: @1 is color, @2 is object.
|
||||
#: init.lua
|
||||
msgid "Blue"
|
||||
msgstr "Blau"
|
||||
|
||||
#: init.lua
|
||||
msgid "Car"
|
||||
msgstr "Auto"
|
||||
|
||||
#. Translators: @1 is color, @2 is object.
|
||||
#: init.lua
|
||||
msgid "Test: @1 @2"
|
||||
msgstr "Test: @2 @1"
|
||||
|
||||
#. Translators: @1 is use count.
|
||||
#: init.lua
|
||||
msgid "Item has been used @1 time."
|
||||
msgid_plural "Item has been used @1 times."
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
45
intltest/locale/pt.po
Normal file
45
intltest/locale/pt.po
Normal file
@ -0,0 +1,45 @@
|
||||
# I18N Test Mod.
|
||||
# Copyright (C) 2013-2017 Diego Martínez <kaeza@users.sf.net>
|
||||
# This file is distributed under the same license as the intllib mod.
|
||||
# Diego Martínez <kaeza@users.sf.net>, 2013-2017.
|
||||
# Diego Martnez <kaeza@users.sf.net>, 2017.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: I18N Test Mod 0.1.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-02-25 20:40-0300\n"
|
||||
"PO-Revision-Date: 2017-07-13 13:35-0300\n"
|
||||
"Last-Translator: Diego Martnez <kaeza@users.sf.net>\n"
|
||||
"Language-Team: Spanish\n"
|
||||
"Language: es\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Gtranslator 2.91.7\n"
|
||||
|
||||
#: init.lua
|
||||
msgid "Hello, world!"
|
||||
msgstr "Ola, mundo!"
|
||||
|
||||
#. Translators: @1 is color, @2 is object.
|
||||
#: init.lua
|
||||
msgid "Blue"
|
||||
msgstr "Azul"
|
||||
|
||||
#: init.lua
|
||||
msgid "Car"
|
||||
msgstr "Carro"
|
||||
|
||||
#. Translators: @1 is color, @2 is object.
|
||||
#: init.lua
|
||||
msgid "Test: @1 @2"
|
||||
msgstr "Teste: @2 @1"
|
||||
|
||||
#. Translators: @1 is use count.
|
||||
#: init.lua
|
||||
msgid "Item has been used @1 time."
|
||||
msgid_plural "Item has been used @1 times."
|
||||
msgstr[0] "Esse objeto foi usado @1 vez."
|
||||
msgstr[1] "Esse objeto foi usado @2 vezes."
|
Reference in New Issue
Block a user