aboutsummaryrefslogtreecommitdiff
path: root/builtin/gamemgr.lua
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2013-08-14 19:22:23 +0200
committerPilzAdam <pilzadam@minetest.net>2013-08-17 16:01:43 +0200
commit09a50d0458f46c6129b4bea94502908241b3aed3 (patch)
tree57a2094750b7d47446a05fe1f8a64a8bca490fe8 /builtin/gamemgr.lua
parent787b43b2183262a08726434e2597638ad85bfb72 (diff)
downloadminetest-09a50d0458f46c6129b4bea94502908241b3aed3.tar.gz
minetest-09a50d0458f46c6129b4bea94502908241b3aed3.tar.bz2
minetest-09a50d0458f46c6129b4bea94502908241b3aed3.zip
Add translation for main menu
Add engine.gettext() and remove gettext() calls in guiFormspecMenu.cpp
Diffstat (limited to 'builtin/gamemgr.lua')
-rw-r--r--builtin/gamemgr.lua26
1 files changed, 13 insertions, 13 deletions
diff --git a/builtin/gamemgr.lua b/builtin/gamemgr.lua
index e90a3840e..cb3e8d442 100644
--- a/builtin/gamemgr.lua
+++ b/builtin/gamemgr.lua
@@ -20,10 +20,10 @@ gamemgr = {}
--------------------------------------------------------------------------------
function gamemgr.dialog_new_game()
local retval =
- "label[2,2;Game Name]"..
+ "label[2,2;" .. fgettext("Game Name") .. "]"..
"field[4.5,2.4;6,0.5;te_game_name;;]" ..
- "button[5,4.2;2.6,0.5;new_game_confirm;Create]" ..
- "button[7.5,4.2;2.8,0.5;new_game_cancel;Cancel]"
+ "button[5,4.2;2.6,0.5;new_game_confirm;" .. fgettext("Create") .. "]" ..
+ "button[7.5,4.2;2.8,0.5;new_game_cancel;" .. fgettext("Cancel") .. "]"
return retval
end
@@ -114,8 +114,8 @@ function gamemgr.handle_edit_game_buttons(fields)
local sourcepath = mod.path
if not gamemgr.add_mod(current_game,sourcepath) then
- gamedata.errormessage = "Gamemgr: Unable to copy mod: " ..
- mod.name .. " to game: " .. current_game.id
+ gamedata.errormessage =
+ fgettext("Gamemgr: Unable to copy mod \"$1\" to game \"$2\"", mod.name, current_game.id)
end
end
end
@@ -200,8 +200,8 @@ function gamemgr.tab()
end
local retval =
- "vertlabel[0,-0.25;GAMES]" ..
- "label[1,-0.25;Games:]" ..
+ "vertlabel[0,-0.25;" .. fgettext("GAMES") .. "]" ..
+ "label[1,-0.25;" .. fgettext("Games") .. ":]" ..
"textlist[1,0.25;4.5,4.4;gamelist;" ..
gamemgr.gamelist() ..
";" .. gamemgr.selected_game .. "]"
@@ -217,11 +217,11 @@ function gamemgr.tab()
retval = retval ..
"field[8,-0.25;6,2;;" .. current_game.name .. ";]"..
- "label[6,1.4;Mods:]" ..
- "button[9.7,1.5;2,0.2;btn_game_mgr_edit_game;edit game]" ..
+ "label[6,1.4;" .. fgettext("Mods:") .."]" ..
+ "button[9.7,1.5;2,0.2;btn_game_mgr_edit_game;" .. fgettext("edit game") .. "]" ..
"textlist[6,2;5.5,3.3;game_mgr_modlist;"
.. gamemgr.get_game_mods(current_game) ..";0]" ..
- "button[1,4.75;3.2,0.5;btn_game_mgr_new_game;new game]"
+ "button[1,4.75;3.2,0.5;btn_game_mgr_new_game;" .. fgettext("new game") .. "]"
end
return retval
end
@@ -231,7 +231,7 @@ function gamemgr.dialog_edit_game()
local current_game = gamemgr.get_game(gamemgr.selected_game)
if current_game ~= nil then
local retval =
- "vertlabel[0,-0.25;EDIT GAME]" ..
+ "vertlabel[0,-0.25;" .. fgettext("EDIT GAME") .."]" ..
"label[0,-0.25;" .. current_game.name .. "]" ..
"button[11.55,-0.2;0.75,0.5;btn_close_edit_game;x]"
@@ -251,10 +251,10 @@ function gamemgr.dialog_edit_game()
.. modmgr.render_modlist() .. ";0]"
retval = retval ..
- "button[0.55,4.95;4.7,0.5;btn_remove_mod_from_game;Remove selected mod]"
+ "button[0.55,4.95;4.7,0.5;btn_remove_mod_from_game;" .. fgettext("Remove selected mod") .."]"
retval = retval ..
- "button[7.05,4.95;4.7,0.5;btn_add_mod_to_game;<<-- Add mod]"
+ "button[7.05,4.95;4.7,0.5;btn_add_mod_to_game;" .. fgettext("<<-- Add mod") .."]"
return retval
end