summaryrefslogtreecommitdiffstatshomepage
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/cheat/init.lua14
-rw-r--r--plugins/cheatfind/init.lua6
2 files changed, 10 insertions, 10 deletions
diff --git a/plugins/cheat/init.lua b/plugins/cheat/init.lua
index 29d9a214815..d6e1c68b9d3 100644
--- a/plugins/cheat/init.lua
+++ b/plugins/cheat/init.lua
@@ -650,7 +650,7 @@ function cheat.startplugin()
end
if event == "up" or event == "down" or event == "comment" then
if cheat.comment then
- manager:machine():popmessage(_("Cheat Comment:\n") .. cheat.comment)
+ manager:machine():popmessage(string.format(_("Cheat Comment:\n%s"), cheat.comment))
end
elseif event == "left" then
if cheat.parameter then
@@ -717,10 +717,10 @@ function cheat.startplugin()
else
subtext = cheat.parameter.value
end
- manager:machine():popmessage(_("Activated") .. ": " .. cheat.desc .. " = " .. subtext)
+ manager:machine():popmessage(string.format(_("Activated: %s = %s"), cheat.desc, subtext))
elseif not cheat.parameter and cheat.script.on then
cheat.script.on()
- manager:machine():popmessage(_("Activated") .. ": " .. cheat.desc)
+ manager:machine():popmessage(string.format(_("Activated: %s"), cheat.desc))
end
end
end
@@ -778,16 +778,16 @@ function cheat.startplugin()
if not run_if(cheat, cheat.script.change) then
run_if(cheat, cheat.script.on)
end
- manager:machine():popmessage(_("Activated") .. ": " .. cheat.desc)
+ manager:machine():popmessage(string.format(_("Activated: %s"), cheat.desc))
elseif not cheat.enabled then
cheat.enabled = true
run_if(cheat, cheat.script.on)
- manager:machine():popmessage(_("Enabled") .. ": " .. cheat.desc)
+ manager:machine():popmessage(string.format(_("Enabled: %s"), cheat.desc))
else
cheat.enabled = false
run_if(cheat, cheat.script.off)
bwpclr(cheat)
- manager:machine():popmessage(_("Disabled") .. ": " .. cheat.desc)
+ manager:machine():popmessage(string.format(_("Disabled: %s"), cheat.desc))
end
end
cheat.hotkeys.pressed = true
@@ -846,7 +846,7 @@ function cheat.startplugin()
function ce.inject(newcheat)
cheats[#cheats + 1] = newcheat
parse_cheat(newcheat)
- manager:machine():popmessage(newcheat.desc .. _(" added"))
+ manager:machine():popmessage(string.format(_("%s added"), newcheat.desc))
end
function ce.get(index)
diff --git a/plugins/cheatfind/init.lua b/plugins/cheatfind/init.lua
index 5fae49df7ea..10d14744616 100644
--- a/plugins/cheatfind/init.lua
+++ b/plugins/cheatfind/init.lua
@@ -351,7 +351,7 @@ function cheatfind.startplugin()
local r
name, r = incdec(event, name, 1, #c)
if (event == "select" or event == "comment") and name == 1 then
- manager:machine():popmessage(_("Default name is ") .. cheat_save.name)
+ manager:machine():popmessage(string.format(_("Default name is %s"), cheat_save.name))
end
return r
end
@@ -396,7 +396,7 @@ function cheatfind.startplugin()
file = io.open(cheat_save.path .. "/cheat.simple", "a")
file:write(string.format(cheat_save.simple, desc))
file:close()
- manager:machine():popmessage(_("Cheat written to ") .. cheat_save.filename .. _(" and added to cheat.simple"))
+ manager:machine():popmessage(string.format(_("Cheat written to %s and added to cheat.simple"), cheat_save.filename))
end
written = true
elseif not devtable[devcur].space.shortname then
@@ -409,7 +409,7 @@ function cheatfind.startplugin()
end
end
if not written then
- manager:machine():popmessage(_("Unable to write file\nCheck cheatpath dir exists"))
+ manager:machine():popmessage(_("Unable to write file\nEnsure that cheatpath folder exists"))
end
cheat_save = nil
return true