From 7e75ba4bfa0c7bd69fd3793fc920919d5cd8c381 Mon Sep 17 00:00:00 2001 From: cracyc Date: Sun, 3 Sep 2017 15:08:08 -0500 Subject: luaengine: translation support [Carl] --- plugins/boot.lua | 2 ++ plugins/cheat/init.lua | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/boot.lua b/plugins/boot.lua index ea753139aef..5ed1ac803ad 100644 --- a/plugins/boot.lua +++ b/plugins/boot.lua @@ -20,6 +20,8 @@ function lfs.env_replace(str) end return str end + +_G._ = emu.lang_translate local dir = lfs.env_replace(manager:options().entries.pluginspath:value()) package.path = dir .. "/?.lua;" .. dir .. "/?/init.lua" diff --git a/plugins/cheat/init.lua b/plugins/cheat/init.lua index c05538800e1..6d8712a7299 100644 --- a/plugins/cheat/init.lua +++ b/plugins/cheat/init.lua @@ -680,7 +680,7 @@ function cheat.startplugin() end, function() return menu_populate() - end, "Cheat") + end, _("Cheat")) emu.register_start(function() if not stop then -- cgit v1.2.3