mirror of
https://github.com/lutris/lutris
synced 2024-10-14 19:53:53 +00:00
Repeatedly escaping & to & does not make it better each time.
We'll leave this to gtk_safe() at the end of the line, so it happens once.
This commit is contained in:
parent
06edac213b
commit
e4c731a074
|
@ -274,7 +274,7 @@ class Game(GObject.Object):
|
|||
"""Return a GameConfigError based on the runner's output."""
|
||||
error = gameplay_info["error"]
|
||||
if error == "CUSTOM":
|
||||
message_text = gameplay_info["text"].replace("&", "&")
|
||||
message_text = gameplay_info["text"]
|
||||
elif error == "RUNNER_NOT_INSTALLED":
|
||||
message_text = _("Error the runner is not installed")
|
||||
elif error == "NO_BIOS":
|
||||
|
@ -282,11 +282,11 @@ class Game(GObject.Object):
|
|||
elif error == "FILE_NOT_FOUND":
|
||||
filename = gameplay_info["file"]
|
||||
if filename:
|
||||
message_text = _("The file {} could not be found").format(filename.replace("&", "&"))
|
||||
message_text = _("The file {} could not be found").format(filename)
|
||||
else:
|
||||
message_text = _("This game has no executable set. The install process didn't finish properly.")
|
||||
elif error == "NOT_EXECUTABLE":
|
||||
file = gameplay_info["file"].replace("&", "&")
|
||||
file = gameplay_info["file"]
|
||||
message_text = _("The file %s is not executable") % file
|
||||
elif error == "PATH_NOT_SET":
|
||||
message_text = _("The path '%s' is not set. please set it in the options.") % gameplay_info["path"]
|
||||
|
|
|
@ -604,7 +604,5 @@ class easyrpg(Runner):
|
|||
|
||||
@staticmethod
|
||||
def directory_not_found(directory):
|
||||
error = _(
|
||||
"The directory {} could not be found"
|
||||
).format(directory.replace("&", "&"))
|
||||
error = _("The directory {} could not be found").format(directory)
|
||||
return {"error": "CUSTOM", "text": error}
|
||||
|
|
Loading…
Reference in a new issue