From 09a50d0458f46c6129b4bea94502908241b3aed3 Mon Sep 17 00:00:00 2001 From: sapier Date: Wed, 14 Aug 2013 19:22:23 +0200 Subject: Add translation for main menu Add engine.gettext() and remove gettext() calls in guiFormspecMenu.cpp --- builtin/modstore.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'builtin/modstore.lua') 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 -- cgit v1.2.3