diff options
author | 2017-10-03 10:40:50 +1100 | |
---|---|---|
committer | 2017-10-03 10:49:30 +1100 | |
commit | 2851d7d6cdfa06d67a060fe91c7b4dcc1acf86ab (patch) | |
tree | de742e948d18c0f20ef724e196777a8dcfa40553 /plugins/cheat/init.lua | |
parent | 633c37236e3adb9673f79cc62401bbdeb773d78d (diff) |
(nw) Improve localisation:
* Change makefile rules to treat mame.pot as a target so rules can depend on it
* Put mame.pot inside the build directory so it will get cleaned
* Couldn't get xgettext to scrape lua and C++ in the same command and still remove stale strings
* Use larger strings and format specifiers to fix some localisation issues
- Issue with "None" lacking context in Russian and Turkish translations
- Issue with "Not implemented" changing depending on the noun in Serbian
- Issues with lua plugins not allowing for languages with different grammar/punctuation
Strings that need to be translated after this change - most of these are existing text that's been made into larger chunks or reworded slightly:
"Mechanical Machine\tYes\n"
"Mechanical Machine\tNo\n"
"Requires Artwork\tYes\n"
"Requires Artwork\tNo\n"
"Requires Clickable Artwork\tYes\n"
"Requires Clickable Artwork\tNo\n"
"Support Cocktail\tYes\n"
"Support Cocktail\tNo\n"
"Driver is BIOS\tYes\n"
"Driver is BIOS\tNo\n"
"Support Save\tYes\n"
"Support Save\tNo\n"
"Screen Orientation\tVertical\n"
"Screen Orientation\tHorizontal\n"
"Requires CHD\tYes\n"
"Requires CHD\tNo\n"
"ROM Audit Result\tOK\n"
"ROM Audit Result\tBAD\n"
"Samples Audit Result\tNone Needed\n"
"Samples Audit Result\tOK\n"
"Samples Audit Result\tBAD\n"
"ROM Audit Disabled\t\n"
"Samples Audit Disabled\t\n"
"Activated: %s = %s"
"Activated: %s"
"Enabled: %s"
"Disabled: %s"
"%s added"
"Default name is %s"
"Cheat written to %s and added to cheat.simple"
"Unable to write file\n"
"Ensure that cheatpath folder exists"
Diffstat (limited to 'plugins/cheat/init.lua')
-rw-r--r-- | plugins/cheat/init.lua | 14 |
1 files changed, 7 insertions, 7 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) |