Update translations

This commit is contained in:
kramo
2023-03-19 13:12:35 +01:00
parent 832f124969
commit 57be95137c
11 changed files with 191 additions and 231 deletions

View File

@@ -191,7 +191,8 @@ class CartridgesApplication(Adw.Application):
self.win.on_go_back_action(None, None)
# The variable is the title of the game
toast = Adw.Toast.new(_(f"{self.win.games[game_id].name} removed"))
title = {self.win.games[game_id].name}
toast = Adw.Toast.new(_(f"{title} removed"))
toast.set_button_label(_("Undo"))
toast.connect("button-clicked", self.win.on_undo_remove_action, game_id)
toast.set_priority(Adw.ToastPriority.HIGH)

View File

@@ -149,10 +149,11 @@ def bottles_parser(parent_widget, action):
_("Successfully imported 1 game."),
)
elif len(bottles_games) > 1:
games_no = str(len(bottles_games))
create_dialog(
parent_widget,
_("Bottles Games Imported"),
# The variable is the number of games
_(f"Successfully imported {str(len(bottles_games))} games."),
_(f"Successfully imported {games_no} games."),
)
return bottles_games

View File

@@ -248,10 +248,11 @@ def heroic_parser(parent_widget, action):
_("Successfully imported 1 game."),
)
elif len(heroic_games) > 1:
games_no = str(len(heroic_games))
create_dialog(
parent_widget,
_("Heroic Games Imported"),
# The variable is the number of games
_(f"Successfully imported {str(len(heroic_games))} games."),
_(f"Successfully imported {games_no} games."),
)
return heroic_games

View File

@@ -164,11 +164,12 @@ def get_games_async(parent_widget, appmanifests, steam_dir, import_dialog):
_("Successfully imported 1 game."),
)
elif games_no > 1:
games_no = str(games_no)
create_dialog(
parent_widget,
_("Steam Games Imported"),
# The variable is the number of games
_(f"Successfully imported {str(games_no)} games."),
_(f"Successfully imported {games_no} games."),
)
for appmanifest in appmanifests:

View File

@@ -259,9 +259,10 @@ class CartridgesWindow(Adw.ApplicationWindow):
)
self.overview_title.set_label(current_game.name)
self.overview_header_bar_title.set_title(current_game.name)
date = self.get_time(current_game.added)
self.overview_added.set_label(
# The variable is the date when the game was added
_(f"Added: {self.get_time(current_game.added)}")
_(f"Added: {date}")
)
last_played_date = (
self.get_time(current_game.last_played)