forked from minetest-mods/unified_inventory
Collect missing strings for translation
This commit is contained in:
parent
1413f760bc
commit
115e0bfaf4
16
bags.lua
16
bags.lua
@ -10,10 +10,10 @@ unified_inventory.register_page("bags", {
|
|||||||
local player_name = player:get_player_name()
|
local player_name = player:get_player_name()
|
||||||
local formspec = "background[0.06,0.99;7.92,7.52;ui_bags_main_form.png]"
|
local formspec = "background[0.06,0.99;7.92,7.52;ui_bags_main_form.png]"
|
||||||
formspec = formspec.."label[0,0;"..S("Bags").."]"
|
formspec = formspec.."label[0,0;"..S("Bags").."]"
|
||||||
formspec = formspec.."button[0,2;2,0.5;bag1;Bag 1]"
|
formspec = formspec.."button[0,2;2,0.5;bag1;"..S("Bag 1").."]"
|
||||||
formspec = formspec.."button[2,2;2,0.5;bag2;Bag 2]"
|
formspec = formspec.."button[2,2;2,0.5;bag2;"..S("Bag 2").."]"
|
||||||
formspec = formspec.."button[4,2;2,0.5;bag3;Bag 3]"
|
formspec = formspec.."button[4,2;2,0.5;bag3;"..S("Bag 3").."]"
|
||||||
formspec = formspec.."button[6,2;2,0.5;bag4;Bag 4]"
|
formspec = formspec.."button[6,2;2,0.5;bag4;"..S("Bag 4").."]"
|
||||||
formspec = formspec.."listcolors[#00000000;#00000000]"
|
formspec = formspec.."listcolors[#00000000;#00000000]"
|
||||||
formspec = formspec.."list[detached:"..minetest.formspec_escape(player_name).."_bags;bag1;0.5,1;1,1;]"
|
formspec = formspec.."list[detached:"..minetest.formspec_escape(player_name).."_bags;bag1;0.5,1;1,1;]"
|
||||||
formspec = formspec.."list[detached:"..minetest.formspec_escape(player_name).."_bags;bag2;2.5,1;1,1;]"
|
formspec = formspec.."list[detached:"..minetest.formspec_escape(player_name).."_bags;bag2;2.5,1;1,1;]"
|
||||||
@ -36,7 +36,7 @@ unified_inventory.register_button("bags", {
|
|||||||
local stack = player:get_inventory():get_stack("bag1", 1)
|
local stack = player:get_inventory():get_stack("bag1", 1)
|
||||||
local image = stack:get_definition().inventory_image
|
local image = stack:get_definition().inventory_image
|
||||||
local formspec = "image[7,0;1,1;"..image.."]"
|
local formspec = "image[7,0;1,1;"..image.."]"
|
||||||
formspec = formspec.."label[0,0;Bag 1]"
|
formspec = formspec.."label[0,0;"..S("Bag 1").."]"
|
||||||
formspec = formspec.."listcolors[#00000000;#00000000]"
|
formspec = formspec.."listcolors[#00000000;#00000000]"
|
||||||
formspec = formspec.."list[current_player;bag1contents;0,1;8,3;]"
|
formspec = formspec.."list[current_player;bag1contents;0,1;8,3;]"
|
||||||
formspec = formspec.."listring[current_name;bag1contents]"
|
formspec = formspec.."listring[current_name;bag1contents]"
|
||||||
@ -57,7 +57,7 @@ unified_inventory.register_button("bags", {
|
|||||||
local stack = player:get_inventory():get_stack("bag2", 1)
|
local stack = player:get_inventory():get_stack("bag2", 1)
|
||||||
local image = stack:get_definition().inventory_image
|
local image = stack:get_definition().inventory_image
|
||||||
local formspec = "image[7,0;1,1;"..image.."]"
|
local formspec = "image[7,0;1,1;"..image.."]"
|
||||||
formspec = formspec.."label[0,0;Bag 2]"
|
formspec = formspec.."label[0,0;"..S("Bag 2").."]"
|
||||||
formspec = formspec.."listcolors[#00000000;#00000000]"
|
formspec = formspec.."listcolors[#00000000;#00000000]"
|
||||||
formspec = formspec.."list[current_player;bag2contents;0,1;8,3;]"
|
formspec = formspec.."list[current_player;bag2contents;0,1;8,3;]"
|
||||||
formspec = formspec.."listring[current_name;bag2contents]"
|
formspec = formspec.."listring[current_name;bag2contents]"
|
||||||
@ -78,7 +78,7 @@ unified_inventory.register_button("bags", {
|
|||||||
local stack = player:get_inventory():get_stack("bag3", 1)
|
local stack = player:get_inventory():get_stack("bag3", 1)
|
||||||
local image = stack:get_definition().inventory_image
|
local image = stack:get_definition().inventory_image
|
||||||
local formspec = "image[7,0;1,1;"..image.."]"
|
local formspec = "image[7,0;1,1;"..image.."]"
|
||||||
formspec = formspec.."label[0,0;Bag 3]"
|
formspec = formspec.."label[0,0;"..S("Bag 3").."]"
|
||||||
formspec = formspec.."listcolors[#00000000;#00000000]"
|
formspec = formspec.."listcolors[#00000000;#00000000]"
|
||||||
formspec = formspec.."list[current_player;bag3contents;0,1;8,3;]"
|
formspec = formspec.."list[current_player;bag3contents;0,1;8,3;]"
|
||||||
formspec = formspec.."listring[current_name;bag3contents]"
|
formspec = formspec.."listring[current_name;bag3contents]"
|
||||||
@ -99,7 +99,7 @@ unified_inventory.register_button("bags", {
|
|||||||
local stack = player:get_inventory():get_stack("bag4", 1)
|
local stack = player:get_inventory():get_stack("bag4", 1)
|
||||||
local image = stack:get_definition().inventory_image
|
local image = stack:get_definition().inventory_image
|
||||||
local formspec = "image[7,0;1,1;"..image.."]"
|
local formspec = "image[7,0;1,1;"..image.."]"
|
||||||
formspec = formspec.."label[0,0;Bag 4]"
|
formspec = formspec.."label[0,0;"..S("Bag 4").."]"
|
||||||
formspec = formspec.."listcolors[#00000000;#00000000]"
|
formspec = formspec.."listcolors[#00000000;#00000000]"
|
||||||
formspec = formspec.."list[current_player;bag4contents;0,1;8,3;]"
|
formspec = formspec.."list[current_player;bag4contents;0,1;8,3;]"
|
||||||
formspec = formspec.."listring[current_name;bag4contents]"
|
formspec = formspec.."listring[current_name;bag4contents]"
|
||||||
|
@ -26,6 +26,7 @@ Search =
|
|||||||
|
|
||||||
### register.lua ###
|
### register.lua ###
|
||||||
Can use the creative inventory =
|
Can use the creative inventory =
|
||||||
|
Forces Unified Inventory to be displayed in Full mode if Lite mode is configured globally =
|
||||||
Home position set to: %s =
|
Home position set to: %s =
|
||||||
Time of day set to 6am =
|
Time of day set to 6am =
|
||||||
You don't have the settime priviledge! =
|
You don't have the settime priviledge! =
|
||||||
@ -47,6 +48,17 @@ All =
|
|||||||
Recipe %s of %s =
|
Recipe %s of %s =
|
||||||
Alternate =
|
Alternate =
|
||||||
Crafting Grid =
|
Crafting Grid =
|
||||||
|
Recipe =
|
||||||
|
Usage =
|
||||||
|
No recipes =
|
||||||
|
No usages =
|
||||||
|
Result =
|
||||||
|
Ingredient =
|
||||||
|
Set time to day =
|
||||||
|
Set time to night =
|
||||||
|
Set home position =
|
||||||
|
Go home =
|
||||||
|
Clear inventory =
|
||||||
|
|
||||||
### waypoints.lua ###
|
### waypoints.lua ###
|
||||||
White =
|
White =
|
||||||
|
14
register.lua
14
register.lua
@ -1,12 +1,12 @@
|
|||||||
local S = unified_inventory.gettext
|
local S = unified_inventory.gettext
|
||||||
|
|
||||||
minetest.register_privilege("creative", {
|
minetest.register_privilege("creative", {
|
||||||
description = "Can use the creative inventory",
|
description = S("Can use the creative inventory"),
|
||||||
give_to_singleplayer = false,
|
give_to_singleplayer = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_privilege("ui_full", {
|
minetest.register_privilege("ui_full", {
|
||||||
description = "Forces UI to display in Full mode when Lite mode is configured globally",
|
description = S("Forces Unified Inventory to be displayed in Full mode if Lite mode is configured globally"),
|
||||||
give_to_singleplayer = false,
|
give_to_singleplayer = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -135,7 +135,7 @@ unified_inventory.register_button("clear_inv", {
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
player:get_inventory():set_list("main", {})
|
player:get_inventory():set_list("main", {})
|
||||||
minetest.chat_send_player(player_name, 'Inventory Cleared!')
|
minetest.chat_send_player(player_name, S('Inventory cleared!'))
|
||||||
minetest.sound_play("trash_all",
|
minetest.sound_play("trash_all",
|
||||||
{to_player=player_name, gain = 1.0})
|
{to_player=player_name, gain = 1.0})
|
||||||
end,
|
end,
|
||||||
@ -150,7 +150,7 @@ unified_inventory.register_page("craft", {
|
|||||||
local player_name = player:get_player_name()
|
local player_name = player:get_player_name()
|
||||||
local formspec = "background[2,"..formspecy..";6,3;ui_crafting_form.png]"
|
local formspec = "background[2,"..formspecy..";6,3;ui_crafting_form.png]"
|
||||||
formspec = formspec.."background[0,"..(formspecy + 3.5)..";8,4;ui_main_inventory.png]"
|
formspec = formspec.."background[0,"..(formspecy + 3.5)..";8,4;ui_main_inventory.png]"
|
||||||
formspec = formspec.."label[0,"..formheadery..";Crafting]"
|
formspec = formspec.."label[0,"..formheadery..";" ..S("Crafting").."]"
|
||||||
formspec = formspec.."listcolors[#00000000;#00000000]"
|
formspec = formspec.."listcolors[#00000000;#00000000]"
|
||||||
formspec = formspec.."list[current_player;craftpreview;6,"..formspecy..";1,1;]"
|
formspec = formspec.."list[current_player;craftpreview;6,"..formspecy..";1,1;]"
|
||||||
formspec = formspec.."list[current_player;craft;2,"..formspecy..";3,3;]"
|
formspec = formspec.."list[current_player;craft;2,"..formspecy..";3,3;]"
|
||||||
@ -242,13 +242,13 @@ unified_inventory.register_page("craftguide", {
|
|||||||
|
|
||||||
formspec = formspec.."background[0.5,"..(formspecy + 0.2)..";8,3;ui_craftguide_form.png]"
|
formspec = formspec.."background[0.5,"..(formspecy + 0.2)..";8,3;ui_craftguide_form.png]"
|
||||||
formspec = formspec.."textarea["..craftresultx..","..craftresulty
|
formspec = formspec.."textarea["..craftresultx..","..craftresulty
|
||||||
..";10,1;;"..minetest.formspec_escape(role_text[dir]..": "..item_name)..";]"
|
..";10,1;;"..minetest.formspec_escape(S(role_text[dir])..": "..item_name)..";]"
|
||||||
formspec = formspec..stack_image_button(0, formspecy, 1.1, 1.1, "item_button_"
|
formspec = formspec..stack_image_button(0, formspecy, 1.1, 1.1, "item_button_"
|
||||||
.. rdir .. "_", ItemStack(item_name))
|
.. rdir .. "_", ItemStack(item_name))
|
||||||
|
|
||||||
if not craft then
|
if not craft then
|
||||||
formspec = formspec.."label[5.5,"..(formspecy + 2.35)..";"
|
formspec = formspec.."label[5.5,"..(formspecy + 2.35)..";"
|
||||||
..minetest.formspec_escape(no_recipe_text[dir]).."]"
|
..minetest.formspec_escape(S(no_recipe_text[dir])).."]"
|
||||||
local no_pos = dir == "recipe" and 4.5 or 6.5
|
local no_pos = dir == "recipe" and 4.5 or 6.5
|
||||||
local item_pos = dir == "recipe" and 6.5 or 4.5
|
local item_pos = dir == "recipe" and 6.5 or 4.5
|
||||||
formspec = formspec.."image["..no_pos..","..formspecy..";1.1,1.1;ui_no.png]"
|
formspec = formspec.."image["..no_pos..","..formspecy..";1.1,1.1;ui_no.png]"
|
||||||
@ -310,7 +310,7 @@ unified_inventory.register_page("craftguide", {
|
|||||||
end
|
end
|
||||||
|
|
||||||
if alternates and alternates > 1 then
|
if alternates and alternates > 1 then
|
||||||
formspec = formspec.."label[5.5,"..(formspecy + 1.6)..";"..recipe_text[dir].." "
|
formspec = formspec.."label[5.5,"..(formspecy + 1.6)..";"..S(recipe_text[dir]).." "
|
||||||
..tostring(alternate).." of "
|
..tostring(alternate).." of "
|
||||||
..tostring(alternates).."]"
|
..tostring(alternates).."]"
|
||||||
.."button[5.5,"..(formspecy + 2)..";2,1;alternate;" .. S("Alternate") .. "]"
|
.."button[5.5,"..(formspecy + 2)..";2,1;alternate;" .. S("Alternate") .. "]"
|
||||||
|
Loading…
Reference in New Issue
Block a user