zh_TW Translations (#13)
This commit is contained in:
parent
423b0f26a8
commit
78611b3ccd
13
init.lua
13
init.lua
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
local moditems = {} -- switcher
|
local moditems = {} -- switcher
|
||||||
local mineclone_path = minetest.get_modpath("mcl_core") and mcl_core
|
local mineclone_path = minetest.get_modpath("mcl_core") and mcl_core
|
||||||
|
local S = minetest.get_translator("trash_can")
|
||||||
|
|
||||||
if mineclone_path then -- means MineClone 2 is loaded
|
if mineclone_path then -- means MineClone 2 is loaded
|
||||||
moditems.iron_item = "mcl_core:iron_ingot" -- MCL version of iron ingot
|
moditems.iron_item = "mcl_core:iron_ingot" -- MCL version of iron ingot
|
||||||
@ -20,8 +21,8 @@ else -- fallback, assume default (Minetest Game) is loaded
|
|||||||
moditems.coal_item = "default:coalblock" -- MTG coal block
|
moditems.coal_item = "default:coalblock" -- MTG coal block
|
||||||
moditems.green_dye = "dye:dark_green" -- MTG version of green dye
|
moditems.green_dye = "dye:dark_green" -- MTG version of green dye
|
||||||
moditems.sounds = default.node_sound_defaults
|
moditems.sounds = default.node_sound_defaults
|
||||||
moditems.trashcan_infotext = "Trash Can"
|
moditems.trashcan_infotext = S("Trash Can")
|
||||||
moditems.dumpster_infotext = "Dumpster"
|
moditems.dumpster_infotext = S("Dumpster")
|
||||||
moditems.boxart = ""
|
moditems.boxart = ""
|
||||||
moditems.trashbin_groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}
|
moditems.trashbin_groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}
|
||||||
moditems.dumpster_groups = {cracky=3,oddly_breakable_by_hand=1}
|
moditems.dumpster_groups = {cracky=3,oddly_breakable_by_hand=1}
|
||||||
@ -98,7 +99,7 @@ local dumpster_nodebox = {
|
|||||||
|
|
||||||
-- Normal Trash Can
|
-- Normal Trash Can
|
||||||
minetest.register_node("trash_can:trash_can_wooden",{
|
minetest.register_node("trash_can:trash_can_wooden",{
|
||||||
description = "Wooden Trash Can",
|
description = S("Wooden Trash Can"),
|
||||||
drawtype="nodebox",
|
drawtype="nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tiles = {
|
tiles = {
|
||||||
@ -117,7 +118,7 @@ minetest.register_node("trash_can:trash_can_wooden",{
|
|||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
meta:set_string("formspec",
|
meta:set_string("formspec",
|
||||||
"size[8,9]" ..
|
"size[8,9]" ..
|
||||||
"button[0,0;2,1;empty;Empty Trash]" ..
|
"button[0,0;2,1;empty;" .. S("Empty Trash") .. "]" ..
|
||||||
"list[context;trashlist;3,1;2,3;]" ..
|
"list[context;trashlist;3,1;2,3;]" ..
|
||||||
"list[current_player;main;0,5;8,4;]" ..
|
"list[current_player;main;0,5;8,4;]" ..
|
||||||
"listring[]" ..
|
"listring[]" ..
|
||||||
@ -159,7 +160,7 @@ minetest.register_node("trash_can:trash_can_wooden",{
|
|||||||
|
|
||||||
-- Dumpster
|
-- Dumpster
|
||||||
minetest.register_node("trash_can:dumpster", {
|
minetest.register_node("trash_can:dumpster", {
|
||||||
description = "Dumpster",
|
description = S("Dumpster"),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
inventory_image = "dumpster_wield.png",
|
inventory_image = "dumpster_wield.png",
|
||||||
@ -188,7 +189,7 @@ minetest.register_node("trash_can:dumpster", {
|
|||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
meta:set_string("formspec",
|
meta:set_string("formspec",
|
||||||
"size[8,9]" ..
|
"size[8,9]" ..
|
||||||
"button[0,0;2,1;empty;Empty Trash]" ..
|
"button[0,0;2,1;empty;" .. S("Empty Trash") .. "]" ..
|
||||||
"list[context;main;1,1;6,3;]" ..
|
"list[context;main;1,1;6,3;]" ..
|
||||||
"list[current_player;main;0,5;8,4;]"..
|
"list[current_player;main;0,5;8,4;]"..
|
||||||
"listring[]" ..
|
"listring[]" ..
|
||||||
|
5
locale/template.txt
Normal file
5
locale/template.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# textdomain: trash_can
|
||||||
|
Trash Can=
|
||||||
|
Dumpster=
|
||||||
|
Wooden Trash Can=
|
||||||
|
Empty Trash=
|
5
locale/trash_can.zh_TW.tr
Normal file
5
locale/trash_can.zh_TW.tr
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# textdomain: trash_can
|
||||||
|
Trash Can=垃圾桶
|
||||||
|
Dumpster=大型垃圾桶
|
||||||
|
Wooden Trash Can=木製垃圾桶
|
||||||
|
Empty Trash=清空垃圾桶
|
Loading…
x
Reference in New Issue
Block a user