Compare commits
164 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8378c72250 | ||
|
|
beef0223c3 | ||
|
|
1a3c26c074 | ||
|
|
598f93201b | ||
|
|
a03fae8556 | ||
|
|
7eb7248b4c | ||
|
|
16956d214b | ||
|
|
3966b8f4ff | ||
|
|
4b11a2737a | ||
|
|
aea8a6ed5f | ||
|
|
24ad3369c7 | ||
|
|
12f6ae0567 | ||
|
|
b89d15537d | ||
|
|
f0be6888cf | ||
|
|
43ec0e1a1f | ||
|
|
e3411b8e7e | ||
|
|
00151abcf7 | ||
|
|
6b2678c5f6 | ||
|
|
6edd85e80a | ||
|
|
3da6674dbb | ||
|
|
43e8317c46 | ||
|
|
8a7d716db6 | ||
|
|
fd66d07ac3 | ||
|
|
cebf080619 | ||
|
|
e08f849d64 | ||
|
|
a08ed1d4c2 | ||
|
|
984249c05b | ||
|
|
1d630722de | ||
|
|
2303c2e6da | ||
|
|
fd9e0511d0 | ||
|
|
dc9a91eac3 | ||
|
|
0da5f94ea3 | ||
|
|
5b08cea6de | ||
|
|
0f6a989142 | ||
|
|
3c6639ae07 | ||
|
|
3e495283b0 | ||
|
|
9e60aad7f3 | ||
|
|
8ec2998077 | ||
|
|
62aff0e7cc | ||
|
|
c1715aa328 | ||
|
|
d136897c8c | ||
|
|
7b4513913e | ||
|
|
0fb7c859d2 | ||
|
|
39f79e118e | ||
|
|
d93c6aa81d | ||
|
|
3107bda8e0 | ||
|
|
fbc33e0fe3 | ||
|
|
5ea8d49f14 | ||
|
|
cccc4744ac | ||
|
|
05004b8225 | ||
|
|
b86f0f9217 | ||
|
|
22182a838a | ||
|
|
a9e67595f7 | ||
|
|
9986e35365 | ||
|
|
c8bc101c96 | ||
|
|
06026757d6 | ||
|
|
d2064ecaf4 | ||
|
|
ed3b8d7019 | ||
|
|
1279514c30 | ||
|
|
b580e55c02 | ||
|
|
33377cf69f | ||
|
|
50ce503458 | ||
|
|
7647857617 | ||
|
|
329fe098c5 | ||
|
|
415ebb8844 | ||
|
|
dac83919a0 | ||
|
|
32b965300f | ||
|
|
74b639c760 | ||
|
|
4a1f9d3f86 | ||
|
|
087c7989c2 | ||
|
|
725e4027f2 | ||
|
|
41f7ce3d5f | ||
|
|
ee0c07befc | ||
|
|
b942fd7d3c | ||
|
|
00580571a6 | ||
|
|
60b8a537ea | ||
|
|
df69352602 | ||
|
|
a9dc097553 | ||
|
|
cbe9bfbab8 | ||
|
|
45be2eb165 | ||
|
|
1e484e03f2 | ||
|
|
f18894bf10 | ||
|
|
a4c28449a7 | ||
|
|
b1cb2d679a | ||
|
|
e373534e41 | ||
|
|
937f66237c | ||
|
|
f3db0647ae | ||
|
|
54d9a996e4 | ||
|
|
95d1fe6c92 | ||
|
|
7e968a9ac7 | ||
|
|
960eaa1949 | ||
|
|
b511ce22b7 | ||
|
|
6899246d01 | ||
|
|
3bcbf8457c | ||
|
|
397f267522 | ||
|
|
6e1acf43da | ||
|
|
3e568be6d8 | ||
|
|
89afe23535 | ||
|
|
77b083e219 | ||
|
|
780fd0a09f | ||
|
|
a53e49610c | ||
|
|
3ec02ee64f | ||
|
|
4ed84390cf | ||
|
|
dbe00c5f90 | ||
|
|
6766910bb7 | ||
|
|
7a3019775c | ||
|
|
ef509f2eb0 | ||
|
|
d5fa2a0dba | ||
|
|
d664b50afb | ||
|
|
4928fb8bbf | ||
|
|
7841462738 | ||
|
|
eabf903e1c | ||
|
|
c26575a6cc | ||
|
|
61ef02cc7a | ||
|
|
bf2a500d5e | ||
|
|
dad4905753 | ||
|
|
e6ba083736 | ||
|
|
4d99f80ff7 | ||
|
|
0a943d4259 | ||
|
|
2248660027 | ||
|
|
af679ef2e6 | ||
|
|
a5f553f701 | ||
|
|
88c9dcb628 | ||
|
|
fb35f8a007 | ||
|
|
71ed5c3c7e | ||
|
|
44bde9ae25 | ||
|
|
fc85f6a9b3 | ||
|
|
8858968f0e | ||
|
|
8ae10ccf04 | ||
|
|
ef196ac12c | ||
|
|
ea5585f4e9 | ||
|
|
7602003e9e | ||
|
|
f4a31886cb | ||
|
|
2e3e716ff2 | ||
|
|
e031cf7b50 | ||
|
|
2b0356ce19 | ||
|
|
21603f4486 | ||
|
|
71a047f8b4 | ||
|
|
4fc2a31cd8 | ||
|
|
cb3c72f48a | ||
|
|
7e882c9064 | ||
|
|
05043cde30 | ||
|
|
364a171326 | ||
|
|
2d354f42d3 | ||
|
|
451f191fd2 | ||
|
|
6050ae5bbe | ||
|
|
925e3ef5a8 | ||
|
|
ef8b63af97 | ||
|
|
417cd77907 | ||
|
|
14731b92f4 | ||
|
|
ba69182222 | ||
|
|
36fd3bb2bf | ||
|
|
94e8839f8f | ||
|
|
f17663323d | ||
|
|
eca96d8a5a | ||
|
|
d4e6423bd5 | ||
|
|
17a6a53fd2 | ||
|
|
db32f66d76 | ||
|
|
c1abed8af6 | ||
|
|
643ca368a6 | ||
|
|
3f4443d703 | ||
|
|
9aea8cc089 | ||
|
|
f5acf6d256 | ||
|
|
95cf7ed691 |
4
.github/workflows/flatpak-builder.yml
vendored
@@ -8,11 +8,11 @@ jobs:
|
|||||||
name: "Flatpak"
|
name: "Flatpak"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: bilelmoussaoui/flatpak-github-actions:gnome-40
|
image: bilelmoussaoui/flatpak-github-actions:gnome-44
|
||||||
options: --privileged
|
options: --privileged
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: flatpak/flatpak-github-actions/flatpak-builder@v5
|
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
||||||
with:
|
with:
|
||||||
bundle: hu.kramo.Cartridges.flatpak
|
bundle: hu.kramo.Cartridges.flatpak
|
||||||
manifest-path: hu.kramo.Cartridges.json
|
manifest-path: hu.kramo.Cartridges.json
|
||||||
|
|||||||
3
.github/workflows/windows.yml
vendored
@@ -15,13 +15,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
msystem: UCRT64
|
msystem: UCRT64
|
||||||
update: true
|
update: true
|
||||||
install: mingw-w64-ucrt-x86_64-gtk4 mingw-w64-ucrt-x86_64-libadwaita mingw-w64-ucrt-x86_64-python-gobject mingw-w64-ucrt-x86_64-python-yaml mingw-w64-ucrt-x86_64-desktop-file-utils mingw-w64-ucrt-x86_64-ca-certificates mingw-w64-ucrt-x86_64-meson git
|
install: mingw-w64-ucrt-x86_64-gtk4 mingw-w64-ucrt-x86_64-libadwaita mingw-w64-ucrt-x86_64-python-gobject mingw-w64-ucrt-x86_64-python-yaml mingw-w64-ucrt-x86_64-python-requests mingw-w64-ucrt-x86_64-python-pillow mingw-w64-ucrt-x86_64-desktop-file-utils mingw-w64-ucrt-x86_64-ca-certificates mingw-w64-ucrt-x86_64-meson git
|
||||||
- name: Compile
|
- name: Compile
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
run: |
|
run: |
|
||||||
meson setup _build
|
meson setup _build
|
||||||
ninja -C _build install
|
ninja -C _build install
|
||||||
pacman --noconfirm -Rs mingw-w64-ucrt-x86_64-desktop-file-utils mingw-w64-ucrt-x86_64-meson git
|
pacman --noconfirm -Rs mingw-w64-ucrt-x86_64-desktop-file-utils mingw-w64-ucrt-x86_64-meson git
|
||||||
|
find /ucrt64/share/locale/ -type f ! -name "*cartridges.mo" -delete
|
||||||
- name: "Inno Setup"
|
- name: "Inno Setup"
|
||||||
run: iscc ".\.windows\Cartridges.iss"
|
run: iscc ".\.windows\Cartridges.iss"
|
||||||
- name: "Upload Artifact"
|
- name: "Upload Artifact"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#define MyAppName "Cartridges"
|
#define MyAppName "Cartridges"
|
||||||
#define MyAppVersion "1.1"
|
#define MyAppVersion "1.4.1"
|
||||||
#define MyAppPublisher "kramo"
|
#define MyAppPublisher "kramo"
|
||||||
#define MyAppURL "https://github.com/kra-mo/cartridges"
|
#define MyAppURL "https://github.com/kra-mo/cartridges"
|
||||||
#define MyAppExeName "pythonw.exe"
|
#define MyAppExeName "pythonw.exe"
|
||||||
@@ -13,7 +13,7 @@ AppPublisher={#MyAppPublisher}
|
|||||||
AppPublisherURL={#MyAppURL}
|
AppPublisherURL={#MyAppURL}
|
||||||
AppSupportURL=https://github.com/kra-mo/cartridges/issues
|
AppSupportURL=https://github.com/kra-mo/cartridges/issues
|
||||||
AppUpdatesURL={#MyAppURL}
|
AppUpdatesURL={#MyAppURL}
|
||||||
DefaultDirName={autopf}\{#MyAppName}
|
DefaultDirName={autopf64}\{#MyAppName}
|
||||||
DisableProgramGroupPage=yes
|
DisableProgramGroupPage=yes
|
||||||
LicenseFile=..\LICENSE
|
LicenseFile=..\LICENSE
|
||||||
PrivilegesRequiredOverridesAllowed=dialog
|
PrivilegesRequiredOverridesAllowed=dialog
|
||||||
@@ -34,6 +34,8 @@ Source: "D:\a\_temp\msys64\ucrt64\bin\cartridges"; DestDir: "{app}\bin"; Flags:
|
|||||||
Source: "D:\a\_temp\msys64\ucrt64\bin\pythonw.exe"; DestDir: "{app}\bin"; Flags: ignoreversion
|
Source: "D:\a\_temp\msys64\ucrt64\bin\pythonw.exe"; DestDir: "{app}\bin"; Flags: ignoreversion
|
||||||
Source: "D:\a\_temp\msys64\ucrt64\bin\python.exe"; DestDir: "{app}\bin"; Flags: ignoreversion
|
Source: "D:\a\_temp\msys64\ucrt64\bin\python.exe"; DestDir: "{app}\bin"; Flags: ignoreversion
|
||||||
Source: "D:\a\_temp\msys64\ucrt64\bin\gdbus.exe"; DestDir: "{app}\bin"; Flags: ignoreversion
|
Source: "D:\a\_temp\msys64\ucrt64\bin\gdbus.exe"; DestDir: "{app}\bin"; Flags: ignoreversion
|
||||||
|
Source: "D:\a\_temp\msys64\ucrt64\bin\gspawn-win64-helper.exe"; DestDir: "{app}\bin"; Flags: ignoreversion
|
||||||
|
Source: "D:\a\_temp\msys64\ucrt64\bin\gspawn-win64-helper-console.exe"; DestDir: "{app}\bin"; Flags: ignoreversion
|
||||||
Source: "D:\a\_temp\msys64\ucrt64\bin\*.dll"; DestDir: "{app}\bin"; Flags: recursesubdirs ignoreversion
|
Source: "D:\a\_temp\msys64\ucrt64\bin\*.dll"; DestDir: "{app}\bin"; Flags: recursesubdirs ignoreversion
|
||||||
|
|
||||||
Source: "D:\a\_temp\msys64\ucrt64\etc\ssl\*"; DestDir: "{app}\etc\ssl"; Flags: recursesubdirs ignoreversion
|
Source: "D:\a\_temp\msys64\ucrt64\etc\ssl\*"; DestDir: "{app}\etc\ssl"; Flags: recursesubdirs ignoreversion
|
||||||
@@ -43,9 +45,10 @@ Source: "D:\a\_temp\msys64\ucrt64\lib\girepository-1.0\*"; DestDir: "{app}\lib\g
|
|||||||
Source: "D:\a\_temp\msys64\ucrt64\lib\python3.10\*"; DestDir: "{app}\lib\python3.10"; Excludes: "__pycache__"; Flags: recursesubdirs ignoreversion
|
Source: "D:\a\_temp\msys64\ucrt64\lib\python3.10\*"; DestDir: "{app}\lib\python3.10"; Excludes: "__pycache__"; Flags: recursesubdirs ignoreversion
|
||||||
|
|
||||||
Source: "D:\a\_temp\msys64\ucrt64\share\cartridges\*"; DestDir: "{app}\share\cartridges"; Excludes: "__pycache__"; Flags: recursesubdirs ignoreversion
|
Source: "D:\a\_temp\msys64\ucrt64\share\cartridges\*"; DestDir: "{app}\share\cartridges"; Excludes: "__pycache__"; Flags: recursesubdirs ignoreversion
|
||||||
Source: "D:\a\_temp\msys64\ucrt64\share\icons\*"; DestDir: "{app}\share\icons"; Excludes: "cursors\*"; Flags: recursesubdirs ignoreversion
|
Source: "D:\a\_temp\msys64\ucrt64\share\icons\*"; DestDir: "{app}\share\icons"; Excludes: "*.png,cursors\*"; Flags: recursesubdirs ignoreversion
|
||||||
Source: "D:\a\_temp\msys64\ucrt64\share\glib-2.0\*"; DestDir: "{app}\share\glib-2.0"; Flags: recursesubdirs ignoreversion
|
Source: "D:\a\_temp\msys64\ucrt64\share\glib-2.0\*"; DestDir: "{app}\share\glib-2.0"; Flags: recursesubdirs ignoreversion
|
||||||
Source: "D:\a\_temp\msys64\ucrt64\share\gtk-4.0\*"; DestDir: "{app}\share\gtk-4.0"; Flags: recursesubdirs ignoreversion
|
Source: "D:\a\_temp\msys64\ucrt64\share\gtk-4.0\*"; DestDir: "{app}\share\gtk-4.0"; Flags: recursesubdirs ignoreversion
|
||||||
|
Source: "D:\a\_temp\msys64\ucrt64\share\locale\*"; DestDir: "{app}\share\locale"; Flags: recursesubdirs ignoreversion
|
||||||
|
|
||||||
Source: "icon.ico"; DestDir: "{app}"; Flags: recursesubdirs ignoreversion
|
Source: "icon.ico"; DestDir: "{app}"; Flags: recursesubdirs ignoreversion
|
||||||
|
|
||||||
|
|||||||
@@ -32,12 +32,15 @@
|
|||||||
Cartridges is a simple game launcher written in Python using GTK4 and Libadwaita.
|
Cartridges is a simple game launcher written in Python using GTK4 and Libadwaita.
|
||||||
## Features
|
## Features
|
||||||
- Manually adding and editing games
|
- Manually adding and editing games
|
||||||
- Importing games from Steam, Heroic and Bottles
|
- Importing games from Steam, Lutris, Heroic, Bottles and itch
|
||||||
- Support for multiple Steam install locations
|
- Support for multiple Steam install locations
|
||||||
- Hiding games
|
- Hiding games
|
||||||
- Searching and sorting by title, date added and last played
|
- Searching and sorting by title, date added and last played
|
||||||
|
- Automatically downloading cover art from [SteamGridDB](https://www.steamgriddb.com/)
|
||||||
|
- Searching for games on various databases
|
||||||
|
- Animated covers
|
||||||
|
|
||||||
For updates and questions, join our [Discord server]([discord-url])!
|
For updates and questions, join our [Discord server][discord-url]!
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using Gtk 4.0;
|
using Gtk 4.0;
|
||||||
using Adw 1;
|
using Adw 1;
|
||||||
|
|
||||||
template game : Box {
|
template Game : Box {
|
||||||
orientation: vertical;
|
orientation: vertical;
|
||||||
halign: center;
|
halign: center;
|
||||||
valign: start;
|
valign: start;
|
||||||
@@ -12,11 +12,18 @@ template game : Box {
|
|||||||
orientation: vertical;
|
orientation: vertical;
|
||||||
Button cover_button {
|
Button cover_button {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
Picture cover {
|
Overlay {
|
||||||
width-request: 200;
|
[overlay]
|
||||||
height-request: 300;
|
Spinner spinner {
|
||||||
hexpand: true;
|
margin-start: 72;
|
||||||
vexpand: true;
|
margin-end: 72;
|
||||||
|
}
|
||||||
|
Picture cover {
|
||||||
|
width-request: 200;
|
||||||
|
height-request: 300;
|
||||||
|
hexpand: true;
|
||||||
|
vexpand: true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
@@ -30,7 +37,7 @@ template game : Box {
|
|||||||
reveal-child: false;
|
reveal-child: false;
|
||||||
transition-type: crossfade;
|
transition-type: crossfade;
|
||||||
Box {
|
Box {
|
||||||
Button button_play {
|
Button play_button {
|
||||||
halign: start;
|
halign: start;
|
||||||
margin-start: 6;
|
margin-start: 6;
|
||||||
margin-end: 6;
|
margin-end: 6;
|
||||||
@@ -80,7 +87,7 @@ menu game_options {
|
|||||||
section {
|
section {
|
||||||
item {
|
item {
|
||||||
label: _("Edit");
|
label: _("Edit");
|
||||||
action: "app.edit_details";
|
action: "app.edit_game";
|
||||||
}
|
}
|
||||||
|
|
||||||
item {
|
item {
|
||||||
@@ -99,7 +106,7 @@ menu hidden_game_options {
|
|||||||
section {
|
section {
|
||||||
item {
|
item {
|
||||||
label: _("Edit");
|
label: _("Edit");
|
||||||
action: "app.edit_details";
|
action: "app.edit_game";
|
||||||
}
|
}
|
||||||
|
|
||||||
item {
|
item {
|
||||||
|
|||||||
@@ -8,51 +8,61 @@ ShortcutsWindow help_overlay {
|
|||||||
max-height: 10;
|
max-height: 10;
|
||||||
|
|
||||||
ShortcutsGroup {
|
ShortcutsGroup {
|
||||||
title: C_("shortcut window", "General");
|
title: _("General");
|
||||||
|
|
||||||
ShortcutsShortcut {
|
ShortcutsShortcut {
|
||||||
title: C_("shortcut window", "Quit");
|
title: _("Quit");
|
||||||
action-name: "app.quit";
|
action-name: "app.quit";
|
||||||
}
|
}
|
||||||
|
|
||||||
ShortcutsShortcut {
|
ShortcutsShortcut {
|
||||||
title: C_("shortcut window", "Search");
|
title: _("Search");
|
||||||
action-name: "win.toggle_search";
|
action-name: "win.toggle_search";
|
||||||
}
|
}
|
||||||
|
|
||||||
ShortcutsShortcut {
|
ShortcutsShortcut {
|
||||||
title: C_("shortcut window", "Show preferences");
|
title: _("Show preferences");
|
||||||
action-name: "app.preferences";
|
action-name: "app.preferences";
|
||||||
}
|
}
|
||||||
|
|
||||||
ShortcutsShortcut {
|
ShortcutsShortcut {
|
||||||
title: C_("shortcut window", "Shortcuts");
|
title: _("Shortcuts");
|
||||||
action-name: "win.show-help-overlay";
|
action-name: "win.show-help-overlay";
|
||||||
}
|
}
|
||||||
|
|
||||||
ShortcutsShortcut {
|
ShortcutsShortcut {
|
||||||
title: C_("shortcut window", "Undo");
|
title: _("Undo");
|
||||||
action-name: "win.undo_remove";
|
action-name: "win.undo";
|
||||||
}
|
}
|
||||||
|
|
||||||
ShortcutsShortcut {
|
ShortcutsShortcut {
|
||||||
title: C_("shortcut window", "Open menu");
|
title: _("Open menu");
|
||||||
action-name: "win.open_menu";
|
action-name: "win.open_menu";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ShortcutsGroup {
|
ShortcutsGroup {
|
||||||
title: C_("shortcut window", "Games");
|
title: _("Games");
|
||||||
|
|
||||||
ShortcutsShortcut {
|
ShortcutsShortcut {
|
||||||
title: C_("shortcut window", "Add new game");
|
title: _("Add new game");
|
||||||
action-name: "app.add_game";
|
action-name: "app.add_game";
|
||||||
}
|
}
|
||||||
|
|
||||||
ShortcutsShortcut {
|
ShortcutsShortcut {
|
||||||
title: C_("shortcut window", "Show hidden games");
|
title: _("Import games");
|
||||||
|
action-name: "app.import";
|
||||||
|
}
|
||||||
|
|
||||||
|
ShortcutsShortcut {
|
||||||
|
title: _("Show hidden games");
|
||||||
action-name: "win.show_hidden";
|
action-name: "win.show_hidden";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ShortcutsShortcut {
|
||||||
|
title: _("Remove game");
|
||||||
|
action-name: "app.remove_game_details_view";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,15 +2,19 @@ using Gtk 4.0;
|
|||||||
using Adw 1;
|
using Adw 1;
|
||||||
|
|
||||||
template PreferencesWindow : Adw.PreferencesWindow {
|
template PreferencesWindow : Adw.PreferencesWindow {
|
||||||
search-enabled: false;
|
default-height: 500;
|
||||||
default-height: 550;
|
|
||||||
|
|
||||||
Adw.PreferencesPage page {
|
Adw.PreferencesPage general_page {
|
||||||
Adw.PreferencesGroup general_group {
|
name: "general";
|
||||||
title: _("General");
|
title: _("General");
|
||||||
|
icon-name: "user-home-symbolic";
|
||||||
|
|
||||||
|
Adw.PreferencesGroup behavior_group {
|
||||||
|
title: _("Behavior");
|
||||||
|
|
||||||
Adw.ActionRow {
|
Adw.ActionRow {
|
||||||
title: _("Exit After Launching Games");
|
title: _("Exit After Launching Games");
|
||||||
|
activatable-widget: exit_after_launch_switch;
|
||||||
|
|
||||||
Switch exit_after_launch_switch {
|
Switch exit_after_launch_switch {
|
||||||
valign: center;
|
valign: center;
|
||||||
@@ -20,15 +24,21 @@ template PreferencesWindow : Adw.PreferencesWindow {
|
|||||||
Adw.ActionRow {
|
Adw.ActionRow {
|
||||||
title: _("Cover Image Launches Game");
|
title: _("Cover Image Launches Game");
|
||||||
subtitle: _("Swaps the behavior of the cover image and the play button");
|
subtitle: _("Swaps the behavior of the cover image and the play button");
|
||||||
|
activatable-widget: cover_launches_game_switch;
|
||||||
|
|
||||||
Switch cover_launches_game_switch {
|
Switch cover_launches_game_switch {
|
||||||
valign: center;
|
valign: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.PreferencesGroup images_group {
|
||||||
|
title: _("Images");
|
||||||
|
|
||||||
Adw.ActionRow {
|
Adw.ActionRow {
|
||||||
title: _("High Quality Images");
|
title: _("High Quality Images");
|
||||||
subtitle: _("Save game covers losslessly at the cost of storage");
|
subtitle: _("Save game covers losslessly at the cost of storage");
|
||||||
|
activatable-widget: high_quality_images_switch;
|
||||||
|
|
||||||
Switch high_quality_images_switch {
|
Switch high_quality_images_switch {
|
||||||
valign: center;
|
valign: center;
|
||||||
@@ -36,91 +46,218 @@ template PreferencesWindow : Adw.PreferencesWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Adw.PreferencesGroup steam_group {
|
Adw.PreferencesGroup danger_zone_group {
|
||||||
title: _("Steam");
|
title: _("Danger Zone");
|
||||||
|
|
||||||
Adw.ActionRow {
|
Adw.ActionRow {
|
||||||
title: _("Steam Install Location");
|
title: _("Remove All Games");
|
||||||
subtitle: _("Directory to use when importing games");
|
|
||||||
|
|
||||||
Button steam_file_chooser_button {
|
Button remove_all_games_button {
|
||||||
icon-name: "folder-symbolic";
|
label: _("Remove");
|
||||||
valign: center;
|
valign: center;
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"destructive-action",
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Adw.ActionRow {
|
}
|
||||||
title: _("Extra Steam Libraries");
|
}
|
||||||
subtitle: _("Select other directories where you have Steam games installed");
|
|
||||||
|
|
||||||
|
Adw.PreferencesPage import_page {
|
||||||
|
name: "import";
|
||||||
|
title: _("Import");
|
||||||
|
icon-name: "document-save-symbolic";
|
||||||
|
|
||||||
Revealer steam_clear_button_revealer {
|
Adw.PreferencesGroup sources_group {
|
||||||
reveal-child: false;
|
title: _("Sources");
|
||||||
transition-type: slide_left;
|
|
||||||
Button steam_clear_button {
|
Adw.ExpanderRow steam_expander_row {
|
||||||
label: _("Clear");
|
title: _("Steam");
|
||||||
|
show-enable-switch: true;
|
||||||
|
|
||||||
|
Adw.ActionRow {
|
||||||
|
title: _("Steam Install Location");
|
||||||
|
subtitle: _("Directory to use when importing games");
|
||||||
|
|
||||||
|
Button steam_file_chooser_button {
|
||||||
|
icon-name: "folder-symbolic";
|
||||||
valign: center;
|
valign: center;
|
||||||
halign: end;
|
}
|
||||||
|
}
|
||||||
|
Adw.ActionRow {
|
||||||
|
title: _("Extra Steam Libraries");
|
||||||
|
subtitle: _("Select other directories where you have Steam games installed");
|
||||||
|
|
||||||
styles [
|
Revealer steam_clear_button_revealer {
|
||||||
"destructive-action",
|
reveal-child: false;
|
||||||
]
|
transition-type: slide_left;
|
||||||
|
Button steam_clear_button {
|
||||||
|
label: _("Clear");
|
||||||
|
valign: center;
|
||||||
|
halign: end;
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"destructive-action",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Button steam_extra_file_chooser_button {
|
||||||
|
icon-name: "folder-new-symbolic";
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.ExpanderRow lutris_expander_row {
|
||||||
|
title: _("Lutris");
|
||||||
|
show-enable-switch: true;
|
||||||
|
|
||||||
|
Adw.ActionRow {
|
||||||
|
title: _("Lutris Install Location");
|
||||||
|
subtitle: _("Directory to use when importing games");
|
||||||
|
|
||||||
|
Button lutris_file_chooser_button {
|
||||||
|
icon-name: "folder-symbolic";
|
||||||
|
valign: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Button steam_extra_file_chooser_button {
|
Adw.ActionRow {
|
||||||
icon-name: "folder-new-symbolic";
|
title: _("Lutris Cache Location");
|
||||||
valign: center;
|
subtitle: _("Directory to use when importing game covers");
|
||||||
|
|
||||||
|
Button lutris_cache_file_chooser_button {
|
||||||
|
icon-name: "folder-symbolic";
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.ActionRow {
|
||||||
|
title: _("Import Steam Games");
|
||||||
|
activatable-widget: lutris_steam_switch;
|
||||||
|
|
||||||
|
Switch lutris_steam_switch {
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.ExpanderRow heroic_expander_row {
|
||||||
|
title: _("Heroic");
|
||||||
|
show-enable-switch: true;
|
||||||
|
|
||||||
|
Adw.ActionRow {
|
||||||
|
title: _("Heroic Install Location");
|
||||||
|
subtitle: _("Directory to use when importing games");
|
||||||
|
|
||||||
|
Button heroic_file_chooser_button {
|
||||||
|
icon-name: "folder-symbolic";
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.ActionRow {
|
||||||
|
title: _("Import Epic Games");
|
||||||
|
activatable-widget: heroic_epic_switch;
|
||||||
|
|
||||||
|
Switch heroic_epic_switch {
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.ActionRow {
|
||||||
|
title: _("Import GOG Games");
|
||||||
|
activatable-widget: heroic_gog_switch;
|
||||||
|
|
||||||
|
Switch heroic_gog_switch {
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.ActionRow {
|
||||||
|
title: _("Import Sideloaded Games");
|
||||||
|
activatable-widget: heroic_sideloaded_switch;
|
||||||
|
|
||||||
|
Switch heroic_sideloaded_switch {
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.ExpanderRow bottles_expander_row {
|
||||||
|
title: _("Bottles");
|
||||||
|
show-enable-switch: true;
|
||||||
|
|
||||||
|
Adw.ActionRow {
|
||||||
|
title: _("Bottles Install Location");
|
||||||
|
subtitle: _("Directory to use when importing games");
|
||||||
|
|
||||||
|
Button bottles_file_chooser_button {
|
||||||
|
icon-name: "folder-symbolic";
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.ExpanderRow itch_expander_row {
|
||||||
|
title: _("itch");
|
||||||
|
show-enable-switch: true;
|
||||||
|
|
||||||
|
Adw.ActionRow {
|
||||||
|
title: _("itch Install Location");
|
||||||
|
subtitle: _("Directory to use when importing games");
|
||||||
|
|
||||||
|
Button itch_file_chooser_button {
|
||||||
|
icon-name: "folder-symbolic";
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Adw.PreferencesGroup heroic_group {
|
Adw.PreferencesPage sgdb_page {
|
||||||
title: _("Heroic");
|
name: "sgdb";
|
||||||
|
title: _("SteamGridDB");
|
||||||
|
icon-name: "image-x-generic-symbolic";
|
||||||
|
|
||||||
Adw.ActionRow {
|
Adw.PreferencesGroup sgdb_key_group {
|
||||||
title: _("Heroic Install Location");
|
title: _("Authentication");
|
||||||
subtitle: _("Directory to use when importing games");
|
|
||||||
|
|
||||||
Button heroic_file_chooser_button {
|
Adw.EntryRow sgdb_key_entry_row {
|
||||||
icon-name: "folder-symbolic";
|
title: _("API Key");
|
||||||
valign: center;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Adw.ActionRow {
|
|
||||||
title: _("Import Epic Games");
|
|
||||||
|
|
||||||
Switch heroic_epic_switch {
|
|
||||||
valign: center;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Adw.ActionRow {
|
|
||||||
title: _("Import GOG Games");
|
|
||||||
|
|
||||||
Switch heroic_gog_switch {
|
|
||||||
valign: center;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Adw.ActionRow {
|
|
||||||
title: _("Import Sideloaded Games");
|
|
||||||
|
|
||||||
Switch heroic_sideloaded_switch {
|
|
||||||
valign: center;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Adw.PreferencesGroup bottles_group {
|
Adw.PreferencesGroup sgdb_behavior_group {
|
||||||
title: _("Bottles");
|
title: _("Behavior");
|
||||||
|
|
||||||
Adw.ActionRow {
|
Adw.ActionRow {
|
||||||
title: _("Bottles Install Location");
|
title: _("Use SteamGridDB");
|
||||||
subtitle: _("Directory to use when importing games");
|
subtitle: _("Download images when adding or importing games");
|
||||||
|
activatable-widget: sgdb_download_switch;
|
||||||
|
|
||||||
Button bottles_file_chooser_button {
|
Switch sgdb_download_switch {
|
||||||
icon-name: "folder-symbolic";
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.ActionRow {
|
||||||
|
title: _("Prefer Over Official Images");
|
||||||
|
activatable-widget: sgdb_prefer_switch;
|
||||||
|
|
||||||
|
Switch sgdb_prefer_switch {
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.ActionRow {
|
||||||
|
title: _("Prefer Animated Images");
|
||||||
|
activatable-widget: sgdb_animated_switch;
|
||||||
|
|
||||||
|
Switch sgdb_animated_switch {
|
||||||
valign: center;
|
valign: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,11 @@
|
|||||||
@define-color accent_color @purple_1;
|
@define-color accent_color @purple_1;
|
||||||
@define-color accent_bg_color @purple_4;
|
@define-color accent_bg_color @purple_4;
|
||||||
|
|
||||||
|
#details_view {
|
||||||
|
background-color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details_view_play_button {
|
||||||
|
color: @dark_5;
|
||||||
|
background-color: @light_1;
|
||||||
|
}
|
||||||
@@ -1,2 +1,12 @@
|
|||||||
@define-color accent_color @purple_5;
|
@define-color accent_color @purple_5;
|
||||||
@define-color accent_bg_color @purple_3;
|
@define-color accent_bg_color @purple_3;
|
||||||
|
|
||||||
|
#details_view {
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details_view_play_button {
|
||||||
|
color: @light_1;
|
||||||
|
background-color: @dark_5;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
@@ -33,9 +33,11 @@ template CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
visible-child: library_view;
|
visible-child: library_view;
|
||||||
transition-type: over_left;
|
transition-type: over_left;
|
||||||
|
|
||||||
Overlay overview {
|
Overlay details_view {
|
||||||
|
name: "details_view";
|
||||||
|
|
||||||
[overlay]
|
[overlay]
|
||||||
Box overview_box {
|
Box details_view_box {
|
||||||
orientation: vertical;
|
orientation: vertical;
|
||||||
|
|
||||||
Adw.HeaderBar {
|
Adw.HeaderBar {
|
||||||
@@ -47,7 +49,7 @@ template CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[title]
|
[title]
|
||||||
Adw.WindowTitle overview_header_bar_title {
|
Adw.WindowTitle details_view_header_bar_title {
|
||||||
title: _("Game Details");
|
title: _("Game Details");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,15 +72,23 @@ template CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
|
|
||||||
Adw.Clamp {
|
Adw.Clamp {
|
||||||
maximum-size: 200;
|
maximum-size: 200;
|
||||||
Picture overview_cover {
|
Overlay {
|
||||||
halign: end;
|
[overlay]
|
||||||
valign: start;
|
Spinner details_view_spinner {
|
||||||
width-request: 200;
|
margin-start: 72;
|
||||||
height-request: 300;
|
margin-end: 72;
|
||||||
|
}
|
||||||
|
|
||||||
styles [
|
Picture details_view_cover {
|
||||||
"card",
|
halign: end;
|
||||||
]
|
valign: start;
|
||||||
|
width-request: 200;
|
||||||
|
height-request: 300;
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"card",
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -88,10 +98,11 @@ template CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
vexpand: true;
|
vexpand: true;
|
||||||
valign: center;
|
valign: center;
|
||||||
|
|
||||||
Label overview_title {
|
Label details_view_title {
|
||||||
label: _("Game Title");
|
label: _("Game Title");
|
||||||
hexpand: true;
|
hexpand: true;
|
||||||
halign: start;
|
halign: start;
|
||||||
|
max-width-chars: 24;
|
||||||
wrap: true;
|
wrap: true;
|
||||||
wrap-mode: word_char;
|
wrap-mode: word_char;
|
||||||
natural-wrap-mode: word;
|
natural-wrap-mode: word;
|
||||||
@@ -101,10 +112,11 @@ template CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
Label overview_developer {
|
Label details_view_developer {
|
||||||
margin-top: 3;
|
margin-top: 3;
|
||||||
hexpand: true;
|
hexpand: true;
|
||||||
halign: start;
|
halign: start;
|
||||||
|
max-width-chars: 36;
|
||||||
wrap: true;
|
wrap: true;
|
||||||
wrap-mode: word_char;
|
wrap-mode: word_char;
|
||||||
natural-wrap-mode: word;
|
natural-wrap-mode: word;
|
||||||
@@ -114,57 +126,89 @@ template CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
Label overview_added {
|
Box {
|
||||||
|
orientation: horizontal;
|
||||||
margin-top: 12;
|
margin-top: 12;
|
||||||
hexpand: true;
|
hexpand: true;
|
||||||
halign: start;
|
halign: start;
|
||||||
wrap: true;
|
|
||||||
wrap-mode: word_char;
|
|
||||||
natural-wrap-mode: word;
|
|
||||||
|
|
||||||
styles [
|
Label details_view_added {
|
||||||
"dim-label",
|
wrap: true;
|
||||||
]
|
wrap-mode: word_char;
|
||||||
}
|
natural-wrap-mode: word;
|
||||||
Label overview_last_played {
|
}
|
||||||
margin-top: 6;
|
Label details_view_last_played {
|
||||||
hexpand: true;
|
margin-start: 12;
|
||||||
halign: start;
|
wrap: true;
|
||||||
wrap: true;
|
wrap-mode: word_char;
|
||||||
wrap-mode: word_char;
|
natural-wrap-mode: word;
|
||||||
natural-wrap-mode: word;
|
}
|
||||||
|
|
||||||
styles [
|
|
||||||
"dim-label",
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
Box {
|
Box {
|
||||||
hexpand: true;
|
hexpand: true;
|
||||||
vexpand: true;
|
vexpand: true;
|
||||||
valign: center;
|
valign: center;
|
||||||
|
|
||||||
Button overview_launch {
|
Button details_view_play_button {
|
||||||
|
name: "details_view_play_button";
|
||||||
action-name: "app.launch_game";
|
action-name: "app.launch_game";
|
||||||
label: _("Play");
|
label: _("Play");
|
||||||
halign: start;
|
halign: start;
|
||||||
margin-top: 24;
|
margin-top: 24;
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
"suggested-action",
|
"opaque",
|
||||||
"pill",
|
"pill",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
MenuButton overview_menu_button {
|
Box {
|
||||||
icon-name: "view-more-symbolic";
|
|
||||||
hexpand: true;
|
|
||||||
vexpand: true;
|
|
||||||
halign: start;
|
halign: start;
|
||||||
valign: center;
|
valign: center;
|
||||||
margin-top: 24;
|
margin-top: 24;
|
||||||
margin-start: 6;
|
margin-start: 12;
|
||||||
|
|
||||||
|
Button {
|
||||||
|
icon-name: "document-edit-symbolic";
|
||||||
|
action-name: "app.edit_game";
|
||||||
|
tooltip-text: _("Edit");
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"circular",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
Button details_view_hide_button {
|
||||||
|
action-name: "app.hide_game";
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"circular",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
Button {
|
||||||
|
icon-name: "user-trash-symbolic";
|
||||||
|
action-name: "app.remove_game";
|
||||||
|
tooltip-text: _("Remove");
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"circular",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
|
"linked",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
MenuButton {
|
||||||
|
halign: start;
|
||||||
|
valign: center;
|
||||||
|
margin-top: 24;
|
||||||
|
margin-start: 12;
|
||||||
|
icon-name: "system-search-symbolic";
|
||||||
|
menu-model: search;
|
||||||
|
tooltip-text: _("Search");
|
||||||
|
|
||||||
|
styles [
|
||||||
"circular",
|
"circular",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -174,16 +218,8 @@ template CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
styles [
|
Picture details_view_blurred_cover {
|
||||||
"background",
|
|
||||||
]
|
|
||||||
|
|
||||||
Picture overview_blurred_cover {
|
|
||||||
opacity: 0.2;
|
|
||||||
can-shrink: true;
|
|
||||||
keep-aspect-ratio: false;
|
keep-aspect-ratio: false;
|
||||||
hexpand: true;
|
|
||||||
vexpand: true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -384,23 +420,35 @@ menu add_games {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
section {
|
section {
|
||||||
submenu {
|
item {
|
||||||
label: _("Import from");
|
label: _("Import");
|
||||||
item {
|
action: "app.import";
|
||||||
label: _("Steam");
|
|
||||||
action: "app.steam_import";
|
|
||||||
}
|
|
||||||
|
|
||||||
item {
|
|
||||||
label: _("Heroic");
|
|
||||||
action: "app.heroic_import";
|
|
||||||
}
|
|
||||||
|
|
||||||
item {
|
|
||||||
label: _("Bottles");
|
|
||||||
action: "app.bottles_import";
|
|
||||||
hidden-when: "action-disabled";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
menu search {
|
||||||
|
section {
|
||||||
|
label: "Search on…";
|
||||||
|
item {
|
||||||
|
label: "IGDB";
|
||||||
|
action: "app.igdb_search";
|
||||||
|
}
|
||||||
|
item {
|
||||||
|
label: "SteamGridDB";
|
||||||
|
action: "app.sgdb_search";
|
||||||
|
}
|
||||||
|
item {
|
||||||
|
label: "ProtonDB";
|
||||||
|
action: "app.protondb_search";
|
||||||
|
}
|
||||||
|
item {
|
||||||
|
label: "Lutris";
|
||||||
|
action: "app.lutris_search";
|
||||||
|
}
|
||||||
|
item {
|
||||||
|
label: "HowLongToBeat";
|
||||||
|
action: "app.hltb_search";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=Cartridges
|
Name=Cartridges
|
||||||
GenericName=Game Launcher
|
GenericName=Game Launcher
|
||||||
Comment=Launch your games
|
Comment=Launch all your games
|
||||||
Exec=cartridges
|
Exec=cartridges
|
||||||
Icon=hu.kramo.Cartridges
|
Icon=hu.kramo.Cartridges
|
||||||
Terminal=false
|
Terminal=false
|
||||||
|
|||||||
@@ -10,12 +10,33 @@
|
|||||||
<key name="high-quality-images" type="b">
|
<key name="high-quality-images" type="b">
|
||||||
<default>false</default>
|
<default>false</default>
|
||||||
</key>
|
</key>
|
||||||
|
<key name="steam" type="b">
|
||||||
|
<default>true</default>
|
||||||
|
</key>
|
||||||
<key name="steam-location" type="s">
|
<key name="steam-location" type="s">
|
||||||
<default>"~/.steam/"</default>
|
<default>"~/.steam/"</default>
|
||||||
</key>
|
</key>
|
||||||
<key name="steam-extra-dirs" type="as">
|
<key name="steam-extra-dirs" type="as">
|
||||||
<default>[]</default>
|
<default>[]</default>
|
||||||
</key>
|
</key>
|
||||||
|
<key name="steam-extra-dirs-hint" type="b">
|
||||||
|
<default>true</default>
|
||||||
|
</key>
|
||||||
|
<key name="lutris" type="b">
|
||||||
|
<default>true</default>
|
||||||
|
</key>
|
||||||
|
<key name="lutris-location" type="s">
|
||||||
|
<default>"~/.var/app/net.lutris.Lutris/data/lutris/"</default>
|
||||||
|
</key>
|
||||||
|
<key name="lutris-cache-location" type="s">
|
||||||
|
<default>"~/.var/app/net.lutris.Lutris/cache/lutris"</default>
|
||||||
|
</key>
|
||||||
|
<key name="lutris-import-steam" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
</key>
|
||||||
|
<key name="heroic" type="b">
|
||||||
|
<default>true</default>
|
||||||
|
</key>
|
||||||
<key name="heroic-location" type="s">
|
<key name="heroic-location" type="s">
|
||||||
<default>"~/.var/app/com.heroicgameslauncher.hgl/config/heroic/"</default>
|
<default>"~/.var/app/com.heroicgameslauncher.hgl/config/heroic/"</default>
|
||||||
</key>
|
</key>
|
||||||
@@ -28,8 +49,29 @@
|
|||||||
<key name="heroic-import-sideload" type="b">
|
<key name="heroic-import-sideload" type="b">
|
||||||
<default>true</default>
|
<default>true</default>
|
||||||
</key>
|
</key>
|
||||||
|
<key name="bottles" type="b">
|
||||||
|
<default>true</default>
|
||||||
|
</key>
|
||||||
<key name="bottles-location" type="s">
|
<key name="bottles-location" type="s">
|
||||||
<default>"~/.var/app/com.usebottles.bottles/data/bottles/"</default>
|
<default>"~/.var/app/com.usebottles.bottles/data/bottles/"</default>
|
||||||
|
</key>
|
||||||
|
<key name="itch" type="b">
|
||||||
|
<default>true</default>
|
||||||
|
</key>
|
||||||
|
<key name="itch-location" type="s">
|
||||||
|
<default>"~/.var/app/io.itch.itch/config/itch/"</default>
|
||||||
|
</key>
|
||||||
|
<key name="sgdb-key" type="s">
|
||||||
|
<default>""</default>
|
||||||
|
</key>
|
||||||
|
<key name="sgdb" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
</key>
|
||||||
|
<key name="sgdb-prefer" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
</key>
|
||||||
|
<key name="sgdb-animated" type="b">
|
||||||
|
<default>false</default>
|
||||||
</key>
|
</key>
|
||||||
</schema>
|
</schema>
|
||||||
<schema id="hu.kramo.Cartridge.State" path="/hu/kramo/Cartridges/State/">
|
<schema id="hu.kramo.Cartridge.State" path="/hu/kramo/Cartridges/State/">
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<name>Cartridges</name>
|
<name>Cartridges</name>
|
||||||
<summary>Launch all your games</summary>
|
<summary>Launch all your games</summary>
|
||||||
<description>
|
<description>
|
||||||
<p>Cartridges is a simple game launcher. It has support for importing your games from Steam, Heroic and Bottles with organizational features such as hiding and sorting by date added or last played.</p>
|
<p>Cartridges is a simple game launcher for all of your games. It has support for importing games from Steam, Lutris, Heroic and more with no login necessary. You can sort and hide games or download cover art from SteamGridDB.</p>
|
||||||
</description>
|
</description>
|
||||||
<url type="homepage">https://github.com/kra-mo/cartridges</url>
|
<url type="homepage">https://github.com/kra-mo/cartridges</url>
|
||||||
<url type="bugtracker">https://github.com/kra-mo/cartridges/issues</url>
|
<url type="bugtracker">https://github.com/kra-mo/cartridges/issues</url>
|
||||||
@@ -36,6 +36,44 @@
|
|||||||
</screenshots>
|
</screenshots>
|
||||||
<content_rating type="oars-1.1" />
|
<content_rating type="oars-1.1" />
|
||||||
<releases>
|
<releases>
|
||||||
|
<release version="1.4.1" date="2023-05-05">
|
||||||
|
<description translatable="no">
|
||||||
|
<ul>
|
||||||
|
<li>Updates the Heroic GOG path</li>
|
||||||
|
</ul>
|
||||||
|
</description>
|
||||||
|
</release>
|
||||||
|
<release version="1.4" date="2023-04-16">
|
||||||
|
<description translatable="no">
|
||||||
|
<ul>
|
||||||
|
<li>Support for animated covers</li>
|
||||||
|
<li>Redesigned details view</li>
|
||||||
|
<li>Easily search for games on various databases</li>
|
||||||
|
<li>Translations since 1.3</li>
|
||||||
|
</ul>
|
||||||
|
</description>
|
||||||
|
</release>
|
||||||
|
<release version="1.3" date="2023-04-06">
|
||||||
|
<description translatable="no">
|
||||||
|
<ul>
|
||||||
|
<li>Support for importing game covers from SteamGridDB!</li>
|
||||||
|
<li>New import source: Lutris</li>
|
||||||
|
<li>New import source: itch</li>
|
||||||
|
<li>Better feedback for hiding and launching games</li>
|
||||||
|
<li>UX improvements</li>
|
||||||
|
<li>Translations since 1.2</li>
|
||||||
|
</ul>
|
||||||
|
</description>
|
||||||
|
</release>
|
||||||
|
<release version="1.2" date="2023-03-30">
|
||||||
|
<description translatable="no">
|
||||||
|
<ul>
|
||||||
|
<li>Refined the user experience for importing games</li>
|
||||||
|
<li>Added option to remove all games</li>
|
||||||
|
<li>Translations since 1.1</li>
|
||||||
|
</ul>
|
||||||
|
</description>
|
||||||
|
</release>
|
||||||
<release version="1.1" date="2023-03-26">
|
<release version="1.1" date="2023-03-26">
|
||||||
<description translatable="no">
|
<description translatable="no">
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 719 KiB After Width: | Height: | Size: 710 KiB |
|
Before Width: | Height: | Size: 105 KiB After Width: | Height: | Size: 142 KiB |
|
Before Width: | Height: | Size: 156 KiB After Width: | Height: | Size: 204 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 28 KiB |
@@ -5,19 +5,23 @@
|
|||||||
"sdk" : "org.gnome.Sdk",
|
"sdk" : "org.gnome.Sdk",
|
||||||
"command" : "cartridges",
|
"command" : "cartridges",
|
||||||
"finish-args" : [
|
"finish-args" : [
|
||||||
|
"--share=network",
|
||||||
"--share=ipc",
|
"--share=ipc",
|
||||||
"--socket=fallback-x11",
|
"--socket=fallback-x11",
|
||||||
"--device=dri",
|
"--device=dri",
|
||||||
"--socket=wayland",
|
"--socket=wayland",
|
||||||
"--talk-name=org.freedesktop.Flatpak",
|
"--talk-name=org.freedesktop.Flatpak",
|
||||||
"--talk-name=org.gtk.vfs.*",
|
|
||||||
"--filesystem=xdg-run/gvfsd",
|
|
||||||
"--filesystem=~/.steam/steam/:ro",
|
"--filesystem=~/.steam/steam/:ro",
|
||||||
|
"--filesystem=xdg-data/lutris/:ro",
|
||||||
|
"--filesystem=xdg-cache/lutris/:ro",
|
||||||
"--filesystem=xdg-config/heroic/:ro",
|
"--filesystem=xdg-config/heroic/:ro",
|
||||||
"--filesystem=xdg-data/bottles/:ro",
|
"--filesystem=xdg-data/bottles/:ro",
|
||||||
|
"--filesystem=xdg-config/itch/:ro",
|
||||||
"--filesystem=~/.var/app/com.valvesoftware.Steam/data/Steam/:ro",
|
"--filesystem=~/.var/app/com.valvesoftware.Steam/data/Steam/:ro",
|
||||||
|
"--filesystem=~/.var/app/net.lutris.Lutris/:ro",
|
||||||
"--filesystem=~/.var/app/com.heroicgameslauncher.hgl/config/heroic/:ro",
|
"--filesystem=~/.var/app/com.heroicgameslauncher.hgl/config/heroic/:ro",
|
||||||
"--filesystem=~/.var/app/com.usebottles.bottles/data/bottles/:ro"
|
"--filesystem=~/.var/app/com.usebottles.bottles/data/bottles/:ro",
|
||||||
|
"--filesystem=~/.var/app/io.itch.itch/config/itch/:ro"
|
||||||
],
|
],
|
||||||
"cleanup" : [
|
"cleanup" : [
|
||||||
"/include",
|
"/include",
|
||||||
@@ -32,16 +36,71 @@
|
|||||||
],
|
],
|
||||||
"modules" : [
|
"modules" : [
|
||||||
{
|
{
|
||||||
"name": "python3-pyyaml",
|
"name": "python3-modules",
|
||||||
"buildsystem": "simple",
|
"buildsystem": "simple",
|
||||||
"build-commands": [
|
"build-commands": [],
|
||||||
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"pyyaml\" --no-build-isolation"
|
"modules": [
|
||||||
],
|
|
||||||
"sources": [
|
|
||||||
{
|
{
|
||||||
"type": "file",
|
"name": "python3-pyyaml",
|
||||||
"url": "https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz",
|
"buildsystem": "simple",
|
||||||
"sha256": "68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2"
|
"build-commands": [
|
||||||
|
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"pyyaml\" --no-build-isolation"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
{
|
||||||
|
"type": "file",
|
||||||
|
"url": "https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz",
|
||||||
|
"sha256": "68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "python3-requests",
|
||||||
|
"buildsystem": "simple",
|
||||||
|
"build-commands": [
|
||||||
|
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"requests\" --no-build-isolation"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
{
|
||||||
|
"type": "file",
|
||||||
|
"url": "https://files.pythonhosted.org/packages/71/4c/3db2b8021bd6f2f0ceb0e088d6b2d49147671f25832fb17970e9b583d742/certifi-2022.12.7-py3-none-any.whl",
|
||||||
|
"sha256": "4ad3232f5e926d6718ec31cfc1fcadfde020920e278684144551c91769c7bc18"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "file",
|
||||||
|
"url": "https://files.pythonhosted.org/packages/ff/d7/8d757f8bd45be079d76309248845a04f09619a7b17d6dfc8c9ff6433cac2/charset-normalizer-3.1.0.tar.gz",
|
||||||
|
"sha256": "34e0a2f9c370eb95597aae63bf85eb5e96826d81e3dcf88b8886012906f509b5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "file",
|
||||||
|
"url": "https://files.pythonhosted.org/packages/fc/34/3030de6f1370931b9dbb4dad48f6ab1015ab1d32447850b9fc94e60097be/idna-3.4-py3-none-any.whl",
|
||||||
|
"sha256": "90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "file",
|
||||||
|
"url": "https://files.pythonhosted.org/packages/d2/f4/274d1dbe96b41cf4e0efb70cbced278ffd61b5c7bb70338b62af94ccb25b/requests-2.28.2-py3-none-any.whl",
|
||||||
|
"sha256": "64299f4909223da747622c030b781c0d7811e359c37124b4bd368fb8c6518baa"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "file",
|
||||||
|
"url": "https://files.pythonhosted.org/packages/7b/f5/890a0baca17a61c1f92f72b81d3c31523c99bec609e60c292ea55b387ae8/urllib3-1.26.15-py2.py3-none-any.whl",
|
||||||
|
"sha256": "aa751d169e23c7479ce47a0cb0da579e3ede798f994f5816a74e4f4500dcea42"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "python3-pillow",
|
||||||
|
"buildsystem": "simple",
|
||||||
|
"build-commands": [
|
||||||
|
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"pillow\" --no-build-isolation"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
{
|
||||||
|
"type": "file",
|
||||||
|
"url": "https://files.pythonhosted.org/packages/00/d5/4903f310765e0ff2b8e91ffe55031ac6af77d982f0156061e20a4d1a8b2d/Pillow-9.5.0.tar.gz",
|
||||||
|
"sha256": "bf548479d336726d7a0eceb6e767e179fbde37833ae42794602631a070d630f1"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
project('cartridges',
|
project('cartridges',
|
||||||
version: '1.1',
|
version: '1.4.1',
|
||||||
meson_version: '>= 0.59.0',
|
meson_version: '>= 0.59.0',
|
||||||
default_options: [ 'warning_level=2', 'werror=false', ],
|
default_options: [ 'warning_level=2', 'werror=false', ],
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -10,3 +10,6 @@ es
|
|||||||
fi
|
fi
|
||||||
pt
|
pt
|
||||||
ru
|
ru
|
||||||
|
ko
|
||||||
|
de
|
||||||
|
ro
|
||||||
|
|||||||
@@ -2,18 +2,17 @@ data/hu.kramo.Cartridges.desktop.in
|
|||||||
data/hu.kramo.Cartridges.gschema.xml
|
data/hu.kramo.Cartridges.gschema.xml
|
||||||
data/hu.kramo.Cartridges.metainfo.xml.in
|
data/hu.kramo.Cartridges.metainfo.xml.in
|
||||||
|
|
||||||
data/gtk/window.blp
|
|
||||||
data/gtk/game.blp
|
data/gtk/game.blp
|
||||||
data/gtk/help-overlay.blp
|
data/gtk/help-overlay.blp
|
||||||
data/gtk/preferences.blp
|
data/gtk/preferences.blp
|
||||||
|
data/gtk/window.blp
|
||||||
|
|
||||||
src/main.py
|
src/main.py
|
||||||
src/window.py
|
src/window.py
|
||||||
src/game.py
|
src/game.py
|
||||||
src/preferences.py
|
src/preferences.py
|
||||||
|
|
||||||
src/utils/bottles_parser.py
|
|
||||||
src/utils/create_details_window.py
|
src/utils/create_details_window.py
|
||||||
src/utils/create_dialog.py
|
src/utils/create_dialog.py
|
||||||
src/utils/heroic_parser.py
|
src/utils/importer.py
|
||||||
src/utils/steam_parser.py
|
src/utils/steamgriddb.py
|
||||||
812
po/ar.po
@@ -2,12 +2,13 @@
|
|||||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
# This file is distributed under the same license as the cartridges package.
|
# This file is distributed under the same license as the cartridges package.
|
||||||
# Ali Aljishi <ahj696@hotmail.com>, 2023.
|
# Ali Aljishi <ahj696@hotmail.com>, 2023.
|
||||||
|
# kramo <contact@kramo.hu>, 2023.
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: cartridges\n"
|
"Project-Id-Version: cartridges\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2023-03-26 11:51+0200\n"
|
"POT-Creation-Date: 2023-04-11 23:33+0200\n"
|
||||||
"PO-Revision-Date: 2023-03-25 17:57+0000\n"
|
"PO-Revision-Date: 2023-04-14 12:29+0000\n"
|
||||||
"Last-Translator: Ali Aljishi <ahj696@hotmail.com>\n"
|
"Last-Translator: Ali Aljishi <ahj696@hotmail.com>\n"
|
||||||
"Language-Team: Arabic <https://hosted.weblate.org/projects/cartridges/"
|
"Language-Team: Arabic <https://hosted.weblate.org/projects/cartridges/"
|
||||||
"cartridges/ar/>\n"
|
"cartridges/ar/>\n"
|
||||||
@@ -21,38 +22,36 @@ msgstr ""
|
|||||||
|
|
||||||
#: data/hu.kramo.Cartridges.desktop.in:3
|
#: data/hu.kramo.Cartridges.desktop.in:3
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:29
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:29
|
||||||
#: src/main.py:115
|
#: src/main.py:119
|
||||||
msgid "Cartridges"
|
msgid "Cartridges"
|
||||||
msgstr "عبوات"
|
msgstr "خراطيش"
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.desktop.in:4
|
#: data/hu.kramo.Cartridges.desktop.in:4
|
||||||
msgid "Game Launcher"
|
msgid "Game Launcher"
|
||||||
msgstr "مشغِّل ألعاب"
|
msgstr "مشغِّل ألعاب"
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.desktop.in:5
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
msgid "Launch your games"
|
|
||||||
msgstr "شغِّل ألعابك"
|
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
msgid "Launch all your games"
|
msgid "Launch all your games"
|
||||||
msgstr "شغِّل كلَّ ألعابك"
|
msgstr "شغِّل كلَّ ألعابك"
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
||||||
msgid ""
|
msgid ""
|
||||||
"Cartridges is a simple game launcher. It has support for importing your "
|
"Cartridges is a simple game launcher for all of your games. It has support "
|
||||||
"games from Steam, Heroic and Bottles with organizational features such as "
|
"for importing games from Steam, Lutris, Heroic and more with no login "
|
||||||
"hiding and sorting by date added or last played."
|
"necessary. You can sort and hide games or download cover art from "
|
||||||
|
"SteamGridDB."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"«عبوَّات» هو مشغِّل ألعاب يسير، فيه دعم لاستيراد الألعاب من ستيم، وهِرُوِك، وبوتلز، "
|
"«خراطيش» هو مشغِّل ألعاب يسير، فيه دعم لاستيراد الألعاب من ستيم،ولوترس، وهِرُوِك، "
|
||||||
"وفيه مزايا لترتيب هذه الألعاب مثل إخفاء بعضها أو ترتيبها حسب تاريخ إضافتها "
|
"وبرامج أخرى، وذلك دون تسجيل دخول. ولك ترتيب وإخفاء الألعاب فيه كيفما شئت، "
|
||||||
"أو آخر تاريخ لُعبت فيه."
|
"وكذلك تستطيع منه تنزيل غُلُف الألعاب من SteamGridDB."
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:22
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:22
|
||||||
msgid "Library"
|
msgid "Library"
|
||||||
msgstr "المكتبة"
|
msgstr "المكتبة"
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:26
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:26
|
||||||
#: src/utils/create_details_window.py:48
|
#: src/utils/create_details_window.py:87
|
||||||
msgid "Edit Game Details"
|
msgid "Edit Game Details"
|
||||||
msgstr "حرِّر تفاصيل اللعبة"
|
msgstr "حرِّر تفاصيل اللعبة"
|
||||||
|
|
||||||
@@ -60,17 +59,238 @@ msgstr "حرِّر تفاصيل اللعبة"
|
|||||||
msgid "Game Details"
|
msgid "Game Details"
|
||||||
msgstr "تفاصيل اللعبة"
|
msgstr "تفاصيل اللعبة"
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:363
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:402
|
||||||
#: src/utils/steam_parser.py:170
|
#: src/utils/importer.py:94 src/utils/importer.py:123 src/utils/importer.py:148
|
||||||
|
#: src/utils/steamgriddb.py:116
|
||||||
msgid "Preferences"
|
msgid "Preferences"
|
||||||
msgstr "التفضيلات"
|
msgstr "التفضيلات"
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:41
|
#: data/gtk/game.blp:67 src/utils/create_details_window.py:129
|
||||||
msgid "First stable release"
|
msgid "Title"
|
||||||
msgstr "أوَّل إصدار مستقرٍّ"
|
msgstr "العنوان"
|
||||||
|
|
||||||
#: data/gtk/window.blp:6 src/utils/bottles_parser.py:140
|
#: data/gtk/game.blp:89 data/gtk/game.blp:108 data/gtk/window.blp:170
|
||||||
#: src/utils/heroic_parser.py:250 src/utils/steam_parser.py:167
|
msgid "Edit"
|
||||||
|
msgstr "حرِّر"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:94 src/window.py:286
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr "أخفِ"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:99 data/gtk/game.blp:118 data/gtk/preferences.blp:56
|
||||||
|
#: data/gtk/window.blp:186
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr "أزل"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:113 src/window.py:283
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr "اكشف"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
|
||||||
|
msgid "General"
|
||||||
|
msgstr "عام"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr "أنهِ"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:205 data/gtk/window.blp:249
|
||||||
|
#: data/gtk/window.blp:312
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "ابحث"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr "أظهر التفضيلات"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr "الاختصارات"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34 src/main.py:186 src/main.py:242
|
||||||
|
#: src/preferences.py:133
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "تراجع"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr "افتح القائمة"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgid "Games"
|
||||||
|
msgstr "الألعاب"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr "أضف لعبةً جديدةً"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgid "Import games"
|
||||||
|
msgstr "استورد ألعابًا"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:58
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr "أظهر الألعاب المخفية"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:63
|
||||||
|
msgid "Remove game"
|
||||||
|
msgstr "أزل اللعبة"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:235
|
||||||
|
msgid "Behavior"
|
||||||
|
msgstr "السلوك"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:16
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr "اخرج بعد بدء الألعاب"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Cover Image Launches Game"
|
||||||
|
msgstr "تبدأ صورة الغلاف اللعبة"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26
|
||||||
|
msgid "Swaps the behavior of the cover image and the play button"
|
||||||
|
msgstr "يبدِّل سلوك صورة الغلاف وزرِّ «العب»"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:36 src/utils/create_details_window.py:101
|
||||||
|
msgid "Images"
|
||||||
|
msgstr "الصور"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:39
|
||||||
|
msgid "High Quality Images"
|
||||||
|
msgstr "صور ذات دقَّة عالية"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:40
|
||||||
|
msgid "Save game covers losslessly at the cost of storage"
|
||||||
|
msgstr "احفظ غُلُف الألعاب دون فقد على حساب مساحة التخزين"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:50
|
||||||
|
msgid "Danger Zone"
|
||||||
|
msgstr "منطقة خطر"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:53
|
||||||
|
msgid "Remove All Games"
|
||||||
|
msgstr "أزل كلَّ الألعاب"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:69 data/gtk/window.blp:427
|
||||||
|
msgid "Import"
|
||||||
|
msgstr "استورد"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:73
|
||||||
|
msgid "Sources"
|
||||||
|
msgstr "المصادر"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:76
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr "ستيم"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:80
|
||||||
|
msgid "Steam Install Location"
|
||||||
|
msgstr "موضع تثبيت ستيم"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:81 data/gtk/preferences.blp:119
|
||||||
|
#: data/gtk/preferences.blp:153 data/gtk/preferences.blp:195
|
||||||
|
#: data/gtk/preferences.blp:210
|
||||||
|
msgid "Directory to use when importing games"
|
||||||
|
msgstr "المجلَّد المستخدم عند استيراد الألعاب"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:89 src/utils/importer.py:143
|
||||||
|
msgid "Extra Steam Libraries"
|
||||||
|
msgstr "مكتبات ستيم الإضافية"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:90
|
||||||
|
msgid "Select other directories where you have Steam games installed"
|
||||||
|
msgstr "حدِّد المجلَّدات الأخرى التي ثُبِّتت فيها ألعاب ستيم"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:96
|
||||||
|
msgid "Clear"
|
||||||
|
msgstr "أمحُ"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:114
|
||||||
|
msgid "Lutris"
|
||||||
|
msgstr "لوترس"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:118
|
||||||
|
msgid "Lutris Install Location"
|
||||||
|
msgstr "موضع تثبيت لوترس"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:128
|
||||||
|
msgid "Lutris Cache Location"
|
||||||
|
msgstr "موضع ذكرة لوترس المؤقَّتة"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:129
|
||||||
|
msgid "Directory to use when importing game covers"
|
||||||
|
msgstr "المجلَّد المستخدم عند استيراد غُلُف الألعاب"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:138
|
||||||
|
msgid "Import Steam Games"
|
||||||
|
msgstr "استورد ألعابًا من ستيم"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:148
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr "هِرُوِك"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:152
|
||||||
|
msgid "Heroic Install Location"
|
||||||
|
msgstr "موضع تثبيت هِرُوِك"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:162
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr "استورد ألعاب أَبِك"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:171
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr "استورد ألعاب جيأوجي"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:180
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr "استورد ألعابًا مثبَّتةً بغير متجر"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:190
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr "قوارير"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:194
|
||||||
|
msgid "Bottles Install Location"
|
||||||
|
msgstr "موضع تثبيت قوارير"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:205
|
||||||
|
msgid "itch"
|
||||||
|
msgstr "إتش"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:209
|
||||||
|
msgid "itch Install Location"
|
||||||
|
msgstr "موضع تثبيت إتش"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:223
|
||||||
|
msgid "SteamGridDB"
|
||||||
|
msgstr "SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:227
|
||||||
|
msgid "Authentication"
|
||||||
|
msgstr "الاستيثاق"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:230
|
||||||
|
msgid "API Key"
|
||||||
|
msgstr "مفتاح واجهة البرمجة"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:238
|
||||||
|
msgid "Use SteamGridDB"
|
||||||
|
msgstr "استخدم SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:239
|
||||||
|
msgid "Download images when adding or importing games"
|
||||||
|
msgstr "نزِّل الصور حينما تنزِّل أو تستورد الألعاب"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:248
|
||||||
|
msgid "Prefer Over Official Images"
|
||||||
|
msgstr "فضِّلها على الصور الرسمية"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:257
|
||||||
|
msgid "Prefer Animated Images"
|
||||||
|
msgstr "فضِّل الصور المتحرِّكة"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 src/utils/importer.py:91
|
||||||
msgid "No Games Found"
|
msgid "No Games Found"
|
||||||
msgstr "لم يُعثر على ألعاب"
|
msgstr "لم يُعثر على ألعاب"
|
||||||
|
|
||||||
@@ -94,413 +314,252 @@ msgstr "لا توجد ألعاب مخفية"
|
|||||||
msgid "Games you hide will appear here."
|
msgid "Games you hide will appear here."
|
||||||
msgstr "هنا يظهر ما أخفيت من ألعاب."
|
msgstr "هنا يظهر ما أخفيت من ألعاب."
|
||||||
|
|
||||||
#: data/gtk/window.blp:44 data/gtk/window.blp:254
|
#: data/gtk/window.blp:44 data/gtk/window.blp:293
|
||||||
msgid "Back"
|
msgid "Back"
|
||||||
msgstr "عد"
|
msgstr "عد"
|
||||||
|
|
||||||
#: data/gtk/window.blp:92
|
#: data/gtk/window.blp:100
|
||||||
msgid "Game Title"
|
msgid "Game Title"
|
||||||
msgstr "عنوان اللعبة"
|
msgstr "عنوان اللعبة"
|
||||||
|
|
||||||
#: data/gtk/window.blp:148 src/game.py:175
|
#: data/gtk/window.blp:151 src/game.py:158
|
||||||
msgid "Play"
|
msgid "Play"
|
||||||
msgstr "العب"
|
msgstr "العب"
|
||||||
|
|
||||||
#: data/gtk/window.blp:196 data/gtk/window.blp:382
|
#: data/gtk/window.blp:235 data/gtk/window.blp:421
|
||||||
msgid "Add Game"
|
msgid "Add Game"
|
||||||
msgstr "أضف لعبةً"
|
msgstr "أضف لعبةً"
|
||||||
|
|
||||||
#: data/gtk/window.blp:203 data/gtk/window.blp:266
|
#: data/gtk/window.blp:242 data/gtk/window.blp:305
|
||||||
msgid "Main Menu"
|
msgid "Main Menu"
|
||||||
msgstr "القائمة الرئيسة"
|
msgstr "القائمة الرئيسة"
|
||||||
|
|
||||||
#: data/gtk/window.blp:210 data/gtk/window.blp:273
|
#: data/gtk/window.blp:300
|
||||||
msgid "Search"
|
|
||||||
msgstr "ابحث"
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:261
|
|
||||||
msgid "Hidden Games"
|
msgid "Hidden Games"
|
||||||
msgstr "الألعاب المخفية"
|
msgstr "الألعاب المخفية"
|
||||||
|
|
||||||
#: data/gtk/window.blp:321
|
#: data/gtk/window.blp:360
|
||||||
msgid "Sort"
|
msgid "Sort"
|
||||||
msgstr "رتِّب"
|
msgstr "رتِّب"
|
||||||
|
|
||||||
#: data/gtk/window.blp:324
|
#: data/gtk/window.blp:363
|
||||||
msgid "A-Z"
|
msgid "A-Z"
|
||||||
msgstr "أ-ي"
|
msgstr "أ-ي"
|
||||||
|
|
||||||
#: data/gtk/window.blp:330
|
#: data/gtk/window.blp:369
|
||||||
msgid "Z-A"
|
msgid "Z-A"
|
||||||
msgstr "ي-أ"
|
msgstr "ي-أ"
|
||||||
|
|
||||||
#: data/gtk/window.blp:336
|
#: data/gtk/window.blp:375
|
||||||
msgid "Newest"
|
msgid "Newest"
|
||||||
msgstr "الأجدد"
|
msgstr "الأجدد"
|
||||||
|
|
||||||
#: data/gtk/window.blp:342
|
#: data/gtk/window.blp:381
|
||||||
msgid "Oldest"
|
msgid "Oldest"
|
||||||
msgstr "الأقدم"
|
msgstr "الأقدم"
|
||||||
|
|
||||||
#: data/gtk/window.blp:348
|
#: data/gtk/window.blp:387
|
||||||
msgid "Last Played"
|
msgid "Last Played"
|
||||||
msgstr "لُعبت آخر مرَّة"
|
msgstr "لُعبت آخر مرَّة"
|
||||||
|
|
||||||
#: data/gtk/window.blp:355
|
#: data/gtk/window.blp:394
|
||||||
msgid "Show Hidden"
|
msgid "Show Hidden"
|
||||||
msgstr "أظهر ما أخفي"
|
msgstr "أظهر ما أخفي"
|
||||||
|
|
||||||
#: data/gtk/window.blp:368
|
#: data/gtk/window.blp:407
|
||||||
msgid "Keyboard Shortcuts"
|
msgid "Keyboard Shortcuts"
|
||||||
msgstr "اختصارات لوحة المفاتيح"
|
msgstr "اختصارات لوحة المفاتيح"
|
||||||
|
|
||||||
#: data/gtk/window.blp:373
|
#: data/gtk/window.blp:412
|
||||||
msgid "About Cartridges"
|
msgid "About Cartridges"
|
||||||
msgstr "عن «عبوَّات»"
|
msgstr "عن «خراطيش»"
|
||||||
|
|
||||||
#: data/gtk/window.blp:388
|
|
||||||
msgid "Import from"
|
|
||||||
msgstr "استورد من"
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:390 data/gtk/preferences.blp:40
|
|
||||||
msgid "Steam"
|
|
||||||
msgstr "ستيم"
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:395 data/gtk/preferences.blp:78
|
|
||||||
msgid "Heroic"
|
|
||||||
msgstr "هِرُوِك"
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:400 data/gtk/preferences.blp:116
|
|
||||||
msgid "Bottles"
|
|
||||||
msgstr "بوتلز"
|
|
||||||
|
|
||||||
#: data/gtk/game.blp:60 src/utils/create_details_window.py:94
|
|
||||||
msgid "Title"
|
|
||||||
msgstr "العنوان"
|
|
||||||
|
|
||||||
#: data/gtk/game.blp:82 data/gtk/game.blp:101
|
|
||||||
msgid "Edit"
|
|
||||||
msgstr "حرِّر"
|
|
||||||
|
|
||||||
#: data/gtk/game.blp:87
|
|
||||||
msgid "Hide"
|
|
||||||
msgstr "أخفِ"
|
|
||||||
|
|
||||||
#: data/gtk/game.blp:92 data/gtk/game.blp:111
|
|
||||||
msgid "Remove"
|
|
||||||
msgstr "أزل"
|
|
||||||
|
|
||||||
#: data/gtk/game.blp:106
|
|
||||||
msgid "Unhide"
|
|
||||||
msgstr "اكشف"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:11
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "General"
|
|
||||||
msgstr "عام"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:14
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Quit"
|
|
||||||
msgstr "أنهِ"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:19
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Search"
|
|
||||||
msgstr "ابحث"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:24
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Show preferences"
|
|
||||||
msgstr "أظهر التفضيلات"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:29
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Shortcuts"
|
|
||||||
msgstr "الاختصارات"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:34
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Undo"
|
|
||||||
msgstr "تراجع"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:39
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Open menu"
|
|
||||||
msgstr "افتح القائمة"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:45
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Games"
|
|
||||||
msgstr "الألعاب"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:48
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Add new game"
|
|
||||||
msgstr "أضف لعبةً جديدةً"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:53
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Show hidden games"
|
|
||||||
msgstr "أظهر الألعاب المخفية"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:10
|
|
||||||
msgid "General"
|
|
||||||
msgstr "عام"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:13
|
|
||||||
msgid "Exit After Launching Games"
|
|
||||||
msgstr "اخرج بعد بدء الألعاب"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:21
|
|
||||||
msgid "Cover Image Launches Game"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:22
|
|
||||||
msgid "Swaps the behavior of the cover image and the play button"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:30
|
|
||||||
msgid "High Quality Images"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:31
|
|
||||||
msgid "Save game covers losslessly at the cost of storage"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:43
|
|
||||||
msgid "Steam Install Location"
|
|
||||||
msgstr "موضع تثبيت ستيم"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:44 data/gtk/preferences.blp:82
|
|
||||||
#: data/gtk/preferences.blp:120
|
|
||||||
msgid "Directory to use when importing games"
|
|
||||||
msgstr "المجلَّد المستخدم عند استيراد الألعاب"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:52
|
|
||||||
msgid "Extra Steam Libraries"
|
|
||||||
msgstr "مكتبات ستيم الإضافية"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:53
|
|
||||||
msgid "Select other directories where you have Steam games installed"
|
|
||||||
msgstr "حدِّد المجلَّدات الأخرى التي ثُبِّتت فيها ألعاب ستيم"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:60
|
|
||||||
msgid "Clear"
|
|
||||||
msgstr "أمحُ"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:81
|
|
||||||
msgid "Heroic Install Location"
|
|
||||||
msgstr "موضع تثبيت هِرُوِك"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:91
|
|
||||||
msgid "Import Epic Games"
|
|
||||||
msgstr "استورد ألعاب أَبِك"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:99
|
|
||||||
msgid "Import GOG Games"
|
|
||||||
msgstr "استورد ألعاب جيأوجي"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:107
|
|
||||||
msgid "Import Sideloaded Games"
|
|
||||||
msgstr "استورد ألعابًا مثبَّتةً بغير متجر"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:119
|
|
||||||
msgid "Bottles Install Location"
|
|
||||||
msgstr "موضع تثبيت بوتلز"
|
|
||||||
|
|
||||||
#. Translators: Replace this with your name for it to show up in the about window
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
#: src/main.py:130
|
#: src/main.py:137
|
||||||
msgid "translator_credits"
|
msgid "translator_credits"
|
||||||
msgstr "Ali Aljishi <ahj696@hotmail.com>"
|
msgstr "Ali Aljishi <ahj696@hotmail.com>"
|
||||||
|
|
||||||
#: src/main.py:193
|
#. The variable is the title of the game
|
||||||
#, python-brace-format
|
#: src/main.py:164
|
||||||
msgid "{title} removed"
|
msgid "{} launched"
|
||||||
msgstr "أزيلت {title}"
|
msgstr "بُدئت {}"
|
||||||
|
|
||||||
#: src/main.py:194
|
#. The variable is the title of the game
|
||||||
msgid "Undo"
|
#: src/main.py:182
|
||||||
msgstr "تراجع"
|
msgid "{} hidden"
|
||||||
|
msgstr "أٌخفيت {}"
|
||||||
|
|
||||||
#: src/window.py:234
|
#. The variable is the title of the game
|
||||||
|
#: src/main.py:185
|
||||||
|
msgid "{} unhidden"
|
||||||
|
msgstr "أٌظهرت {}"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/main.py:241
|
||||||
|
msgid "{} removed"
|
||||||
|
msgstr "أزيلت {}"
|
||||||
|
|
||||||
|
#: src/window.py:262
|
||||||
msgid "Today"
|
msgid "Today"
|
||||||
msgstr "اليوم"
|
msgstr "اليوم"
|
||||||
|
|
||||||
#: src/window.py:236
|
#: src/window.py:264
|
||||||
msgid "Yesterday"
|
msgid "Yesterday"
|
||||||
msgstr "أمس"
|
msgstr "أمس"
|
||||||
|
|
||||||
#. The variable is the date when the game was added
|
#. The variable is the date when the game was added
|
||||||
#: src/window.py:270
|
#: src/window.py:310
|
||||||
#, python-brace-format
|
msgid "Added: {}"
|
||||||
msgid "Added: {date}"
|
msgstr "أضيفت في: {}"
|
||||||
msgstr "أضيفت في: {date}"
|
|
||||||
|
|
||||||
#: src/window.py:275
|
#: src/window.py:315
|
||||||
msgid "Never"
|
msgid "Never"
|
||||||
msgstr "أبدًا"
|
msgstr "أبدًا"
|
||||||
|
|
||||||
#. The variable is the date when the game was last played
|
#. The variable is the date when the game was last played
|
||||||
#: src/window.py:279
|
#: src/window.py:319
|
||||||
#, python-brace-format
|
msgid "Last played: {}"
|
||||||
msgid "Last played: {last_played_date}"
|
msgstr "لُعبت آخر مرَّة في: {}"
|
||||||
msgstr "لُعبت آخر مرَّة في: {last_played_date}"
|
|
||||||
|
|
||||||
#: src/game.py:173
|
#: src/game.py:156
|
||||||
#, fuzzy
|
|
||||||
msgid "Details"
|
msgid "Details"
|
||||||
msgstr "تفاصيل اللعبة"
|
msgstr "التفاصيل"
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:80 src/utils/heroic_parser.py:87
|
#: src/preferences.py:54
|
||||||
#: src/utils/steam_parser.py:245
|
msgid "Installation Not Found"
|
||||||
msgid "Couldn't Import Games"
|
msgstr "لم يُعثر على التثبيت"
|
||||||
msgstr "تعذَّر استيراد الألعاب"
|
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:81
|
#. The variable is the name of the game launcher
|
||||||
msgid "The Bottles directory cannot be found."
|
#: src/preferences.py:56
|
||||||
msgstr "تعذَّر العثور على مجلَّد بوتلز."
|
msgid "Select the {} configuration directory."
|
||||||
|
msgstr "حدِّد مجلَّد ضبط {}."
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:83
|
#. The variable is the name of the game launcher
|
||||||
msgid "Set Bottles Location"
|
#: src/preferences.py:59
|
||||||
msgstr "عيِّن موضع بوتلز"
|
msgid "Select the {} data directory."
|
||||||
|
msgstr "حدِّد مجلَّد بيانات {}."
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:141
|
#: src/preferences.py:61 src/preferences.py:240
|
||||||
msgid "No new games were found in the Bottles library."
|
msgid "Set Location"
|
||||||
msgstr "لم يُعثر على ألعاب جديدة في مكتبة بوتلز."
|
msgstr "عيِّن الموضع"
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:146 src/utils/bottles_parser.py:153
|
#: src/preferences.py:132
|
||||||
msgid "Bottles Games Imported"
|
msgid "All games removed"
|
||||||
msgstr "اُستوردت ألعاب بوتلز"
|
msgstr "أُزيلت كلُّ الألعاب"
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:147 src/utils/heroic_parser.py:257
|
#: src/preferences.py:237
|
||||||
#: src/utils/steam_parser.py:177
|
msgid "Cache Not Found"
|
||||||
msgid "Successfully imported 1 game."
|
msgstr "لم يُعثر على الذاكرة المؤقَّتة"
|
||||||
msgstr "اُستوردت لعبة بنجاح."
|
|
||||||
|
|
||||||
#. The variable is the number of games
|
#: src/preferences.py:238
|
||||||
#: src/utils/bottles_parser.py:155 src/utils/heroic_parser.py:265
|
msgid "Select the Lutris cache directory."
|
||||||
#: src/utils/steam_parser.py:185
|
msgstr "حدِّد مجلَّد ذاكرة لوترس المؤقَّتة."
|
||||||
#, python-brace-format
|
|
||||||
msgid "Successfully imported {games_no} games."
|
|
||||||
msgstr "اُستوردت {games_no} لعبة بنجاح."
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:41
|
#: src/preferences.py:344
|
||||||
|
msgid ""
|
||||||
|
"An API key is required to use SteamGridDB. You can generate one {}here{}."
|
||||||
|
msgstr ""
|
||||||
|
"تحتاج مفتاح واجهة برمجة حال ما أردت استخدام SteamGridDB، {}هنا تولِّده{}."
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:81
|
||||||
msgid "Add New Game"
|
msgid "Add New Game"
|
||||||
msgstr "أضف لعبةً جديدةً"
|
msgstr "أضف لعبةً جديدةً"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:46
|
#: src/utils/create_details_window.py:85
|
||||||
msgid "Confirm"
|
msgid "Confirm"
|
||||||
msgstr "أكِّد"
|
msgstr "أكِّد"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:57
|
#: src/utils/create_details_window.py:96
|
||||||
msgid "Apply"
|
msgid "Apply"
|
||||||
msgstr "طبِّق"
|
msgstr "طبِّق"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:59
|
#: src/utils/create_details_window.py:130
|
||||||
msgid "Images"
|
|
||||||
msgstr "الصور"
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:95
|
|
||||||
msgid "The title of the game"
|
msgid "The title of the game"
|
||||||
msgstr "عنوان اللعبة"
|
msgstr "عنوان اللعبة"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:100
|
#: src/utils/create_details_window.py:135
|
||||||
msgid "Developer"
|
msgid "Developer"
|
||||||
msgstr "المطوِّر"
|
msgstr "المطوِّر"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:101
|
#: src/utils/create_details_window.py:136
|
||||||
msgid "The developer or publisher (optional)"
|
msgid "The developer or publisher (optional)"
|
||||||
msgstr "المطوِّر أو الناشر (اختياري)"
|
msgstr "المطوِّر أو الناشر (اختياري)"
|
||||||
|
|
||||||
#. Translate this string as you would translate "file"
|
#. Translate this string as you would translate "file"
|
||||||
#: src/utils/create_details_window.py:112
|
#: src/utils/create_details_window.py:147
|
||||||
msgid "file.txt"
|
msgid "file.txt"
|
||||||
msgstr "ملف.txt"
|
msgstr "ملف.txt"
|
||||||
|
|
||||||
#. As in software
|
#. As in software
|
||||||
#: src/utils/create_details_window.py:114
|
#: src/utils/create_details_window.py:149
|
||||||
msgid "program"
|
msgid "program"
|
||||||
msgstr "برنامج"
|
msgstr "البرنامج"
|
||||||
|
|
||||||
#. Translate this string as you would translate "path to {exe_name}"
|
#. Translate this string as you would translate "path to {}"
|
||||||
#: src/utils/create_details_window.py:119
|
#: src/utils/create_details_window.py:154
|
||||||
#, python-brace-format
|
#: src/utils/create_details_window.py:156
|
||||||
msgid "C:\\path\\to\\{exe_name}"
|
msgid "C:\\path\\to\\{}"
|
||||||
msgstr "C:\\path\\to\\{exe_name}"
|
msgstr "C:\\المسار\\إلى\\{}"
|
||||||
|
|
||||||
#. Translate this string as you would translate "path to {file_name}"
|
#. Translate this string as you would translate "path to {}"
|
||||||
#: src/utils/create_details_window.py:121
|
#: src/utils/create_details_window.py:160
|
||||||
#, python-brace-format
|
#: src/utils/create_details_window.py:162
|
||||||
msgid "C:\\path\\to\\{file_name}"
|
msgid "/path/to/{}"
|
||||||
msgstr "C:\\path\\to\\{file_name}"
|
msgstr "/المسار/إلى/{}"
|
||||||
|
|
||||||
#. Translate this string as you would translate "path to {exe_name}"
|
#: src/utils/create_details_window.py:166
|
||||||
#: src/utils/create_details_window.py:125
|
|
||||||
#, python-brace-format
|
|
||||||
msgid "/path/to/{exe_name}"
|
|
||||||
msgstr "/path/to/{exe_name}"
|
|
||||||
|
|
||||||
#. Translate this string as you would translate "path to {file_name}"
|
|
||||||
#: src/utils/create_details_window.py:127
|
|
||||||
#, python-brace-format
|
|
||||||
msgid "/path/to/{file_name}"
|
|
||||||
msgstr "/path/to/{file_name}"
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:131
|
|
||||||
#, python-brace-format
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"To launch the executable \"{exe_name}\", use the command:\n"
|
"To launch the executable \"{}\", use the command:\n"
|
||||||
"\n"
|
"\n"
|
||||||
"<tt>\"{exe_path}\"</tt>\n"
|
"<tt>\"{}\"</tt>\n"
|
||||||
"\n"
|
"\n"
|
||||||
"To open the file \"{file_name}\" with the default application, use:\n"
|
"To open the file \"{}\" with the default application, use:\n"
|
||||||
"\n"
|
"\n"
|
||||||
"<tt>{command} \"{file_path}\"</tt>\n"
|
"<tt>{} \"{}\"</tt>\n"
|
||||||
"\n"
|
"\n"
|
||||||
"If the path contains spaces, make sure to wrap it in double quotes!"
|
"If the path contains spaces, make sure to wrap it in double quotes!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"إن أردت تشغيل ملفِّ التنفيذ «{exe_name}» فعليك استخدام الأمر:\n"
|
"إن أردت تشغيل ملفِّ التنفيذ «{}» فعليك استخدام الأمر:\n"
|
||||||
"\n"
|
"\n"
|
||||||
"<tt>\"{exe_path}\"</tt>\n"
|
"<tt>«{}»</tt>\n"
|
||||||
"\n"
|
"\n"
|
||||||
"إن أردت فتح الملفِّ «{file_name}» باستخدام التطبيق المبدئيِّ فعليك استخدام:\n"
|
"إن أردت فتح الملفِّ «{}» باستخدام التطبيق المبدئيِّ فعليك استخدام:\n"
|
||||||
"\n"
|
"\n"
|
||||||
"<tt>{command} \"{file_path}\"</tt>\n"
|
"<tt>{} «{}»</tt>\n"
|
||||||
"\n"
|
"\n"
|
||||||
"ولا تنسَ إحاطة المسافات في المسار بعلامتي تنصيص مزدوجتين!"
|
"ولا تنسَ إحاطة المسار بعلامتي تنصيص مزدوجتين حالما تضمَّن مسافات!"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:154
|
#: src/utils/create_details_window.py:189
|
||||||
msgid "Executable"
|
msgid "Executable"
|
||||||
msgstr "ملفُّ تنفيذ"
|
msgstr "ملفُّ التنفيذ"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:155
|
#: src/utils/create_details_window.py:190
|
||||||
msgid "File to open or command to run when launching the game"
|
msgid "File to open or command to run when launching the game"
|
||||||
msgstr "الملفُّ المفتوح أو الأمر المشغَّل عند بدء اللعبة"
|
msgstr "الملفُّ المفتوح أو الأمر المشغَّل عند بدء اللعبة"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:167
|
#: src/utils/create_details_window.py:202
|
||||||
msgid "Cancel"
|
msgid "Cancel"
|
||||||
msgstr "ألغِ"
|
msgstr "ألغِ"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:217
|
#: src/utils/create_details_window.py:259
|
||||||
#: src/utils/create_details_window.py:227
|
#: src/utils/create_details_window.py:269
|
||||||
#: src/utils/create_details_window.py:233
|
#: src/utils/create_details_window.py:275
|
||||||
msgid "Couldn't Add Game"
|
msgid "Couldn't Add Game"
|
||||||
msgstr "تعذَّرت إضافة اللعبة"
|
msgstr "تعذَّرت إضافة اللعبة"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:219
|
#: src/utils/create_details_window.py:261
|
||||||
#: src/utils/create_details_window.py:257
|
#: src/utils/create_details_window.py:299
|
||||||
#: src/utils/create_details_window.py:265
|
#: src/utils/create_details_window.py:307
|
||||||
msgid "Couldn't Apply Preferences"
|
msgid "Couldn't Apply Preferences"
|
||||||
msgstr "تعذَّر تطبيق التفضيلات"
|
msgstr "تعذَّر تطبيق التفضيلات"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:227
|
#: src/utils/create_details_window.py:269
|
||||||
#: src/utils/create_details_window.py:258
|
#: src/utils/create_details_window.py:300
|
||||||
msgid "Game title cannot be empty."
|
msgid "Game title cannot be empty."
|
||||||
msgstr "لا يجوز كون عنوان اللعبة فارغًا."
|
msgstr "لا يجوز كون عنوان اللعبة فارغًا."
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:233
|
#: src/utils/create_details_window.py:275
|
||||||
#: src/utils/create_details_window.py:266
|
#: src/utils/create_details_window.py:308
|
||||||
msgid "Executable cannot be empty."
|
msgid "Executable cannot be empty."
|
||||||
msgstr "لا يجوز كون ملفِّ التنفيذ فارغًا."
|
msgstr "لا يجوز كون ملفِّ التنفيذ فارغًا."
|
||||||
|
|
||||||
@@ -508,42 +567,123 @@ msgstr "لا يجوز كون ملفِّ التنفيذ فارغًا."
|
|||||||
msgid "Dismiss"
|
msgid "Dismiss"
|
||||||
msgstr "تجاهل"
|
msgstr "تجاهل"
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:88
|
#: src/utils/importer.py:42
|
||||||
msgid "The Heroic directory cannot be found."
|
|
||||||
msgstr "تعذَّر العثور على مجلَّد هِرُوِك."
|
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:90
|
|
||||||
msgid "Set Heroic Location"
|
|
||||||
msgstr "عيِّن موضع هِرُوِك"
|
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:251
|
|
||||||
msgid "No new games were found in the Heroic library."
|
|
||||||
msgstr "لم يُعثر على ألعاب جديدة في مكتبة هِرُوِك."
|
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:256 src/utils/heroic_parser.py:263
|
|
||||||
msgid "Heroic Games Imported"
|
|
||||||
msgstr "اُستوردت ألعاب هِرُوِك"
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:168
|
|
||||||
msgid "No new games were found in the Steam library."
|
|
||||||
msgstr "لم يُعثر على ألعاب جديدة في مكتبة ستيم."
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:176 src/utils/steam_parser.py:183
|
|
||||||
msgid "Steam Games Imported"
|
|
||||||
msgstr "اُستوردت ألعاب ستيم"
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:246
|
|
||||||
msgid "The Steam directory cannot be found."
|
|
||||||
msgstr "تعذَّر العثور على مجلَّد ستيم."
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:248
|
|
||||||
msgid "Set Steam Location"
|
|
||||||
msgstr "عيِّن موضع ستيم"
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:265
|
|
||||||
msgid "Importing Games…"
|
msgid "Importing Games…"
|
||||||
msgstr "تُستورد الألعاب…"
|
msgstr "تُستورد الألعاب…"
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:266
|
#: src/utils/importer.py:77
|
||||||
msgid "Talking to Steam"
|
msgid "Importing Covers…"
|
||||||
msgstr "يُتواصل مع ستيم"
|
msgstr "تُستورد الغُلُف…"
|
||||||
|
|
||||||
|
#: src/utils/importer.py:92
|
||||||
|
msgid "No new games were found on your system."
|
||||||
|
msgstr "لم يُعثر على ألعاب جديدة في نظامك."
|
||||||
|
|
||||||
|
#: src/utils/importer.py:100
|
||||||
|
msgid "Game Imported"
|
||||||
|
msgstr "اُستوردت اللعبة"
|
||||||
|
|
||||||
|
#: src/utils/importer.py:101
|
||||||
|
msgid "Successfully imported 1 game."
|
||||||
|
msgstr "اُستوردت لعبة بنجاح."
|
||||||
|
|
||||||
|
#: src/utils/importer.py:107
|
||||||
|
msgid "Games Imported"
|
||||||
|
msgstr "اُستوردت الألعاب"
|
||||||
|
|
||||||
|
#. The variable is the number of games
|
||||||
|
#: src/utils/importer.py:109
|
||||||
|
msgid "Successfully imported {} games."
|
||||||
|
msgstr "اُستوردت {} لعبة بنجاح."
|
||||||
|
|
||||||
|
#: src/utils/importer.py:120 src/utils/steamgriddb.py:113
|
||||||
|
msgid "Couldn't Connect to SteamGridDB"
|
||||||
|
msgstr "تعذَّر الاتصال ب SteamGridDB"
|
||||||
|
|
||||||
|
#: src/utils/importer.py:145
|
||||||
|
msgid ""
|
||||||
|
"Looks like you have multiple Steam libraries. Would you like to add them in "
|
||||||
|
"preferences?"
|
||||||
|
msgstr "يبدو أن عندك أكثر من مكتبة ستيم. أتريد إضافتهم في التفضيلات؟"
|
||||||
|
|
||||||
|
#~ msgid "Launch your games"
|
||||||
|
#~ msgstr "شغِّل ألعابك"
|
||||||
|
|
||||||
|
#, python-brace-format
|
||||||
|
#~ msgid "Last played: {last_played_date}"
|
||||||
|
#~ msgstr "لُعبت آخر مرَّة في: {last_played_date}"
|
||||||
|
|
||||||
|
#, python-brace-format
|
||||||
|
#~ msgid "Successfully imported {games_no} games."
|
||||||
|
#~ msgstr "اُستوردت {games_no} لعبة بنجاح."
|
||||||
|
|
||||||
|
#, python-brace-format
|
||||||
|
#~ msgid "C:\\path\\to\\{file_name}"
|
||||||
|
#~ msgstr "C:\\path\\to\\{file_name}"
|
||||||
|
|
||||||
|
#, python-brace-format
|
||||||
|
#~ msgid "/path/to/{file_name}"
|
||||||
|
#~ msgstr "/path/to/{file_name}"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "General"
|
||||||
|
#~ msgctxt "shortcuts window"
|
||||||
|
#~ msgid "General"
|
||||||
|
#~ msgstr "عام"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "Search"
|
||||||
|
#~ msgctxt "shortcuts window"
|
||||||
|
#~ msgid "Search"
|
||||||
|
#~ msgstr "ابحث"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "Undo"
|
||||||
|
#~ msgctxt "shortcuts window"
|
||||||
|
#~ msgid "Undo"
|
||||||
|
#~ msgstr "تراجع"
|
||||||
|
|
||||||
|
#~ msgid "First stable release"
|
||||||
|
#~ msgstr "أوَّل إصدار مستقرٍّ"
|
||||||
|
|
||||||
|
#~ msgctxt "shortcut window"
|
||||||
|
#~ msgid "General"
|
||||||
|
#~ msgstr "عام"
|
||||||
|
|
||||||
|
#~ msgctxt "shortcut window"
|
||||||
|
#~ msgid "Search"
|
||||||
|
#~ msgstr "ابحث"
|
||||||
|
|
||||||
|
#~ msgctxt "shortcut window"
|
||||||
|
#~ msgid "Undo"
|
||||||
|
#~ msgstr "تراجع"
|
||||||
|
|
||||||
|
#~ msgid "Couldn't Import Games"
|
||||||
|
#~ msgstr "تعذَّر استيراد الألعاب"
|
||||||
|
|
||||||
|
#~ msgid "The Bottles directory cannot be found."
|
||||||
|
#~ msgstr "تعذَّر العثور على مجلَّد بوتلز."
|
||||||
|
|
||||||
|
#~ msgid "Set Bottles Location"
|
||||||
|
#~ msgstr "عيِّن موضع بوتلز"
|
||||||
|
|
||||||
|
#~ msgid "No new games were found in the Bottles library."
|
||||||
|
#~ msgstr "لم يُعثر على ألعاب جديدة في مكتبة بوتلز."
|
||||||
|
|
||||||
|
#~ msgid "Bottles Games Imported"
|
||||||
|
#~ msgstr "اُستوردت ألعاب بوتلز"
|
||||||
|
|
||||||
|
#~ msgid "The Heroic directory cannot be found."
|
||||||
|
#~ msgstr "تعذَّر العثور على مجلَّد هِرُوِك."
|
||||||
|
|
||||||
|
#~ msgid "Heroic Games Imported"
|
||||||
|
#~ msgstr "اُستوردت ألعاب هِرُوِك"
|
||||||
|
|
||||||
|
#~ msgid "No new games were found in the Steam library."
|
||||||
|
#~ msgstr "لم يُعثر على ألعاب جديدة في مكتبة ستيم."
|
||||||
|
|
||||||
|
#~ msgid "The Steam directory cannot be found."
|
||||||
|
#~ msgstr "تعذَّر العثور على مجلَّد ستيم."
|
||||||
|
|
||||||
|
#~ msgid "Talking to Steam"
|
||||||
|
#~ msgstr "يُتواصل مع ستيم"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Cartridges\n"
|
"Project-Id-Version: Cartridges\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2023-03-26 11:51+0200\n"
|
"POT-Creation-Date: 2023-04-11 23:33+0200\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@@ -19,7 +19,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: data/hu.kramo.Cartridges.desktop.in:3
|
#: data/hu.kramo.Cartridges.desktop.in:3
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:29
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:29
|
||||||
#: src/main.py:115
|
#: src/main.py:119
|
||||||
msgid "Cartridges"
|
msgid "Cartridges"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -28,18 +28,16 @@ msgid "Game Launcher"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.desktop.in:5
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
msgid "Launch your games"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
msgid "Launch all your games"
|
msgid "Launch all your games"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
||||||
msgid ""
|
msgid ""
|
||||||
"Cartridges is a simple game launcher. It has support for importing your "
|
"Cartridges is a simple game launcher for all of your games. It has support "
|
||||||
"games from Steam, Heroic and Bottles with organizational features such as "
|
"for importing games from Steam, Lutris, Heroic and more with no login "
|
||||||
"hiding and sorting by date added or last played."
|
"necessary. You can sort and hide games or download cover art from "
|
||||||
|
"SteamGridDB."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:22
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:22
|
||||||
@@ -47,7 +45,7 @@ msgid "Library"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:26
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:26
|
||||||
#: src/utils/create_details_window.py:48
|
#: src/utils/create_details_window.py:87
|
||||||
msgid "Edit Game Details"
|
msgid "Edit Game Details"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -55,17 +53,238 @@ msgstr ""
|
|||||||
msgid "Game Details"
|
msgid "Game Details"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:363
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:402
|
||||||
#: src/utils/steam_parser.py:170
|
#: src/utils/importer.py:94 src/utils/importer.py:123 src/utils/importer.py:148
|
||||||
|
#: src/utils/steamgriddb.py:116
|
||||||
msgid "Preferences"
|
msgid "Preferences"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:41
|
#: data/gtk/game.blp:67 src/utils/create_details_window.py:129
|
||||||
msgid "First stable release"
|
msgid "Title"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/window.blp:6 src/utils/bottles_parser.py:140
|
#: data/gtk/game.blp:89 data/gtk/game.blp:108 data/gtk/window.blp:170
|
||||||
#: src/utils/heroic_parser.py:250 src/utils/steam_parser.py:167
|
msgid "Edit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:94 src/window.py:286
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:99 data/gtk/game.blp:118 data/gtk/preferences.blp:56
|
||||||
|
#: data/gtk/window.blp:186
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:113 src/window.py:283
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
|
||||||
|
msgid "General"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:205 data/gtk/window.blp:249
|
||||||
|
#: data/gtk/window.blp:312
|
||||||
|
msgid "Search"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34 src/main.py:186 src/main.py:242
|
||||||
|
#: src/preferences.py:133
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgid "Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgid "Import games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:58
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:63
|
||||||
|
msgid "Remove game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:235
|
||||||
|
msgid "Behavior"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:16
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Cover Image Launches Game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26
|
||||||
|
msgid "Swaps the behavior of the cover image and the play button"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:36 src/utils/create_details_window.py:101
|
||||||
|
msgid "Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:39
|
||||||
|
msgid "High Quality Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:40
|
||||||
|
msgid "Save game covers losslessly at the cost of storage"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:50
|
||||||
|
msgid "Danger Zone"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:53
|
||||||
|
msgid "Remove All Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:69 data/gtk/window.blp:427
|
||||||
|
msgid "Import"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:73
|
||||||
|
msgid "Sources"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:76
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:80
|
||||||
|
msgid "Steam Install Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:81 data/gtk/preferences.blp:119
|
||||||
|
#: data/gtk/preferences.blp:153 data/gtk/preferences.blp:195
|
||||||
|
#: data/gtk/preferences.blp:210
|
||||||
|
msgid "Directory to use when importing games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:89 src/utils/importer.py:143
|
||||||
|
msgid "Extra Steam Libraries"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:90
|
||||||
|
msgid "Select other directories where you have Steam games installed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:96
|
||||||
|
msgid "Clear"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:114
|
||||||
|
msgid "Lutris"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:118
|
||||||
|
msgid "Lutris Install Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:128
|
||||||
|
msgid "Lutris Cache Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:129
|
||||||
|
msgid "Directory to use when importing game covers"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:138
|
||||||
|
msgid "Import Steam Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:148
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:152
|
||||||
|
msgid "Heroic Install Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:162
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:171
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:180
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:190
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:194
|
||||||
|
msgid "Bottles Install Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:205
|
||||||
|
msgid "itch"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:209
|
||||||
|
msgid "itch Install Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:223
|
||||||
|
msgid "SteamGridDB"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:227
|
||||||
|
msgid "Authentication"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:230
|
||||||
|
msgid "API Key"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:238
|
||||||
|
msgid "Use SteamGridDB"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:239
|
||||||
|
msgid "Download images when adding or importing games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:248
|
||||||
|
msgid "Prefer Over Official Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:257
|
||||||
|
msgid "Prefer Animated Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 src/utils/importer.py:91
|
||||||
msgid "No Games Found"
|
msgid "No Games Found"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -89,403 +308,242 @@ msgstr ""
|
|||||||
msgid "Games you hide will appear here."
|
msgid "Games you hide will appear here."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/window.blp:44 data/gtk/window.blp:254
|
#: data/gtk/window.blp:44 data/gtk/window.blp:293
|
||||||
msgid "Back"
|
msgid "Back"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/window.blp:92
|
#: data/gtk/window.blp:100
|
||||||
msgid "Game Title"
|
msgid "Game Title"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/window.blp:148 src/game.py:175
|
#: data/gtk/window.blp:151 src/game.py:158
|
||||||
msgid "Play"
|
msgid "Play"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/window.blp:196 data/gtk/window.blp:382
|
#: data/gtk/window.blp:235 data/gtk/window.blp:421
|
||||||
msgid "Add Game"
|
msgid "Add Game"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/window.blp:203 data/gtk/window.blp:266
|
#: data/gtk/window.blp:242 data/gtk/window.blp:305
|
||||||
msgid "Main Menu"
|
msgid "Main Menu"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/window.blp:210 data/gtk/window.blp:273
|
#: data/gtk/window.blp:300
|
||||||
msgid "Search"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:261
|
|
||||||
msgid "Hidden Games"
|
msgid "Hidden Games"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/window.blp:321
|
#: data/gtk/window.blp:360
|
||||||
msgid "Sort"
|
msgid "Sort"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/window.blp:324
|
#: data/gtk/window.blp:363
|
||||||
msgid "A-Z"
|
msgid "A-Z"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/window.blp:330
|
#: data/gtk/window.blp:369
|
||||||
msgid "Z-A"
|
msgid "Z-A"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/window.blp:336
|
#: data/gtk/window.blp:375
|
||||||
msgid "Newest"
|
msgid "Newest"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/window.blp:342
|
#: data/gtk/window.blp:381
|
||||||
msgid "Oldest"
|
msgid "Oldest"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/window.blp:348
|
#: data/gtk/window.blp:387
|
||||||
msgid "Last Played"
|
msgid "Last Played"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/window.blp:355
|
#: data/gtk/window.blp:394
|
||||||
msgid "Show Hidden"
|
msgid "Show Hidden"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/window.blp:368
|
#: data/gtk/window.blp:407
|
||||||
msgid "Keyboard Shortcuts"
|
msgid "Keyboard Shortcuts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/window.blp:373
|
#: data/gtk/window.blp:412
|
||||||
msgid "About Cartridges"
|
msgid "About Cartridges"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/window.blp:388
|
|
||||||
msgid "Import from"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:390 data/gtk/preferences.blp:40
|
|
||||||
msgid "Steam"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:395 data/gtk/preferences.blp:78
|
|
||||||
msgid "Heroic"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:400 data/gtk/preferences.blp:116
|
|
||||||
msgid "Bottles"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/game.blp:60 src/utils/create_details_window.py:94
|
|
||||||
msgid "Title"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/game.blp:82 data/gtk/game.blp:101
|
|
||||||
msgid "Edit"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/game.blp:87
|
|
||||||
msgid "Hide"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/game.blp:92 data/gtk/game.blp:111
|
|
||||||
msgid "Remove"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/game.blp:106
|
|
||||||
msgid "Unhide"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:11
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "General"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:14
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Quit"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:19
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Search"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:24
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Show preferences"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:29
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Shortcuts"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:34
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Undo"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:39
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Open menu"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:45
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Games"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:48
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Add new game"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:53
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Show hidden games"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:10
|
|
||||||
msgid "General"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:13
|
|
||||||
msgid "Exit After Launching Games"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:21
|
|
||||||
msgid "Cover Image Launches Game"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:22
|
|
||||||
msgid "Swaps the behavior of the cover image and the play button"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:30
|
|
||||||
msgid "High Quality Images"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:31
|
|
||||||
msgid "Save game covers losslessly at the cost of storage"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:43
|
|
||||||
msgid "Steam Install Location"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:44 data/gtk/preferences.blp:82
|
|
||||||
#: data/gtk/preferences.blp:120
|
|
||||||
msgid "Directory to use when importing games"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:52
|
|
||||||
msgid "Extra Steam Libraries"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:53
|
|
||||||
msgid "Select other directories where you have Steam games installed"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:60
|
|
||||||
msgid "Clear"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:81
|
|
||||||
msgid "Heroic Install Location"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:91
|
|
||||||
msgid "Import Epic Games"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:99
|
|
||||||
msgid "Import GOG Games"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:107
|
|
||||||
msgid "Import Sideloaded Games"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:119
|
|
||||||
msgid "Bottles Install Location"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. Translators: Replace this with your name for it to show up in the about window
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
#: src/main.py:130
|
#: src/main.py:137
|
||||||
msgid "translator_credits"
|
msgid "translator_credits"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/main.py:193
|
#. The variable is the title of the game
|
||||||
#, python-brace-format
|
#: src/main.py:164
|
||||||
msgid "{title} removed"
|
msgid "{} launched"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/main.py:194
|
#. The variable is the title of the game
|
||||||
msgid "Undo"
|
#: src/main.py:182
|
||||||
|
msgid "{} hidden"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/window.py:234
|
#. The variable is the title of the game
|
||||||
|
#: src/main.py:185
|
||||||
|
msgid "{} unhidden"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/main.py:241
|
||||||
|
msgid "{} removed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/window.py:262
|
||||||
msgid "Today"
|
msgid "Today"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/window.py:236
|
#: src/window.py:264
|
||||||
msgid "Yesterday"
|
msgid "Yesterday"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. The variable is the date when the game was added
|
#. The variable is the date when the game was added
|
||||||
#: src/window.py:270
|
#: src/window.py:310
|
||||||
#, python-brace-format
|
msgid "Added: {}"
|
||||||
msgid "Added: {date}"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/window.py:275
|
#: src/window.py:315
|
||||||
msgid "Never"
|
msgid "Never"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. The variable is the date when the game was last played
|
#. The variable is the date when the game was last played
|
||||||
#: src/window.py:279
|
#: src/window.py:319
|
||||||
#, python-brace-format
|
msgid "Last played: {}"
|
||||||
msgid "Last played: {last_played_date}"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/game.py:173
|
#: src/game.py:156
|
||||||
msgid "Details"
|
msgid "Details"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:80 src/utils/heroic_parser.py:87
|
#: src/preferences.py:54
|
||||||
#: src/utils/steam_parser.py:245
|
msgid "Installation Not Found"
|
||||||
msgid "Couldn't Import Games"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:81
|
#. The variable is the name of the game launcher
|
||||||
msgid "The Bottles directory cannot be found."
|
#: src/preferences.py:56
|
||||||
|
msgid "Select the {} configuration directory."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:83
|
#. The variable is the name of the game launcher
|
||||||
msgid "Set Bottles Location"
|
#: src/preferences.py:59
|
||||||
|
msgid "Select the {} data directory."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:141
|
#: src/preferences.py:61 src/preferences.py:240
|
||||||
msgid "No new games were found in the Bottles library."
|
msgid "Set Location"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:146 src/utils/bottles_parser.py:153
|
#: src/preferences.py:132
|
||||||
msgid "Bottles Games Imported"
|
msgid "All games removed"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:147 src/utils/heroic_parser.py:257
|
#: src/preferences.py:237
|
||||||
#: src/utils/steam_parser.py:177
|
msgid "Cache Not Found"
|
||||||
msgid "Successfully imported 1 game."
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. The variable is the number of games
|
#: src/preferences.py:238
|
||||||
#: src/utils/bottles_parser.py:155 src/utils/heroic_parser.py:265
|
msgid "Select the Lutris cache directory."
|
||||||
#: src/utils/steam_parser.py:185
|
|
||||||
#, python-brace-format
|
|
||||||
msgid "Successfully imported {games_no} games."
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:41
|
#: src/preferences.py:344
|
||||||
|
msgid ""
|
||||||
|
"An API key is required to use SteamGridDB. You can generate one {}here{}."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:81
|
||||||
msgid "Add New Game"
|
msgid "Add New Game"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:46
|
#: src/utils/create_details_window.py:85
|
||||||
msgid "Confirm"
|
msgid "Confirm"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:57
|
#: src/utils/create_details_window.py:96
|
||||||
msgid "Apply"
|
msgid "Apply"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:59
|
#: src/utils/create_details_window.py:130
|
||||||
msgid "Images"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:95
|
|
||||||
msgid "The title of the game"
|
msgid "The title of the game"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:100
|
#: src/utils/create_details_window.py:135
|
||||||
msgid "Developer"
|
msgid "Developer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:101
|
#: src/utils/create_details_window.py:136
|
||||||
msgid "The developer or publisher (optional)"
|
msgid "The developer or publisher (optional)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. Translate this string as you would translate "file"
|
#. Translate this string as you would translate "file"
|
||||||
#: src/utils/create_details_window.py:112
|
#: src/utils/create_details_window.py:147
|
||||||
msgid "file.txt"
|
msgid "file.txt"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. As in software
|
#. As in software
|
||||||
#: src/utils/create_details_window.py:114
|
#: src/utils/create_details_window.py:149
|
||||||
msgid "program"
|
msgid "program"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. Translate this string as you would translate "path to {exe_name}"
|
#. Translate this string as you would translate "path to {}"
|
||||||
#: src/utils/create_details_window.py:119
|
#: src/utils/create_details_window.py:154
|
||||||
#, python-brace-format
|
#: src/utils/create_details_window.py:156
|
||||||
msgid "C:\\path\\to\\{exe_name}"
|
msgid "C:\\path\\to\\{}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. Translate this string as you would translate "path to {file_name}"
|
#. Translate this string as you would translate "path to {}"
|
||||||
#: src/utils/create_details_window.py:121
|
#: src/utils/create_details_window.py:160
|
||||||
#, python-brace-format
|
#: src/utils/create_details_window.py:162
|
||||||
msgid "C:\\path\\to\\{file_name}"
|
msgid "/path/to/{}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. Translate this string as you would translate "path to {exe_name}"
|
#: src/utils/create_details_window.py:166
|
||||||
#: src/utils/create_details_window.py:125
|
|
||||||
#, python-brace-format
|
|
||||||
msgid "/path/to/{exe_name}"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. Translate this string as you would translate "path to {file_name}"
|
|
||||||
#: src/utils/create_details_window.py:127
|
|
||||||
#, python-brace-format
|
|
||||||
msgid "/path/to/{file_name}"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:131
|
|
||||||
#, python-brace-format
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"To launch the executable \"{exe_name}\", use the command:\n"
|
"To launch the executable \"{}\", use the command:\n"
|
||||||
"\n"
|
"\n"
|
||||||
"<tt>\"{exe_path}\"</tt>\n"
|
"<tt>\"{}\"</tt>\n"
|
||||||
"\n"
|
"\n"
|
||||||
"To open the file \"{file_name}\" with the default application, use:\n"
|
"To open the file \"{}\" with the default application, use:\n"
|
||||||
"\n"
|
"\n"
|
||||||
"<tt>{command} \"{file_path}\"</tt>\n"
|
"<tt>{} \"{}\"</tt>\n"
|
||||||
"\n"
|
"\n"
|
||||||
"If the path contains spaces, make sure to wrap it in double quotes!"
|
"If the path contains spaces, make sure to wrap it in double quotes!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:154
|
#: src/utils/create_details_window.py:189
|
||||||
msgid "Executable"
|
msgid "Executable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:155
|
#: src/utils/create_details_window.py:190
|
||||||
msgid "File to open or command to run when launching the game"
|
msgid "File to open or command to run when launching the game"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:167
|
#: src/utils/create_details_window.py:202
|
||||||
msgid "Cancel"
|
msgid "Cancel"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:217
|
#: src/utils/create_details_window.py:259
|
||||||
#: src/utils/create_details_window.py:227
|
#: src/utils/create_details_window.py:269
|
||||||
#: src/utils/create_details_window.py:233
|
#: src/utils/create_details_window.py:275
|
||||||
msgid "Couldn't Add Game"
|
msgid "Couldn't Add Game"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:219
|
#: src/utils/create_details_window.py:261
|
||||||
#: src/utils/create_details_window.py:257
|
#: src/utils/create_details_window.py:299
|
||||||
#: src/utils/create_details_window.py:265
|
#: src/utils/create_details_window.py:307
|
||||||
msgid "Couldn't Apply Preferences"
|
msgid "Couldn't Apply Preferences"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:227
|
#: src/utils/create_details_window.py:269
|
||||||
#: src/utils/create_details_window.py:258
|
#: src/utils/create_details_window.py:300
|
||||||
msgid "Game title cannot be empty."
|
msgid "Game title cannot be empty."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:233
|
#: src/utils/create_details_window.py:275
|
||||||
#: src/utils/create_details_window.py:266
|
#: src/utils/create_details_window.py:308
|
||||||
msgid "Executable cannot be empty."
|
msgid "Executable cannot be empty."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -493,42 +551,41 @@ msgstr ""
|
|||||||
msgid "Dismiss"
|
msgid "Dismiss"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:88
|
#: src/utils/importer.py:42
|
||||||
msgid "The Heroic directory cannot be found."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:90
|
|
||||||
msgid "Set Heroic Location"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:251
|
|
||||||
msgid "No new games were found in the Heroic library."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:256 src/utils/heroic_parser.py:263
|
|
||||||
msgid "Heroic Games Imported"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:168
|
|
||||||
msgid "No new games were found in the Steam library."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:176 src/utils/steam_parser.py:183
|
|
||||||
msgid "Steam Games Imported"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:246
|
|
||||||
msgid "The Steam directory cannot be found."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:248
|
|
||||||
msgid "Set Steam Location"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:265
|
|
||||||
msgid "Importing Games…"
|
msgid "Importing Games…"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:266
|
#: src/utils/importer.py:77
|
||||||
msgid "Talking to Steam"
|
msgid "Importing Covers…"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:92
|
||||||
|
msgid "No new games were found on your system."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:100
|
||||||
|
msgid "Game Imported"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:101
|
||||||
|
msgid "Successfully imported 1 game."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:107
|
||||||
|
msgid "Games Imported"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the number of games
|
||||||
|
#: src/utils/importer.py:109
|
||||||
|
msgid "Successfully imported {} games."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:120 src/utils/steamgriddb.py:113
|
||||||
|
msgid "Couldn't Connect to SteamGridDB"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:145
|
||||||
|
msgid ""
|
||||||
|
"Looks like you have multiple Steam libraries. Would you like to add them in "
|
||||||
|
"preferences?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
616
po/de.po
Normal file
@@ -0,0 +1,616 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR kramo
|
||||||
|
# This file is distributed under the same license as the Cartridges package.
|
||||||
|
# Jummit <jummit@web.de>, 2023.
|
||||||
|
# WebSnke <websnke@tutanota.com>, 2023.
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Cartridges\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2023-04-11 23:33+0200\n"
|
||||||
|
"PO-Revision-Date: 2023-04-08 20:49+0000\n"
|
||||||
|
"Last-Translator: Jummit <jummit@web.de>\n"
|
||||||
|
"Language-Team: German <https://hosted.weblate.org/projects/cartridges/"
|
||||||
|
"cartridges/de/>\n"
|
||||||
|
"Language: de\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||||
|
"X-Generator: Weblate 4.17-dev\n"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:3
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:29
|
||||||
|
#: src/main.py:119
|
||||||
|
msgid "Cartridges"
|
||||||
|
msgstr "Cartridges"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:4
|
||||||
|
msgid "Game Launcher"
|
||||||
|
msgstr "Spiele-Launcher"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
|
msgid "Launch all your games"
|
||||||
|
msgstr "Starte all deine Spiele"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
||||||
|
msgid ""
|
||||||
|
"Cartridges is a simple game launcher for all of your games. It has support "
|
||||||
|
"for importing games from Steam, Lutris, Heroic and more with no login "
|
||||||
|
"necessary. You can sort and hide games or download cover art from "
|
||||||
|
"SteamGridDB."
|
||||||
|
msgstr ""
|
||||||
|
"Cartridges ist ein einfacher Spiel-Launcher. Es unterstützt das Importieren "
|
||||||
|
"von Spielen aus Steam, Lutris, Heroic und mehr, keine Anmeldung "
|
||||||
|
"erforderlich. Du kannst sortieren, Spiele verstecken oder das Cover-Art aus "
|
||||||
|
"SteamGRID herunterladen."
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:22
|
||||||
|
msgid "Library"
|
||||||
|
msgstr "Bibliothek"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:26
|
||||||
|
#: src/utils/create_details_window.py:87
|
||||||
|
msgid "Edit Game Details"
|
||||||
|
msgstr "Spieldetails bearbeiten"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:30 data/gtk/window.blp:51
|
||||||
|
msgid "Game Details"
|
||||||
|
msgstr "Spieldetails"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:402
|
||||||
|
#: src/utils/importer.py:94 src/utils/importer.py:123 src/utils/importer.py:148
|
||||||
|
#: src/utils/steamgriddb.py:116
|
||||||
|
msgid "Preferences"
|
||||||
|
msgstr "Einstellungen"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:67 src/utils/create_details_window.py:129
|
||||||
|
msgid "Title"
|
||||||
|
msgstr "Titel"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:89 data/gtk/game.blp:108 data/gtk/window.blp:170
|
||||||
|
msgid "Edit"
|
||||||
|
msgstr "Bearbeiten"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:94 src/window.py:286
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr "Verstecken"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:99 data/gtk/game.blp:118 data/gtk/preferences.blp:56
|
||||||
|
#: data/gtk/window.blp:186
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr "Entfernen"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:113 src/window.py:283
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr "Unverstecken"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
|
||||||
|
msgid "General"
|
||||||
|
msgstr "Allgemein"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr "Beenden"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:205 data/gtk/window.blp:249
|
||||||
|
#: data/gtk/window.blp:312
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "Suchen"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr "Einstellungen anzeigen"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr "Kürzel"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34 src/main.py:186 src/main.py:242
|
||||||
|
#: src/preferences.py:133
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "Rückgängig"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr "Menü öffnen"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgid "Games"
|
||||||
|
msgstr "Spiele"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr "Neues Spiel hinzufügen"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgid "Import games"
|
||||||
|
msgstr "Spiele importieren"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:58
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr "Ausgeblendete Spiele anzeigen"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:63
|
||||||
|
msgid "Remove game"
|
||||||
|
msgstr "Spiel entfernen"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:235
|
||||||
|
msgid "Behavior"
|
||||||
|
msgstr "Verhalten"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:16
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr "Nach dem Starten von Spielen beenden"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Cover Image Launches Game"
|
||||||
|
msgstr "Coverbild Startet Spiel"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26
|
||||||
|
msgid "Swaps the behavior of the cover image and the play button"
|
||||||
|
msgstr "Tauscht das Verhalten des Covers und des Spielen-Knopfes"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:36 src/utils/create_details_window.py:101
|
||||||
|
msgid "Images"
|
||||||
|
msgstr "Bilder"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:39
|
||||||
|
msgid "High Quality Images"
|
||||||
|
msgstr "Hochaufgelöste Bilder"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:40
|
||||||
|
msgid "Save game covers losslessly at the cost of storage"
|
||||||
|
msgstr "Speichere Spielcovers verlustfrei auf Kosten des Speicherplatzes"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:50
|
||||||
|
msgid "Danger Zone"
|
||||||
|
msgstr "Gefahrenzone"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:53
|
||||||
|
msgid "Remove All Games"
|
||||||
|
msgstr "Alle Spiele entfernen"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:69 data/gtk/window.blp:427
|
||||||
|
msgid "Import"
|
||||||
|
msgstr "Importieren"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:73
|
||||||
|
msgid "Sources"
|
||||||
|
msgstr "Quellen"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:76
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr "Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:80
|
||||||
|
msgid "Steam Install Location"
|
||||||
|
msgstr "Steam-Installationsort"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:81 data/gtk/preferences.blp:119
|
||||||
|
#: data/gtk/preferences.blp:153 data/gtk/preferences.blp:195
|
||||||
|
#: data/gtk/preferences.blp:210
|
||||||
|
msgid "Directory to use when importing games"
|
||||||
|
msgstr "Verzeichnis, das beim Importieren von Spielen verwendet wird"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:89 src/utils/importer.py:143
|
||||||
|
msgid "Extra Steam Libraries"
|
||||||
|
msgstr "Extra Steam-Bibliotheken"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:90
|
||||||
|
msgid "Select other directories where you have Steam games installed"
|
||||||
|
msgstr "Wähle andere Verzeichnisse in denen du Steam-Spiele installiert hast"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:96
|
||||||
|
msgid "Clear"
|
||||||
|
msgstr "Löchen"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:114
|
||||||
|
msgid "Lutris"
|
||||||
|
msgstr "Lutris"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:118
|
||||||
|
msgid "Lutris Install Location"
|
||||||
|
msgstr "Lutris-Installationsort"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:128
|
||||||
|
msgid "Lutris Cache Location"
|
||||||
|
msgstr "Lutris-Cacheort"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:129
|
||||||
|
msgid "Directory to use when importing game covers"
|
||||||
|
msgstr "Verzeichnis für den Import von Spiel-Covern"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:138
|
||||||
|
msgid "Import Steam Games"
|
||||||
|
msgstr "Steam-Spiele importieren"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:148
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr "Heroic"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:152
|
||||||
|
msgid "Heroic Install Location"
|
||||||
|
msgstr "Heroic-Installationsort"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:162
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr "Epic Games importieren"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:171
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr "GOG-Spiele importieren"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:180
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr "Sideloaded-Spiele importieren"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:190
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr "Bottles"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:194
|
||||||
|
msgid "Bottles Install Location"
|
||||||
|
msgstr "Bottles-Installationsort"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:205
|
||||||
|
msgid "itch"
|
||||||
|
msgstr "itch"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:209
|
||||||
|
msgid "itch Install Location"
|
||||||
|
msgstr "itch-Installationsort"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:223
|
||||||
|
msgid "SteamGridDB"
|
||||||
|
msgstr "SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:227
|
||||||
|
msgid "Authentication"
|
||||||
|
msgstr "Authentifizierung"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:230
|
||||||
|
msgid "API Key"
|
||||||
|
msgstr "API-Schlüssel"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:238
|
||||||
|
msgid "Use SteamGridDB"
|
||||||
|
msgstr "SteamGridDB benutzen"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:239
|
||||||
|
msgid "Download images when adding or importing games"
|
||||||
|
msgstr "Lade Bilder herunter, wenn Spiele hinzugefügt oder importiert werden"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:248
|
||||||
|
msgid "Prefer Over Official Images"
|
||||||
|
msgstr "Über offizielien Images bevorzugen"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:257
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Prefer Over Official Images"
|
||||||
|
msgid "Prefer Animated Images"
|
||||||
|
msgstr "Über offizielien Images bevorzugen"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 src/utils/importer.py:91
|
||||||
|
msgid "No Games Found"
|
||||||
|
msgstr "Keine Spiele gefunden"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:7
|
||||||
|
msgid "Try a different search."
|
||||||
|
msgstr "Versuche eine andere Suche."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:14
|
||||||
|
msgid "No Games"
|
||||||
|
msgstr "Keine Spiele"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:15
|
||||||
|
msgid "Use the + button to add games."
|
||||||
|
msgstr "Benutze denn + Knopf um Spiele hinzuzufügen."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:22
|
||||||
|
msgid "No Hidden Games"
|
||||||
|
msgstr "Keine versteckten Spiele"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:23
|
||||||
|
msgid "Games you hide will appear here."
|
||||||
|
msgstr "Ausgeblendete Spiele, werden hier angezeigt."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:44 data/gtk/window.blp:293
|
||||||
|
msgid "Back"
|
||||||
|
msgstr "Zurück"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:100
|
||||||
|
msgid "Game Title"
|
||||||
|
msgstr "Spieltitel"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:151 src/game.py:158
|
||||||
|
msgid "Play"
|
||||||
|
msgstr "Spielen"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:235 data/gtk/window.blp:421
|
||||||
|
msgid "Add Game"
|
||||||
|
msgstr "Spiel hinzufügen"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:242 data/gtk/window.blp:305
|
||||||
|
msgid "Main Menu"
|
||||||
|
msgstr "Hauptmenü"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:300
|
||||||
|
msgid "Hidden Games"
|
||||||
|
msgstr "Ausgeblendete Spiele"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:360
|
||||||
|
msgid "Sort"
|
||||||
|
msgstr "Sortierung"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:363
|
||||||
|
msgid "A-Z"
|
||||||
|
msgstr "A-Z"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:369
|
||||||
|
msgid "Z-A"
|
||||||
|
msgstr "Z-A"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:375
|
||||||
|
msgid "Newest"
|
||||||
|
msgstr "Neuestes"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:381
|
||||||
|
msgid "Oldest"
|
||||||
|
msgstr "Älteste"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:387
|
||||||
|
msgid "Last Played"
|
||||||
|
msgstr "Zuletzt gespielt"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:394
|
||||||
|
msgid "Show Hidden"
|
||||||
|
msgstr "Ausgeblendete anzeigen"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:407
|
||||||
|
msgid "Keyboard Shortcuts"
|
||||||
|
msgstr "Tastaturkürzel"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:412
|
||||||
|
msgid "About Cartridges"
|
||||||
|
msgstr "Über Cartridges"
|
||||||
|
|
||||||
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
|
#: src/main.py:137
|
||||||
|
msgid "translator_credits"
|
||||||
|
msgstr "Feliks Weber"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/main.py:164
|
||||||
|
msgid "{} launched"
|
||||||
|
msgstr "{} gestartet"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/main.py:182
|
||||||
|
msgid "{} hidden"
|
||||||
|
msgstr "{} versteckt"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/main.py:185
|
||||||
|
msgid "{} unhidden"
|
||||||
|
msgstr "{} unversteckt"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/main.py:241
|
||||||
|
msgid "{} removed"
|
||||||
|
msgstr "{} entfernt"
|
||||||
|
|
||||||
|
#: src/window.py:262
|
||||||
|
msgid "Today"
|
||||||
|
msgstr "Heute"
|
||||||
|
|
||||||
|
#: src/window.py:264
|
||||||
|
msgid "Yesterday"
|
||||||
|
msgstr "Gestern"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was added
|
||||||
|
#: src/window.py:310
|
||||||
|
msgid "Added: {}"
|
||||||
|
msgstr "Hinzugefügt: {}"
|
||||||
|
|
||||||
|
#: src/window.py:315
|
||||||
|
msgid "Never"
|
||||||
|
msgstr "Nie"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was last played
|
||||||
|
#: src/window.py:319
|
||||||
|
msgid "Last played: {}"
|
||||||
|
msgstr "Zuletzt gespielt: {}"
|
||||||
|
|
||||||
|
#: src/game.py:156
|
||||||
|
msgid "Details"
|
||||||
|
msgstr "Details"
|
||||||
|
|
||||||
|
#: src/preferences.py:54
|
||||||
|
msgid "Installation Not Found"
|
||||||
|
msgstr "Installation nicht gefunden"
|
||||||
|
|
||||||
|
#. The variable is the name of the game launcher
|
||||||
|
#: src/preferences.py:56
|
||||||
|
msgid "Select the {} configuration directory."
|
||||||
|
msgstr "Wähle das Konfigurationsverzeichnis von {} aus."
|
||||||
|
|
||||||
|
#. The variable is the name of the game launcher
|
||||||
|
#: src/preferences.py:59
|
||||||
|
msgid "Select the {} data directory."
|
||||||
|
msgstr "Wähle das Datenverzeichnis von {} aus."
|
||||||
|
|
||||||
|
#: src/preferences.py:61 src/preferences.py:240
|
||||||
|
msgid "Set Location"
|
||||||
|
msgstr "Ort festlegen"
|
||||||
|
|
||||||
|
#: src/preferences.py:132
|
||||||
|
msgid "All games removed"
|
||||||
|
msgstr "Alle Spiele entfernt"
|
||||||
|
|
||||||
|
#: src/preferences.py:237
|
||||||
|
msgid "Cache Not Found"
|
||||||
|
msgstr "Cache nicht gefunden"
|
||||||
|
|
||||||
|
#: src/preferences.py:238
|
||||||
|
msgid "Select the Lutris cache directory."
|
||||||
|
msgstr "Wähle das Lutris-Cache-Verzeichnis aus."
|
||||||
|
|
||||||
|
#: src/preferences.py:344
|
||||||
|
msgid ""
|
||||||
|
"An API key is required to use SteamGridDB. You can generate one {}here{}."
|
||||||
|
msgstr ""
|
||||||
|
"Für die Nutzung von SteamGridDB ist ein API-Schlüssel erforderlich. Sie "
|
||||||
|
"können ihn {}hier{} generieren."
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:81
|
||||||
|
msgid "Add New Game"
|
||||||
|
msgstr "Neues Spiel hinzufügen"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:85
|
||||||
|
msgid "Confirm"
|
||||||
|
msgstr "Bestätigen"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:96
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr "Anwenden"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:130
|
||||||
|
msgid "The title of the game"
|
||||||
|
msgstr "Der Titel des Spiels"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:135
|
||||||
|
msgid "Developer"
|
||||||
|
msgstr "Entwickler"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:136
|
||||||
|
msgid "The developer or publisher (optional)"
|
||||||
|
msgstr "Der Entwickler oder Verlag (optional)"
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "file"
|
||||||
|
#: src/utils/create_details_window.py:147
|
||||||
|
msgid "file.txt"
|
||||||
|
msgstr "datei.txt"
|
||||||
|
|
||||||
|
#. As in software
|
||||||
|
#: src/utils/create_details_window.py:149
|
||||||
|
msgid "program"
|
||||||
|
msgstr "Programm"
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "path to {}"
|
||||||
|
#: src/utils/create_details_window.py:154
|
||||||
|
#: src/utils/create_details_window.py:156
|
||||||
|
msgid "C:\\path\\to\\{}"
|
||||||
|
msgstr "C:\\pfad\\zu\\{}"
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "path to {}"
|
||||||
|
#: src/utils/create_details_window.py:160
|
||||||
|
#: src/utils/create_details_window.py:162
|
||||||
|
msgid "/path/to/{}"
|
||||||
|
msgstr "/pfad/zu/{}"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:166
|
||||||
|
msgid ""
|
||||||
|
"To launch the executable \"{}\", use the command:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>\"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"To open the file \"{}\" with the default application, use:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>{} \"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"If the path contains spaces, make sure to wrap it in double quotes!"
|
||||||
|
msgstr ""
|
||||||
|
"Verwende diesen Kommando um die ausführbare Datei \"{}\" zu starten:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>\"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"Um die Datei \"{}\" mit der Standardanwendung zu öffnen, benutze:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>{} \"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"Falls der Pfad Leerzeichen enthält, stelle sicher ihn in doppelte "
|
||||||
|
"Anführungszeichen zu setzen!"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:189
|
||||||
|
msgid "Executable"
|
||||||
|
msgstr "Ausführbare Datei"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:190
|
||||||
|
msgid "File to open or command to run when launching the game"
|
||||||
|
msgstr "Datei zum Öffnen oder Befehl zum Starten des Spiels"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:202
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Abbrechen"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:259
|
||||||
|
#: src/utils/create_details_window.py:269
|
||||||
|
#: src/utils/create_details_window.py:275
|
||||||
|
msgid "Couldn't Add Game"
|
||||||
|
msgstr "Konnte Spiel nicht hinzufügen"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:261
|
||||||
|
#: src/utils/create_details_window.py:299
|
||||||
|
#: src/utils/create_details_window.py:307
|
||||||
|
msgid "Couldn't Apply Preferences"
|
||||||
|
msgstr "Einstellungen konnten nicht angewendet werden"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:269
|
||||||
|
#: src/utils/create_details_window.py:300
|
||||||
|
msgid "Game title cannot be empty."
|
||||||
|
msgstr "Spieltitel kann nicht leer sein."
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:275
|
||||||
|
#: src/utils/create_details_window.py:308
|
||||||
|
msgid "Executable cannot be empty."
|
||||||
|
msgstr "Ausführbare Datei darf nicht leer sein."
|
||||||
|
|
||||||
|
#: src/utils/create_dialog.py:25
|
||||||
|
msgid "Dismiss"
|
||||||
|
msgstr "Verstanden"
|
||||||
|
|
||||||
|
#: src/utils/importer.py:42
|
||||||
|
msgid "Importing Games…"
|
||||||
|
msgstr "Spiele werden importiert…"
|
||||||
|
|
||||||
|
#: src/utils/importer.py:77
|
||||||
|
msgid "Importing Covers…"
|
||||||
|
msgstr "Spielecover werden importiert…"
|
||||||
|
|
||||||
|
#: src/utils/importer.py:92
|
||||||
|
msgid "No new games were found on your system."
|
||||||
|
msgstr "Keine neuen Spiele auf deinem System gefunden."
|
||||||
|
|
||||||
|
#: src/utils/importer.py:100
|
||||||
|
msgid "Game Imported"
|
||||||
|
msgstr "Spiel Importiert"
|
||||||
|
|
||||||
|
#: src/utils/importer.py:101
|
||||||
|
msgid "Successfully imported 1 game."
|
||||||
|
msgstr "Erfolgreich 1 Spiel importiert."
|
||||||
|
|
||||||
|
#: src/utils/importer.py:107
|
||||||
|
msgid "Games Imported"
|
||||||
|
msgstr "Spiele importiert"
|
||||||
|
|
||||||
|
#. The variable is the number of games
|
||||||
|
#: src/utils/importer.py:109
|
||||||
|
msgid "Successfully imported {} games."
|
||||||
|
msgstr "Erfolgreich {} Spiele importiert."
|
||||||
|
|
||||||
|
#: src/utils/importer.py:120 src/utils/steamgriddb.py:113
|
||||||
|
msgid "Couldn't Connect to SteamGridDB"
|
||||||
|
msgstr "Verbindung zu SteamGridDB konnte nicht hergestellt werden"
|
||||||
|
|
||||||
|
#: src/utils/importer.py:145
|
||||||
|
msgid ""
|
||||||
|
"Looks like you have multiple Steam libraries. Would you like to add them in "
|
||||||
|
"preferences?"
|
||||||
|
msgstr ""
|
||||||
|
"Sieht aus als hättest du mehrere Steam-Bibliotheken. Möchtest du sie in den "
|
||||||
|
"Einstellungen hinzufügen?"
|
||||||
|
|
||||||
|
#~ msgid "Launch your games"
|
||||||
|
#~ msgstr "Starte deine Spiele"
|
||||||
808
po/es.po
@@ -3,12 +3,13 @@
|
|||||||
# This file is distributed under the same license as the cartridges package.
|
# This file is distributed under the same license as the cartridges package.
|
||||||
# Óscar Fernández Díaz <oscfdezdz@users.noreply.hosted.weblate.org>, 2023.
|
# Óscar Fernández Díaz <oscfdezdz@users.noreply.hosted.weblate.org>, 2023.
|
||||||
# gallegonovato <fran-carro@hotmail.es>, 2023.
|
# gallegonovato <fran-carro@hotmail.es>, 2023.
|
||||||
|
# kramo <contact@kramo.hu>, 2023.
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: cartridges\n"
|
"Project-Id-Version: cartridges\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2023-03-26 11:51+0200\n"
|
"POT-Creation-Date: 2023-04-11 23:33+0200\n"
|
||||||
"PO-Revision-Date: 2023-03-25 13:56+0000\n"
|
"PO-Revision-Date: 2023-04-14 12:29+0000\n"
|
||||||
"Last-Translator: gallegonovato <fran-carro@hotmail.es>\n"
|
"Last-Translator: gallegonovato <fran-carro@hotmail.es>\n"
|
||||||
"Language-Team: Spanish <https://hosted.weblate.org/projects/cartridges/"
|
"Language-Team: Spanish <https://hosted.weblate.org/projects/cartridges/"
|
||||||
"cartridges/es/>\n"
|
"cartridges/es/>\n"
|
||||||
@@ -21,7 +22,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: data/hu.kramo.Cartridges.desktop.in:3
|
#: data/hu.kramo.Cartridges.desktop.in:3
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:29
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:29
|
||||||
#: src/main.py:115
|
#: src/main.py:119
|
||||||
msgid "Cartridges"
|
msgid "Cartridges"
|
||||||
msgstr "Cartuchos"
|
msgstr "Cartuchos"
|
||||||
|
|
||||||
@@ -30,29 +31,28 @@ msgid "Game Launcher"
|
|||||||
msgstr "Lanzador de juegos"
|
msgstr "Lanzador de juegos"
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.desktop.in:5
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
msgid "Launch your games"
|
|
||||||
msgstr "Lance sus juegos"
|
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
msgid "Launch all your games"
|
msgid "Launch all your games"
|
||||||
msgstr "Lance todos sus juegos"
|
msgstr "Lance todos sus juegos"
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
||||||
msgid ""
|
msgid ""
|
||||||
"Cartridges is a simple game launcher. It has support for importing your "
|
"Cartridges is a simple game launcher for all of your games. It has support "
|
||||||
"games from Steam, Heroic and Bottles with organizational features such as "
|
"for importing games from Steam, Lutris, Heroic and more with no login "
|
||||||
"hiding and sorting by date added or last played."
|
"necessary. You can sort and hide games or download cover art from "
|
||||||
|
"SteamGridDB."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Cartuchos es un lanzador de juegos simple. Tiene soporte para importar sus "
|
"Cartridges es un lanzador simple para todos tus juegos. Admite la "
|
||||||
"juegos de Steam, Heroic y Bottles con características de organización como "
|
"importación de tus juegos de Steam, Lutris, Heroic y más sin necesidad de "
|
||||||
"ocultar y ordenar por fecha añadida o última vez jugado."
|
"una cuenta. Puedes ordenar y ocultar juegos, o descargar carátulas de "
|
||||||
|
"SteamGridDB."
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:22
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:22
|
||||||
msgid "Library"
|
msgid "Library"
|
||||||
msgstr "Biblioteca"
|
msgstr "Biblioteca"
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:26
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:26
|
||||||
#: src/utils/create_details_window.py:48
|
#: src/utils/create_details_window.py:87
|
||||||
msgid "Edit Game Details"
|
msgid "Edit Game Details"
|
||||||
msgstr "Editar detalles del juego"
|
msgstr "Editar detalles del juego"
|
||||||
|
|
||||||
@@ -60,17 +60,239 @@ msgstr "Editar detalles del juego"
|
|||||||
msgid "Game Details"
|
msgid "Game Details"
|
||||||
msgstr "Detalles del juego"
|
msgstr "Detalles del juego"
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:363
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:402
|
||||||
#: src/utils/steam_parser.py:170
|
#: src/utils/importer.py:94 src/utils/importer.py:123 src/utils/importer.py:148
|
||||||
|
#: src/utils/steamgriddb.py:116
|
||||||
msgid "Preferences"
|
msgid "Preferences"
|
||||||
msgstr "Preferencias"
|
msgstr "Preferencias"
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:41
|
#: data/gtk/game.blp:67 src/utils/create_details_window.py:129
|
||||||
msgid "First stable release"
|
msgid "Title"
|
||||||
msgstr "Primera versión estable"
|
msgstr "Título"
|
||||||
|
|
||||||
#: data/gtk/window.blp:6 src/utils/bottles_parser.py:140
|
#: data/gtk/game.blp:89 data/gtk/game.blp:108 data/gtk/window.blp:170
|
||||||
#: src/utils/heroic_parser.py:250 src/utils/steam_parser.py:167
|
msgid "Edit"
|
||||||
|
msgstr "Editar"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:94 src/window.py:286
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr "Ocultar"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:99 data/gtk/game.blp:118 data/gtk/preferences.blp:56
|
||||||
|
#: data/gtk/window.blp:186
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr "Eliminar"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:113 src/window.py:283
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr "Mostrar"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
|
||||||
|
msgid "General"
|
||||||
|
msgstr "General"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr "Salir"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:205 data/gtk/window.blp:249
|
||||||
|
#: data/gtk/window.blp:312
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "Buscar"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr "Mostrar preferencias"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr "Atajos"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34 src/main.py:186 src/main.py:242
|
||||||
|
#: src/preferences.py:133
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "Deshacer"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr "Abrir menú"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgid "Games"
|
||||||
|
msgstr "Juegos"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr "Añadir juego nuevo"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgid "Import games"
|
||||||
|
msgstr "Importar juegos"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:58
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr "Mostrar juegos ocultos"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:63
|
||||||
|
msgid "Remove game"
|
||||||
|
msgstr "Eliminar juego"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:235
|
||||||
|
msgid "Behavior"
|
||||||
|
msgstr "Conducta"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:16
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr "Salir después de iniciar juegos"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Cover Image Launches Game"
|
||||||
|
msgstr "La imagen de portada lanza el juego"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26
|
||||||
|
msgid "Swaps the behavior of the cover image and the play button"
|
||||||
|
msgstr ""
|
||||||
|
"Cambia el comportamiento de la imagen de portada y del botón de reproducción"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:36 src/utils/create_details_window.py:101
|
||||||
|
msgid "Images"
|
||||||
|
msgstr "Imágenes"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:39
|
||||||
|
msgid "High Quality Images"
|
||||||
|
msgstr "Imágenes de alta calidad"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:40
|
||||||
|
msgid "Save game covers losslessly at the cost of storage"
|
||||||
|
msgstr "Guarda las partidas sin pérdidas a costa del almacenamiento"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:50
|
||||||
|
msgid "Danger Zone"
|
||||||
|
msgstr "Zona peligrosa"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:53
|
||||||
|
msgid "Remove All Games"
|
||||||
|
msgstr "Quitar todos los juegos"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:69 data/gtk/window.blp:427
|
||||||
|
msgid "Import"
|
||||||
|
msgstr "Importar"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:73
|
||||||
|
msgid "Sources"
|
||||||
|
msgstr "Fuentes"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:76
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr "Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:80
|
||||||
|
msgid "Steam Install Location"
|
||||||
|
msgstr "Ubicación de la instalación de Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:81 data/gtk/preferences.blp:119
|
||||||
|
#: data/gtk/preferences.blp:153 data/gtk/preferences.blp:195
|
||||||
|
#: data/gtk/preferences.blp:210
|
||||||
|
msgid "Directory to use when importing games"
|
||||||
|
msgstr "Directorio a usar para importar juegos"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:89 src/utils/importer.py:143
|
||||||
|
msgid "Extra Steam Libraries"
|
||||||
|
msgstr "Bibliotecas Steam adicionales"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:90
|
||||||
|
msgid "Select other directories where you have Steam games installed"
|
||||||
|
msgstr "Seleccione otros directorios donde tenga instalados juegos de Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:96
|
||||||
|
msgid "Clear"
|
||||||
|
msgstr "Limpiar"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:114
|
||||||
|
msgid "Lutris"
|
||||||
|
msgstr "Lutris"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:118
|
||||||
|
msgid "Lutris Install Location"
|
||||||
|
msgstr "Ubicación de instalación de Lutris"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:128
|
||||||
|
msgid "Lutris Cache Location"
|
||||||
|
msgstr "Ubicación de la caché de Lutris"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:129
|
||||||
|
msgid "Directory to use when importing game covers"
|
||||||
|
msgstr "Directorio para usar al importar las carátulas de los juegos"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:138
|
||||||
|
msgid "Import Steam Games"
|
||||||
|
msgstr "Importar juegos de Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:148
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr "Heroic"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:152
|
||||||
|
msgid "Heroic Install Location"
|
||||||
|
msgstr "Ubicación de la instalación de Heroic"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:162
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr "Importar juegos de Epic"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:171
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr "Importar juegos de GOG"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:180
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr "Importar juegos descargados"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:190
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr "Bottles"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:194
|
||||||
|
msgid "Bottles Install Location"
|
||||||
|
msgstr "Ubicación de instalación de Bottles"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:205
|
||||||
|
msgid "itch"
|
||||||
|
msgstr "itch"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:209
|
||||||
|
msgid "itch Install Location"
|
||||||
|
msgstr "Ubicación de la instalación de itch"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:223
|
||||||
|
msgid "SteamGridDB"
|
||||||
|
msgstr "SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:227
|
||||||
|
msgid "Authentication"
|
||||||
|
msgstr "Autentificación"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:230
|
||||||
|
msgid "API Key"
|
||||||
|
msgstr "Código API"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:238
|
||||||
|
msgid "Use SteamGridDB"
|
||||||
|
msgstr "Utiliza SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:239
|
||||||
|
msgid "Download images when adding or importing games"
|
||||||
|
msgstr "Descargar las imágenes al añadir o importar juegos"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:248
|
||||||
|
msgid "Prefer Over Official Images"
|
||||||
|
msgstr "Preferir las imágenes oficiales"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:257
|
||||||
|
msgid "Prefer Animated Images"
|
||||||
|
msgstr "Prefiero las imágenes animadas"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 src/utils/importer.py:91
|
||||||
msgid "No Games Found"
|
msgid "No Games Found"
|
||||||
msgstr "No se han encontrado juegos"
|
msgstr "No se han encontrado juegos"
|
||||||
|
|
||||||
@@ -94,414 +316,253 @@ msgstr "No hay juegos ocultos"
|
|||||||
msgid "Games you hide will appear here."
|
msgid "Games you hide will appear here."
|
||||||
msgstr "Los juegos que oculte aparecerán aquí."
|
msgstr "Los juegos que oculte aparecerán aquí."
|
||||||
|
|
||||||
#: data/gtk/window.blp:44 data/gtk/window.blp:254
|
#: data/gtk/window.blp:44 data/gtk/window.blp:293
|
||||||
msgid "Back"
|
msgid "Back"
|
||||||
msgstr "Volver"
|
msgstr "Volver"
|
||||||
|
|
||||||
#: data/gtk/window.blp:92
|
#: data/gtk/window.blp:100
|
||||||
msgid "Game Title"
|
msgid "Game Title"
|
||||||
msgstr "Título del juego"
|
msgstr "Título del juego"
|
||||||
|
|
||||||
#: data/gtk/window.blp:148 src/game.py:175
|
#: data/gtk/window.blp:151 src/game.py:158
|
||||||
msgid "Play"
|
msgid "Play"
|
||||||
msgstr "Jugar"
|
msgstr "Jugar"
|
||||||
|
|
||||||
#: data/gtk/window.blp:196 data/gtk/window.blp:382
|
#: data/gtk/window.blp:235 data/gtk/window.blp:421
|
||||||
msgid "Add Game"
|
msgid "Add Game"
|
||||||
msgstr "Añadir juego"
|
msgstr "Añadir juego"
|
||||||
|
|
||||||
#: data/gtk/window.blp:203 data/gtk/window.blp:266
|
#: data/gtk/window.blp:242 data/gtk/window.blp:305
|
||||||
msgid "Main Menu"
|
msgid "Main Menu"
|
||||||
msgstr "Menú principal"
|
msgstr "Menú principal"
|
||||||
|
|
||||||
#: data/gtk/window.blp:210 data/gtk/window.blp:273
|
#: data/gtk/window.blp:300
|
||||||
msgid "Search"
|
|
||||||
msgstr "Buscar"
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:261
|
|
||||||
msgid "Hidden Games"
|
msgid "Hidden Games"
|
||||||
msgstr "Juegos ocultos"
|
msgstr "Juegos ocultos"
|
||||||
|
|
||||||
#: data/gtk/window.blp:321
|
#: data/gtk/window.blp:360
|
||||||
msgid "Sort"
|
msgid "Sort"
|
||||||
msgstr "Ordenar"
|
msgstr "Ordenar"
|
||||||
|
|
||||||
#: data/gtk/window.blp:324
|
#: data/gtk/window.blp:363
|
||||||
msgid "A-Z"
|
msgid "A-Z"
|
||||||
msgstr "A-Z"
|
msgstr "A-Z"
|
||||||
|
|
||||||
#: data/gtk/window.blp:330
|
#: data/gtk/window.blp:369
|
||||||
msgid "Z-A"
|
msgid "Z-A"
|
||||||
msgstr "Z-A"
|
msgstr "Z-A"
|
||||||
|
|
||||||
#: data/gtk/window.blp:336
|
#: data/gtk/window.blp:375
|
||||||
msgid "Newest"
|
msgid "Newest"
|
||||||
msgstr "Más recientes"
|
msgstr "Más recientes"
|
||||||
|
|
||||||
#: data/gtk/window.blp:342
|
#: data/gtk/window.blp:381
|
||||||
msgid "Oldest"
|
msgid "Oldest"
|
||||||
msgstr "Más antiguos"
|
msgstr "Más antiguos"
|
||||||
|
|
||||||
#: data/gtk/window.blp:348
|
#: data/gtk/window.blp:387
|
||||||
msgid "Last Played"
|
msgid "Last Played"
|
||||||
msgstr "Último jugado"
|
msgstr "Último jugado"
|
||||||
|
|
||||||
#: data/gtk/window.blp:355
|
#: data/gtk/window.blp:394
|
||||||
msgid "Show Hidden"
|
msgid "Show Hidden"
|
||||||
msgstr "Mostrar ocultos"
|
msgstr "Mostrar ocultos"
|
||||||
|
|
||||||
#: data/gtk/window.blp:368
|
#: data/gtk/window.blp:407
|
||||||
msgid "Keyboard Shortcuts"
|
msgid "Keyboard Shortcuts"
|
||||||
msgstr "Atajos del teclado"
|
msgstr "Atajos del teclado"
|
||||||
|
|
||||||
#: data/gtk/window.blp:373
|
#: data/gtk/window.blp:412
|
||||||
msgid "About Cartridges"
|
msgid "About Cartridges"
|
||||||
msgstr "Acerca de Cartuchos"
|
msgstr "Acerca de Cartuchos"
|
||||||
|
|
||||||
#: data/gtk/window.blp:388
|
|
||||||
msgid "Import from"
|
|
||||||
msgstr "Importar desde"
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:390 data/gtk/preferences.blp:40
|
|
||||||
msgid "Steam"
|
|
||||||
msgstr "Steam"
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:395 data/gtk/preferences.blp:78
|
|
||||||
msgid "Heroic"
|
|
||||||
msgstr "Heroic"
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:400 data/gtk/preferences.blp:116
|
|
||||||
msgid "Bottles"
|
|
||||||
msgstr "Bottles"
|
|
||||||
|
|
||||||
#: data/gtk/game.blp:60 src/utils/create_details_window.py:94
|
|
||||||
msgid "Title"
|
|
||||||
msgstr "Título"
|
|
||||||
|
|
||||||
#: data/gtk/game.blp:82 data/gtk/game.blp:101
|
|
||||||
msgid "Edit"
|
|
||||||
msgstr "Editar"
|
|
||||||
|
|
||||||
#: data/gtk/game.blp:87
|
|
||||||
msgid "Hide"
|
|
||||||
msgstr "Ocultar"
|
|
||||||
|
|
||||||
#: data/gtk/game.blp:92 data/gtk/game.blp:111
|
|
||||||
msgid "Remove"
|
|
||||||
msgstr "Eliminar"
|
|
||||||
|
|
||||||
#: data/gtk/game.blp:106
|
|
||||||
msgid "Unhide"
|
|
||||||
msgstr "Mostrar"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:11
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "General"
|
|
||||||
msgstr "General"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:14
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Quit"
|
|
||||||
msgstr "Salir"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:19
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Search"
|
|
||||||
msgstr "Buscar"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:24
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Show preferences"
|
|
||||||
msgstr "Mostrar preferencias"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:29
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Shortcuts"
|
|
||||||
msgstr "Atajos"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:34
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Undo"
|
|
||||||
msgstr "Deshacer"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:39
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Open menu"
|
|
||||||
msgstr "Abrir menú"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:45
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Games"
|
|
||||||
msgstr "Juegos"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:48
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Add new game"
|
|
||||||
msgstr "Añadir juego nuevo"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:53
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Show hidden games"
|
|
||||||
msgstr "Mostrar juegos ocultos"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:10
|
|
||||||
msgid "General"
|
|
||||||
msgstr "General"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:13
|
|
||||||
msgid "Exit After Launching Games"
|
|
||||||
msgstr "Salir después de iniciar juegos"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:21
|
|
||||||
msgid "Cover Image Launches Game"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:22
|
|
||||||
msgid "Swaps the behavior of the cover image and the play button"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:30
|
|
||||||
msgid "High Quality Images"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:31
|
|
||||||
msgid "Save game covers losslessly at the cost of storage"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:43
|
|
||||||
msgid "Steam Install Location"
|
|
||||||
msgstr "Ubicación de la instalación de Steam"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:44 data/gtk/preferences.blp:82
|
|
||||||
#: data/gtk/preferences.blp:120
|
|
||||||
msgid "Directory to use when importing games"
|
|
||||||
msgstr "Directorio a usar para importar juegos"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:52
|
|
||||||
msgid "Extra Steam Libraries"
|
|
||||||
msgstr "Bibliotecas Steam adicionales"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:53
|
|
||||||
msgid "Select other directories where you have Steam games installed"
|
|
||||||
msgstr "Seleccione otros directorios donde tenga instalados juegos de Steam"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:60
|
|
||||||
msgid "Clear"
|
|
||||||
msgstr "Limpiar"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:81
|
|
||||||
msgid "Heroic Install Location"
|
|
||||||
msgstr "Ubicación de la instalación de Heroic"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:91
|
|
||||||
msgid "Import Epic Games"
|
|
||||||
msgstr "Importar juegos de Epic"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:99
|
|
||||||
msgid "Import GOG Games"
|
|
||||||
msgstr "Importar juegos de GOG"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:107
|
|
||||||
msgid "Import Sideloaded Games"
|
|
||||||
msgstr "Importar juegos descargados"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:119
|
|
||||||
msgid "Bottles Install Location"
|
|
||||||
msgstr "Ubicación de instalación de Bottles"
|
|
||||||
|
|
||||||
#. Translators: Replace this with your name for it to show up in the about window
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
#: src/main.py:130
|
#: src/main.py:137
|
||||||
msgid "translator_credits"
|
msgid "translator_credits"
|
||||||
msgstr "Óscar Fernández Díaz <oscfdezdz@tuta.io>"
|
msgstr "Óscar Fernández Díaz <oscfdezdz@tuta.io>"
|
||||||
|
|
||||||
#: src/main.py:193
|
#. The variable is the title of the game
|
||||||
#, python-brace-format
|
#: src/main.py:164
|
||||||
msgid "{title} removed"
|
msgid "{} launched"
|
||||||
msgstr "{title} eliminado"
|
msgstr "{} comenzó"
|
||||||
|
|
||||||
#: src/main.py:194
|
#. The variable is the title of the game
|
||||||
msgid "Undo"
|
#: src/main.py:182
|
||||||
msgstr "Deshacer"
|
msgid "{} hidden"
|
||||||
|
msgstr "{} oculto"
|
||||||
|
|
||||||
#: src/window.py:234
|
#. The variable is the title of the game
|
||||||
|
#: src/main.py:185
|
||||||
|
msgid "{} unhidden"
|
||||||
|
msgstr "{} visible"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/main.py:241
|
||||||
|
msgid "{} removed"
|
||||||
|
msgstr "{} eliminado"
|
||||||
|
|
||||||
|
#: src/window.py:262
|
||||||
msgid "Today"
|
msgid "Today"
|
||||||
msgstr "Hoy"
|
msgstr "Hoy"
|
||||||
|
|
||||||
#: src/window.py:236
|
#: src/window.py:264
|
||||||
msgid "Yesterday"
|
msgid "Yesterday"
|
||||||
msgstr "Ayer"
|
msgstr "Ayer"
|
||||||
|
|
||||||
#. The variable is the date when the game was added
|
#. The variable is the date when the game was added
|
||||||
#: src/window.py:270
|
#: src/window.py:310
|
||||||
#, python-brace-format
|
msgid "Added: {}"
|
||||||
msgid "Added: {date}"
|
msgstr "Añadido: {}"
|
||||||
msgstr "Añadido: {date}"
|
|
||||||
|
|
||||||
#: src/window.py:275
|
#: src/window.py:315
|
||||||
msgid "Never"
|
msgid "Never"
|
||||||
msgstr "Nunca"
|
msgstr "Nunca"
|
||||||
|
|
||||||
#. The variable is the date when the game was last played
|
#. The variable is the date when the game was last played
|
||||||
#: src/window.py:279
|
#: src/window.py:319
|
||||||
#, python-brace-format
|
msgid "Last played: {}"
|
||||||
msgid "Last played: {last_played_date}"
|
msgstr "Último jugado: {}"
|
||||||
msgstr "Jugado por última vez: {last_played_date}"
|
|
||||||
|
|
||||||
#: src/game.py:173
|
#: src/game.py:156
|
||||||
#, fuzzy
|
|
||||||
msgid "Details"
|
msgid "Details"
|
||||||
msgstr "Detalles del juego"
|
msgstr "Detalles"
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:80 src/utils/heroic_parser.py:87
|
#: src/preferences.py:54
|
||||||
#: src/utils/steam_parser.py:245
|
msgid "Installation Not Found"
|
||||||
msgid "Couldn't Import Games"
|
msgstr "No se encuentra la instalación"
|
||||||
msgstr "No se pueden importar juegos"
|
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:81
|
#. The variable is the name of the game launcher
|
||||||
msgid "The Bottles directory cannot be found."
|
#: src/preferences.py:56
|
||||||
msgstr "No se encuentra el directorio Bottles."
|
msgid "Select the {} configuration directory."
|
||||||
|
msgstr "Selecciona el directorio de la configuración {}."
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:83
|
#. The variable is the name of the game launcher
|
||||||
msgid "Set Bottles Location"
|
#: src/preferences.py:59
|
||||||
msgstr "Establecer la ubicación de Bottles"
|
msgid "Select the {} data directory."
|
||||||
|
msgstr "Selecciona el directorio de los datos {}."
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:141
|
#: src/preferences.py:61 src/preferences.py:240
|
||||||
msgid "No new games were found in the Bottles library."
|
msgid "Set Location"
|
||||||
msgstr "No se han encontrado juegos nuevos en la biblioteca de Bottles."
|
msgstr "Escoger la ubicación"
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:146 src/utils/bottles_parser.py:153
|
#: src/preferences.py:132
|
||||||
msgid "Bottles Games Imported"
|
msgid "All games removed"
|
||||||
msgstr "Juegos de Bottles importados"
|
msgstr "Todos los juegos eliminados"
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:147 src/utils/heroic_parser.py:257
|
#: src/preferences.py:237
|
||||||
#: src/utils/steam_parser.py:177
|
msgid "Cache Not Found"
|
||||||
msgid "Successfully imported 1 game."
|
msgstr "Caché no encontrada"
|
||||||
msgstr "Importado 1 juego con éxito."
|
|
||||||
|
|
||||||
#. The variable is the number of games
|
#: src/preferences.py:238
|
||||||
#: src/utils/bottles_parser.py:155 src/utils/heroic_parser.py:265
|
msgid "Select the Lutris cache directory."
|
||||||
#: src/utils/steam_parser.py:185
|
msgstr "Selecciona el directorio de la caché de Lutris."
|
||||||
#, python-brace-format
|
|
||||||
msgid "Successfully imported {games_no} games."
|
|
||||||
msgstr "Importados {games_no} juegos con éxito."
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:41
|
#: src/preferences.py:344
|
||||||
|
msgid ""
|
||||||
|
"An API key is required to use SteamGridDB. You can generate one {}here{}."
|
||||||
|
msgstr ""
|
||||||
|
"Se necesita una clave API para utilizar SteamGridDB. Puedes generar una {}"
|
||||||
|
"aquí{}."
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:81
|
||||||
msgid "Add New Game"
|
msgid "Add New Game"
|
||||||
msgstr "Añadir juego nuevo"
|
msgstr "Añadir juego nuevo"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:46
|
#: src/utils/create_details_window.py:85
|
||||||
msgid "Confirm"
|
msgid "Confirm"
|
||||||
msgstr "Confirmar"
|
msgstr "Confirmar"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:57
|
#: src/utils/create_details_window.py:96
|
||||||
msgid "Apply"
|
msgid "Apply"
|
||||||
msgstr "Aplicar"
|
msgstr "Aplicar"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:59
|
#: src/utils/create_details_window.py:130
|
||||||
msgid "Images"
|
|
||||||
msgstr "Imágenes"
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:95
|
|
||||||
msgid "The title of the game"
|
msgid "The title of the game"
|
||||||
msgstr "El título del juego"
|
msgstr "El título del juego"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:100
|
#: src/utils/create_details_window.py:135
|
||||||
msgid "Developer"
|
msgid "Developer"
|
||||||
msgstr "Desarrollador"
|
msgstr "Desarrollador"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:101
|
#: src/utils/create_details_window.py:136
|
||||||
msgid "The developer or publisher (optional)"
|
msgid "The developer or publisher (optional)"
|
||||||
msgstr "El desarrollador o editor (opcional)"
|
msgstr "El desarrollador o editor (opcional)"
|
||||||
|
|
||||||
#. Translate this string as you would translate "file"
|
#. Translate this string as you would translate "file"
|
||||||
#: src/utils/create_details_window.py:112
|
#: src/utils/create_details_window.py:147
|
||||||
msgid "file.txt"
|
msgid "file.txt"
|
||||||
msgstr "archivo.txt"
|
msgstr "archivo.txt"
|
||||||
|
|
||||||
#. As in software
|
#. As in software
|
||||||
#: src/utils/create_details_window.py:114
|
#: src/utils/create_details_window.py:149
|
||||||
msgid "program"
|
msgid "program"
|
||||||
msgstr "programa"
|
msgstr "programa"
|
||||||
|
|
||||||
#. Translate this string as you would translate "path to {exe_name}"
|
#. Translate this string as you would translate "path to {}"
|
||||||
#: src/utils/create_details_window.py:119
|
#: src/utils/create_details_window.py:154
|
||||||
#, python-brace-format
|
#: src/utils/create_details_window.py:156
|
||||||
msgid "C:\\path\\to\\{exe_name}"
|
msgid "C:\\path\\to\\{}"
|
||||||
msgstr "C:\\ruta\\hasta\\{exe_name}"
|
msgstr "C:\\ruta\\hasta\\{}"
|
||||||
|
|
||||||
#. Translate this string as you would translate "path to {file_name}"
|
#. Translate this string as you would translate "path to {}"
|
||||||
#: src/utils/create_details_window.py:121
|
#: src/utils/create_details_window.py:160
|
||||||
#, python-brace-format
|
#: src/utils/create_details_window.py:162
|
||||||
msgid "C:\\path\\to\\{file_name}"
|
msgid "/path/to/{}"
|
||||||
msgstr "C:\\ruta\\hasta\\{file_name}"
|
msgstr "/ruta/hasta/{}"
|
||||||
|
|
||||||
#. Translate this string as you would translate "path to {exe_name}"
|
#: src/utils/create_details_window.py:166
|
||||||
#: src/utils/create_details_window.py:125
|
|
||||||
#, python-brace-format
|
|
||||||
msgid "/path/to/{exe_name}"
|
|
||||||
msgstr "/ruta/hasta/{exe_name}"
|
|
||||||
|
|
||||||
#. Translate this string as you would translate "path to {file_name}"
|
|
||||||
#: src/utils/create_details_window.py:127
|
|
||||||
#, python-brace-format
|
|
||||||
msgid "/path/to/{file_name}"
|
|
||||||
msgstr "/ruta/hasta/{file_name}"
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:131
|
|
||||||
#, python-brace-format
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"To launch the executable \"{exe_name}\", use the command:\n"
|
"To launch the executable \"{}\", use the command:\n"
|
||||||
"\n"
|
"\n"
|
||||||
"<tt>\"{exe_path}\"</tt>\n"
|
"<tt>\"{}\"</tt>\n"
|
||||||
"\n"
|
"\n"
|
||||||
"To open the file \"{file_name}\" with the default application, use:\n"
|
"To open the file \"{}\" with the default application, use:\n"
|
||||||
"\n"
|
"\n"
|
||||||
"<tt>{command} \"{file_path}\"</tt>\n"
|
"<tt>{} \"{}\"</tt>\n"
|
||||||
"\n"
|
"\n"
|
||||||
"If the path contains spaces, make sure to wrap it in double quotes!"
|
"If the path contains spaces, make sure to wrap it in double quotes!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Para lanzar el ejecutable \"{exe_name}\", use el comando:\n"
|
"Para lanzar el ejecutable \"{}\", use el comando:\n"
|
||||||
"\n"
|
"\n"
|
||||||
"<tt>\"{exe_path}\"</tt>\n"
|
"<tt>\"{}\"</tt>\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Para abrir el archivo \"{file_name}\" con la aplicación predeterminada, "
|
"Para abrir el archivo \"{}\" con la aplicación predeterminada, use:\n"
|
||||||
"use:\n"
|
|
||||||
"\n"
|
"\n"
|
||||||
"<tt>{command} \"{file_path}\"</tt>\n"
|
"<tt>{} \"{}\"</tt>\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Si la ruta contiene espacios, ¡asegúrese de entrecomillarla!"
|
"Si la ruta contiene espacios, ¡asegúrese de entrecomillarla!"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:154
|
#: src/utils/create_details_window.py:189
|
||||||
msgid "Executable"
|
msgid "Executable"
|
||||||
msgstr "Ejecutable"
|
msgstr "Ejecutable"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:155
|
#: src/utils/create_details_window.py:190
|
||||||
msgid "File to open or command to run when launching the game"
|
msgid "File to open or command to run when launching the game"
|
||||||
msgstr "Archivo a abrir o comando a ejecutar al iniciar el juego"
|
msgstr "Archivo a abrir o comando a ejecutar al iniciar el juego"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:167
|
#: src/utils/create_details_window.py:202
|
||||||
msgid "Cancel"
|
msgid "Cancel"
|
||||||
msgstr "Cancelar"
|
msgstr "Cancelar"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:217
|
#: src/utils/create_details_window.py:259
|
||||||
#: src/utils/create_details_window.py:227
|
#: src/utils/create_details_window.py:269
|
||||||
#: src/utils/create_details_window.py:233
|
#: src/utils/create_details_window.py:275
|
||||||
msgid "Couldn't Add Game"
|
msgid "Couldn't Add Game"
|
||||||
msgstr "No se puede añadir el juego"
|
msgstr "No se puede añadir el juego"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:219
|
#: src/utils/create_details_window.py:261
|
||||||
#: src/utils/create_details_window.py:257
|
#: src/utils/create_details_window.py:299
|
||||||
#: src/utils/create_details_window.py:265
|
#: src/utils/create_details_window.py:307
|
||||||
msgid "Couldn't Apply Preferences"
|
msgid "Couldn't Apply Preferences"
|
||||||
msgstr "No se pudieron aplicar las preferencias"
|
msgstr "No se pudieron aplicar las preferencias"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:227
|
#: src/utils/create_details_window.py:269
|
||||||
#: src/utils/create_details_window.py:258
|
#: src/utils/create_details_window.py:300
|
||||||
msgid "Game title cannot be empty."
|
msgid "Game title cannot be empty."
|
||||||
msgstr "El título del juego no puede estar vacío."
|
msgstr "El título del juego no puede estar vacío."
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:233
|
#: src/utils/create_details_window.py:275
|
||||||
#: src/utils/create_details_window.py:266
|
#: src/utils/create_details_window.py:308
|
||||||
msgid "Executable cannot be empty."
|
msgid "Executable cannot be empty."
|
||||||
msgstr "El ejecutable no puede estar vacío."
|
msgstr "El ejecutable no puede estar vacío."
|
||||||
|
|
||||||
@@ -509,42 +570,125 @@ msgstr "El ejecutable no puede estar vacío."
|
|||||||
msgid "Dismiss"
|
msgid "Dismiss"
|
||||||
msgstr "Descartar"
|
msgstr "Descartar"
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:88
|
#: src/utils/importer.py:42
|
||||||
msgid "The Heroic directory cannot be found."
|
|
||||||
msgstr "No se encuentra el directorio Heroic."
|
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:90
|
|
||||||
msgid "Set Heroic Location"
|
|
||||||
msgstr "Establecer ubicación de Heroic"
|
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:251
|
|
||||||
msgid "No new games were found in the Heroic library."
|
|
||||||
msgstr "No se han encontrado juegos nuevos en la biblioteca de Heroic."
|
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:256 src/utils/heroic_parser.py:263
|
|
||||||
msgid "Heroic Games Imported"
|
|
||||||
msgstr "Juegos de Heroic importados"
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:168
|
|
||||||
msgid "No new games were found in the Steam library."
|
|
||||||
msgstr "No se han encontrado juegos nuevos en la biblioteca de Steam."
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:176 src/utils/steam_parser.py:183
|
|
||||||
msgid "Steam Games Imported"
|
|
||||||
msgstr "Juegos de Steam importados"
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:246
|
|
||||||
msgid "The Steam directory cannot be found."
|
|
||||||
msgstr "No se encuentra el directorio de Steam."
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:248
|
|
||||||
msgid "Set Steam Location"
|
|
||||||
msgstr "Establecer ubicación de Steam"
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:265
|
|
||||||
msgid "Importing Games…"
|
msgid "Importing Games…"
|
||||||
msgstr "Importando juegos…"
|
msgstr "Importando juegos…"
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:266
|
#: src/utils/importer.py:77
|
||||||
msgid "Talking to Steam"
|
msgid "Importing Covers…"
|
||||||
msgstr "Hablando con Steam"
|
msgstr "Importando las portadas…"
|
||||||
|
|
||||||
|
#: src/utils/importer.py:92
|
||||||
|
msgid "No new games were found on your system."
|
||||||
|
msgstr "No se encontraron nuevos juegos en tú sistema."
|
||||||
|
|
||||||
|
#: src/utils/importer.py:100
|
||||||
|
msgid "Game Imported"
|
||||||
|
msgstr "Juego importado"
|
||||||
|
|
||||||
|
#: src/utils/importer.py:101
|
||||||
|
msgid "Successfully imported 1 game."
|
||||||
|
msgstr "Importado 1 juego con éxito."
|
||||||
|
|
||||||
|
#: src/utils/importer.py:107
|
||||||
|
msgid "Games Imported"
|
||||||
|
msgstr "Juegos importados"
|
||||||
|
|
||||||
|
#. The variable is the number of games
|
||||||
|
#: src/utils/importer.py:109
|
||||||
|
msgid "Successfully imported {} games."
|
||||||
|
msgstr "{} juegos importados con éxito."
|
||||||
|
|
||||||
|
#: src/utils/importer.py:120 src/utils/steamgriddb.py:113
|
||||||
|
msgid "Couldn't Connect to SteamGridDB"
|
||||||
|
msgstr "No se puede conectar a SteamGridDB"
|
||||||
|
|
||||||
|
#: src/utils/importer.py:145
|
||||||
|
msgid ""
|
||||||
|
"Looks like you have multiple Steam libraries. Would you like to add them in "
|
||||||
|
"preferences?"
|
||||||
|
msgstr ""
|
||||||
|
"Parece que tienes varias bibliotecas de Steam. ¿Quieres agregarlas en la "
|
||||||
|
"configuración?"
|
||||||
|
|
||||||
|
#~ msgid "Launch your games"
|
||||||
|
#~ msgstr "Lance sus juegos"
|
||||||
|
|
||||||
|
#, python-brace-format
|
||||||
|
#~ msgid "Last played: {last_played_date}"
|
||||||
|
#~ msgstr "Jugado por última vez: {last_played_date}"
|
||||||
|
|
||||||
|
#, python-brace-format
|
||||||
|
#~ msgid "Successfully imported {games_no} games."
|
||||||
|
#~ msgstr "Importados {games_no} juegos con éxito."
|
||||||
|
|
||||||
|
#, python-brace-format
|
||||||
|
#~ msgid "C:\\path\\to\\{file_name}"
|
||||||
|
#~ msgstr "C:\\ruta\\hasta\\{file_name}"
|
||||||
|
|
||||||
|
#, python-brace-format
|
||||||
|
#~ msgid "/path/to/{file_name}"
|
||||||
|
#~ msgstr "/ruta/hasta/{file_name}"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "General"
|
||||||
|
#~ msgctxt "shortcuts window"
|
||||||
|
#~ msgid "General"
|
||||||
|
#~ msgstr "General"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "Search"
|
||||||
|
#~ msgctxt "shortcuts window"
|
||||||
|
#~ msgid "Search"
|
||||||
|
#~ msgstr "Buscar"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "Undo"
|
||||||
|
#~ msgctxt "shortcuts window"
|
||||||
|
#~ msgid "Undo"
|
||||||
|
#~ msgstr "Deshacer"
|
||||||
|
|
||||||
|
#~ msgid "First stable release"
|
||||||
|
#~ msgstr "Primera versión estable"
|
||||||
|
|
||||||
|
#~ msgctxt "shortcut window"
|
||||||
|
#~ msgid "General"
|
||||||
|
#~ msgstr "General"
|
||||||
|
|
||||||
|
#~ msgctxt "shortcut window"
|
||||||
|
#~ msgid "Search"
|
||||||
|
#~ msgstr "Buscar"
|
||||||
|
|
||||||
|
#~ msgctxt "shortcut window"
|
||||||
|
#~ msgid "Undo"
|
||||||
|
#~ msgstr "Deshacer"
|
||||||
|
|
||||||
|
#~ msgid "Couldn't Import Games"
|
||||||
|
#~ msgstr "No se pueden importar juegos"
|
||||||
|
|
||||||
|
#~ msgid "The Bottles directory cannot be found."
|
||||||
|
#~ msgstr "No se encuentra el directorio Bottles."
|
||||||
|
|
||||||
|
#~ msgid "Set Bottles Location"
|
||||||
|
#~ msgstr "Establecer la ubicación de Bottles"
|
||||||
|
|
||||||
|
#~ msgid "No new games were found in the Bottles library."
|
||||||
|
#~ msgstr "No se han encontrado juegos nuevos en la biblioteca de Bottles."
|
||||||
|
|
||||||
|
#~ msgid "Bottles Games Imported"
|
||||||
|
#~ msgstr "Juegos de Bottles importados"
|
||||||
|
|
||||||
|
#~ msgid "The Heroic directory cannot be found."
|
||||||
|
#~ msgstr "No se encuentra el directorio Heroic."
|
||||||
|
|
||||||
|
#~ msgid "Heroic Games Imported"
|
||||||
|
#~ msgstr "Juegos de Heroic importados"
|
||||||
|
|
||||||
|
#~ msgid "No new games were found in the Steam library."
|
||||||
|
#~ msgstr "No se han encontrado juegos nuevos en la biblioteca de Steam."
|
||||||
|
|
||||||
|
#~ msgid "The Steam directory cannot be found."
|
||||||
|
#~ msgstr "No se encuentra el directorio de Steam."
|
||||||
|
|
||||||
|
#~ msgid "Talking to Steam"
|
||||||
|
#~ msgstr "Hablando con Steam"
|
||||||
|
|||||||
611
po/ko.po
Normal file
@@ -0,0 +1,611 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR kramo
|
||||||
|
# This file is distributed under the same license as the Cartridges package.
|
||||||
|
# MJKim <kmj10727@gmail.com>, 2023.
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Cartridges\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2023-04-11 23:33+0200\n"
|
||||||
|
"PO-Revision-Date: 2023-03-28 22:23+0000\n"
|
||||||
|
"Last-Translator: MJKim <kmj10727@gmail.com>\n"
|
||||||
|
"Language-Team: Korean <https://hosted.weblate.org/projects/cartridges/"
|
||||||
|
"cartridges/ko/>\n"
|
||||||
|
"Language: ko\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||||
|
"X-Generator: Weblate 4.17-dev\n"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:3
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:29
|
||||||
|
#: src/main.py:119
|
||||||
|
msgid "Cartridges"
|
||||||
|
msgstr "카트리지"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:4
|
||||||
|
msgid "Game Launcher"
|
||||||
|
msgstr "게임 런처"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
|
msgid "Launch all your games"
|
||||||
|
msgstr "모든 게임을 실행합니다"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid ""
|
||||||
|
#| "Cartridges is a simple game launcher. It has support for importing your "
|
||||||
|
#| "games from Steam, Heroic and Bottles with organizational features such as "
|
||||||
|
#| "hiding and sorting by date added or last played."
|
||||||
|
msgid ""
|
||||||
|
"Cartridges is a simple game launcher for all of your games. It has support "
|
||||||
|
"for importing games from Steam, Lutris, Heroic and more with no login "
|
||||||
|
"necessary. You can sort and hide games or download cover art from "
|
||||||
|
"SteamGridDB."
|
||||||
|
msgstr ""
|
||||||
|
"카트리지는 간단한 게임 런처입니다. 추가한 날짜 또는 마지막으로 플레이한 날짜"
|
||||||
|
"별로 게임을 숨기거나 정렬하는 등의 정리 기능을 통해 Steam, Heroic 및 Bottles"
|
||||||
|
"에서 게임을 가져올 수 있습니다."
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:22
|
||||||
|
msgid "Library"
|
||||||
|
msgstr "라이브러리"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:26
|
||||||
|
#: src/utils/create_details_window.py:87
|
||||||
|
msgid "Edit Game Details"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:30 data/gtk/window.blp:51
|
||||||
|
msgid "Game Details"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:402
|
||||||
|
#: src/utils/importer.py:94 src/utils/importer.py:123 src/utils/importer.py:148
|
||||||
|
#: src/utils/steamgriddb.py:116
|
||||||
|
msgid "Preferences"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:67 src/utils/create_details_window.py:129
|
||||||
|
msgid "Title"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:89 data/gtk/game.blp:108 data/gtk/window.blp:170
|
||||||
|
msgid "Edit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:94 src/window.py:286
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:99 data/gtk/game.blp:118 data/gtk/preferences.blp:56
|
||||||
|
#: data/gtk/window.blp:186
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:113 src/window.py:283
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
|
||||||
|
msgid "General"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:205 data/gtk/window.blp:249
|
||||||
|
#: data/gtk/window.blp:312
|
||||||
|
msgid "Search"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34 src/main.py:186 src/main.py:242
|
||||||
|
#: src/preferences.py:133
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "No Games"
|
||||||
|
msgid "Games"
|
||||||
|
msgstr "게임이 없습니다"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "No Games"
|
||||||
|
msgid "Import games"
|
||||||
|
msgstr "게임이 없습니다"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:58
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:63
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "No Games"
|
||||||
|
msgid "Remove game"
|
||||||
|
msgstr "게임이 없습니다"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:235
|
||||||
|
msgid "Behavior"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:16
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Cover Image Launches Game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26
|
||||||
|
msgid "Swaps the behavior of the cover image and the play button"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:36 src/utils/create_details_window.py:101
|
||||||
|
msgid "Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:39
|
||||||
|
msgid "High Quality Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:40
|
||||||
|
msgid "Save game covers losslessly at the cost of storage"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:50
|
||||||
|
msgid "Danger Zone"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:53
|
||||||
|
msgid "Remove All Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:69 data/gtk/window.blp:427
|
||||||
|
msgid "Import"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:73
|
||||||
|
msgid "Sources"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:76
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:80
|
||||||
|
msgid "Steam Install Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:81 data/gtk/preferences.blp:119
|
||||||
|
#: data/gtk/preferences.blp:153 data/gtk/preferences.blp:195
|
||||||
|
#: data/gtk/preferences.blp:210
|
||||||
|
msgid "Directory to use when importing games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:89 src/utils/importer.py:143
|
||||||
|
msgid "Extra Steam Libraries"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:90
|
||||||
|
msgid "Select other directories where you have Steam games installed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:96
|
||||||
|
msgid "Clear"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:114
|
||||||
|
msgid "Lutris"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:118
|
||||||
|
msgid "Lutris Install Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:128
|
||||||
|
msgid "Lutris Cache Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:129
|
||||||
|
msgid "Directory to use when importing game covers"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:138
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "No Games"
|
||||||
|
msgid "Import Steam Games"
|
||||||
|
msgstr "게임이 없습니다"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:148
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:152
|
||||||
|
msgid "Heroic Install Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:162
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:171
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:180
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:190
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:194
|
||||||
|
msgid "Bottles Install Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:205
|
||||||
|
msgid "itch"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:209
|
||||||
|
msgid "itch Install Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:223
|
||||||
|
msgid "SteamGridDB"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:227
|
||||||
|
msgid "Authentication"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:230
|
||||||
|
msgid "API Key"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:238
|
||||||
|
msgid "Use SteamGridDB"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:239
|
||||||
|
msgid "Download images when adding or importing games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:248
|
||||||
|
msgid "Prefer Over Official Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:257
|
||||||
|
msgid "Prefer Animated Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 src/utils/importer.py:91
|
||||||
|
msgid "No Games Found"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:7
|
||||||
|
msgid "Try a different search."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:14
|
||||||
|
msgid "No Games"
|
||||||
|
msgstr "게임이 없습니다"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:15
|
||||||
|
msgid "Use the + button to add games."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:22
|
||||||
|
msgid "No Hidden Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:23
|
||||||
|
msgid "Games you hide will appear here."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:44 data/gtk/window.blp:293
|
||||||
|
msgid "Back"
|
||||||
|
msgstr "뒤로"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:100
|
||||||
|
msgid "Game Title"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:151 src/game.py:158
|
||||||
|
msgid "Play"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:235 data/gtk/window.blp:421
|
||||||
|
msgid "Add Game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:242 data/gtk/window.blp:305
|
||||||
|
msgid "Main Menu"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:300
|
||||||
|
msgid "Hidden Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:360
|
||||||
|
msgid "Sort"
|
||||||
|
msgstr "정렬"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:363
|
||||||
|
msgid "A-Z"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:369
|
||||||
|
msgid "Z-A"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:375
|
||||||
|
msgid "Newest"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:381
|
||||||
|
msgid "Oldest"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:387
|
||||||
|
msgid "Last Played"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:394
|
||||||
|
msgid "Show Hidden"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:407
|
||||||
|
msgid "Keyboard Shortcuts"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:412
|
||||||
|
msgid "About Cartridges"
|
||||||
|
msgstr "카트리지 정보"
|
||||||
|
|
||||||
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
|
#: src/main.py:137
|
||||||
|
msgid "translator_credits"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/main.py:164
|
||||||
|
msgid "{} launched"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/main.py:182
|
||||||
|
msgid "{} hidden"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/main.py:185
|
||||||
|
msgid "{} unhidden"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/main.py:241
|
||||||
|
msgid "{} removed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/window.py:262
|
||||||
|
msgid "Today"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/window.py:264
|
||||||
|
msgid "Yesterday"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the date when the game was added
|
||||||
|
#: src/window.py:310
|
||||||
|
msgid "Added: {}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/window.py:315
|
||||||
|
msgid "Never"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the date when the game was last played
|
||||||
|
#: src/window.py:319
|
||||||
|
msgid "Last played: {}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/game.py:156
|
||||||
|
msgid "Details"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:54
|
||||||
|
msgid "Installation Not Found"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the name of the game launcher
|
||||||
|
#: src/preferences.py:56
|
||||||
|
msgid "Select the {} configuration directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the name of the game launcher
|
||||||
|
#: src/preferences.py:59
|
||||||
|
msgid "Select the {} data directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:61 src/preferences.py:240
|
||||||
|
msgid "Set Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:132
|
||||||
|
msgid "All games removed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:237
|
||||||
|
msgid "Cache Not Found"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:238
|
||||||
|
msgid "Select the Lutris cache directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:344
|
||||||
|
msgid ""
|
||||||
|
"An API key is required to use SteamGridDB. You can generate one {}here{}."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:81
|
||||||
|
msgid "Add New Game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:85
|
||||||
|
msgid "Confirm"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:96
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:130
|
||||||
|
msgid "The title of the game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:135
|
||||||
|
msgid "Developer"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:136
|
||||||
|
msgid "The developer or publisher (optional)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "file"
|
||||||
|
#: src/utils/create_details_window.py:147
|
||||||
|
msgid "file.txt"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. As in software
|
||||||
|
#: src/utils/create_details_window.py:149
|
||||||
|
msgid "program"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "path to {}"
|
||||||
|
#: src/utils/create_details_window.py:154
|
||||||
|
#: src/utils/create_details_window.py:156
|
||||||
|
msgid "C:\\path\\to\\{}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "path to {}"
|
||||||
|
#: src/utils/create_details_window.py:160
|
||||||
|
#: src/utils/create_details_window.py:162
|
||||||
|
msgid "/path/to/{}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:166
|
||||||
|
msgid ""
|
||||||
|
"To launch the executable \"{}\", use the command:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>\"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"To open the file \"{}\" with the default application, use:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>{} \"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"If the path contains spaces, make sure to wrap it in double quotes!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:189
|
||||||
|
msgid "Executable"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:190
|
||||||
|
msgid "File to open or command to run when launching the game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:202
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:259
|
||||||
|
#: src/utils/create_details_window.py:269
|
||||||
|
#: src/utils/create_details_window.py:275
|
||||||
|
msgid "Couldn't Add Game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:261
|
||||||
|
#: src/utils/create_details_window.py:299
|
||||||
|
#: src/utils/create_details_window.py:307
|
||||||
|
msgid "Couldn't Apply Preferences"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:269
|
||||||
|
#: src/utils/create_details_window.py:300
|
||||||
|
msgid "Game title cannot be empty."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:275
|
||||||
|
#: src/utils/create_details_window.py:308
|
||||||
|
msgid "Executable cannot be empty."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_dialog.py:25
|
||||||
|
msgid "Dismiss"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:42
|
||||||
|
msgid "Importing Games…"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:77
|
||||||
|
msgid "Importing Covers…"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:92
|
||||||
|
msgid "No new games were found on your system."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:100
|
||||||
|
msgid "Game Imported"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:101
|
||||||
|
msgid "Successfully imported 1 game."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:107
|
||||||
|
msgid "Games Imported"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the number of games
|
||||||
|
#: src/utils/importer.py:109
|
||||||
|
msgid "Successfully imported {} games."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:120 src/utils/steamgriddb.py:113
|
||||||
|
msgid "Couldn't Connect to SteamGridDB"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:145
|
||||||
|
msgid ""
|
||||||
|
"Looks like you have multiple Steam libraries. Would you like to add them in "
|
||||||
|
"preferences?"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#~ msgid "Launch your games"
|
||||||
|
#~ msgstr "게임을 실행합니다"
|
||||||
838
po/nb_NO.po
604
po/ro.po
Normal file
@@ -0,0 +1,604 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR kramo
|
||||||
|
# This file is distributed under the same license as the Cartridges package.
|
||||||
|
# Matt C <matei.gurzu@gmail.com>, 2023.
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Cartridges\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2023-04-11 23:33+0200\n"
|
||||||
|
"PO-Revision-Date: 2023-04-04 17:12+0000\n"
|
||||||
|
"Last-Translator: Matt C <matei.gurzu@gmail.com>\n"
|
||||||
|
"Language-Team: Romanian <https://hosted.weblate.org/projects/cartridges/"
|
||||||
|
"cartridges/ro/>\n"
|
||||||
|
"Language: ro\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < "
|
||||||
|
"20)) ? 1 : 2;\n"
|
||||||
|
"X-Generator: Weblate 4.17-dev\n"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:3
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:29
|
||||||
|
#: src/main.py:119
|
||||||
|
msgid "Cartridges"
|
||||||
|
msgstr "Cartușe"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:4
|
||||||
|
msgid "Game Launcher"
|
||||||
|
msgstr "Lansator de jocuri"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
|
msgid "Launch all your games"
|
||||||
|
msgstr "Lansați toate jocurile dvs"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid ""
|
||||||
|
#| "Cartridges is a simple game launcher. It has support for importing your "
|
||||||
|
#| "games from Steam, Heroic and Bottles with organizational features such as "
|
||||||
|
#| "hiding and sorting by date added or last played."
|
||||||
|
msgid ""
|
||||||
|
"Cartridges is a simple game launcher for all of your games. It has support "
|
||||||
|
"for importing games from Steam, Lutris, Heroic and more with no login "
|
||||||
|
"necessary. You can sort and hide games or download cover art from "
|
||||||
|
"SteamGridDB."
|
||||||
|
msgstr ""
|
||||||
|
"Cartridges este un simplu lansator de jocuri. Are suport pentru importarea "
|
||||||
|
"jocurilor dvs. din Steam, Heroic și Bottles cu funcții de organizare, cum ar "
|
||||||
|
"fi ascunderea și sortarea după data adăugată sau ultima dată jucată."
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:22
|
||||||
|
msgid "Library"
|
||||||
|
msgstr "Bibliotecă"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:26
|
||||||
|
#: src/utils/create_details_window.py:87
|
||||||
|
msgid "Edit Game Details"
|
||||||
|
msgstr "Editați detaliile jocului"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:30 data/gtk/window.blp:51
|
||||||
|
msgid "Game Details"
|
||||||
|
msgstr "Detalii joc"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:402
|
||||||
|
#: src/utils/importer.py:94 src/utils/importer.py:123 src/utils/importer.py:148
|
||||||
|
#: src/utils/steamgriddb.py:116
|
||||||
|
msgid "Preferences"
|
||||||
|
msgstr "Preferințe"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:67 src/utils/create_details_window.py:129
|
||||||
|
msgid "Title"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:89 data/gtk/game.blp:108 data/gtk/window.blp:170
|
||||||
|
msgid "Edit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:94 src/window.py:286
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:99 data/gtk/game.blp:118 data/gtk/preferences.blp:56
|
||||||
|
#: data/gtk/window.blp:186
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:113 src/window.py:283
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
|
||||||
|
msgid "General"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:205 data/gtk/window.blp:249
|
||||||
|
#: data/gtk/window.blp:312
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "Căutare"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34 src/main.py:186 src/main.py:242
|
||||||
|
#: src/preferences.py:133
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgid "Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgid "Import games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:58
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:63
|
||||||
|
msgid "Remove game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:235
|
||||||
|
msgid "Behavior"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:16
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Cover Image Launches Game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26
|
||||||
|
msgid "Swaps the behavior of the cover image and the play button"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:36 src/utils/create_details_window.py:101
|
||||||
|
msgid "Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:39
|
||||||
|
msgid "High Quality Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:40
|
||||||
|
msgid "Save game covers losslessly at the cost of storage"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:50
|
||||||
|
msgid "Danger Zone"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:53
|
||||||
|
msgid "Remove All Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:69 data/gtk/window.blp:427
|
||||||
|
msgid "Import"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:73
|
||||||
|
msgid "Sources"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:76
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:80
|
||||||
|
msgid "Steam Install Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:81 data/gtk/preferences.blp:119
|
||||||
|
#: data/gtk/preferences.blp:153 data/gtk/preferences.blp:195
|
||||||
|
#: data/gtk/preferences.blp:210
|
||||||
|
msgid "Directory to use when importing games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:89 src/utils/importer.py:143
|
||||||
|
msgid "Extra Steam Libraries"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:90
|
||||||
|
msgid "Select other directories where you have Steam games installed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:96
|
||||||
|
msgid "Clear"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:114
|
||||||
|
msgid "Lutris"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:118
|
||||||
|
msgid "Lutris Install Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:128
|
||||||
|
msgid "Lutris Cache Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:129
|
||||||
|
msgid "Directory to use when importing game covers"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:138
|
||||||
|
msgid "Import Steam Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:148
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:152
|
||||||
|
msgid "Heroic Install Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:162
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:171
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:180
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:190
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:194
|
||||||
|
msgid "Bottles Install Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:205
|
||||||
|
msgid "itch"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:209
|
||||||
|
msgid "itch Install Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:223
|
||||||
|
msgid "SteamGridDB"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:227
|
||||||
|
msgid "Authentication"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:230
|
||||||
|
msgid "API Key"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:238
|
||||||
|
msgid "Use SteamGridDB"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:239
|
||||||
|
msgid "Download images when adding or importing games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:248
|
||||||
|
msgid "Prefer Over Official Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:257
|
||||||
|
msgid "Prefer Animated Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 src/utils/importer.py:91
|
||||||
|
msgid "No Games Found"
|
||||||
|
msgstr "Nu s-au găsit jocuri"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:7
|
||||||
|
msgid "Try a different search."
|
||||||
|
msgstr "Încercați o altă căutare."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:14
|
||||||
|
msgid "No Games"
|
||||||
|
msgstr "Fără jocuri"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:15
|
||||||
|
msgid "Use the + button to add games."
|
||||||
|
msgstr "Folosiți butonul + pentru a adăuga jocuri."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:22
|
||||||
|
msgid "No Hidden Games"
|
||||||
|
msgstr "Fără jocuri ascunse"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:23
|
||||||
|
msgid "Games you hide will appear here."
|
||||||
|
msgstr "Jocurile pe care le ascundeți vor apărea aici."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:44 data/gtk/window.blp:293
|
||||||
|
msgid "Back"
|
||||||
|
msgstr "Înapoi"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:100
|
||||||
|
msgid "Game Title"
|
||||||
|
msgstr "Titlul jocului"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:151 src/game.py:158
|
||||||
|
msgid "Play"
|
||||||
|
msgstr "Joacă"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:235 data/gtk/window.blp:421
|
||||||
|
msgid "Add Game"
|
||||||
|
msgstr "Adăugați joc"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:242 data/gtk/window.blp:305
|
||||||
|
msgid "Main Menu"
|
||||||
|
msgstr "Meniu principal"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:300
|
||||||
|
msgid "Hidden Games"
|
||||||
|
msgstr "Jocuri ascunse"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:360
|
||||||
|
msgid "Sort"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:363
|
||||||
|
msgid "A-Z"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:369
|
||||||
|
msgid "Z-A"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:375
|
||||||
|
msgid "Newest"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:381
|
||||||
|
msgid "Oldest"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:387
|
||||||
|
msgid "Last Played"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:394
|
||||||
|
msgid "Show Hidden"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:407
|
||||||
|
msgid "Keyboard Shortcuts"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:412
|
||||||
|
msgid "About Cartridges"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
|
#: src/main.py:137
|
||||||
|
msgid "translator_credits"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/main.py:164
|
||||||
|
msgid "{} launched"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/main.py:182
|
||||||
|
msgid "{} hidden"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/main.py:185
|
||||||
|
msgid "{} unhidden"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/main.py:241
|
||||||
|
msgid "{} removed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/window.py:262
|
||||||
|
msgid "Today"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/window.py:264
|
||||||
|
msgid "Yesterday"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the date when the game was added
|
||||||
|
#: src/window.py:310
|
||||||
|
msgid "Added: {}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/window.py:315
|
||||||
|
msgid "Never"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the date when the game was last played
|
||||||
|
#: src/window.py:319
|
||||||
|
msgid "Last played: {}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/game.py:156
|
||||||
|
msgid "Details"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:54
|
||||||
|
msgid "Installation Not Found"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the name of the game launcher
|
||||||
|
#: src/preferences.py:56
|
||||||
|
msgid "Select the {} configuration directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the name of the game launcher
|
||||||
|
#: src/preferences.py:59
|
||||||
|
msgid "Select the {} data directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:61 src/preferences.py:240
|
||||||
|
msgid "Set Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:132
|
||||||
|
msgid "All games removed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:237
|
||||||
|
msgid "Cache Not Found"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:238
|
||||||
|
msgid "Select the Lutris cache directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:344
|
||||||
|
msgid ""
|
||||||
|
"An API key is required to use SteamGridDB. You can generate one {}here{}."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:81
|
||||||
|
msgid "Add New Game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:85
|
||||||
|
msgid "Confirm"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:96
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:130
|
||||||
|
msgid "The title of the game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:135
|
||||||
|
msgid "Developer"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:136
|
||||||
|
msgid "The developer or publisher (optional)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "file"
|
||||||
|
#: src/utils/create_details_window.py:147
|
||||||
|
msgid "file.txt"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. As in software
|
||||||
|
#: src/utils/create_details_window.py:149
|
||||||
|
msgid "program"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "path to {}"
|
||||||
|
#: src/utils/create_details_window.py:154
|
||||||
|
#: src/utils/create_details_window.py:156
|
||||||
|
msgid "C:\\path\\to\\{}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "path to {}"
|
||||||
|
#: src/utils/create_details_window.py:160
|
||||||
|
#: src/utils/create_details_window.py:162
|
||||||
|
msgid "/path/to/{}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:166
|
||||||
|
msgid ""
|
||||||
|
"To launch the executable \"{}\", use the command:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>\"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"To open the file \"{}\" with the default application, use:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>{} \"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"If the path contains spaces, make sure to wrap it in double quotes!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:189
|
||||||
|
msgid "Executable"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:190
|
||||||
|
msgid "File to open or command to run when launching the game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:202
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:259
|
||||||
|
#: src/utils/create_details_window.py:269
|
||||||
|
#: src/utils/create_details_window.py:275
|
||||||
|
msgid "Couldn't Add Game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:261
|
||||||
|
#: src/utils/create_details_window.py:299
|
||||||
|
#: src/utils/create_details_window.py:307
|
||||||
|
msgid "Couldn't Apply Preferences"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:269
|
||||||
|
#: src/utils/create_details_window.py:300
|
||||||
|
msgid "Game title cannot be empty."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:275
|
||||||
|
#: src/utils/create_details_window.py:308
|
||||||
|
msgid "Executable cannot be empty."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_dialog.py:25
|
||||||
|
msgid "Dismiss"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:42
|
||||||
|
msgid "Importing Games…"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:77
|
||||||
|
msgid "Importing Covers…"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:92
|
||||||
|
msgid "No new games were found on your system."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:100
|
||||||
|
msgid "Game Imported"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:101
|
||||||
|
msgid "Successfully imported 1 game."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:107
|
||||||
|
msgid "Games Imported"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the number of games
|
||||||
|
#: src/utils/importer.py:109
|
||||||
|
msgid "Successfully imported {} games."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:120 src/utils/steamgriddb.py:113
|
||||||
|
msgid "Couldn't Connect to SteamGridDB"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/importer.py:145
|
||||||
|
msgid ""
|
||||||
|
"Looks like you have multiple Steam libraries. Would you like to add them in "
|
||||||
|
"preferences?"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#~ msgid "Launch your games"
|
||||||
|
#~ msgstr "Lansați-vă jocurile"
|
||||||
805
po/ru.po
@@ -2,12 +2,13 @@
|
|||||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
# This file is distributed under the same license as the cartridges package.
|
# This file is distributed under the same license as the cartridges package.
|
||||||
# Сергей <asvmail.as@gmail.com>, 2023.
|
# Сергей <asvmail.as@gmail.com>, 2023.
|
||||||
|
# kramo <contact@kramo.hu>, 2023.
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: cartridges\n"
|
"Project-Id-Version: cartridges\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2023-03-26 11:51+0200\n"
|
"POT-Creation-Date: 2023-04-11 23:33+0200\n"
|
||||||
"PO-Revision-Date: 2023-03-26 11:15+0000\n"
|
"PO-Revision-Date: 2023-04-14 12:29+0000\n"
|
||||||
"Last-Translator: Сергей <asvmail.as@gmail.com>\n"
|
"Last-Translator: Сергей <asvmail.as@gmail.com>\n"
|
||||||
"Language-Team: Russian <https://hosted.weblate.org/projects/cartridges/"
|
"Language-Team: Russian <https://hosted.weblate.org/projects/cartridges/"
|
||||||
"cartridges/ru/>\n"
|
"cartridges/ru/>\n"
|
||||||
@@ -21,7 +22,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: data/hu.kramo.Cartridges.desktop.in:3
|
#: data/hu.kramo.Cartridges.desktop.in:3
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:29
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:29
|
||||||
#: src/main.py:115
|
#: src/main.py:119
|
||||||
msgid "Cartridges"
|
msgid "Cartridges"
|
||||||
msgstr "Картриджи"
|
msgstr "Картриджи"
|
||||||
|
|
||||||
@@ -30,29 +31,28 @@ msgid "Game Launcher"
|
|||||||
msgstr "Средство запуска игр"
|
msgstr "Средство запуска игр"
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.desktop.in:5
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
msgid "Launch your games"
|
|
||||||
msgstr "Запускайте свои игры"
|
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
msgid "Launch all your games"
|
msgid "Launch all your games"
|
||||||
msgstr "Запустите все свои игры"
|
msgstr "Запустите все свои игры"
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
||||||
msgid ""
|
msgid ""
|
||||||
"Cartridges is a simple game launcher. It has support for importing your "
|
"Cartridges is a simple game launcher for all of your games. It has support "
|
||||||
"games from Steam, Heroic and Bottles with organizational features such as "
|
"for importing games from Steam, Lutris, Heroic and more with no login "
|
||||||
"hiding and sorting by date added or last played."
|
"necessary. You can sort and hide games or download cover art from "
|
||||||
|
"SteamGridDB."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Картриджи - это простое приложение для запуска игр. Оно поддерживает импорт "
|
"Картриджи - это простое приложение для запуска ваших игр. Оно поддерживает "
|
||||||
"игр из Steam, Heroic и Bottles, имеет организационные функции, такие как "
|
"импорт игр из Steam, Lutris, Heroic и других без необходимости входа в "
|
||||||
"скрытие и сортировка по дате добавления или последней игры."
|
"систему. Вы можете сортировать и скрывать игры или загружать обложки из "
|
||||||
|
"SteamGridDB."
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:22
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:22
|
||||||
msgid "Library"
|
msgid "Library"
|
||||||
msgstr "Библиотека"
|
msgstr "Библиотека"
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:26
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:26
|
||||||
#: src/utils/create_details_window.py:48
|
#: src/utils/create_details_window.py:87
|
||||||
msgid "Edit Game Details"
|
msgid "Edit Game Details"
|
||||||
msgstr "Редактировать подробности об игре"
|
msgstr "Редактировать подробности об игре"
|
||||||
|
|
||||||
@@ -60,17 +60,238 @@ msgstr "Редактировать подробности об игре"
|
|||||||
msgid "Game Details"
|
msgid "Game Details"
|
||||||
msgstr "Подробности об игре"
|
msgstr "Подробности об игре"
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:363
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:402
|
||||||
#: src/utils/steam_parser.py:170
|
#: src/utils/importer.py:94 src/utils/importer.py:123 src/utils/importer.py:148
|
||||||
|
#: src/utils/steamgriddb.py:116
|
||||||
msgid "Preferences"
|
msgid "Preferences"
|
||||||
msgstr "Параметры"
|
msgstr "Параметры"
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:41
|
#: data/gtk/game.blp:67 src/utils/create_details_window.py:129
|
||||||
msgid "First stable release"
|
msgid "Title"
|
||||||
msgstr "Первый стабильный выпуск"
|
msgstr "Название"
|
||||||
|
|
||||||
#: data/gtk/window.blp:6 src/utils/bottles_parser.py:140
|
#: data/gtk/game.blp:89 data/gtk/game.blp:108 data/gtk/window.blp:170
|
||||||
#: src/utils/heroic_parser.py:250 src/utils/steam_parser.py:167
|
msgid "Edit"
|
||||||
|
msgstr "Редактировать"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:94 src/window.py:286
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr "Скрыть"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:99 data/gtk/game.blp:118 data/gtk/preferences.blp:56
|
||||||
|
#: data/gtk/window.blp:186
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr "Удалить"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:113 src/window.py:283
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr "Показать"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
|
||||||
|
msgid "General"
|
||||||
|
msgstr "Основное"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr "Выйти"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:205 data/gtk/window.blp:249
|
||||||
|
#: data/gtk/window.blp:312
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "Поиск"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr "Показать параметры"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr "Комбинации клавиш"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34 src/main.py:186 src/main.py:242
|
||||||
|
#: src/preferences.py:133
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "Отменить"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr "Открыть меню"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgid "Games"
|
||||||
|
msgstr "Игры"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr "Добавить новую игру"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgid "Import games"
|
||||||
|
msgstr "Импорт игр"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:58
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr "Показать скрытые игры"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:63
|
||||||
|
msgid "Remove game"
|
||||||
|
msgstr "Удалить игру"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:235
|
||||||
|
msgid "Behavior"
|
||||||
|
msgstr "Поведение"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:16
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr "Выход после запуска игр"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Cover Image Launches Game"
|
||||||
|
msgstr "Запуск игры используя изображение обложки"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26
|
||||||
|
msgid "Swaps the behavior of the cover image and the play button"
|
||||||
|
msgstr "Меняет местами поведение изображения обложки и кнопки запуска"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:36 src/utils/create_details_window.py:101
|
||||||
|
msgid "Images"
|
||||||
|
msgstr "Изображения"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:39
|
||||||
|
msgid "High Quality Images"
|
||||||
|
msgstr "Изображения высокого качества"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:40
|
||||||
|
msgid "Save game covers losslessly at the cost of storage"
|
||||||
|
msgstr "Сохранение обложек игр без потерь за счет хранилища"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:50
|
||||||
|
msgid "Danger Zone"
|
||||||
|
msgstr "Небезопасная область"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:53
|
||||||
|
msgid "Remove All Games"
|
||||||
|
msgstr "Удалить все игры"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:69 data/gtk/window.blp:427
|
||||||
|
msgid "Import"
|
||||||
|
msgstr "Импортировать"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:73
|
||||||
|
msgid "Sources"
|
||||||
|
msgstr "Источники"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:76
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr "Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:80
|
||||||
|
msgid "Steam Install Location"
|
||||||
|
msgstr "Место установки Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:81 data/gtk/preferences.blp:119
|
||||||
|
#: data/gtk/preferences.blp:153 data/gtk/preferences.blp:195
|
||||||
|
#: data/gtk/preferences.blp:210
|
||||||
|
msgid "Directory to use when importing games"
|
||||||
|
msgstr "Каталог для импорта игр"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:89 src/utils/importer.py:143
|
||||||
|
msgid "Extra Steam Libraries"
|
||||||
|
msgstr "Дополнительные библиотеки Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:90
|
||||||
|
msgid "Select other directories where you have Steam games installed"
|
||||||
|
msgstr "Выберите другие каталоги, в которых у вас установлены игры из Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:96
|
||||||
|
msgid "Clear"
|
||||||
|
msgstr "Очистить"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:114
|
||||||
|
msgid "Lutris"
|
||||||
|
msgstr "Lutris"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:118
|
||||||
|
msgid "Lutris Install Location"
|
||||||
|
msgstr "Место установки Lutris"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:128
|
||||||
|
msgid "Lutris Cache Location"
|
||||||
|
msgstr "Расположение кэша Lutris"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:129
|
||||||
|
msgid "Directory to use when importing game covers"
|
||||||
|
msgstr "Каталог для импорта обложек игр"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:138
|
||||||
|
msgid "Import Steam Games"
|
||||||
|
msgstr "Импорт игр Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:148
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr "Heroic"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:152
|
||||||
|
msgid "Heroic Install Location"
|
||||||
|
msgstr "Место установки Heroic"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:162
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr "Импорт игр Epic"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:171
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr "Импорт игр GOG"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:180
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr "Импорт сторонних игр"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:190
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr "Bottles"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:194
|
||||||
|
msgid "Bottles Install Location"
|
||||||
|
msgstr "Место установки Bottles"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:205
|
||||||
|
msgid "itch"
|
||||||
|
msgstr "itch"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:209
|
||||||
|
msgid "itch Install Location"
|
||||||
|
msgstr "Место установки itch"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:223
|
||||||
|
msgid "SteamGridDB"
|
||||||
|
msgstr "SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:227
|
||||||
|
msgid "Authentication"
|
||||||
|
msgstr "Аутентификация"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:230
|
||||||
|
msgid "API Key"
|
||||||
|
msgstr "API-ключ"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:238
|
||||||
|
msgid "Use SteamGridDB"
|
||||||
|
msgstr "Использовать SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:239
|
||||||
|
msgid "Download images when adding or importing games"
|
||||||
|
msgstr "Загрузка изображений при добавлении или импорте игр"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:248
|
||||||
|
msgid "Prefer Over Official Images"
|
||||||
|
msgstr "Отдавать предпочтение официальным изображениям"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:257
|
||||||
|
msgid "Prefer Animated Images"
|
||||||
|
msgstr "Отдавать предпочтение анимированным изображениям"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 src/utils/importer.py:91
|
||||||
msgid "No Games Found"
|
msgid "No Games Found"
|
||||||
msgstr "Игры не найдены"
|
msgstr "Игры не найдены"
|
||||||
|
|
||||||
@@ -94,413 +315,253 @@ msgstr "Нет скрытых игр"
|
|||||||
msgid "Games you hide will appear here."
|
msgid "Games you hide will appear here."
|
||||||
msgstr "Здесь появятся скрытые игры."
|
msgstr "Здесь появятся скрытые игры."
|
||||||
|
|
||||||
#: data/gtk/window.blp:44 data/gtk/window.blp:254
|
#: data/gtk/window.blp:44 data/gtk/window.blp:293
|
||||||
msgid "Back"
|
msgid "Back"
|
||||||
msgstr "Назад"
|
msgstr "Назад"
|
||||||
|
|
||||||
#: data/gtk/window.blp:92
|
#: data/gtk/window.blp:100
|
||||||
msgid "Game Title"
|
msgid "Game Title"
|
||||||
msgstr "Название игры"
|
msgstr "Название игры"
|
||||||
|
|
||||||
#: data/gtk/window.blp:148 src/game.py:175
|
#: data/gtk/window.blp:151 src/game.py:158
|
||||||
msgid "Play"
|
msgid "Play"
|
||||||
msgstr "Играть"
|
msgstr "Играть"
|
||||||
|
|
||||||
#: data/gtk/window.blp:196 data/gtk/window.blp:382
|
#: data/gtk/window.blp:235 data/gtk/window.blp:421
|
||||||
msgid "Add Game"
|
msgid "Add Game"
|
||||||
msgstr "Добавить игру"
|
msgstr "Добавить игру"
|
||||||
|
|
||||||
#: data/gtk/window.blp:203 data/gtk/window.blp:266
|
#: data/gtk/window.blp:242 data/gtk/window.blp:305
|
||||||
msgid "Main Menu"
|
msgid "Main Menu"
|
||||||
msgstr "Главное меню"
|
msgstr "Главное меню"
|
||||||
|
|
||||||
#: data/gtk/window.blp:210 data/gtk/window.blp:273
|
#: data/gtk/window.blp:300
|
||||||
msgid "Search"
|
|
||||||
msgstr "Поиск"
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:261
|
|
||||||
msgid "Hidden Games"
|
msgid "Hidden Games"
|
||||||
msgstr "Скрытые игры"
|
msgstr "Скрытые игры"
|
||||||
|
|
||||||
#: data/gtk/window.blp:321
|
#: data/gtk/window.blp:360
|
||||||
msgid "Sort"
|
msgid "Sort"
|
||||||
msgstr "Сортировать"
|
msgstr "Сортировать"
|
||||||
|
|
||||||
#: data/gtk/window.blp:324
|
#: data/gtk/window.blp:363
|
||||||
msgid "A-Z"
|
msgid "A-Z"
|
||||||
msgstr "А-Я"
|
msgstr "А-Я"
|
||||||
|
|
||||||
#: data/gtk/window.blp:330
|
#: data/gtk/window.blp:369
|
||||||
msgid "Z-A"
|
msgid "Z-A"
|
||||||
msgstr "Я-А"
|
msgstr "Я-А"
|
||||||
|
|
||||||
#: data/gtk/window.blp:336
|
#: data/gtk/window.blp:375
|
||||||
msgid "Newest"
|
msgid "Newest"
|
||||||
msgstr "Сначала новые"
|
msgstr "Сначала новые"
|
||||||
|
|
||||||
#: data/gtk/window.blp:342
|
#: data/gtk/window.blp:381
|
||||||
msgid "Oldest"
|
msgid "Oldest"
|
||||||
msgstr "Сначала старые"
|
msgstr "Сначала старые"
|
||||||
|
|
||||||
#: data/gtk/window.blp:348
|
#: data/gtk/window.blp:387
|
||||||
msgid "Last Played"
|
msgid "Last Played"
|
||||||
msgstr "Последняя игра"
|
msgstr "Последняя игра"
|
||||||
|
|
||||||
#: data/gtk/window.blp:355
|
#: data/gtk/window.blp:394
|
||||||
msgid "Show Hidden"
|
msgid "Show Hidden"
|
||||||
msgstr "Показать скрытые"
|
msgstr "Показать скрытые"
|
||||||
|
|
||||||
#: data/gtk/window.blp:368
|
#: data/gtk/window.blp:407
|
||||||
msgid "Keyboard Shortcuts"
|
msgid "Keyboard Shortcuts"
|
||||||
msgstr "Комбинации клавиш"
|
msgstr "Комбинации клавиш"
|
||||||
|
|
||||||
#: data/gtk/window.blp:373
|
#: data/gtk/window.blp:412
|
||||||
msgid "About Cartridges"
|
msgid "About Cartridges"
|
||||||
msgstr "О приложении"
|
msgstr "О приложении"
|
||||||
|
|
||||||
#: data/gtk/window.blp:388
|
|
||||||
msgid "Import from"
|
|
||||||
msgstr "Импортировать из"
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:390 data/gtk/preferences.blp:40
|
|
||||||
msgid "Steam"
|
|
||||||
msgstr "Steam"
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:395 data/gtk/preferences.blp:78
|
|
||||||
msgid "Heroic"
|
|
||||||
msgstr "Heroic"
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:400 data/gtk/preferences.blp:116
|
|
||||||
msgid "Bottles"
|
|
||||||
msgstr "Bottles"
|
|
||||||
|
|
||||||
#: data/gtk/game.blp:60 src/utils/create_details_window.py:94
|
|
||||||
msgid "Title"
|
|
||||||
msgstr "Название"
|
|
||||||
|
|
||||||
#: data/gtk/game.blp:82 data/gtk/game.blp:101
|
|
||||||
msgid "Edit"
|
|
||||||
msgstr "Редактировать"
|
|
||||||
|
|
||||||
#: data/gtk/game.blp:87
|
|
||||||
msgid "Hide"
|
|
||||||
msgstr "Скрыть"
|
|
||||||
|
|
||||||
#: data/gtk/game.blp:92 data/gtk/game.blp:111
|
|
||||||
msgid "Remove"
|
|
||||||
msgstr "Удалить"
|
|
||||||
|
|
||||||
#: data/gtk/game.blp:106
|
|
||||||
msgid "Unhide"
|
|
||||||
msgstr "Показать"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:11
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "General"
|
|
||||||
msgstr "Основное"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:14
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Quit"
|
|
||||||
msgstr "Выйти"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:19
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Search"
|
|
||||||
msgstr "Поиск"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:24
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Show preferences"
|
|
||||||
msgstr "Показать параметры"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:29
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Shortcuts"
|
|
||||||
msgstr "Комбинации клавиш"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:34
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Undo"
|
|
||||||
msgstr "Отменить"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:39
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Open menu"
|
|
||||||
msgstr "Открыть меню"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:45
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Games"
|
|
||||||
msgstr "Игры"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:48
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Add new game"
|
|
||||||
msgstr "Добавить новую игру"
|
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:53
|
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Show hidden games"
|
|
||||||
msgstr "Показать скрытые игры"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:10
|
|
||||||
msgid "General"
|
|
||||||
msgstr "Основное"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:13
|
|
||||||
msgid "Exit After Launching Games"
|
|
||||||
msgstr "Выход после запуска игр"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:21
|
|
||||||
msgid "Cover Image Launches Game"
|
|
||||||
msgstr "Запуск игры используя изображение обложки"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:22
|
|
||||||
msgid "Swaps the behavior of the cover image and the play button"
|
|
||||||
msgstr "Меняет местами поведение изображения обложки и кнопки запуска"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:30
|
|
||||||
msgid "High Quality Images"
|
|
||||||
msgstr "Изображения высокого качества"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:31
|
|
||||||
msgid "Save game covers losslessly at the cost of storage"
|
|
||||||
msgstr "Сохранение обложек игр без потерь за счет хранилища"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:43
|
|
||||||
msgid "Steam Install Location"
|
|
||||||
msgstr "Место установки Steam"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:44 data/gtk/preferences.blp:82
|
|
||||||
#: data/gtk/preferences.blp:120
|
|
||||||
msgid "Directory to use when importing games"
|
|
||||||
msgstr "Каталог для импорта игр"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:52
|
|
||||||
msgid "Extra Steam Libraries"
|
|
||||||
msgstr "Дополнительные библиотеки Steam"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:53
|
|
||||||
msgid "Select other directories where you have Steam games installed"
|
|
||||||
msgstr "Выберите другие каталоги, в которых у вас установлены игры из Steam"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:60
|
|
||||||
msgid "Clear"
|
|
||||||
msgstr "Очистить"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:81
|
|
||||||
msgid "Heroic Install Location"
|
|
||||||
msgstr "Место установки Heroic"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:91
|
|
||||||
msgid "Import Epic Games"
|
|
||||||
msgstr "Импорт игр Epic"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:99
|
|
||||||
msgid "Import GOG Games"
|
|
||||||
msgstr "Импорт игр GOG"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:107
|
|
||||||
msgid "Import Sideloaded Games"
|
|
||||||
msgstr "Импорт сторонних игр"
|
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:119
|
|
||||||
msgid "Bottles Install Location"
|
|
||||||
msgstr "Место установки Bottles"
|
|
||||||
|
|
||||||
#. Translators: Replace this with your name for it to show up in the about window
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
#: src/main.py:130
|
#: src/main.py:137
|
||||||
msgid "translator_credits"
|
msgid "translator_credits"
|
||||||
msgstr "Ser82-png"
|
msgstr "Ser82-png"
|
||||||
|
|
||||||
#: src/main.py:193
|
#. The variable is the title of the game
|
||||||
#, python-brace-format
|
#: src/main.py:164
|
||||||
msgid "{title} removed"
|
msgid "{} launched"
|
||||||
msgstr "{title} удалена"
|
msgstr "{} - запущена"
|
||||||
|
|
||||||
#: src/main.py:194
|
#. The variable is the title of the game
|
||||||
msgid "Undo"
|
#: src/main.py:182
|
||||||
msgstr "Отменить"
|
msgid "{} hidden"
|
||||||
|
msgstr "{} - скрытая"
|
||||||
|
|
||||||
#: src/window.py:234
|
#. The variable is the title of the game
|
||||||
|
#: src/main.py:185
|
||||||
|
msgid "{} unhidden"
|
||||||
|
msgstr "{} - не скрыта"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/main.py:241
|
||||||
|
msgid "{} removed"
|
||||||
|
msgstr "{} удалена"
|
||||||
|
|
||||||
|
#: src/window.py:262
|
||||||
msgid "Today"
|
msgid "Today"
|
||||||
msgstr "Сегодня"
|
msgstr "Сегодня"
|
||||||
|
|
||||||
#: src/window.py:236
|
#: src/window.py:264
|
||||||
msgid "Yesterday"
|
msgid "Yesterday"
|
||||||
msgstr "Вчера"
|
msgstr "Вчера"
|
||||||
|
|
||||||
#. The variable is the date when the game was added
|
#. The variable is the date when the game was added
|
||||||
#: src/window.py:270
|
#: src/window.py:310
|
||||||
#, python-brace-format
|
msgid "Added: {}"
|
||||||
msgid "Added: {date}"
|
msgstr "Добавлено: {}"
|
||||||
msgstr "Добавлено: {date}"
|
|
||||||
|
|
||||||
#: src/window.py:275
|
#: src/window.py:315
|
||||||
msgid "Never"
|
msgid "Never"
|
||||||
msgstr "Никогда"
|
msgstr "Никогда"
|
||||||
|
|
||||||
#. The variable is the date when the game was last played
|
#. The variable is the date when the game was last played
|
||||||
#: src/window.py:279
|
#: src/window.py:319
|
||||||
#, python-brace-format
|
msgid "Last played: {}"
|
||||||
msgid "Last played: {last_played_date}"
|
msgstr "Последняя игра: {}"
|
||||||
msgstr "Последняя игра: {last_played_date}"
|
|
||||||
|
|
||||||
#: src/game.py:173
|
#: src/game.py:156
|
||||||
msgid "Details"
|
msgid "Details"
|
||||||
msgstr "Подробности"
|
msgstr "Подробности"
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:80 src/utils/heroic_parser.py:87
|
#: src/preferences.py:54
|
||||||
#: src/utils/steam_parser.py:245
|
msgid "Installation Not Found"
|
||||||
msgid "Couldn't Import Games"
|
msgstr "Установка не найдена"
|
||||||
msgstr "Не удалось импортировать игры"
|
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:81
|
#. The variable is the name of the game launcher
|
||||||
msgid "The Bottles directory cannot be found."
|
#: src/preferences.py:56
|
||||||
msgstr "Не удалось найти каталог Bottles."
|
msgid "Select the {} configuration directory."
|
||||||
|
msgstr "Выберите каталог конфигурации {}."
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:83
|
#. The variable is the name of the game launcher
|
||||||
msgid "Set Bottles Location"
|
#: src/preferences.py:59
|
||||||
msgstr "Установить расположение Bottles"
|
msgid "Select the {} data directory."
|
||||||
|
msgstr "Выберите каталог данных {}."
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:141
|
#: src/preferences.py:61 src/preferences.py:240
|
||||||
msgid "No new games were found in the Bottles library."
|
msgid "Set Location"
|
||||||
msgstr "В библиотеке Bottles не было найдено новых игр."
|
msgstr "Установить расположение"
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:146 src/utils/bottles_parser.py:153
|
#: src/preferences.py:132
|
||||||
msgid "Bottles Games Imported"
|
msgid "All games removed"
|
||||||
msgstr "Игры Bottles импортированы"
|
msgstr "Все игры удалены"
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:147 src/utils/heroic_parser.py:257
|
#: src/preferences.py:237
|
||||||
#: src/utils/steam_parser.py:177
|
msgid "Cache Not Found"
|
||||||
msgid "Successfully imported 1 game."
|
msgstr "Кэш не найден"
|
||||||
msgstr "Успешно импортирована 1 игра."
|
|
||||||
|
|
||||||
#. The variable is the number of games
|
#: src/preferences.py:238
|
||||||
#: src/utils/bottles_parser.py:155 src/utils/heroic_parser.py:265
|
msgid "Select the Lutris cache directory."
|
||||||
#: src/utils/steam_parser.py:185
|
msgstr "Выберите каталог кэша Lutris."
|
||||||
#, python-brace-format
|
|
||||||
msgid "Successfully imported {games_no} games."
|
|
||||||
msgstr "Успешно импортировано {games_no} игр."
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:41
|
#: src/preferences.py:344
|
||||||
|
msgid ""
|
||||||
|
"An API key is required to use SteamGridDB. You can generate one {}here{}."
|
||||||
|
msgstr ""
|
||||||
|
"Для использования SteamGridDB требуется ключ API. Вы можете сгенерировать "
|
||||||
|
"его {}здесь{}."
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:81
|
||||||
msgid "Add New Game"
|
msgid "Add New Game"
|
||||||
msgstr "Добавить новую игру"
|
msgstr "Добавить новую игру"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:46
|
#: src/utils/create_details_window.py:85
|
||||||
msgid "Confirm"
|
msgid "Confirm"
|
||||||
msgstr "Подтвердить"
|
msgstr "Подтвердить"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:57
|
#: src/utils/create_details_window.py:96
|
||||||
msgid "Apply"
|
msgid "Apply"
|
||||||
msgstr "Применить"
|
msgstr "Применить"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:59
|
#: src/utils/create_details_window.py:130
|
||||||
msgid "Images"
|
|
||||||
msgstr "Изображения"
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:95
|
|
||||||
msgid "The title of the game"
|
msgid "The title of the game"
|
||||||
msgstr "Название игры"
|
msgstr "Название игры"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:100
|
#: src/utils/create_details_window.py:135
|
||||||
msgid "Developer"
|
msgid "Developer"
|
||||||
msgstr "Разработчик"
|
msgstr "Разработчик"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:101
|
#: src/utils/create_details_window.py:136
|
||||||
msgid "The developer or publisher (optional)"
|
msgid "The developer or publisher (optional)"
|
||||||
msgstr "Разработчик или издатель (необязательно)"
|
msgstr "Разработчик или издатель (необязательно)"
|
||||||
|
|
||||||
#. Translate this string as you would translate "file"
|
#. Translate this string as you would translate "file"
|
||||||
#: src/utils/create_details_window.py:112
|
#: src/utils/create_details_window.py:147
|
||||||
msgid "file.txt"
|
msgid "file.txt"
|
||||||
msgstr "file.txt"
|
msgstr "file.txt"
|
||||||
|
|
||||||
#. As in software
|
#. As in software
|
||||||
#: src/utils/create_details_window.py:114
|
#: src/utils/create_details_window.py:149
|
||||||
msgid "program"
|
msgid "program"
|
||||||
msgstr "программа"
|
msgstr "программа"
|
||||||
|
|
||||||
#. Translate this string as you would translate "path to {exe_name}"
|
#. Translate this string as you would translate "path to {}"
|
||||||
#: src/utils/create_details_window.py:119
|
#: src/utils/create_details_window.py:154
|
||||||
#, python-brace-format
|
#: src/utils/create_details_window.py:156
|
||||||
msgid "C:\\path\\to\\{exe_name}"
|
msgid "C:\\path\\to\\{}"
|
||||||
msgstr "C:\\path\\to\\{exe_name}"
|
msgstr "C:\\путь\\к\\{}"
|
||||||
|
|
||||||
#. Translate this string as you would translate "path to {file_name}"
|
#. Translate this string as you would translate "path to {}"
|
||||||
#: src/utils/create_details_window.py:121
|
#: src/utils/create_details_window.py:160
|
||||||
#, python-brace-format
|
#: src/utils/create_details_window.py:162
|
||||||
msgid "C:\\path\\to\\{file_name}"
|
msgid "/path/to/{}"
|
||||||
msgstr "C:\\path\\to\\{file_name}"
|
msgstr "/путь/к/{}"
|
||||||
|
|
||||||
#. Translate this string as you would translate "path to {exe_name}"
|
#: src/utils/create_details_window.py:166
|
||||||
#: src/utils/create_details_window.py:125
|
|
||||||
#, python-brace-format
|
|
||||||
msgid "/path/to/{exe_name}"
|
|
||||||
msgstr "/path/to/{exe_name}"
|
|
||||||
|
|
||||||
#. Translate this string as you would translate "path to {file_name}"
|
|
||||||
#: src/utils/create_details_window.py:127
|
|
||||||
#, python-brace-format
|
|
||||||
msgid "/path/to/{file_name}"
|
|
||||||
msgstr "/path/to/{file_name}"
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:131
|
|
||||||
#, python-brace-format
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"To launch the executable \"{exe_name}\", use the command:\n"
|
"To launch the executable \"{}\", use the command:\n"
|
||||||
"\n"
|
"\n"
|
||||||
"<tt>\"{exe_path}\"</tt>\n"
|
"<tt>\"{}\"</tt>\n"
|
||||||
"\n"
|
"\n"
|
||||||
"To open the file \"{file_name}\" with the default application, use:\n"
|
"To open the file \"{}\" with the default application, use:\n"
|
||||||
"\n"
|
"\n"
|
||||||
"<tt>{command} \"{file_path}\"</tt>\n"
|
"<tt>{} \"{}\"</tt>\n"
|
||||||
"\n"
|
"\n"
|
||||||
"If the path contains spaces, make sure to wrap it in double quotes!"
|
"If the path contains spaces, make sure to wrap it in double quotes!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Чтобы запустить исполняемый файл \"{exe_name}\", выполните команду:\n"
|
"Чтобы запустить исполняемый файл \"{}\", выполните команду:\n"
|
||||||
"\n"
|
"\n"
|
||||||
"<tt>\"{exe_path}\"</tt>\n"
|
"<tt>\"{}\"</tt>\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Чтобы открыть файл \"{file_name}\" с помощью приложения по умолчанию, "
|
"Чтобы открыть файл \"{}\" с помощью приложения по умолчанию, используйте:\n"
|
||||||
"используйте:\n"
|
|
||||||
"\n"
|
"\n"
|
||||||
"<tt>{command} \"{file_path}\"</tt>\n"
|
"<tt>{} \"{}\"</tt>\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Если путь содержит пробелы, обязательно заключите его в двойные кавычки!"
|
"Если путь содержит пробелы, обязательно заключите его в двойные кавычки!"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:154
|
#: src/utils/create_details_window.py:189
|
||||||
msgid "Executable"
|
msgid "Executable"
|
||||||
msgstr "Исполняемый"
|
msgstr "Исполняемый"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:155
|
#: src/utils/create_details_window.py:190
|
||||||
msgid "File to open or command to run when launching the game"
|
msgid "File to open or command to run when launching the game"
|
||||||
msgstr "Файл для открытия или команда для запуска при запуске игры"
|
msgstr "Файл для открытия или команда для запуска игры"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:167
|
#: src/utils/create_details_window.py:202
|
||||||
msgid "Cancel"
|
msgid "Cancel"
|
||||||
msgstr "Отменить"
|
msgstr "Отменить"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:217
|
#: src/utils/create_details_window.py:259
|
||||||
#: src/utils/create_details_window.py:227
|
#: src/utils/create_details_window.py:269
|
||||||
#: src/utils/create_details_window.py:233
|
#: src/utils/create_details_window.py:275
|
||||||
msgid "Couldn't Add Game"
|
msgid "Couldn't Add Game"
|
||||||
msgstr "Не удалось добавить игру"
|
msgstr "Не удалось добавить игру"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:219
|
#: src/utils/create_details_window.py:261
|
||||||
#: src/utils/create_details_window.py:257
|
#: src/utils/create_details_window.py:299
|
||||||
#: src/utils/create_details_window.py:265
|
#: src/utils/create_details_window.py:307
|
||||||
msgid "Couldn't Apply Preferences"
|
msgid "Couldn't Apply Preferences"
|
||||||
msgstr "Не удалось применить параметры"
|
msgstr "Не удалось применить параметры"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:227
|
#: src/utils/create_details_window.py:269
|
||||||
#: src/utils/create_details_window.py:258
|
#: src/utils/create_details_window.py:300
|
||||||
msgid "Game title cannot be empty."
|
msgid "Game title cannot be empty."
|
||||||
msgstr "Название игры не может быть пустым."
|
msgstr "Название игры не может быть пустым."
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:233
|
#: src/utils/create_details_window.py:275
|
||||||
#: src/utils/create_details_window.py:266
|
#: src/utils/create_details_window.py:308
|
||||||
msgid "Executable cannot be empty."
|
msgid "Executable cannot be empty."
|
||||||
msgstr "Исполняемый файл не может быть пустым."
|
msgstr "Исполняемый файл не может быть пустым."
|
||||||
|
|
||||||
@@ -508,42 +569,124 @@ msgstr "Исполняемый файл не может быть пустым."
|
|||||||
msgid "Dismiss"
|
msgid "Dismiss"
|
||||||
msgstr "Отклонить"
|
msgstr "Отклонить"
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:88
|
#: src/utils/importer.py:42
|
||||||
msgid "The Heroic directory cannot be found."
|
|
||||||
msgstr "Не удалось найти каталог Heroic."
|
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:90
|
|
||||||
msgid "Set Heroic Location"
|
|
||||||
msgstr "Установить расположение Heroic"
|
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:251
|
|
||||||
msgid "No new games were found in the Heroic library."
|
|
||||||
msgstr "В библиотеке Heroic не было найдено новых игр."
|
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:256 src/utils/heroic_parser.py:263
|
|
||||||
msgid "Heroic Games Imported"
|
|
||||||
msgstr "Игры Heroic импортированы"
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:168
|
|
||||||
msgid "No new games were found in the Steam library."
|
|
||||||
msgstr "В библиотеке Steam новых игр не найдено."
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:176 src/utils/steam_parser.py:183
|
|
||||||
msgid "Steam Games Imported"
|
|
||||||
msgstr "Игры Steam импортированы"
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:246
|
|
||||||
msgid "The Steam directory cannot be found."
|
|
||||||
msgstr "Не удалось найти каталог Steam."
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:248
|
|
||||||
msgid "Set Steam Location"
|
|
||||||
msgstr "Установить расположение Steam"
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:265
|
|
||||||
msgid "Importing Games…"
|
msgid "Importing Games…"
|
||||||
msgstr "Импорт игр…"
|
msgstr "Импорт игр…"
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:266
|
#: src/utils/importer.py:77
|
||||||
msgid "Talking to Steam"
|
msgid "Importing Covers…"
|
||||||
msgstr "Общение со Steam"
|
msgstr "Импорт обложек…"
|
||||||
|
|
||||||
|
#: src/utils/importer.py:92
|
||||||
|
msgid "No new games were found on your system."
|
||||||
|
msgstr "В вашей системе не найдено новых игр."
|
||||||
|
|
||||||
|
#: src/utils/importer.py:100
|
||||||
|
msgid "Game Imported"
|
||||||
|
msgstr "Игра импортирована"
|
||||||
|
|
||||||
|
#: src/utils/importer.py:101
|
||||||
|
msgid "Successfully imported 1 game."
|
||||||
|
msgstr "Успешно импортирована 1 игра."
|
||||||
|
|
||||||
|
#: src/utils/importer.py:107
|
||||||
|
msgid "Games Imported"
|
||||||
|
msgstr "Игры импортированы"
|
||||||
|
|
||||||
|
#. The variable is the number of games
|
||||||
|
#: src/utils/importer.py:109
|
||||||
|
msgid "Successfully imported {} games."
|
||||||
|
msgstr "Успешно импортировано {} игр."
|
||||||
|
|
||||||
|
#: src/utils/importer.py:120 src/utils/steamgriddb.py:113
|
||||||
|
msgid "Couldn't Connect to SteamGridDB"
|
||||||
|
msgstr "Не удалось подключиться к SteamGridDB"
|
||||||
|
|
||||||
|
#: src/utils/importer.py:145
|
||||||
|
msgid ""
|
||||||
|
"Looks like you have multiple Steam libraries. Would you like to add them in "
|
||||||
|
"preferences?"
|
||||||
|
msgstr ""
|
||||||
|
"Похоже, у вас несколько библиотек Steam. Хотите добавить их в параметрах?"
|
||||||
|
|
||||||
|
#~ msgid "Launch your games"
|
||||||
|
#~ msgstr "Запускайте свои игры"
|
||||||
|
|
||||||
|
#, python-brace-format
|
||||||
|
#~ msgid "Last played: {last_played_date}"
|
||||||
|
#~ msgstr "Последняя игра: {last_played_date}"
|
||||||
|
|
||||||
|
#, python-brace-format
|
||||||
|
#~ msgid "Successfully imported {games_no} games."
|
||||||
|
#~ msgstr "Успешно импортировано {games_no} игр."
|
||||||
|
|
||||||
|
#, python-brace-format
|
||||||
|
#~ msgid "C:\\path\\to\\{file_name}"
|
||||||
|
#~ msgstr "C:\\путь\\к\\{file_name}"
|
||||||
|
|
||||||
|
#, python-brace-format
|
||||||
|
#~ msgid "/path/to/{file_name}"
|
||||||
|
#~ msgstr "/путь/к/{file_name}"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "General"
|
||||||
|
#~ msgctxt "shortcuts window"
|
||||||
|
#~ msgid "General"
|
||||||
|
#~ msgstr "Основное"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "Search"
|
||||||
|
#~ msgctxt "shortcuts window"
|
||||||
|
#~ msgid "Search"
|
||||||
|
#~ msgstr "Поиск"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "Undo"
|
||||||
|
#~ msgctxt "shortcuts window"
|
||||||
|
#~ msgid "Undo"
|
||||||
|
#~ msgstr "Отменить"
|
||||||
|
|
||||||
|
#~ msgid "First stable release"
|
||||||
|
#~ msgstr "Первый стабильный выпуск"
|
||||||
|
|
||||||
|
#~ msgctxt "shortcut window"
|
||||||
|
#~ msgid "General"
|
||||||
|
#~ msgstr "Основное"
|
||||||
|
|
||||||
|
#~ msgctxt "shortcut window"
|
||||||
|
#~ msgid "Search"
|
||||||
|
#~ msgstr "Поиск"
|
||||||
|
|
||||||
|
#~ msgctxt "shortcut window"
|
||||||
|
#~ msgid "Undo"
|
||||||
|
#~ msgstr "Отменить"
|
||||||
|
|
||||||
|
#~ msgid "Couldn't Import Games"
|
||||||
|
#~ msgstr "Не удалось импортировать игры"
|
||||||
|
|
||||||
|
#~ msgid "The Bottles directory cannot be found."
|
||||||
|
#~ msgstr "Не удалось найти каталог Bottles."
|
||||||
|
|
||||||
|
#~ msgid "Set Bottles Location"
|
||||||
|
#~ msgstr "Установить расположение Bottles"
|
||||||
|
|
||||||
|
#~ msgid "No new games were found in the Bottles library."
|
||||||
|
#~ msgstr "В библиотеке Bottles не было найдено новых игр."
|
||||||
|
|
||||||
|
#~ msgid "Bottles Games Imported"
|
||||||
|
#~ msgstr "Игры Bottles импортированы"
|
||||||
|
|
||||||
|
#~ msgid "The Heroic directory cannot be found."
|
||||||
|
#~ msgstr "Не удалось найти каталог Heroic."
|
||||||
|
|
||||||
|
#~ msgid "Heroic Games Imported"
|
||||||
|
#~ msgstr "Игры Heroic импортированы"
|
||||||
|
|
||||||
|
#~ msgid "No new games were found in the Steam library."
|
||||||
|
#~ msgstr "В библиотеке Steam новых игр не найдено."
|
||||||
|
|
||||||
|
#~ msgid "The Steam directory cannot be found."
|
||||||
|
#~ msgstr "Не удалось найти каталог Steam."
|
||||||
|
|
||||||
|
#~ msgid "Talking to Steam"
|
||||||
|
#~ msgstr "Общение со Steam"
|
||||||
|
|||||||
@@ -27,6 +27,11 @@ import gettext
|
|||||||
|
|
||||||
VERSION = "@VERSION@"
|
VERSION = "@VERSION@"
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
|
from ctypes import windll
|
||||||
|
|
||||||
|
os.environ["LANGUAGE"] = locale.windows_locale[
|
||||||
|
windll.kernel32.GetUserDefaultUILanguage()
|
||||||
|
]
|
||||||
pkgdatadir = os.path.join(os.path.dirname(__file__), "..", "share", "cartridges")
|
pkgdatadir = os.path.join(os.path.dirname(__file__), "..", "share", "cartridges")
|
||||||
localedir = os.path.join(os.path.dirname(__file__), "..", "share", "locale")
|
localedir = os.path.join(os.path.dirname(__file__), "..", "share", "locale")
|
||||||
else:
|
else:
|
||||||
|
|||||||
104
src/game.py
@@ -23,19 +23,21 @@ import shlex # pylint: disable=unused-import
|
|||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from gi.repository import GdkPixbuf, Gio, Gtk
|
from gi.repository import Gio, Gtk
|
||||||
|
|
||||||
from .save_games import save_games
|
from .game_cover import GameCover
|
||||||
|
from .save_game import save_game
|
||||||
|
|
||||||
|
|
||||||
@Gtk.Template(resource_path="/hu/kramo/Cartridges/gtk/game.ui")
|
@Gtk.Template(resource_path="/hu/kramo/Cartridges/gtk/game.ui")
|
||||||
class game(Gtk.Box): # pylint: disable=invalid-name
|
class Game(Gtk.Box):
|
||||||
__gtype_name__ = "game"
|
__gtype_name__ = "Game"
|
||||||
|
|
||||||
overlay = Gtk.Template.Child()
|
overlay = Gtk.Template.Child()
|
||||||
title = Gtk.Template.Child()
|
title = Gtk.Template.Child()
|
||||||
button_play = Gtk.Template.Child()
|
play_button = Gtk.Template.Child()
|
||||||
cover = Gtk.Template.Child()
|
cover = Gtk.Template.Child()
|
||||||
|
spinner = Gtk.Template.Child()
|
||||||
cover_button = Gtk.Template.Child()
|
cover_button = Gtk.Template.Child()
|
||||||
menu_button = Gtk.Template.Child()
|
menu_button = Gtk.Template.Child()
|
||||||
play_revealer = Gtk.Template.Child()
|
play_revealer = Gtk.Template.Child()
|
||||||
@@ -43,25 +45,29 @@ class game(Gtk.Box): # pylint: disable=invalid-name
|
|||||||
game_options = Gtk.Template.Child()
|
game_options = Gtk.Template.Child()
|
||||||
hidden_game_options = Gtk.Template.Child()
|
hidden_game_options = Gtk.Template.Child()
|
||||||
|
|
||||||
def __init__(self, parent_widget, data, **kwargs):
|
def __init__(self, win, data, **kwargs):
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
|
|
||||||
self.parent_widget = parent_widget
|
self.win = win
|
||||||
self.added = data["added"]
|
self.added = data["added"]
|
||||||
self.executable = data["executable"]
|
self.executable = data["executable"]
|
||||||
self.game_id = data["game_id"]
|
self.game_id = data["game_id"]
|
||||||
self.hidden = data["hidden"]
|
self.hidden = data["hidden"]
|
||||||
self.last_played = data["last_played"]
|
self.last_played = data["last_played"]
|
||||||
self.name = data["name"]
|
self.name = data["name"]
|
||||||
self.developer = data["developer"] if "developer" in data.keys() else None
|
self.developer = data["developer"] if "developer" in data else None
|
||||||
self.removed = "removed" in data.keys()
|
self.removed = "removed" in data
|
||||||
self.blacklisted = "blacklisted" in data.keys()
|
self.blacklisted = "blacklisted" in data
|
||||||
|
|
||||||
self.pixbuf = self.get_cover()
|
self.loading = 0
|
||||||
|
|
||||||
self.cover.set_pixbuf(self.pixbuf)
|
|
||||||
self.title.set_label(self.name)
|
self.title.set_label(self.name)
|
||||||
|
|
||||||
|
if self.game_id in self.win.game_covers:
|
||||||
|
self.win.game_covers[self.game_id].add_picture(self.cover)
|
||||||
|
else:
|
||||||
|
game_cover = GameCover({self.cover}, self.get_cover_path())
|
||||||
|
self.win.game_covers[self.game_id] = game_cover
|
||||||
|
|
||||||
self.event_contoller_motion = Gtk.EventControllerMotion.new()
|
self.event_contoller_motion = Gtk.EventControllerMotion.new()
|
||||||
self.add_controller(self.event_contoller_motion)
|
self.add_controller(self.event_contoller_motion)
|
||||||
self.overlay.set_measure_overlay(self.play_revealer, True)
|
self.overlay.set_measure_overlay(self.play_revealer, True)
|
||||||
@@ -69,12 +75,12 @@ class game(Gtk.Box): # pylint: disable=invalid-name
|
|||||||
self.set_play_label()
|
self.set_play_label()
|
||||||
|
|
||||||
self.cover_button.connect("clicked", self.cover_button_clicked)
|
self.cover_button.connect("clicked", self.cover_button_clicked)
|
||||||
self.button_play.connect("clicked", self.button_play_clicked)
|
self.play_button.connect("clicked", self.play_button_clicked)
|
||||||
|
|
||||||
self.event_contoller_motion.connect("enter", self.show_play)
|
self.event_contoller_motion.connect("enter", self.show_play)
|
||||||
self.event_contoller_motion.connect("leave", self.hide_play)
|
self.event_contoller_motion.connect("leave", self.hide_play)
|
||||||
|
|
||||||
self.parent_widget.schema.connect("changed", self.schema_changed)
|
self.win.schema.connect("changed", self.schema_changed)
|
||||||
|
|
||||||
if self.hidden:
|
if self.hidden:
|
||||||
self.menu_button.set_menu_model(self.hidden_game_options)
|
self.menu_button.set_menu_model(self.hidden_game_options)
|
||||||
@@ -105,43 +111,22 @@ class game(Gtk.Box): # pylint: disable=invalid-name
|
|||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
def toggle_hidden(self):
|
def toggle_hidden(self):
|
||||||
games_dir = os.path.join(
|
data = json.loads(
|
||||||
os.getenv("XDG_DATA_HOME")
|
(self.win.games_dir / f"{self.game_id}.json").read_text("utf-8")
|
||||||
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
|
||||||
"cartridges",
|
|
||||||
"games",
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if not os.path.exists(games_dir):
|
|
||||||
return
|
|
||||||
|
|
||||||
with open(os.path.join(games_dir, f"{self.game_id}.json"), "r") as open_file:
|
|
||||||
data = json.loads(open_file.read())
|
|
||||||
|
|
||||||
data["hidden"] = not data["hidden"]
|
data["hidden"] = not data["hidden"]
|
||||||
|
|
||||||
save_games({self.game_id: data})
|
save_game(self.win, data)
|
||||||
|
|
||||||
def get_cover(self):
|
def get_cover_path(self):
|
||||||
|
cover_path = self.win.covers_dir / f"{self.game_id}.gif"
|
||||||
|
if cover_path.is_file():
|
||||||
|
return cover_path
|
||||||
|
|
||||||
# If the cover is already in memory, return
|
cover_path = self.win.covers_dir / f"{self.game_id}.tiff"
|
||||||
if self.game_id in self.parent_widget.pixbufs.keys():
|
if cover_path.is_file():
|
||||||
return self.parent_widget.pixbufs[self.game_id]
|
return cover_path
|
||||||
|
|
||||||
# Create a new pixbuf
|
|
||||||
cover_path = os.path.join(
|
|
||||||
os.getenv("XDG_DATA_HOME")
|
|
||||||
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
|
||||||
"cartridges",
|
|
||||||
"covers",
|
|
||||||
f"{self.game_id}.tiff",
|
|
||||||
)
|
|
||||||
|
|
||||||
if os.path.isfile(cover_path):
|
|
||||||
return GdkPixbuf.Pixbuf.new_from_file(cover_path)
|
|
||||||
|
|
||||||
# Return the placeholder pixbuf
|
|
||||||
return self.parent_widget.placeholder_pixbuf
|
|
||||||
|
|
||||||
def show_play(self, _widget, *_unused):
|
def show_play(self, _widget, *_unused):
|
||||||
self.play_revealer.set_reveal_child(True)
|
self.play_revealer.set_reveal_child(True)
|
||||||
@@ -153,27 +138,34 @@ class game(Gtk.Box): # pylint: disable=invalid-name
|
|||||||
self.title_revealer.set_reveal_child(True)
|
self.title_revealer.set_reveal_child(True)
|
||||||
|
|
||||||
def launch_game(self, _widget, *_unused):
|
def launch_game(self, _widget, *_unused):
|
||||||
self.parent_widget.set_active_game(None, None, self.game_id)
|
self.win.set_active_game(None, None, self.game_id)
|
||||||
self.parent_widget.get_application().on_launch_game_action(None)
|
self.win.get_application().on_launch_game_action(None)
|
||||||
|
|
||||||
def cover_button_clicked(self, _widget):
|
def cover_button_clicked(self, _widget):
|
||||||
if self.parent_widget.schema.get_boolean("cover-launches-game"):
|
if self.win.schema.get_boolean("cover-launches-game"):
|
||||||
self.launch_game(None)
|
self.launch_game(None)
|
||||||
else:
|
else:
|
||||||
self.parent_widget.show_overview(None, self.game_id)
|
self.win.show_details_view(None, self.game_id)
|
||||||
|
|
||||||
def button_play_clicked(self, _widget):
|
def play_button_clicked(self, _widget):
|
||||||
if self.parent_widget.schema.get_boolean("cover-launches-game"):
|
if self.win.schema.get_boolean("cover-launches-game"):
|
||||||
self.parent_widget.show_overview(None, self.game_id)
|
self.win.show_details_view(None, self.game_id)
|
||||||
else:
|
else:
|
||||||
self.launch_game(None)
|
self.launch_game(None)
|
||||||
|
|
||||||
def set_play_label(self):
|
def set_play_label(self):
|
||||||
if self.parent_widget.schema.get_boolean("cover-launches-game"):
|
if self.win.schema.get_boolean("cover-launches-game"):
|
||||||
self.button_play.set_label(_("Details"))
|
self.play_button.set_label(_("Details"))
|
||||||
else:
|
else:
|
||||||
self.button_play.set_label(_("Play"))
|
self.play_button.set_label(_("Play"))
|
||||||
|
|
||||||
def schema_changed(self, _settings, key):
|
def schema_changed(self, _settings, key):
|
||||||
if key == "cover-launches-game":
|
if key == "cover-launches-game":
|
||||||
self.set_play_label()
|
self.set_play_label()
|
||||||
|
|
||||||
|
def set_loading(self, state):
|
||||||
|
self.loading += state
|
||||||
|
loading = self.loading > 0
|
||||||
|
|
||||||
|
self.cover.set_opacity(int(not loading))
|
||||||
|
self.spinner.set_spinning(loading)
|
||||||
|
|||||||
100
src/game_cover.py
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
# game_cover.py
|
||||||
|
#
|
||||||
|
# Copyright 2022-2023 kramo
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
from gi.repository import GdkPixbuf, Gio, GLib
|
||||||
|
|
||||||
|
|
||||||
|
class GameCover:
|
||||||
|
pixbuf = None
|
||||||
|
path = None
|
||||||
|
animation = None
|
||||||
|
anim_iter = None
|
||||||
|
|
||||||
|
placeholder_pixbuf = GdkPixbuf.Pixbuf.new_from_resource_at_scale(
|
||||||
|
"/hu/kramo/Cartridges/library_placeholder.svg", 400, 600, False
|
||||||
|
)
|
||||||
|
|
||||||
|
def __init__(self, pictures, path=None):
|
||||||
|
self.pictures = pictures
|
||||||
|
self.new_pixbuf(path)
|
||||||
|
|
||||||
|
# Wrap the function in another one as Gio.Task.run_in_thread does not allow for passing args
|
||||||
|
def create_func(self, path):
|
||||||
|
self.animation = GdkPixbuf.PixbufAnimation.new_from_file(str(path))
|
||||||
|
self.anim_iter = self.animation.get_iter()
|
||||||
|
|
||||||
|
def wrapper(task, *_unused):
|
||||||
|
self.update_animation((task, self.animation))
|
||||||
|
|
||||||
|
return wrapper
|
||||||
|
|
||||||
|
def new_pixbuf(self, path=None):
|
||||||
|
self.animation = None
|
||||||
|
self.pixbuf = None
|
||||||
|
self.path = path
|
||||||
|
|
||||||
|
if path:
|
||||||
|
if str(path).rsplit(".", maxsplit=1)[-1] == "gif":
|
||||||
|
task = Gio.Task.new()
|
||||||
|
task.run_in_thread(self.create_func(self.path))
|
||||||
|
else:
|
||||||
|
self.pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(
|
||||||
|
str(path), 200, 300, False
|
||||||
|
)
|
||||||
|
|
||||||
|
if not self.animation:
|
||||||
|
self.set_pixbuf(self.pixbuf)
|
||||||
|
|
||||||
|
def get_pixbuf(self):
|
||||||
|
return self.animation.get_static_image() if self.animation else self.pixbuf
|
||||||
|
|
||||||
|
def get_animation(self):
|
||||||
|
return self.path if self.animation else None
|
||||||
|
|
||||||
|
def add_picture(self, picture):
|
||||||
|
self.pictures.add(picture)
|
||||||
|
if not self.animation:
|
||||||
|
self.set_pixbuf(self.pixbuf)
|
||||||
|
|
||||||
|
def set_pixbuf(self, pixbuf):
|
||||||
|
self.pictures.discard(
|
||||||
|
picture for picture in self.pictures if not picture.is_visible()
|
||||||
|
)
|
||||||
|
if not self.pictures:
|
||||||
|
self.animation = None
|
||||||
|
else:
|
||||||
|
for picture in self.pictures:
|
||||||
|
if not pixbuf:
|
||||||
|
pixbuf = self.placeholder_pixbuf
|
||||||
|
picture.set_pixbuf(pixbuf)
|
||||||
|
|
||||||
|
def update_animation(self, data):
|
||||||
|
if self.animation == data[1]:
|
||||||
|
self.anim_iter.advance()
|
||||||
|
|
||||||
|
self.set_pixbuf(self.anim_iter.get_pixbuf())
|
||||||
|
|
||||||
|
delay_time = self.anim_iter.get_delay_time()
|
||||||
|
GLib.timeout_add(
|
||||||
|
20 if delay_time < 20 else delay_time,
|
||||||
|
self.update_animation,
|
||||||
|
data,
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
data[0].return_value(False)
|
||||||
96
src/importers/bottles_importer.py
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
# bottles_importer.py
|
||||||
|
#
|
||||||
|
# Copyright 2022-2023 kramo
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
from pathlib import Path
|
||||||
|
from time import time
|
||||||
|
|
||||||
|
import yaml
|
||||||
|
|
||||||
|
from .check_install import check_install
|
||||||
|
|
||||||
|
|
||||||
|
def bottles_installed(win, path=None):
|
||||||
|
location_key = "bottles-location"
|
||||||
|
bottles_dir = (
|
||||||
|
path if path else Path(win.schema.get_string(location_key)).expanduser()
|
||||||
|
)
|
||||||
|
check = "library.yml"
|
||||||
|
|
||||||
|
if not (bottles_dir / check).is_file():
|
||||||
|
locations = (
|
||||||
|
(Path(),)
|
||||||
|
if path
|
||||||
|
else (
|
||||||
|
Path.home() / ".var/app/com.usebottles.bottles/data/bottles",
|
||||||
|
win.data_dir / "bottles",
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
bottles_dir = check_install(check, locations, (win.schema, location_key))
|
||||||
|
|
||||||
|
return bottles_dir
|
||||||
|
|
||||||
|
|
||||||
|
def bottles_importer(win):
|
||||||
|
bottles_dir = bottles_installed(win)
|
||||||
|
if not bottles_dir:
|
||||||
|
return
|
||||||
|
|
||||||
|
current_time = int(time())
|
||||||
|
|
||||||
|
data = (bottles_dir / "library.yml").read_text("utf-8")
|
||||||
|
|
||||||
|
library = yaml.load(data, Loader=yaml.Loader)
|
||||||
|
|
||||||
|
importer = win.importer
|
||||||
|
importer.total_queue += len(library)
|
||||||
|
importer.queue += len(library)
|
||||||
|
|
||||||
|
for game in library:
|
||||||
|
game = library[game]
|
||||||
|
values = {}
|
||||||
|
|
||||||
|
values["game_id"] = f'bottles_{game["id"]}'
|
||||||
|
|
||||||
|
if values["game_id"] in win.games and not win.games[values["game_id"]].removed:
|
||||||
|
importer.save_game()
|
||||||
|
continue
|
||||||
|
|
||||||
|
values["name"] = game["name"]
|
||||||
|
values["executable"] = [
|
||||||
|
"xdg-open",
|
||||||
|
f'bottles:run/{game["bottle"]["name"]}/{game["name"]}',
|
||||||
|
]
|
||||||
|
values["hidden"] = False
|
||||||
|
values["source"] = "bottles"
|
||||||
|
values["added"] = current_time
|
||||||
|
values["last_played"] = 0
|
||||||
|
|
||||||
|
importer.save_game(
|
||||||
|
values,
|
||||||
|
(
|
||||||
|
bottles_dir
|
||||||
|
/ "bottles"
|
||||||
|
/ game["bottle"]["path"]
|
||||||
|
/ "grids"
|
||||||
|
/ game["thumbnail"].split(":")[1]
|
||||||
|
)
|
||||||
|
if game["thumbnail"]
|
||||||
|
else None,
|
||||||
|
)
|
||||||
205
src/importers/heroic_importer.py
Normal file
@@ -0,0 +1,205 @@
|
|||||||
|
# heroic_importer.py
|
||||||
|
#
|
||||||
|
# Copyright 2022-2023 kramo
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
import hashlib
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
from pathlib import Path
|
||||||
|
from time import time
|
||||||
|
|
||||||
|
from .check_install import check_install
|
||||||
|
|
||||||
|
|
||||||
|
def heroic_installed(win, path=None):
|
||||||
|
location_key = "heroic-location"
|
||||||
|
heroic_dir = (
|
||||||
|
path if path else Path(win.schema.get_string(location_key)).expanduser()
|
||||||
|
)
|
||||||
|
check = "config.json"
|
||||||
|
|
||||||
|
if not (heroic_dir / check).is_file():
|
||||||
|
locations = (
|
||||||
|
(Path(),)
|
||||||
|
if path
|
||||||
|
else (
|
||||||
|
Path.home() / ".var/app/com.heroicgameslauncher.hgl/config/heroic",
|
||||||
|
win.config_dir / "heroic",
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
if os.name == "nt" and not path:
|
||||||
|
locations += (Path(os.getenv("appdata")) / "heroic",)
|
||||||
|
|
||||||
|
heroic_dir = check_install(check, locations, (win.schema, location_key))
|
||||||
|
|
||||||
|
return heroic_dir
|
||||||
|
|
||||||
|
|
||||||
|
def heroic_importer(win):
|
||||||
|
heroic_dir = heroic_installed(win)
|
||||||
|
if not heroic_dir:
|
||||||
|
return
|
||||||
|
|
||||||
|
current_time = int(time())
|
||||||
|
importer = win.importer
|
||||||
|
|
||||||
|
# Import Epic games
|
||||||
|
if not win.schema.get_boolean("heroic-import-epic"):
|
||||||
|
pass
|
||||||
|
elif (heroic_dir / "store_cache" / "legendary_library.json").exists():
|
||||||
|
data = (heroic_dir / "store_cache" / "legendary_library.json").read_text(
|
||||||
|
"utf-8"
|
||||||
|
)
|
||||||
|
library = json.loads(data)
|
||||||
|
|
||||||
|
try:
|
||||||
|
for game in library["library"]:
|
||||||
|
if not game["is_installed"]:
|
||||||
|
continue
|
||||||
|
|
||||||
|
importer.total_queue += 1
|
||||||
|
importer.queue += 1
|
||||||
|
|
||||||
|
values = {}
|
||||||
|
|
||||||
|
app_name = game["app_name"]
|
||||||
|
values["game_id"] = f"heroic_epic_{app_name}"
|
||||||
|
|
||||||
|
if (
|
||||||
|
values["game_id"] in win.games
|
||||||
|
and not win.games[values["game_id"]].removed
|
||||||
|
):
|
||||||
|
importer.save_game()
|
||||||
|
continue
|
||||||
|
|
||||||
|
values["name"] = game["title"]
|
||||||
|
values["developer"] = game["developer"]
|
||||||
|
values["executable"] = (
|
||||||
|
["start", f"heroic://launch/{app_name}"]
|
||||||
|
if os.name == "nt"
|
||||||
|
else ["xdg-open", f"heroic://launch/{app_name}"]
|
||||||
|
)
|
||||||
|
values["hidden"] = False
|
||||||
|
values["source"] = "heroic_epic"
|
||||||
|
values["added"] = current_time
|
||||||
|
values["last_played"] = 0
|
||||||
|
|
||||||
|
image_path = (
|
||||||
|
heroic_dir
|
||||||
|
/ "images-cache"
|
||||||
|
/ hashlib.sha256(
|
||||||
|
(f'{game["art_square"]}?h=400&resize=1&w=300').encode()
|
||||||
|
).hexdigest()
|
||||||
|
)
|
||||||
|
|
||||||
|
importer.save_game(values, image_path if image_path.exists() else None)
|
||||||
|
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
# Import GOG games
|
||||||
|
if not win.schema.get_boolean("heroic-import-gog"):
|
||||||
|
pass
|
||||||
|
elif (heroic_dir / "gog_store" / "installed.json").exists() and (
|
||||||
|
heroic_dir / "store_cache" / "gog_library.json"
|
||||||
|
).exists():
|
||||||
|
data = (heroic_dir / "gog_store" / "installed.json").read_text("utf-8")
|
||||||
|
installed = json.loads(data)
|
||||||
|
|
||||||
|
importer.total_queue += len(installed["installed"])
|
||||||
|
importer.queue += len(installed["installed"])
|
||||||
|
|
||||||
|
for item in installed["installed"]:
|
||||||
|
values = {}
|
||||||
|
app_name = item["appName"]
|
||||||
|
|
||||||
|
values["game_id"] = f"heroic_gog_{app_name}"
|
||||||
|
|
||||||
|
if (
|
||||||
|
values["game_id"] in win.games
|
||||||
|
and not win.games[values["game_id"]].removed
|
||||||
|
):
|
||||||
|
importer.save_game()
|
||||||
|
continue
|
||||||
|
|
||||||
|
# Get game title and developer from gog_library.json as they are not present in installed.json
|
||||||
|
data = (heroic_dir / "store_cache" / "gog_library.json").read_text("utf-8")
|
||||||
|
library = json.loads(data)
|
||||||
|
for game in library["games"]:
|
||||||
|
if game["app_name"] == app_name:
|
||||||
|
values["developer"] = game["developer"]
|
||||||
|
values["name"] = game["title"]
|
||||||
|
image_path = (
|
||||||
|
heroic_dir
|
||||||
|
/ "images-cache"
|
||||||
|
/ hashlib.sha256(game["art_square"].encode()).hexdigest()
|
||||||
|
)
|
||||||
|
|
||||||
|
values["executable"] = (
|
||||||
|
["start", f"heroic://launch/{app_name}"]
|
||||||
|
if os.name == "nt"
|
||||||
|
else ["xdg-open", f"heroic://launch/{app_name}"]
|
||||||
|
)
|
||||||
|
values["hidden"] = False
|
||||||
|
values["source"] = "heroic_gog"
|
||||||
|
values["added"] = current_time
|
||||||
|
values["last_played"] = 0
|
||||||
|
|
||||||
|
importer.save_game(values, image_path if image_path.exists() else None)
|
||||||
|
|
||||||
|
# Import sideloaded games
|
||||||
|
if not win.schema.get_boolean("heroic-import-sideload"):
|
||||||
|
pass
|
||||||
|
elif (heroic_dir / "sideload_apps" / "library.json").exists():
|
||||||
|
data = (heroic_dir / "sideload_apps" / "library.json").read_text("utf-8")
|
||||||
|
library = json.loads(data)
|
||||||
|
|
||||||
|
importer.total_queue += len(library["games"])
|
||||||
|
importer.queue += len(library["games"])
|
||||||
|
|
||||||
|
for item in library["games"]:
|
||||||
|
values = {}
|
||||||
|
app_name = item["app_name"]
|
||||||
|
|
||||||
|
values["game_id"] = f"heroic_sideload_{app_name}"
|
||||||
|
|
||||||
|
if (
|
||||||
|
values["game_id"] in win.games
|
||||||
|
and not win.games[values["game_id"]].removed
|
||||||
|
):
|
||||||
|
importer.save_game()
|
||||||
|
continue
|
||||||
|
|
||||||
|
values["name"] = item["title"]
|
||||||
|
values["executable"] = (
|
||||||
|
["start", f"heroic://launch/{app_name}"]
|
||||||
|
if os.name == "nt"
|
||||||
|
else ["xdg-open", f"heroic://launch/{app_name}"]
|
||||||
|
)
|
||||||
|
values["hidden"] = False
|
||||||
|
values["source"] = "heroic_sideload"
|
||||||
|
values["added"] = current_time
|
||||||
|
values["last_played"] = 0
|
||||||
|
image_path = (
|
||||||
|
heroic_dir
|
||||||
|
/ "images-cache"
|
||||||
|
/ hashlib.sha256(item["art_square"].encode()).hexdigest()
|
||||||
|
)
|
||||||
|
|
||||||
|
importer.save_game(values, image_path if image_path.exists() else None)
|
||||||
182
src/importers/itch_importer.py
Normal file
@@ -0,0 +1,182 @@
|
|||||||
|
# itch_importer.py
|
||||||
|
#
|
||||||
|
# Copyright 2022-2023 kramo
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
import os
|
||||||
|
from pathlib import Path
|
||||||
|
from shutil import copyfile
|
||||||
|
from sqlite3 import connect
|
||||||
|
from time import time
|
||||||
|
|
||||||
|
import requests
|
||||||
|
from gi.repository import GdkPixbuf, Gio
|
||||||
|
|
||||||
|
from .check_install import check_install
|
||||||
|
|
||||||
|
|
||||||
|
def get_game(task, current_time, win, row):
|
||||||
|
values = {}
|
||||||
|
|
||||||
|
values["game_id"] = f"itch_{row[0]}"
|
||||||
|
|
||||||
|
if values["game_id"] in win.games and not win.games[values["game_id"]].removed:
|
||||||
|
task.return_value((None, None))
|
||||||
|
return
|
||||||
|
|
||||||
|
values["added"] = current_time
|
||||||
|
values["executable"] = (
|
||||||
|
["start", f"itch://caves/{row[4]}/launch"]
|
||||||
|
if os.name == "nt"
|
||||||
|
else ["xdg-open", f"itch://caves/{row[4]}/launch"]
|
||||||
|
)
|
||||||
|
values["hidden"] = False
|
||||||
|
values["last_played"] = 0
|
||||||
|
values["name"] = row[1]
|
||||||
|
values["source"] = "itch"
|
||||||
|
|
||||||
|
if row[3] or row[2]:
|
||||||
|
tmp_file = Gio.File.new_tmp(None)[0]
|
||||||
|
try:
|
||||||
|
with requests.get(row[3] or row[2], timeout=5) as cover:
|
||||||
|
cover.raise_for_status()
|
||||||
|
Path(tmp_file.get_path()).write_bytes(cover.content)
|
||||||
|
except requests.exceptions.RequestException:
|
||||||
|
task.return_value((values, None))
|
||||||
|
return
|
||||||
|
|
||||||
|
game_cover = GdkPixbuf.Pixbuf.new_from_stream_at_scale(
|
||||||
|
tmp_file.read(), 2, 2, False
|
||||||
|
).scale_simple(*win.image_size, GdkPixbuf.InterpType.BILINEAR)
|
||||||
|
|
||||||
|
itch_pixbuf = GdkPixbuf.Pixbuf.new_from_stream(tmp_file.read())
|
||||||
|
itch_pixbuf = itch_pixbuf.scale_simple(
|
||||||
|
win.image_size[0],
|
||||||
|
itch_pixbuf.get_height() * (win.image_size[0] / itch_pixbuf.get_width()),
|
||||||
|
GdkPixbuf.InterpType.BILINEAR,
|
||||||
|
)
|
||||||
|
itch_pixbuf.composite(
|
||||||
|
game_cover,
|
||||||
|
0,
|
||||||
|
(win.image_size[1] - itch_pixbuf.get_height()) / 2,
|
||||||
|
itch_pixbuf.get_width(),
|
||||||
|
itch_pixbuf.get_height(),
|
||||||
|
0,
|
||||||
|
(win.image_size[1] - itch_pixbuf.get_height()) / 2,
|
||||||
|
1.0,
|
||||||
|
1.0,
|
||||||
|
GdkPixbuf.InterpType.BILINEAR,
|
||||||
|
255,
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
game_cover = None
|
||||||
|
|
||||||
|
task.return_value((values, game_cover))
|
||||||
|
|
||||||
|
|
||||||
|
def get_games_async(win, rows, importer):
|
||||||
|
current_time = int(time())
|
||||||
|
|
||||||
|
# Wrap the function in another one as Gio.Task.run_in_thread does not allow for passing args
|
||||||
|
def create_func(current_time, win, row):
|
||||||
|
def wrapper(task, *_unused):
|
||||||
|
get_game(
|
||||||
|
task,
|
||||||
|
current_time,
|
||||||
|
win,
|
||||||
|
row,
|
||||||
|
)
|
||||||
|
|
||||||
|
return wrapper
|
||||||
|
|
||||||
|
def update_games(_task, result):
|
||||||
|
final_values = result.propagate_value()[1]
|
||||||
|
# No need for an if statement as final_value would be None for games we don't want to save
|
||||||
|
importer.save_game(final_values[0], pixbuf=final_values[1])
|
||||||
|
|
||||||
|
for row in rows:
|
||||||
|
task = Gio.Task.new(None, None, update_games)
|
||||||
|
task.run_in_thread(create_func(current_time, win, row))
|
||||||
|
|
||||||
|
|
||||||
|
def itch_installed(win, path=None):
|
||||||
|
location_key = "itch-location"
|
||||||
|
itch_dir = path if path else Path(win.schema.get_string(location_key)).expanduser()
|
||||||
|
check = Path("db") / "butler.db"
|
||||||
|
|
||||||
|
if not (itch_dir / check).is_file():
|
||||||
|
locations = (
|
||||||
|
(Path(),)
|
||||||
|
if path
|
||||||
|
else (
|
||||||
|
Path.home() / ".var/app/io.itch.itch/config/itch",
|
||||||
|
win.config_dir / "itch",
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
if os.name == "nt" and not path:
|
||||||
|
locations += (Path(os.getenv("appdata")) / "itch",)
|
||||||
|
|
||||||
|
itch_dir = check_install(check, locations, (win.schema, location_key))
|
||||||
|
|
||||||
|
return itch_dir
|
||||||
|
|
||||||
|
|
||||||
|
def itch_importer(win):
|
||||||
|
itch_dir = itch_installed(win)
|
||||||
|
if not itch_dir:
|
||||||
|
return
|
||||||
|
|
||||||
|
database_path = (itch_dir / "db").expanduser()
|
||||||
|
|
||||||
|
db_cache_dir = win.cache_dir / "cartridges" / "itch"
|
||||||
|
db_cache_dir.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
# Copy the file because sqlite3 doesn't like databases in /run/user/
|
||||||
|
database_tmp_path = db_cache_dir / "butler.db"
|
||||||
|
|
||||||
|
for db_file in database_path.glob("butler.db*"):
|
||||||
|
copyfile(db_file, (db_cache_dir / db_file.name))
|
||||||
|
|
||||||
|
db_request = """
|
||||||
|
SELECT
|
||||||
|
games.id,
|
||||||
|
games.title,
|
||||||
|
games.cover_url,
|
||||||
|
games.still_cover_url,
|
||||||
|
caves.id
|
||||||
|
FROM
|
||||||
|
'caves'
|
||||||
|
INNER JOIN
|
||||||
|
'games'
|
||||||
|
ON
|
||||||
|
caves.game_id = games.id
|
||||||
|
;
|
||||||
|
"""
|
||||||
|
|
||||||
|
connection = connect(database_tmp_path)
|
||||||
|
cursor = connection.execute(db_request)
|
||||||
|
rows = cursor.fetchall()
|
||||||
|
connection.close()
|
||||||
|
# No need to unlink temp files as they disappear when the connection is closed
|
||||||
|
database_tmp_path.unlink(missing_ok=True)
|
||||||
|
|
||||||
|
importer = win.importer
|
||||||
|
importer.total_queue += len(rows)
|
||||||
|
importer.queue += len(rows)
|
||||||
|
|
||||||
|
get_games_async(win, rows, importer)
|
||||||
134
src/importers/lutris_importer.py
Normal file
@@ -0,0 +1,134 @@
|
|||||||
|
# lutris_importer.py
|
||||||
|
#
|
||||||
|
# Copyright 2022-2023 kramo
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
from pathlib import Path
|
||||||
|
from shutil import copyfile
|
||||||
|
from sqlite3 import connect
|
||||||
|
from time import time
|
||||||
|
|
||||||
|
from .check_install import check_install
|
||||||
|
|
||||||
|
|
||||||
|
def lutris_installed(win, path=None):
|
||||||
|
location_key = "lutris-location"
|
||||||
|
lutris_dir = (
|
||||||
|
path if path else Path(win.schema.get_string(location_key)).expanduser()
|
||||||
|
)
|
||||||
|
check = "pga.db"
|
||||||
|
|
||||||
|
if not (lutris_dir / check).is_file():
|
||||||
|
locations = (
|
||||||
|
(Path(),)
|
||||||
|
if path
|
||||||
|
else (
|
||||||
|
Path.home() / ".var/app/net.lutris.Lutris/data/lutris",
|
||||||
|
win.data_dir / "lutris",
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
lutris_dir = check_install(check, locations, (win.schema, location_key))
|
||||||
|
|
||||||
|
return lutris_dir
|
||||||
|
|
||||||
|
|
||||||
|
def lutris_cache_exists(win, path=None):
|
||||||
|
cache_key = "lutris-cache-location"
|
||||||
|
cache_dir = path if path else Path(win.schema.get_string(cache_key)).expanduser()
|
||||||
|
cache_check = "coverart"
|
||||||
|
|
||||||
|
if not (cache_dir / cache_check).exists():
|
||||||
|
cache_locations = (
|
||||||
|
(Path(),)
|
||||||
|
if path
|
||||||
|
else (
|
||||||
|
Path.home() / ".var" / "app" / "net.lutris.Lutris" / "cache" / "lutris",
|
||||||
|
win.cache_dir / "lutris",
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
cache_dir = check_install(cache_check, cache_locations, (win.schema, cache_key))
|
||||||
|
|
||||||
|
return cache_dir
|
||||||
|
|
||||||
|
|
||||||
|
def lutris_importer(win):
|
||||||
|
lutris_dir = lutris_installed(win)
|
||||||
|
if not lutris_dir:
|
||||||
|
return
|
||||||
|
|
||||||
|
cache_dir = lutris_cache_exists(win)
|
||||||
|
if not cache_dir:
|
||||||
|
return
|
||||||
|
|
||||||
|
db_cache_dir = win.cache_dir / "cartridges" / "lutris"
|
||||||
|
db_cache_dir.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
# Copy the file because sqlite3 doesn't like databases in /run/user/
|
||||||
|
database_tmp_path = db_cache_dir / "pga.db"
|
||||||
|
|
||||||
|
for db_file in lutris_dir.glob("pga.db*"):
|
||||||
|
copyfile(db_file, (db_cache_dir / db_file.name))
|
||||||
|
|
||||||
|
db_request = """
|
||||||
|
SELECT
|
||||||
|
id, name, slug, runner, hidden
|
||||||
|
FROM
|
||||||
|
'games'
|
||||||
|
WHERE
|
||||||
|
name IS NOT NULL
|
||||||
|
AND slug IS NOT NULL
|
||||||
|
AND configPath IS NOT NULL
|
||||||
|
AND installed IS TRUE
|
||||||
|
;
|
||||||
|
"""
|
||||||
|
|
||||||
|
connection = connect(database_tmp_path)
|
||||||
|
cursor = connection.execute(db_request)
|
||||||
|
rows = cursor.fetchall()
|
||||||
|
connection.close()
|
||||||
|
# No need to unlink temp files as they disappear when the connection is closed
|
||||||
|
database_tmp_path.unlink(missing_ok=True)
|
||||||
|
|
||||||
|
if not win.schema.get_boolean("lutris-import-steam"):
|
||||||
|
rows = [row for row in rows if not row[3] == "steam"]
|
||||||
|
|
||||||
|
current_time = int(time())
|
||||||
|
|
||||||
|
importer = win.importer
|
||||||
|
importer.total_queue += len(rows)
|
||||||
|
importer.queue += len(rows)
|
||||||
|
|
||||||
|
for row in rows:
|
||||||
|
values = {}
|
||||||
|
|
||||||
|
values["game_id"] = f"lutris_{row[3]}_{row[0]}"
|
||||||
|
|
||||||
|
if values["game_id"] in win.games and not win.games[values["game_id"]].removed:
|
||||||
|
importer.save_game()
|
||||||
|
continue
|
||||||
|
|
||||||
|
values["added"] = current_time
|
||||||
|
values["executable"] = ["xdg-open", f"lutris:rungameid/{row[0]}"]
|
||||||
|
values["hidden"] = row[4] == 1
|
||||||
|
values["last_played"] = 0
|
||||||
|
values["name"] = row[1]
|
||||||
|
values["source"] = f"lutris_{row[3]}"
|
||||||
|
|
||||||
|
image_path = cache_dir / "coverart" / f"{row[2]}.jpg"
|
||||||
|
importer.save_game(values, image_path if image_path.exists() else None)
|
||||||
176
src/importers/steam_importer.py
Normal file
@@ -0,0 +1,176 @@
|
|||||||
|
# steam_importer.py
|
||||||
|
#
|
||||||
|
# Copyright 2022-2023 kramo
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
from pathlib import Path
|
||||||
|
from time import time
|
||||||
|
|
||||||
|
import requests
|
||||||
|
from gi.repository import Gio
|
||||||
|
|
||||||
|
from .check_install import check_install
|
||||||
|
|
||||||
|
|
||||||
|
def update_values_from_data(content, values):
|
||||||
|
basic_data = content[values["appid"]]
|
||||||
|
if not basic_data["success"]:
|
||||||
|
values["blacklisted"] = True
|
||||||
|
else:
|
||||||
|
data = basic_data["data"]
|
||||||
|
values["developer"] = ", ".join(data["developers"])
|
||||||
|
|
||||||
|
if data["type"] != "game":
|
||||||
|
values["blacklisted"] = True
|
||||||
|
|
||||||
|
return values
|
||||||
|
|
||||||
|
|
||||||
|
def get_game(task, datatypes, current_time, win, appmanifest, steam_dir):
|
||||||
|
values = {}
|
||||||
|
|
||||||
|
data = appmanifest.read_text("utf-8")
|
||||||
|
for datatype in datatypes:
|
||||||
|
value = re.findall(f'"{datatype}"\t\t"(.*)"\n', data, re.IGNORECASE)
|
||||||
|
try:
|
||||||
|
values[datatype] = value[0]
|
||||||
|
except IndexError:
|
||||||
|
task.return_value((None, None))
|
||||||
|
return
|
||||||
|
|
||||||
|
values["game_id"] = f'steam_{values["appid"]}'
|
||||||
|
|
||||||
|
if values["game_id"] in win.games and not win.games[values["game_id"]].removed:
|
||||||
|
task.return_value((None, None))
|
||||||
|
return
|
||||||
|
|
||||||
|
values["executable"] = (
|
||||||
|
["start", f'steam://rungameid/{values["appid"]}']
|
||||||
|
if os.name == "nt"
|
||||||
|
else ["xdg-open", f'steam://rungameid/{values["appid"]}']
|
||||||
|
)
|
||||||
|
values["hidden"] = False
|
||||||
|
values["source"] = "steam"
|
||||||
|
values["added"] = current_time
|
||||||
|
values["last_played"] = 0
|
||||||
|
|
||||||
|
image_path = (
|
||||||
|
steam_dir
|
||||||
|
/ "appcache"
|
||||||
|
/ "librarycache"
|
||||||
|
/ f'{values["appid"]}_library_600x900.jpg'
|
||||||
|
)
|
||||||
|
|
||||||
|
try:
|
||||||
|
with requests.get(
|
||||||
|
f'https://store.steampowered.com/api/appdetails?appids={values["appid"]}',
|
||||||
|
timeout=5,
|
||||||
|
) as open_file:
|
||||||
|
open_file.raise_for_status()
|
||||||
|
content = open_file.json()
|
||||||
|
except requests.exceptions.RequestException:
|
||||||
|
task.return_value((values, image_path if image_path.exists() else None))
|
||||||
|
return
|
||||||
|
|
||||||
|
values = update_values_from_data(content, values)
|
||||||
|
task.return_value((values, image_path if image_path.exists() else None))
|
||||||
|
|
||||||
|
|
||||||
|
def get_games_async(win, appmanifests, steam_dir, importer):
|
||||||
|
datatypes = ["appid", "name"]
|
||||||
|
current_time = int(time())
|
||||||
|
|
||||||
|
# Wrap the function in another one as Gio.Task.run_in_thread does not allow for passing args
|
||||||
|
def create_func(datatypes, current_time, win, appmanifest, steam_dir):
|
||||||
|
def wrapper(task, *_unused):
|
||||||
|
get_game(
|
||||||
|
task,
|
||||||
|
datatypes,
|
||||||
|
current_time,
|
||||||
|
win,
|
||||||
|
appmanifest,
|
||||||
|
steam_dir,
|
||||||
|
)
|
||||||
|
|
||||||
|
return wrapper
|
||||||
|
|
||||||
|
def update_games(_task, result):
|
||||||
|
final_values = result.propagate_value()[1]
|
||||||
|
# No need for an if statement as final_value would be None for games we don't want to save
|
||||||
|
importer.save_game(final_values[0], final_values[1])
|
||||||
|
|
||||||
|
for appmanifest in appmanifests:
|
||||||
|
task = Gio.Task.new(None, None, update_games)
|
||||||
|
task.run_in_thread(
|
||||||
|
create_func(datatypes, current_time, win, appmanifest, steam_dir)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def steam_installed(win, path=None):
|
||||||
|
location_key = "steam-location"
|
||||||
|
steam_dir = Path(win.schema.get_string(location_key)).expanduser()
|
||||||
|
check = "steamapps"
|
||||||
|
|
||||||
|
if not (steam_dir / check).is_file():
|
||||||
|
subdirs = ("steam", "Steam")
|
||||||
|
locations = (
|
||||||
|
(path,)
|
||||||
|
if path
|
||||||
|
else (
|
||||||
|
steam_dir,
|
||||||
|
Path.home() / ".steam",
|
||||||
|
win.data_dir / "Steam",
|
||||||
|
Path.home() / ".var/app/com.valvesoftware.Steam/data/Steam",
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
if os.name == "nt":
|
||||||
|
locations += (Path(os.getenv("programfiles(x86)")) / "Steam",)
|
||||||
|
|
||||||
|
steam_dir = check_install(check, locations, (win.schema, location_key), subdirs)
|
||||||
|
|
||||||
|
return steam_dir
|
||||||
|
|
||||||
|
|
||||||
|
def steam_importer(win):
|
||||||
|
steam_dir = steam_installed(win)
|
||||||
|
if not steam_dir:
|
||||||
|
return
|
||||||
|
|
||||||
|
appmanifests = []
|
||||||
|
|
||||||
|
steam_dirs = [
|
||||||
|
Path(directory) for directory in win.schema.get_strv("steam-extra-dirs")
|
||||||
|
]
|
||||||
|
steam_dirs.append(steam_dir)
|
||||||
|
|
||||||
|
for directory in steam_dirs:
|
||||||
|
if not (directory / "steamapps").exists():
|
||||||
|
steam_dirs.remove(directory)
|
||||||
|
|
||||||
|
for directory in steam_dirs:
|
||||||
|
for open_file in (directory / "steamapps").iterdir():
|
||||||
|
if open_file.is_file() and "appmanifest" in open_file.name:
|
||||||
|
appmanifests.append(open_file)
|
||||||
|
|
||||||
|
importer = win.importer
|
||||||
|
importer.total_queue += len(appmanifests)
|
||||||
|
importer.queue += len(appmanifests)
|
||||||
|
|
||||||
|
get_games_async(win, appmanifests, directory, importer)
|
||||||
183
src/main.py
@@ -17,7 +17,6 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
import os
|
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
@@ -29,13 +28,16 @@ gi.require_version("Adw", "1")
|
|||||||
# pylint: disable=wrong-import-position
|
# pylint: disable=wrong-import-position
|
||||||
from gi.repository import Adw, Gio, GLib, Gtk
|
from gi.repository import Adw, Gio, GLib, Gtk
|
||||||
|
|
||||||
from .bottles_parser import bottles_parser
|
from .bottles_importer import bottles_importer
|
||||||
from .create_details_window import create_details_window
|
from .create_details_window import create_details_window
|
||||||
from .get_games import get_games
|
from .get_games import get_games
|
||||||
from .heroic_parser import heroic_parser
|
from .heroic_importer import heroic_importer
|
||||||
|
from .importer import Importer
|
||||||
|
from .itch_importer import itch_importer
|
||||||
|
from .lutris_importer import lutris_importer
|
||||||
from .preferences import PreferencesWindow
|
from .preferences import PreferencesWindow
|
||||||
from .save_games import save_games
|
from .save_game import save_game
|
||||||
from .steam_parser import steam_parser
|
from .steam_importer import steam_importer
|
||||||
from .window import CartridgesWindow
|
from .window import CartridgesWindow
|
||||||
|
|
||||||
|
|
||||||
@@ -49,22 +51,26 @@ class CartridgesApplication(Adw.Application):
|
|||||||
self.create_action(
|
self.create_action(
|
||||||
"preferences", self.on_preferences_action, ["<primary>comma"]
|
"preferences", self.on_preferences_action, ["<primary>comma"]
|
||||||
)
|
)
|
||||||
self.create_action("steam_import", self.on_steam_import_action)
|
|
||||||
self.create_action("heroic_import", self.on_heroic_import_action)
|
|
||||||
self.create_action("bottles_import", self.on_bottles_import_action)
|
|
||||||
self.create_action("launch_game", self.on_launch_game_action)
|
self.create_action("launch_game", self.on_launch_game_action)
|
||||||
self.create_action("hide_game", self.on_hide_game_action)
|
self.create_action("hide_game", self.on_hide_game_action)
|
||||||
self.create_action("edit_details", self.on_edit_details_action)
|
self.create_action("edit_game", self.on_edit_game_action)
|
||||||
self.create_action("add_game", self.on_add_game_action, ["<primary>n"])
|
self.create_action("add_game", self.on_add_game_action, ["<primary>n"])
|
||||||
|
self.create_action("import", self.on_import_action, ["<primary>i"])
|
||||||
|
self.create_action(
|
||||||
|
"remove_game_details_view",
|
||||||
|
self.on_remove_game_details_view_action,
|
||||||
|
["Delete"],
|
||||||
|
)
|
||||||
self.create_action("remove_game", self.on_remove_game_action)
|
self.create_action("remove_game", self.on_remove_game_action)
|
||||||
|
self.create_action("igdb_search", self.on_igdb_search_action)
|
||||||
if os.name == "nt":
|
self.create_action("sgdb_search", self.on_sgdb_search_action)
|
||||||
self.lookup_action("bottles_import").set_enabled(False)
|
self.create_action("protondb_search", self.on_protondb_search_action)
|
||||||
|
self.create_action("lutris_search", self.on_lutris_search_action)
|
||||||
|
self.create_action("hltb_search", self.on_hltb_search_action)
|
||||||
|
|
||||||
self.win = None
|
self.win = None
|
||||||
|
|
||||||
def do_activate(self): # pylint: disable=arguments-differ
|
def do_activate(self): # pylint: disable=arguments-differ
|
||||||
|
|
||||||
# Create the main window
|
# Create the main window
|
||||||
self.win = self.props.active_window # pylint: disable=no-member
|
self.win = self.props.active_window # pylint: disable=no-member
|
||||||
if not self.win:
|
if not self.win:
|
||||||
@@ -98,9 +104,7 @@ class CartridgesApplication(Adw.Application):
|
|||||||
"toggle_search", self.win.on_toggle_search_action, ["<primary>f"], self.win
|
"toggle_search", self.win.on_toggle_search_action, ["<primary>f"], self.win
|
||||||
)
|
)
|
||||||
self.create_action("escape", self.win.on_escape_action, ["Escape"], self.win)
|
self.create_action("escape", self.win.on_escape_action, ["Escape"], self.win)
|
||||||
self.create_action(
|
self.create_action("undo", self.win.on_undo_action, ["<primary>z"], self.win)
|
||||||
"undo_remove", self.win.on_undo_remove_action, ["<primary>z"], self.win
|
|
||||||
)
|
|
||||||
self.create_action("open_menu", self.win.on_open_menu_action, ["F10"], self.win)
|
self.create_action("open_menu", self.win.on_open_menu_action, ["F10"], self.win)
|
||||||
self.win.sort = Gio.SimpleAction.new_stateful(
|
self.win.sort = Gio.SimpleAction.new_stateful(
|
||||||
"sort_by", GLib.VariantType.new("s"), GLib.Variant("s", "a-z")
|
"sort_by", GLib.VariantType.new("s"), GLib.Variant("s", "a-z")
|
||||||
@@ -115,11 +119,14 @@ class CartridgesApplication(Adw.Application):
|
|||||||
application_name=_("Cartridges"),
|
application_name=_("Cartridges"),
|
||||||
application_icon="hu.kramo.Cartridges",
|
application_icon="hu.kramo.Cartridges",
|
||||||
developer_name="kramo",
|
developer_name="kramo",
|
||||||
version="1.1",
|
version="1.4.1",
|
||||||
developers=[
|
developers=[
|
||||||
"kramo https://kramo.hu",
|
"kramo https://kramo.hu",
|
||||||
"Paweł Lidwin https://github.com/imLinguin",
|
"Paweł Lidwin https://github.com/imLinguin",
|
||||||
|
"Domenico https://github.com/Domefemia",
|
||||||
"Bananaman https://github.com/Bananaman",
|
"Bananaman https://github.com/Bananaman",
|
||||||
|
"Geoffrey Coulaud https://geoffrey-coulaud.fr",
|
||||||
|
"Rafael Mardojai CM https://mardojai.com",
|
||||||
],
|
],
|
||||||
designers=["kramo https://kramo.hu"],
|
designers=["kramo https://kramo.hu"],
|
||||||
copyright="© 2022-2023 kramo",
|
copyright="© 2022-2023 kramo",
|
||||||
@@ -131,75 +138,149 @@ class CartridgesApplication(Adw.Application):
|
|||||||
)
|
)
|
||||||
about.present()
|
about.present()
|
||||||
|
|
||||||
def on_preferences_action(self, _widget, _callback=None):
|
def on_preferences_action(
|
||||||
PreferencesWindow(self.win).present()
|
self, _widget, _callback=None, page_name=None, expander_row=None
|
||||||
|
):
|
||||||
def on_steam_import_action(self, _widget, _callback=None):
|
win = PreferencesWindow(self.win)
|
||||||
# Handle the updating of games inside of the module because the function is async
|
if page_name:
|
||||||
steam_parser(self.win, self.on_steam_import_action)
|
win.set_visible_page_name(page_name)
|
||||||
|
if expander_row:
|
||||||
def on_heroic_import_action(self, _widget, _callback=None):
|
getattr(win, expander_row).set_expanded(True)
|
||||||
games = heroic_parser(self.win, self.on_heroic_import_action)
|
win.present()
|
||||||
save_games(games)
|
|
||||||
self.win.update_games(games.keys())
|
|
||||||
|
|
||||||
def on_bottles_import_action(self, _widget, _callback=None):
|
|
||||||
games = bottles_parser(self.win, self.on_bottles_import_action)
|
|
||||||
save_games(games)
|
|
||||||
self.win.update_games(games.keys())
|
|
||||||
|
|
||||||
def on_launch_game_action(self, _widget, _callback=None):
|
def on_launch_game_action(self, _widget, _callback=None):
|
||||||
# Launch the game and update the last played value
|
# Launch the game and update the last played value
|
||||||
|
|
||||||
game_id = self.win.active_game_id
|
game_id = self.win.active_game_id
|
||||||
|
last_played = int(time.time())
|
||||||
|
|
||||||
data = get_games([game_id])[game_id]
|
data = get_games(self.win, [game_id])[game_id]
|
||||||
data["last_played"] = int(time.time())
|
data["last_played"] = last_played
|
||||||
save_games({game_id: data})
|
save_game(self.win, data)
|
||||||
|
|
||||||
self.win.games[game_id].launch()
|
self.win.games[game_id].launch()
|
||||||
|
|
||||||
|
# Update state
|
||||||
|
self.win.games[game_id].last_played = last_played
|
||||||
|
self.win.library.invalidate_sort()
|
||||||
|
self.win.hidden_library.invalidate_sort()
|
||||||
|
if self.win.stack.get_visible_child() == self.win.details_view:
|
||||||
|
self.win.show_details_view(None, game_id)
|
||||||
|
|
||||||
|
title = self.win.games[game_id].name
|
||||||
|
# The variable is the title of the game
|
||||||
|
toast = Adw.Toast.new(_("{} launched").format(title))
|
||||||
|
toast.set_priority(Adw.ToastPriority.HIGH)
|
||||||
|
self.win.toast_overlay.add_toast(toast)
|
||||||
|
|
||||||
|
def on_hide_game_action(self, _widget, _callback=None, game_id=None, toast=True):
|
||||||
|
if not game_id:
|
||||||
|
game_id = self.win.active_game_id
|
||||||
|
|
||||||
|
if self.win.stack.get_visible_child() == self.win.details_view:
|
||||||
|
self.win.on_go_back_action(None, None)
|
||||||
|
self.win.games[game_id].toggle_hidden()
|
||||||
self.win.update_games([game_id])
|
self.win.update_games([game_id])
|
||||||
|
|
||||||
if self.win.stack.get_visible_child() == self.win.overview:
|
if not toast:
|
||||||
self.win.show_overview(None, self.win.active_game_id)
|
return
|
||||||
|
|
||||||
def on_hide_game_action(self, _widget, _callback=None):
|
title = self.win.games[game_id].name
|
||||||
if self.win.stack.get_visible_child() == self.win.overview:
|
if self.win.games[game_id].hidden:
|
||||||
self.win.on_go_back_action(None, None)
|
# The variable is the title of the game
|
||||||
self.win.games[self.win.active_game_id].toggle_hidden()
|
toast = Adw.Toast.new(_("{} hidden").format(title))
|
||||||
self.win.update_games([self.win.active_game_id])
|
else:
|
||||||
|
# The variable is the title of the game
|
||||||
|
toast = Adw.Toast.new(_("{} unhidden").format(title))
|
||||||
|
toast.set_button_label(_("Undo"))
|
||||||
|
toast.connect("button-clicked", self.win.on_undo_action, game_id, "hide")
|
||||||
|
toast.set_priority(Adw.ToastPriority.HIGH)
|
||||||
|
if (game_id, "hide") in self.win.toasts.keys():
|
||||||
|
# Dismiss the toast if there already is one
|
||||||
|
self.win.toasts[(game_id, "hide")].dismiss()
|
||||||
|
self.win.toasts[(game_id, "hide")] = toast
|
||||||
|
self.win.toast_overlay.add_toast(toast)
|
||||||
|
|
||||||
def on_edit_details_action(self, _widget, _callback=None):
|
def on_edit_game_action(self, _widget, _callback=None):
|
||||||
create_details_window(self.win, self.win.active_game_id)
|
create_details_window(self.win, self.win.active_game_id)
|
||||||
|
|
||||||
def on_add_game_action(self, _widget, _callback=None):
|
def on_add_game_action(self, _widget, _callback=None):
|
||||||
create_details_window(self.win)
|
create_details_window(self.win)
|
||||||
|
|
||||||
|
def on_import_action(self, _widget, _callback=None):
|
||||||
|
self.win.importer = Importer(self.win)
|
||||||
|
|
||||||
|
self.win.importer.blocker = True
|
||||||
|
|
||||||
|
if self.win.schema.get_boolean("steam"):
|
||||||
|
steam_importer(self.win)
|
||||||
|
|
||||||
|
if self.win.schema.get_boolean("lutris"):
|
||||||
|
lutris_importer(self.win)
|
||||||
|
|
||||||
|
if self.win.schema.get_boolean("heroic"):
|
||||||
|
heroic_importer(self.win)
|
||||||
|
|
||||||
|
if self.win.schema.get_boolean("bottles"):
|
||||||
|
bottles_importer(self.win)
|
||||||
|
|
||||||
|
if self.win.schema.get_boolean("itch"):
|
||||||
|
itch_importer(self.win)
|
||||||
|
|
||||||
|
self.win.importer.blocker = False
|
||||||
|
|
||||||
|
if self.win.importer.import_dialog.is_visible and self.win.importer.queue == 0:
|
||||||
|
self.win.importer.queue = 1
|
||||||
|
self.win.importer.save_game()
|
||||||
|
|
||||||
def on_remove_game_action(self, _widget, _callback=None):
|
def on_remove_game_action(self, _widget, _callback=None):
|
||||||
# Add "removed=True" to the game properties so it can be deleted on next init
|
# Add "removed=True" to the game properties so it can be deleted on next init
|
||||||
game_id = self.win.active_game_id
|
game_id = self.win.active_game_id
|
||||||
|
|
||||||
data = get_games([game_id])[game_id]
|
data = get_games(self.win, [game_id])[game_id]
|
||||||
data["removed"] = True
|
data["removed"] = True
|
||||||
save_games({game_id: data})
|
save_game(self.win, data)
|
||||||
|
|
||||||
self.win.update_games([game_id])
|
self.win.update_games([game_id])
|
||||||
if self.win.stack.get_visible_child() == self.win.overview:
|
if self.win.stack.get_visible_child() == self.win.details_view:
|
||||||
self.win.on_go_back_action(None, None)
|
self.win.on_go_back_action(None, None)
|
||||||
|
|
||||||
# The variable is the title of the game
|
|
||||||
title = self.win.games[game_id].name
|
title = self.win.games[game_id].name
|
||||||
toast = Adw.Toast.new(_(f"{title} removed"))
|
# The variable is the title of the game
|
||||||
|
toast = Adw.Toast.new(_("{} removed").format(title))
|
||||||
toast.set_button_label(_("Undo"))
|
toast.set_button_label(_("Undo"))
|
||||||
toast.connect("button-clicked", self.win.on_undo_remove_action, game_id)
|
toast.connect("button-clicked", self.win.on_undo_action, game_id, "remove")
|
||||||
toast.set_priority(Adw.ToastPriority.HIGH)
|
toast.set_priority(Adw.ToastPriority.HIGH)
|
||||||
self.win.toasts[game_id] = toast
|
self.win.toasts[(game_id, "remove")] = toast
|
||||||
self.win.toast_overlay.add_toast(toast)
|
self.win.toast_overlay.add_toast(toast)
|
||||||
|
|
||||||
|
def on_remove_game_details_view_action(self, _widget, _callback=None):
|
||||||
|
if self.win.stack.get_visible_child() == self.win.details_view:
|
||||||
|
self.on_remove_game_action(None)
|
||||||
|
|
||||||
def on_quit_action(self, _widget, _callback=None):
|
def on_quit_action(self, _widget, _callback=None):
|
||||||
self.quit()
|
self.quit()
|
||||||
|
|
||||||
|
def search(self, uri):
|
||||||
|
Gio.AppInfo.launch_default_for_uri(
|
||||||
|
f"{uri}{self.win.games[self.win.active_game_id].name}"
|
||||||
|
)
|
||||||
|
|
||||||
|
def on_igdb_search_action(self, _widget, _callback=None):
|
||||||
|
self.search("https://www.igdb.com/search?type=1&q=")
|
||||||
|
|
||||||
|
def on_sgdb_search_action(self, _widget, _callback=None):
|
||||||
|
self.search("https://www.steamgriddb.com/search/grids?term=")
|
||||||
|
|
||||||
|
def on_protondb_search_action(self, _widget, _callback=None):
|
||||||
|
self.search("https://www.protondb.com/search?q=")
|
||||||
|
|
||||||
|
def on_lutris_search_action(self, _widget, _callback=None):
|
||||||
|
self.search("https://lutris.net/games?q=")
|
||||||
|
|
||||||
|
def on_hltb_search_action(self, _widget, _callback=None):
|
||||||
|
self.search("https://howlongtobeat.com/?q=")
|
||||||
|
|
||||||
def create_action(self, name, callback, shortcuts=None, win=None):
|
def create_action(self, name, callback, shortcuts=None, win=None):
|
||||||
action = Gio.SimpleAction.new(name, None)
|
action = Gio.SimpleAction.new(name, None)
|
||||||
action.connect("activate", callback)
|
action.connect("activate", callback)
|
||||||
|
|||||||
@@ -22,14 +22,20 @@ cartridges_sources = [
|
|||||||
'window.py',
|
'window.py',
|
||||||
'preferences.py',
|
'preferences.py',
|
||||||
'game.py',
|
'game.py',
|
||||||
'utils/steam_parser.py',
|
'game_cover.py',
|
||||||
'utils/heroic_parser.py',
|
'importers/steam_importer.py',
|
||||||
'utils/bottles_parser.py',
|
'importers/lutris_importer.py',
|
||||||
|
'importers/heroic_importer.py',
|
||||||
|
'importers/bottles_importer.py',
|
||||||
|
'importers/itch_importer.py',
|
||||||
|
'utils/importer.py',
|
||||||
|
'utils/steamgriddb.py',
|
||||||
'utils/get_games.py',
|
'utils/get_games.py',
|
||||||
'utils/save_games.py',
|
'utils/save_game.py',
|
||||||
'utils/save_cover.py',
|
'utils/save_cover.py',
|
||||||
'utils/create_dialog.py',
|
'utils/create_dialog.py',
|
||||||
'utils/create_details_window.py'
|
'utils/create_details_window.py',
|
||||||
|
'utils/check_install.py'
|
||||||
]
|
]
|
||||||
|
|
||||||
install_data(cartridges_sources, install_dir: moduledir)
|
install_data(cartridges_sources, install_dir: moduledir)
|
||||||
|
|||||||
@@ -18,139 +18,362 @@
|
|||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
from pathlib import Path
|
||||||
|
from shutil import move
|
||||||
|
|
||||||
from gi.repository import Adw, Gio, GLib, Gtk
|
from gi.repository import Adw, Gio, GLib, Gtk
|
||||||
|
|
||||||
|
from .bottles_importer import bottles_installed
|
||||||
|
from .create_dialog import create_dialog
|
||||||
|
from .get_games import get_games
|
||||||
|
from .heroic_importer import heroic_installed
|
||||||
|
from .itch_importer import itch_installed
|
||||||
|
from .lutris_importer import lutris_cache_exists, lutris_installed
|
||||||
|
from .save_game import save_game
|
||||||
|
from .steam_importer import steam_installed
|
||||||
|
|
||||||
|
|
||||||
|
class ImportPreferences:
|
||||||
|
def __init__(
|
||||||
|
self,
|
||||||
|
win,
|
||||||
|
source_id,
|
||||||
|
name,
|
||||||
|
check_func,
|
||||||
|
expander_row,
|
||||||
|
file_chooser_button,
|
||||||
|
config=False,
|
||||||
|
):
|
||||||
|
def set_dir(_source, result, _unused):
|
||||||
|
try:
|
||||||
|
path = Path(win.file_chooser.select_folder_finish(result).get_path())
|
||||||
|
except GLib.GError:
|
||||||
|
return
|
||||||
|
|
||||||
|
def response(widget, response):
|
||||||
|
if response == "choose_folder":
|
||||||
|
win.choose_folder(widget, set_dir)
|
||||||
|
|
||||||
|
if not check_func(win, path):
|
||||||
|
create_dialog(
|
||||||
|
win,
|
||||||
|
_("Installation Not Found"),
|
||||||
|
# The variable is the name of the game launcher
|
||||||
|
_("Select the {} configuration directory.").format(name) if config
|
||||||
|
# The variable is the name of the game launcher
|
||||||
|
else _("Select the {} data directory.").format(name),
|
||||||
|
"choose_folder",
|
||||||
|
_("Set Location"),
|
||||||
|
).connect("response", response)
|
||||||
|
|
||||||
|
win.schema.bind(
|
||||||
|
source_id,
|
||||||
|
expander_row,
|
||||||
|
"enable-expansion",
|
||||||
|
Gio.SettingsBindFlags.DEFAULT,
|
||||||
|
)
|
||||||
|
|
||||||
|
file_chooser_button.connect("clicked", win.choose_folder, set_dir)
|
||||||
|
|
||||||
|
|
||||||
@Gtk.Template(resource_path="/hu/kramo/Cartridges/gtk/preferences.ui")
|
@Gtk.Template(resource_path="/hu/kramo/Cartridges/gtk/preferences.ui")
|
||||||
class PreferencesWindow(Adw.PreferencesWindow):
|
class PreferencesWindow(Adw.PreferencesWindow):
|
||||||
__gtype_name__ = "PreferencesWindow"
|
__gtype_name__ = "PreferencesWindow"
|
||||||
|
|
||||||
page = Gtk.Template.Child()
|
general_page = Gtk.Template.Child()
|
||||||
|
import_page = Gtk.Template.Child()
|
||||||
|
sgdb_page = Gtk.Template.Child()
|
||||||
|
|
||||||
|
sources_group = Gtk.Template.Child()
|
||||||
|
|
||||||
exit_after_launch_switch = Gtk.Template.Child()
|
exit_after_launch_switch = Gtk.Template.Child()
|
||||||
cover_launches_game_switch = Gtk.Template.Child()
|
cover_launches_game_switch = Gtk.Template.Child()
|
||||||
high_quality_images_switch = Gtk.Template.Child()
|
high_quality_images_switch = Gtk.Template.Child()
|
||||||
|
remove_all_games_button = Gtk.Template.Child()
|
||||||
|
|
||||||
|
steam_expander_row = Gtk.Template.Child()
|
||||||
steam_file_chooser_button = Gtk.Template.Child()
|
steam_file_chooser_button = Gtk.Template.Child()
|
||||||
steam_extra_file_chooser_button = Gtk.Template.Child()
|
steam_extra_file_chooser_button = Gtk.Template.Child()
|
||||||
steam_clear_button_revealer = Gtk.Template.Child()
|
steam_clear_button_revealer = Gtk.Template.Child()
|
||||||
steam_clear_button = Gtk.Template.Child()
|
steam_clear_button = Gtk.Template.Child()
|
||||||
|
|
||||||
|
lutris_expander_row = Gtk.Template.Child()
|
||||||
|
lutris_file_chooser_button = Gtk.Template.Child()
|
||||||
|
lutris_cache_file_chooser_button = Gtk.Template.Child()
|
||||||
|
lutris_steam_switch = Gtk.Template.Child()
|
||||||
|
|
||||||
|
heroic_expander_row = Gtk.Template.Child()
|
||||||
heroic_file_chooser_button = Gtk.Template.Child()
|
heroic_file_chooser_button = Gtk.Template.Child()
|
||||||
heroic_epic_switch = Gtk.Template.Child()
|
heroic_epic_switch = Gtk.Template.Child()
|
||||||
heroic_gog_switch = Gtk.Template.Child()
|
heroic_gog_switch = Gtk.Template.Child()
|
||||||
heroic_sideloaded_switch = Gtk.Template.Child()
|
heroic_sideloaded_switch = Gtk.Template.Child()
|
||||||
|
|
||||||
bottles_group = Gtk.Template.Child()
|
bottles_expander_row = Gtk.Template.Child()
|
||||||
bottles_file_chooser_button = Gtk.Template.Child()
|
bottles_file_chooser_button = Gtk.Template.Child()
|
||||||
|
|
||||||
def __init__(self, parent_widget, **kwargs):
|
itch_expander_row = Gtk.Template.Child()
|
||||||
super().__init__(**kwargs)
|
itch_file_chooser_button = Gtk.Template.Child()
|
||||||
|
|
||||||
self.set_transient_for(parent_widget)
|
sgdb_key_group = Gtk.Template.Child()
|
||||||
schema = parent_widget.schema
|
sgdb_key_entry_row = Gtk.Template.Child()
|
||||||
schema.bind(
|
sgdb_download_switch = Gtk.Template.Child()
|
||||||
|
sgdb_prefer_switch = Gtk.Template.Child()
|
||||||
|
sgdb_animated_switch = Gtk.Template.Child()
|
||||||
|
|
||||||
|
def __init__(self, win, **kwargs):
|
||||||
|
super().__init__(**kwargs)
|
||||||
|
self.schema = win.schema
|
||||||
|
self.win = win
|
||||||
|
self.file_chooser = Gtk.FileDialog()
|
||||||
|
self.set_transient_for(win)
|
||||||
|
|
||||||
|
self.toast = Adw.Toast.new(_("All games removed"))
|
||||||
|
self.toast.set_button_label(_("Undo"))
|
||||||
|
self.toast.connect("button-clicked", self.undo_remove_all, None)
|
||||||
|
self.toast.set_priority(Adw.ToastPriority.HIGH)
|
||||||
|
shortcut_controller = Gtk.ShortcutController()
|
||||||
|
shortcut_controller.add_shortcut(
|
||||||
|
Gtk.Shortcut.new(
|
||||||
|
Gtk.ShortcutTrigger.parse_string("<primary>z"),
|
||||||
|
Gtk.CallbackAction.new(self.undo_remove_all),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
self.add_controller(shortcut_controller)
|
||||||
|
self.removed_games = []
|
||||||
|
|
||||||
|
# General
|
||||||
|
self.schema.bind(
|
||||||
"exit-after-launch",
|
"exit-after-launch",
|
||||||
self.exit_after_launch_switch,
|
self.exit_after_launch_switch,
|
||||||
"active",
|
"active",
|
||||||
Gio.SettingsBindFlags.DEFAULT,
|
Gio.SettingsBindFlags.DEFAULT,
|
||||||
)
|
)
|
||||||
schema.bind(
|
self.schema.bind(
|
||||||
"cover-launches-game",
|
"cover-launches-game",
|
||||||
self.cover_launches_game_switch,
|
self.cover_launches_game_switch,
|
||||||
"active",
|
"active",
|
||||||
Gio.SettingsBindFlags.DEFAULT,
|
Gio.SettingsBindFlags.DEFAULT,
|
||||||
)
|
)
|
||||||
schema.bind(
|
self.schema.bind(
|
||||||
"high-quality-images",
|
"high-quality-images",
|
||||||
self.high_quality_images_switch,
|
self.high_quality_images_switch,
|
||||||
"active",
|
"active",
|
||||||
Gio.SettingsBindFlags.DEFAULT,
|
Gio.SettingsBindFlags.DEFAULT,
|
||||||
)
|
)
|
||||||
schema.bind(
|
|
||||||
|
self.remove_all_games_button.connect("clicked", self.remove_all_games)
|
||||||
|
|
||||||
|
# Steam
|
||||||
|
ImportPreferences(
|
||||||
|
self,
|
||||||
|
"steam",
|
||||||
|
"Steam",
|
||||||
|
steam_installed,
|
||||||
|
self.steam_expander_row,
|
||||||
|
self.steam_file_chooser_button,
|
||||||
|
)
|
||||||
|
|
||||||
|
def update_revealer():
|
||||||
|
if self.schema.get_strv("steam-extra-dirs"):
|
||||||
|
self.steam_clear_button_revealer.set_reveal_child(True)
|
||||||
|
else:
|
||||||
|
self.steam_clear_button_revealer.set_reveal_child(False)
|
||||||
|
|
||||||
|
def add_steam_dir(_source, result, _unused):
|
||||||
|
try:
|
||||||
|
value = self.schema.get_strv("steam-extra-dirs")
|
||||||
|
value.append(self.file_chooser.select_folder_finish(result).get_path())
|
||||||
|
self.schema.set_strv("steam-extra-dirs", value)
|
||||||
|
except GLib.GError:
|
||||||
|
return
|
||||||
|
update_revealer()
|
||||||
|
|
||||||
|
def clear_steam_dirs(*_unused):
|
||||||
|
self.schema.set_strv("steam-extra-dirs", [])
|
||||||
|
update_revealer()
|
||||||
|
|
||||||
|
update_revealer()
|
||||||
|
|
||||||
|
self.steam_extra_file_chooser_button.connect(
|
||||||
|
"clicked", self.choose_folder, add_steam_dir
|
||||||
|
)
|
||||||
|
self.steam_clear_button.connect("clicked", clear_steam_dirs)
|
||||||
|
|
||||||
|
# Lutris
|
||||||
|
ImportPreferences(
|
||||||
|
self,
|
||||||
|
"lutris",
|
||||||
|
"Lutris",
|
||||||
|
lutris_installed,
|
||||||
|
self.lutris_expander_row,
|
||||||
|
self.lutris_file_chooser_button,
|
||||||
|
)
|
||||||
|
self.schema.bind(
|
||||||
|
"lutris-import-steam",
|
||||||
|
self.lutris_steam_switch,
|
||||||
|
"active",
|
||||||
|
Gio.SettingsBindFlags.DEFAULT,
|
||||||
|
)
|
||||||
|
|
||||||
|
def set_cache_dir(_source, result, _unused):
|
||||||
|
try:
|
||||||
|
path = Path(self.file_chooser.select_folder_finish(result).get_path())
|
||||||
|
except GLib.GError:
|
||||||
|
return
|
||||||
|
|
||||||
|
def response(widget, response):
|
||||||
|
if response == "choose_folder":
|
||||||
|
self.choose_folder(widget, set_cache_dir)
|
||||||
|
|
||||||
|
if not lutris_cache_exists(path).exists():
|
||||||
|
create_dialog(
|
||||||
|
self.win,
|
||||||
|
_("Cache Not Found"),
|
||||||
|
_("Select the Lutris cache directory."),
|
||||||
|
"choose_folder",
|
||||||
|
_("Set Location"),
|
||||||
|
).connect("response", response)
|
||||||
|
|
||||||
|
self.lutris_cache_file_chooser_button.connect(
|
||||||
|
"clicked", self.choose_folder, set_cache_dir
|
||||||
|
)
|
||||||
|
|
||||||
|
if os.name == "nt":
|
||||||
|
self.sources_group.remove(self.lutris_expander_row)
|
||||||
|
|
||||||
|
# Heroic
|
||||||
|
ImportPreferences(
|
||||||
|
self,
|
||||||
|
"heroic",
|
||||||
|
"Heroic",
|
||||||
|
heroic_installed,
|
||||||
|
self.heroic_expander_row,
|
||||||
|
self.heroic_file_chooser_button,
|
||||||
|
True,
|
||||||
|
)
|
||||||
|
|
||||||
|
self.schema.bind(
|
||||||
"heroic-import-epic",
|
"heroic-import-epic",
|
||||||
self.heroic_epic_switch,
|
self.heroic_epic_switch,
|
||||||
"active",
|
"active",
|
||||||
Gio.SettingsBindFlags.DEFAULT,
|
Gio.SettingsBindFlags.DEFAULT,
|
||||||
)
|
)
|
||||||
schema.bind(
|
self.schema.bind(
|
||||||
"heroic-import-gog",
|
"heroic-import-gog",
|
||||||
self.heroic_gog_switch,
|
self.heroic_gog_switch,
|
||||||
"active",
|
"active",
|
||||||
Gio.SettingsBindFlags.DEFAULT,
|
Gio.SettingsBindFlags.DEFAULT,
|
||||||
)
|
)
|
||||||
schema.bind(
|
self.schema.bind(
|
||||||
"heroic-import-sideload",
|
"heroic-import-sideload",
|
||||||
self.heroic_sideloaded_switch,
|
self.heroic_sideloaded_switch,
|
||||||
"active",
|
"active",
|
||||||
Gio.SettingsBindFlags.DEFAULT,
|
Gio.SettingsBindFlags.DEFAULT,
|
||||||
)
|
)
|
||||||
|
|
||||||
filechooser = Gtk.FileDialog()
|
# Bottles
|
||||||
|
ImportPreferences(
|
||||||
def update_revealer():
|
self,
|
||||||
if schema.get_strv("steam-extra-dirs"):
|
"bottles",
|
||||||
self.steam_clear_button_revealer.set_reveal_child(True)
|
"Bottles",
|
||||||
else:
|
bottles_installed,
|
||||||
self.steam_clear_button_revealer.set_reveal_child(False)
|
self.bottles_expander_row,
|
||||||
|
self.bottles_file_chooser_button,
|
||||||
def set_steam_dir(_source, result, _unused):
|
|
||||||
try:
|
|
||||||
schema.set_string(
|
|
||||||
"steam-location",
|
|
||||||
filechooser.select_folder_finish(result).get_path(),
|
|
||||||
)
|
|
||||||
except GLib.GError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def add_steam_dir(_source, result, _unused):
|
|
||||||
try:
|
|
||||||
value = schema.get_strv("steam-extra-dirs")
|
|
||||||
value.append(filechooser.select_folder_finish(result).get_path())
|
|
||||||
schema.set_strv("steam-extra-dirs", value)
|
|
||||||
except GLib.GError:
|
|
||||||
pass
|
|
||||||
update_revealer()
|
|
||||||
|
|
||||||
def clear_steam_dirs(*_unused):
|
|
||||||
schema.set_strv("steam-extra-dirs", [])
|
|
||||||
update_revealer()
|
|
||||||
|
|
||||||
def set_heroic_dir(_source, result, _unused):
|
|
||||||
try:
|
|
||||||
schema.set_string(
|
|
||||||
"heroic-location",
|
|
||||||
filechooser.select_folder_finish(result).get_path(),
|
|
||||||
)
|
|
||||||
except GLib.GError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def set_bottles_dir(_source, result, _unused):
|
|
||||||
try:
|
|
||||||
schema.set_string(
|
|
||||||
"bottles-location",
|
|
||||||
filechooser.select_folder_finish(result).get_path(),
|
|
||||||
)
|
|
||||||
except GLib.GError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def choose_folder(_widget, function):
|
|
||||||
filechooser.select_folder(parent_widget, None, function, None)
|
|
||||||
|
|
||||||
update_revealer()
|
|
||||||
|
|
||||||
self.steam_file_chooser_button.connect("clicked", choose_folder, set_steam_dir)
|
|
||||||
self.steam_extra_file_chooser_button.connect(
|
|
||||||
"clicked", choose_folder, add_steam_dir
|
|
||||||
)
|
|
||||||
self.steam_clear_button.connect("clicked", clear_steam_dirs)
|
|
||||||
self.heroic_file_chooser_button.connect(
|
|
||||||
"clicked", choose_folder, set_heroic_dir
|
|
||||||
)
|
|
||||||
self.bottles_file_chooser_button.connect(
|
|
||||||
"clicked", choose_folder, set_bottles_dir
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
self.page.remove(self.bottles_group)
|
self.sources_group.remove(self.bottles_expander_row)
|
||||||
|
|
||||||
|
# itch
|
||||||
|
ImportPreferences(
|
||||||
|
self,
|
||||||
|
"itch",
|
||||||
|
"itch",
|
||||||
|
itch_installed,
|
||||||
|
self.itch_expander_row,
|
||||||
|
self.itch_file_chooser_button,
|
||||||
|
True,
|
||||||
|
)
|
||||||
|
|
||||||
|
# SteamGridDB
|
||||||
|
self.schema.bind(
|
||||||
|
"sgdb",
|
||||||
|
self.sgdb_download_switch,
|
||||||
|
"active",
|
||||||
|
Gio.SettingsBindFlags.DEFAULT,
|
||||||
|
)
|
||||||
|
|
||||||
|
self.schema.bind(
|
||||||
|
"sgdb-prefer",
|
||||||
|
self.sgdb_prefer_switch,
|
||||||
|
"active",
|
||||||
|
Gio.SettingsBindFlags.DEFAULT,
|
||||||
|
)
|
||||||
|
|
||||||
|
self.schema.bind(
|
||||||
|
"sgdb-animated",
|
||||||
|
self.sgdb_animated_switch,
|
||||||
|
"active",
|
||||||
|
Gio.SettingsBindFlags.DEFAULT,
|
||||||
|
)
|
||||||
|
|
||||||
|
def sgdb_key_changed(_widget):
|
||||||
|
self.schema.set_string("sgdb-key", self.sgdb_key_entry_row.get_text())
|
||||||
|
|
||||||
|
self.sgdb_key_entry_row.set_text(self.schema.get_string("sgdb-key"))
|
||||||
|
self.sgdb_key_entry_row.connect("changed", sgdb_key_changed)
|
||||||
|
|
||||||
|
self.sgdb_key_group.set_description(
|
||||||
|
_(
|
||||||
|
"An API key is required to use SteamGridDB. You can generate one {}here{}."
|
||||||
|
).format(
|
||||||
|
'<a href="https://www.steamgriddb.com/profile/preferences/api">', "</a>"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
def choose_folder(self, _widget, function):
|
||||||
|
self.file_chooser.select_folder(self.win, None, function, None)
|
||||||
|
|
||||||
|
def undo_remove_all(self, _widget, _unused):
|
||||||
|
deleted_covers_dir = self.win.cache_dir / "cartridges" / "deleted_covers"
|
||||||
|
|
||||||
|
for game_id in self.removed_games:
|
||||||
|
data = get_games(self.win, [game_id])[game_id]
|
||||||
|
if "removed" in data:
|
||||||
|
data.pop("removed")
|
||||||
|
save_game(self.win, data)
|
||||||
|
|
||||||
|
cover_path = deleted_covers_dir / f"{game_id}.tiff"
|
||||||
|
if not cover_path.is_file():
|
||||||
|
cover_path = deleted_covers_dir / f"{game_id}.gif"
|
||||||
|
if not cover_path.is_file():
|
||||||
|
continue
|
||||||
|
|
||||||
|
move(cover_path, self.win.covers_dir / cover_path.name)
|
||||||
|
|
||||||
|
self.win.update_games(self.removed_games)
|
||||||
|
self.removed_games = []
|
||||||
|
self.toast.dismiss()
|
||||||
|
|
||||||
|
def remove_all_games(self, _widget):
|
||||||
|
deleted_covers_dir = self.win.cache_dir / "cartridges" / "deleted_covers"
|
||||||
|
deleted_covers_dir.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
for game in get_games(self.win).values():
|
||||||
|
if "removed" not in game:
|
||||||
|
self.removed_games.append(game["game_id"])
|
||||||
|
game["removed"] = True
|
||||||
|
save_game(self.win, game)
|
||||||
|
|
||||||
|
cover_path = self.win.games[game["game_id"]].get_cover_path()
|
||||||
|
if not cover_path:
|
||||||
|
continue
|
||||||
|
|
||||||
|
if cover_path.is_file():
|
||||||
|
move(cover_path, deleted_covers_dir / cover_path.name)
|
||||||
|
|
||||||
|
self.win.update_games(self.win.games)
|
||||||
|
if self.win.stack.get_visible_child() == self.win.details_view:
|
||||||
|
self.win.on_go_back_action(None, None)
|
||||||
|
|
||||||
|
self.add_toast(self.toast)
|
||||||
|
|||||||
@@ -1,157 +0,0 @@
|
|||||||
# bottles_parser.py
|
|
||||||
#
|
|
||||||
# Copyright 2022-2023 kramo
|
|
||||||
#
|
|
||||||
# This program is free software: you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
|
|
||||||
import os
|
|
||||||
import time
|
|
||||||
|
|
||||||
import yaml
|
|
||||||
from gi.repository import GLib, Gtk
|
|
||||||
|
|
||||||
from .create_dialog import create_dialog
|
|
||||||
from .save_cover import save_cover
|
|
||||||
|
|
||||||
|
|
||||||
def bottles_parser(parent_widget, action):
|
|
||||||
schema = parent_widget.schema
|
|
||||||
bottles_dir = os.path.expanduser(schema.get_string("bottles-location"))
|
|
||||||
|
|
||||||
def bottles_not_found():
|
|
||||||
if os.path.exists(
|
|
||||||
os.path.expanduser("~/.var/app/com.usebottles.bottles/data/bottles/")
|
|
||||||
):
|
|
||||||
schema.set_string(
|
|
||||||
"bottles-location", "~/.var/app/com.usebottles.bottles/data/bottles/"
|
|
||||||
)
|
|
||||||
action(None, None)
|
|
||||||
elif os.path.exists(
|
|
||||||
os.path.join(
|
|
||||||
os.getenv("XDG_DATA_HOME")
|
|
||||||
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
|
||||||
"bottles",
|
|
||||||
)
|
|
||||||
):
|
|
||||||
schema.set_string(
|
|
||||||
"bottles-location",
|
|
||||||
os.path.join(
|
|
||||||
os.getenv("XDG_DATA_HOME")
|
|
||||||
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
|
||||||
"bottles",
|
|
||||||
),
|
|
||||||
)
|
|
||||||
action(None, None)
|
|
||||||
else:
|
|
||||||
filechooser = Gtk.FileDialog.new()
|
|
||||||
|
|
||||||
def set_bottles_dir(_source, result, _unused):
|
|
||||||
try:
|
|
||||||
schema.set_string(
|
|
||||||
"bottles-location",
|
|
||||||
filechooser.select_folder_finish(result).get_path(),
|
|
||||||
)
|
|
||||||
action(None, None)
|
|
||||||
except GLib.GError:
|
|
||||||
return
|
|
||||||
|
|
||||||
def choose_folder(_widget):
|
|
||||||
filechooser.select_folder(parent_widget, None, set_bottles_dir, None)
|
|
||||||
|
|
||||||
def response(widget, response):
|
|
||||||
if response == "choose_folder":
|
|
||||||
choose_folder(widget)
|
|
||||||
|
|
||||||
create_dialog(
|
|
||||||
parent_widget,
|
|
||||||
_("Couldn't Import Games"),
|
|
||||||
_("The Bottles directory cannot be found."),
|
|
||||||
"choose_folder",
|
|
||||||
_("Set Bottles Location"),
|
|
||||||
).connect("response", response)
|
|
||||||
|
|
||||||
if not os.path.isfile(os.path.join(bottles_dir, "library.yml")):
|
|
||||||
bottles_not_found()
|
|
||||||
return {}
|
|
||||||
|
|
||||||
bottles_dir = os.path.expanduser(schema.get_string("bottles-location"))
|
|
||||||
|
|
||||||
bottles_games = {}
|
|
||||||
current_time = int(time.time())
|
|
||||||
|
|
||||||
with open(os.path.join(bottles_dir, "library.yml"), "r") as open_file:
|
|
||||||
data = open_file.read()
|
|
||||||
|
|
||||||
library = yaml.load(data, Loader=yaml.Loader)
|
|
||||||
|
|
||||||
for game in library:
|
|
||||||
game = library[game]
|
|
||||||
values = {}
|
|
||||||
|
|
||||||
values["game_id"] = f'bottles_{game["id"]}'
|
|
||||||
|
|
||||||
if (
|
|
||||||
values["game_id"] in parent_widget.games
|
|
||||||
and not parent_widget.games[values["game_id"]].removed
|
|
||||||
):
|
|
||||||
continue
|
|
||||||
|
|
||||||
values["name"] = game["name"]
|
|
||||||
values["executable"] = [
|
|
||||||
"xdg-open",
|
|
||||||
f'bottles:run/{game["bottle"]["name"]}/{game["name"]}',
|
|
||||||
]
|
|
||||||
values["hidden"] = False
|
|
||||||
values["source"] = "bottles"
|
|
||||||
values["added"] = current_time
|
|
||||||
values["last_played"] = 0
|
|
||||||
|
|
||||||
if game["thumbnail"]:
|
|
||||||
save_cover(
|
|
||||||
values,
|
|
||||||
parent_widget,
|
|
||||||
os.path.join(
|
|
||||||
bottles_dir,
|
|
||||||
"bottles",
|
|
||||||
game["bottle"]["path"],
|
|
||||||
"grids",
|
|
||||||
game["thumbnail"].split(":")[1],
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
bottles_games[values["game_id"]] = values
|
|
||||||
|
|
||||||
if not bottles_games:
|
|
||||||
create_dialog(
|
|
||||||
parent_widget,
|
|
||||||
_("No Games Found"),
|
|
||||||
_("No new games were found in the Bottles library."),
|
|
||||||
)
|
|
||||||
elif len(bottles_games) == 1:
|
|
||||||
create_dialog(
|
|
||||||
parent_widget,
|
|
||||||
_("Bottles Games Imported"),
|
|
||||||
_("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 {games_no} games."),
|
|
||||||
)
|
|
||||||
return bottles_games
|
|
||||||
32
src/utils/check_install.py
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
# check_install.py
|
||||||
|
#
|
||||||
|
# Copyright 2022-2023 kramo
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
|
def check_install(check, locations, setting=None, subdirs=(Path(),)):
|
||||||
|
for location in locations:
|
||||||
|
for subdir in (Path(),) + subdirs:
|
||||||
|
if (location / subdir / check).is_file() or (
|
||||||
|
location / subdir / check
|
||||||
|
).exists():
|
||||||
|
if setting:
|
||||||
|
setting[0].set_string(setting[1], str(location / subdir))
|
||||||
|
|
||||||
|
return location / subdir
|
||||||
@@ -22,31 +22,63 @@ import os
|
|||||||
import shlex
|
import shlex
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from gi.repository import Adw, GdkPixbuf, Gio, GLib, GObject, Gtk
|
from gi.repository import Adw, Gio, GLib, GObject, Gtk
|
||||||
|
|
||||||
from .create_dialog import create_dialog
|
from .create_dialog import create_dialog
|
||||||
from .save_cover import save_cover
|
from .game_cover import GameCover
|
||||||
from .save_games import save_games
|
from .save_cover import resize_animation, save_cover
|
||||||
|
from .save_game import save_game
|
||||||
|
from .steamgriddb import SGDBSave
|
||||||
|
|
||||||
|
|
||||||
def create_details_window(parent_widget, game_id=None):
|
def create_details_window(win, game_id=None):
|
||||||
window = Adw.Window(
|
window = Adw.Window(
|
||||||
modal=True, default_width=500, default_height=750, transient_for=parent_widget
|
modal=True, default_width=500, default_height=-1, transient_for=win
|
||||||
)
|
)
|
||||||
|
|
||||||
games = parent_widget.games
|
games = win.games
|
||||||
pixbuf = None
|
cover_changed = False
|
||||||
|
|
||||||
if game_id is None:
|
cover_button_edit = Gtk.Button(
|
||||||
window.set_title(_("Add New Game"))
|
icon_name="document-edit-symbolic",
|
||||||
cover = Gtk.Picture.new_for_pixbuf(parent_widget.placeholder_pixbuf)
|
halign=Gtk.Align.END,
|
||||||
name = Gtk.Entry()
|
valign=Gtk.Align.END,
|
||||||
developer = Gtk.Entry()
|
margin_bottom=6,
|
||||||
executable = Gtk.Entry()
|
margin_end=6,
|
||||||
apply_button = Gtk.Button.new_with_label(_("Confirm"))
|
css_classes=["circular", "osd"],
|
||||||
else:
|
)
|
||||||
|
|
||||||
|
cover_button_delete = Gtk.Button(
|
||||||
|
icon_name="user-trash-symbolic",
|
||||||
|
css_classes=["circular", "osd"],
|
||||||
|
halign=Gtk.Align.END,
|
||||||
|
valign=Gtk.Align.END,
|
||||||
|
margin_bottom=6,
|
||||||
|
margin_end=6,
|
||||||
|
)
|
||||||
|
|
||||||
|
def delete_pixbuf(_widget):
|
||||||
|
nonlocal game_cover
|
||||||
|
nonlocal cover_changed
|
||||||
|
|
||||||
|
game_cover.new_pixbuf()
|
||||||
|
|
||||||
|
cover_button_delete_revealer.set_reveal_child(False)
|
||||||
|
cover_changed = True
|
||||||
|
|
||||||
|
cover_button_delete.connect("clicked", delete_pixbuf)
|
||||||
|
|
||||||
|
cover_button_delete_revealer = Gtk.Revealer(
|
||||||
|
child=cover_button_delete,
|
||||||
|
transition_type=Gtk.RevealerTransitionType.CROSSFADE,
|
||||||
|
margin_end=40,
|
||||||
|
)
|
||||||
|
|
||||||
|
cover = Gtk.Picture.new()
|
||||||
|
game_cover = GameCover({cover})
|
||||||
|
|
||||||
|
if game_id:
|
||||||
window.set_title(_("Edit Game Details"))
|
window.set_title(_("Edit Game Details"))
|
||||||
cover = Gtk.Picture.new_for_pixbuf(parent_widget.games[game_id].pixbuf)
|
|
||||||
developer = Gtk.Entry.new_with_buffer(
|
developer = Gtk.Entry.new_with_buffer(
|
||||||
Gtk.EntryBuffer.new(games[game_id].developer, -1)
|
Gtk.EntryBuffer.new(games[game_id].developer, -1)
|
||||||
)
|
)
|
||||||
@@ -56,6 +88,16 @@ def create_details_window(parent_widget, game_id=None):
|
|||||||
)
|
)
|
||||||
apply_button = Gtk.Button.new_with_label(_("Apply"))
|
apply_button = Gtk.Button.new_with_label(_("Apply"))
|
||||||
|
|
||||||
|
game_cover.new_pixbuf(win.games[game_id].get_cover_path())
|
||||||
|
if game_cover.get_pixbuf():
|
||||||
|
cover_button_delete_revealer.set_reveal_child(True)
|
||||||
|
else:
|
||||||
|
window.set_title(_("Add New Game"))
|
||||||
|
name = Gtk.Entry()
|
||||||
|
developer = Gtk.Entry()
|
||||||
|
executable = Gtk.Entry()
|
||||||
|
apply_button = Gtk.Button.new_with_label(_("Confirm"))
|
||||||
|
|
||||||
image_filter = Gtk.FileFilter(name=_("Images"))
|
image_filter = Gtk.FileFilter(name=_("Images"))
|
||||||
image_filter.add_pixbuf_formats()
|
image_filter.add_pixbuf_formats()
|
||||||
file_filters = Gio.ListStore.new(Gtk.FileFilter)
|
file_filters = Gio.ListStore.new(Gtk.FileFilter)
|
||||||
@@ -66,21 +108,14 @@ def create_details_window(parent_widget, game_id=None):
|
|||||||
cover.add_css_class("card")
|
cover.add_css_class("card")
|
||||||
cover.set_size_request(200, 300)
|
cover.set_size_request(200, 300)
|
||||||
|
|
||||||
cover_button = Gtk.Button(
|
|
||||||
icon_name="document-edit-symbolic",
|
|
||||||
halign=Gtk.Align.END,
|
|
||||||
valign=Gtk.Align.END,
|
|
||||||
margin_bottom=6,
|
|
||||||
margin_end=6,
|
|
||||||
css_classes=["circular", "osd"],
|
|
||||||
)
|
|
||||||
|
|
||||||
cover_overlay = Gtk.Overlay(
|
cover_overlay = Gtk.Overlay(
|
||||||
child=cover,
|
child=cover,
|
||||||
halign=Gtk.Align.CENTER,
|
halign=Gtk.Align.CENTER,
|
||||||
valign=Gtk.Align.CENTER,
|
valign=Gtk.Align.CENTER,
|
||||||
)
|
)
|
||||||
cover_overlay.add_overlay(cover_button)
|
|
||||||
|
cover_overlay.add_overlay(cover_button_edit)
|
||||||
|
cover_overlay.add_overlay(cover_button_delete_revealer)
|
||||||
|
|
||||||
cover_clamp = Adw.Clamp(
|
cover_clamp = Adw.Clamp(
|
||||||
maximum_size=200,
|
maximum_size=200,
|
||||||
@@ -103,9 +138,9 @@ def create_details_window(parent_widget, game_id=None):
|
|||||||
developer_group.add(developer)
|
developer_group.add(developer)
|
||||||
|
|
||||||
exec_info_button = Gtk.ToggleButton(
|
exec_info_button = Gtk.ToggleButton(
|
||||||
icon_name="dialog-information-symbolic",
|
icon_name="help-about-symbolic",
|
||||||
valign=Gtk.Align.CENTER,
|
valign=Gtk.Align.CENTER,
|
||||||
css_classes=["flat", "circular"],
|
css_classes=["flat"],
|
||||||
)
|
)
|
||||||
|
|
||||||
# Translate this string as you would translate "file"
|
# Translate this string as you would translate "file"
|
||||||
@@ -115,21 +150,21 @@ def create_details_window(parent_widget, game_id=None):
|
|||||||
|
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
exe_name += ".exe"
|
exe_name += ".exe"
|
||||||
# Translate this string as you would translate "path to {exe_name}"
|
# Translate this string as you would translate "path to {}"
|
||||||
exe_path = _(f"C:\\path\\to\\{exe_name}")
|
exe_path = _("C:\\path\\to\\{}").format(exe_name)
|
||||||
# Translate this string as you would translate "path to {file_name}"
|
# Translate this string as you would translate "path to {}"
|
||||||
file_path = _(f"C:\\path\\to\\{file_name}")
|
file_path = _("C:\\path\\to\\{}").format(file_name)
|
||||||
command = "start"
|
command = "start"
|
||||||
else:
|
else:
|
||||||
# Translate this string as you would translate "path to {exe_name}"
|
# Translate this string as you would translate "path to {}"
|
||||||
exe_path = _(f"/path/to/{exe_name}")
|
exe_path = _("/path/to/{}").format(exe_name)
|
||||||
# Translate this string as you would translate "path to {file_name}"
|
# Translate this string as you would translate "path to {}"
|
||||||
file_path = _(f"/path/to/{file_name}")
|
file_path = _("/path/to/{}").format(file_name)
|
||||||
command = "xdg-open"
|
command = "xdg-open"
|
||||||
|
|
||||||
exec_info_text = _(
|
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!'
|
'To launch the executable "{}", use the command:\n\n<tt>"{}"</tt>\n\nTo open the file "{}" with the default application, use:\n\n<tt>{} "{}"</tt>\n\nIf the path contains spaces, make sure to wrap it in double quotes!'
|
||||||
)
|
).format(exe_name, exe_path, file_name, command, file_path)
|
||||||
|
|
||||||
exec_info_label = Gtk.Label(
|
exec_info_label = Gtk.Label(
|
||||||
label=exec_info_text,
|
label=exec_info_text,
|
||||||
@@ -158,7 +193,7 @@ def create_details_window(parent_widget, game_id=None):
|
|||||||
exec_info_popover.set_parent(exec_group.get_header_suffix())
|
exec_info_popover.set_parent(exec_group.get_header_suffix())
|
||||||
exec_group.add(executable)
|
exec_group.add(executable)
|
||||||
|
|
||||||
general_page = Adw.PreferencesPage()
|
general_page = Adw.PreferencesPage(vexpand=True)
|
||||||
general_page.add(cover_group)
|
general_page.add(cover_group)
|
||||||
general_page.add(title_group)
|
general_page.add(title_group)
|
||||||
general_page.add(developer_group)
|
general_page.add(developer_group)
|
||||||
@@ -184,21 +219,29 @@ def create_details_window(parent_widget, game_id=None):
|
|||||||
filechooser.open(window, None, set_cover, None)
|
filechooser.open(window, None, set_cover, None)
|
||||||
|
|
||||||
def set_cover(_source, result, _unused):
|
def set_cover(_source, result, _unused):
|
||||||
nonlocal pixbuf
|
nonlocal game_cover
|
||||||
|
nonlocal cover_changed
|
||||||
|
|
||||||
try:
|
try:
|
||||||
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(
|
path = filechooser.open_finish(result).get_path()
|
||||||
filechooser.open_finish(result).get_path(), 200, 300, False
|
|
||||||
)
|
|
||||||
cover.set_pixbuf(pixbuf)
|
|
||||||
except GLib.GError:
|
except GLib.GError:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
cover_button_delete_revealer.set_reveal_child(True)
|
||||||
|
cover_changed = True
|
||||||
|
game_cover.new_pixbuf(
|
||||||
|
resize_animation(path)
|
||||||
|
if str(path).rsplit(".", maxsplit=1)[-1] == "gif"
|
||||||
|
else path
|
||||||
|
)
|
||||||
|
|
||||||
def close_window(_widget, _callback=None):
|
def close_window(_widget, _callback=None):
|
||||||
window.close()
|
window.close()
|
||||||
|
|
||||||
def apply_preferences(_widget, _callback=None):
|
def apply_preferences(_widget, _callback=None):
|
||||||
nonlocal pixbuf
|
nonlocal cover_changed
|
||||||
nonlocal game_id
|
nonlocal game_id
|
||||||
|
nonlocal cover
|
||||||
|
|
||||||
values = {}
|
values = {}
|
||||||
|
|
||||||
@@ -215,13 +258,13 @@ def create_details_window(parent_widget, game_id=None):
|
|||||||
create_dialog(
|
create_dialog(
|
||||||
window,
|
window,
|
||||||
_("Couldn't Add Game")
|
_("Couldn't Add Game")
|
||||||
if game_id is None
|
if not game_id
|
||||||
else _("Couldn't Apply Preferences"),
|
else _("Couldn't Apply Preferences"),
|
||||||
f'{_("Executable")}: {exception}.',
|
f'{_("Executable")}: {exception}.',
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
if game_id is None:
|
if not game_id:
|
||||||
if final_name == "":
|
if final_name == "":
|
||||||
create_dialog(
|
create_dialog(
|
||||||
window, _("Couldn't Add Game"), _("Game title cannot be empty.")
|
window, _("Couldn't Add Game"), _("Game title cannot be empty.")
|
||||||
@@ -267,44 +310,48 @@ def create_details_window(parent_widget, game_id=None):
|
|||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
if pixbuf is not None:
|
|
||||||
save_cover(None, parent_widget, None, pixbuf, game_id)
|
|
||||||
|
|
||||||
values["name"] = final_name
|
values["name"] = final_name
|
||||||
values["developer"] = final_developer or None
|
values["developer"] = final_developer or None
|
||||||
values["executable"] = final_executable_split
|
values["executable"] = final_executable_split
|
||||||
|
|
||||||
path = os.path.join(
|
win.game_covers[game_id] = game_cover
|
||||||
os.path.join(
|
|
||||||
os.getenv("XDG_DATA_HOME")
|
if cover_changed:
|
||||||
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
save_cover(
|
||||||
"cartridges",
|
win,
|
||||||
"games",
|
game_id,
|
||||||
f"{game_id}.json",
|
None,
|
||||||
|
game_cover.get_pixbuf(),
|
||||||
|
game_cover.get_animation(),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
if os.path.exists(path):
|
path = win.games_dir / f"{game_id}.json"
|
||||||
with open(path, "r") as open_file:
|
|
||||||
data = json.loads(open_file.read())
|
if path.exists():
|
||||||
|
data = json.loads(path.read_text("utf-8"))
|
||||||
data.update(values)
|
data.update(values)
|
||||||
save_games({game_id: data})
|
save_game(win, data)
|
||||||
else:
|
else:
|
||||||
save_games({game_id: values})
|
save_game(win, values)
|
||||||
|
|
||||||
|
win.update_games([game_id])
|
||||||
|
|
||||||
|
if not game_cover.get_pixbuf():
|
||||||
|
SGDBSave(win, {(game_id, values["name"])})
|
||||||
|
|
||||||
|
win.game_covers[game_id].pictures.remove(cover)
|
||||||
|
|
||||||
parent_widget.update_games([game_id])
|
|
||||||
if parent_widget.stack.get_visible_child() == parent_widget.overview:
|
|
||||||
parent_widget.show_overview(None, game_id)
|
|
||||||
window.close()
|
window.close()
|
||||||
parent_widget.show_overview(None, game_id)
|
win.show_details_view(None, game_id)
|
||||||
|
|
||||||
def focus_executable(_widget):
|
def focus_executable(_widget):
|
||||||
window.set_focus(executable)
|
window.set_focus(executable)
|
||||||
|
|
||||||
cover_button.connect("clicked", choose_cover)
|
cover_button_edit.connect("clicked", choose_cover)
|
||||||
cancel_button.connect("clicked", close_window)
|
cancel_button.connect("clicked", close_window)
|
||||||
apply_button.connect("clicked", apply_preferences)
|
apply_button.connect("clicked", apply_preferences)
|
||||||
name.connect("activate", focus_executable)
|
name.connect("activate", focus_executable)
|
||||||
|
developer.connect("activate", focus_executable)
|
||||||
executable.connect("activate", apply_preferences)
|
executable.connect("activate", apply_preferences)
|
||||||
|
|
||||||
shortcut_controller = Gtk.ShortcutController()
|
shortcut_controller = Gtk.ShortcutController()
|
||||||
|
|||||||
@@ -17,15 +17,15 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
from gi.repository import Adw, Gtk
|
from gi.repository import Adw
|
||||||
|
|
||||||
|
|
||||||
def create_dialog(parent_widget, heading, body, extra_option=None, extra_label=None):
|
def create_dialog(win, heading, body, extra_option=None, extra_label=None):
|
||||||
dialog = Adw.MessageDialog.new(parent_widget, _(heading), body)
|
dialog = Adw.MessageDialog.new(win, heading, body)
|
||||||
dialog.add_response("dismiss", _("Dismiss"))
|
dialog.add_response("dismiss", _("Dismiss"))
|
||||||
|
|
||||||
if extra_option:
|
if extra_option:
|
||||||
dialog.add_response(extra_option, _(extra_label))
|
dialog.add_response(extra_option, _(extra_label))
|
||||||
|
|
||||||
Gtk.Window.present(dialog)
|
dialog.present()
|
||||||
return dialog
|
return dialog
|
||||||
|
|||||||
@@ -18,29 +18,21 @@
|
|||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
|
||||||
|
|
||||||
|
|
||||||
def get_games(game_ids=None):
|
def get_games(win, game_ids=None):
|
||||||
games_dir = os.path.join(
|
|
||||||
os.getenv("XDG_DATA_HOME")
|
|
||||||
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
|
||||||
"cartridges",
|
|
||||||
"games",
|
|
||||||
)
|
|
||||||
games = {}
|
games = {}
|
||||||
|
|
||||||
if not os.path.exists(games_dir):
|
if not win.games_dir.exists():
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
if game_ids:
|
if game_ids:
|
||||||
game_files = [f"{game_id}.json" for game_id in game_ids]
|
game_files = [win.games_dir / f"{game_id}.json" for game_id in game_ids]
|
||||||
else:
|
else:
|
||||||
game_files = os.listdir(games_dir)
|
game_files = win.games_dir.iterdir()
|
||||||
|
|
||||||
for game in game_files:
|
for game in game_files:
|
||||||
with open(os.path.join(games_dir, game), "r") as open_file:
|
data = json.loads(game.read_text("utf-8"))
|
||||||
data = json.loads(open_file.read())
|
|
||||||
games[data["game_id"]] = data
|
games[data["game_id"]] = data
|
||||||
|
|
||||||
return games
|
return games
|
||||||
|
|||||||
@@ -1,267 +0,0 @@
|
|||||||
# heroic_parser.py
|
|
||||||
#
|
|
||||||
# Copyright 2022-2023 kramo
|
|
||||||
#
|
|
||||||
# This program is free software: you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
|
|
||||||
import hashlib
|
|
||||||
import json
|
|
||||||
import os
|
|
||||||
import time
|
|
||||||
|
|
||||||
from gi.repository import GLib, Gtk
|
|
||||||
|
|
||||||
from .create_dialog import create_dialog
|
|
||||||
from .save_cover import save_cover
|
|
||||||
|
|
||||||
|
|
||||||
def heroic_parser(parent_widget, action):
|
|
||||||
schema = parent_widget.schema
|
|
||||||
heroic_dir = os.path.expanduser(schema.get_string("heroic-location"))
|
|
||||||
|
|
||||||
def heroic_not_found():
|
|
||||||
if os.path.exists(
|
|
||||||
os.path.expanduser("~/.var/app/com.heroicgameslauncher.hgl/config/heroic/")
|
|
||||||
):
|
|
||||||
schema.set_string(
|
|
||||||
"heroic-location",
|
|
||||||
"~/.var/app/com.heroicgameslauncher.hgl/config/heroic/",
|
|
||||||
)
|
|
||||||
action(None, None)
|
|
||||||
elif os.path.exists(
|
|
||||||
os.path.join(
|
|
||||||
os.getenv("XDG_CONFIG_HOME")
|
|
||||||
or os.path.expanduser(os.path.join("~", ".config")),
|
|
||||||
"heroic",
|
|
||||||
)
|
|
||||||
):
|
|
||||||
schema.set_string(
|
|
||||||
"heroic-location",
|
|
||||||
os.path.join(
|
|
||||||
os.getenv("XDG_CONFIG_HOME")
|
|
||||||
or os.path.expanduser(os.path.join("~", ".config")),
|
|
||||||
"heroic",
|
|
||||||
),
|
|
||||||
)
|
|
||||||
action(None, None)
|
|
||||||
elif os.path.exists(os.path.join(os.getenv("appdata"), "heroic")):
|
|
||||||
schema.set_string(
|
|
||||||
"heroic-location", os.path.join(os.getenv("appdata"), "heroic")
|
|
||||||
)
|
|
||||||
action(None, None)
|
|
||||||
else:
|
|
||||||
filechooser = Gtk.FileDialog.new()
|
|
||||||
|
|
||||||
def set_heroic_dir(_source, result, _unused):
|
|
||||||
try:
|
|
||||||
schema.set_string(
|
|
||||||
"heroic-location",
|
|
||||||
filechooser.select_folder_finish(result).get_path(),
|
|
||||||
)
|
|
||||||
action(None, None)
|
|
||||||
except GLib.GError:
|
|
||||||
return
|
|
||||||
|
|
||||||
def choose_folder(_widget):
|
|
||||||
filechooser.select_folder(parent_widget, None, set_heroic_dir, None)
|
|
||||||
|
|
||||||
def response(widget, response):
|
|
||||||
if response == "choose_folder":
|
|
||||||
choose_folder(widget)
|
|
||||||
|
|
||||||
create_dialog(
|
|
||||||
parent_widget,
|
|
||||||
_("Couldn't Import Games"),
|
|
||||||
_("The Heroic directory cannot be found."),
|
|
||||||
"choose_folder",
|
|
||||||
_("Set Heroic Location"),
|
|
||||||
).connect("response", response)
|
|
||||||
|
|
||||||
if not os.path.exists(os.path.join(heroic_dir, "config.json")):
|
|
||||||
heroic_not_found()
|
|
||||||
return {}
|
|
||||||
|
|
||||||
heroic_dir = os.path.expanduser(schema.get_string("heroic-location"))
|
|
||||||
|
|
||||||
heroic_games = {}
|
|
||||||
current_time = int(time.time())
|
|
||||||
|
|
||||||
# Import Epic games
|
|
||||||
if not schema.get_boolean("heroic-import-epic"):
|
|
||||||
pass
|
|
||||||
elif os.path.exists(os.path.join(heroic_dir, "lib-cache", "library.json")):
|
|
||||||
with open(
|
|
||||||
os.path.join(heroic_dir, "lib-cache", "library.json"), "r"
|
|
||||||
) as open_file:
|
|
||||||
data = open_file.read()
|
|
||||||
library = json.loads(data)
|
|
||||||
|
|
||||||
try:
|
|
||||||
for game in library["library"]:
|
|
||||||
if not game["is_installed"]:
|
|
||||||
continue
|
|
||||||
|
|
||||||
values = {}
|
|
||||||
|
|
||||||
app_name = game["app_name"]
|
|
||||||
values["game_id"] = f"heroic_epic_{app_name}"
|
|
||||||
|
|
||||||
if (
|
|
||||||
values["game_id"] in parent_widget.games
|
|
||||||
and not parent_widget.games[values["game_id"]].removed
|
|
||||||
):
|
|
||||||
continue
|
|
||||||
|
|
||||||
values["name"] = game["title"]
|
|
||||||
values["developer"] = game["developer"]
|
|
||||||
values["executable"] = (
|
|
||||||
["start", f"heroic://launch/{app_name}"]
|
|
||||||
if os.name == "nt"
|
|
||||||
else ["xdg-open", f"heroic://launch/{app_name}"]
|
|
||||||
)
|
|
||||||
values["hidden"] = False
|
|
||||||
values["source"] = "heroic_epic"
|
|
||||||
values["added"] = current_time
|
|
||||||
values["last_played"] = 0
|
|
||||||
|
|
||||||
image_path = os.path.join(
|
|
||||||
heroic_dir,
|
|
||||||
"images-cache",
|
|
||||||
hashlib.sha256(
|
|
||||||
(f'{game["art_square"]}?h=400&resize=1&w=300').encode()
|
|
||||||
).hexdigest(),
|
|
||||||
)
|
|
||||||
if os.path.exists(image_path):
|
|
||||||
save_cover(values, parent_widget, image_path)
|
|
||||||
|
|
||||||
heroic_games[values["game_id"]] = values
|
|
||||||
except KeyError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
# Import GOG games
|
|
||||||
if not schema.get_boolean("heroic-import-gog"):
|
|
||||||
pass
|
|
||||||
elif os.path.exists(os.path.join(heroic_dir, "gog_store", "installed.json")):
|
|
||||||
with open(
|
|
||||||
os.path.join(heroic_dir, "gog_store", "installed.json"), "r"
|
|
||||||
) as open_file:
|
|
||||||
data = open_file.read()
|
|
||||||
installed = json.loads(data)
|
|
||||||
for item in installed["installed"]:
|
|
||||||
values = {}
|
|
||||||
app_name = item["appName"]
|
|
||||||
|
|
||||||
values["game_id"] = f"heroic_gog_{app_name}"
|
|
||||||
|
|
||||||
if (
|
|
||||||
values["game_id"] in parent_widget.games
|
|
||||||
and not parent_widget.games[values["game_id"]].removed
|
|
||||||
):
|
|
||||||
continue
|
|
||||||
|
|
||||||
# Get game title and developer from library.json as they are not present in installed.json
|
|
||||||
with open(
|
|
||||||
os.path.join(heroic_dir, "gog_store", "library.json"), "r"
|
|
||||||
) as open_file:
|
|
||||||
data = open_file.read()
|
|
||||||
library = json.loads(data)
|
|
||||||
for game in library["games"]:
|
|
||||||
if game["app_name"] == app_name:
|
|
||||||
values["developer"] = game["developer"]
|
|
||||||
values["name"] = game["title"]
|
|
||||||
image_path = os.path.join(
|
|
||||||
heroic_dir,
|
|
||||||
"images-cache",
|
|
||||||
hashlib.sha256(game["art_square"].encode()).hexdigest(),
|
|
||||||
)
|
|
||||||
if os.path.exists(image_path):
|
|
||||||
save_cover(values, parent_widget, image_path)
|
|
||||||
break
|
|
||||||
|
|
||||||
values["executable"] = (
|
|
||||||
["start", f"heroic://launch/{app_name}"]
|
|
||||||
if os.name == "nt"
|
|
||||||
else ["xdg-open", f"heroic://launch/{app_name}"]
|
|
||||||
)
|
|
||||||
values["hidden"] = False
|
|
||||||
values["source"] = "heroic_gog"
|
|
||||||
values["added"] = current_time
|
|
||||||
values["last_played"] = 0
|
|
||||||
|
|
||||||
heroic_games[values["game_id"]] = values
|
|
||||||
|
|
||||||
# Import sideloaded games
|
|
||||||
if not schema.get_boolean("heroic-import-sideload"):
|
|
||||||
pass
|
|
||||||
elif os.path.exists(os.path.join(heroic_dir, "sideload_apps", "library.json")):
|
|
||||||
with open(
|
|
||||||
os.path.join(heroic_dir, "sideload_apps", "library.json"), "r"
|
|
||||||
) as open_file:
|
|
||||||
data = open_file.read()
|
|
||||||
library = json.loads(data)
|
|
||||||
for item in library["games"]:
|
|
||||||
values = {}
|
|
||||||
app_name = item["app_name"]
|
|
||||||
|
|
||||||
values["game_id"] = f"heroic_sideload_{app_name}"
|
|
||||||
|
|
||||||
if (
|
|
||||||
values["game_id"] in parent_widget.games
|
|
||||||
and not parent_widget.games[values["game_id"]].removed
|
|
||||||
):
|
|
||||||
continue
|
|
||||||
|
|
||||||
values["name"] = item["title"]
|
|
||||||
values["executable"] = (
|
|
||||||
["start", f"heroic://launch/{app_name}"]
|
|
||||||
if os.name == "nt"
|
|
||||||
else ["xdg-open", f"heroic://launch/{app_name}"]
|
|
||||||
)
|
|
||||||
values["hidden"] = False
|
|
||||||
values["source"] = "heroic_sideload"
|
|
||||||
values["added"] = current_time
|
|
||||||
values["last_played"] = 0
|
|
||||||
image_path = os.path.join(
|
|
||||||
heroic_dir,
|
|
||||||
"images-cache",
|
|
||||||
hashlib.sha256(item["art_square"].encode()).hexdigest(),
|
|
||||||
)
|
|
||||||
if os.path.exists(image_path):
|
|
||||||
save_cover(values, parent_widget, image_path)
|
|
||||||
|
|
||||||
heroic_games[values["game_id"]] = values
|
|
||||||
|
|
||||||
if not heroic_games:
|
|
||||||
create_dialog(
|
|
||||||
parent_widget,
|
|
||||||
_("No Games Found"),
|
|
||||||
_("No new games were found in the Heroic library."),
|
|
||||||
)
|
|
||||||
elif len(heroic_games) == 1:
|
|
||||||
create_dialog(
|
|
||||||
parent_widget,
|
|
||||||
_("Heroic Games Imported"),
|
|
||||||
_("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 {games_no} games."),
|
|
||||||
)
|
|
||||||
return heroic_games
|
|
||||||
155
src/utils/importer.py
Normal file
@@ -0,0 +1,155 @@
|
|||||||
|
# importer.py
|
||||||
|
#
|
||||||
|
# Copyright 2022-2023 kramo
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
from gi.repository import Adw, Gtk
|
||||||
|
|
||||||
|
from .create_dialog import create_dialog
|
||||||
|
from .save_cover import save_cover
|
||||||
|
from .save_game import save_game
|
||||||
|
from .steamgriddb import SGDBSave
|
||||||
|
|
||||||
|
|
||||||
|
class Importer:
|
||||||
|
def __init__(self, win):
|
||||||
|
self.win = win
|
||||||
|
self.total_queue = 0
|
||||||
|
self.queue = 0
|
||||||
|
self.games_no = 0
|
||||||
|
self.blocker = False
|
||||||
|
self.games = set()
|
||||||
|
self.sgdb_exception = None
|
||||||
|
|
||||||
|
self.progressbar = Gtk.ProgressBar(margin_start=12, margin_end=12)
|
||||||
|
self.import_statuspage = Adw.StatusPage(
|
||||||
|
title=_("Importing Games…"),
|
||||||
|
child=self.progressbar,
|
||||||
|
)
|
||||||
|
|
||||||
|
self.import_dialog = Adw.Window(
|
||||||
|
content=self.import_statuspage,
|
||||||
|
modal=True,
|
||||||
|
default_width=350,
|
||||||
|
default_height=-1,
|
||||||
|
transient_for=win,
|
||||||
|
deletable=False,
|
||||||
|
)
|
||||||
|
|
||||||
|
self.import_dialog.present()
|
||||||
|
|
||||||
|
def save_game(self, values=None, cover_path=None, pixbuf=None):
|
||||||
|
if values:
|
||||||
|
save_game(self.win, values)
|
||||||
|
|
||||||
|
if cover_path or pixbuf:
|
||||||
|
save_cover(self.win, values["game_id"], cover_path, pixbuf)
|
||||||
|
|
||||||
|
self.games.add((values["game_id"], values["name"]))
|
||||||
|
|
||||||
|
self.games_no += 1
|
||||||
|
if "blacklisted" in values:
|
||||||
|
self.games_no -= 1
|
||||||
|
|
||||||
|
self.queue -= 1
|
||||||
|
self.update_progressbar()
|
||||||
|
|
||||||
|
if self.queue == 0 and not self.blocker:
|
||||||
|
if self.games:
|
||||||
|
self.total_queue = len(self.games)
|
||||||
|
self.queue = len(self.games)
|
||||||
|
self.import_statuspage.set_title(_("Importing Covers…"))
|
||||||
|
self.update_progressbar()
|
||||||
|
SGDBSave(self.win, self.games, self)
|
||||||
|
else:
|
||||||
|
self.done()
|
||||||
|
|
||||||
|
def done(self):
|
||||||
|
self.update_progressbar()
|
||||||
|
if self.queue == 0:
|
||||||
|
self.import_dialog.close()
|
||||||
|
|
||||||
|
if self.games_no == 0:
|
||||||
|
create_dialog(
|
||||||
|
self.win,
|
||||||
|
_("No Games Found"),
|
||||||
|
_("No new games were found on your system."),
|
||||||
|
"open_preferences",
|
||||||
|
_("Preferences"),
|
||||||
|
).connect("response", self.response, "import")
|
||||||
|
|
||||||
|
elif self.games_no == 1:
|
||||||
|
create_dialog(
|
||||||
|
self.win,
|
||||||
|
_("Game Imported"),
|
||||||
|
_("Successfully imported 1 game."),
|
||||||
|
).connect("response", self.response, "import")
|
||||||
|
elif self.games_no > 1:
|
||||||
|
games_no = self.games_no
|
||||||
|
create_dialog(
|
||||||
|
self.win,
|
||||||
|
_("Games Imported"),
|
||||||
|
# The variable is the number of games
|
||||||
|
_("Successfully imported {} games.").format(games_no),
|
||||||
|
).connect("response", self.response, "import")
|
||||||
|
|
||||||
|
def response(self, _widget, response, page_name=None, expander_row=None):
|
||||||
|
if response == "open_preferences":
|
||||||
|
self.win.get_application().on_preferences_action(
|
||||||
|
None, page_name=page_name, expander_row=expander_row
|
||||||
|
)
|
||||||
|
elif self.sgdb_exception:
|
||||||
|
create_dialog(
|
||||||
|
self.win,
|
||||||
|
_("Couldn't Connect to SteamGridDB"),
|
||||||
|
self.sgdb_exception,
|
||||||
|
"open_preferences",
|
||||||
|
_("Preferences"),
|
||||||
|
).connect("response", self.response, "sgdb")
|
||||||
|
self.sgdb_exception = None
|
||||||
|
elif (
|
||||||
|
self.win.schema.get_boolean("steam")
|
||||||
|
and self.win.schema.get_boolean("steam-extra-dirs-hint")
|
||||||
|
and not self.win.schema.get_strv("steam-extra-dirs")
|
||||||
|
):
|
||||||
|
steam_library_path = (
|
||||||
|
Path(self.win.schema.get_string("steam-location"))
|
||||||
|
/ "steamapps"
|
||||||
|
/ "libraryfolders.vdf"
|
||||||
|
)
|
||||||
|
if (
|
||||||
|
steam_library_path.exists()
|
||||||
|
and steam_library_path.read_text("utf-8").count('"path"') > 1
|
||||||
|
):
|
||||||
|
self.win.schema.set_boolean("steam-extra-dirs-hint", False)
|
||||||
|
create_dialog(
|
||||||
|
self.win,
|
||||||
|
_("Extra Steam Libraries"),
|
||||||
|
_(
|
||||||
|
"Looks like you have multiple Steam libraries. Would you like to add them in preferences?"
|
||||||
|
),
|
||||||
|
"open_preferences",
|
||||||
|
_("Preferences"),
|
||||||
|
).connect("response", self.response, "import", "steam_expander_row")
|
||||||
|
|
||||||
|
def update_progressbar(self):
|
||||||
|
try:
|
||||||
|
self.progressbar.set_fraction(1 - (self.queue / self.total_queue))
|
||||||
|
except ZeroDivisionError:
|
||||||
|
self.progressbar.set_fraction(1)
|
||||||
@@ -17,37 +17,63 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
import os
|
|
||||||
|
from pathlib import Path
|
||||||
|
from shutil import copyfile
|
||||||
|
|
||||||
from gi.repository import GdkPixbuf, Gio
|
from gi.repository import GdkPixbuf, Gio
|
||||||
|
from PIL import Image, ImageSequence
|
||||||
|
|
||||||
|
|
||||||
def save_cover(game, parent_widget, file_path, pixbuf=None, game_id=None):
|
def resize_animation(cover_path):
|
||||||
covers_dir = os.path.join(
|
image = Image.open(cover_path)
|
||||||
os.getenv("XDG_DATA_HOME")
|
frames = tuple(
|
||||||
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
frame.copy().resize((200, 300)) for frame in ImageSequence.Iterator(image)
|
||||||
"cartridges",
|
|
||||||
"covers",
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if game_id is None:
|
tmp_path = Path(Gio.File.new_tmp("XXXXXX.gif")[0].get_path())
|
||||||
game_id = game["game_id"]
|
frames[0].save(
|
||||||
|
tmp_path,
|
||||||
|
format="gif",
|
||||||
|
save_all=True,
|
||||||
|
append_images=frames[1:],
|
||||||
|
)
|
||||||
|
|
||||||
if pixbuf is None:
|
return tmp_path
|
||||||
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(file_path, 600, 900, False)
|
|
||||||
|
|
||||||
def cover_callback(*_unused):
|
|
||||||
pass
|
|
||||||
|
|
||||||
if not os.path.exists(covers_dir):
|
def save_cover(
|
||||||
os.makedirs(covers_dir)
|
win,
|
||||||
|
game_id,
|
||||||
|
cover_path=None,
|
||||||
|
pixbuf=None,
|
||||||
|
animation_path=None,
|
||||||
|
):
|
||||||
|
win.covers_dir.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
open_file = Gio.File.new_for_path(os.path.join(covers_dir, f"{game_id}.tiff"))
|
# Remove previous covers
|
||||||
parent_widget.pixbufs[game_id] = pixbuf
|
(win.covers_dir / f"{game_id}.tiff").unlink(missing_ok=True)
|
||||||
pixbuf.save_to_streamv_async(
|
(win.covers_dir / f"{game_id}.gif").unlink(missing_ok=True)
|
||||||
open_file.replace(None, False, Gio.FileCreateFlags.NONE),
|
|
||||||
|
if animation_path:
|
||||||
|
copyfile(animation_path, win.covers_dir / f"{game_id}.gif")
|
||||||
|
if game_id in win.game_covers:
|
||||||
|
win.game_covers[game_id].new_pixbuf(animation_path)
|
||||||
|
return
|
||||||
|
|
||||||
|
if not pixbuf:
|
||||||
|
if not cover_path:
|
||||||
|
return
|
||||||
|
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(
|
||||||
|
str(cover_path), *win.image_size, False
|
||||||
|
)
|
||||||
|
|
||||||
|
pixbuf.savev(
|
||||||
|
str(win.covers_dir / f"{game_id}.tiff"),
|
||||||
"tiff",
|
"tiff",
|
||||||
["compression"],
|
["compression"],
|
||||||
["8"] if parent_widget.schema.get_boolean("high-quality-images") else ["7"],
|
["8"] if win.schema.get_boolean("high-quality-images") else ["7"],
|
||||||
callback=cover_callback,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if game_id in win.game_covers:
|
||||||
|
win.game_covers[game_id].new_pixbuf(win.covers_dir / f"{game_id}.tiff")
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# save_games.py
|
# save_game.py
|
||||||
#
|
#
|
||||||
# Copyright 2022-2023 kramo
|
# Copyright 2022-2023 kramo
|
||||||
#
|
#
|
||||||
@@ -18,20 +18,11 @@
|
|||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
|
||||||
|
|
||||||
|
|
||||||
def save_games(games):
|
def save_game(win, game):
|
||||||
games_dir = os.path.join(
|
win.games_dir.mkdir(parents=True, exist_ok=True)
|
||||||
os.getenv("XDG_DATA_HOME")
|
|
||||||
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
(win.games_dir / f'{game["game_id"]}.json').write_text(
|
||||||
"cartridges",
|
json.dumps(game, indent=4, sort_keys=True), "utf-8"
|
||||||
"games",
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if not os.path.exists(games_dir):
|
|
||||||
os.makedirs(games_dir)
|
|
||||||
|
|
||||||
for game in games:
|
|
||||||
with open(os.path.join(games_dir, f"{game}.json"), "w") as open_file:
|
|
||||||
open_file.write(json.dumps(games[game], indent=4, sort_keys=True))
|
|
||||||
@@ -1,296 +0,0 @@
|
|||||||
# steam_parser.py
|
|
||||||
#
|
|
||||||
# Copyright 2022-2023 kramo
|
|
||||||
#
|
|
||||||
# This program is free software: you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
|
|
||||||
import json
|
|
||||||
import os
|
|
||||||
import re
|
|
||||||
import time
|
|
||||||
import urllib.request
|
|
||||||
|
|
||||||
from gi.repository import Adw, Gio, GLib, Gtk
|
|
||||||
|
|
||||||
from .create_dialog import create_dialog
|
|
||||||
from .save_cover import save_cover
|
|
||||||
from .save_games import save_games
|
|
||||||
|
|
||||||
|
|
||||||
def update_values_from_data(content, values):
|
|
||||||
basic_data = json.loads(content)[values["appid"]]
|
|
||||||
if not basic_data["success"]:
|
|
||||||
values["blacklisted"] = True
|
|
||||||
else:
|
|
||||||
data = basic_data["data"]
|
|
||||||
values["developer"] = ", ".join(data["developers"])
|
|
||||||
|
|
||||||
if data["type"] != "game":
|
|
||||||
values["blacklisted"] = True
|
|
||||||
|
|
||||||
return values
|
|
||||||
|
|
||||||
|
|
||||||
def get_game(task, datatypes, current_time, parent_widget, appmanifest, steam_dir):
|
|
||||||
values = {}
|
|
||||||
|
|
||||||
with open(appmanifest, "r") as open_file:
|
|
||||||
data = open_file.read()
|
|
||||||
for datatype in datatypes:
|
|
||||||
value = re.findall(f'"{datatype}"\t\t"(.*)"\n', data)
|
|
||||||
values[datatype] = value[0]
|
|
||||||
|
|
||||||
values["game_id"] = f'steam_{values["appid"]}'
|
|
||||||
|
|
||||||
if (
|
|
||||||
values["game_id"] in parent_widget.games
|
|
||||||
and not parent_widget.games[values["game_id"]].removed
|
|
||||||
):
|
|
||||||
task.return_value(None)
|
|
||||||
return
|
|
||||||
|
|
||||||
values["executable"] = (
|
|
||||||
["start", f'steam://rungameid/{values["appid"]}']
|
|
||||||
if os.name == "nt"
|
|
||||||
else ["xdg-open", f'steam://rungameid/{values["appid"]}']
|
|
||||||
)
|
|
||||||
values["hidden"] = False
|
|
||||||
values["source"] = "steam"
|
|
||||||
values["added"] = current_time
|
|
||||||
values["last_played"] = 0
|
|
||||||
|
|
||||||
url = f'https://store.steampowered.com/api/appdetails?appids={values["appid"]}'
|
|
||||||
|
|
||||||
# On Linux the request is made through gvfs so the app can run without network permissions
|
|
||||||
if os.name == "nt":
|
|
||||||
try:
|
|
||||||
with urllib.request.urlopen(url, timeout=10) as open_file:
|
|
||||||
content = open_file.read().decode("utf-8")
|
|
||||||
except urllib.error.URLError:
|
|
||||||
content = None
|
|
||||||
else:
|
|
||||||
open_file = Gio.File.new_for_uri(url)
|
|
||||||
try:
|
|
||||||
content = open_file.load_contents()[1]
|
|
||||||
except GLib.GError:
|
|
||||||
content = None
|
|
||||||
|
|
||||||
if content:
|
|
||||||
values = update_values_from_data(content, values)
|
|
||||||
|
|
||||||
if os.path.isfile(
|
|
||||||
os.path.join(
|
|
||||||
steam_dir,
|
|
||||||
"appcache",
|
|
||||||
"librarycache",
|
|
||||||
f'{values["appid"]}_library_600x900.jpg',
|
|
||||||
)
|
|
||||||
):
|
|
||||||
save_cover(
|
|
||||||
values,
|
|
||||||
parent_widget,
|
|
||||||
os.path.join(
|
|
||||||
steam_dir,
|
|
||||||
"appcache",
|
|
||||||
"librarycache",
|
|
||||||
f'{values["appid"]}_library_600x900.jpg',
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
task.return_value(values)
|
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
def get_games_async(parent_widget, appmanifests, steam_dir, import_dialog, progressbar):
|
|
||||||
datatypes = ["appid", "name"]
|
|
||||||
current_time = int(time.time())
|
|
||||||
|
|
||||||
steam_games = {}
|
|
||||||
queue = 0
|
|
||||||
|
|
||||||
# Wrap the function in another one as Gio.Task.run_in_thread does not allow for passing args
|
|
||||||
def create_func(datatypes, current_time, parent_widget, appmanifest, steam_dir):
|
|
||||||
def wrapper(task, *_unused):
|
|
||||||
get_game(
|
|
||||||
task, datatypes, current_time, parent_widget, appmanifest, steam_dir
|
|
||||||
)
|
|
||||||
|
|
||||||
return wrapper
|
|
||||||
|
|
||||||
def update_games(_task, result, parent_widget):
|
|
||||||
nonlocal queue
|
|
||||||
nonlocal total_queue
|
|
||||||
nonlocal import_dialog
|
|
||||||
nonlocal progressbar
|
|
||||||
|
|
||||||
queue -= 1
|
|
||||||
progressbar.set_fraction(1 - (queue / total_queue))
|
|
||||||
|
|
||||||
try:
|
|
||||||
final_values = result.propagate_value()[1]
|
|
||||||
steam_games[final_values["game_id"]] = final_values
|
|
||||||
except (TypeError, GLib.GError):
|
|
||||||
pass
|
|
||||||
|
|
||||||
if queue == 0:
|
|
||||||
save_games(steam_games)
|
|
||||||
parent_widget.update_games(steam_games)
|
|
||||||
import_dialog.close()
|
|
||||||
games_no = len(
|
|
||||||
{
|
|
||||||
game_id: final_values
|
|
||||||
for game_id, final_values in steam_games.items()
|
|
||||||
if "blacklisted" not in final_values.keys()
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
def response(_widget, response):
|
|
||||||
if response == "open_preferences":
|
|
||||||
parent_widget.get_application().on_preferences_action(None)
|
|
||||||
|
|
||||||
if games_no == 0:
|
|
||||||
create_dialog(
|
|
||||||
parent_widget,
|
|
||||||
_("No Games Found"),
|
|
||||||
_("No new games were found in the Steam library."),
|
|
||||||
"open_preferences",
|
|
||||||
_("Preferences"),
|
|
||||||
).connect("response", response)
|
|
||||||
|
|
||||||
elif games_no == 1:
|
|
||||||
create_dialog(
|
|
||||||
parent_widget,
|
|
||||||
_("Steam Games Imported"),
|
|
||||||
_("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 {games_no} games."),
|
|
||||||
)
|
|
||||||
|
|
||||||
total_queue = 0
|
|
||||||
for appmanifest in appmanifests:
|
|
||||||
queue += 1
|
|
||||||
total_queue += 1
|
|
||||||
|
|
||||||
cancellable = Gio.Cancellable.new()
|
|
||||||
GLib.timeout_add_seconds(5, cancellable.cancel)
|
|
||||||
|
|
||||||
task = Gio.Task.new(None, cancellable, update_games, parent_widget)
|
|
||||||
task.set_return_on_cancel(True)
|
|
||||||
task.run_in_thread(
|
|
||||||
create_func(datatypes, current_time, parent_widget, appmanifest, steam_dir)
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def steam_parser(parent_widget, action):
|
|
||||||
schema = parent_widget.schema
|
|
||||||
steam_dir = os.path.expanduser(schema.get_string("steam-location"))
|
|
||||||
|
|
||||||
def steam_not_found():
|
|
||||||
if os.path.exists(
|
|
||||||
os.path.expanduser("~/.var/app/com.valvesoftware.Steam/data/Steam/")
|
|
||||||
):
|
|
||||||
schema.set_string(
|
|
||||||
"steam-location", "~/.var/app/com.valvesoftware.Steam/data/Steam/"
|
|
||||||
)
|
|
||||||
action(None, None)
|
|
||||||
elif os.path.exists(os.path.expanduser("~/.steam/steam/")):
|
|
||||||
schema.set_string("steam-location", "~/.steam/steam/")
|
|
||||||
action(None, None)
|
|
||||||
elif os.path.exists(os.path.join(os.getenv("programfiles(x86)"), "Steam")):
|
|
||||||
schema.set_string(
|
|
||||||
"steam-location", os.path.join(os.getenv("programfiles(x86)"), "Steam")
|
|
||||||
)
|
|
||||||
action(None, None)
|
|
||||||
else:
|
|
||||||
filechooser = Gtk.FileDialog.new()
|
|
||||||
|
|
||||||
def set_steam_dir(_source, result, _unused):
|
|
||||||
try:
|
|
||||||
schema.set_string(
|
|
||||||
"steam-location",
|
|
||||||
filechooser.select_folder_finish(result).get_path(),
|
|
||||||
)
|
|
||||||
action(None, None)
|
|
||||||
except GLib.GError:
|
|
||||||
return
|
|
||||||
|
|
||||||
def choose_folder(_widget):
|
|
||||||
filechooser.select_folder(parent_widget, None, set_steam_dir, None)
|
|
||||||
|
|
||||||
def response(widget, response):
|
|
||||||
if response == "choose_folder":
|
|
||||||
choose_folder(widget)
|
|
||||||
|
|
||||||
create_dialog(
|
|
||||||
parent_widget,
|
|
||||||
_("Couldn't Import Games"),
|
|
||||||
_("The Steam directory cannot be found."),
|
|
||||||
"choose_folder",
|
|
||||||
_("Set Steam Location"),
|
|
||||||
).connect("response", response)
|
|
||||||
|
|
||||||
if os.path.exists(os.path.join(steam_dir, "steamapps")):
|
|
||||||
pass
|
|
||||||
elif os.path.exists(os.path.join(steam_dir, "steam", "steamapps")):
|
|
||||||
schema.set_string("steam-location", os.path.join(steam_dir, "steam"))
|
|
||||||
elif os.path.exists(os.path.join(steam_dir, "Steam", "steamapps")):
|
|
||||||
schema.set_string("steam-location", os.path.join(steam_dir, "Steam"))
|
|
||||||
else:
|
|
||||||
steam_not_found()
|
|
||||||
return {}
|
|
||||||
|
|
||||||
steam_dir = os.path.expanduser(schema.get_string("steam-location"))
|
|
||||||
|
|
||||||
progressbar = Gtk.ProgressBar(margin_start=12, margin_end=12)
|
|
||||||
import_statuspage = Adw.StatusPage(
|
|
||||||
title=_("Importing Games…"),
|
|
||||||
description=_("Talking to Steam"),
|
|
||||||
child=progressbar,
|
|
||||||
)
|
|
||||||
|
|
||||||
import_dialog = Adw.Window(
|
|
||||||
content=import_statuspage,
|
|
||||||
modal=True,
|
|
||||||
default_width=350,
|
|
||||||
default_height=-1,
|
|
||||||
transient_for=parent_widget,
|
|
||||||
deletable=False,
|
|
||||||
)
|
|
||||||
|
|
||||||
import_dialog.present()
|
|
||||||
|
|
||||||
appmanifests = []
|
|
||||||
|
|
||||||
steam_dirs = schema.get_strv("steam-extra-dirs")
|
|
||||||
steam_dirs.append(steam_dir)
|
|
||||||
|
|
||||||
for directory in steam_dirs:
|
|
||||||
if not os.path.exists(os.path.join(directory, "steamapps")):
|
|
||||||
steam_dirs.remove(directory)
|
|
||||||
|
|
||||||
for directory in steam_dirs:
|
|
||||||
for open_file in os.listdir(os.path.join(directory, "steamapps")):
|
|
||||||
path = os.path.join(directory, "steamapps", open_file)
|
|
||||||
if os.path.isfile(path) and "appmanifest" in open_file:
|
|
||||||
appmanifests.append(path)
|
|
||||||
|
|
||||||
get_games_async(parent_widget, appmanifests, directory, import_dialog, progressbar)
|
|
||||||
124
src/utils/steamgriddb.py
Normal file
@@ -0,0 +1,124 @@
|
|||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
import requests
|
||||||
|
from gi.repository import Gio
|
||||||
|
|
||||||
|
from .create_dialog import create_dialog
|
||||||
|
from .save_cover import save_cover, resize_animation
|
||||||
|
|
||||||
|
|
||||||
|
class SGDBSave:
|
||||||
|
def __init__(self, win, games, importer=None):
|
||||||
|
self.win = win
|
||||||
|
self.importer = importer
|
||||||
|
self.exception = None
|
||||||
|
|
||||||
|
# Wrap the function in another one as Gio.Task.run_in_thread does not allow for passing args
|
||||||
|
def create_func(game):
|
||||||
|
def wrapper(task, *_unused):
|
||||||
|
self.update_cover(
|
||||||
|
task,
|
||||||
|
game,
|
||||||
|
)
|
||||||
|
|
||||||
|
return wrapper
|
||||||
|
|
||||||
|
for game in games:
|
||||||
|
Gio.Task.new(None, None, self.task_done).run_in_thread(create_func(game))
|
||||||
|
|
||||||
|
def update_cover(self, task, game):
|
||||||
|
if self.win.schema.get_boolean("sgdb") and (
|
||||||
|
self.win.schema.get_boolean("sgdb-prefer")
|
||||||
|
or (
|
||||||
|
not (self.win.covers_dir / f"{game[0]}.gif").is_file()
|
||||||
|
and not (self.win.covers_dir / f"{game[0]}.tiff").is_file()
|
||||||
|
)
|
||||||
|
):
|
||||||
|
if not self.importer:
|
||||||
|
self.win.games[game[0]].set_loading(1)
|
||||||
|
|
||||||
|
url = "https://www.steamgriddb.com/api/v2/"
|
||||||
|
headers = {
|
||||||
|
"Authorization": f'Bearer {self.win.schema.get_string("sgdb-key")}'
|
||||||
|
}
|
||||||
|
|
||||||
|
try:
|
||||||
|
search_result = requests.get(
|
||||||
|
f"{url}search/autocomplete/{game[1]}",
|
||||||
|
headers=headers,
|
||||||
|
timeout=5,
|
||||||
|
)
|
||||||
|
if search_result.status_code != 200:
|
||||||
|
self.exception = str(
|
||||||
|
search_result.json()["errors"][0]
|
||||||
|
if "errors" in tuple(search_result.json())
|
||||||
|
else search_result.status_code
|
||||||
|
)
|
||||||
|
search_result.raise_for_status()
|
||||||
|
except requests.exceptions.RequestException:
|
||||||
|
task.return_value(game[0])
|
||||||
|
return
|
||||||
|
|
||||||
|
animated_grid = False
|
||||||
|
response = None
|
||||||
|
|
||||||
|
try:
|
||||||
|
if self.win.schema.get_boolean("sgdb-animated"):
|
||||||
|
try:
|
||||||
|
grid = requests.get(
|
||||||
|
f'{url}grids/game/{search_result.json()["data"][0]["id"]}?dimensions=600x900&types=animated',
|
||||||
|
headers=headers,
|
||||||
|
timeout=5,
|
||||||
|
)
|
||||||
|
response = requests.get(
|
||||||
|
grid.json()["data"][0]["url"], timeout=5
|
||||||
|
)
|
||||||
|
animated_grid = True
|
||||||
|
except IndexError:
|
||||||
|
pass
|
||||||
|
if not response:
|
||||||
|
grid = requests.get(
|
||||||
|
f'{url}grids/game/{search_result.json()["data"][0]["id"]}?dimensions=600x900',
|
||||||
|
headers=headers,
|
||||||
|
timeout=5,
|
||||||
|
)
|
||||||
|
response = requests.get(grid.json()["data"][0]["url"], timeout=5)
|
||||||
|
except (requests.exceptions.RequestException, IndexError):
|
||||||
|
task.return_value(game[0])
|
||||||
|
return
|
||||||
|
|
||||||
|
tmp_file = Gio.File.new_tmp(None)[0]
|
||||||
|
Path(tmp_file.get_path()).write_bytes(response.content)
|
||||||
|
|
||||||
|
save_cover(
|
||||||
|
self.win,
|
||||||
|
game[0],
|
||||||
|
tmp_file.get_path(),
|
||||||
|
animation_path=resize_animation(tmp_file.get_path())
|
||||||
|
if animated_grid
|
||||||
|
else None,
|
||||||
|
)
|
||||||
|
|
||||||
|
task.return_value(game[0])
|
||||||
|
|
||||||
|
def task_done(self, _task, result):
|
||||||
|
if self.importer:
|
||||||
|
self.importer.queue -= 1
|
||||||
|
self.importer.done()
|
||||||
|
self.importer.sgdb_exception = self.exception
|
||||||
|
|
||||||
|
if self.exception and not self.importer:
|
||||||
|
create_dialog(
|
||||||
|
self.win,
|
||||||
|
_("Couldn't Connect to SteamGridDB"),
|
||||||
|
self.exception,
|
||||||
|
"open_preferences",
|
||||||
|
_("Preferences"),
|
||||||
|
).connect("response", self.response)
|
||||||
|
|
||||||
|
game_id = result.propagate_value()[1]
|
||||||
|
self.win.update_games([game_id])
|
||||||
|
|
||||||
|
def response(self, _widget, response):
|
||||||
|
if response == "open_preferences":
|
||||||
|
self.win.get_application().on_preferences_action(None, page_name="sgdb")
|
||||||
257
src/window.py
@@ -19,12 +19,15 @@
|
|||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import os
|
import os
|
||||||
|
import struct
|
||||||
|
from pathlib import Path
|
||||||
|
from shutil import rmtree
|
||||||
|
|
||||||
from gi.repository import Adw, GdkPixbuf, Gio, GLib, Gtk
|
from gi.repository import Adw, Gdk, GdkPixbuf, Gio, GLib, Gtk
|
||||||
|
|
||||||
from .game import game
|
from .game import Game
|
||||||
from .get_games import get_games
|
from .get_games import get_games
|
||||||
from .save_games import save_games
|
from .save_game import save_game
|
||||||
|
|
||||||
|
|
||||||
@Gtk.Template(resource_path="/hu/kramo/Cartridges/gtk/window.ui")
|
@Gtk.Template(resource_path="/hu/kramo/Cartridges/gtk/window.ui")
|
||||||
@@ -34,7 +37,7 @@ class CartridgesWindow(Adw.ApplicationWindow):
|
|||||||
toast_overlay = Gtk.Template.Child()
|
toast_overlay = Gtk.Template.Child()
|
||||||
primary_menu_button = Gtk.Template.Child()
|
primary_menu_button = Gtk.Template.Child()
|
||||||
stack = Gtk.Template.Child()
|
stack = Gtk.Template.Child()
|
||||||
overview = Gtk.Template.Child()
|
details_view = Gtk.Template.Child()
|
||||||
library_view = Gtk.Template.Child()
|
library_view = Gtk.Template.Child()
|
||||||
library = Gtk.Template.Child()
|
library = Gtk.Template.Child()
|
||||||
scrolledwindow = Gtk.Template.Child()
|
scrolledwindow = Gtk.Template.Child()
|
||||||
@@ -45,16 +48,17 @@ class CartridgesWindow(Adw.ApplicationWindow):
|
|||||||
search_entry = Gtk.Template.Child()
|
search_entry = Gtk.Template.Child()
|
||||||
search_button = Gtk.Template.Child()
|
search_button = Gtk.Template.Child()
|
||||||
|
|
||||||
overview_box = Gtk.Template.Child()
|
details_view_box = Gtk.Template.Child()
|
||||||
overview_cover = Gtk.Template.Child()
|
details_view_cover = Gtk.Template.Child()
|
||||||
overview_title = Gtk.Template.Child()
|
details_view_spinner = Gtk.Template.Child()
|
||||||
overview_header_bar_title = Gtk.Template.Child()
|
details_view_title = Gtk.Template.Child()
|
||||||
overview_launch = Gtk.Template.Child()
|
details_view_header_bar_title = Gtk.Template.Child()
|
||||||
overview_blurred_cover = Gtk.Template.Child()
|
details_view_play_button = Gtk.Template.Child()
|
||||||
overview_menu_button = Gtk.Template.Child()
|
details_view_blurred_cover = Gtk.Template.Child()
|
||||||
overview_developer = Gtk.Template.Child()
|
details_view_developer = Gtk.Template.Child()
|
||||||
overview_added = Gtk.Template.Child()
|
details_view_added = Gtk.Template.Child()
|
||||||
overview_last_played = Gtk.Template.Child()
|
details_view_last_played = Gtk.Template.Child()
|
||||||
|
details_view_hide_button = Gtk.Template.Child()
|
||||||
|
|
||||||
hidden_library = Gtk.Template.Child()
|
hidden_library = Gtk.Template.Child()
|
||||||
hidden_library_view = Gtk.Template.Child()
|
hidden_library_view = Gtk.Template.Child()
|
||||||
@@ -68,52 +72,60 @@ class CartridgesWindow(Adw.ApplicationWindow):
|
|||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
|
|
||||||
|
self.data_dir = (
|
||||||
|
Path(os.getenv("XDG_DATA_HOME"))
|
||||||
|
if "XDG_DATA_HOME" in os.environ
|
||||||
|
else Path.home() / ".local" / "share"
|
||||||
|
)
|
||||||
|
self.config_dir = (
|
||||||
|
Path(os.getenv("XDG_CONFIG_HOME"))
|
||||||
|
if "XDG_CONFIG_HOME" in os.environ
|
||||||
|
else Path.home() / ".config"
|
||||||
|
)
|
||||||
|
self.cache_dir = (
|
||||||
|
Path(os.getenv("XDG_CACHE_HOME"))
|
||||||
|
if "XDG_CACHE_HOME" in os.environ
|
||||||
|
else Path.home() / ".cache"
|
||||||
|
)
|
||||||
|
|
||||||
|
self.games_dir = self.data_dir / "cartridges" / "games"
|
||||||
|
self.covers_dir = self.data_dir / "cartridges" / "covers"
|
||||||
|
|
||||||
self.games = {}
|
self.games = {}
|
||||||
|
self.game_covers = {}
|
||||||
self.visible_widgets = {}
|
self.visible_widgets = {}
|
||||||
self.hidden_widgets = {}
|
self.hidden_widgets = {}
|
||||||
self.filtered = {}
|
self.filtered = {}
|
||||||
self.hidden_filtered = {}
|
self.hidden_filtered = {}
|
||||||
self.previous_page = self.library_view
|
self.previous_page = self.library_view
|
||||||
self.toasts = {}
|
self.toasts = {}
|
||||||
self.pixbufs = {}
|
|
||||||
self.active_game_id = None
|
self.active_game_id = None
|
||||||
|
self.scaled_pixbuf = None
|
||||||
self.overview.set_measure_overlay(self.overview_box, True)
|
self.details_view_game_cover = None
|
||||||
self.overview.set_clip_overlay(self.overview_box, False)
|
|
||||||
|
|
||||||
self.schema = Gio.Settings.new("hu.kramo.Cartridges")
|
self.schema = Gio.Settings.new("hu.kramo.Cartridges")
|
||||||
self.placeholder_pixbuf = GdkPixbuf.Pixbuf.new_from_resource_at_scale(
|
scale_factor = max(
|
||||||
"/hu/kramo/Cartridges/library_placeholder.svg", 200, 300, False
|
monitor.get_scale_factor()
|
||||||
|
for monitor in Gdk.Display.get_default().get_monitors()
|
||||||
)
|
)
|
||||||
current_games = get_games()
|
self.image_size = (200 * scale_factor, 300 * scale_factor)
|
||||||
for current_game in current_games:
|
|
||||||
if "removed" in current_games[current_game].keys():
|
games = get_games(self)
|
||||||
os.remove(
|
for game_id in games:
|
||||||
os.path.join(
|
if "removed" in games[game_id]:
|
||||||
os.getenv("XDG_DATA_HOME")
|
(self.games_dir / f"{game_id}.json").unlink(missing_ok=True)
|
||||||
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
(self.covers_dir / f"{game_id}.tiff").unlink(missing_ok=True)
|
||||||
"cartridges",
|
(self.covers_dir / f"{game_id}.gif").unlink(missing_ok=True)
|
||||||
"games",
|
|
||||||
f"{current_game}.json",
|
rmtree(self.cache_dir / "cartridges" / "deleted_covers", True)
|
||||||
)
|
|
||||||
)
|
self.details_view.set_measure_overlay(self.details_view_box, True)
|
||||||
try:
|
self.details_view.set_clip_overlay(self.details_view_box, False)
|
||||||
os.remove(
|
|
||||||
os.path.join(
|
|
||||||
os.getenv("XDG_DATA_HOME")
|
|
||||||
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
|
||||||
"cartridges",
|
|
||||||
"covers",
|
|
||||||
f"{current_game}.dat",
|
|
||||||
)
|
|
||||||
)
|
|
||||||
except FileNotFoundError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
self.library.set_filter_func(self.search_filter)
|
self.library.set_filter_func(self.search_filter)
|
||||||
self.hidden_library.set_filter_func(self.hidden_search_filter)
|
self.hidden_library.set_filter_func(self.hidden_search_filter)
|
||||||
|
|
||||||
self.update_games(get_games())
|
self.update_games(get_games(self))
|
||||||
|
|
||||||
# Connect signals
|
# Connect signals
|
||||||
self.search_entry.connect("search-changed", self.search_changed, False)
|
self.search_entry.connect("search-changed", self.search_changed, False)
|
||||||
@@ -123,8 +135,15 @@ class CartridgesWindow(Adw.ApplicationWindow):
|
|||||||
back_mouse_button.connect("pressed", self.on_go_back_action)
|
back_mouse_button.connect("pressed", self.on_go_back_action)
|
||||||
self.add_controller(back_mouse_button)
|
self.add_controller(back_mouse_button)
|
||||||
|
|
||||||
|
Adw.StyleManager.get_default().connect(
|
||||||
|
"notify::dark", self.set_details_view_opacity
|
||||||
|
)
|
||||||
|
Adw.StyleManager.get_default().connect(
|
||||||
|
"notify::high-contrast", self.set_details_view_opacity
|
||||||
|
)
|
||||||
|
|
||||||
def update_games(self, games):
|
def update_games(self, games):
|
||||||
current_games = get_games()
|
current_games = get_games(self)
|
||||||
|
|
||||||
for game_id in games:
|
for game_id in games:
|
||||||
if game_id in self.visible_widgets:
|
if game_id in self.visible_widgets:
|
||||||
@@ -138,7 +157,7 @@ class CartridgesWindow(Adw.ApplicationWindow):
|
|||||||
|
|
||||||
current_game = current_games[game_id]
|
current_game = current_games[game_id]
|
||||||
|
|
||||||
entry = game(self, current_game)
|
entry = Game(self, current_game)
|
||||||
self.games[current_game["game_id"]] = entry
|
self.games[current_game["game_id"]] = entry
|
||||||
|
|
||||||
if entry.removed:
|
if entry.removed:
|
||||||
@@ -168,6 +187,9 @@ class CartridgesWindow(Adw.ApplicationWindow):
|
|||||||
else:
|
else:
|
||||||
self.hidden_library_bin.set_child(self.hidden_scrolledwindow)
|
self.hidden_library_bin.set_child(self.hidden_scrolledwindow)
|
||||||
|
|
||||||
|
if self.stack.get_visible_child() == self.details_view:
|
||||||
|
self.show_details_view(None, self.active_game_id)
|
||||||
|
|
||||||
self.library.invalidate_filter()
|
self.library.invalidate_filter()
|
||||||
self.hidden_library.invalidate_filter()
|
self.hidden_library.invalidate_filter()
|
||||||
|
|
||||||
@@ -236,49 +258,105 @@ class CartridgesWindow(Adw.ApplicationWindow):
|
|||||||
return _("Yesterday")
|
return _("Yesterday")
|
||||||
if (datetime.datetime.today() - date).days < 8:
|
if (datetime.datetime.today() - date).days < 8:
|
||||||
return GLib.DateTime.new_from_unix_utc(timestamp).format("%A")
|
return GLib.DateTime.new_from_unix_utc(timestamp).format("%A")
|
||||||
return GLib.DateTime.new_from_unix_utc(timestamp).format("%x")
|
if (datetime.datetime.today() - date).days < 335:
|
||||||
|
return GLib.DateTime.new_from_unix_utc(timestamp).format("%B")
|
||||||
|
return GLib.DateTime.new_from_unix_utc(timestamp).format("%Y")
|
||||||
|
|
||||||
def show_overview(self, _widget, game_id):
|
def show_details_view(self, _widget, game_id):
|
||||||
current_game = self.games[game_id]
|
current_game = self.games[game_id]
|
||||||
|
|
||||||
|
self.details_view_cover.set_visible(not current_game.loading)
|
||||||
|
self.details_view_spinner.set_spinning(current_game.loading)
|
||||||
|
|
||||||
if current_game.developer:
|
if current_game.developer:
|
||||||
self.overview_developer.set_label(current_game.developer)
|
self.details_view_developer.set_label(current_game.developer)
|
||||||
self.overview_developer.set_visible(True)
|
self.details_view_developer.set_visible(True)
|
||||||
else:
|
else:
|
||||||
self.overview_developer.set_visible(False)
|
self.details_view_developer.set_visible(False)
|
||||||
|
|
||||||
self.overview_menu_button.set_menu_model(
|
if current_game.hidden:
|
||||||
current_game.menu_button.get_menu_model()
|
self.details_view_hide_button.set_icon_name("view-reveal-symbolic")
|
||||||
)
|
self.details_view_hide_button.set_tooltip_text(_("Unhide"))
|
||||||
|
else:
|
||||||
if self.stack.get_visible_child() != self.overview:
|
self.details_view_hide_button.set_icon_name("view-conceal-symbolic")
|
||||||
self.stack.set_transition_type(Gtk.StackTransitionType.OVER_LEFT)
|
self.details_view_hide_button.set_tooltip_text(_("Hide"))
|
||||||
self.stack.set_visible_child(self.overview)
|
|
||||||
|
|
||||||
self.active_game_id = game_id
|
self.active_game_id = game_id
|
||||||
|
|
||||||
pixbuf = current_game.pixbuf
|
if self.details_view_game_cover:
|
||||||
self.overview_cover.set_pixbuf(pixbuf)
|
self.details_view_game_cover.pictures.remove(self.details_view_cover)
|
||||||
self.overview_blurred_cover.set_pixbuf(
|
self.details_view_game_cover = self.game_covers[game_id]
|
||||||
pixbuf.scale_simple(2, 3, GdkPixbuf.InterpType.BILINEAR)
|
self.details_view_game_cover.add_picture(self.details_view_cover)
|
||||||
)
|
|
||||||
self.overview_title.set_label(current_game.name)
|
self.scaled_pixbuf = (
|
||||||
self.overview_header_bar_title.set_title(current_game.name)
|
self.details_view_game_cover.get_pixbuf()
|
||||||
|
or self.details_view_game_cover.placeholder_pixbuf
|
||||||
|
).scale_simple(2, 3, GdkPixbuf.InterpType.BILINEAR)
|
||||||
|
self.details_view_blurred_cover.set_pixbuf(self.scaled_pixbuf)
|
||||||
|
|
||||||
|
self.details_view_title.set_label(current_game.name)
|
||||||
|
self.details_view_header_bar_title.set_title(current_game.name)
|
||||||
date = self.get_time(current_game.added)
|
date = self.get_time(current_game.added)
|
||||||
self.overview_added.set_label(
|
self.details_view_added.set_label(
|
||||||
# The variable is the date when the game was added
|
# The variable is the date when the game was added
|
||||||
_(f"Added: {date}")
|
_("Added: {}").format(date)
|
||||||
)
|
)
|
||||||
last_played_date = (
|
last_played_date = (
|
||||||
self.get_time(current_game.last_played)
|
self.get_time(current_game.last_played)
|
||||||
if current_game.last_played != 0
|
if current_game.last_played != 0
|
||||||
else _("Never")
|
else _("Never")
|
||||||
)
|
)
|
||||||
self.overview_last_played.set_label(
|
self.details_view_last_played.set_label(
|
||||||
# The variable is the date when the game was last played
|
# The variable is the date when the game was last played
|
||||||
_(f"Last played: {last_played_date}")
|
_("Last played: {}").format(last_played_date)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if self.stack.get_visible_child() != self.details_view:
|
||||||
|
self.stack.set_transition_type(Gtk.StackTransitionType.OVER_LEFT)
|
||||||
|
self.stack.set_visible_child(self.details_view)
|
||||||
|
|
||||||
|
self.set_details_view_opacity()
|
||||||
|
|
||||||
|
def set_details_view_opacity(self, _widget=None, _unused=None):
|
||||||
|
if self.stack.get_visible_child() == self.details_view:
|
||||||
|
style_manager = Adw.StyleManager.get_default()
|
||||||
|
|
||||||
|
if (
|
||||||
|
style_manager.get_high_contrast()
|
||||||
|
or not style_manager.get_system_supports_color_schemes()
|
||||||
|
):
|
||||||
|
self.details_view_blurred_cover.set_opacity(0.3)
|
||||||
|
return
|
||||||
|
|
||||||
|
pixels = self.scaled_pixbuf.get_pixels()
|
||||||
|
channels = self.scaled_pixbuf.get_n_channels()
|
||||||
|
colors = set()
|
||||||
|
|
||||||
|
for index in range(6):
|
||||||
|
colors.add(struct.unpack_from("BBBB", pixels, offset=index * channels))
|
||||||
|
|
||||||
|
dark_theme = style_manager.get_dark()
|
||||||
|
|
||||||
|
luminances = []
|
||||||
|
|
||||||
|
for red, green, blue, alpha in colors:
|
||||||
|
# https://en.wikipedia.org/wiki/Relative_luminance
|
||||||
|
luminance = red * 0.2126 + green * 0.7152 + blue * 0.0722
|
||||||
|
|
||||||
|
if dark_theme:
|
||||||
|
luminances.append((luminance * alpha) / 255**2)
|
||||||
|
else:
|
||||||
|
luminances.append((alpha * (luminance - 255)) / 255**2 + 1)
|
||||||
|
|
||||||
|
if dark_theme:
|
||||||
|
self.details_view_blurred_cover.set_opacity(
|
||||||
|
1.3 - (sum(luminances) / len(luminances) + max(luminances)) / 2
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
self.details_view_blurred_cover.set_opacity(
|
||||||
|
0.2 + (sum(luminances) / len(luminances) + min(luminances)) / 2
|
||||||
|
)
|
||||||
|
|
||||||
def a_z_sort(self, child1, child2):
|
def a_z_sort(self, child1, child2):
|
||||||
name1 = child1.get_first_child().name.lower()
|
name1 = child1.get_first_child().name.lower()
|
||||||
name2 = child2.get_first_child().name.lower()
|
name2 = child2.get_first_child().name.lower()
|
||||||
@@ -321,11 +399,11 @@ class CartridgesWindow(Adw.ApplicationWindow):
|
|||||||
def on_go_back_action(self, _widget, _unused, _x=None, _y=None):
|
def on_go_back_action(self, _widget, _unused, _x=None, _y=None):
|
||||||
if self.stack.get_visible_child() == self.hidden_library_view:
|
if self.stack.get_visible_child() == self.hidden_library_view:
|
||||||
self.on_show_library_action(None, None)
|
self.on_show_library_action(None, None)
|
||||||
elif self.stack.get_visible_child() == self.overview:
|
elif self.stack.get_visible_child() == self.details_view:
|
||||||
self.on_go_to_parent_action(None, None)
|
self.on_go_to_parent_action(None, None)
|
||||||
|
|
||||||
def on_go_to_parent_action(self, _widget, _unused):
|
def on_go_to_parent_action(self, _widget, _unused):
|
||||||
if self.stack.get_visible_child() == self.overview:
|
if self.stack.get_visible_child() == self.details_view:
|
||||||
if self.previous_page == self.library_view:
|
if self.previous_page == self.library_view:
|
||||||
self.on_show_library_action(None, None)
|
self.on_show_library_action(None, None)
|
||||||
else:
|
else:
|
||||||
@@ -393,7 +471,7 @@ class CartridgesWindow(Adw.ApplicationWindow):
|
|||||||
search_entry.set_text("")
|
search_entry.set_text("")
|
||||||
|
|
||||||
def on_escape_action(self, _widget, _unused):
|
def on_escape_action(self, _widget, _unused):
|
||||||
if self.stack.get_visible_child() == self.overview:
|
if self.stack.get_visible_child() == self.details_view:
|
||||||
self.on_go_back_action(None, None)
|
self.on_go_back_action(None, None)
|
||||||
return
|
return
|
||||||
if self.stack.get_visible_child() == self.library_view:
|
if self.stack.get_visible_child() == self.library_view:
|
||||||
@@ -412,23 +490,28 @@ class CartridgesWindow(Adw.ApplicationWindow):
|
|||||||
search_button.set_active(False)
|
search_button.set_active(False)
|
||||||
search_entry.set_text("")
|
search_entry.set_text("")
|
||||||
|
|
||||||
def on_undo_remove_action(self, _widget, game_id=None):
|
def on_undo_action(self, _widget, game_id=None, undo=None):
|
||||||
# Remove the "removed=True" property from the game and dismiss the toast
|
if not game_id: # If the action was activated via Ctrl + Z
|
||||||
|
|
||||||
if not game_id:
|
|
||||||
try:
|
try:
|
||||||
game_id = list(self.toasts)[-1]
|
game_id = tuple(self.toasts.keys())[-1][0]
|
||||||
|
undo = tuple(self.toasts.keys())[-1][1]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
return
|
return
|
||||||
data = get_games([game_id])[game_id]
|
|
||||||
data.pop("removed")
|
if undo == "hide":
|
||||||
save_games({game_id: data})
|
self.get_application().on_hide_game_action(
|
||||||
self.update_games([game_id])
|
None, game_id=game_id, toast=False
|
||||||
self.toasts[game_id].dismiss()
|
)
|
||||||
self.toasts.pop(game_id)
|
|
||||||
|
elif undo == "remove":
|
||||||
|
data = get_games(self, [game_id])[game_id]
|
||||||
|
data.pop("removed", None)
|
||||||
|
save_game(self, data)
|
||||||
|
self.update_games([game_id])
|
||||||
|
|
||||||
|
self.toasts[(game_id, undo)].dismiss()
|
||||||
|
self.toasts.pop((game_id, undo))
|
||||||
|
|
||||||
def on_open_menu_action(self, _widget, _unused):
|
def on_open_menu_action(self, _widget, _unused):
|
||||||
if self.stack.get_visible_child() != self.overview:
|
if self.stack.get_visible_child() != self.details_view:
|
||||||
self.primary_menu_button.set_active(True)
|
self.primary_menu_button.set_active(True)
|
||||||
else:
|
|
||||||
self.overview_menu_button.set_active(True)
|
|
||||||
|
|||||||