Revert to resolve Weblate conflict
This commit is contained in:
@@ -152,7 +152,10 @@ def bottles_parser(parent_widget, action):
|
||||
create_dialog(
|
||||
parent_widget,
|
||||
_("Bottles Games Imported"),
|
||||
# The variable is the number of games
|
||||
_(f"Successfully imported {str(len(bottles_games))} games."),
|
||||
_("Successfully imported")
|
||||
+ " "
|
||||
+ str(len(bottles_games))
|
||||
+ " "
|
||||
+ _("games."),
|
||||
)
|
||||
return bottles_games
|
||||
|
||||
@@ -108,26 +108,12 @@ def create_details_window(parent_widget, game_id=None):
|
||||
css_classes=["flat", "circular"],
|
||||
)
|
||||
|
||||
file_name = _("file.txt")
|
||||
# As in software
|
||||
exe_name = _("program")
|
||||
exec_info_text = 'To launch the executable "program", use the command:\n\n<tt>"/path/to/program"</tt>\n\nTo open the file "file.txt" with the default application, use:\n\n<tt>xdg-open "/path/to/file.txt"</tt>\n\nIf the path contains spaces, make sure to wrap it in double quotes!'
|
||||
|
||||
if os.name == "nt":
|
||||
exe_name += ".exe"
|
||||
exe_path = _(f"C:\\path\\to\\{exe_name}")
|
||||
file_path = _(f"C:\\path\\to\\{file_name}")
|
||||
command = "start"
|
||||
else:
|
||||
exe_path = _(f"/path/to/{exe_name}")
|
||||
file_path = _(f"/path/to/{file_name}")
|
||||
command = "xdg-open"
|
||||
|
||||
exec_info_text = _(
|
||||
f'To launch the executable "{exe_name}", use the command:\n\n<tt>"{exe_path}"</tt>\n\nTo open the file "{file_name}" with the default application, use:\n\n<tt>{command} "{file_path}"</tt>\n\nIf the path contains spaces, make sure to wrap it in double quotes!'
|
||||
)
|
||||
exec_info_text_win = 'To launch the executable "program.exe", use the command:\n\n<tt>"C:\\path\\to\\program.exe"</tt>\n\nTo open the file "file.txt" with the default application, use:\n\n<tt>start "C:\\path\\to\\file.txt"</tt>\n\nIf the path contains spaces, make sure to wrap it in double quotes!'
|
||||
|
||||
exec_info_label = Gtk.Label(
|
||||
label=exec_info_text,
|
||||
label=exec_info_text_win if os.name == "nt" else exec_info_text,
|
||||
use_markup=True,
|
||||
wrap=True,
|
||||
max_width_chars=30,
|
||||
|
||||
@@ -251,7 +251,10 @@ def heroic_parser(parent_widget, action):
|
||||
create_dialog(
|
||||
parent_widget,
|
||||
_("Heroic Games Imported"),
|
||||
# The variable is the number of games
|
||||
_(f"Successfully imported {str(len(heroic_games))} games."),
|
||||
_("Successfully imported")
|
||||
+ " "
|
||||
+ str(len(heroic_games))
|
||||
+ " "
|
||||
+ _("games."),
|
||||
)
|
||||
return heroic_games
|
||||
|
||||
@@ -167,8 +167,11 @@ def get_games_async(parent_widget, appmanifests, steam_dir, import_dialog):
|
||||
create_dialog(
|
||||
parent_widget,
|
||||
_("Steam Games Imported"),
|
||||
# The variable is the number of games
|
||||
_(f"Successfully imported {str(games_no)} games."),
|
||||
_("Successfully imported")
|
||||
+ " "
|
||||
+ str(games_no)
|
||||
+ " "
|
||||
+ _("games."),
|
||||
)
|
||||
|
||||
for appmanifest in appmanifests:
|
||||
@@ -245,7 +248,7 @@ def steam_parser(parent_widget, action):
|
||||
steam_dir = os.path.expanduser(schema.get_string("steam-location"))
|
||||
|
||||
import_statuspage = Adw.StatusPage(
|
||||
title=_("Importing Games…"),
|
||||
title=_("Importing Games..."),
|
||||
description=_("Talking to Steam"),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user