diff options
author | sapier <Sapier at GMX dot net> | 2013-08-14 19:22:23 +0200 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-08-17 16:01:43 +0200 |
commit | 09a50d0458f46c6129b4bea94502908241b3aed3 (patch) | |
tree | 57a2094750b7d47446a05fe1f8a64a8bca490fe8 /builtin/modstore.lua | |
parent | 787b43b2183262a08726434e2597638ad85bfb72 (diff) | |
download | hax-minetest-server-09a50d0458f46c6129b4bea94502908241b3aed3.tar.gz hax-minetest-server-09a50d0458f46c6129b4bea94502908241b3aed3.zip |
Add translation for main menu
Add engine.gettext() and remove gettext() calls in guiFormspecMenu.cpp
Diffstat (limited to 'builtin/modstore.lua')
-rw-r--r-- | builtin/modstore.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/builtin/modstore.lua b/builtin/modstore.lua index 27841ae22..2f967c9b1 100644 --- a/builtin/modstore.lua +++ b/builtin/modstore.lua @@ -180,8 +180,7 @@ end -------------------------------------------------------------------------------- function modstore.getmodlist(list) local retval = "" - retval = retval .. "label[10,-0.4;Page " .. (list.page +1) .. - " of " .. list.pagecount .. "]" + retval = retval .. "label[10,-0.4;" .. fgettext("Page $1 of $2", list.page+1, list.pagecount) .. "]" retval = retval .. "button[11.6,-0.1;0.5,0.5;btn_modstore_page_up;^]" retval = retval .. "box[11.6,0.35;0.28,8.6;000000]" @@ -240,7 +239,8 @@ function modstore.getmodlist(list) engine.formspec_escape(details.description) .. ";]" --rating local ratingy = screenshot_ypos + 0.6 - retval = retval .."label[10.1," .. ratingy .. ";Rating: " .. details.rating .."]" + retval = retval .."label[10.1," .. ratingy .. ";" .. + fgettext("Rating") .. ": " .. details.rating .."]" --install button local buttony = screenshot_ypos + 1.2 @@ -248,9 +248,9 @@ function modstore.getmodlist(list) retval = retval .."button[9.6," .. buttony .. ";2,0.5;btn_install_mod_" .. buttonnumber .. ";" if modmgr.mod_exists(details.basename) then - retval = retval .. "re-Install]" + retval = retval .. fgettext("re-Install") .."]" else - retval = retval .. "Install]" + retval = retval .. fgettext("Install") .."]" end end end |