Don't do formspec escaping twice for loading description
authorest31 <MTest31@outlook.com>
Fri, 14 Aug 2015 13:38:35 +0000 (15:38 +0200)
committerest31 <MTest31@outlook.com>
Fri, 14 Aug 2015 13:56:25 +0000 (15:56 +0200)
builtin/mainmenu/common.lua

index 14a64361d7828346986cf241ffc17d3c6a3b5fca..6266d02206459400d3c319248b763381c5a58683 100644 (file)
@@ -224,10 +224,10 @@ function menu_handle_key_up_down(fields,textlist,settingname)
 
                        configure_selected_world_params(newidx)
                end
-               
+
                return true
        end
-       
+
        return false
 end
 
@@ -237,7 +237,7 @@ function asyncOnlineFavourites()
        if not menudata.public_known then
                menudata.public_known = {{
                        name = fgettext("Loading..."),
-                       description = fgettext("Try reenabling public serverlist and check your internet connection.")
+                       description = fgettext_ne("Try reenabling public serverlist and check your internet connection.")
                }}
        end
        menudata.favorites = menudata.public_known
@@ -262,22 +262,22 @@ end
 --------------------------------------------------------------------------------
 function text2textlist(xpos,ypos,width,height,tl_name,textlen,text,transparency)
        local textlines = core.splittext(text,textlen)
-       
+
        local retval = "textlist[" .. xpos .. "," .. ypos .. ";"
                                                                .. width .. "," .. height .. ";"
                                                                .. tl_name .. ";"
-       
+
        for i=1, #textlines, 1 do
                textlines[i] = textlines[i]:gsub("\r","")
                retval = retval .. core.formspec_escape(textlines[i]) .. ","
        end
-       
+
        retval = retval .. ";0;"
-       
+
        if transparency then
                retval = retval .. "true"
        end
-       
+
        retval = retval .. "]"
 
        return retval