diff options
author | Thierry Crozat | 2019-09-19 00:16:24 +0100 |
---|---|---|
committer | Filippos Karapetis | 2019-09-21 22:15:26 +0300 |
commit | caf096807895d30983c649e4218033fa3abccbfa (patch) | |
tree | e030f70fe98f7d0a7cac420f7587d19781f8dbdb /backends/networking/sdl_net/handlers/listajaxhandler.cpp | |
parent | c38600410e7ea5cf0bbb4edf11ccafa49f332f05 (diff) | |
download | scummvm-rg350-caf096807895d30983c649e4218033fa3abccbfa.tar.gz scummvm-rg350-caf096807895d30983c649e4218033fa3abccbfa.tar.bz2 scummvm-rg350-caf096807895d30983c649e4218033fa3abccbfa.zip |
NETWORKING: Convert translation results to UTF-8 for local webserver pages
Diffstat (limited to 'backends/networking/sdl_net/handlers/listajaxhandler.cpp')
-rw-r--r-- | backends/networking/sdl_net/handlers/listajaxhandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/networking/sdl_net/handlers/listajaxhandler.cpp b/backends/networking/sdl_net/handlers/listajaxhandler.cpp index 7c2801539d..e364712283 100644 --- a/backends/networking/sdl_net/handlers/listajaxhandler.cpp +++ b/backends/networking/sdl_net/handlers/listajaxhandler.cpp @@ -42,8 +42,8 @@ Common::JSONObject ListAjaxHandler::listDirectory(Common::String path) { if (path == "" || path == "/") { if (ConfMan.hasKey("rootpath", "cloud")) - addItem(itemsList, IT_DIRECTORY, "/root/", _("File system root")); - addItem(itemsList, IT_DIRECTORY, "/saves/", _("Saved games")); + addItem(itemsList, IT_DIRECTORY, "/root/", HandlerUtils::toUtf8(_("File system root"))); + addItem(itemsList, IT_DIRECTORY, "/saves/", HandlerUtils::toUtf8(_("Saved games"))); successResult.setVal("items", new Common::JSONValue(itemsList)); return successResult; } @@ -81,7 +81,7 @@ Common::JSONObject ListAjaxHandler::listDirectory(Common::String path) { filePath = "/"; else filePath = parentPath(prefixToAdd + filePath); - addItem(itemsList, IT_PARENT_DIRECTORY, filePath, _("Parent directory")); + addItem(itemsList, IT_PARENT_DIRECTORY, filePath, HandlerUtils::toUtf8(_("Parent directory"))); } // fill the content |