Compare commits

...

137 Commits

Author SHA1 Message Date
GeoffreyCoulaud
77dfc366b1 Re-enabled Steam RetroArch to work on it 2023-08-17 14:16:07 +02:00
GeoffreyCoulaud
37f838e4a2 Added back locations 2023-08-17 14:13:55 +02:00
GeoffreyCoulaud
a39303603c Merge branch 'main' into retroarch-make-exec 2023-08-17 14:09:03 +02:00
GeoffreyCoulaud
195f7dbb7e Disabled Steam RetroArch to merge improvements to main 2023-08-17 14:07:04 +02:00
kramo
191beed12e Use shared.home consistently 2023-08-17 13:52:56 +02:00
Geoffrey Coulaud
208eae75c1 Merge pull request #169 from kra-mo/typing-improvements
Typing improvements
2023-08-17 01:29:39 +02:00
GeoffreyCoulaud
f3c590b033 Explicit SteamManifestData building 2023-08-17 01:25:39 +02:00
GeoffreyCoulaud
a0c736b7cf Improved rate limiter code 2023-08-17 01:09:41 +02:00
kramo
0d32414f1e Add type hints to utils 2023-08-16 20:16:30 +02:00
kramo
eeb18eb017 Typing 2023-08-16 19:18:03 +02:00
kramo
a3aa7f9ccf Cleanups 2023-08-16 17:31:54 +02:00
kramo
0e2918cfe8 More sensible approach to screen reader in popups 2023-08-16 17:22:12 +02:00
kramo
8dc96b53b2 Type hints for UI code 2023-08-16 15:41:40 +02:00
kramo
0d6432388c Handle errors when loading games from disk 2023-08-16 12:45:32 +02:00
kramo
73897a9ed3 Update translations 2023-08-16 11:07:41 +02:00
GeoffreyCoulaud
f8037e2542 Improved Steam RetroArch command generation
- Verified that libretro core is selected
- Verified that rom is selected
- Ensure proper quoting
2023-08-16 02:34:59 +02:00
Geoffrey Coulaud
afb2d8b6d3 Merge pull request #168 from kra-mo/locations-override-fix
Various fixes for locations
2023-08-15 23:55:37 +02:00
GeoffreyCoulaud
dbb6076fdc Various fixes for locations
- Simplified some preferences code
- Added type hints to locations
- Made locations not shared between source instances (source of a bug)
- Updated source iter to resolve locations correctly
2023-08-15 23:53:18 +02:00
kramo
16d6a026e5 Make removed strings clearer 2023-08-15 22:46:20 +02:00
kramo
cb9513ff13 Fix import undo logic 2023-08-15 21:46:58 +02:00
kramo
b466eb7ab2 Dismiss loose toasts when cleaning up games 2023-08-15 21:32:24 +02:00
kramo
5551756111 Ctrl + Z for import undo 2023-08-15 21:19:27 +02:00
kramo
9b97e8c355 Basic undo system for imports 2023-08-15 21:10:10 +02:00
kramo
5abf3f300d Remove missing games - closes #85 2023-08-15 20:11:06 +02:00
kramo
8ca264ff95 Backport base_source from libadwaita-1.4 2023-08-15 19:04:02 +02:00
GeoffreyCoulaud
1c2c844f89 Disabled Steam RetroArch candidate 2023-08-15 02:52:17 +02:00
GeoffreyCoulaud
86ac95641c Work on Retroarch Steam executable 2023-08-13 19:18:54 +02:00
GeoffreyCoulaud
c2c998adcd Created source subclass, improved RetroArch exec
Steam RetroArch still not working on my machine.
2023-08-13 18:13:17 +02:00
kramo
0599a61057 Delete unused check_install.py 2023-08-13 16:07:32 +02:00
kramo
07b78bcdbd Add search entry placeholder text 2023-08-13 15:20:36 +02:00
kramo
78199267b3 Add RertoArch to keywords 2023-08-13 12:49:35 +02:00
kramo
0098669ab6 Update Rilic's link 2023-08-13 12:31:44 +02:00
kramo
fefa9d27bd Update translations 2023-08-13 12:30:45 +02:00
kramo
fe07f4f571 Add Rilic to about window 2023-08-13 12:23:02 +02:00
kramo
70d8d91b53 Use Libadwaita widgets for details window 2023-08-08 13:44:27 +02:00
Geoffrey Coulaud
675359ee58 Merge pull request #165 from kra-mo/candidates-fix
Fix for Retroarch Steam not found
2023-08-06 17:08:35 +02:00
GeoffreyCoulaud
f43d8ff907 Fix for RetroArch Steam not found 2023-08-06 17:00:03 +02:00
Geoffrey Coulaud
e90215bf66 Merge pull request #146 from RilicTheFox/main
Implement Retroarch Importer
2023-08-06 01:01:23 +02:00
Rilic
2e844b2d06 Improve RetroArch Steam support
And remove Windows support. For now.
2023-08-03 19:27:55 +01:00
Rilic
8de7226a2f Change "windows" to "win32" 2023-08-01 11:56:15 +01:00
Rilic
7598f1ea71 Convert RetroArch importer to new format 2023-08-01 11:30:39 +01:00
Rilic
417a02e8b6 Merge remote-tracking branch 'upstream/main' 2023-08-01 10:52:33 +01:00
Geoffrey Coulaud
1aff1347e3 Managers refactor (#164)
The main reason for this is the compositing of both local and online covers with the same logic.  
It was a problem raised in #146 with some covers getting stretched.

Changes:
- Renamed and simplified managers methods
- Created a generic `cover manager`
- Added more retryable errors to `steam api manager`
- Removed `local cover manager` and `online cover manager`
- Reduced dependency on `PIL`
2023-07-31 18:44:18 +02:00
Paweł Lidwin
e4dc1253ae Specify runner in heroic protocol (#163)
* improv: specify runner in heroic protocol to avoid appName collisions

* Update styling

Co-authored-by: kramo <93832451+kra-mo@users.noreply.github.com>

---------

Co-authored-by: kramo <93832451+kra-mo@users.noreply.github.com>
2023-07-27 18:38:34 +02:00
kramo
459e13ad05 v2.1.1 2023-07-27 11:13:14 +02:00
Weblate (bot)
e554cf8678 Translations update from Hosted Weblate (#155)
* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/
Translation: Cartridges/Cartridges
2023-07-27 11:10:45 +02:00
kramo
f0afdcc943 Merge pull request #160 from kra-mo/id-fix
Fix source id being translated
2023-07-27 11:08:42 +02:00
GeoffreyCoulaud
d3a6eaa4d1 Fix source id being translated
- Additional fix, lutris source db subpath
2023-07-27 04:34:33 +02:00
kramo
1404878e28 Merge pull request #158 from kra-mo/locations-improvements
Locations improvements
2023-07-26 16:01:32 +02:00
GeoffreyCoulaud
fa8a15addf Moved invalid location message to location 2023-07-26 15:27:28 +02:00
GeoffreyCoulaud
04d0e9e90e Clarified location sub paths 2023-07-26 04:43:10 +02:00
GeoffreyCoulaud
0677eae0a2 Removed unused import 2023-07-26 03:55:23 +02:00
GeoffreyCoulaud
f3dcdbf0d2 Using a named tuple to store source locations 2023-07-26 03:53:17 +02:00
kramo
0b577d2480 Update translations 2023-07-25 20:34:35 +02:00
kramo
ca73023bc9 v2.1 2023-07-25 20:32:46 +02:00
Weblate (bot)
b8cd1fd741 Translations update from Hosted Weblate (#152)
* Translated using Weblate (Italian)

Currently translated at 100.0% (121 of 121 strings)

Co-authored-by: Giasko <dibiame@hotmail.it>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/it/
Translation: Cartridges/Cartridges

* Translated using Weblate (Czech)

Currently translated at 100.0% (121 of 121 strings)

Added translation using Weblate (Czech)

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: foo expert <deferred_water346@simplelogin.com>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/cs/
Translation: Cartridges/Cartridges

* Translated using Weblate (Polish)

Currently translated at 100.0% (121 of 121 strings)

Co-authored-by: Michaks <fexwex3@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/pl/
Translation: Cartridges/Cartridges

* Translated using Weblate (French)

Currently translated at 100.0% (121 of 121 strings)

Co-authored-by: rene-coty <irenee.thirion@e.email>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/fr/
Translation: Cartridges/Cartridges

* Update translation files

Updated by "Squash Git commits" hook in Weblate.

Translation: Cartridges/Cartridges
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/

---------

Co-authored-by: Giasko <dibiame@hotmail.it>
Co-authored-by: foo expert <deferred_water346@simplelogin.com>
Co-authored-by: Michaks <fexwex3@gmail.com>
Co-authored-by: rene-coty <irenee.thirion@e.email>
2023-07-25 20:29:01 +02:00
kramo
26e8d6d2c6 Merge pull request #150 from kra-mo/heroic-fixes-and-improvements
Heroic fixes and improvements
2023-07-25 20:23:54 +02:00
Rilic
311ed3b09c Refactoring and error checks 2023-07-23 17:21:24 +01:00
Rilic
8eca19d9a1 Changes
- Add Windows support
- Add Steam RetroArch support
- Add support for custom playlist and thumbnail directories
2023-07-23 17:11:14 +01:00
GeoffreyCoulaud
7bcb113a33 extracted get_hidden_app_names to a method 2023-07-22 00:06:16 +02:00
GeoffreyCoulaud
fbf076660d Better heroic store file parsing 2023-07-22 00:04:02 +02:00
GeoffreyCoulaud
b1992a9466 Fix heroic legendary path detection 2023-07-21 14:39:07 +02:00
kramo
c347d9b0f4 v2.0.6 2023-07-21 09:45:18 +02:00
kramo
9cd4d7048c Don't blacklist Steam mods - #151 2023-07-21 09:39:32 +02:00
GeoffreyCoulaud
da777d3605 Permission for heroic flatpak's legendary files 2023-07-20 21:06:30 +02:00
GeoffreyCoulaud
4587720934 using cached_property for sub-source paths 2023-07-20 21:06:04 +02:00
GeoffreyCoulaud
270fa2092c Fixed heroic location candidates priority 2023-07-20 20:56:28 +02:00
kramo
82dddd1c5c Skip missing hidden key 2023-07-20 19:52:59 +02:00
kramo
3d17b5a920 Properly capitalize Pylint 2023-07-20 19:15:19 +02:00
kramo
2c67dd23ab Update contributing guidelines 2023-07-20 19:11:24 +02:00
kramo
45d1ddaa7d Add Matrix space to Readme 2023-07-20 11:56:55 +02:00
GeoffreyCoulaud
bb4870e99d Add debug message to local cover manager 2023-07-20 11:33:55 +02:00
GeoffreyCoulaud
190b446de5 More debug messages + fix sideloaded heroic games 2023-07-20 11:26:05 +02:00
GeoffreyCoulaud
52b6c47c8d More renaming to iterable + fixes to heroic 2023-07-20 10:58:23 +02:00
GeoffreyCoulaud
0df123975c Fix some syntax 2023-07-20 10:35:07 +02:00
GeoffreyCoulaud
7f576d1bd3 SourceIterator is actually just SourceIterable 2023-07-20 10:32:43 +02:00
GeoffreyCoulaud
30152cd10a simplified SourceIterator 2023-07-20 10:29:39 +02:00
GeoffreyCoulaud
2acdedf033 Added heroic import amazon to ui + fixes 2023-07-20 10:29:27 +02:00
GeoffreyCoulaud
a399113ff9 fixed typo 2023-07-19 13:12:07 +02:00
GeoffreyCoulaud
8839db272b better legendary sub-source library path detection 2023-07-19 13:00:29 +02:00
GeoffreyCoulaud
a0bfca01d6 WIP added support for heroic hidden
TODO
- Test all of that
2023-07-19 05:33:55 +02:00
GeoffreyCoulaud
0601fd5ebb Converted genexps to setcomps 2023-07-19 05:32:47 +02:00
GeoffreyCoulaud
15da65fccf WIP heroic source refactor
- Fixed installed games lookup
- Added support for amazon games

TODO
- Test (obviously)
- Consider getting hidden value
2023-07-19 05:01:17 +02:00
GeoffreyCoulaud
00ff297867 Steam source debug info on skip 2023-07-18 14:23:43 +02:00
GeoffreyCoulaud
fbb2ccec57 silence pil 2023-07-18 14:20:19 +02:00
Rilic
8bd96fdb38 Merge remote-tracking branch 'upstream/main' 2023-07-17 17:17:59 +01:00
Rilic
55cd590424 Merge remote-tracking branch 'upstream/main' 2023-07-17 16:51:56 +01:00
Rilic
386120a505 Code cleanup and fix cover image rename regex 2023-07-17 16:26:08 +01:00
Rilic
faee57a42a Clean up code and unused imports 2023-07-17 12:55:03 +01:00
Rilic
0a2051f5c7 Improve error handling for unselected cores 2023-07-17 12:52:38 +01:00
kramo
be6338cdd4 v2.0.5 2023-07-17 09:59:47 +02:00
kramo
bb7fded0e5 Fix Windows migration 2023-07-17 09:57:09 +02:00
kramo
7d91b84a87 Merge pull request #144 from weblate/weblate-cartridges-cartridges
Translations update from Hosted Weblate
2023-07-17 09:56:09 +02:00
Rilic
0865d4e133 Make RetroArch capitalisation consistent 2023-07-16 22:57:14 +01:00
Rilic
9a7875eb87 Replace crc32 game_id with md5 hash from path 2023-07-16 22:45:27 +01:00
Rilic
6b26076b92 Use pre-existing variable for game name
aaaaaaaa
2023-07-16 18:32:14 +01:00
Rilic
19b0737715 Fix the boxart not being found for some games.
I overthought this problem way too hard lmao
2023-07-16 18:29:42 +01:00
Rilic
06de79ad54 Use native game label instead of truncating 2023-07-16 16:57:11 +01:00
Rilic
9ffbcc73ae De-indent else in core selection loop 2023-07-16 16:47:16 +01:00
Rilic
5a89f8a542 Improve core selection logic 2023-07-16 16:33:58 +01:00
Rilic
f9cfc311fa Simplify playlist file location code 2023-07-16 16:22:28 +01:00
Rilic
45884d5c11 Add missing Retroarch action row 2023-07-16 16:05:35 +01:00
Rilic
86a34f1596 Improve playlist file opening check 2023-07-16 15:58:50 +01:00
Rilic
9ccb315a2d Make Retroarch executable_format a property 2023-07-16 15:50:28 +01:00
Hosted Weblate
3002cef448 Translated using Weblate (Polish)
Currently translated at 100.0% (121 of 121 strings)

Co-authored-by: Eryk Michalak <gnu.ewm@protonmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/pl/
Translation: Cartridges/Cartridges
2023-07-16 00:51:44 +02:00
Hosted Weblate
89f6dcad19 Translated using Weblate (Portuguese (Brazil))
Currently translated at 91.7% (111 of 121 strings)

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Vítor Fernandes Almado <vfalmado@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/pt_BR/
Translation: Cartridges/Cartridges
2023-07-16 00:51:44 +02:00
Hosted Weblate
5c62b7ba02 Translated using Weblate (Turkish)
Currently translated at 100.0% (121 of 121 strings)

Co-authored-by: Sabri Ünal <libreajans@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/tr/
Translation: Cartridges/Cartridges
2023-07-16 00:51:44 +02:00
Rilic
c96b64f72e Implement Retroarch Importer
I'm quite rusty with Python, so please let me know if there are any (or many) grave mistakes!
2023-07-15 14:28:04 +01:00
kramo
a1c5a4bdd8 Mark source names as translatable 2023-07-13 14:51:55 +02:00
kramo
6114f65204 Lowercase itch source name 2023-07-13 14:46:31 +02:00
kramo
5be70bba52 Add extra sources to desktop entry 2023-07-09 14:26:44 +02:00
kramo
99ef85daf3 Update release description 2023-07-09 10:01:45 +02:00
kramo
719cedba67 Merge pull request #142 from weblate/weblate-cartridges-cartridges
Translations update from Hosted Weblate
2023-07-09 10:00:49 +02:00
Hosted Weblate
19432a1fe7 Translated using Weblate (Swedish)
Currently translated at 100.0% (121 of 121 strings)

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Luna Jernberg <droidbittin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/sv/
Translation: Cartridges/Cartridges
2023-07-09 10:00:26 +02:00
Hosted Weblate
220d00141f Translated using Weblate (Tamil)
Currently translated at 100.0% (121 of 121 strings)

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/ta/
Translation: Cartridges/Cartridges
2023-07-09 10:00:26 +02:00
Hosted Weblate
633e2a6c5d Translated using Weblate (Italian)
Currently translated at 100.0% (121 of 121 strings)

Co-authored-by: Alessandro Iepure <alessandro.iepure@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/it/
Translation: Cartridges/Cartridges
2023-07-09 10:00:26 +02:00
Hosted Weblate
bc25afa494 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (121 of 121 strings)

Co-authored-by: Dan <jonweblin2205@protonmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/uk/
Translation: Cartridges/Cartridges
2023-07-09 10:00:26 +02:00
Hosted Weblate
6bf246a8e6 Translated using Weblate (Dutch)
Currently translated at 100.0% (121 of 121 strings)

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Philip Goto <philip.goto@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/nl/
Translation: Cartridges/Cartridges
2023-07-09 10:00:26 +02:00
Hosted Weblate
ac71bc6ecb Translated using Weblate (Russian)
Currently translated at 100.0% (121 of 121 strings)

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Сергей <asvmail.as@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/ru/
Translation: Cartridges/Cartridges
2023-07-09 10:00:26 +02:00
Hosted Weblate
d7d6270bbc Translated using Weblate (Spanish)
Currently translated at 100.0% (121 of 121 strings)

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Óscar Fernández Díaz <oscfdezdz@users.noreply.hosted.weblate.org>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/es/
Translation: Cartridges/Cartridges
2023-07-09 10:00:26 +02:00
Hosted Weblate
cd986c3f5e Translated using Weblate (Arabic)
Currently translated at 100.0% (121 of 121 strings)

Co-authored-by: Ali Aljishi <ahj696@hotmail.com>
Translate-URL: https://hosted.weblate.org/projects/cartridges/cartridges/ar/
Translation: Cartridges/Cartridges
2023-07-09 10:00:26 +02:00
kramo
c3bd7ee736 v2.0.4 2023-07-09 10:00:10 +02:00
kramo
b4bfe38765 Backport new game fix - closes #143 2023-07-09 09:59:03 +02:00
kramo
a0c46bbc74 v2.0.3 2023-07-08 16:01:32 +02:00
kramo
6a06f7329d Disallow Legendary on Windows to fix Heroic 2023-07-08 16:00:57 +02:00
kramo
16db07511a Merge pull request #141 from kra-mo/fix-windows-data-location
Migrate old windows data location to the current one
2023-07-08 15:52:54 +02:00
GeoffreyCoulaud
34863901fd Various tweaks
- Removed unnecessary comments
- Renamed path variables from file to path
- Don't check for XDG_DATA_HOME
- Move files instead of copying them
- Format json dump
2023-07-08 15:38:38 +02:00
GeoffreyCoulaud
3f5f8b71e8 Manually imported - Migrate covers, log message 2023-07-08 15:25:59 +02:00
GeoffreyCoulaud
618a98ee89 Handle manually added games separately 2023-07-08 15:09:30 +02:00
GeoffreyCoulaud
867e4d3cce Fixes to initial code 2023-07-08 14:35:43 +02:00
GeoffreyCoulaud
3c019796c2 Initial code 2023-07-08 13:54:43 +02:00
kramo
1c8448c1e1 Update docs 2023-07-08 12:36:05 +02:00
kramo
dad3dcafb7 v2.0.2 2023-07-08 12:18:01 +02:00
kramo
c6ef2ea0b4 uuuuuuuuuuuuuughhhhhhhhhhhhhhhhhhhhhhh 2023-07-08 12:14:37 +02:00
kramo
e4d9f8ba45 Merge pull request #140 from kra-mo/store-improvements
Store improvements
2023-07-07 18:30:55 +02:00
GeoffreyCoulaud
87a4319360 Store improvements
- Store games by source
- Added convenience dunder methods (contains, iter, len, getitem)
- Added store.get
- Changed `enable_in_pipeline` for `toggle_in_pipeline`
2023-07-07 18:06:07 +02:00
kramo
dc232e1e43 Fix cache dir, add debug_info_filename to about 2023-07-06 10:25:00 +02:00
79 changed files with 3662 additions and 2018 deletions

View File

@@ -1,7 +1,14 @@
# Contributing # Contributing
## Code ## Code
Fork the repository, make your changes, then create a pull request.
Be sure to follow the [code style](#code-style) of the project.
### Adding a feature
[Create an issue](https://github.com/kra-mo/cartridges/issues/new) or join the [Discord](https://discord.gg/4KSFh3AmQR)/[Matrix](https://matrix.to/#/#cartridges:matrix.org) to discuss it with the maintainers. We will provide additional guidance.
### Fixing a bug
Fork the repository, make your changes, then create a pull request. Be sure to mention the GitHub issue you're fixing if one was already open.
## Translations ## Translations
### Weblate ### Weblate
@@ -17,7 +24,7 @@ The project can be translated on [Weblate](https://hosted.weblate.org/engage/car
# Building # Building
## GNOME Builder ## GNOME Builder
1. Install [GNOME Builder](https://flathub.org/apps/details/org.gnome.Builder). 1. Install [GNOME Builder](https://flathub.org/apps/org.gnome.Builder).
2. Click "Clone Repository" with `https://github.com/kra-mo/cartridges.git` as the URL. 2. Click "Clone Repository" with `https://github.com/kra-mo/cartridges.git` as the URL.
3. Click on the build button (hammer) at the top. 3. Click on the build button (hammer) at the top.
@@ -33,3 +40,23 @@ cd cartridges
meson setup build meson setup build
ninja -C build install ninja -C build install
``` ```
# Code style
All code is auto-formatted with [Black](https://github.com/psf/black) and linted with [Pylint](https://github.com/pylint-dev/pylint). Imports are sorted by [isort](https://github.com/pycqa/isort).
VSCode extensions are available for all of these and you can set them up with the following `settings.json` configuration:
```json
"python.formatting.provider": "none",
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
},
"isort.args":["--profile", "black"],
```
For other code editors, you can install them via `pip` and invoke them via the command line.

View File

@@ -1,30 +1,30 @@
[circle-url]: https://circle.gnome.org
[circle-image]: https://circle.gnome.org/assets/button/badge.svg
[weblate-url]: https://hosted.weblate.org/engage/cartridges/
[weblate-image]: https://hosted.weblate.org/widgets/cartridges/-/cartridges/svg-badge.svg
[discord-url]: https://discord.gg/4KSFh3AmQR
[discord-image]: https://img.shields.io/discord/1088155799299313754?color=%235865F2&label=discord&logo=discord&logoColor=%23FFFFFF&style=for-the-badge
[matrix-url]: https://matrix.to/#/#cartridges:matrix.org
[matrix-image]: https://img.shields.io/matrix/cartridges:matrix.org?label=Matrix&logo=matrix&color=%230dbd8b&style=for-the-badge
[flathub-url]: https://flathub.org/apps/hu.kramo.Cartridges
[flathub-image]: https://img.shields.io/flathub/v/hu.kramo.Cartridges?logo=flathub&style=for-the-badge
[installs-image]: https://img.shields.io/flathub/downloads/hu.kramo.Cartridges?style=for-the-badge
<div align="center"> <div align="center">
<img src="data/icons/hicolor/scalable/apps/hu.kramo.Cartridges.svg" width="128" height="128"> <img src="data/icons/hicolor/scalable/apps/hu.kramo.Cartridges.svg" width="128" height="128">
# Cartridges # Cartridges
A GTK4 + Libadwaita game launcher
[![GNOME Circle][circle-image]][circle-url] A GTK4 + Libadwaita game launcher
[![Flathub][flathub-image]][flathub-url]
[![Build status][github-actions-image]][github-actions-url]
[![Translation Status][weblate-image]][weblate-url]
[![Code style][code-style-image]][code-style-url]
[![Discord][discord-image]][discord-url]
[circle-url]: https://circle.gnome.org [![GNOME Circle][circle-image]][circle-url]
[circle-image]: https://circle.gnome.org/assets/button/badge.svg [![Translation Status][weblate-image]][weblate-url]
[github-actions-url]: https://github.com/kra-mo/cartridges
[github-actions-image]: https://github.com/kra-mo/cartridges/actions/workflows/ci.yml/badge.svg [![Flathub][flathub-image]][flathub-url]
[code-style-url]: https://github.com/psf/black [![Discord][discord-image]][discord-url]
[code-style-image]: https://img.shields.io/badge/code%20style-black-000000?style=flat [![Matrix][matrix-image]][matrix-url]
[weblate-url]: https://hosted.weblate.org/engage/cartridges/ [![Installs][installs-image]][flathub-url]
[weblate-image]: https://hosted.weblate.org/widgets/cartridges/-/cartridges/svg-badge.svg
[discord-url]: https://discord.gg/4KSFh3AmQR
[discord-image]: https://img.shields.io/discord/1088155799299313754?color=%235865F2&label=discord&logo=discord&logoColor=%23FFFFFF
[flathub-url]: https://flathub.org/apps/hu.kramo.Cartridges
[flathub-image]: https://img.shields.io/flathub/v/hu.kramo.Cartridges
<img src="data/screenshots/1.png"> <img src="data/screenshots/1.png">
</div> </div>
@@ -50,7 +50,7 @@ Cartridges is a simple game launcher written in Python using GTK4 and Libadwaita
- Searching for games on various databases - Searching for games on various databases
- Animated covers - Animated covers
For updates and questions, join our [Discord server][discord-url]! For updates and questions, join our [Discord server][discord-url] (bridged to [Matrix](https://matrix.to/#/#cartridges:matrix.org))!
# Installation # Installation

View File

@@ -2,7 +2,7 @@ using Gtk 4.0;
using Adw 1; using Adw 1;
template $DetailsWindow : Adw.Window { template $DetailsWindow : Adw.Window {
default-width: 500; default-width: 480; // Same as Nautilus' properties window
default-height: -1; default-height: -1;
modal: true; modal: true;
@@ -97,39 +97,26 @@ template $DetailsWindow : Adw.Window {
} }
} }
Adw.PreferencesGroup title_group { Adw.PreferencesGroup {
title: _("Title"); Adw.EntryRow name {
description: _("The title of the game"); title: _("Title");
}
Entry name { Adw.EntryRow developer {
accessibility { title: _("Developer (optional)");
label: _("Title");
}
} }
} }
Adw.PreferencesGroup {
Adw.EntryRow executable {
title: _("Executable");
Adw.PreferencesGroup developer_group { [suffix]
title: _("Developer"); Gtk.MenuButton exec_info_button {
description: _("The developer or publisher (optional)");
Entry developer {
accessibility {
label: _("Developer");
}
}
}
Adw.PreferencesGroup exec_group {
title: _("Executable");
description: _("File to open or command to run when launching the game");
[header-suffix]
Gtk.MenuButton exec_info_button {
valign: center; valign: center;
icon-name: "help-about-symbolic"; icon-name: "help-about-symbolic";
tooltip-text: _("More Info"); tooltip-text: _("More Info");
popover: Popover exec_info_popover { popover: Popover exec_info_popover {
focusable: true;
Label exec_info_label { Label exec_info_label {
use-markup: true; use-markup: true;
@@ -141,7 +128,6 @@ template $DetailsWindow : Adw.Window {
margin-bottom: 6; margin-bottom: 6;
margin-start: 6; margin-start: 6;
margin-end: 6; margin-end: 6;
selectable: true;
} }
}; };
@@ -150,10 +136,6 @@ template $DetailsWindow : Adw.Window {
] ]
} }
Entry executable {
accessibility {
label: _("Executable");
}
} }
} }
} }

View File

@@ -85,6 +85,19 @@ template $PreferencesWindow : Adw.PreferencesWindow {
title: _("Import"); title: _("Import");
icon-name: "document-save-symbolic"; icon-name: "document-save-symbolic";
Adw.PreferencesGroup import_behavior_group {
title: _("Behavior");
Adw.ActionRow {
title: _("Remove Uninstalled Games");
activatable-widget: remove_missing_switch;
Switch remove_missing_switch {
valign: center;
}
}
}
Adw.PreferencesGroup sources_group { Adw.PreferencesGroup sources_group {
title: _("Sources"); title: _("Sources");
@@ -174,6 +187,15 @@ template $PreferencesWindow : Adw.PreferencesWindow {
} }
} }
Adw.ActionRow {
title: _("Import Amazon Games");
activatable-widget: heroic_import_amazon_switch;
Switch heroic_import_amazon_switch {
valign: center;
}
}
Adw.ActionRow { Adw.ActionRow {
title: _("Import Sideloaded Games"); title: _("Import Sideloaded Games");
activatable-widget: heroic_import_sideload_switch; activatable-widget: heroic_import_sideload_switch;
@@ -226,6 +248,20 @@ template $PreferencesWindow : Adw.PreferencesWindow {
} }
} }
Adw.ExpanderRow retroarch_expander_row {
title: _("RetroArch");
show-enable-switch: true;
Adw.ActionRow retroarch_config_action_row {
title: _("Install Location");
Button retroarch_config_file_chooser_button {
icon-name: "folder-symbolic";
valign: center;
}
}
}
Adw.ExpanderRow flatpak_expander_row { Adw.ExpanderRow flatpak_expander_row {
title: _("Flatpak"); title: _("Flatpak");
show-enable-switch: true; show-enable-switch: true;

View File

@@ -269,6 +269,7 @@ template $CartridgesWindow : Adw.ApplicationWindow {
tightening-threshold: 500; tightening-threshold: 500;
SearchEntry search_entry { SearchEntry search_entry {
placeholder-text: _("Search games");
hexpand: true; hexpand: true;
} }
} }
@@ -335,6 +336,7 @@ template $CartridgesWindow : Adw.ApplicationWindow {
tightening-threshold: 500; tightening-threshold: 500;
SearchEntry hidden_search_entry { SearchEntry hidden_search_entry {
placeholder-text: _("Search hidden games");
hexpand: true; hexpand: true;
} }
} }

View File

@@ -7,5 +7,5 @@ Icon=@APP_ID@
Terminal=false Terminal=false
Type=Application Type=Application
Categories=GNOME;GTK;Game; Categories=GNOME;GTK;Game;
Keywords=gaming;launcher;steam;lutris;heroic;bottles;itch; Keywords=gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;
StartupNotify=true StartupNotify=true

View File

@@ -10,6 +10,9 @@
<key name="high-quality-images" type="b"> <key name="high-quality-images" type="b">
<default>false</default> <default>false</default>
</key> </key>
<key name="remove-missing" type="b">
<default>true</default>
</key>
<key name="steam" type="b"> <key name="steam" type="b">
<default>true</default> <default>true</default>
</key> </key>
@@ -43,6 +46,9 @@
<key name="heroic-import-gog" type="b"> <key name="heroic-import-gog" type="b">
<default>true</default> <default>true</default>
</key> </key>
<key name="heroic-import-amazon" type="b">
<default>true</default>
</key>
<key name="heroic-import-sideload" type="b"> <key name="heroic-import-sideload" type="b">
<default>true</default> <default>true</default>
</key> </key>
@@ -64,6 +70,12 @@
<key name="legendary-location" type="s"> <key name="legendary-location" type="s">
<default>"~/.config/legendary/"</default> <default>"~/.config/legendary/"</default>
</key> </key>
<key name="retroarch" type="b">
<default>true</default>
</key>
<key name="retroarch-location" type="s">
<default>"~/.var/app/org.libretro.RetroArch/config/retroarch/"</default>
</key>
<key name="flatpak" type="b"> <key name="flatpak" type="b">
<default>true</default> <default>true</default>
</key> </key>
@@ -110,4 +122,4 @@
<default>"[]"</default> <default>"[]"</default>
</key> </key>
</schema> </schema>
</schemalist> </schemalist>

View File

@@ -44,11 +44,19 @@
</screenshots> </screenshots>
<content_rating type="oars-1.1" /> <content_rating type="oars-1.1" />
<releases> <releases>
<release version="2.0.1" date="2023-07-06"> <release version="2.1.1" date="2023-07-27">
<description translatable="no"> <description translatable="no">
<ul> <ul>
<li>Fixes the ability to import multiple times at once</li> <li>Fixes an issue with translations</li>
<li>Fixes an issue with non-Flatpak Steam on Linux</li> <li>Translations since 2.1</li>
</ul>
</description>
</release>
<release version="2.1" date="2023-07-25">
<description translatable="no">
<ul>
<li>Added support for Amazon Games in the Heroic importer</li>
<li>Translations since 2.0</li>
</ul> </ul>
</description> </description>
</release> </release>

View File

@@ -49,9 +49,9 @@ Stored as a string.
### source ### source
A unique ID for the source of the game in lowercase, without spaces. A unique ID for the source of the game in lowercase, without spaces or underscores.
If a source provides multiple internal sources, these should be separately labeled, but share a common prefix. eg. `heoic_gog`, `heroic_epic`. If a source provides multiple internal sources, these should be separately labeled, but share a common prefix. eg. `heoic_gog`, `heroic_epic`. This is the only place you should use an underscore.
Stored as a string. Stored as a string.

View File

@@ -15,8 +15,10 @@
"--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/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.heroicgameslauncher.hgl/config/legendary/: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", "--filesystem=~/.var/app/io.itch.itch/config/itch/:ro",
"--filesystem=~/.var/app/org.libretro.RetroArch/config/retroarch/:ro",
"--filesystem=/var/lib/flatpak:ro" "--filesystem=/var/lib/flatpak:ro"
], ],
"cleanup" : [ "cleanup" : [

View File

@@ -1,5 +1,5 @@
project('cartridges', project('cartridges',
version: '2.0.1', version: '2.1.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', ],
) )

View File

@@ -19,3 +19,4 @@ pl
sv sv
tr tr
el el
cs

View File

@@ -15,5 +15,7 @@ src/game.py
src/preferences.py src/preferences.py
src/utils/create_dialog.py src/utils/create_dialog.py
src/importer/importer.py
src/importer/sources/source.py src/importer/sources/source.py
src/importer/sources/location.py
src/store/managers/sgdb_manager.py src/store/managers/sgdb_manager.py

View File

@@ -7,8 +7,8 @@ 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-07-05 14:36+0200\n" "POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-07-04 17:29+0000\n" "PO-Revision-Date: 2023-07-09 07:59+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"
@@ -22,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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:170
msgid "Cartridges" msgid "Cartridges"
msgstr "خراطيش" msgstr "خراطيش"
@@ -36,7 +36,9 @@ msgid "Launch all your games"
msgstr "شغِّل كلَّ ألعابك" msgstr "شغِّل كلَّ ألعابك"
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" #, fuzzy
#| msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;"
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "لعب;مشغل;ستيم;لوترس;هروك;قوارير;إتش;هيرويك;بوتلز;" msgstr "لعب;مشغل;ستيم;لوترس;هروك;قوارير;إتش;هيرويك;بوتلز;"
#: data/hu.kramo.Cartridges.metainfo.xml.in:9 #: data/hu.kramo.Cartridges.metainfo.xml.in:9
@@ -63,7 +65,7 @@ msgid "Game Details"
msgstr "تفاصيل اللعبة" msgstr "تفاصيل اللعبة"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:239 #: src/details_window.py:241
msgid "Preferences" msgid "Preferences"
msgstr "التفضيلات" msgstr "التفضيلات"
@@ -146,7 +148,7 @@ msgstr "أظهر التفضيلات"
msgid "Shortcuts" msgid "Shortcuts"
msgstr "الاختصارات" msgstr "الاختصارات"
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo" msgid "Undo"
msgstr "تراجع" msgstr "تراجع"
@@ -174,7 +176,7 @@ msgstr "أظهر الألعاب المخفية"
msgid "Remove game" msgid "Remove game"
msgstr "أزل اللعبة" msgstr "أزل اللعبة"
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
msgid "Behavior" msgid "Behavior"
msgstr "السلوك" msgstr "السلوك"
@@ -223,9 +225,9 @@ msgid "Steam"
msgstr "ستيم" msgstr "ستيم"
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:243
msgid "Install Location" msgid "Install Location"
msgstr "موضع التثبيت" msgstr "موضع التثبيت"
@@ -258,54 +260,60 @@ msgid "Import GOG Games"
msgstr "استورد ألعاب جي‌أو‌جي" msgstr "استورد ألعاب جي‌أو‌جي"
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Amazon Games"
msgstr "استورد ألعابًا من ستيم"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "استورد ألعابًا مثبَّتةً بغير متجر" msgstr "استورد ألعابًا مثبَّتةً بغير متجر"
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:197
msgid "Bottles" msgid "Bottles"
msgstr "قوارير" msgstr "قوارير"
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:211
msgid "itch" msgid "itch"
msgstr "إتش" msgstr "إتش"
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:225
msgid "Legendary" msgid "Legendary"
msgstr "لجندري" msgstr "لجندري"
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:239
msgid "Flatpak" msgid "Flatpak"
msgstr "فلاتباك" msgstr "فلاتباك"
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:252
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "استورد مشغِّلات ألعاب" msgstr "استورد مشغِّلات ألعاب"
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:265
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "SteamGridDB" msgstr "SteamGridDB"
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:269
msgid "Authentication" msgid "Authentication"
msgstr "الاستيثاق" msgstr "الاستيثاق"
#: data/gtk/preferences.blp:263 #: data/gtk/preferences.blp:272
msgid "API Key" msgid "API Key"
msgstr "مفتاح واجهة البرمجة" msgstr "مفتاح واجهة البرمجة"
#: data/gtk/preferences.blp:271 #: data/gtk/preferences.blp:280
msgid "Use SteamGridDB" msgid "Use SteamGridDB"
msgstr "استخدم SteamGridDB" msgstr "استخدم SteamGridDB"
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:281
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "نزِّل الصور حينما تنزِّل أو تستورد الألعاب" msgstr "نزِّل الصور حينما تنزِّل أو تستورد الألعاب"
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:290
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "فضِّلها على الصور الرسمية" msgstr "فضِّلها على الصور الرسمية"
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:299
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "فضِّل الصور المتحرِّكة" msgstr "فضِّل الصور المتحرِّكة"
@@ -394,7 +402,7 @@ msgid "About Cartridges"
msgstr "عن «خراطيش»" 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "Ali Aljishi <ahj696@hotmail.com>" msgstr "Ali Aljishi <ahj696@hotmail.com>"
@@ -470,15 +478,15 @@ msgstr ""
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "تعذَّرت إضافة اللعبة" msgstr "تعذَّرت إضافة اللعبة"
#: src/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "لا يجوز كون عنوان اللعبة فارغًا." msgstr "لا يجوز كون عنوان اللعبة فارغًا."
#: src/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "لا يجوز كون ملفِّ التنفيذ فارغًا." msgstr "لا يجوز كون ملفِّ التنفيذ فارغًا."
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "تعذَّر تطبيق التفضيلات" msgstr "تعذَّر تطبيق التفضيلات"
@@ -500,48 +508,44 @@ msgstr "أٌظهرت {}"
msgid "{} removed" msgid "{} removed"
msgstr "أزيلت {}" msgstr "أزيلت {}"
#: src/preferences.py:111 #: src/preferences.py:112
msgid "All games removed" msgid "All games removed"
msgstr "أُزيلت كلُّ الألعاب" msgstr "أُزيلت كلُّ الألعاب"
#: src/preferences.py:159 #: src/preferences.py:160
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr ""
"تحتاج مفتاح واجهة برمجة حال ما أردت استخدام SteamGridDB، {}هنا تولِّده{}." "تحتاج مفتاح واجهة برمجة حال ما أردت استخدام SteamGridDB، {}هنا تولِّده{}."
#: src/preferences.py:284 #: src/preferences.py:285
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "لم يُعثر على التثبيت" msgstr "لم يُعثر على التثبيت"
#: src/preferences.py:286 #: src/preferences.py:287
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "حدِّد مجلَّدًا صالحًا." msgstr "حدِّد مجلَّدًا صالحًا."
#: src/preferences.py:348 #: src/preferences.py:349
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "مجلَّد غير صالح" msgstr "مجلَّد غير صالح"
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/preferences.py:353
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "حدِّد مجلَّد ذاكرة {} المؤقتة." msgstr "حدِّد مجلَّد ذاكرة {} المؤقتة."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/preferences.py:356
#, fuzzy
#| msgid "Select the {} installation directory."
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "حدِّد مجلَّد تثبيت {}." msgstr "حدِّد مجلَّد ضبط {}."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/preferences.py:359
#, fuzzy
#| msgid "Select the {} cache directory."
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "حدِّد مجلَّد ذاكرة {} المؤقتة." msgstr "حدِّد مجلَّد بيانات {}."
#: src/preferences.py:364 #: src/preferences.py:365
msgid "Set Location" msgid "Set Location"
msgstr "عيِّن الموضع" msgstr "عيِّن الموضع"

View File

@@ -8,18 +8,18 @@ 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-07-05 14:36+0200\n" "POT-Creation-Date: 2023-08-16 11:06+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"
"Language: \n" "Language: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: 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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:169
msgid "Cartridges" msgid "Cartridges"
msgstr "" msgstr ""
@@ -33,7 +33,8 @@ msgid "Launch all your games"
msgstr "" msgstr ""
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" msgid ""
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
msgstr "" msgstr ""
#: data/hu.kramo.Cartridges.metainfo.xml.in:9 #: data/hu.kramo.Cartridges.metainfo.xml.in:9
@@ -48,16 +49,18 @@ msgstr ""
msgid "Library" msgid "Library"
msgstr "" msgstr ""
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 src/details_window.py:67 #: data/hu.kramo.Cartridges.metainfo.xml.in:34
msgid "Edit Game Details" msgid "Edit Game Details"
msgstr "" msgstr ""
#: data/hu.kramo.Cartridges.metainfo.xml.in:38 data/gtk/window.blp:71 #: data/hu.kramo.Cartridges.metainfo.xml.in:38 data/gtk/window.blp:71
#: src/details_window.py:67
msgid "Game Details" msgid "Game Details"
msgstr "" msgstr ""
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:418
#: src/details_window.py:239 #: src/details_window.py:241 src/importer/importer.py:292
#: src/importer/importer.py:342
msgid "Preferences" msgid "Preferences"
msgstr "" msgstr ""
@@ -73,32 +76,19 @@ msgstr ""
msgid "Delete Cover" msgid "Delete Cover"
msgstr "" msgstr ""
#: data/gtk/details-window.blp:101 data/gtk/details-window.blp:106 #: data/gtk/details-window.blp:102 data/gtk/game.blp:80
#: data/gtk/game.blp:80
msgid "Title" msgid "Title"
msgstr "" msgstr ""
#: data/gtk/details-window.blp:102 #: data/gtk/details-window.blp:105
msgid "The title of the game" msgid "Developer (optional)"
msgstr "" msgstr ""
#: data/gtk/details-window.blp:112 data/gtk/details-window.blp:117 #: data/gtk/details-window.blp:110
msgid "Developer"
msgstr ""
#: data/gtk/details-window.blp:113
msgid "The developer or publisher (optional)"
msgstr ""
#: data/gtk/details-window.blp:123 data/gtk/details-window.blp:155
msgid "Executable" msgid "Executable"
msgstr "" msgstr ""
#: data/gtk/details-window.blp:124 #: data/gtk/details-window.blp:116
msgid "File to open or command to run when launching the game"
msgstr ""
#: data/gtk/details-window.blp:130
msgid "More Info" msgid "More Info"
msgstr "" msgstr ""
@@ -128,7 +118,7 @@ msgid "Quit"
msgstr "" msgstr ""
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:217 data/gtk/window.blp:257 #: data/gtk/help-overlay.blp:19 data/gtk/window.blp:217 data/gtk/window.blp:257
#: data/gtk/window.blp:323 #: data/gtk/window.blp:324
msgid "Search" msgid "Search"
msgstr "" msgstr ""
@@ -140,7 +130,8 @@ msgstr ""
msgid "Shortcuts" msgid "Shortcuts"
msgstr "" msgstr ""
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:103 src/preferences.py:120
#: src/importer/importer.py:366
msgid "Undo" msgid "Undo"
msgstr "" msgstr ""
@@ -168,7 +159,8 @@ msgstr ""
msgid "Remove game" msgid "Remove game"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:89
#: data/gtk/preferences.blp:304
msgid "Behavior" msgid "Behavior"
msgstr "" msgstr ""
@@ -204,102 +196,114 @@ msgstr ""
msgid "Remove All Games" msgid "Remove All Games"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:85 data/gtk/window.blp:27 data/gtk/window.blp:442 #: data/gtk/preferences.blp:85 data/gtk/window.blp:27 data/gtk/window.blp:444
msgid "Import" msgid "Import"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:89 #: data/gtk/preferences.blp:92
msgid "Remove Uninstalled Games"
msgstr ""
#: data/gtk/preferences.blp:102
msgid "Sources" msgid "Sources"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:92 #: data/gtk/preferences.blp:105
msgid "Steam" msgid "Steam"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:109 data/gtk/preferences.blp:123
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:164 data/gtk/preferences.blp:214
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:228 data/gtk/preferences.blp:242
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:256 data/gtk/preferences.blp:270
msgid "Install Location" msgid "Install Location"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:106 #: data/gtk/preferences.blp:119
msgid "Lutris" msgid "Lutris"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:119 #: data/gtk/preferences.blp:132
msgid "Cache Location" msgid "Cache Location"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:128 #: data/gtk/preferences.blp:141
msgid "Import Steam Games" msgid "Import Steam Games"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:137 #: data/gtk/preferences.blp:150
msgid "Import Flatpak Games" msgid "Import Flatpak Games"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:147 #: data/gtk/preferences.blp:160
msgid "Heroic" msgid "Heroic"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:160 #: data/gtk/preferences.blp:173
msgid "Import Epic Games" msgid "Import Epic Games"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:169 #: data/gtk/preferences.blp:182
msgid "Import GOG Games" msgid "Import GOG Games"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:191
msgid "Import Amazon Games"
msgstr ""
#: data/gtk/preferences.blp:200
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:210
msgid "Bottles" msgid "Bottles"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:224
msgid "itch" msgid "itch"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:238
msgid "Legendary" msgid "Legendary"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:252
msgid "RetroArch"
msgstr ""
#: data/gtk/preferences.blp:266
msgid "Flatpak" msgid "Flatpak"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:279
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:292
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:296
msgid "Authentication" msgid "Authentication"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:263 #: data/gtk/preferences.blp:299
msgid "API Key" msgid "API Key"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:271 #: data/gtk/preferences.blp:307
msgid "Use SteamGridDB" msgid "Use SteamGridDB"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:308
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:317
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:326
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "" msgstr ""
@@ -327,7 +331,7 @@ msgstr ""
msgid "Games you hide will appear here." msgid "Games you hide will appear here."
msgstr "" msgstr ""
#: data/gtk/window.blp:64 data/gtk/window.blp:304 #: data/gtk/window.blp:64 data/gtk/window.blp:305
msgid "Back" msgid "Back"
msgstr "" msgstr ""
@@ -339,56 +343,64 @@ msgstr ""
msgid "Play" msgid "Play"
msgstr "" msgstr ""
#: data/gtk/window.blp:243 data/gtk/window.blp:435 #: data/gtk/window.blp:243 data/gtk/window.blp:437
msgid "Add Game" msgid "Add Game"
msgstr "" msgstr ""
#: data/gtk/window.blp:250 data/gtk/window.blp:316 #: data/gtk/window.blp:250 data/gtk/window.blp:317
msgid "Main Menu" msgid "Main Menu"
msgstr "" msgstr ""
#: data/gtk/window.blp:311 #: data/gtk/window.blp:272
msgid "Search games"
msgstr ""
#: data/gtk/window.blp:312
msgid "Hidden Games" msgid "Hidden Games"
msgstr "" msgstr ""
#: data/gtk/window.blp:374 #: data/gtk/window.blp:339
msgid "Search hidden games"
msgstr ""
#: data/gtk/window.blp:376
msgid "Sort" msgid "Sort"
msgstr "" msgstr ""
#: data/gtk/window.blp:377 #: data/gtk/window.blp:379
msgid "A-Z" msgid "A-Z"
msgstr "" msgstr ""
#: data/gtk/window.blp:383 #: data/gtk/window.blp:385
msgid "Z-A" msgid "Z-A"
msgstr "" msgstr ""
#: data/gtk/window.blp:389 #: data/gtk/window.blp:391
msgid "Newest" msgid "Newest"
msgstr "" msgstr ""
#: data/gtk/window.blp:395 #: data/gtk/window.blp:397
msgid "Oldest" msgid "Oldest"
msgstr "" msgstr ""
#: data/gtk/window.blp:401 #: data/gtk/window.blp:403
msgid "Last Played" msgid "Last Played"
msgstr "" msgstr ""
#: data/gtk/window.blp:408 #: data/gtk/window.blp:410
msgid "Show Hidden" msgid "Show Hidden"
msgstr "" msgstr ""
#: data/gtk/window.blp:421 #: data/gtk/window.blp:423
msgid "Keyboard Shortcuts" msgid "Keyboard Shortcuts"
msgstr "" msgstr ""
#: data/gtk/window.blp:426 #: data/gtk/window.blp:428
msgid "About Cartridges" msgid "About Cartridges"
msgstr "" 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "" msgstr ""
@@ -415,7 +427,7 @@ msgid "Add New Game"
msgstr "" msgstr ""
#: src/details_window.py:79 #: src/details_window.py:79
msgid "Confirm" msgid "Add"
msgstr "" msgstr ""
#. Translate this string as you would translate "file" #. Translate this string as you would translate "file"
@@ -455,84 +467,116 @@ msgstr ""
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "" msgstr ""
#: src/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "" msgstr ""
#: src/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "" msgstr ""
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "" msgstr ""
#. The variable is the title of the game #. The variable is the title of the game
#: src/game.py:138 #: src/game.py:139
msgid "{} launched" msgid "{} launched"
msgstr "" msgstr ""
#. The variable is the title of the game #. The variable is the title of the game
#: src/game.py:152 #: src/game.py:153
msgid "{} hidden" msgid "{} hidden"
msgstr "" msgstr ""
#: src/game.py:152 #: src/game.py:153
msgid "{} unhidden" msgid "{} unhidden"
msgstr "" msgstr ""
#: src/game.py:169 #. The variable is the title of the game
#. The variable is the number of games removed
#: src/game.py:170 src/importer/importer.py:363
msgid "{} removed" msgid "{} removed"
msgstr "" msgstr ""
#: src/preferences.py:111 #: src/preferences.py:119
msgid "All games removed" msgid "All games removed"
msgstr "" msgstr ""
#: src/preferences.py:159 #: src/preferences.py:168
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr ""
#: src/preferences.py:284 #: src/preferences.py:294
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "" msgstr ""
#: src/preferences.py:286 #: src/preferences.py:296
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "" msgstr ""
#: src/preferences.py:348 #: src/preferences.py:351
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "" msgstr ""
#: src/preferences.py:357
msgid "Set Location"
msgstr ""
#: src/utils/create_dialog.py:25 src/importer/importer.py:291
msgid "Dismiss"
msgstr ""
#: src/importer/importer.py:128
msgid "Importing Games…"
msgstr ""
#: src/importer/importer.py:290
msgid "Warning"
msgstr ""
#: src/importer/importer.py:311
msgid "The following errors occured during import:"
msgstr ""
#: src/importer/importer.py:339
msgid "No new games found"
msgstr ""
#: src/importer/importer.py:351
msgid "1 game imported"
msgstr ""
#. The variable is the number of games
#: src/importer/importer.py:355
msgid "{} games imported"
msgstr ""
#. A single game removed
#: src/importer/importer.py:359
msgid "1 removed"
msgstr ""
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/importer/sources/location.py:33
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "" msgstr ""
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/importer/sources/location.py:35
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "" msgstr ""
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/importer/sources/location.py:37
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "" msgstr ""
#: src/preferences.py:364 #: src/store/managers/sgdb_manager.py:46
msgid "Set Location"
msgstr ""
#: src/utils/create_dialog.py:25
msgid "Dismiss"
msgstr ""
#: src/store/managers/sgdb_manager.py:47
msgid "Couldn't Authenticate SteamGridDB" msgid "Couldn't Authenticate SteamGridDB"
msgstr "" msgstr ""
#: src/store/managers/sgdb_manager.py:48 #: src/store/managers/sgdb_manager.py:47
msgid "Verify your API key in preferences" msgid "Verify your API key in preferences"
msgstr "" msgstr ""

561
po/cs.po Normal file
View File

@@ -0,0 +1,561 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR kramo
# This file is distributed under the same license as the Cartridges package.
# foo expert <deferred_water346@simplelogin.com>, 2023.
msgid ""
msgstr ""
"Project-Id-Version: Cartridges\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-07-24 13:05+0000\n"
"Last-Translator: foo expert <deferred_water346@simplelogin.com>\n"
"Language-Team: Czech <https://hosted.weblate.org/projects/cartridges/"
"cartridges/cs/>\n"
"Language: cs\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>=2 && n<=4) ? 1 : 2;\n"
"X-Generator: Weblate 5.0-dev\n"
#: data/hu.kramo.Cartridges.desktop.in:3
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:170
msgid "Cartridges"
msgstr "Kazety"
#: data/hu.kramo.Cartridges.desktop.in:4
msgid "Game Launcher"
msgstr "Spouštěč her"
#: data/hu.kramo.Cartridges.desktop.in:5
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
msgid "Launch all your games"
msgstr "Spusťte všechny vaše hry"
#: data/hu.kramo.Cartridges.desktop.in:11
#, fuzzy
#| msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;"
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "hraní;spouštěč;steam;lutris;heroic;láhve;itch;"
#: 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 ""
"Kazety jsou jednoduchý spouštěč pro všechny vaše hry. Podporuje importovaní "
"her ze služeb Steam, Lutris, Heroic a dalších bez nutnosti přihlášení. Hry "
"můžete třídit a skrývat nebo stahovat obálky ze služby SteamGridDB."
#: data/hu.kramo.Cartridges.metainfo.xml.in:30
msgid "Library"
msgstr "Knihovna"
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 src/details_window.py:67
msgid "Edit Game Details"
msgstr "Upravit podrobnosti o hře"
#: data/hu.kramo.Cartridges.metainfo.xml.in:38 data/gtk/window.blp:71
msgid "Game Details"
msgstr "Podrobnosti o hře"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:241
msgid "Preferences"
msgstr "Předvolby"
#: data/gtk/details-window.blp:25
msgid "Cancel"
msgstr "Zrušit"
#: data/gtk/details-window.blp:57
msgid "New Cover"
msgstr "Nový obal"
#: data/gtk/details-window.blp:75
msgid "Delete Cover"
msgstr "Odstranit obal"
#: data/gtk/details-window.blp:101 data/gtk/details-window.blp:106
#: data/gtk/game.blp:80
msgid "Title"
msgstr "Název"
#: data/gtk/details-window.blp:102
msgid "The title of the game"
msgstr "Název hry"
#: data/gtk/details-window.blp:112 data/gtk/details-window.blp:117
msgid "Developer"
msgstr "Vývojář"
#: data/gtk/details-window.blp:113
msgid "The developer or publisher (optional)"
msgstr "Vývojář nebo vydavatel (nepovinné)"
#: data/gtk/details-window.blp:123 data/gtk/details-window.blp:155
msgid "Executable"
msgstr "Spustitelný soubor"
#: data/gtk/details-window.blp:124
msgid "File to open or command to run when launching the game"
msgstr "Soubor nebo příkaz pro spuštění hry"
#: data/gtk/details-window.blp:130
msgid "More Info"
msgstr "Více informací"
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:195
msgid "Edit"
msgstr "Upravit"
#: data/gtk/game.blp:107 src/window.py:171
msgid "Hide"
msgstr "Skrýt"
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:56
#: data/gtk/window.blp:209
msgid "Remove"
msgstr "Odstranit"
#: data/gtk/game.blp:126 src/window.py:173
msgid "Unhide"
msgstr "Odkrýt"
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
msgid "General"
msgstr "Obecné"
#: data/gtk/help-overlay.blp:14
msgid "Quit"
msgstr "Ukončit"
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:217 data/gtk/window.blp:257
#: data/gtk/window.blp:323
msgid "Search"
msgstr "Vyhledávání"
#: data/gtk/help-overlay.blp:24
msgid "Show preferences"
msgstr "Zobrazit předvolby"
#: data/gtk/help-overlay.blp:29
msgid "Shortcuts"
msgstr "Zkratky"
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo"
msgstr "Zpět"
#: data/gtk/help-overlay.blp:39
msgid "Open menu"
msgstr "Otevřít nabídku"
#: data/gtk/help-overlay.blp:45
msgid "Games"
msgstr "Hry"
#: data/gtk/help-overlay.blp:48
msgid "Add new game"
msgstr "Přidat novou hru"
#: data/gtk/help-overlay.blp:53
msgid "Import games"
msgstr "Importovat hry"
#: data/gtk/help-overlay.blp:58
msgid "Show hidden games"
msgstr "Zobrazit skryté hry"
#: data/gtk/help-overlay.blp:63
msgid "Remove game"
msgstr "Odstranit hru"
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
msgid "Behavior"
msgstr "Chování"
#: data/gtk/preferences.blp:16
msgid "Exit After Launching Games"
msgstr "Ukončit po spuštění her"
#: data/gtk/preferences.blp:25
msgid "Cover Image Launches Game"
msgstr "Obrázek na obálce spouští hru"
#: data/gtk/preferences.blp:26
msgid "Swaps the behavior of the cover image and the play button"
msgstr "Vymění chování obrázku na obálce a tlačítka pro přehrávání"
#: data/gtk/preferences.blp:36 src/details_window.py:81
msgid "Images"
msgstr "Obrázky"
#: data/gtk/preferences.blp:39
msgid "High Quality Images"
msgstr "Vysoce kvalitní obrázky"
#: data/gtk/preferences.blp:40
msgid "Save game covers losslessly at the cost of storage"
msgstr "Ukládat obaly her bezztrátově na úkor většího místa na disku"
#: data/gtk/preferences.blp:50
msgid "Danger Zone"
msgstr "Nebezpečná zóna"
#: data/gtk/preferences.blp:53
msgid "Remove All Games"
msgstr "Odstranit všechny hry"
#: data/gtk/preferences.blp:85 data/gtk/window.blp:27 data/gtk/window.blp:442
msgid "Import"
msgstr "Import"
#: data/gtk/preferences.blp:89
msgid "Sources"
msgstr "Zdroje"
#: data/gtk/preferences.blp:92
msgid "Steam"
msgstr "Steam"
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:243
msgid "Install Location"
msgstr "Umístění instalace"
#: data/gtk/preferences.blp:106
msgid "Lutris"
msgstr "Lutris"
#: data/gtk/preferences.blp:119
msgid "Cache Location"
msgstr "Umístění dočasných souborů"
#: data/gtk/preferences.blp:128
msgid "Import Steam Games"
msgstr "Importovat Steam hry"
#: data/gtk/preferences.blp:137
msgid "Import Flatpak Games"
msgstr "Importovat Flatpak hry"
#: data/gtk/preferences.blp:147
msgid "Heroic"
msgstr "Heroic"
#: data/gtk/preferences.blp:160
msgid "Import Epic Games"
msgstr "Importovat Epic Games hry"
#: data/gtk/preferences.blp:169
msgid "Import GOG Games"
msgstr "Importovat GOG hry"
#: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Amazon Games"
msgstr "Importovat Steam hry"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games"
msgstr "Importovat ručně načtené hry"
#: data/gtk/preferences.blp:197
msgid "Bottles"
msgstr "Láhve"
#: data/gtk/preferences.blp:211
msgid "itch"
msgstr "itch"
#: data/gtk/preferences.blp:225
msgid "Legendary"
msgstr "Legendary"
#: data/gtk/preferences.blp:239
msgid "Flatpak"
msgstr "Flatpak"
#: data/gtk/preferences.blp:252
msgid "Import Game Launchers"
msgstr "Importovat spouštěče her"
#: data/gtk/preferences.blp:265
msgid "SteamGridDB"
msgstr "SteamGridDB"
#: data/gtk/preferences.blp:269
msgid "Authentication"
msgstr "Ověření"
#: data/gtk/preferences.blp:272
msgid "API Key"
msgstr "Klíč API"
#: data/gtk/preferences.blp:280
msgid "Use SteamGridDB"
msgstr "Používat SteamGridDB"
#: data/gtk/preferences.blp:281
msgid "Download images when adding or importing games"
msgstr "Stahovat obrázky při přidávání nebo importování her"
#: data/gtk/preferences.blp:290
msgid "Prefer Over Official Images"
msgstr "Upřednostnit před oficiálními obrázky"
#: data/gtk/preferences.blp:299
msgid "Prefer Animated Images"
msgstr "Upřednostnit animované obrázky"
#: data/gtk/window.blp:6 data/gtk/window.blp:14
msgid "No Games Found"
msgstr "Nebyly nalezeny žádné hry"
#: data/gtk/window.blp:7 data/gtk/window.blp:15
msgid "Try a different search."
msgstr "Zkuste hledat něco jiného."
#: data/gtk/window.blp:21
msgid "No Games"
msgstr "Žádné hry"
#: data/gtk/window.blp:22
msgid "Use the + button to add games."
msgstr "Tlačítkem + můžete přidávat hry."
#: data/gtk/window.blp:40
msgid "No Hidden Games"
msgstr "Žádné skryté hry"
#: data/gtk/window.blp:41
msgid "Games you hide will appear here."
msgstr "Hry, které skryjete, se zobrazí zde."
#: data/gtk/window.blp:64 data/gtk/window.blp:304
msgid "Back"
msgstr "Zpět"
#: data/gtk/window.blp:121
msgid "Game Title"
msgstr "Název hry"
#: data/gtk/window.blp:176
msgid "Play"
msgstr "Hrát"
#: data/gtk/window.blp:243 data/gtk/window.blp:435
msgid "Add Game"
msgstr "Přidat hru"
#: data/gtk/window.blp:250 data/gtk/window.blp:316
msgid "Main Menu"
msgstr "Hlavní nabídka"
#: data/gtk/window.blp:311
msgid "Hidden Games"
msgstr "Skryté hry"
#: data/gtk/window.blp:374
msgid "Sort"
msgstr "Třídit"
#: data/gtk/window.blp:377
msgid "A-Z"
msgstr "A-Ž"
#: data/gtk/window.blp:383
msgid "Z-A"
msgstr "Ž-A"
#: data/gtk/window.blp:389
msgid "Newest"
msgstr "Nejnovější"
#: data/gtk/window.blp:395
msgid "Oldest"
msgstr "Nejstarší"
#: data/gtk/window.blp:401
msgid "Last Played"
msgstr "Naposledy hráno"
#: data/gtk/window.blp:408
msgid "Show Hidden"
msgstr "Zobrazit Skryté"
#: data/gtk/window.blp:421
msgid "Keyboard Shortcuts"
msgstr "Klávesové zkratky"
#: data/gtk/window.blp:426
msgid "About Cartridges"
msgstr "O Kazetách"
#. Translators: Replace this with your name for it to show up in the about window
#: src/main.py:188
msgid "translator_credits"
msgstr "ooo.i.love.foo"
#. The variable is the date when the game was added
#: src/window.py:194
msgid "Added: {}"
msgstr "Přidáno: {}"
#: src/window.py:197
msgid "Never"
msgstr "Nikdy"
#. The variable is the date when the game was last played
#: src/window.py:201
msgid "Last played: {}"
msgstr "Naposledy hráno: {}"
#: src/details_window.py:72
msgid "Apply"
msgstr "Použít"
#: src/details_window.py:78
msgid "Add New Game"
msgstr "Přidat novou hru"
#: src/details_window.py:79
msgid "Confirm"
msgstr "Potvrdit"
#. Translate this string as you would translate "file"
#: src/details_window.py:92
msgid "file.txt"
msgstr "soubor.txt"
#. As in software
#: src/details_window.py:94
msgid "program"
msgstr "program"
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:99 src/details_window.py:101
msgid "C:\\path\\to\\{}"
msgstr "C:\\cesta\\k\\{}"
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:105 src/details_window.py:107
msgid "/path/to/{}"
msgstr "/cesta/k/{}"
#: src/details_window.py:112
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 ""
"Chcete-li spustit spustitelný soubor \"{}\", použijte příkaz:\n"
"\n"
"<tt>\"{}\"</tt>\n"
"\n"
"Chcete-li otevřít soubor \"{}\" pomocí výchozí aplikace, použijte příkaz:\n"
"\n"
"<tt>{} \"{}\"</tt>\n"
"\n"
"Pokud cesta obsahuje mezery, nezapomeňte ji zabalit do dvojitých uvozovek!"
#: src/details_window.py:147 src/details_window.py:153
msgid "Couldn't Add Game"
msgstr "Nelze přidat hru"
#: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty."
msgstr "Název hry nemůže být prázdný."
#: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty."
msgstr "Spustitelný soubor nemůže být prázdný."
#: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences"
msgstr "Nelze použít předvolby"
#. The variable is the title of the game
#: src/game.py:138
msgid "{} launched"
msgstr "{} spuštěno"
#. The variable is the title of the game
#: src/game.py:152
msgid "{} hidden"
msgstr "{} skryto"
#: src/game.py:152
msgid "{} unhidden"
msgstr "{} odkryto"
#: src/game.py:169
msgid "{} removed"
msgstr "{} odstraněno"
#: src/preferences.py:112
msgid "All games removed"
msgstr "Všechny hry odstraněny"
#: src/preferences.py:160
msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr ""
"K používání služby SteamGridDB je vyžadován klíč API. Můžete si ho "
"vygenerovat {}zde{}."
#: src/preferences.py:285
msgid "Installation Not Found"
msgstr "Instalace nebyla nalezena"
#: src/preferences.py:287
msgid "Select a valid directory."
msgstr "Vyberte platný adresář."
#: src/preferences.py:349
msgid "Invalid Directory"
msgstr "Neplatný adresář"
#. The variable is the name of the source
#: src/preferences.py:353
msgid "Select the {} cache directory."
msgstr "Vyberte adresář {} mezipaměti."
#. The variable is the name of the source
#: src/preferences.py:356
msgid "Select the {} configuration directory."
msgstr "Vyberte konfigurační adresář {}."
#. The variable is the name of the source
#: src/preferences.py:359
msgid "Select the {} data directory."
msgstr "Vyberte datový adresář {}."
#: src/preferences.py:365
msgid "Set Location"
msgstr "Nastavit umístění"
#: src/utils/create_dialog.py:25
msgid "Dismiss"
msgstr "Zahodit"
#: src/store/managers/sgdb_manager.py:47
msgid "Couldn't Authenticate SteamGridDB"
msgstr "Nelze ověřit SteamGridDB"
#: src/store/managers/sgdb_manager.py:48
msgid "Verify your API key in preferences"
msgstr "Ověřte váš klíč API v předvolbách"

View File

@@ -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-07-05 14:36+0200\n" "POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-04-17 17:20+0000\n" "PO-Revision-Date: 2023-04-17 17:20+0000\n"
"Last-Translator: Ettore Atalan <atalanttore@googlemail.com>\n" "Last-Translator: Ettore Atalan <atalanttore@googlemail.com>\n"
"Language-Team: German <https://hosted.weblate.org/projects/cartridges/" "Language-Team: German <https://hosted.weblate.org/projects/cartridges/"
@@ -22,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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:170
msgid "Cartridges" msgid "Cartridges"
msgstr "Cartridges" msgstr "Cartridges"
@@ -36,7 +36,7 @@ msgid "Launch all your games"
msgstr "Starte all deine Spiele" msgstr "Starte all deine Spiele"
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "" msgstr ""
#: data/hu.kramo.Cartridges.metainfo.xml.in:9 #: data/hu.kramo.Cartridges.metainfo.xml.in:9
@@ -64,7 +64,7 @@ msgid "Game Details"
msgstr "Spieldetails" msgstr "Spieldetails"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:239 #: src/details_window.py:241
msgid "Preferences" msgid "Preferences"
msgstr "Einstellungen" msgstr "Einstellungen"
@@ -147,7 +147,7 @@ msgstr "Einstellungen anzeigen"
msgid "Shortcuts" msgid "Shortcuts"
msgstr "Kürzel" msgstr "Kürzel"
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo" msgid "Undo"
msgstr "Rückgängig" msgstr "Rückgängig"
@@ -175,7 +175,7 @@ msgstr "Ausgeblendete Spiele anzeigen"
msgid "Remove game" msgid "Remove game"
msgstr "Spiel entfernen" msgstr "Spiel entfernen"
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
msgid "Behavior" msgid "Behavior"
msgstr "Verhalten" msgstr "Verhalten"
@@ -224,9 +224,9 @@ msgid "Steam"
msgstr "Steam" msgstr "Steam"
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:243
#, fuzzy #, fuzzy
#| msgid "itch Install Location" #| msgid "itch Install Location"
msgid "Install Location" msgid "Install Location"
@@ -265,56 +265,62 @@ msgid "Import GOG Games"
msgstr "GOG-Spiele importieren" msgstr "GOG-Spiele importieren"
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Amazon Games"
msgstr "Steam-Spiele importieren"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "Sideloaded-Spiele importieren" msgstr "Sideloaded-Spiele importieren"
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:197
msgid "Bottles" msgid "Bottles"
msgstr "Bottles" msgstr "Bottles"
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:211
msgid "itch" msgid "itch"
msgstr "itch" msgstr "itch"
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:225
msgid "Legendary" msgid "Legendary"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:239
msgid "Flatpak" msgid "Flatpak"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:252
#, fuzzy #, fuzzy
#| msgid "Game Launcher" #| msgid "Game Launcher"
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "Spiele-Launcher" msgstr "Spiele-Launcher"
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:265
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "SteamGridDB" msgstr "SteamGridDB"
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:269
msgid "Authentication" msgid "Authentication"
msgstr "Authentifizierung" msgstr "Authentifizierung"
#: data/gtk/preferences.blp:263 #: data/gtk/preferences.blp:272
msgid "API Key" msgid "API Key"
msgstr "API-Schlüssel" msgstr "API-Schlüssel"
#: data/gtk/preferences.blp:271 #: data/gtk/preferences.blp:280
msgid "Use SteamGridDB" msgid "Use SteamGridDB"
msgstr "SteamGridDB benutzen" msgstr "SteamGridDB benutzen"
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:281
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "Lade Bilder herunter, wenn Spiele hinzugefügt oder importiert werden" msgstr "Lade Bilder herunter, wenn Spiele hinzugefügt oder importiert werden"
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:290
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "Über offizielien Images bevorzugen" msgstr "Über offizielien Images bevorzugen"
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:299
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "Animierte Bilder bevorzugen" msgstr "Animierte Bilder bevorzugen"
@@ -403,7 +409,7 @@ msgid "About Cartridges"
msgstr "Über Cartridges" msgstr "Über Cartridges"
#. 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "Feliks Weber" msgstr "Feliks Weber"
@@ -480,15 +486,15 @@ msgstr ""
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "Konnte Spiel nicht hinzufügen" msgstr "Konnte Spiel nicht hinzufügen"
#: src/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "Spieltitel kann nicht leer sein." msgstr "Spieltitel kann nicht leer sein."
#: src/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "Ausführbare Datei darf nicht leer sein." msgstr "Ausführbare Datei darf nicht leer sein."
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "Einstellungen konnten nicht angewendet werden" msgstr "Einstellungen konnten nicht angewendet werden"
@@ -510,55 +516,55 @@ msgstr "{} unversteckt"
msgid "{} removed" msgid "{} removed"
msgstr "{} entfernt" msgstr "{} entfernt"
#: src/preferences.py:111 #: src/preferences.py:112
msgid "All games removed" msgid "All games removed"
msgstr "Alle Spiele entfernt" msgstr "Alle Spiele entfernt"
#: src/preferences.py:159 #: src/preferences.py:160
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr ""
"Für die Nutzung von SteamGridDB ist ein API-Schlüssel erforderlich. Sie " "Für die Nutzung von SteamGridDB ist ein API-Schlüssel erforderlich. Sie "
"können ihn {}hier{} generieren." "können ihn {}hier{} generieren."
#: src/preferences.py:284 #: src/preferences.py:285
#, fuzzy #, fuzzy
#| msgid "Installation Not Found" #| msgid "Installation Not Found"
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "Installation nicht gefunden" msgstr "Installation nicht gefunden"
#: src/preferences.py:286 #: src/preferences.py:287
#, fuzzy #, fuzzy
#| msgid "Select the {} data directory." #| msgid "Select the {} data directory."
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "Wähle das Datenverzeichnis von {} aus." msgstr "Wähle das Datenverzeichnis von {} aus."
#: src/preferences.py:348 #: src/preferences.py:349
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "" msgstr ""
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/preferences.py:353
#, fuzzy #, fuzzy
#| msgid "Select the {} data directory." #| msgid "Select the {} data directory."
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "Wähle das Datenverzeichnis von {} aus." msgstr "Wähle das Datenverzeichnis von {} aus."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/preferences.py:356
#, fuzzy #, fuzzy
#| msgid "Select the {} configuration directory." #| msgid "Select the {} configuration directory."
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "Wähle das Konfigurationsverzeichnis von {} aus." msgstr "Wähle das Konfigurationsverzeichnis von {} aus."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/preferences.py:359
#, fuzzy #, fuzzy
#| msgid "Select the {} data directory." #| msgid "Select the {} data directory."
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "Wähle das Datenverzeichnis von {} aus." msgstr "Wähle das Datenverzeichnis von {} aus."
#: src/preferences.py:364 #: src/preferences.py:365
msgid "Set Location" msgid "Set Location"
msgstr "Ort festlegen" msgstr "Ort festlegen"

View File

@@ -6,7 +6,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-07-05 14:36+0200\n" "POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-05-29 18:48+0000\n" "PO-Revision-Date: 2023-05-29 18:48+0000\n"
"Last-Translator: yiannis ioannides <sub@wai.ai>\n" "Last-Translator: yiannis ioannides <sub@wai.ai>\n"
"Language-Team: Greek <https://hosted.weblate.org/projects/cartridges/" "Language-Team: Greek <https://hosted.weblate.org/projects/cartridges/"
@@ -20,7 +20,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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:170
msgid "Cartridges" msgid "Cartridges"
msgstr "Κασέτες" msgstr "Κασέτες"
@@ -34,7 +34,9 @@ msgid "Launch all your games"
msgstr "Εκκινήστε όλα σας τα παιχνίδια" msgstr "Εκκινήστε όλα σας τα παιχνίδια"
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" #, fuzzy
#| msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;"
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "gaming;εκκινητής;steam;lutris;heroic;bottles;itch;" msgstr "gaming;εκκινητής;steam;lutris;heroic;bottles;itch;"
#: data/hu.kramo.Cartridges.metainfo.xml.in:9 #: data/hu.kramo.Cartridges.metainfo.xml.in:9
@@ -63,7 +65,7 @@ msgid "Game Details"
msgstr "Λεπτομέρειες Παιχνιδιού" msgstr "Λεπτομέρειες Παιχνιδιού"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:239 #: src/details_window.py:241
msgid "Preferences" msgid "Preferences"
msgstr "Προτιμήσεις" msgstr "Προτιμήσεις"
@@ -147,7 +149,7 @@ msgstr "Εμφάνιση προτιμήσεων"
msgid "Shortcuts" msgid "Shortcuts"
msgstr "Συντομεύσεις" msgstr "Συντομεύσεις"
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo" msgid "Undo"
msgstr "Αναίρεση" msgstr "Αναίρεση"
@@ -175,7 +177,7 @@ msgstr "Εμφάνιση κρυμμένων παιχνιδιών"
msgid "Remove game" msgid "Remove game"
msgstr "Αφαίρεση παιχνιδιού" msgstr "Αφαίρεση παιχνιδιού"
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
msgid "Behavior" msgid "Behavior"
msgstr "Συμπεριφορά" msgstr "Συμπεριφορά"
@@ -225,9 +227,9 @@ msgid "Steam"
msgstr "Steam" msgstr "Steam"
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:243
#, fuzzy #, fuzzy
#| msgid "itch Install Location" #| msgid "itch Install Location"
msgid "Install Location" msgid "Install Location"
@@ -266,56 +268,62 @@ msgid "Import GOG Games"
msgstr "Εισαγωγή Παιχνιδιών GOG" msgstr "Εισαγωγή Παιχνιδιών GOG"
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Amazon Games"
msgstr "Εισαγωγή Παιχνιδιών Steam"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "Εισαγωγή Παιχνιδιών Μέσω Sideloading" msgstr "Εισαγωγή Παιχνιδιών Μέσω Sideloading"
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:197
msgid "Bottles" msgid "Bottles"
msgstr "Bottles" msgstr "Bottles"
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:211
msgid "itch" msgid "itch"
msgstr "itch" msgstr "itch"
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:225
msgid "Legendary" msgid "Legendary"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:239
msgid "Flatpak" msgid "Flatpak"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:252
#, fuzzy #, fuzzy
#| msgid "Game Launcher" #| msgid "Game Launcher"
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "Πρόγραμμα Εκκίνησης Παιχνιδιών" msgstr "Πρόγραμμα Εκκίνησης Παιχνιδιών"
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:265
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "SteamGridDB" msgstr "SteamGridDB"
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:269
msgid "Authentication" msgid "Authentication"
msgstr "Επιβεβαίωση" msgstr "Επιβεβαίωση"
#: data/gtk/preferences.blp:263 #: data/gtk/preferences.blp:272
msgid "API Key" msgid "API Key"
msgstr "Κλειδί API" msgstr "Κλειδί API"
#: data/gtk/preferences.blp:271 #: data/gtk/preferences.blp:280
msgid "Use SteamGridDB" msgid "Use SteamGridDB"
msgstr "Χρήση SteamGridDB" msgstr "Χρήση SteamGridDB"
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:281
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "Λήψη εικόνων κατά τη διάρκεια πρόσθεσης ή εισαγωγής παιχνιδιών" msgstr "Λήψη εικόνων κατά τη διάρκεια πρόσθεσης ή εισαγωγής παιχνιδιών"
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:290
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "Προτίμηση Επίσημων Εικόνων" msgstr "Προτίμηση Επίσημων Εικόνων"
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:299
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "Προτίμηση Κινούμενων Εικόνων" msgstr "Προτίμηση Κινούμενων Εικόνων"
@@ -404,7 +412,7 @@ msgid "About Cartridges"
msgstr "Σχετικά με τις Κασέτες" 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "Yiannis Ioannides" msgstr "Yiannis Ioannides"
@@ -482,15 +490,15 @@ msgstr ""
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "Αδυναμία προσθήκης παιχνιδιού" msgstr "Αδυναμία προσθήκης παιχνιδιού"
#: src/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "Ο τίτλος παιχνιδιού δεν μπορεί να είναι κενός." msgstr "Ο τίτλος παιχνιδιού δεν μπορεί να είναι κενός."
#: src/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "Η εφαρμογή δεν μπορεί να είναι κενή." msgstr "Η εφαρμογή δεν μπορεί να είναι κενή."
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "Αδυναμία Εφαρμογής Προτιμήσεων" msgstr "Αδυναμία Εφαρμογής Προτιμήσεων"
@@ -512,55 +520,55 @@ msgstr "{} φανερώθηκε"
msgid "{} removed" msgid "{} removed"
msgstr "{} αφαιρέθηκε" msgstr "{} αφαιρέθηκε"
#: src/preferences.py:111 #: src/preferences.py:112
msgid "All games removed" msgid "All games removed"
msgstr "Όλα τα παιχνίδια αφαιρέθηκαν" msgstr "Όλα τα παιχνίδια αφαιρέθηκαν"
#: src/preferences.py:159 #: src/preferences.py:160
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr ""
"Για τη χρήση του SteamGridDB απαιτείται ένα κλειδί API. Μπορείτε να " "Για τη χρήση του SteamGridDB απαιτείται ένα κλειδί API. Μπορείτε να "
"δημιουργήσετε ένα {}εδώ{}." "δημιουργήσετε ένα {}εδώ{}."
#: src/preferences.py:284 #: src/preferences.py:285
#, fuzzy #, fuzzy
#| msgid "Installation Not Found" #| msgid "Installation Not Found"
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "Η εγκατάσταση δεν βρέθηκε" msgstr "Η εγκατάσταση δεν βρέθηκε"
#: src/preferences.py:286 #: src/preferences.py:287
#, fuzzy #, fuzzy
#| msgid "Select the {} data directory." #| msgid "Select the {} data directory."
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "Επιλέξτε τον κατάλογο δεδομένων {}." msgstr "Επιλέξτε τον κατάλογο δεδομένων {}."
#: src/preferences.py:348 #: src/preferences.py:349
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "" msgstr ""
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/preferences.py:353
#, fuzzy #, fuzzy
#| msgid "Select the {} data directory." #| msgid "Select the {} data directory."
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "Επιλέξτε τον κατάλογο δεδομένων {}." msgstr "Επιλέξτε τον κατάλογο δεδομένων {}."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/preferences.py:356
#, fuzzy #, fuzzy
#| msgid "Select the {} configuration directory." #| msgid "Select the {} configuration directory."
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "Επιλέξτε τον κατάλογο διαμόρφωσης {}." msgstr "Επιλέξτε τον κατάλογο διαμόρφωσης {}."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/preferences.py:359
#, fuzzy #, fuzzy
#| msgid "Select the {} data directory." #| msgid "Select the {} data directory."
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "Επιλέξτε τον κατάλογο δεδομένων {}." msgstr "Επιλέξτε τον κατάλογο δεδομένων {}."
#: src/preferences.py:364 #: src/preferences.py:365
msgid "Set Location" msgid "Set Location"
msgstr "Ορίστε Τοποθεσία" msgstr "Ορίστε Τοποθεσία"

125
po/es.po
View File

@@ -8,9 +8,10 @@ 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-07-05 14:36+0200\n" "POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-07-04 17:29+0000\n" "PO-Revision-Date: 2023-07-08 14:52+0000\n"
"Last-Translator: gallegonovato <fran-carro@hotmail.es>\n" "Last-Translator: Óscar Fernández Díaz <oscfdezdz@users.noreply.hosted."
"weblate.org>\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"
"Language: es\n" "Language: es\n"
@@ -22,7 +23,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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:170
msgid "Cartridges" msgid "Cartridges"
msgstr "Cartuchos" msgstr "Cartuchos"
@@ -36,7 +37,9 @@ msgid "Launch all your games"
msgstr "Lance todos sus juegos" msgstr "Lance todos sus juegos"
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" #, fuzzy
#| msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;"
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "gaming;launcher;steam;lutris;heroic;bottles;itch;" msgstr "gaming;launcher;steam;lutris;heroic;bottles;itch;"
#: data/hu.kramo.Cartridges.metainfo.xml.in:9 #: data/hu.kramo.Cartridges.metainfo.xml.in:9
@@ -46,9 +49,9 @@ msgid ""
"necessary. You can sort and hide games or download cover art from " "necessary. You can sort and hide games or download cover art from "
"SteamGridDB." "SteamGridDB."
msgstr "" msgstr ""
"Cartridges es un lanzador simple para todos tus juegos. Admite la " "Cartuchos es un sencillo lanzador de juegos para todos sus juegos. Tiene "
"importación de tus juegos de Steam, Lutris, Heroic y más sin necesidad de " "soporte para importar juegos de Steam, Lutris, Heroic y más sin necesidad de "
"una cuenta. Puedes ordenar y ocultar juegos, o descargar carátulas de " "iniciar sesión. Puede ordenar y ocultar juegos o descargar portadas de "
"SteamGridDB." "SteamGridDB."
#: data/hu.kramo.Cartridges.metainfo.xml.in:30 #: data/hu.kramo.Cartridges.metainfo.xml.in:30
@@ -64,7 +67,7 @@ msgid "Game Details"
msgstr "Detalles del juego" msgstr "Detalles del juego"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:239 #: src/details_window.py:241
msgid "Preferences" msgid "Preferences"
msgstr "Preferencias" msgstr "Preferencias"
@@ -74,11 +77,11 @@ msgstr "Cancelar"
#: data/gtk/details-window.blp:57 #: data/gtk/details-window.blp:57
msgid "New Cover" msgid "New Cover"
msgstr "Nueva caratula" msgstr "Portada nueva"
#: data/gtk/details-window.blp:75 #: data/gtk/details-window.blp:75
msgid "Delete Cover" msgid "Delete Cover"
msgstr "Borrar la caratula" msgstr "Borrar portada"
#: data/gtk/details-window.blp:101 data/gtk/details-window.blp:106 #: data/gtk/details-window.blp:101 data/gtk/details-window.blp:106
#: data/gtk/game.blp:80 #: data/gtk/game.blp:80
@@ -124,7 +127,7 @@ msgstr "Eliminar"
#: data/gtk/game.blp:126 src/window.py:173 #: data/gtk/game.blp:126 src/window.py:173
msgid "Unhide" msgid "Unhide"
msgstr "Mostrar" msgstr "Desocultar"
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9 #: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
msgid "General" msgid "General"
@@ -147,7 +150,7 @@ msgstr "Mostrar preferencias"
msgid "Shortcuts" msgid "Shortcuts"
msgstr "Atajos" msgstr "Atajos"
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo" msgid "Undo"
msgstr "Deshacer" msgstr "Deshacer"
@@ -175,9 +178,9 @@ msgstr "Mostrar juegos ocultos"
msgid "Remove game" msgid "Remove game"
msgstr "Eliminar juego" msgstr "Eliminar juego"
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
msgid "Behavior" msgid "Behavior"
msgstr "Conducta" msgstr "Comportamiento"
#: data/gtk/preferences.blp:16 #: data/gtk/preferences.blp:16
msgid "Exit After Launching Games" msgid "Exit After Launching Games"
@@ -206,11 +209,11 @@ msgstr "Guarda las partidas sin pérdidas a costa del almacenamiento"
#: data/gtk/preferences.blp:50 #: data/gtk/preferences.blp:50
msgid "Danger Zone" msgid "Danger Zone"
msgstr "Zona peligrosa" msgstr "Zona de peligro"
#: data/gtk/preferences.blp:53 #: data/gtk/preferences.blp:53
msgid "Remove All Games" msgid "Remove All Games"
msgstr "Quitar todos los juegos" msgstr "Eliminar todos los juegos"
#: data/gtk/preferences.blp:85 data/gtk/window.blp:27 data/gtk/window.blp:442 #: data/gtk/preferences.blp:85 data/gtk/window.blp:27 data/gtk/window.blp:442
msgid "Import" msgid "Import"
@@ -225,11 +228,11 @@ msgid "Steam"
msgstr "Steam" msgstr "Steam"
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:243
msgid "Install Location" msgid "Install Location"
msgstr "Lugar de la instalación" msgstr "Ruta de instalación"
#: data/gtk/preferences.blp:106 #: data/gtk/preferences.blp:106
msgid "Lutris" msgid "Lutris"
@@ -237,7 +240,7 @@ msgstr "Lutris"
#: data/gtk/preferences.blp:119 #: data/gtk/preferences.blp:119
msgid "Cache Location" msgid "Cache Location"
msgstr "Localización de la caché" msgstr "Ruta de la caché"
#: data/gtk/preferences.blp:128 #: data/gtk/preferences.blp:128
msgid "Import Steam Games" msgid "Import Steam Games"
@@ -245,7 +248,7 @@ msgstr "Importar juegos de Steam"
#: data/gtk/preferences.blp:137 #: data/gtk/preferences.blp:137
msgid "Import Flatpak Games" msgid "Import Flatpak Games"
msgstr "Importar los juegos Flatpak" msgstr "Importar juegos Flatpak"
#: data/gtk/preferences.blp:147 #: data/gtk/preferences.blp:147
msgid "Heroic" msgid "Heroic"
@@ -260,54 +263,60 @@ msgid "Import GOG Games"
msgstr "Importar juegos de GOG" msgstr "Importar juegos de GOG"
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Amazon Games"
msgstr "Importar juegos de Steam"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "Importar juegos descargados" msgstr "Importar juegos descargados"
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:197
msgid "Bottles" msgid "Bottles"
msgstr "Bottles" msgstr "Bottles"
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:211
msgid "itch" msgid "itch"
msgstr "itch" msgstr "itch"
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:225
msgid "Legendary" msgid "Legendary"
msgstr "Legendario" msgstr "Legendario"
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:239
msgid "Flatpak" msgid "Flatpak"
msgstr "Flatpak" msgstr "Flatpak"
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:252
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "Importar lanzadores de juegos" msgstr "Importar lanzadores de juegos"
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:265
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "SteamGridDB" msgstr "SteamGridDB"
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:269
msgid "Authentication" msgid "Authentication"
msgstr "Autentificación" msgstr "Autenticación"
#: data/gtk/preferences.blp:263
msgid "API Key"
msgstr "Código API"
#: data/gtk/preferences.blp:271
msgid "Use SteamGridDB"
msgstr "Utiliza SteamGridDB"
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:272
msgid "API Key"
msgstr "Clave API"
#: data/gtk/preferences.blp:280
msgid "Use SteamGridDB"
msgstr "Usar SteamGridDB"
#: data/gtk/preferences.blp:281
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "Descargar las imágenes al añadir o importar juegos" msgstr "Descargar las imágenes al añadir o importar juegos"
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:290
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "Preferir las imágenes oficiales" msgstr "Preferir las imágenes oficiales"
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:299
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "Prefiero las imágenes animadas" msgstr "Prefiero las imágenes animadas"
@@ -396,7 +405,7 @@ msgid "About Cartridges"
msgstr "Acerca de Cartuchos" msgstr "Acerca de Cartuchos"
#. 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "Óscar Fernández Díaz <oscfdezdz@tuta.io>" msgstr "Óscar Fernández Díaz <oscfdezdz@tuta.io>"
@@ -472,15 +481,15 @@ msgstr ""
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/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
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/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
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."
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "No se pudieron aplicar las preferencias" msgstr "No se pudieron aplicar las preferencias"
@@ -502,49 +511,45 @@ msgstr "{} visible"
msgid "{} removed" msgid "{} removed"
msgstr "{} eliminado" msgstr "{} eliminado"
#: src/preferences.py:111 #: src/preferences.py:112
msgid "All games removed" msgid "All games removed"
msgstr "Todos los juegos eliminados" msgstr "Todos los juegos eliminados"
#: src/preferences.py:159 #: src/preferences.py:160
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr ""
"Se necesita una clave API para utilizar SteamGridDB. Puedes generar una {}" "Se necesita una clave API para utilizar SteamGridDB. Puedes generar una {}"
"aquí{}." "aquí{}."
#: src/preferences.py:284 #: src/preferences.py:285
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "Instalación no encontrada" msgstr "Instalación no encontrada"
#: src/preferences.py:286 #: src/preferences.py:287
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "Selecciona un directorio válido." msgstr "Selecciona un directorio válido."
#: src/preferences.py:348 #: src/preferences.py:349
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "Directorio incorrecto" msgstr "Directorio incorrecto"
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/preferences.py:353
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "Seleccione el directorio de la caché {}." msgstr "Seleccione el directorio de la caché {}."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/preferences.py:356
#, fuzzy
#| msgid "Select the {} installation directory."
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "Selecciona el directorio de la instalación {}." msgstr "Seleccione el directorio de configuración {}."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/preferences.py:359
#, fuzzy
#| msgid "Select the {} cache directory."
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "Seleccione el directorio de la caché {}." msgstr "Seleccione el directorio de datos {}."
#: src/preferences.py:364 #: src/preferences.py:365
msgid "Set Location" msgid "Set Location"
msgstr "Escoger la ubicación" msgstr "Escoger la ubicación"

View File

@@ -6,7 +6,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-07-05 14:36+0200\n" "POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-04-22 10:48+0000\n" "PO-Revision-Date: 2023-04-22 10:48+0000\n"
"Last-Translator: سید حسین موسوی فرد <shmf1385@protonmail.com>\n" "Last-Translator: سید حسین موسوی فرد <shmf1385@protonmail.com>\n"
"Language-Team: Persian <https://hosted.weblate.org/projects/cartridges/" "Language-Team: Persian <https://hosted.weblate.org/projects/cartridges/"
@@ -20,7 +20,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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:170
msgid "Cartridges" msgid "Cartridges"
msgstr "کارتریج‌ها" msgstr "کارتریج‌ها"
@@ -34,7 +34,7 @@ msgid "Launch all your games"
msgstr "اجرای همهٔ بازی‌های شما" msgstr "اجرای همهٔ بازی‌های شما"
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "" msgstr ""
#: data/hu.kramo.Cartridges.metainfo.xml.in:9 #: data/hu.kramo.Cartridges.metainfo.xml.in:9
@@ -61,7 +61,7 @@ msgid "Game Details"
msgstr "جزییات بازی" msgstr "جزییات بازی"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:239 #: src/details_window.py:241
msgid "Preferences" msgid "Preferences"
msgstr "ترجیحات" msgstr "ترجیحات"
@@ -144,7 +144,7 @@ msgstr "نمایش ترجیحات"
msgid "Shortcuts" msgid "Shortcuts"
msgstr "میانبرها" msgstr "میانبرها"
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo" msgid "Undo"
msgstr "برگردان" msgstr "برگردان"
@@ -172,7 +172,7 @@ msgstr "نمایش بازی‌های پنهان"
msgid "Remove game" msgid "Remove game"
msgstr "حذف کردن بازی" msgstr "حذف کردن بازی"
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
msgid "Behavior" msgid "Behavior"
msgstr "" msgstr ""
@@ -221,9 +221,9 @@ msgid "Steam"
msgstr "استیم" msgstr "استیم"
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:243
msgid "Install Location" msgid "Install Location"
msgstr "" msgstr ""
@@ -258,56 +258,62 @@ msgid "Import GOG Games"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "Import games"
msgid "Import Amazon Games"
msgstr "درون‌ریزی بازی"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:197
msgid "Bottles" msgid "Bottles"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:211
msgid "itch" msgid "itch"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:225
msgid "Legendary" msgid "Legendary"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:239
msgid "Flatpak" msgid "Flatpak"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:252
#, fuzzy #, fuzzy
#| msgid "Game Launcher" #| msgid "Game Launcher"
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "اجراگر بازی" msgstr "اجراگر بازی"
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:265
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:269
msgid "Authentication" msgid "Authentication"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:263 #: data/gtk/preferences.blp:272
msgid "API Key" msgid "API Key"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:271 #: data/gtk/preferences.blp:280
msgid "Use SteamGridDB" msgid "Use SteamGridDB"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:281
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:290
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:299
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "" msgstr ""
@@ -396,7 +402,7 @@ msgid "About Cartridges"
msgstr "" 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "" msgstr ""
@@ -463,15 +469,15 @@ msgstr ""
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "" msgstr ""
#: src/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "" msgstr ""
#: src/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "" msgstr ""
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "" msgstr ""
@@ -493,43 +499,43 @@ msgstr ""
msgid "{} removed" msgid "{} removed"
msgstr "" msgstr ""
#: src/preferences.py:111 #: src/preferences.py:112
msgid "All games removed" msgid "All games removed"
msgstr "" msgstr ""
#: src/preferences.py:159 #: src/preferences.py:160
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr ""
#: src/preferences.py:284 #: src/preferences.py:285
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "" msgstr ""
#: src/preferences.py:286 #: src/preferences.py:287
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "" msgstr ""
#: src/preferences.py:348 #: src/preferences.py:349
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "" msgstr ""
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/preferences.py:353
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "" msgstr ""
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/preferences.py:356
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "" msgstr ""
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/preferences.py:359
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "" msgstr ""
#: src/preferences.py:364 #: src/preferences.py:365
msgid "Set Location" msgid "Set Location"
msgstr "" msgstr ""

View File

@@ -10,7 +10,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-07-05 14:36+0200\n" "POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-05-07 15:38+0000\n" "PO-Revision-Date: 2023-05-07 15:38+0000\n"
"Last-Translator: Jiri Grönroos <jiri.gronroos@iki.fi>\n" "Last-Translator: Jiri Grönroos <jiri.gronroos@iki.fi>\n"
"Language-Team: Finnish <https://hosted.weblate.org/projects/cartridges/" "Language-Team: Finnish <https://hosted.weblate.org/projects/cartridges/"
@@ -24,7 +24,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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:170
msgid "Cartridges" msgid "Cartridges"
msgstr "Cartridges" msgstr "Cartridges"
@@ -38,7 +38,7 @@ msgid "Launch all your games"
msgstr "Käynnistä kaikki pelisi" msgstr "Käynnistä kaikki pelisi"
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "" msgstr ""
#: data/hu.kramo.Cartridges.metainfo.xml.in:9 #: data/hu.kramo.Cartridges.metainfo.xml.in:9
@@ -71,7 +71,7 @@ msgid "Game Details"
msgstr "Pelin tiedot" msgstr "Pelin tiedot"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:239 #: src/details_window.py:241
msgid "Preferences" msgid "Preferences"
msgstr "Asetukset" msgstr "Asetukset"
@@ -156,7 +156,7 @@ msgstr "Näytä asetukset"
msgid "Shortcuts" msgid "Shortcuts"
msgstr "Pikanäppäimet" msgstr "Pikanäppäimet"
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo" msgid "Undo"
msgstr "Kumoa" msgstr "Kumoa"
@@ -184,7 +184,7 @@ msgstr "Näytä piilotetut pelit"
msgid "Remove game" msgid "Remove game"
msgstr "Poista peli" msgstr "Poista peli"
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
msgid "Behavior" msgid "Behavior"
msgstr "Toiminta" msgstr "Toiminta"
@@ -233,9 +233,9 @@ msgid "Steam"
msgstr "Steam" msgstr "Steam"
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:243
#, fuzzy #, fuzzy
#| msgid "itch Install Location" #| msgid "itch Install Location"
msgid "Install Location" msgid "Install Location"
@@ -274,56 +274,62 @@ msgid "Import GOG Games"
msgstr "Tuo GOG-pelejä" msgstr "Tuo GOG-pelejä"
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Amazon Games"
msgstr "Tuo Steam-pelejä"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "Tuo Sideload-pelejä" msgstr "Tuo Sideload-pelejä"
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:197
msgid "Bottles" msgid "Bottles"
msgstr "Pullot" msgstr "Pullot"
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:211
msgid "itch" msgid "itch"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:225
msgid "Legendary" msgid "Legendary"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:239
msgid "Flatpak" msgid "Flatpak"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:252
#, fuzzy #, fuzzy
#| msgid "Game Launcher" #| msgid "Game Launcher"
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "Pelin käynnistin" msgstr "Pelin käynnistin"
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:265
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "SteamGridDB" msgstr "SteamGridDB"
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:269
msgid "Authentication" msgid "Authentication"
msgstr "Tunnistautuminen" msgstr "Tunnistautuminen"
#: data/gtk/preferences.blp:263 #: data/gtk/preferences.blp:272
msgid "API Key" msgid "API Key"
msgstr "API-avain" msgstr "API-avain"
#: data/gtk/preferences.blp:271 #: data/gtk/preferences.blp:280
msgid "Use SteamGridDB" msgid "Use SteamGridDB"
msgstr "Käytä SteamGridDB:tä" msgstr "Käytä SteamGridDB:tä"
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:281
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "Lataa kuvat pelejä lisätessä tai tuotaessa" msgstr "Lataa kuvat pelejä lisätessä tai tuotaessa"
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:290
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "Suosi virallisten kuvien sijaan" msgstr "Suosi virallisten kuvien sijaan"
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:299
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "Suosi animoituja kuvia" msgstr "Suosi animoituja kuvia"
@@ -412,7 +418,7 @@ msgid "About Cartridges"
msgstr "Tietoja - Cartridges" msgstr "Tietoja - Cartridges"
#. 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "Linux Sauna" msgstr "Linux Sauna"
@@ -489,15 +495,15 @@ msgstr ""
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "Peliä ei voitu lisätä" msgstr "Peliä ei voitu lisätä"
#: src/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "Pelin nimi ei voi olla tyhjä." msgstr "Pelin nimi ei voi olla tyhjä."
#: src/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "Suoritettava ei voi olla tyhjä." msgstr "Suoritettava ei voi olla tyhjä."
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "Asetuksia ei voitu ottaa käyttöön" msgstr "Asetuksia ei voitu ottaa käyttöön"
@@ -519,47 +525,47 @@ msgstr "{} palautettu näkyviin"
msgid "{} removed" msgid "{} removed"
msgstr "{} poistettu" msgstr "{} poistettu"
#: src/preferences.py:111 #: src/preferences.py:112
msgid "All games removed" msgid "All games removed"
msgstr "Kaikki pelit poistettu" msgstr "Kaikki pelit poistettu"
#: src/preferences.py:159 #: src/preferences.py:160
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr ""
"API-avain on pakollinen, jos haluat käyttää SteamGridDB:tä. Voit luoda " "API-avain on pakollinen, jos haluat käyttää SteamGridDB:tä. Voit luoda "
"avaimen {}täällä{}." "avaimen {}täällä{}."
#: src/preferences.py:284 #: src/preferences.py:285
#, fuzzy #, fuzzy
#| msgid "Installation Not Found" #| msgid "Installation Not Found"
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "Asennusta ei löydy" msgstr "Asennusta ei löydy"
#: src/preferences.py:286 #: src/preferences.py:287
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "" msgstr ""
#: src/preferences.py:348 #: src/preferences.py:349
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "" msgstr ""
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/preferences.py:353
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "" msgstr ""
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/preferences.py:356
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "" msgstr ""
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/preferences.py:359
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "" msgstr ""
#: src/preferences.py:364 #: src/preferences.py:365
msgid "Set Location" msgid "Set Location"
msgstr "Aseta sijainti" msgstr "Aseta sijainti"

View File

@@ -11,9 +11,9 @@ 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-07-05 14:36+0200\n" "POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-07-05 13:13+0000\n" "PO-Revision-Date: 2023-07-24 13:05+0000\n"
"Last-Translator: Geoffrey Coulaud <geoffrey.coulaud+github@gmail.com>\n" "Last-Translator: rene-coty <irenee.thirion@e.email>\n"
"Language-Team: French <https://hosted.weblate.org/projects/cartridges/" "Language-Team: French <https://hosted.weblate.org/projects/cartridges/"
"cartridges/fr/>\n" "cartridges/fr/>\n"
"Language: fr\n" "Language: fr\n"
@@ -25,9 +25,9 @@ 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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:170
msgid "Cartridges" msgid "Cartridges"
msgstr "Cartridges" msgstr "Cartouches"
#: data/hu.kramo.Cartridges.desktop.in:4 #: data/hu.kramo.Cartridges.desktop.in:4
msgid "Game Launcher" msgid "Game Launcher"
@@ -39,7 +39,9 @@ msgid "Launch all your games"
msgstr "Lancez tous vos jeux" msgstr "Lancez tous vos jeux"
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" #, fuzzy
#| msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;"
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "gaming;jeux;lanceur;steam;lutris;heroic;bouteilles;itch;" msgstr "gaming;jeux;lanceur;steam;lutris;heroic;bouteilles;itch;"
#: data/hu.kramo.Cartridges.metainfo.xml.in:9 #: data/hu.kramo.Cartridges.metainfo.xml.in:9
@@ -49,7 +51,7 @@ msgid ""
"necessary. You can sort and hide games or download cover art from " "necessary. You can sort and hide games or download cover art from "
"SteamGridDB." "SteamGridDB."
msgstr "" msgstr ""
"Cartridges est un lanceur de jeux simple pour tous vos jeux. Il prend en " "Cartouches est un lanceur de jeux simple pour tous vos jeux. Il prend en "
"charge limportation des jeux depuis Steam, Lutris, Heroic et dautres " "charge limportation des jeux depuis Steam, Lutris, Heroic et dautres "
"encore, sans nécessiter de connexion. Vous pouvez trier et masquer les jeux " "encore, sans nécessiter de connexion. Vous pouvez trier et masquer les jeux "
"ou télécharger la pochette depuis SteamGridDB." "ou télécharger la pochette depuis SteamGridDB."
@@ -67,7 +69,7 @@ msgid "Game Details"
msgstr "Détails du jeu" msgstr "Détails du jeu"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:239 #: src/details_window.py:241
msgid "Preferences" msgid "Preferences"
msgstr "Préférences" msgstr "Préférences"
@@ -150,7 +152,7 @@ msgstr "Afficher les préférences"
msgid "Shortcuts" msgid "Shortcuts"
msgstr "Raccourcis" msgstr "Raccourcis"
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo" msgid "Undo"
msgstr "Annuler" msgstr "Annuler"
@@ -178,7 +180,7 @@ msgstr "Afficher les jeux masqués"
msgid "Remove game" msgid "Remove game"
msgstr "Supprimer le jeu" msgstr "Supprimer le jeu"
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
msgid "Behavior" msgid "Behavior"
msgstr "Comportement" msgstr "Comportement"
@@ -230,9 +232,9 @@ msgid "Steam"
msgstr "Steam" msgstr "Steam"
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:243
msgid "Install Location" msgid "Install Location"
msgstr "Emplacement d'installation" msgstr "Emplacement d'installation"
@@ -265,54 +267,60 @@ msgid "Import GOG Games"
msgstr "Importer les jeux de GOG" msgstr "Importer les jeux de GOG"
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Amazon Games"
msgstr "Importer les jeux de Steam"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "Importer des jeux Sideloaded" msgstr "Importer des jeux Sideloaded"
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:197
msgid "Bottles" msgid "Bottles"
msgstr "Bottles" msgstr "Bottles"
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:211
msgid "itch" msgid "itch"
msgstr "itch" msgstr "itch"
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:225
msgid "Legendary" msgid "Legendary"
msgstr "Légendaire" msgstr "Légendaire"
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:239
msgid "Flatpak" msgid "Flatpak"
msgstr "Flatpak" msgstr "Flatpak"
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:252
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "Importer des lanceurs de jeux" msgstr "Importer des lanceurs de jeux"
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:265
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "SteamGridDB" msgstr "SteamGridDB"
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:269
msgid "Authentication" msgid "Authentication"
msgstr "Authentification" msgstr "Authentification"
#: data/gtk/preferences.blp:263 #: data/gtk/preferences.blp:272
msgid "API Key" msgid "API Key"
msgstr "Clé API" msgstr "Clé API"
#: data/gtk/preferences.blp:271 #: data/gtk/preferences.blp:280
msgid "Use SteamGridDB" msgid "Use SteamGridDB"
msgstr "Utiliser SteamGridDB" msgstr "Utiliser SteamGridDB"
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:281
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "Télécharger les images lors de lajout ou de limportation de jeux" msgstr "Télécharger les images lors de lajout ou de limportation de jeux"
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:290
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "Préférer à la place des images officielles" msgstr "Préférer à la place des images officielles"
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:299
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "Préférer les images animées" msgstr "Préférer les images animées"
@@ -398,10 +406,10 @@ msgstr "Raccourcis clavier"
#: data/gtk/window.blp:426 #: data/gtk/window.blp:426
msgid "About Cartridges" msgid "About Cartridges"
msgstr "À propos de Cartridges" msgstr "À propos de Cartouches"
#. 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "Irénée Thirion" msgstr "Irénée Thirion"
@@ -479,15 +487,15 @@ msgstr ""
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "Impossible dajouter le jeu" msgstr "Impossible dajouter le jeu"
#: src/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "Le titre du jeu ne peut pas être vide." msgstr "Le titre du jeu ne peut pas être vide."
#: src/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "Lexécutable ne peut pas être vide." msgstr "Lexécutable ne peut pas être vide."
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "Impossible dappliquer les préférences" msgstr "Impossible dappliquer les préférences"
@@ -509,45 +517,45 @@ msgstr "{} affiché"
msgid "{} removed" msgid "{} removed"
msgstr "{} retiré" msgstr "{} retiré"
#: src/preferences.py:111 #: src/preferences.py:112
msgid "All games removed" msgid "All games removed"
msgstr "Tous les jeux ont été supprimés" msgstr "Tous les jeux ont été supprimés"
#: src/preferences.py:159 #: src/preferences.py:160
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr ""
"Une clé API est requise pour utiliser SteamGridDB. Vous pouvez en générer " "Une clé API est requise pour utiliser SteamGridDB. Vous pouvez en générer "
"une {}ici{}." "une {}ici{}."
#: src/preferences.py:284 #: src/preferences.py:285
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "Installation introuvable" msgstr "Installation introuvable"
#: src/preferences.py:286 #: src/preferences.py:287
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "Sélectionnez un répertoire valide." msgstr "Sélectionnez un répertoire valide."
#: src/preferences.py:348 #: src/preferences.py:349
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "Répertoire invalide" msgstr "Répertoire invalide"
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/preferences.py:353
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "Sélectionnez le répertoire de cache de {}." msgstr "Sélectionnez le répertoire de cache de {}."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/preferences.py:356
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "Sélectionnez le répertoire de configuration de {}." msgstr "Sélectionnez le répertoire de configuration de {}."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/preferences.py:359
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "Sélectionnez le répertoire de données de {}." msgstr "Sélectionnez le répertoire de données de {}."
#: src/preferences.py:364 #: src/preferences.py:365
msgid "Set Location" msgid "Set Location"
msgstr "Définir lemplacement" msgstr "Définir lemplacement"

View File

@@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-07-05 14:36+0200\n" "POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-07-05 13:13+0000\n" "PO-Revision-Date: 2023-07-05 13:13+0000\n"
"Last-Translator: kramo <contact@kramo.hu>\n" "Last-Translator: kramo <contact@kramo.hu>\n"
"Language-Team: Hungarian <https://hosted.weblate.org/projects/cartridges/" "Language-Team: Hungarian <https://hosted.weblate.org/projects/cartridges/"
@@ -22,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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:170
msgid "Cartridges" msgid "Cartridges"
msgstr "Kazetták" msgstr "Kazetták"
@@ -36,7 +36,9 @@ msgid "Launch all your games"
msgstr "Indítsa el az összes játékát" msgstr "Indítsa el az összes játékát"
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" #, fuzzy
#| msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;"
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "játék;indító;steam;lutris;heroic;palackok;itch;" msgstr "játék;indító;steam;lutris;heroic;palackok;itch;"
#: data/hu.kramo.Cartridges.metainfo.xml.in:9 #: data/hu.kramo.Cartridges.metainfo.xml.in:9
@@ -63,7 +65,7 @@ msgid "Game Details"
msgstr "Játék Tulajdonságai" msgstr "Játék Tulajdonságai"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:239 #: src/details_window.py:241
msgid "Preferences" msgid "Preferences"
msgstr "Beállítások" msgstr "Beállítások"
@@ -146,7 +148,7 @@ msgstr "Beállítások megjelenítése"
msgid "Shortcuts" msgid "Shortcuts"
msgstr "Gyorsbillentyűk" msgstr "Gyorsbillentyűk"
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo" msgid "Undo"
msgstr "Visszavonás" msgstr "Visszavonás"
@@ -174,7 +176,7 @@ msgstr "Rejtett játékok megjelenítése"
msgid "Remove game" msgid "Remove game"
msgstr "Játék eltávolítása" msgstr "Játék eltávolítása"
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
msgid "Behavior" msgid "Behavior"
msgstr "Működés" msgstr "Működés"
@@ -223,9 +225,9 @@ msgid "Steam"
msgstr "Steam" msgstr "Steam"
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:243
msgid "Install Location" msgid "Install Location"
msgstr "Telepítés helye" msgstr "Telepítés helye"
@@ -258,54 +260,60 @@ msgid "Import GOG Games"
msgstr "GOG játékok importálása" msgstr "GOG játékok importálása"
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Amazon Games"
msgstr "Steam játékok importálása"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "Manuálisan hozzáadott játékok importálása" msgstr "Manuálisan hozzáadott játékok importálása"
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:197
msgid "Bottles" msgid "Bottles"
msgstr "Palackok" msgstr "Palackok"
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:211
msgid "itch" msgid "itch"
msgstr "itch" msgstr "itch"
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:225
msgid "Legendary" msgid "Legendary"
msgstr "Legendary" msgstr "Legendary"
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:239
msgid "Flatpak" msgid "Flatpak"
msgstr "Flatpak" msgstr "Flatpak"
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:252
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "Játékindítók importálása" msgstr "Játékindítók importálása"
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:265
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "SteamGridDB" msgstr "SteamGridDB"
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:269
msgid "Authentication" msgid "Authentication"
msgstr "Hitelesítés" msgstr "Hitelesítés"
#: data/gtk/preferences.blp:263 #: data/gtk/preferences.blp:272
msgid "API Key" msgid "API Key"
msgstr "API kulcs" msgstr "API kulcs"
#: data/gtk/preferences.blp:271 #: data/gtk/preferences.blp:280
msgid "Use SteamGridDB" msgid "Use SteamGridDB"
msgstr "SteamGridDB használata" msgstr "SteamGridDB használata"
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:281
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "Képek letöltése játékok hozzáadásakor és importálásakor" msgstr "Képek letöltése játékok hozzáadásakor és importálásakor"
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:290
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "SteamGridDB képek előnyben részesítése" msgstr "SteamGridDB képek előnyben részesítése"
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:299
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "Animált képek előnyben részesítése" msgstr "Animált képek előnyben részesítése"
@@ -394,7 +402,7 @@ msgid "About Cartridges"
msgstr "A Kazetták névjegye" msgstr "A Kazetták névjegye"
#. 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "kramo https://kramo.hu" msgstr "kramo https://kramo.hu"
@@ -471,15 +479,15 @@ msgstr ""
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "Nem lehet hozzáadni a játékot" msgstr "Nem lehet hozzáadni a játékot"
#: src/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "A cím nem lehet üres." msgstr "A cím nem lehet üres."
#: src/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "A program nem lehet üres." msgstr "A program nem lehet üres."
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "Nem lehet menteni a beállításokat" msgstr "Nem lehet menteni a beállításokat"
@@ -501,45 +509,45 @@ msgstr "{} elrejtése visszavonva"
msgid "{} removed" msgid "{} removed"
msgstr "{} eltávolítva" msgstr "{} eltávolítva"
#: src/preferences.py:111 #: src/preferences.py:112
msgid "All games removed" msgid "All games removed"
msgstr "Az összes játék eltávolítva" msgstr "Az összes játék eltávolítva"
#: src/preferences.py:159 #: src/preferences.py:160
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr ""
"Egy API kulcs szükséges a SteamGridDB használatához. {}Itt{} generálhat " "Egy API kulcs szükséges a SteamGridDB használatához. {}Itt{} generálhat "
"egyet." "egyet."
#: src/preferences.py:284 #: src/preferences.py:285
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "A telepítés nem található" msgstr "A telepítés nem található"
#: src/preferences.py:286 #: src/preferences.py:287
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "Válasszon ki egy érvényes mappát." msgstr "Válasszon ki egy érvényes mappát."
#: src/preferences.py:348 #: src/preferences.py:349
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "Érvénytelen mappa" msgstr "Érvénytelen mappa"
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/preferences.py:353
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "Válassza ki {} gyorsítótár mappáját." msgstr "Válassza ki {} gyorsítótár mappáját."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/preferences.py:356
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "Válassza ki {} konfigurációs mappáját." msgstr "Válassza ki {} konfigurációs mappáját."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/preferences.py:359
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "Válassza ki {} adatok mappáját." msgstr "Válassza ki {} adatok mappáját."
#: src/preferences.py:364 #: src/preferences.py:365
msgid "Set Location" msgid "Set Location"
msgstr "Mappa kiválasztása" msgstr "Mappa kiválasztása"

101
po/it.po
View File

@@ -4,13 +4,14 @@
# Alessandro Iepure <alessandro.iepure@gmail.com>, 2023. # Alessandro Iepure <alessandro.iepure@gmail.com>, 2023.
# albanobattistella <albano_battistella@hotmail.com>, 2023. # albanobattistella <albano_battistella@hotmail.com>, 2023.
# kramo <contact@kramo.hu>, 2023. # kramo <contact@kramo.hu>, 2023.
# Giasko <dibiame@hotmail.it>, 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-07-05 14:36+0200\n" "POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-07-01 15:10+0000\n" "PO-Revision-Date: 2023-07-21 12:16+0000\n"
"Last-Translator: albanobattistella <albano_battistella@hotmail.com>\n" "Last-Translator: Giasko <dibiame@hotmail.it>\n"
"Language-Team: Italian <https://hosted.weblate.org/projects/cartridges/" "Language-Team: Italian <https://hosted.weblate.org/projects/cartridges/"
"cartridges/it/>\n" "cartridges/it/>\n"
"Language: it\n" "Language: it\n"
@@ -22,7 +23,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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:170
msgid "Cartridges" msgid "Cartridges"
msgstr "Cartucce" msgstr "Cartucce"
@@ -36,7 +37,9 @@ msgid "Launch all your games"
msgstr "Avvia tutti i tuoi giochi" msgstr "Avvia tutti i tuoi giochi"
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" #, fuzzy
#| msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;"
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "gioco;launcher;steam;lutris;heroic;bottles;itch;" msgstr "gioco;launcher;steam;lutris;heroic;bottles;itch;"
#: data/hu.kramo.Cartridges.metainfo.xml.in:9 #: data/hu.kramo.Cartridges.metainfo.xml.in:9
@@ -64,7 +67,7 @@ msgid "Game Details"
msgstr "Dettagli del gioco" msgstr "Dettagli del gioco"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:239 #: src/details_window.py:241
msgid "Preferences" msgid "Preferences"
msgstr "Preferenze" msgstr "Preferenze"
@@ -87,7 +90,7 @@ msgstr "Titolo"
#: data/gtk/details-window.blp:102 #: data/gtk/details-window.blp:102
msgid "The title of the game" msgid "The title of the game"
msgstr "Titolo del gioco" msgstr "Il titolo del gioco"
#: data/gtk/details-window.blp:112 data/gtk/details-window.blp:117 #: data/gtk/details-window.blp:112 data/gtk/details-window.blp:117
msgid "Developer" msgid "Developer"
@@ -132,7 +135,7 @@ msgstr "Generale"
#: data/gtk/help-overlay.blp:14 #: data/gtk/help-overlay.blp:14
msgid "Quit" msgid "Quit"
msgstr "Chiudi" msgstr "Esci"
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:217 data/gtk/window.blp:257 #: data/gtk/help-overlay.blp:19 data/gtk/window.blp:217 data/gtk/window.blp:257
#: data/gtk/window.blp:323 #: data/gtk/window.blp:323
@@ -147,7 +150,7 @@ msgstr "Mostra preferenze"
msgid "Shortcuts" msgid "Shortcuts"
msgstr "Scorciatoie da tastiera" msgstr "Scorciatoie da tastiera"
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo" msgid "Undo"
msgstr "Annulla" msgstr "Annulla"
@@ -175,7 +178,7 @@ msgstr "Mostra giochi nascosti"
msgid "Remove game" msgid "Remove game"
msgstr "Rimuovi gioco" msgstr "Rimuovi gioco"
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
msgid "Behavior" msgid "Behavior"
msgstr "Comportamento" msgstr "Comportamento"
@@ -225,9 +228,9 @@ msgid "Steam"
msgstr "Steam" msgstr "Steam"
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:243
msgid "Install Location" msgid "Install Location"
msgstr "Posizione di installazione" msgstr "Posizione di installazione"
@@ -260,54 +263,60 @@ msgid "Import GOG Games"
msgstr "Importa giochi da GOG" msgstr "Importa giochi da GOG"
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Amazon Games"
msgstr "Importa giochi da Steam"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "Importa giochi da aggiunti manualmente" msgstr "Importa giochi da aggiunti manualmente"
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:197
msgid "Bottles" msgid "Bottles"
msgstr "Bottles" msgstr "Bottles"
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:211
msgid "itch" msgid "itch"
msgstr "itch" msgstr "itch"
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:225
msgid "Legendary" msgid "Legendary"
msgstr "Leggendari" msgstr "Legendary"
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:239
msgid "Flatpak" msgid "Flatpak"
msgstr "Flatpak" msgstr "Flatpak"
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:252
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "Importa lanciatori di giochi" msgstr "Importa launcher di giochi"
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:265
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "SteamGridDB" msgstr "SteamGridDB"
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:269
msgid "Authentication" msgid "Authentication"
msgstr "Autenticazione" msgstr "Autenticazione"
#: data/gtk/preferences.blp:263 #: data/gtk/preferences.blp:272
msgid "API Key" msgid "API Key"
msgstr "Chiave API" msgstr "Chiave API"
#: data/gtk/preferences.blp:271 #: data/gtk/preferences.blp:280
msgid "Use SteamGridDB" msgid "Use SteamGridDB"
msgstr "Usa SteamGridDB" msgstr "Usa SteamGridDB"
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:281
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "Scarica immagini durante l'aggiunta o l'import di giochi" msgstr "Scarica immagini durante l'aggiunta o l'import di giochi"
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:290
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "Preferisci alle immagini ufficiali" msgstr "Preferisci alle immagini ufficiali"
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:299
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "Preferisci immagini animate" msgstr "Preferisci immagini animate"
@@ -396,7 +405,7 @@ msgid "About Cartridges"
msgstr "Informazioni su Cartucce" msgstr "Informazioni su Cartucce"
#. 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "Alessandro Iepure https://ale.iepure.me" msgstr "Alessandro Iepure https://ale.iepure.me"
@@ -472,15 +481,15 @@ msgstr ""
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "Impossibile aggiungere il gioco" msgstr "Impossibile aggiungere il gioco"
#: src/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "Il titolo del gioco non può essere vuoto." msgstr "Il titolo del gioco non può essere vuoto."
#: src/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "L'eseguibile non può essere vuoto." msgstr "L'eseguibile non può essere vuoto."
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "Impossibile applicare le preferenze" msgstr "Impossibile applicare le preferenze"
@@ -502,49 +511,45 @@ msgstr "{} visibile"
msgid "{} removed" msgid "{} removed"
msgstr "{} rimosso" msgstr "{} rimosso"
#: src/preferences.py:111 #: src/preferences.py:112
msgid "All games removed" msgid "All games removed"
msgstr "Tutti i giochi sono stati rimossi" msgstr "Tutti i giochi sono stati rimossi"
#: src/preferences.py:159 #: src/preferences.py:160
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr ""
"Per utilizzare SteamGridDB è necessaria una chiave API. Puoi generarne una {}" "Per utilizzare SteamGridDB è necessaria una chiave API. Puoi generarne una {}"
"qui{}." "qui{}."
#: src/preferences.py:284 #: src/preferences.py:285
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "Installazione non trovata" msgstr "Installazione non trovata"
#: src/preferences.py:286 #: src/preferences.py:287
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "Seleziona una directory valida." msgstr "Seleziona una directory valida."
#: src/preferences.py:348 #: src/preferences.py:349
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "Directory non valida" msgstr "Directory non valida"
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/preferences.py:353
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "Seleziona la directory della cache {}." msgstr "Seleziona la directory della cache per {}."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/preferences.py:356
#, fuzzy
#| msgid "Select the {} installation directory."
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "Selezionare la directory di installazione {}." msgstr "Selezionare la directory di configurazione per {}."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/preferences.py:359
#, fuzzy
#| msgid "Select the {} cache directory."
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "Seleziona la directory della cache {}." msgstr "Seleziona la directory dati per {}."
#: src/preferences.py:364 #: src/preferences.py:365
msgid "Set Location" msgid "Set Location"
msgstr "Imposta percorso" msgstr "Imposta percorso"
@@ -554,7 +559,7 @@ msgstr "Chiudi"
#: src/store/managers/sgdb_manager.py:47 #: src/store/managers/sgdb_manager.py:47
msgid "Couldn't Authenticate SteamGridDB" msgid "Couldn't Authenticate SteamGridDB"
msgstr "Impossibile eseguire l'autenticazione su SteamGridDB" msgstr "Impossibile autenticare SteamGridDB"
#: src/store/managers/sgdb_manager.py:48 #: src/store/managers/sgdb_manager.py:48
msgid "Verify your API key in preferences" msgid "Verify your API key in preferences"

View File

@@ -6,7 +6,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-07-05 14:36+0200\n" "POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-03-28 22:23+0000\n" "PO-Revision-Date: 2023-03-28 22:23+0000\n"
"Last-Translator: MJKim <kmj10727@gmail.com>\n" "Last-Translator: MJKim <kmj10727@gmail.com>\n"
"Language-Team: Korean <https://hosted.weblate.org/projects/cartridges/" "Language-Team: Korean <https://hosted.weblate.org/projects/cartridges/"
@@ -20,7 +20,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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:170
msgid "Cartridges" msgid "Cartridges"
msgstr "카트리지" msgstr "카트리지"
@@ -34,7 +34,7 @@ msgid "Launch all your games"
msgstr "모든 게임을 실행합니다" msgstr "모든 게임을 실행합니다"
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "" msgstr ""
#: data/hu.kramo.Cartridges.metainfo.xml.in:9 #: data/hu.kramo.Cartridges.metainfo.xml.in:9
@@ -66,7 +66,7 @@ msgid "Game Details"
msgstr "" msgstr ""
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:239 #: src/details_window.py:241
msgid "Preferences" msgid "Preferences"
msgstr "" msgstr ""
@@ -149,7 +149,7 @@ msgstr ""
msgid "Shortcuts" msgid "Shortcuts"
msgstr "" msgstr ""
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo" msgid "Undo"
msgstr "" msgstr ""
@@ -183,7 +183,7 @@ msgstr ""
msgid "Remove game" msgid "Remove game"
msgstr "게임이 없습니다" msgstr "게임이 없습니다"
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
msgid "Behavior" msgid "Behavior"
msgstr "" msgstr ""
@@ -232,9 +232,9 @@ msgid "Steam"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:243
msgid "Install Location" msgid "Install Location"
msgstr "" msgstr ""
@@ -271,56 +271,62 @@ msgid "Import GOG Games"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "No Games"
msgid "Import Amazon Games"
msgstr "게임이 없습니다"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:197
msgid "Bottles" msgid "Bottles"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:211
msgid "itch" msgid "itch"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:225
msgid "Legendary" msgid "Legendary"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:239
msgid "Flatpak" msgid "Flatpak"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:252
#, fuzzy #, fuzzy
#| msgid "Game Launcher" #| msgid "Game Launcher"
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "게임 런처" msgstr "게임 런처"
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:265
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:269
msgid "Authentication" msgid "Authentication"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:263 #: data/gtk/preferences.blp:272
msgid "API Key" msgid "API Key"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:271 #: data/gtk/preferences.blp:280
msgid "Use SteamGridDB" msgid "Use SteamGridDB"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:281
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:290
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:299
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "" msgstr ""
@@ -409,7 +415,7 @@ msgid "About Cartridges"
msgstr "카트리지 정보" 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "" msgstr ""
@@ -476,15 +482,15 @@ msgstr ""
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "" msgstr ""
#: src/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "" msgstr ""
#: src/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "" msgstr ""
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "" msgstr ""
@@ -506,43 +512,43 @@ msgstr ""
msgid "{} removed" msgid "{} removed"
msgstr "" msgstr ""
#: src/preferences.py:111 #: src/preferences.py:112
msgid "All games removed" msgid "All games removed"
msgstr "" msgstr ""
#: src/preferences.py:159 #: src/preferences.py:160
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr ""
#: src/preferences.py:284 #: src/preferences.py:285
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "" msgstr ""
#: src/preferences.py:286 #: src/preferences.py:287
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "" msgstr ""
#: src/preferences.py:348 #: src/preferences.py:349
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "" msgstr ""
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/preferences.py:353
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "" msgstr ""
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/preferences.py:356
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "" msgstr ""
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/preferences.py:359
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "" msgstr ""
#: src/preferences.py:364 #: src/preferences.py:365
msgid "Set Location" msgid "Set Location"
msgstr "" msgstr ""

View File

@@ -7,7 +7,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-07-05 14:36+0200\n" "POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-04-06 08:09+0000\n" "PO-Revision-Date: 2023-04-06 08:09+0000\n"
"Last-Translator: Allan Nordhøy <epost@anotheragency.no>\n" "Last-Translator: Allan Nordhøy <epost@anotheragency.no>\n"
"Language-Team: Norwegian Bokmål <https://hosted.weblate.org/projects/" "Language-Team: Norwegian Bokmål <https://hosted.weblate.org/projects/"
@@ -21,7 +21,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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:170
msgid "Cartridges" msgid "Cartridges"
msgstr "Cartridges" msgstr "Cartridges"
@@ -35,7 +35,7 @@ msgid "Launch all your games"
msgstr "Start alle spillene dine" msgstr "Start alle spillene dine"
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "" msgstr ""
#: data/hu.kramo.Cartridges.metainfo.xml.in:9 #: data/hu.kramo.Cartridges.metainfo.xml.in:9
@@ -63,7 +63,7 @@ msgid "Game Details"
msgstr "Spilldetaljer" msgstr "Spilldetaljer"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:239 #: src/details_window.py:241
msgid "Preferences" msgid "Preferences"
msgstr "Innstillinger" msgstr "Innstillinger"
@@ -147,7 +147,7 @@ msgstr "Vis innstillinger"
msgid "Shortcuts" msgid "Shortcuts"
msgstr "Snarveier" msgstr "Snarveier"
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo" msgid "Undo"
msgstr "Angre" msgstr "Angre"
@@ -177,7 +177,7 @@ msgstr "Vis skjulte spill"
msgid "Remove game" msgid "Remove game"
msgstr "Fjern spill" msgstr "Fjern spill"
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
#, fuzzy #, fuzzy
msgid "Behavior" msgid "Behavior"
msgstr "Adferd" msgstr "Adferd"
@@ -227,9 +227,9 @@ msgid "Steam"
msgstr "Steam" msgstr "Steam"
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:243
#, fuzzy #, fuzzy
#| msgid "Heroic Install Location" #| msgid "Heroic Install Location"
msgid "Install Location" msgid "Install Location"
@@ -270,61 +270,67 @@ msgid "Import GOG Games"
msgstr "Importer GOG-spill" msgstr "Importer GOG-spill"
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "Import Sideloaded Games"
msgid "Import Amazon Games"
msgstr "Importer sideinnlastede spill"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "Importer sideinnlastede spill" msgstr "Importer sideinnlastede spill"
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:197
msgid "Bottles" msgid "Bottles"
msgstr "Bottles" msgstr "Bottles"
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:211
#, fuzzy #, fuzzy
msgid "itch" msgid "itch"
msgstr "itch" msgstr "itch"
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:225
msgid "Legendary" msgid "Legendary"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:239
msgid "Flatpak" msgid "Flatpak"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:252
#, fuzzy #, fuzzy
#| msgid "Game Launcher" #| msgid "Game Launcher"
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "Spillutvalgstarter" msgstr "Spillutvalgstarter"
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:265
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "SteamGridDB" msgstr "SteamGridDB"
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:269
msgid "Authentication" msgid "Authentication"
msgstr "Identitetsbekreftelse" msgstr "Identitetsbekreftelse"
#: data/gtk/preferences.blp:263 #: data/gtk/preferences.blp:272
#, fuzzy #, fuzzy
msgid "API Key" msgid "API Key"
msgstr "API-nøkkel" msgstr "API-nøkkel"
#: data/gtk/preferences.blp:271 #: data/gtk/preferences.blp:280
msgid "Use SteamGridDB" msgid "Use SteamGridDB"
msgstr "Bruk SteamGridDB" msgstr "Bruk SteamGridDB"
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:281
#, fuzzy #, fuzzy
#| msgid "Directory to use when importing games" #| msgid "Directory to use when importing games"
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "Mappe å bruke ved import av spill" msgstr "Mappe å bruke ved import av spill"
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:290
#, fuzzy #, fuzzy
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "Foretrekk over offisielle bilder" msgstr "Foretrekk over offisielle bilder"
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:299
#, fuzzy #, fuzzy
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "Foretrekk over offisielle bilder" msgstr "Foretrekk over offisielle bilder"
@@ -414,7 +420,7 @@ msgid "About Cartridges"
msgstr "Om" msgstr "Om"
#. 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "Allan Nordhøy, <epost@anotheragency.no>" msgstr "Allan Nordhøy, <epost@anotheragency.no>"
@@ -491,15 +497,15 @@ msgstr ""
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "Kunne ikke legge til spill" msgstr "Kunne ikke legge til spill"
#: src/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "Spillnavnet kan ikke være tomt." msgstr "Spillnavnet kan ikke være tomt."
#: src/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "Kjørbar fil må angis." msgstr "Kjørbar fil må angis."
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "Kunne ikke ta i bruk endringer" msgstr "Kunne ikke ta i bruk endringer"
@@ -523,54 +529,54 @@ msgstr "{} synlig"
msgid "{} removed" msgid "{} removed"
msgstr "{} fjernet" msgstr "{} fjernet"
#: src/preferences.py:111 #: src/preferences.py:112
msgid "All games removed" msgid "All games removed"
msgstr "Alle spill fjernet" msgstr "Alle spill fjernet"
#: src/preferences.py:159 #: src/preferences.py:160
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr ""
"En API-nøkkel kreves for å bruke SteamGridDB. Du kan generere en {}her{}." "En API-nøkkel kreves for å bruke SteamGridDB. Du kan generere en {}her{}."
#: src/preferences.py:284 #: src/preferences.py:285
#, fuzzy #, fuzzy
#| msgid "Installation Not Found" #| msgid "Installation Not Found"
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "Fant ikke installasjonen" msgstr "Fant ikke installasjonen"
#: src/preferences.py:286 #: src/preferences.py:287
#, fuzzy #, fuzzy
#| msgid "Select the {} data directory." #| msgid "Select the {} data directory."
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "Velg {}-datamappen." msgstr "Velg {}-datamappen."
#: src/preferences.py:348 #: src/preferences.py:349
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "" msgstr ""
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/preferences.py:353
#, fuzzy #, fuzzy
#| msgid "Select the {} data directory." #| msgid "Select the {} data directory."
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "Velg {}-datamappen." msgstr "Velg {}-datamappen."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/preferences.py:356
#, fuzzy #, fuzzy
#| msgid "Select the {} configuration directory." #| msgid "Select the {} configuration directory."
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "Velg {}-oppsettsmappen." msgstr "Velg {}-oppsettsmappen."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/preferences.py:359
#, fuzzy #, fuzzy
#| msgid "Select the {} data directory." #| msgid "Select the {} data directory."
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "Velg {}-datamappen." msgstr "Velg {}-datamappen."
#: src/preferences.py:364 #: src/preferences.py:365
#, fuzzy #, fuzzy
#| msgid "Set Steam Location" #| msgid "Set Steam Location"
msgid "Set Location" msgid "Set Location"

102
po/nl.po
View File

@@ -7,8 +7,8 @@ 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-07-05 14:36+0200\n" "POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-07-04 17:29+0000\n" "PO-Revision-Date: 2023-07-08 14:52+0000\n"
"Last-Translator: Philip Goto <philip.goto@gmail.com>\n" "Last-Translator: Philip Goto <philip.goto@gmail.com>\n"
"Language-Team: Dutch <https://hosted.weblate.org/projects/cartridges/" "Language-Team: Dutch <https://hosted.weblate.org/projects/cartridges/"
"cartridges/nl/>\n" "cartridges/nl/>\n"
@@ -21,7 +21,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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:170
msgid "Cartridges" msgid "Cartridges"
msgstr "Cartridges" msgstr "Cartridges"
@@ -35,7 +35,9 @@ msgid "Launch all your games"
msgstr "Start al uw games op" msgstr "Start al uw games op"
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" #, fuzzy
#| msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;"
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "" msgstr ""
"gaming;launcher;steam;lutris;heroic;bottles;itch;spelen;games;starten;" "gaming;launcher;steam;lutris;heroic;bottles;itch;spelen;games;starten;"
"opstarten;" "opstarten;"
@@ -65,7 +67,7 @@ msgid "Game Details"
msgstr "Game-details" msgstr "Game-details"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:239 #: src/details_window.py:241
msgid "Preferences" msgid "Preferences"
msgstr "Voorkeuren" msgstr "Voorkeuren"
@@ -134,7 +136,7 @@ msgstr "Algemeen"
#: data/gtk/help-overlay.blp:14 #: data/gtk/help-overlay.blp:14
msgid "Quit" msgid "Quit"
msgstr "Sluiten" msgstr "Afsluiten"
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:217 data/gtk/window.blp:257 #: data/gtk/help-overlay.blp:19 data/gtk/window.blp:217 data/gtk/window.blp:257
#: data/gtk/window.blp:323 #: data/gtk/window.blp:323
@@ -149,7 +151,7 @@ msgstr "Voorkeuren tonen"
msgid "Shortcuts" msgid "Shortcuts"
msgstr "Sneltoetsen" msgstr "Sneltoetsen"
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo" msgid "Undo"
msgstr "Ongedaan maken" msgstr "Ongedaan maken"
@@ -177,7 +179,7 @@ msgstr "Verborgen games tonen"
msgid "Remove game" msgid "Remove game"
msgstr "Game verwijderen" msgstr "Game verwijderen"
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
msgid "Behavior" msgid "Behavior"
msgstr "Gedrag" msgstr "Gedrag"
@@ -227,9 +229,9 @@ msgid "Steam"
msgstr "Steam" msgstr "Steam"
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:243
msgid "Install Location" msgid "Install Location"
msgstr "Installatielocatie" msgstr "Installatielocatie"
@@ -262,54 +264,60 @@ msgid "Import GOG Games"
msgstr "GOG-games importeren" msgstr "GOG-games importeren"
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Amazon Games"
msgstr "Steam-games importeren"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "Gesideloade games importeren" msgstr "Gesideloade games importeren"
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:197
msgid "Bottles" msgid "Bottles"
msgstr "Bottles" msgstr "Bottles"
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:211
msgid "itch" msgid "itch"
msgstr "itch" msgstr "itch"
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:225
msgid "Legendary" msgid "Legendary"
msgstr "Legendary" msgstr "Legendary"
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:239
msgid "Flatpak" msgid "Flatpak"
msgstr "Flatpak" msgstr "Flatpak"
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:252
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "Game-launchers importeren" msgstr "Game-launchers importeren"
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:265
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "SteamGridDB" msgstr "SteamGridDB"
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:269
msgid "Authentication" msgid "Authentication"
msgstr "Authenticatie" msgstr "Authenticatie"
#: data/gtk/preferences.blp:263 #: data/gtk/preferences.blp:272
msgid "API Key" msgid "API Key"
msgstr "API-sleutel" msgstr "API-sleutel"
#: data/gtk/preferences.blp:271 #: data/gtk/preferences.blp:280
msgid "Use SteamGridDB" msgid "Use SteamGridDB"
msgstr "SteamGridDB gebruiken" msgstr "SteamGridDB gebruiken"
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:281
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "Afbeeldingen downloaden bij het toevoegen of importeren van games" msgstr "Afbeeldingen downloaden bij het toevoegen of importeren van games"
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:290
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "Voorkeur geven boven officiële afbeeldingen" msgstr "Voorkeur geven boven officiële afbeeldingen"
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:299
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "Voorkeur geven aan geanimeerde afbeeldingen" msgstr "Voorkeur geven aan geanimeerde afbeeldingen"
@@ -319,7 +327,7 @@ msgstr "Geen games gevonden"
#: data/gtk/window.blp:7 data/gtk/window.blp:15 #: data/gtk/window.blp:7 data/gtk/window.blp:15
msgid "Try a different search." msgid "Try a different search."
msgstr "Probeer een andere zoekopdracht" msgstr "Probeer een andere zoekopdracht."
#: data/gtk/window.blp:21 #: data/gtk/window.blp:21
msgid "No Games" msgid "No Games"
@@ -327,7 +335,7 @@ msgstr "Geen games"
#: data/gtk/window.blp:22 #: data/gtk/window.blp:22
msgid "Use the + button to add games." msgid "Use the + button to add games."
msgstr "Gebruik de plusknop om games toe te voegen" msgstr "Gebruik de plusknop om games toe te voegen."
#: data/gtk/window.blp:40 #: data/gtk/window.blp:40
msgid "No Hidden Games" msgid "No Hidden Games"
@@ -335,7 +343,7 @@ msgstr "Geen verborgen games"
#: data/gtk/window.blp:41 #: data/gtk/window.blp:41
msgid "Games you hide will appear here." msgid "Games you hide will appear here."
msgstr "Games die u verbergt zullen hier verschijnen" msgstr "Games die u verbergt zullen hier verschijnen."
#: data/gtk/window.blp:64 data/gtk/window.blp:304 #: data/gtk/window.blp:64 data/gtk/window.blp:304
msgid "Back" msgid "Back"
@@ -398,7 +406,7 @@ msgid "About Cartridges"
msgstr "Over Cartridges" msgstr "Over Cartridges"
#. 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "Philip Goto https://flipflop97.github.io/" msgstr "Philip Goto https://flipflop97.github.io/"
@@ -476,15 +484,15 @@ msgstr ""
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "Kon game niet toevoegen" msgstr "Kon game niet toevoegen"
#: src/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "Game-titel mag niet leeg zijn" msgstr "Game-titel mag niet leeg zijn."
#: src/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "Programmabestand mag niet leeg zijn" msgstr "Programmabestand mag niet leeg zijn."
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "Kon voorkeuren niet toepassen" msgstr "Kon voorkeuren niet toepassen"
@@ -506,49 +514,45 @@ msgstr "{} hersteld"
msgid "{} removed" msgid "{} removed"
msgstr "{} verwijderd" msgstr "{} verwijderd"
#: src/preferences.py:111 #: src/preferences.py:112
msgid "All games removed" msgid "All games removed"
msgstr "Alle games verwijderd" msgstr "Alle games verwijderd"
#: src/preferences.py:159 #: src/preferences.py:160
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr ""
"Een API-sleutel is vereist om SteamGridDB te gebruiken. U kunt er {}hier{} " "Een API-sleutel is vereist om SteamGridDB te gebruiken. U kunt er {}hier{} "
"één genereren." "één genereren."
#: src/preferences.py:284 #: src/preferences.py:285
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "Installatie niet gevonden" msgstr "Installatie niet gevonden"
#: src/preferences.py:286 #: src/preferences.py:287
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "Selecteer een geldige map" msgstr "Selecteer een geldige map."
#: src/preferences.py:348 #: src/preferences.py:349
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "Ongeldige map" msgstr "Ongeldige map"
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/preferences.py:353
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "Selecteer de cache-map van {}" msgstr "Selecteer de cache-map van {}."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/preferences.py:356
#, fuzzy
#| msgid "Select the {} installation directory."
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "Selecteer de installatiemap van {}" msgstr "Selecteer de configuratiemap van {}."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/preferences.py:359
#, fuzzy
#| msgid "Select the {} cache directory."
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "Selecteer de cache-map van {}" msgstr "Selecteer de gegevensmap van {}."
#: src/preferences.py:364 #: src/preferences.py:365
msgid "Set Location" msgid "Set Location"
msgstr "Locatie instellen" msgstr "Locatie instellen"

164
po/pl.po
View File

@@ -3,13 +3,15 @@
# This file is distributed under the same license as the Cartridges package. # This file is distributed under the same license as the Cartridges package.
# Artur Wróblewski <krypalkora1984@gmail.com>, 2023. # Artur Wróblewski <krypalkora1984@gmail.com>, 2023.
# Kshyso <Kshysio@protonmail.com>, 2023. # Kshyso <Kshysio@protonmail.com>, 2023.
# Eryk Michalak <gnu.ewm@protonmail.com>, 2023.
# Michaks <fexwex3@gmail.com>, 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-07-05 14:36+0200\n" "POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-06-10 16:48+0000\n" "PO-Revision-Date: 2023-07-24 13:05+0000\n"
"Last-Translator: Kshyso <Kshysio@protonmail.com>\n" "Last-Translator: Michaks <fexwex3@gmail.com>\n"
"Language-Team: Polish <https://hosted.weblate.org/projects/cartridges/" "Language-Team: Polish <https://hosted.weblate.org/projects/cartridges/"
"cartridges/pl/>\n" "cartridges/pl/>\n"
"Language: pl\n" "Language: pl\n"
@@ -18,13 +20,13 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
"|| n%100>=20) ? 1 : 2;\n" "|| n%100>=20) ? 1 : 2;\n"
"X-Generator: Weblate 4.18-dev\n" "X-Generator: Weblate 5.0-dev\n"
#: 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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:170
msgid "Cartridges" msgid "Cartridges"
msgstr "Cartridges" msgstr "Kartridże"
#: data/hu.kramo.Cartridges.desktop.in:4 #: data/hu.kramo.Cartridges.desktop.in:4
msgid "Game Launcher" msgid "Game Launcher"
@@ -36,8 +38,10 @@ msgid "Launch all your games"
msgstr "Uruchom wszystkie swoje gry" msgstr "Uruchom wszystkie swoje gry"
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" #, fuzzy
msgstr "" #| msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;"
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "gry;gaming;launcher;steam;lutris;heroic;bottles;itch;"
#: data/hu.kramo.Cartridges.metainfo.xml.in:9 #: data/hu.kramo.Cartridges.metainfo.xml.in:9
msgid "" msgid ""
@@ -56,16 +60,16 @@ msgstr "Biblioteka"
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 src/details_window.py:67 #: data/hu.kramo.Cartridges.metainfo.xml.in:34 src/details_window.py:67
msgid "Edit Game Details" msgid "Edit Game Details"
msgstr "Edytuj detale gry" msgstr "Edycja szczegółów gry"
#: data/hu.kramo.Cartridges.metainfo.xml.in:38 data/gtk/window.blp:71 #: data/hu.kramo.Cartridges.metainfo.xml.in:38 data/gtk/window.blp:71
msgid "Game Details" msgid "Game Details"
msgstr "Detale gry" msgstr "Szczegóły gry"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:239 #: src/details_window.py:241
msgid "Preferences" msgid "Preferences"
msgstr "Ustawienia" msgstr "Preferencje"
#: data/gtk/details-window.blp:25 #: data/gtk/details-window.blp:25
msgid "Cancel" msgid "Cancel"
@@ -73,11 +77,11 @@ msgstr "Anuluj"
#: data/gtk/details-window.blp:57 #: data/gtk/details-window.blp:57
msgid "New Cover" msgid "New Cover"
msgstr "Nowa Okładka" msgstr "Nowa okładka"
#: data/gtk/details-window.blp:75 #: data/gtk/details-window.blp:75
msgid "Delete Cover" msgid "Delete Cover"
msgstr "Usuń Okładkę" msgstr "Usuń osłonę"
#: data/gtk/details-window.blp:101 data/gtk/details-window.blp:106 #: data/gtk/details-window.blp:101 data/gtk/details-window.blp:106
#: data/gtk/game.blp:80 #: data/gtk/game.blp:80
@@ -86,7 +90,7 @@ msgstr "Tytuł"
#: data/gtk/details-window.blp:102 #: data/gtk/details-window.blp:102
msgid "The title of the game" msgid "The title of the game"
msgstr "Tytuł gry" msgstr "Tytuł Gry"
#: data/gtk/details-window.blp:112 data/gtk/details-window.blp:117 #: data/gtk/details-window.blp:112 data/gtk/details-window.blp:117
msgid "Developer" msgid "Developer"
@@ -107,7 +111,7 @@ msgstr ""
#: data/gtk/details-window.blp:130 #: data/gtk/details-window.blp:130
msgid "More Info" msgid "More Info"
msgstr "" msgstr "Więcej informacji"
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:195 #: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:195
msgid "Edit" msgid "Edit"
@@ -147,9 +151,9 @@ msgstr "Pokaż preferencje"
msgid "Shortcuts" msgid "Shortcuts"
msgstr "Skróty" msgstr "Skróty"
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo" msgid "Undo"
msgstr "Cofnij" msgstr "Wróć"
#: data/gtk/help-overlay.blp:39 #: data/gtk/help-overlay.blp:39
msgid "Open menu" msgid "Open menu"
@@ -161,7 +165,7 @@ msgstr "Gry"
#: data/gtk/help-overlay.blp:48 #: data/gtk/help-overlay.blp:48
msgid "Add new game" msgid "Add new game"
msgstr "Dodaj nową grę" msgstr "Dodaj nową gre"
#: data/gtk/help-overlay.blp:53 #: data/gtk/help-overlay.blp:53
msgid "Import games" msgid "Import games"
@@ -175,7 +179,7 @@ msgstr "Pokaż ukryte gry"
msgid "Remove game" msgid "Remove game"
msgstr "Usuń grę" msgstr "Usuń grę"
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
msgid "Behavior" msgid "Behavior"
msgstr "Zachowanie" msgstr "Zachowanie"
@@ -185,7 +189,7 @@ msgstr "Wyjdź po uruchomieniu gry"
#: data/gtk/preferences.blp:25 #: data/gtk/preferences.blp:25
msgid "Cover Image Launches Game" msgid "Cover Image Launches Game"
msgstr "Obraz okładki startera gier" msgstr "Obraz okładki uruchamia grę"
#: data/gtk/preferences.blp:26 #: data/gtk/preferences.blp:26
msgid "Swaps the behavior of the cover image and the play button" msgid "Swaps the behavior of the cover image and the play button"
@@ -224,33 +228,27 @@ msgid "Steam"
msgstr "Steam" msgstr "Steam"
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:243
#, fuzzy
#| msgid "itch Install Location"
msgid "Install Location" msgid "Install Location"
msgstr "Położenie instalacji itch" msgstr "Lokalizacja instalacji"
#: data/gtk/preferences.blp:106 #: data/gtk/preferences.blp:106
msgid "Lutris" msgid "Lutris"
msgstr "Lutris" msgstr "Lutris"
#: data/gtk/preferences.blp:119 #: data/gtk/preferences.blp:119
#, fuzzy
#| msgid "Lutris Cache Location"
msgid "Cache Location" msgid "Cache Location"
msgstr "Lokalizacja Lutris Cache" msgstr "Lokalizacja pamięci podręcznej"
#: data/gtk/preferences.blp:128 #: data/gtk/preferences.blp:128
msgid "Import Steam Games" msgid "Import Steam Games"
msgstr "Importuj gry Steam" msgstr "Importuj gry Steam"
#: data/gtk/preferences.blp:137 #: data/gtk/preferences.blp:137
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Flatpak Games" msgid "Import Flatpak Games"
msgstr "Importuj gry Steam" msgstr "Importuj gry Flatpak"
#: data/gtk/preferences.blp:147 #: data/gtk/preferences.blp:147
msgid "Heroic" msgid "Heroic"
@@ -265,56 +263,60 @@ msgid "Import GOG Games"
msgstr "Importuj gry z GOG" msgstr "Importuj gry z GOG"
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Amazon Games"
msgstr "Importuj gry Steam"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "Importuj gry w wersji Sideloaded" msgstr "Importuj gry w wersji Sideloaded"
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:197
msgid "Bottles" msgid "Bottles"
msgstr "Butelki" msgstr "Butelki"
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:211
msgid "itch" msgid "itch"
msgstr "itch" msgstr "itch"
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:225
msgid "Legendary" msgid "Legendary"
msgstr "" msgstr "Legendarne"
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:239
msgid "Flatpak" msgid "Flatpak"
msgstr "" msgstr "Flatpak"
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:252
#, fuzzy
#| msgid "Game Launcher"
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "Launcher Gier" msgstr "Importuj programy uruchamiające gry"
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:265
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "SteamGridDB" msgstr "SteamGridDB"
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:269
msgid "Authentication" msgid "Authentication"
msgstr "Uwierzytelnianie" msgstr "Uwierzytelnianie"
#: data/gtk/preferences.blp:263 #: data/gtk/preferences.blp:272
msgid "API Key" msgid "API Key"
msgstr "Klucz API" msgstr "Klucz API"
#: data/gtk/preferences.blp:271 #: data/gtk/preferences.blp:280
msgid "Use SteamGridDB" msgid "Use SteamGridDB"
msgstr "Użyj SteamGridDB" msgstr "Użyj SteamGridDB"
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:281
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "Pobieranie obrazów podczas dodawania lub importowania gier" msgstr "Pobieranie obrazów podczas dodawania lub importowania gier"
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:290
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "Preferuj ponad Oficjalne zdjęcia" msgstr "Preferuj ponad Oficjalne zdjęcia"
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:299
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "Preferuj animowane obrazy" msgstr "Preferuj animowane obrazy"
@@ -344,7 +346,7 @@ msgstr "Gry, które ukryjesz, pojawią się tutaj."
#: data/gtk/window.blp:64 data/gtk/window.blp:304 #: data/gtk/window.blp:64 data/gtk/window.blp:304
msgid "Back" msgid "Back"
msgstr "Cofnij" msgstr "Powrót"
#: data/gtk/window.blp:121 #: data/gtk/window.blp:121
msgid "Game Title" msgid "Game Title"
@@ -352,7 +354,7 @@ msgstr "Tytuł gry"
#: data/gtk/window.blp:176 #: data/gtk/window.blp:176
msgid "Play" msgid "Play"
msgstr "Uruchom" msgstr "Graj"
#: data/gtk/window.blp:243 data/gtk/window.blp:435 #: data/gtk/window.blp:243 data/gtk/window.blp:435
msgid "Add Game" msgid "Add Game"
@@ -400,10 +402,10 @@ msgstr "Skróty klawiaturowe"
#: data/gtk/window.blp:426 #: data/gtk/window.blp:426
msgid "About Cartridges" msgid "About Cartridges"
msgstr "O Cartridges" msgstr "O Kartridżach"
#. 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "kredyty tłumacza" msgstr "kredyty tłumacza"
@@ -427,7 +429,7 @@ msgstr "Zastosuj"
#: src/details_window.py:78 #: src/details_window.py:78
msgid "Add New Game" msgid "Add New Game"
msgstr "Dodaj nową grę" msgstr "Dodaj nową Grę"
#: src/details_window.py:79 #: src/details_window.py:79
msgid "Confirm" msgid "Confirm"
@@ -479,15 +481,15 @@ msgstr ""
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "Nie można było dodać gry" msgstr "Nie można było dodać gry"
#: src/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "Tytuł gry nie może być pusty." msgstr "Tytuł gry nie może być pusty."
#: src/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "Plik wykonywalny nie może być pusty." msgstr "Plik wykonywalny nie może być pusty."
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "Nie można zastosować preferencji" msgstr "Nie można zastosować preferencji"
@@ -509,71 +511,59 @@ msgstr "{} nieukryty"
msgid "{} removed" msgid "{} removed"
msgstr "{} usunięty" msgstr "{} usunięty"
#: src/preferences.py:111 #: src/preferences.py:112
msgid "All games removed" msgid "All games removed"
msgstr "Wszystkie gry usunięte" msgstr "Wszystkie gry usunięte"
#: src/preferences.py:159 #: src/preferences.py:160
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr ""
"Do korzystania z SteamGridDB wymagany jest klucz API. Możesz go wygenerować " "Do korzystania z SteamGridDB wymagany jest klucz API. Możesz go wygenerować "
"{} tutaj{}." "{} tutaj{}."
#: src/preferences.py:284 #: src/preferences.py:285
#, fuzzy
#| msgid "Installation Not Found"
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "Nie znaleziono instalacji" msgstr "Nie znaleziono instalacji"
#: src/preferences.py:286 #: src/preferences.py:287
#, fuzzy
#| msgid "Select the {} data directory."
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "Wybierz {} katalog danych." msgstr "Wybierz prawidłowy katalog."
#: src/preferences.py:348 #: src/preferences.py:349
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "" msgstr "Nieprawidłowy katalog"
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/preferences.py:353
#, fuzzy
#| msgid "Select the {} data directory."
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "Wybierz {} katalog danych." msgstr "Wybierz katalog pamięci podręcznej {}."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/preferences.py:356
#, fuzzy
#| msgid "Select the {} configuration directory."
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "Wybierz {} katalog konfiguracyjny." msgstr "Wybierz katalog konfiguracyjny {}."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/preferences.py:359
#, fuzzy
#| msgid "Select the {} data directory."
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "Wybierz {} katalog danych." msgstr "Wybierz katalog z danymi {}."
#: src/preferences.py:364 #: src/preferences.py:365
msgid "Set Location" msgid "Set Location"
msgstr "Ustaw lokacje" msgstr "Ustaw położenie"
#: src/utils/create_dialog.py:25 #: src/utils/create_dialog.py:25
msgid "Dismiss" msgid "Dismiss"
msgstr "Odrzucić" msgstr "Odrzucić"
#: src/store/managers/sgdb_manager.py:47 #: src/store/managers/sgdb_manager.py:47
#, fuzzy
#| msgid "Couldn't Connect to SteamGridDB"
msgid "Couldn't Authenticate SteamGridDB" msgid "Couldn't Authenticate SteamGridDB"
msgstr "Nie można połączyć się z SteamGridDB" msgstr "Nie można uwierzytelnić SteamGridDB"
#: src/store/managers/sgdb_manager.py:48 #: src/store/managers/sgdb_manager.py:48
msgid "Verify your API key in preferences" msgid "Verify your API key in preferences"
msgstr "" msgstr "Zweryfikuj swój klucz API w preferencjach"
#, fuzzy #, fuzzy
#~| msgid "Cache Not Found" #~| msgid "Cache Not Found"

View File

@@ -9,7 +9,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-07-05 14:36+0200\n" "POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-06-04 22:47+0000\n" "PO-Revision-Date: 2023-06-04 22:47+0000\n"
"Last-Translator: João Alves <joao.2003.couto@gmail.com>\n" "Last-Translator: João Alves <joao.2003.couto@gmail.com>\n"
"Language-Team: Portuguese <https://hosted.weblate.org/projects/cartridges/" "Language-Team: Portuguese <https://hosted.weblate.org/projects/cartridges/"
@@ -23,7 +23,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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:170
msgid "Cartridges" msgid "Cartridges"
msgstr "Cartridges" msgstr "Cartridges"
@@ -37,7 +37,9 @@ msgid "Launch all your games"
msgstr "Inicie todos os seus jogos" msgstr "Inicie todos os seus jogos"
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" #, fuzzy
#| msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;"
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "gaming;iniciador;steam;lutris;heroic;bottles;itch;" msgstr "gaming;iniciador;steam;lutris;heroic;bottles;itch;"
#: data/hu.kramo.Cartridges.metainfo.xml.in:9 #: data/hu.kramo.Cartridges.metainfo.xml.in:9
@@ -65,7 +67,7 @@ msgid "Game Details"
msgstr "Detalhes do jogo" msgstr "Detalhes do jogo"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:239 #: src/details_window.py:241
msgid "Preferences" msgid "Preferences"
msgstr "Preferências" msgstr "Preferências"
@@ -148,7 +150,7 @@ msgstr "Mostrar preferências"
msgid "Shortcuts" msgid "Shortcuts"
msgstr "Atalhos" msgstr "Atalhos"
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo" msgid "Undo"
msgstr "Desfazer" msgstr "Desfazer"
@@ -176,7 +178,7 @@ msgstr "Exibir jogos ocultados"
msgid "Remove game" msgid "Remove game"
msgstr "Remover jogo" msgstr "Remover jogo"
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
msgid "Behavior" msgid "Behavior"
msgstr "Comportamento" msgstr "Comportamento"
@@ -225,9 +227,9 @@ msgid "Steam"
msgstr "Steam" msgstr "Steam"
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:243
#, fuzzy #, fuzzy
#| msgid "itch Install Location" #| msgid "itch Install Location"
msgid "Install Location" msgid "Install Location"
@@ -266,56 +268,62 @@ msgid "Import GOG Games"
msgstr "Importar jogos do GOG" msgstr "Importar jogos do GOG"
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Amazon Games"
msgstr "Importar jogos da Steam"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "Importar jogos adicionados manualmente" msgstr "Importar jogos adicionados manualmente"
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:197
msgid "Bottles" msgid "Bottles"
msgstr "Bottles" msgstr "Bottles"
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:211
msgid "itch" msgid "itch"
msgstr "itch" msgstr "itch"
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:225
msgid "Legendary" msgid "Legendary"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:239
msgid "Flatpak" msgid "Flatpak"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:252
#, fuzzy #, fuzzy
#| msgid "Game Launcher" #| msgid "Game Launcher"
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "Iniciador de jogos" msgstr "Iniciador de jogos"
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:265
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "SteamGridDB" msgstr "SteamGridDB"
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:269
msgid "Authentication" msgid "Authentication"
msgstr "Autenticação" msgstr "Autenticação"
#: data/gtk/preferences.blp:263 #: data/gtk/preferences.blp:272
msgid "API Key" msgid "API Key"
msgstr "Chave da API" msgstr "Chave da API"
#: data/gtk/preferences.blp:271 #: data/gtk/preferences.blp:280
msgid "Use SteamGridDB" msgid "Use SteamGridDB"
msgstr "Usar SteamGridDB" msgstr "Usar SteamGridDB"
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:281
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "Baixa imagens ao adicionar ou importar jogos" msgstr "Baixa imagens ao adicionar ou importar jogos"
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:290
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "Preferir mais que as imagens oficiais" msgstr "Preferir mais que as imagens oficiais"
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:299
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "Preferir imagens animadas" msgstr "Preferir imagens animadas"
@@ -404,7 +412,7 @@ msgid "About Cartridges"
msgstr "Sobre o Cartuchos" msgstr "Sobre o Cartuchos"
#. 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "Pedro Sader Azevedo" msgstr "Pedro Sader Azevedo"
@@ -480,15 +488,15 @@ msgstr ""
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "Não foi possível adicionar o jogo" msgstr "Não foi possível adicionar o jogo"
#: src/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "O título do jogo não pode estar vazio." msgstr "O título do jogo não pode estar vazio."
#: src/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "O executável não pode estar vazio." msgstr "O executável não pode estar vazio."
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "Não foi possível aplicar as preferências" msgstr "Não foi possível aplicar as preferências"
@@ -510,55 +518,55 @@ msgstr "{} está exposto"
msgid "{} removed" msgid "{} removed"
msgstr "{} removido" msgstr "{} removido"
#: src/preferences.py:111 #: src/preferences.py:112
msgid "All games removed" msgid "All games removed"
msgstr "Todos os jogos foram removidos" msgstr "Todos os jogos foram removidos"
#: src/preferences.py:159 #: src/preferences.py:160
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr ""
"Uma chave da API é necessária para usar a SteamGridDB. Você pode gerar uma " "Uma chave da API é necessária para usar a SteamGridDB. Você pode gerar uma "
"chave {}aqui{}." "chave {}aqui{}."
#: src/preferences.py:284 #: src/preferences.py:285
#, fuzzy #, fuzzy
#| msgid "Installation Not Found" #| msgid "Installation Not Found"
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "Instalação não encontrada" msgstr "Instalação não encontrada"
#: src/preferences.py:286 #: src/preferences.py:287
#, fuzzy #, fuzzy
#| msgid "Select the {} data directory." #| msgid "Select the {} data directory."
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "Selecione o diretório de informações de {}." msgstr "Selecione o diretório de informações de {}."
#: src/preferences.py:348 #: src/preferences.py:349
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "" msgstr ""
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/preferences.py:353
#, fuzzy #, fuzzy
#| msgid "Select the {} data directory." #| msgid "Select the {} data directory."
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "Selecione o diretório de informações de {}." msgstr "Selecione o diretório de informações de {}."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/preferences.py:356
#, fuzzy #, fuzzy
#| msgid "Select the {} configuration directory." #| msgid "Select the {} configuration directory."
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "Selecione o diretório de configuração de {}." msgstr "Selecione o diretório de configuração de {}."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/preferences.py:359
#, fuzzy #, fuzzy
#| msgid "Select the {} data directory." #| msgid "Select the {} data directory."
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "Selecione o diretório de informações de {}." msgstr "Selecione o diretório de informações de {}."
#: src/preferences.py:364 #: src/preferences.py:365
msgid "Set Location" msgid "Set Location"
msgstr "Definir local" msgstr "Definir local"

View File

@@ -3,13 +3,14 @@
# This file is distributed under the same license as the Cartridges package. # This file is distributed under the same license as the Cartridges package.
# Henrique Machado <henriquecamposrj@gmail.com>, 2023. # Henrique Machado <henriquecamposrj@gmail.com>, 2023.
# Vinícius Gama Santos <vinny.stalck@protonmail.com>, 2023. # Vinícius Gama Santos <vinny.stalck@protonmail.com>, 2023.
# Vítor Fernandes Almado <vfalmado@gmail.com>, 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-07-05 14:36+0200\n" "POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-06-02 15:40+0000\n" "PO-Revision-Date: 2023-07-11 15:52+0000\n"
"Last-Translator: Vinícius Gama Santos <vinny.stalck@protonmail.com>\n" "Last-Translator: Vítor Fernandes Almado <vfalmado@gmail.com>\n"
"Language-Team: Portuguese (Brazil) <https://hosted.weblate.org/projects/" "Language-Team: Portuguese (Brazil) <https://hosted.weblate.org/projects/"
"cartridges/cartridges/pt_BR/>\n" "cartridges/cartridges/pt_BR/>\n"
"Language: pt_BR\n" "Language: pt_BR\n"
@@ -17,11 +18,11 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n" "Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.18-dev\n" "X-Generator: Weblate 5.0-dev\n"
#: 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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:170
msgid "Cartridges" msgid "Cartridges"
msgstr "Cartuchos" msgstr "Cartuchos"
@@ -35,7 +36,9 @@ msgid "Launch all your games"
msgstr "Inicie todos os seus jogos" msgstr "Inicie todos os seus jogos"
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" #, fuzzy
#| msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;"
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "jogos;gaming;launcher;steam;lutris;heroic;bottles;itch;" msgstr "jogos;gaming;launcher;steam;lutris;heroic;bottles;itch;"
#: data/hu.kramo.Cartridges.metainfo.xml.in:9 #: data/hu.kramo.Cartridges.metainfo.xml.in:9
@@ -63,7 +66,7 @@ msgid "Game Details"
msgstr "Detalhes do jogo" msgstr "Detalhes do jogo"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:239 #: src/details_window.py:241
msgid "Preferences" msgid "Preferences"
msgstr "Preferências" msgstr "Preferências"
@@ -146,7 +149,7 @@ msgstr "Mostrar preferências"
msgid "Shortcuts" msgid "Shortcuts"
msgstr "Atalhos" msgstr "Atalhos"
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo" msgid "Undo"
msgstr "Desfazer" msgstr "Desfazer"
@@ -174,7 +177,7 @@ msgstr "Exibir jogos ocultos"
msgid "Remove game" msgid "Remove game"
msgstr "Remover jogo" msgstr "Remover jogo"
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
msgid "Behavior" msgid "Behavior"
msgstr "Comportamento" msgstr "Comportamento"
@@ -223,9 +226,9 @@ msgid "Steam"
msgstr "Steam" msgstr "Steam"
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:243
#, fuzzy #, fuzzy
#| msgid "itch Install Location" #| msgid "itch Install Location"
msgid "Install Location" msgid "Install Location"
@@ -264,56 +267,62 @@ msgid "Import GOG Games"
msgstr "Importar jogos do GOG" msgstr "Importar jogos do GOG"
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Amazon Games"
msgstr "Importar jogos do Steam"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "Importar jogos adicionados manualmente" msgstr "Importar jogos adicionados manualmente"
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:197
msgid "Bottles" msgid "Bottles"
msgstr "Garrafas" msgstr "Garrafas"
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:211
msgid "itch" msgid "itch"
msgstr "itch" msgstr "itch"
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:225
msgid "Legendary" msgid "Legendary"
msgstr "" msgstr "Lendário"
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:239
msgid "Flatpak" msgid "Flatpak"
msgstr "" msgstr "Flatpak"
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:252
#, fuzzy #, fuzzy
#| msgid "Game Launcher" #| msgid "Game Launcher"
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "Iniciador de jogos" msgstr "Iniciador de jogos"
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:265
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "SteamGridDB" msgstr "SteamGridDB"
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:269
msgid "Authentication" msgid "Authentication"
msgstr "Autenticação" msgstr "Autenticação"
#: data/gtk/preferences.blp:263 #: data/gtk/preferences.blp:272
msgid "API Key" msgid "API Key"
msgstr "Chave da API" msgstr "Chave da API"
#: data/gtk/preferences.blp:271 #: data/gtk/preferences.blp:280
msgid "Use SteamGridDB" msgid "Use SteamGridDB"
msgstr "Usar SteamGridDB" msgstr "Usar SteamGridDB"
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:281
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "Baixar imagens ao adicionar ou importar jogos" msgstr "Baixar imagens ao adicionar ou importar jogos"
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:290
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "Preferir mais que as imagens oficiais" msgstr "Preferir mais que as imagens oficiais"
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:299
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "Preferir imagens animadas" msgstr "Preferir imagens animadas"
@@ -402,7 +411,7 @@ msgid "About Cartridges"
msgstr "Sobre o Cartuchos" msgstr "Sobre o Cartuchos"
#. 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "Pedro Sader Azevedo, Vinícius \"Stalck\"" msgstr "Pedro Sader Azevedo, Vinícius \"Stalck\""
@@ -478,15 +487,15 @@ msgstr ""
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "Não foi possível adicionar o jogo" msgstr "Não foi possível adicionar o jogo"
#: src/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "O título do jogo não pode estar vazio." msgstr "O título do jogo não pode estar vazio."
#: src/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "O executável não pode estar vazio." msgstr "O executável não pode estar vazio."
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "Não foi possível aplicar as preferências" msgstr "Não foi possível aplicar as preferências"
@@ -508,55 +517,55 @@ msgstr "{} exibido"
msgid "{} removed" msgid "{} removed"
msgstr "{} removido" msgstr "{} removido"
#: src/preferences.py:111 #: src/preferences.py:112
msgid "All games removed" msgid "All games removed"
msgstr "Todos os jogos foram removidos" msgstr "Todos os jogos foram removidos"
#: src/preferences.py:159 #: src/preferences.py:160
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr ""
"Uma chave de API é necessária para utilizar o SteamGridDB. Você pode gerar " "Uma chave de API é necessária para utilizar o SteamGridDB. Você pode gerar "
"uma {}aqui{}." "uma {}aqui{}."
#: src/preferences.py:284 #: src/preferences.py:285
#, fuzzy #, fuzzy
#| msgid "Installation Not Found" #| msgid "Installation Not Found"
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "Instalação não encontrada" msgstr "Instalação não encontrada"
#: src/preferences.py:286 #: src/preferences.py:287
#, fuzzy #, fuzzy
#| msgid "Select the {} data directory." #| msgid "Select the {} data directory."
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "Selecione o diretório de dados do(a) {}." msgstr "Selecione o diretório de dados do(a) {}."
#: src/preferences.py:348 #: src/preferences.py:349
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "" msgstr "Diretório inválido"
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/preferences.py:353
#, fuzzy #, fuzzy
#| msgid "Select the {} data directory." #| msgid "Select the {} data directory."
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "Selecione o diretório de dados do(a) {}." msgstr "Selecione o diretório de dados do(a) {}."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/preferences.py:356
#, fuzzy #, fuzzy
#| msgid "Select the {} configuration directory." #| msgid "Select the {} configuration directory."
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "Selecione o diretório de configuração do(a) {}." msgstr "Selecione o diretório de configuração do(a) {}."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/preferences.py:359
#, fuzzy #, fuzzy
#| msgid "Select the {} data directory." #| msgid "Select the {} data directory."
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "Selecione o diretório de dados do(a) {}." msgstr "Selecione o diretório de dados do(a) {}."
#: src/preferences.py:364 #: src/preferences.py:365
msgid "Set Location" msgid "Set Location"
msgstr "Definir local" msgstr "Definir local"
@@ -572,7 +581,7 @@ msgstr "Não foi possível conectar-se ao SteamGridDB"
#: src/store/managers/sgdb_manager.py:48 #: src/store/managers/sgdb_manager.py:48
msgid "Verify your API key in preferences" msgid "Verify your API key in preferences"
msgstr "" msgstr "Verifique sua chave API nas preferências"
#, fuzzy #, fuzzy
#~| msgid "Cache Not Found" #~| msgid "Cache Not Found"

View File

@@ -6,7 +6,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-07-05 14:36+0200\n" "POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-04-04 17:12+0000\n" "PO-Revision-Date: 2023-04-04 17:12+0000\n"
"Last-Translator: Matt C <matei.gurzu@gmail.com>\n" "Last-Translator: Matt C <matei.gurzu@gmail.com>\n"
"Language-Team: Romanian <https://hosted.weblate.org/projects/cartridges/" "Language-Team: Romanian <https://hosted.weblate.org/projects/cartridges/"
@@ -21,7 +21,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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:170
msgid "Cartridges" msgid "Cartridges"
msgstr "Cartușe" msgstr "Cartușe"
@@ -35,7 +35,7 @@ msgid "Launch all your games"
msgstr "Lansați toate jocurile dvs" msgstr "Lansați toate jocurile dvs"
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "" msgstr ""
#: data/hu.kramo.Cartridges.metainfo.xml.in:9 #: data/hu.kramo.Cartridges.metainfo.xml.in:9
@@ -67,7 +67,7 @@ msgid "Game Details"
msgstr "Detalii joc" msgstr "Detalii joc"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:239 #: src/details_window.py:241
msgid "Preferences" msgid "Preferences"
msgstr "Preferințe" msgstr "Preferințe"
@@ -150,7 +150,7 @@ msgstr ""
msgid "Shortcuts" msgid "Shortcuts"
msgstr "" msgstr ""
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo" msgid "Undo"
msgstr "" msgstr ""
@@ -178,7 +178,7 @@ msgstr ""
msgid "Remove game" msgid "Remove game"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
msgid "Behavior" msgid "Behavior"
msgstr "" msgstr ""
@@ -227,9 +227,9 @@ msgid "Steam"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:243
msgid "Install Location" msgid "Install Location"
msgstr "" msgstr ""
@@ -262,56 +262,62 @@ msgid "Import GOG Games"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "Game Launcher"
msgid "Import Amazon Games"
msgstr "Lansator de jocuri"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:197
msgid "Bottles" msgid "Bottles"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:211
msgid "itch" msgid "itch"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:225
msgid "Legendary" msgid "Legendary"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:239
msgid "Flatpak" msgid "Flatpak"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:252
#, fuzzy #, fuzzy
#| msgid "Game Launcher" #| msgid "Game Launcher"
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "Lansator de jocuri" msgstr "Lansator de jocuri"
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:265
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:269
msgid "Authentication" msgid "Authentication"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:263 #: data/gtk/preferences.blp:272
msgid "API Key" msgid "API Key"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:271 #: data/gtk/preferences.blp:280
msgid "Use SteamGridDB" msgid "Use SteamGridDB"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:281
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:290
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "" msgstr ""
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:299
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "" msgstr ""
@@ -400,7 +406,7 @@ msgid "About Cartridges"
msgstr "" 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "" msgstr ""
@@ -467,15 +473,15 @@ msgstr ""
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "" msgstr ""
#: src/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "" msgstr ""
#: src/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "" msgstr ""
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "" msgstr ""
@@ -497,43 +503,43 @@ msgstr ""
msgid "{} removed" msgid "{} removed"
msgstr "" msgstr ""
#: src/preferences.py:111 #: src/preferences.py:112
msgid "All games removed" msgid "All games removed"
msgstr "" msgstr ""
#: src/preferences.py:159 #: src/preferences.py:160
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr ""
#: src/preferences.py:284 #: src/preferences.py:285
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "" msgstr ""
#: src/preferences.py:286 #: src/preferences.py:287
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "" msgstr ""
#: src/preferences.py:348 #: src/preferences.py:349
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "" msgstr ""
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/preferences.py:353
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "" msgstr ""
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/preferences.py:356
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "" msgstr ""
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/preferences.py:359
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "" msgstr ""
#: src/preferences.py:364 #: src/preferences.py:365
msgid "Set Location" msgid "Set Location"
msgstr "" msgstr ""

View File

@@ -7,8 +7,8 @@ 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-07-05 14:36+0200\n" "POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-07-01 15:10+0000\n" "PO-Revision-Date: 2023-07-08 14:52+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"
@@ -22,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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:170
msgid "Cartridges" msgid "Cartridges"
msgstr "Картриджи" msgstr "Картриджи"
@@ -36,7 +36,9 @@ msgid "Launch all your games"
msgstr "Запустите все свои игры" msgstr "Запустите все свои игры"
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" #, fuzzy
#| msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;"
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "gaming;launcher;steam;lutris;heroic;bottles;itch;игры;стим;" msgstr "gaming;launcher;steam;lutris;heroic;bottles;itch;игры;стим;"
#: data/hu.kramo.Cartridges.metainfo.xml.in:9 #: data/hu.kramo.Cartridges.metainfo.xml.in:9
@@ -64,7 +66,7 @@ msgid "Game Details"
msgstr "Подробности об игре" msgstr "Подробности об игре"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:239 #: src/details_window.py:241
msgid "Preferences" msgid "Preferences"
msgstr "Параметры" msgstr "Параметры"
@@ -147,7 +149,7 @@ msgstr "Показать параметры"
msgid "Shortcuts" msgid "Shortcuts"
msgstr "Комбинации клавиш" msgstr "Комбинации клавиш"
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo" msgid "Undo"
msgstr "Вернуть" msgstr "Вернуть"
@@ -175,7 +177,7 @@ msgstr "Показать скрытые игры"
msgid "Remove game" msgid "Remove game"
msgstr "Удалить игру" msgstr "Удалить игру"
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
msgid "Behavior" msgid "Behavior"
msgstr "Поведение" msgstr "Поведение"
@@ -224,9 +226,9 @@ msgid "Steam"
msgstr "Steam" msgstr "Steam"
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:243
msgid "Install Location" msgid "Install Location"
msgstr "Место установки" msgstr "Место установки"
@@ -259,54 +261,60 @@ msgid "Import GOG Games"
msgstr "Импорт игр GOG" msgstr "Импорт игр GOG"
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Amazon Games"
msgstr "Импорт игр Steam"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "Импорт сторонних игр" msgstr "Импорт сторонних игр"
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:197
msgid "Bottles" msgid "Bottles"
msgstr "Bottles" msgstr "Bottles"
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:211
msgid "itch" msgid "itch"
msgstr "itch" msgstr "itch"
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:225
msgid "Legendary" msgid "Legendary"
msgstr "Legendary" msgstr "Legendary"
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:239
msgid "Flatpak" msgid "Flatpak"
msgstr "Flatpak" msgstr "Flatpak"
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:252
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "Импорт средств запуска игр" msgstr "Импорт средств запуска игр"
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:265
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "SteamGridDB" msgstr "SteamGridDB"
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:269
msgid "Authentication" msgid "Authentication"
msgstr "Аутентификация" msgstr "Аутентификация"
#: data/gtk/preferences.blp:263 #: data/gtk/preferences.blp:272
msgid "API Key" msgid "API Key"
msgstr "API-ключ" msgstr "API-ключ"
#: data/gtk/preferences.blp:271 #: data/gtk/preferences.blp:280
msgid "Use SteamGridDB" msgid "Use SteamGridDB"
msgstr "Использовать SteamGridDB" msgstr "Использовать SteamGridDB"
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:281
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "Загрузка изображений при добавлении или импорте игр" msgstr "Загрузка изображений при добавлении или импорте игр"
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:290
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "Отдавать предпочтение официальным изображениям" msgstr "Отдавать предпочтение официальным изображениям"
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:299
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "Отдавать предпочтение анимированным изображениям" msgstr "Отдавать предпочтение анимированным изображениям"
@@ -395,7 +403,7 @@ msgid "About Cartridges"
msgstr "О приложении" 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "Ser82-png" msgstr "Ser82-png"
@@ -471,15 +479,15 @@ msgstr ""
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "Не удалось добавить игру" msgstr "Не удалось добавить игру"
#: src/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "Название игры не может быть пустым." msgstr "Название игры не может быть пустым."
#: src/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "Исполняемый файл не может быть пустым." msgstr "Исполняемый файл не может быть пустым."
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "Не удалось применить параметры" msgstr "Не удалось применить параметры"
@@ -501,49 +509,45 @@ msgstr "{} - не скрыта"
msgid "{} removed" msgid "{} removed"
msgstr "{} удалена" msgstr "{} удалена"
#: src/preferences.py:111 #: src/preferences.py:112
msgid "All games removed" msgid "All games removed"
msgstr "Все игры удалены" msgstr "Все игры удалены"
#: src/preferences.py:159 #: src/preferences.py:160
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr ""
"Для использования SteamGridDB требуется ключ API. Вы можете сгенерировать " "Для использования SteamGridDB требуется ключ API. Вы можете сгенерировать "
"его {}здесь{}." "его {}здесь{}."
#: src/preferences.py:284 #: src/preferences.py:285
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "Установка не найдена" msgstr "Установка не найдена"
#: src/preferences.py:286 #: src/preferences.py:287
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "Выберите действующий каталог." msgstr "Выберите действующий каталог."
#: src/preferences.py:348 #: src/preferences.py:349
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "Неверный каталог" msgstr "Неверный каталог"
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/preferences.py:353
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "Выберите каталог кэша {}." msgstr "Выберите каталог кэша {}."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/preferences.py:356
#, fuzzy
#| msgid "Select the {} installation directory."
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "Выберите каталог установки {}." msgstr "Выберите каталог конфигурации {}."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/preferences.py:359
#, fuzzy
#| msgid "Select the {} cache directory."
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "Выберите каталог кэша {}." msgstr "Выберите каталог данных {}."
#: src/preferences.py:364 #: src/preferences.py:365
msgid "Set Location" msgid "Set Location"
msgstr "Установить расположение" msgstr "Установить расположение"

View File

@@ -8,8 +8,8 @@ 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-07-05 14:36+0200\n" "POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-07-01 22:51+0000\n" "PO-Revision-Date: 2023-07-08 14:52+0000\n"
"Last-Translator: Luna Jernberg <droidbittin@gmail.com>\n" "Last-Translator: Luna Jernberg <droidbittin@gmail.com>\n"
"Language-Team: Swedish <https://hosted.weblate.org/projects/cartridges/" "Language-Team: Swedish <https://hosted.weblate.org/projects/cartridges/"
"cartridges/sv/>\n" "cartridges/sv/>\n"
@@ -22,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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:170
msgid "Cartridges" msgid "Cartridges"
msgstr "Cartridges" msgstr "Cartridges"
@@ -36,7 +36,9 @@ msgid "Launch all your games"
msgstr "Starta alla dina spel" msgstr "Starta alla dina spel"
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" #, fuzzy
#| msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;"
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "gaming;spelstartare;steam;lutris;heroic;bottles;itch;" msgstr "gaming;spelstartare;steam;lutris;heroic;bottles;itch;"
#: data/hu.kramo.Cartridges.metainfo.xml.in:9 #: data/hu.kramo.Cartridges.metainfo.xml.in:9
@@ -63,7 +65,7 @@ msgid "Game Details"
msgstr "Speldetaljer" msgstr "Speldetaljer"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:239 #: src/details_window.py:241
msgid "Preferences" msgid "Preferences"
msgstr "Inställningar" msgstr "Inställningar"
@@ -146,7 +148,7 @@ msgstr "Visa inställningar"
msgid "Shortcuts" msgid "Shortcuts"
msgstr "Genvägar" msgstr "Genvägar"
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo" msgid "Undo"
msgstr "Ångra" msgstr "Ångra"
@@ -174,7 +176,7 @@ msgstr "Visa dolda spel"
msgid "Remove game" msgid "Remove game"
msgstr "Ta bort spel" msgstr "Ta bort spel"
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
msgid "Behavior" msgid "Behavior"
msgstr "Beteende" msgstr "Beteende"
@@ -224,9 +226,9 @@ msgid "Steam"
msgstr "Steam" msgstr "Steam"
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:243
msgid "Install Location" msgid "Install Location"
msgstr "Plats för installation" msgstr "Plats för installation"
@@ -259,54 +261,60 @@ msgid "Import GOG Games"
msgstr "Importera GOG-spel" msgstr "Importera GOG-spel"
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Amazon Games"
msgstr "Importera Steam-spel"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "Importera sidoladdade spel" msgstr "Importera sidoladdade spel"
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:197
msgid "Bottles" msgid "Bottles"
msgstr "Bottles" msgstr "Bottles"
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:211
msgid "itch" msgid "itch"
msgstr "itch" msgstr "itch"
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:225
msgid "Legendary" msgid "Legendary"
msgstr "Legendary" msgstr "Legendary"
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:239
msgid "Flatpak" msgid "Flatpak"
msgstr "Flatpak" msgstr "Flatpak"
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:252
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "Importera spelstartare" msgstr "Importera spelstartare"
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:265
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "SteamGridDB" msgstr "SteamGridDB"
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:269
msgid "Authentication" msgid "Authentication"
msgstr "Autentisering" msgstr "Autentisering"
#: data/gtk/preferences.blp:263 #: data/gtk/preferences.blp:272
msgid "API Key" msgid "API Key"
msgstr "API-nyckel" msgstr "API-nyckel"
#: data/gtk/preferences.blp:271 #: data/gtk/preferences.blp:280
msgid "Use SteamGridDB" msgid "Use SteamGridDB"
msgstr "Använd SteamGridDB" msgstr "Använd SteamGridDB"
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:281
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "Ladda ner bilder när spel läggs till eller importeras" msgstr "Ladda ner bilder när spel läggs till eller importeras"
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:290
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "Föredra framför officiella bilder" msgstr "Föredra framför officiella bilder"
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:299
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "Föredra animerade bilder" msgstr "Föredra animerade bilder"
@@ -395,7 +403,7 @@ msgid "About Cartridges"
msgstr "Om Cartridges" msgstr "Om Cartridges"
#. 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "Micke" msgstr "Micke"
@@ -472,15 +480,15 @@ msgstr ""
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "Kunde inte lägga till spelet" msgstr "Kunde inte lägga till spelet"
#: src/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "Spelets titel kan inte vara tom." msgstr "Spelets titel kan inte vara tom."
#: src/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "Den körbara filen kan inte vara tom." msgstr "Den körbara filen kan inte vara tom."
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "Kunde inte tillämpa inställningar" msgstr "Kunde inte tillämpa inställningar"
@@ -502,48 +510,44 @@ msgstr "{} synlig"
msgid "{} removed" msgid "{} removed"
msgstr "{} borttaget" msgstr "{} borttaget"
#: src/preferences.py:111 #: src/preferences.py:112
msgid "All games removed" msgid "All games removed"
msgstr "Alla spel togs bort" msgstr "Alla spel togs bort"
#: src/preferences.py:159 #: src/preferences.py:160
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr ""
"En API-nyckel krävs för att använda SteamGridDB. Du kan generera en {}här{}." "En API-nyckel krävs för att använda SteamGridDB. Du kan generera en {}här{}."
#: src/preferences.py:284 #: src/preferences.py:285
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "Installation hittades inte" msgstr "Installation hittades inte"
#: src/preferences.py:286 #: src/preferences.py:287
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "Välj en giltig katalog." msgstr "Välj en giltig katalog."
#: src/preferences.py:348 #: src/preferences.py:349
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "Ogiltig katalog" msgstr "Ogiltig katalog"
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/preferences.py:353
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "Välj {} cachekatalog." msgstr "Välj {} cachekatalog."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/preferences.py:356
#, fuzzy
#| msgid "Select the {} installation directory."
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "Välj {} installationskatalog." msgstr "Välj {} konfigurationskatalog."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/preferences.py:359
#, fuzzy
#| msgid "Select the {} cache directory."
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "Välj {} cachekatalog." msgstr "Välj {} datakatalog."
#: src/preferences.py:364 #: src/preferences.py:365
msgid "Set Location" msgid "Set Location"
msgstr "Ange plats" msgstr "Ange plats"

141
po/ta.po
View File

@@ -8,8 +8,8 @@ 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-07-05 14:36+0200\n" "POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-06-28 20:19+0000\n" "PO-Revision-Date: 2023-07-09 07:59+0000\n"
"Last-Translator: \"K.B.Dharun Krishna\" <kbdharunkrishna@gmail.com>\n" "Last-Translator: \"K.B.Dharun Krishna\" <kbdharunkrishna@gmail.com>\n"
"Language-Team: Tamil <https://hosted.weblate.org/projects/cartridges/" "Language-Team: Tamil <https://hosted.weblate.org/projects/cartridges/"
"cartridges/ta/>\n" "cartridges/ta/>\n"
@@ -18,11 +18,11 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n" "Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.18.1\n" "X-Generator: Weblate 5.0-dev\n"
#: 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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:170
msgid "Cartridges" msgid "Cartridges"
msgstr "கார்ட்ரிட்ஜ்கள்" msgstr "கார்ட்ரிட்ஜ்கள்"
@@ -36,7 +36,9 @@ msgid "Launch all your games"
msgstr "உங்கள் எல்லா விளையாட்டுகளையும் தொடங்கவும்" msgstr "உங்கள் எல்லா விளையாட்டுகளையும் தொடங்கவும்"
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" #, fuzzy
#| msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;"
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "விளையாட்டு; துவக்கி; steam;lutris;heroic;பாட்டில்கள்;itch;" msgstr "விளையாட்டு; துவக்கி; steam;lutris;heroic;பாட்டில்கள்;itch;"
#: data/hu.kramo.Cartridges.metainfo.xml.in:9 #: data/hu.kramo.Cartridges.metainfo.xml.in:9
@@ -46,11 +48,10 @@ msgid ""
"necessary. You can sort and hide games or download cover art from " "necessary. You can sort and hide games or download cover art from "
"SteamGridDB." "SteamGridDB."
msgstr "" msgstr ""
"உங்கள் எல்லா விளையாட்டுகளுக்கும் கேட்ரிட்ஜ்கள் ஒரு எளிய விளையாட்டு துவக்கி ஆகும். ஸ்டீம் " "உங்கள் எல்லா விளையாட்டுகளுக்கும் கேட்ரிட்ஜ்கள் ஒரு எளிய விளையாட்டு துவக்கி ஆகும். Steam, "
"(Steam), லுட்ரிஸ் (Lutris), வீரம் (Heroic) மற்றும் பலவற்றிலிருந்து விளையாட்டுகளை " "Lutris, Heroic மற்றும் பலவற்றிலிருந்து விளையாட்டுகளை இறக்குமதி செய்வதற்கான ஆதரவை இது "
"இறக்குமதி செய்வதற்கான ஆதரவை இது கொண்டுள்ளது. நீங்கள் விளையாட்டுகளை வரிசைப்படுத்தலாம் " "கொண்டுள்ளது. நீங்கள் விளையாட்டுகளை வரிசைப்படுத்தலாம் மற்றும் மறைக்கலாம் அல்லது SteamGridDB "
"மற்றும் மறைக்கலாம் அல்லது ஸ்டீம்கிரிட் டிபி (SteamGridDB) இலிருந்து அட்டைப்பட கலையைப் " "இலிருந்து அட்டைப்பட கலையைப் பதிவிறக்கலாம்."
"பதிவிறக்கலாம்."
#: data/hu.kramo.Cartridges.metainfo.xml.in:30 #: data/hu.kramo.Cartridges.metainfo.xml.in:30
msgid "Library" msgid "Library"
@@ -65,7 +66,7 @@ msgid "Game Details"
msgstr "விளையாட்டு விவரங்கள்" msgstr "விளையாட்டு விவரங்கள்"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:239 #: src/details_window.py:241
msgid "Preferences" msgid "Preferences"
msgstr "விருப்பங்கள்" msgstr "விருப்பங்கள்"
@@ -148,7 +149,7 @@ msgstr "விருப்பங்களைக் காட்டு"
msgid "Shortcuts" msgid "Shortcuts"
msgstr "குறுக்குவழிகள்" msgstr "குறுக்குவழிகள்"
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo" msgid "Undo"
msgstr "செயல்தவிர்" msgstr "செயல்தவிர்"
@@ -176,7 +177,7 @@ msgstr "மறைக்கப்பட்ட விளையாட்டுக
msgid "Remove game" msgid "Remove game"
msgstr "விளையாட்டை அகற்று" msgstr "விளையாட்டை அகற்று"
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
msgid "Behavior" msgid "Behavior"
msgstr "நடத்தை" msgstr "நடத்தை"
@@ -222,18 +223,18 @@ msgstr "மூலங்கள்"
#: data/gtk/preferences.blp:92 #: data/gtk/preferences.blp:92
msgid "Steam" msgid "Steam"
msgstr "Steam (ஸ்டீம்)" msgstr "Steam"
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:243
msgid "Install Location" msgid "Install Location"
msgstr "நிறுவல் இடம்" msgstr "நிறுவல் இடம்"
#: data/gtk/preferences.blp:106 #: data/gtk/preferences.blp:106
msgid "Lutris" msgid "Lutris"
msgstr "லூட்ரிஸ்" msgstr "Lutris"
#: data/gtk/preferences.blp:119 #: data/gtk/preferences.blp:119
msgid "Cache Location" msgid "Cache Location"
@@ -241,17 +242,15 @@ msgstr "தற்காலிக சேமிப்பு இடம்"
#: data/gtk/preferences.blp:128 #: data/gtk/preferences.blp:128
msgid "Import Steam Games" msgid "Import Steam Games"
msgstr "ஸ்டீம் (Steam) விளையாட்டுகளை இறக்குமதி செய்யவும்" msgstr "Steam விளையாட்டுகளை இறக்குமதி செய்யவும்"
#: data/gtk/preferences.blp:137 #: data/gtk/preferences.blp:137
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Flatpak Games" msgid "Import Flatpak Games"
msgstr "ஸ்டீம் (Steam) விளையாட்டுகளை இறக்குமதி செய்யவும்" msgstr "Flatpak கேம்களை இறக்குமதி செய்யவும்"
#: data/gtk/preferences.blp:147 #: data/gtk/preferences.blp:147
msgid "Heroic" msgid "Heroic"
msgstr "Heroic (ஹீரோயிக்)" msgstr "Heroic"
#: data/gtk/preferences.blp:160 #: data/gtk/preferences.blp:160
msgid "Import Epic Games" msgid "Import Epic Games"
@@ -262,57 +261,61 @@ msgid "Import GOG Games"
msgstr "GOG விளையாட்டுகளை இறக்குமதி செய்யவும்" msgstr "GOG விளையாட்டுகளை இறக்குமதி செய்யவும்"
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Amazon Games"
msgstr "Steam விளையாட்டுகளை இறக்குமதி செய்யவும்"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "பக்க ஏற்றப்பட்ட விளையாட்டுகளை இறக்குமதி செய்யவும்" msgstr "பக்க ஏற்றப்பட்ட விளையாட்டுகளை இறக்குமதி செய்யவும்"
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:197
msgid "Bottles" msgid "Bottles"
msgstr "Bottles (பாட்டில்கள்)" msgstr "பாட்டில்கள்"
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:211
msgid "itch" msgid "itch"
msgstr "அரிப்பு (itch)" msgstr "itch"
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:225
msgid "Legendary" msgid "Legendary"
msgstr "பழம்பெரும்" msgstr "Legendary"
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:239
msgid "Flatpak" msgid "Flatpak"
msgstr "" msgstr "Flatpak"
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:252
#, fuzzy
#| msgid "Game Launcher"
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "விளையாட்டு துவக்கி" msgstr "விளையாட்டு துவக்கிகளை இறக்குமதி செய்"
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:265
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "ஸ்டீம்கிரிட் டிபி (SteamGridDB)" msgstr "SteamGridDB"
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:269
msgid "Authentication" msgid "Authentication"
msgstr "அங்கீகாரம்" msgstr "அங்கீகாரம்"
#: data/gtk/preferences.blp:263 #: data/gtk/preferences.blp:272
msgid "API Key" msgid "API Key"
msgstr "API விசை" msgstr "API விசை"
#: data/gtk/preferences.blp:271 #: data/gtk/preferences.blp:280
msgid "Use SteamGridDB" msgid "Use SteamGridDB"
msgstr "ஸ்டீம்கிரிட் டிபி (SteamGridDB) ஐப் பயன்படுத்தவும்" msgstr "SteamGridDB ஐப் பயன்படுத்தவும்"
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:281
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "" msgstr ""
"விளையாட்டுகளைச் சேர்க்கும் போது அல்லது இறக்குமதி செய்யும் போது படங்களைப் பதிவிறக்கவும்" "விளையாட்டுகளைச் சேர்க்கும் போது அல்லது இறக்குமதி செய்யும் போது படங்களைப் பதிவிறக்கவும்"
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:290
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "அதிகாரப்பூர்வ படங்களை விட முன்னுரிமை" msgstr "அதிகாரப்பூர்வ படங்களை விட முன்னுரிமை"
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:299
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "இயங்குபடம் செய்யப்பட்ட படங்களுக்கு முன்னுரிமை கொடுங்கள்" msgstr "இயங்குபடம் செய்யப்பட்ட படங்களுக்கு முன்னுரிமை கொடுங்கள்"
@@ -401,7 +404,7 @@ msgid "About Cartridges"
msgstr "கார்ட்ரிட்ஜ்கள் பற்றி" 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "K.B.Dharun Krishna <kbdharunkrishna@gmail.com>" msgstr "K.B.Dharun Krishna <kbdharunkrishna@gmail.com>"
@@ -477,15 +480,15 @@ msgstr ""
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "விளையாட்டைச் சேர்க்க முடியவில்லை" msgstr "விளையாட்டைச் சேர்க்க முடியவில்லை"
#: src/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "விளையாட்டு தலைப்பு காலியாக இருக்கக்கூடாது." msgstr "விளையாட்டு தலைப்பு காலியாக இருக்கக்கூடாது."
#: src/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "இயங்கக்கூடியது காலியாக இருக்க முடியாது." msgstr "இயங்கக்கூடியது காலியாக இருக்க முடியாது."
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "விருப்பங்களைப் பயன்படுத்த முடியவில்லை" msgstr "விருப்பங்களைப் பயன்படுத்த முடியவில்லை"
@@ -507,55 +510,43 @@ msgstr "{} மறைக்கப்படாதது"
msgid "{} removed" msgid "{} removed"
msgstr "{} அகற்றப்பட்டது" msgstr "{} அகற்றப்பட்டது"
#: src/preferences.py:111 #: src/preferences.py:112
msgid "All games removed" msgid "All games removed"
msgstr "அனைத்து விளையாட்டுகளும் அகற்றப்பட்டன" msgstr "அனைத்து விளையாட்டுகளும் அகற்றப்பட்டன"
#: src/preferences.py:159 #: src/preferences.py:160
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr "SteamGridDB ஐப் பயன்படுத்த API விசை தேவை. நீங்கள் ஒன்றை {}இங்கே{} உருவாக்கலாம்."
"ஸ்டீம்கிரிட் டிபி (SteamGridDB) ஐப் பயன்படுத்த API விசை தேவை. நீங்கள் ஒன்றை {}இங்கே{} "
"உருவாக்கலாம்."
#: src/preferences.py:284 #: src/preferences.py:285
#, fuzzy
#| msgid "Installation Not Found"
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "நிறுவல் கிடைக்கவில்லை" msgstr "நிறுவல் கிடைக்கவில்லை"
#: src/preferences.py:286 #: src/preferences.py:287
#, fuzzy
#| msgid "Select the {} data directory."
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "{} தரவு கோப்பகத்தைத் தேர்ந்தெடுக்கவும்." msgstr "சரியான கோப்பகத்தைத் தேர்ந்தெடுக்கவும்."
#: src/preferences.py:348 #: src/preferences.py:349
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "" msgstr "தவறான கோப்பகம்"
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/preferences.py:353
#, fuzzy
#| msgid "Select the {} data directory."
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "{} தரவு கோப்பகத்தைத் தேர்ந்தெடுக்கவும்." msgstr "{} கேச் கோப்பகத்தைத் தேர்ந்தெடுக்கவும்."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/preferences.py:356
#, fuzzy
#| msgid "Select the {} configuration directory."
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "{} உள்ளமைவு கோப்பகத்தைத் தேர்ந்தெடுக்கவும்." msgstr "{} கட்டமைப்பு கோப்பகத்தைத் தேர்ந்தெடுக்கவும்."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/preferences.py:359
#, fuzzy
#| msgid "Select the {} data directory."
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "{} தரவு கோப்பகத்தைத் தேர்ந்தெடுக்கவும்." msgstr "{} தரவு கோப்பகத்தைத் தேர்ந்தெடுக்கவும்."
#: src/preferences.py:364 #: src/preferences.py:365
msgid "Set Location" msgid "Set Location"
msgstr "இருப்பிடத்தை அமைக்கவும்" msgstr "இருப்பிடத்தை அமைக்கவும்"
@@ -565,7 +556,7 @@ msgstr "நிராகரி"
#: src/store/managers/sgdb_manager.py:47 #: src/store/managers/sgdb_manager.py:47
msgid "Couldn't Authenticate SteamGridDB" msgid "Couldn't Authenticate SteamGridDB"
msgstr "ஸ்டீம்கிரிட் டிபி (SteamGridDB) ஐ அங்கீகரிக்க முடியவில்லை" msgstr "SteamGridDB ஐ அங்கீகரிக்க முடியவில்லை"
#: src/store/managers/sgdb_manager.py:48 #: src/store/managers/sgdb_manager.py:48
msgid "Verify your API key in preferences" msgid "Verify your API key in preferences"

122
po/tr.po
View File

@@ -6,8 +6,8 @@ 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-07-05 14:36+0200\n" "POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-05-26 18:10+0000\n" "PO-Revision-Date: 2023-07-15 22:51+0000\n"
"Last-Translator: Sabri Ünal <libreajans@gmail.com>\n" "Last-Translator: Sabri Ünal <libreajans@gmail.com>\n"
"Language-Team: Turkish <https://hosted.weblate.org/projects/cartridges/" "Language-Team: Turkish <https://hosted.weblate.org/projects/cartridges/"
"cartridges/tr/>\n" "cartridges/tr/>\n"
@@ -16,11 +16,11 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n" "Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.18-dev\n" "X-Generator: Weblate 5.0-dev\n"
#: 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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:170
msgid "Cartridges" msgid "Cartridges"
msgstr "Kartuşlar" msgstr "Kartuşlar"
@@ -34,7 +34,9 @@ msgid "Launch all your games"
msgstr "Tüm oyunlarınızı başlatın" msgstr "Tüm oyunlarınızı başlatın"
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" #, fuzzy
#| msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;"
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "oyun;başlatıcı;steam;lutris;heroic;bottles;itch;" msgstr "oyun;başlatıcı;steam;lutris;heroic;bottles;itch;"
#: data/hu.kramo.Cartridges.metainfo.xml.in:9 #: data/hu.kramo.Cartridges.metainfo.xml.in:9
@@ -62,7 +64,7 @@ msgid "Game Details"
msgstr "Oyun Ayrıntıları" msgstr "Oyun Ayrıntıları"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:239 #: src/details_window.py:241
msgid "Preferences" msgid "Preferences"
msgstr "Tercihler" msgstr "Tercihler"
@@ -145,7 +147,7 @@ msgstr "Tercihleri göster"
msgid "Shortcuts" msgid "Shortcuts"
msgstr "Kısayollar" msgstr "Kısayollar"
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo" msgid "Undo"
msgstr "Geri Al" msgstr "Geri Al"
@@ -173,7 +175,7 @@ msgstr "Gizli oyunları göster"
msgid "Remove game" msgid "Remove game"
msgstr "Oyunu kaldır" msgstr "Oyunu kaldır"
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
msgid "Behavior" msgid "Behavior"
msgstr "Davranış" msgstr "Davranış"
@@ -224,33 +226,27 @@ msgid "Steam"
msgstr "Steam" msgstr "Steam"
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:243
#, fuzzy
#| msgid "itch Install Location"
msgid "Install Location" msgid "Install Location"
msgstr "itch Kurulu Konumu" msgstr "Kurulu Konumu"
#: data/gtk/preferences.blp:106 #: data/gtk/preferences.blp:106
msgid "Lutris" msgid "Lutris"
msgstr "Lutris" msgstr "Lutris"
#: data/gtk/preferences.blp:119 #: data/gtk/preferences.blp:119
#, fuzzy
#| msgid "Lutris Cache Location"
msgid "Cache Location" msgid "Cache Location"
msgstr "Lutris Önbellek Konumu" msgstr "Önbellek Konumu"
#: data/gtk/preferences.blp:128 #: data/gtk/preferences.blp:128
msgid "Import Steam Games" msgid "Import Steam Games"
msgstr "Steam Oyunlarını İçe Aktar" msgstr "Steam Oyunlarını İçe Aktar"
#: data/gtk/preferences.blp:137 #: data/gtk/preferences.blp:137
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Flatpak Games" msgid "Import Flatpak Games"
msgstr "Steam Oyunlarını İçe Aktar" msgstr "Flatpak Oyunlarını İçe Aktarın"
#: data/gtk/preferences.blp:147 #: data/gtk/preferences.blp:147
msgid "Heroic" msgid "Heroic"
@@ -265,56 +261,60 @@ msgid "Import GOG Games"
msgstr "GOG Oyunlarını İçe Aktar" msgstr "GOG Oyunlarını İçe Aktar"
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Amazon Games"
msgstr "Steam Oyunlarını İçe Aktar"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "Yandan Yüklenmiş Oyunları İçe Aktar" msgstr "Yandan Yüklenmiş Oyunları İçe Aktar"
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:197
msgid "Bottles" msgid "Bottles"
msgstr "Şişeler" msgstr "Şişeler"
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:211
msgid "itch" msgid "itch"
msgstr "itch" msgstr "itch"
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:225
msgid "Legendary" msgid "Legendary"
msgstr "" msgstr "Efsanevi"
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:239
msgid "Flatpak" msgid "Flatpak"
msgstr "" msgstr "Flatpak"
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:252
#, fuzzy
#| msgid "Game Launcher"
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "Oyun Başlatıcı" msgstr "Oyun Başlatıcıları İçe Aktar"
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:265
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "SteamGridDB" msgstr "SteamGridDB"
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:269
msgid "Authentication" msgid "Authentication"
msgstr "Kimlik Doğrulaması" msgstr "Kimlik Doğrulaması"
#: data/gtk/preferences.blp:263 #: data/gtk/preferences.blp:272
msgid "API Key" msgid "API Key"
msgstr "API anahtarı" msgstr "API anahtarı"
#: data/gtk/preferences.blp:271 #: data/gtk/preferences.blp:280
msgid "Use SteamGridDB" msgid "Use SteamGridDB"
msgstr "SteamGridDB Kullan" msgstr "SteamGridDB Kullan"
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:281
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "Oyun eklerken veya içe aktarırken görüntüleri indir" msgstr "Oyun eklerken veya içe aktarırken görüntüleri indir"
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:290
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "Resmî Görsellere Yeğle" msgstr "Resmî Görsellere Yeğle"
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:299
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "Hareketli Görselleri Yeğle" msgstr "Hareketli Görselleri Yeğle"
@@ -403,7 +403,7 @@ msgid "About Cartridges"
msgstr "Kartuşlar Hakkında" msgstr "Kartuşlar Hakkında"
#. 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "Sabri Ünal <libreajans@gmail.com>" msgstr "Sabri Ünal <libreajans@gmail.com>"
@@ -479,15 +479,15 @@ msgstr ""
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "Oyun Eklenemedi" msgstr "Oyun Eklenemedi"
#: src/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "Oyun başlığı boş olamaz." msgstr "Oyun başlığı boş olamaz."
#: src/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "Çalıştırılabilir boş olamaz." msgstr "Çalıştırılabilir boş olamaz."
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "Tercihler Uygulanamadı" msgstr "Tercihler Uygulanamadı"
@@ -509,55 +509,45 @@ msgstr "{} görünür"
msgid "{} removed" msgid "{} removed"
msgstr "{} kaldırıldı" msgstr "{} kaldırıldı"
#: src/preferences.py:111 #: src/preferences.py:112
msgid "All games removed" msgid "All games removed"
msgstr "Tüm oyunlar kaldırıldı" msgstr "Tüm oyunlar kaldırıldı"
#: src/preferences.py:159 #: src/preferences.py:160
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr ""
"SteamGridDBʼyi kullanmak için API anahtarı gereklidir. {}Buradan{} bir tane " "SteamGridDBʼyi kullanmak için API anahtarı gereklidir. {}Buradan{} bir tane "
"oluşturabilirsiniz." "oluşturabilirsiniz."
#: src/preferences.py:284 #: src/preferences.py:285
#, fuzzy
#| msgid "Installation Not Found"
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "Kurulum Bulunamadı" msgstr "Kurulum Bulunamadı"
#: src/preferences.py:286 #: src/preferences.py:287
#, fuzzy
#| msgid "Select the {} data directory."
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "{} veri dizinini seç." msgstr "Geçerli bir dizin seçin."
#: src/preferences.py:348 #: src/preferences.py:349
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "" msgstr "Geçersiz Dizin"
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/preferences.py:353
#, fuzzy
#| msgid "Select the {} data directory."
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "{} veri dizinini seç." msgstr "{} önbellek dizinini seç."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/preferences.py:356
#, fuzzy
#| msgid "Select the {} configuration directory."
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "{} yapılandırma dizinini seç." msgstr "{} yapılandırma dizinini seç."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/preferences.py:359
#, fuzzy
#| msgid "Select the {} data directory."
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "{} veri dizinini seç." msgstr "{} veri dizinini seç."
#: src/preferences.py:364 #: src/preferences.py:365
msgid "Set Location" msgid "Set Location"
msgstr "Konum Ayarla" msgstr "Konum Ayarla"
@@ -566,14 +556,12 @@ msgid "Dismiss"
msgstr "Vazgeç" msgstr "Vazgeç"
#: src/store/managers/sgdb_manager.py:47 #: src/store/managers/sgdb_manager.py:47
#, fuzzy
#| msgid "Couldn't Connect to SteamGridDB"
msgid "Couldn't Authenticate SteamGridDB" msgid "Couldn't Authenticate SteamGridDB"
msgstr "SteamGridDBʼye bağlanılamadı" msgstr "SteamGridDB Kimlik Doğrulaması Yapılamadı"
#: src/store/managers/sgdb_manager.py:48 #: src/store/managers/sgdb_manager.py:48
msgid "Verify your API key in preferences" msgid "Verify your API key in preferences"
msgstr "" msgstr "Tercihlerde API anahtarınızı doğrulayın"
#, fuzzy #, fuzzy
#~| msgid "Cache Not Found" #~| msgid "Cache Not Found"

View File

@@ -9,8 +9,8 @@ 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-07-05 14:36+0200\n" "POT-Creation-Date: 2023-07-25 20:33+0200\n"
"PO-Revision-Date: 2023-07-01 22:51+0000\n" "PO-Revision-Date: 2023-07-08 14:52+0000\n"
"Last-Translator: Dan <jonweblin2205@protonmail.com>\n" "Last-Translator: Dan <jonweblin2205@protonmail.com>\n"
"Language-Team: Ukrainian <https://hosted.weblate.org/projects/cartridges/" "Language-Team: Ukrainian <https://hosted.weblate.org/projects/cartridges/"
"cartridges/uk/>\n" "cartridges/uk/>\n"
@@ -24,7 +24,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:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:162 #: src/main.py:170
msgid "Cartridges" msgid "Cartridges"
msgstr "Картриджі" msgstr "Картриджі"
@@ -38,7 +38,9 @@ msgid "Launch all your games"
msgstr "Запустіть усі свої ігри" msgstr "Запустіть усі свої ігри"
#: data/hu.kramo.Cartridges.desktop.in:11 #: data/hu.kramo.Cartridges.desktop.in:11
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;" #, fuzzy
#| msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;"
msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
msgstr "ігри;лаунчер;steam;lutris;heroic;bottles;itch;" msgstr "ігри;лаунчер;steam;lutris;heroic;bottles;itch;"
#: data/hu.kramo.Cartridges.metainfo.xml.in:9 #: data/hu.kramo.Cartridges.metainfo.xml.in:9
@@ -66,7 +68,7 @@ msgid "Game Details"
msgstr "Подробиці гри" msgstr "Подробиці гри"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416 #: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:416
#: src/details_window.py:239 #: src/details_window.py:241
msgid "Preferences" msgid "Preferences"
msgstr "Параметри" msgstr "Параметри"
@@ -149,7 +151,7 @@ msgstr "Показати параметри"
msgid "Shortcuts" msgid "Shortcuts"
msgstr "Ярлики" msgstr "Ярлики"
#: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:112 #: data/gtk/help-overlay.blp:34 src/game.py:102 src/preferences.py:113
msgid "Undo" msgid "Undo"
msgstr "Відмінити" msgstr "Відмінити"
@@ -177,7 +179,7 @@ msgstr "Показати приховані ігри"
msgid "Remove game" msgid "Remove game"
msgstr "Видалити гру" msgstr "Видалити гру"
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:268 #: data/gtk/preferences.blp:13 data/gtk/preferences.blp:277
msgid "Behavior" msgid "Behavior"
msgstr "Поведінка" msgstr "Поведінка"
@@ -226,9 +228,9 @@ msgid "Steam"
msgstr "Steam" msgstr "Steam"
#: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110 #: data/gtk/preferences.blp:96 data/gtk/preferences.blp:110
#: data/gtk/preferences.blp:151 data/gtk/preferences.blp:192 #: data/gtk/preferences.blp:151 data/gtk/preferences.blp:201
#: data/gtk/preferences.blp:206 data/gtk/preferences.blp:220 #: data/gtk/preferences.blp:215 data/gtk/preferences.blp:229
#: data/gtk/preferences.blp:234 #: data/gtk/preferences.blp:243
msgid "Install Location" msgid "Install Location"
msgstr "Місце встановлення" msgstr "Місце встановлення"
@@ -261,54 +263,60 @@ msgid "Import GOG Games"
msgstr "Імпорт ігор GOG" msgstr "Імпорт ігор GOG"
#: data/gtk/preferences.blp:178 #: data/gtk/preferences.blp:178
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Amazon Games"
msgstr "Імпорт ігор Steam"
#: data/gtk/preferences.blp:187
msgid "Import Sideloaded Games" msgid "Import Sideloaded Games"
msgstr "Імпорт сторонніх ігор" msgstr "Імпорт сторонніх ігор"
#: data/gtk/preferences.blp:188 #: data/gtk/preferences.blp:197
msgid "Bottles" msgid "Bottles"
msgstr "Bottles" msgstr "Bottles"
#: data/gtk/preferences.blp:202 #: data/gtk/preferences.blp:211
msgid "itch" msgid "itch"
msgstr "itch" msgstr "itch"
#: data/gtk/preferences.blp:216 #: data/gtk/preferences.blp:225
msgid "Legendary" msgid "Legendary"
msgstr "Легендарний" msgstr "Легендарний"
#: data/gtk/preferences.blp:230 #: data/gtk/preferences.blp:239
msgid "Flatpak" msgid "Flatpak"
msgstr "Flatpak" msgstr "Flatpak"
#: data/gtk/preferences.blp:243 #: data/gtk/preferences.blp:252
msgid "Import Game Launchers" msgid "Import Game Launchers"
msgstr "Імпортувати ігрові лаунчери" msgstr "Імпортувати ігрові лаунчери"
#: data/gtk/preferences.blp:256 #: data/gtk/preferences.blp:265
msgid "SteamGridDB" msgid "SteamGridDB"
msgstr "SteamGridDB" msgstr "SteamGridDB"
#: data/gtk/preferences.blp:260 #: data/gtk/preferences.blp:269
msgid "Authentication" msgid "Authentication"
msgstr "Аутентифікація" msgstr "Аутентифікація"
#: data/gtk/preferences.blp:263 #: data/gtk/preferences.blp:272
msgid "API Key" msgid "API Key"
msgstr "Ключ API" msgstr "Ключ API"
#: data/gtk/preferences.blp:271 #: data/gtk/preferences.blp:280
msgid "Use SteamGridDB" msgid "Use SteamGridDB"
msgstr "Використовувати SteamGridDB" msgstr "Використовувати SteamGridDB"
#: data/gtk/preferences.blp:272 #: data/gtk/preferences.blp:281
msgid "Download images when adding or importing games" msgid "Download images when adding or importing games"
msgstr "Завантаження зображень під час додавання або імпорту ігор" msgstr "Завантаження зображень під час додавання або імпорту ігор"
#: data/gtk/preferences.blp:281 #: data/gtk/preferences.blp:290
msgid "Prefer Over Official Images" msgid "Prefer Over Official Images"
msgstr "Надавати перевагу офіційним зображенням" msgstr "Надавати перевагу офіційним зображенням"
#: data/gtk/preferences.blp:290 #: data/gtk/preferences.blp:299
msgid "Prefer Animated Images" msgid "Prefer Animated Images"
msgstr "Надавати перевагу анімованим зображенням" msgstr "Надавати перевагу анімованим зображенням"
@@ -397,7 +405,7 @@ msgid "About Cartridges"
msgstr "Про Картриджі" 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:180 #: src/main.py:188
msgid "translator_credits" msgid "translator_credits"
msgstr "kefir2105" msgstr "kefir2105"
@@ -474,15 +482,15 @@ msgstr ""
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "Не вдалося додати гру" msgstr "Не вдалося додати гру"
#: src/details_window.py:147 src/details_window.py:181 #: src/details_window.py:147 src/details_window.py:183
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "Назва гри не може бути порожньою." msgstr "Назва гри не може бути порожньою."
#: src/details_window.py:153 src/details_window.py:189 #: src/details_window.py:153 src/details_window.py:191
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "Виконуваний файл не може бути порожнім." msgstr "Виконуваний файл не може бути порожнім."
#: src/details_window.py:180 src/details_window.py:188 #: src/details_window.py:182 src/details_window.py:190
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "Не вдалося застосувати параметри" msgstr "Не вдалося застосувати параметри"
@@ -504,49 +512,45 @@ msgstr "{} показано"
msgid "{} removed" msgid "{} removed"
msgstr "{} видалено" msgstr "{} видалено"
#: src/preferences.py:111 #: src/preferences.py:112
msgid "All games removed" msgid "All games removed"
msgstr "Всі ігри видалено" msgstr "Всі ігри видалено"
#: src/preferences.py:159 #: src/preferences.py:160
msgid "" msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}." "An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr "" msgstr ""
"Для використання SteamGridDB потрібен ключ API. Ви можете згенерувати його {}" "Для використання SteamGridDB потрібен ключ API. Ви можете згенерувати його {}"
"тут{}." "тут{}."
#: src/preferences.py:284 #: src/preferences.py:285
msgid "Installation Not Found" msgid "Installation Not Found"
msgstr "Встановлення не знайдено" msgstr "Встановлення не знайдено"
#: src/preferences.py:286 #: src/preferences.py:287
msgid "Select a valid directory." msgid "Select a valid directory."
msgstr "Виберіть правильний каталог." msgstr "Виберіть правильний каталог."
#: src/preferences.py:348 #: src/preferences.py:349
msgid "Invalid Directory" msgid "Invalid Directory"
msgstr "Неправильний каталог" msgstr "Неправильний каталог"
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:352 #: src/preferences.py:353
msgid "Select the {} cache directory." msgid "Select the {} cache directory."
msgstr "Виберіть каталог кешу {}." msgstr "Виберіть каталог кешу {}."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:355 #: src/preferences.py:356
#, fuzzy
#| msgid "Select the {} installation directory."
msgid "Select the {} configuration directory." msgid "Select the {} configuration directory."
msgstr "Виберіть каталог встановлення {}." msgstr "Виберіть каталог конфігурації {}."
#. The variable is the name of the source #. The variable is the name of the source
#: src/preferences.py:358 #: src/preferences.py:359
#, fuzzy
#| msgid "Select the {} cache directory."
msgid "Select the {} data directory." msgid "Select the {} data directory."
msgstr "Виберіть каталог кешу {}." msgstr "Виберіть каталог даних {}."
#: src/preferences.py:364 #: src/preferences.py:365
msgid "Set Location" msgid "Set Location"
msgstr "Встановити місцезнаходження" msgstr "Встановити місцезнаходження"

View File

@@ -19,6 +19,7 @@
import os import os
from time import time from time import time
from typing import Any, Optional
from gi.repository import Adw, Gio, GLib, Gtk from gi.repository import Adw, Gio, GLib, Gtk
from PIL import Image from PIL import Image
@@ -52,19 +53,18 @@ class DetailsWindow(Adw.Window):
apply_button = Gtk.Template.Child() apply_button = Gtk.Template.Child()
cover_changed = False cover_changed: bool = False
def __init__(self, game=None, **kwargs): def __init__(self, game: Optional[Game] = None, **kwargs: Any):
super().__init__(**kwargs) super().__init__(**kwargs)
self.win = shared.win self.game: Game = game
self.game = game self.game_cover: GameCover = GameCover({self.cover})
self.game_cover = GameCover({self.cover})
self.set_transient_for(self.win) self.set_transient_for(shared.win)
if self.game: if self.game:
self.set_title(_("Edit Game Details")) self.set_title(_("Game Details"))
self.name.set_text(self.game.name) self.name.set_text(self.game.name)
if self.game.developer: if self.game.developer:
self.developer.set_text(self.game.developer) self.developer.set_text(self.game.developer)
@@ -76,7 +76,7 @@ class DetailsWindow(Adw.Window):
self.cover_button_delete_revealer.set_reveal_child(True) self.cover_button_delete_revealer.set_reveal_child(True)
else: else:
self.set_title(_("Add New Game")) self.set_title(_("Add New Game"))
self.apply_button.set_label(_("Confirm")) self.apply_button.set_label(_("Add"))
image_filter = Gtk.FileFilter(name=_("Images")) image_filter = Gtk.FileFilter(name=_("Images"))
for extension in Image.registered_extensions(): for extension in Image.registered_extensions():
@@ -114,29 +114,36 @@ class DetailsWindow(Adw.Window):
self.exec_info_label.set_label(exec_info_text) self.exec_info_label.set_label(exec_info_text)
def clear_info_selection(*_args): self.exec_info_popover.update_property(
self.exec_info_label.select_region(-1, -1) (Gtk.AccessibleProperty.LABEL,),
(
exec_info_text.replace("<tt>", "").replace("</tt>", ""),
), # Remove formatting, else the screen reader reads it
)
self.exec_info_popover.connect("show", clear_info_selection) def set_exec_info_a11y_label(*_args: Any) -> None:
self.set_focus(self.exec_info_popover)
self.exec_info_popover.connect("show", set_exec_info_a11y_label)
self.cover_button_delete.connect("clicked", self.delete_pixbuf) self.cover_button_delete.connect("clicked", self.delete_pixbuf)
self.cover_button_edit.connect("clicked", self.choose_cover) self.cover_button_edit.connect("clicked", self.choose_cover)
self.apply_button.connect("clicked", self.apply_preferences) self.apply_button.connect("clicked", self.apply_preferences)
self.name.connect("activate", self.focus_executable) self.name.connect("entry-activated", self.focus_executable)
self.developer.connect("activate", self.focus_executable) self.developer.connect("entry-activated", self.focus_executable)
self.executable.connect("activate", self.apply_preferences) self.executable.connect("entry-activated", self.apply_preferences)
self.set_focus(self.name) self.set_focus(self.name)
self.present() self.present()
def delete_pixbuf(self, *_args): def delete_pixbuf(self, *_args: Any) -> None:
self.game_cover.new_cover() self.game_cover.new_cover()
self.cover_button_delete_revealer.set_reveal_child(False) self.cover_button_delete_revealer.set_reveal_child(False)
self.cover_changed = True self.cover_changed = True
def apply_preferences(self, *_args): def apply_preferences(self, *_args: Any) -> None:
final_name = self.name.get_text() final_name = self.name.get_text()
final_developer = self.developer.get_text() final_developer = self.developer.get_text()
final_executable = self.executable.get_text() final_executable = self.executable.get_text()
@@ -155,20 +162,22 @@ class DetailsWindow(Adw.Window):
return return
# Increment the number after the game id (eg. imported_1, imported_2) # Increment the number after the game id (eg. imported_1, imported_2)
source_id = "imported"
numbers = [0] numbers = [0]
game_id: str game_id: str
for game_id in shared.store.games: for game_id in shared.store.source_games.get(source_id, set()):
prefix = "imported_" prefix = "imported_"
if not game_id.startswith(prefix): if not game_id.startswith(prefix):
continue continue
numbers.append(int(game_id.replace(prefix, "", 1))) numbers.append(int(game_id.replace(prefix, "", 1)))
game_number = max(numbers) + 1 game_number = max(numbers) + 1
self.game = Game( self.game = Game(
{ {
"game_id": f"imported_{game_number}", "game_id": f"imported_{game_number}",
"hidden": False, "hidden": False,
"source": "imported", "source": source_id,
"added": int(time()), "added": int(time()),
} }
) )
@@ -194,10 +203,10 @@ class DetailsWindow(Adw.Window):
self.game.developer = final_developer or None self.game.developer = final_developer or None
self.game.executable = final_executable self.game.executable = final_executable
if self.game.game_id in self.win.game_covers.keys(): if self.game.game_id in shared.win.game_covers.keys():
self.win.game_covers[self.game.game_id].animation = None shared.win.game_covers[self.game.game_id].animation = None
self.win.game_covers[self.game.game_id] = self.game_cover shared.win.game_covers[self.game.game_id] = self.game_cover
if self.cover_changed: if self.cover_changed:
save_cover( save_cover(
@@ -220,9 +229,9 @@ class DetailsWindow(Adw.Window):
self.game_cover.pictures.remove(self.cover) self.game_cover.pictures.remove(self.cover)
self.close() self.close()
self.win.show_details_view(self.game) shared.win.show_details_view(self.game)
def update_cover_callback(self, manager: SGDBManager): def update_cover_callback(self, manager: SGDBManager) -> None:
# Set the game as not loading # Set the game as not loading
self.game.set_loading(-1) self.game.set_loading(-1)
self.game.update() self.game.update()
@@ -239,25 +248,25 @@ class DetailsWindow(Adw.Window):
_("Preferences"), _("Preferences"),
).connect("response", self.update_cover_error_response) ).connect("response", self.update_cover_error_response)
def update_cover_error_response(self, _widget, response): def update_cover_error_response(self, _widget: Any, response: str) -> None:
if response == "open_preferences": if response == "open_preferences":
shared.win.get_application().on_preferences_action(page_name="sgdb") shared.win.get_application().on_preferences_action(page_name="sgdb")
def focus_executable(self, *_args): def focus_executable(self, *_args: Any) -> None:
self.set_focus(self.executable) self.set_focus(self.executable)
def toggle_loading(self): def toggle_loading(self) -> None:
self.apply_button.set_sensitive(not self.apply_button.get_sensitive()) self.apply_button.set_sensitive(not self.apply_button.get_sensitive())
self.spinner.set_spinning(not self.spinner.get_spinning()) self.spinner.set_spinning(not self.spinner.get_spinning())
self.cover_overlay.set_opacity(not self.cover_overlay.get_opacity()) self.cover_overlay.set_opacity(not self.cover_overlay.get_opacity())
def set_cover(self, _source, result, *_args): def set_cover(self, _source: Any, result: Gio.Task, *_args: Any) -> None:
try: try:
path = self.file_dialog.open_finish(result).get_path() path = self.file_dialog.open_finish(result).get_path()
except GLib.GError: except GLib.GError:
return return
def resize(): def resize() -> None:
if cover := resize_cover(path): if cover := resize_cover(path):
self.game_cover.new_cover(cover) self.game_cover.new_cover(cover)
self.cover_button_delete_revealer.set_reveal_child(True) self.cover_button_delete_revealer.set_reveal_child(True)
@@ -267,5 +276,5 @@ class DetailsWindow(Adw.Window):
self.toggle_loading() self.toggle_loading()
GLib.Thread.new(None, resize) GLib.Thread.new(None, resize)
def choose_cover(self, *_args): def choose_cover(self, *_args: Any) -> None:
self.file_dialog.open(self, None, self.set_cover) self.file_dialog.open(self, None, self.set_cover)

View File

@@ -8,14 +8,14 @@ class ErrorProducer:
Specifies the report_error and collect_errors methods in a thread-safe manner. Specifies the report_error and collect_errors methods in a thread-safe manner.
""" """
errors: list[Exception] = None errors: list[Exception]
errors_lock: Lock = None errors_lock: Lock
def __init__(self) -> None: def __init__(self) -> None:
self.errors = [] self.errors = []
self.errors_lock = Lock() self.errors_lock = Lock()
def report_error(self, error: Exception): def report_error(self, error: Exception) -> None:
"""Report an error""" """Report an error"""
with self.errors_lock: with self.errors_lock:
self.errors.append(error) self.errors.append(error)

View File

@@ -1,4 +1,4 @@
from typing import Iterable from typing import Iterable, Optional
class FriendlyError(Exception): class FriendlyError(Exception):
@@ -27,8 +27,8 @@ class FriendlyError(Exception):
self, self,
title: str, title: str,
subtitle: str, subtitle: str,
title_args: Iterable[str] = None, title_args: Optional[Iterable[str]] = None,
subtitle_args: Iterable[str] = None, subtitle_args: Optional[Iterable[str]] = None,
) -> None: ) -> None:
"""Create a friendly error """Create a friendly error

View File

@@ -23,10 +23,12 @@ import shlex
import subprocess import subprocess
from pathlib import Path from pathlib import Path
from time import time from time import time
from typing import Any, Optional
from gi.repository import Adw, GLib, GObject, Gtk from gi.repository import Adw, GLib, GObject, Gtk
from src import shared from src import shared
from src.game_cover import GameCover
# pylint: disable=too-many-instance-attributes # pylint: disable=too-many-instance-attributes
@@ -45,23 +47,23 @@ class Game(Gtk.Box):
game_options = Gtk.Template.Child() game_options = Gtk.Template.Child()
hidden_game_options = Gtk.Template.Child() hidden_game_options = Gtk.Template.Child()
loading = 0 loading: int = 0
filtered = False filtered: bool = False
added = None added: int
executable = None executable: str
game_id = None game_id: str
source = None source: str
hidden = False hidden: bool = False
last_played = 0 last_played: int = 0
name = None name: str
developer = None developer: Optional[str] = None
removed = False removed: bool = False
blacklisted = False blacklisted: bool = False
game_cover = None game_cover: GameCover = None
version = 0 version: int = 0
def __init__(self, data, **kwargs): def __init__(self, data: dict[str, Any], **kwargs: Any) -> None:
super().__init__(**kwargs) super().__init__(**kwargs)
self.win = shared.win self.win = shared.win
@@ -69,6 +71,7 @@ class Game(Gtk.Box):
self.version = shared.SPEC_VERSION self.version = shared.SPEC_VERSION
self.update_values(data) self.update_values(data)
self.base_source = self.source.split("_")[0]
self.set_play_icon() self.set_play_icon()
@@ -81,20 +84,20 @@ class Game(Gtk.Box):
shared.schema.connect("changed", self.schema_changed) shared.schema.connect("changed", self.schema_changed)
def update_values(self, data): def update_values(self, data: dict[str, Any]) -> None:
for key, value in data.items(): for key, value in data.items():
# Convert executables to strings # Convert executables to strings
if key == "executable" and isinstance(value, list): if key == "executable" and isinstance(value, list):
value = shlex.join(value) value = shlex.join(value)
setattr(self, key, value) setattr(self, key, value)
def update(self): def update(self) -> None:
self.emit("update-ready", {}) self.emit("update-ready", {})
def save(self): def save(self) -> None:
self.emit("save-ready", {}) self.emit("save-ready", {})
def create_toast(self, title, action=None): def create_toast(self, title: str, action: Optional[str] = None) -> None:
toast = Adw.Toast.new(title.format(self.name)) toast = Adw.Toast.new(title.format(self.name))
toast.set_priority(Adw.ToastPriority.HIGH) toast.set_priority(Adw.ToastPriority.HIGH)
@@ -110,7 +113,7 @@ class Game(Gtk.Box):
self.win.toast_overlay.add_toast(toast) self.win.toast_overlay.add_toast(toast)
def launch(self): def launch(self) -> None:
self.last_played = int(time()) self.last_played = int(time())
self.save() self.save()
self.update() self.update()
@@ -125,10 +128,10 @@ class Game(Gtk.Box):
# pylint: disable=consider-using-with # pylint: disable=consider-using-with
subprocess.Popen( subprocess.Popen(
args, args,
cwd=Path.home(), cwd=shared.home,
shell=True, shell=True,
start_new_session=True, start_new_session=True,
creationflags=subprocess.CREATE_NEW_PROCESS_GROUP if os.name == "nt" else 0, creationflags=subprocess.CREATE_NEW_PROCESS_GROUP if os.name == "nt" else 0, # type: ignore
) )
if shared.schema.get_boolean("exit-after-launch"): if shared.schema.get_boolean("exit-after-launch"):
@@ -137,7 +140,7 @@ class Game(Gtk.Box):
# The variable is the title of the game # The variable is the title of the game
self.create_toast(_("{} launched")) self.create_toast(_("{} launched"))
def toggle_hidden(self, toast=True): def toggle_hidden(self, toast: bool = True) -> None:
self.hidden = not self.hidden self.hidden = not self.hidden
self.save() self.save()
@@ -155,7 +158,7 @@ class Game(Gtk.Box):
"hide", "hide",
) )
def remove_game(self): def remove_game(self) -> 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
self.removed = True self.removed = True
self.save() self.save()
@@ -164,55 +167,58 @@ class Game(Gtk.Box):
if self.win.stack.get_visible_child() == self.win.details_view: if self.win.stack.get_visible_child() == self.win.details_view:
self.win.on_go_back_action() self.win.on_go_back_action()
# The variable is the title of the game
self.create_toast( self.create_toast(
_("{} removed").format(GLib.markup_escape_text(self.name)), "remove" # The variable is the title of the game
_("{} removed").format(GLib.markup_escape_text(self.name)),
"remove",
) )
def set_loading(self, state): def set_loading(self, state: int) -> None:
self.loading += state self.loading += state
loading = self.loading > 0 loading = self.loading > 0
self.cover.set_opacity(int(not loading)) self.cover.set_opacity(int(not loading))
self.spinner.set_spinning(loading) self.spinner.set_spinning(loading)
def get_cover_path(self): def get_cover_path(self) -> Optional[Path]:
cover_path = shared.covers_dir / f"{self.game_id}.gif" cover_path = shared.covers_dir / f"{self.game_id}.gif"
if cover_path.is_file(): if cover_path.is_file():
return cover_path return cover_path # type: ignore
cover_path = shared.covers_dir / f"{self.game_id}.tiff" cover_path = shared.covers_dir / f"{self.game_id}.tiff"
if cover_path.is_file(): if cover_path.is_file():
return cover_path return cover_path # type: ignore
return None return None
def toggle_play(self, _widget, _prop1, _prop2, state=True): def toggle_play(
self, _widget: Any, _prop1: Any, _prop2: Any, state: bool = True
) -> None:
if not self.menu_button.get_active(): if not self.menu_button.get_active():
self.play_revealer.set_reveal_child(not state) self.play_revealer.set_reveal_child(not state)
self.menu_revealer.set_reveal_child(not state) self.menu_revealer.set_reveal_child(not state)
def main_button_clicked(self, _widget, button): def main_button_clicked(self, _widget: Any, button: bool) -> None:
if shared.schema.get_boolean("cover-launches-game") ^ button: if shared.schema.get_boolean("cover-launches-game") ^ button:
self.launch() self.launch()
else: else:
self.win.show_details_view(self) self.win.show_details_view(self)
def set_play_icon(self): def set_play_icon(self) -> None:
self.play_button.set_icon_name( self.play_button.set_icon_name(
"help-about-symbolic" "help-about-symbolic"
if shared.schema.get_boolean("cover-launches-game") if shared.schema.get_boolean("cover-launches-game")
else "media-playback-start-symbolic" else "media-playback-start-symbolic"
) )
def schema_changed(self, _settings, key): def schema_changed(self, _settings: Any, key: str) -> None:
if key == "cover-launches-game": if key == "cover-launches-game":
self.set_play_icon() self.set_play_icon()
@GObject.Signal(name="update-ready", arg_types=[object]) @GObject.Signal(name="update-ready", arg_types=[object])
def update_ready(self, _additional_data) -> None: def update_ready(self, _additional_data): # type: ignore
"""Signal emitted when the game needs updating""" """Signal emitted when the game needs updating"""
@GObject.Signal(name="save-ready", arg_types=[object]) @GObject.Signal(name="save-ready", arg_types=[object])
def save_ready(self, _additional_data) -> None: def save_ready(self, _additional_data): # type: ignore
"""Signal emitted when the game needs saving""" """Signal emitted when the game needs saving"""

View File

@@ -17,19 +17,22 @@
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
from gi.repository import Gdk, GdkPixbuf, Gio, GLib from pathlib import Path
from typing import Any, Callable, Optional
from gi.repository import Gdk, GdkPixbuf, Gio, GLib, Gtk
from PIL import Image, ImageFilter, ImageStat from PIL import Image, ImageFilter, ImageStat
from src import shared from src import shared
class GameCover: class GameCover:
texture = None texture: Optional[Gdk.Texture]
blurred = None blurred: Optional[Gdk.Texture]
luminance = None luminance: Optional[tuple[float, float]]
path = None path: Optional[Path]
animation = None animation: Optional[GdkPixbuf.PixbufAnimation]
anim_iter = None anim_iter: Optional[GdkPixbuf.PixbufAnimationIter]
placeholder = Gdk.Texture.new_from_resource( placeholder = Gdk.Texture.new_from_resource(
shared.PREFIX + "/library_placeholder.svg" shared.PREFIX + "/library_placeholder.svg"
@@ -38,21 +41,21 @@ class GameCover:
shared.PREFIX + "/library_placeholder_small.svg" shared.PREFIX + "/library_placeholder_small.svg"
) )
def __init__(self, pictures, path=None): def __init__(self, pictures: set[Gtk.Picture], path: Optional[Path] = None) -> None:
self.pictures = pictures self.pictures = pictures
self.new_cover(path) self.new_cover(path)
# Wrap the function in another one as Gio.Task.run_in_thread does not allow for passing args # Wrap the function in another one as Gio.Task.run_in_thread does not allow for passing args
def create_func(self, path): def create_func(self, path: Optional[Path]) -> Callable:
self.animation = GdkPixbuf.PixbufAnimation.new_from_file(str(path)) self.animation = GdkPixbuf.PixbufAnimation.new_from_file(str(path))
self.anim_iter = self.animation.get_iter() self.anim_iter = self.animation.get_iter()
def wrapper(task, *_args): def wrapper(task: Gio.Task, *_args: Any) -> None:
self.update_animation((task, self.animation)) self.update_animation((task, self.animation))
return wrapper return wrapper
def new_cover(self, path=None): def new_cover(self, path: Optional[Path] = None) -> None:
self.animation = None self.animation = None
self.texture = None self.texture = None
self.blurred = None self.blurred = None
@@ -69,14 +72,14 @@ class GameCover:
if not self.animation: if not self.animation:
self.set_texture(self.texture) self.set_texture(self.texture)
def get_texture(self): def get_texture(self) -> Gdk.Texture:
return ( return (
Gdk.Texture.new_for_pixbuf(self.animation.get_static_image()) Gdk.Texture.new_for_pixbuf(self.animation.get_static_image())
if self.animation if self.animation
else self.texture else self.texture
) )
def get_blurred(self): def get_blurred(self) -> Gdk.Texture:
if not self.blurred: if not self.blurred:
if self.path: if self.path:
with Image.open(self.path) as image: with Image.open(self.path) as image:
@@ -94,24 +97,24 @@ class GameCover:
stat = ImageStat.Stat(image.convert("L")) stat = ImageStat.Stat(image.convert("L"))
# Luminance values for light and dark mode # Luminance values for light and dark mode
self.luminance = [ self.luminance = (
min((stat.mean[0] + stat.extrema[0][0]) / 510, 0.7), min((stat.mean[0] + stat.extrema[0][0]) / 510, 0.7),
max((stat.mean[0] + stat.extrema[0][1]) / 510, 0.3), max((stat.mean[0] + stat.extrema[0][1]) / 510, 0.3),
] )
else: else:
self.blurred = self.placeholder_small self.blurred = self.placeholder_small
self.luminance = (0.3, 0.5) self.luminance = (0.3, 0.5)
return self.blurred return self.blurred
def add_picture(self, picture): def add_picture(self, picture: Gtk.Picture) -> None:
self.pictures.add(picture) self.pictures.add(picture)
if not self.animation: if not self.animation:
self.set_texture(self.texture) self.set_texture(self.texture)
else: else:
self.update_animation((self.task, self.animation)) self.update_animation((self.task, self.animation))
def set_texture(self, texture): def set_texture(self, texture: Gdk.Texture) -> None:
self.pictures.discard( self.pictures.discard(
picture for picture in self.pictures if not picture.is_visible() picture for picture in self.pictures if not picture.is_visible()
) )
@@ -121,13 +124,13 @@ class GameCover:
for picture in self.pictures: for picture in self.pictures:
picture.set_paintable(texture or self.placeholder) picture.set_paintable(texture or self.placeholder)
def update_animation(self, data): def update_animation(self, data: GdkPixbuf.PixbufAnimation) -> None:
if self.animation == data[1]: if self.animation == data[1]:
self.anim_iter.advance() self.anim_iter.advance() # type: ignore
self.set_texture(Gdk.Texture.new_for_pixbuf(self.anim_iter.get_pixbuf())) self.set_texture(Gdk.Texture.new_for_pixbuf(self.anim_iter.get_pixbuf())) # type: ignore
delay_time = self.anim_iter.get_delay_time() delay_time = self.anim_iter.get_delay_time() # type: ignore
GLib.timeout_add( GLib.timeout_add(
20 if delay_time < 20 else delay_time, 20 if delay_time < 20 else delay_time,
self.update_animation, self.update_animation,

View File

@@ -19,6 +19,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
import logging import logging
from typing import Any, Optional
from gi.repository import Adw, GLib, Gtk from gi.repository import Adw, GLib, Gtk
@@ -37,41 +38,49 @@ from src.utils.task import Task
class Importer(ErrorProducer): class Importer(ErrorProducer):
"""A class in charge of scanning sources for games""" """A class in charge of scanning sources for games"""
progressbar = None progressbar: Gtk.ProgressBar
import_statuspage = None import_statuspage: Adw.StatusPage
import_dialog = None import_dialog: Adw.MessageDialog
summary_toast = None summary_toast: Adw.Toast
sources: set[Source] = None sources: set[Source]
n_source_tasks_created: int = 0 n_source_tasks_created: int = 0
n_source_tasks_done: int = 0 n_source_tasks_done: int = 0
n_pipelines_done: int = 0 n_pipelines_done: int = 0
game_pipelines: set[Pipeline] = None game_pipelines: set[Pipeline]
def __init__(self): removed_game_ids: set[str] = set()
imported_game_ids: set[str] = set()
def __init__(self) -> None:
super().__init__() super().__init__()
# TODO: make this stateful
shared.store.new_game_ids = set()
shared.store.duplicate_game_ids = set()
self.game_pipelines = set() self.game_pipelines = set()
self.sources = set() self.sources = set()
@property @property
def n_games_added(self): def n_games_added(self) -> int:
return sum( return sum(
1 if not (pipeline.game.blacklisted or pipeline.game.removed) else 0 1 if not (pipeline.game.blacklisted or pipeline.game.removed) else 0
for pipeline in self.game_pipelines for pipeline in self.game_pipelines
) )
@property @property
def pipelines_progress(self): def pipelines_progress(self) -> float:
progress = sum(pipeline.progress for pipeline in self.game_pipelines) progress = sum(pipeline.progress for pipeline in self.game_pipelines)
try: try:
progress = progress / len(self.game_pipelines) progress = progress / len(self.game_pipelines)
except ZeroDivisionError: except ZeroDivisionError:
progress = 0 progress = 0
return progress return progress # type: ignore
@property @property
def sources_progress(self): def sources_progress(self) -> float:
try: try:
progress = self.n_source_tasks_done / self.n_source_tasks_created progress = self.n_source_tasks_done / self.n_source_tasks_created
except ZeroDivisionError: except ZeroDivisionError:
@@ -79,16 +88,16 @@ class Importer(ErrorProducer):
return progress return progress
@property @property
def finished(self): def finished(self) -> bool:
return ( return (
self.n_source_tasks_created == self.n_source_tasks_done self.n_source_tasks_created == self.n_source_tasks_done
and len(self.game_pipelines) == self.n_pipelines_done and len(self.game_pipelines) == self.n_pipelines_done
) )
def add_source(self, source): def add_source(self, source: Source) -> None:
self.sources.add(source) self.sources.add(source)
def run(self): def run(self) -> None:
"""Use several Gio.Task to import games from added sources""" """Use several Gio.Task to import games from added sources"""
shared.win.get_application().lookup_action("import").set_enabled(False) shared.win.get_application().lookup_action("import").set_enabled(False)
@@ -105,7 +114,7 @@ class Importer(ErrorProducer):
manager.reset_cancellable() manager.reset_cancellable()
for source in self.sources: for source in self.sources:
logging.debug("Importing games from source %s", source.id) logging.debug("Importing games from source %s", source.source_id)
task = Task.new(None, None, self.source_callback, (source,)) task = Task.new(None, None, self.source_callback, (source,))
self.n_source_tasks_created += 1 self.n_source_tasks_created += 1
task.set_task_data((source,)) task.set_task_data((source,))
@@ -113,7 +122,7 @@ class Importer(ErrorProducer):
self.progress_changed_callback() self.progress_changed_callback()
def create_dialog(self): def create_dialog(self) -> None:
"""Create the import dialog""" """Create the import dialog"""
self.progressbar = Gtk.ProgressBar(margin_start=12, margin_end=12) self.progressbar = Gtk.ProgressBar(margin_start=12, margin_end=12)
self.import_statuspage = Adw.StatusPage( self.import_statuspage = Adw.StatusPage(
@@ -130,7 +139,9 @@ class Importer(ErrorProducer):
) )
self.import_dialog.present() self.import_dialog.present()
def source_task_thread_func(self, _task, _obj, data, _cancellable): def source_task_thread_func(
self, _task: Any, _obj: Any, data: tuple, _cancellable: Any
) -> None:
"""Source import task code""" """Source import task code"""
source: Source source: Source
@@ -138,16 +149,16 @@ class Importer(ErrorProducer):
# Early exit if not available or not installed # Early exit if not available or not installed
if not source.is_available: if not source.is_available:
logging.info("Source %s skipped, not available", source.id) logging.info("Source %s skipped, not available", source.source_id)
return return
try: try:
iterator = iter(source) iterator = iter(source)
except UnresolvableLocationError: except UnresolvableLocationError:
logging.info("Source %s skipped, bad location", source.id) logging.info("Source %s skipped, bad location", source.source_id)
return return
# Get games from source # Get games from source
logging.info("Scanning source %s", source.id) logging.info("Scanning source %s", source.source_id)
while True: while True:
# Handle exceptions raised when iterating # Handle exceptions raised when iterating
try: try:
@@ -155,7 +166,7 @@ class Importer(ErrorProducer):
except StopIteration: except StopIteration:
break break
except Exception as error: # pylint: disable=broad-exception-caught except Exception as error: # pylint: disable=broad-exception-caught
logging.exception("%s in %s", type(error).__name__, source.id) logging.exception("%s in %s", type(error).__name__, source.source_id)
self.report_error(error) self.report_error(error)
continue continue
@@ -172,7 +183,7 @@ class Importer(ErrorProducer):
# Should not happen on production code # Should not happen on production code
logging.warning( logging.warning(
"%s produced an invalid iteration return type %s", "%s produced an invalid iteration return type %s",
source.id, source.source_id,
type(iteration_result), type(iteration_result),
) )
continue continue
@@ -184,27 +195,27 @@ class Importer(ErrorProducer):
pipeline.connect("advanced", self.pipeline_advanced_callback) pipeline.connect("advanced", self.pipeline_advanced_callback)
self.game_pipelines.add(pipeline) self.game_pipelines.add(pipeline)
def update_progressbar(self): def update_progressbar(self) -> None:
"""Update the progressbar to show the overall import progress""" """Update the progressbar to show the overall import progress"""
# Reserve 10% for the sources discovery, the rest is the pipelines # Reserve 10% for the sources discovery, the rest is the pipelines
self.progressbar.set_fraction( self.progressbar.set_fraction(
(0.1 * self.sources_progress) + (0.9 * self.pipelines_progress) (0.1 * self.sources_progress) + (0.9 * self.pipelines_progress)
) )
def source_callback(self, _obj, _result, data): def source_callback(self, _obj: Any, _result: Any, data: tuple) -> None:
"""Callback executed when a source is fully scanned""" """Callback executed when a source is fully scanned"""
source, *_rest = data source, *_rest = data
logging.debug("Import done for source %s", source.id) logging.debug("Import done for source %s", source.source_id)
self.n_source_tasks_done += 1 self.n_source_tasks_done += 1
self.progress_changed_callback() self.progress_changed_callback()
def pipeline_advanced_callback(self, pipeline: Pipeline): def pipeline_advanced_callback(self, pipeline: Pipeline) -> None:
"""Callback called when a pipeline for a game has advanced""" """Callback called when a pipeline for a game has advanced"""
if pipeline.is_done: if pipeline.is_done:
self.n_pipelines_done += 1 self.n_pipelines_done += 1
self.progress_changed_callback() self.progress_changed_callback()
def progress_changed_callback(self): def progress_changed_callback(self) -> None:
""" """
Callback called when the import process has progressed Callback called when the import process has progressed
@@ -217,19 +228,47 @@ class Importer(ErrorProducer):
if self.finished: if self.finished:
self.import_callback() self.import_callback()
def import_callback(self): def remove_games(self) -> None:
"""Set removed to True for missing games"""
if not shared.schema.get_boolean("remove-missing"):
return
for game in shared.store:
if game.removed:
continue
if game.source == "imported":
continue
if not shared.schema.get_boolean(game.base_source):
continue
if game.game_id in shared.store.duplicate_game_ids:
continue
if game.game_id in shared.store.new_game_ids:
continue
logging.debug("Removing missing game %s (%s)", game.name, game.game_id)
game.removed = True
game.save()
game.update()
self.removed_game_ids.add(game.game_id)
def import_callback(self) -> None:
"""Callback called when importing has finished""" """Callback called when importing has finished"""
logging.info("Import done") logging.info("Import done")
self.remove_games()
self.imported_game_ids = shared.store.new_game_ids
shared.store.new_game_ids = set()
shared.store.duplicate_game_ids = set()
self.import_dialog.close() self.import_dialog.close()
self.summary_toast = self.create_summary_toast() self.summary_toast = self.create_summary_toast()
self.create_error_dialog() self.create_error_dialog()
shared.win.get_application().lookup_action("import").set_enabled(True) shared.win.get_application().lookup_action("import").set_enabled(True)
def create_error_dialog(self): def create_error_dialog(self) -> None:
"""Dialog containing all errors raised by importers""" """Dialog containing all errors raised by importers"""
# Collect all errors that happened in the importer and the managers # Collect all errors that happened in the importer and the managers
errors: list[Exception] = [] errors = []
errors.extend(self.collect_errors()) errors.extend(self.collect_errors())
for manager in shared.store.managers.values(): for manager in shared.store.managers.values():
errors.extend(manager.collect_errors()) errors.extend(manager.collect_errors())
@@ -277,41 +316,78 @@ class Importer(ErrorProducer):
dialog.present() dialog.present()
def create_summary_toast(self): def undo_import(self, *_args: Any) -> None:
"""N games imported toast""" for game_id in self.imported_game_ids:
shared.store[game_id].removed = True
shared.store[game_id].update()
shared.store[game_id].save()
for game_id in self.removed_game_ids:
shared.store[game_id].removed = False
shared.store[game_id].update()
shared.store[game_id].save()
self.imported_game_ids = set()
self.removed_game_ids = set()
self.summary_toast.dismiss()
logging.info("Import undone")
def create_summary_toast(self) -> Adw.Toast:
"""N games imported, removed toast"""
toast = Adw.Toast(timeout=0, priority=Adw.ToastPriority.HIGH) toast = Adw.Toast(timeout=0, priority=Adw.ToastPriority.HIGH)
if self.n_games_added == 0: if not self.n_games_added:
toast.set_title(_("No new games found")) toast_title = _("No new games found")
toast.set_button_label(_("Preferences"))
toast.connect( if not self.removed_game_ids:
"button-clicked", toast.set_button_label(_("Preferences"))
self.dialog_response_callback, toast.connect(
"open_preferences", "button-clicked",
"import", self.dialog_response_callback,
) "open_preferences",
"import",
)
elif self.n_games_added == 1: elif self.n_games_added == 1:
toast.set_title(_("1 game imported")) toast_title = _("1 game imported")
elif self.n_games_added > 1: elif self.n_games_added > 1:
# The variable is the number of games # The variable is the number of games
toast.set_title(_("{} games imported").format(self.n_games_added)) toast_title = _("{} games imported").format(self.n_games_added)
if (removed_length := len(self.removed_game_ids)) == 1:
# A single game removed
toast_title += ", " + _("1 removed")
elif removed_length > 1:
# The variable is the number of games removed
toast_title += ", " + _("{} removed").format(removed_length)
if self.n_games_added or self.removed_game_ids:
toast.set_button_label(_("Undo"))
toast.connect("button-clicked", self.undo_import)
toast.set_title(toast_title)
shared.win.toast_overlay.add_toast(toast) shared.win.toast_overlay.add_toast(toast)
return toast return toast
def open_preferences(self, page=None, expander_row=None): def open_preferences(
self,
page_name: Optional[str] = None,
expander_row: Optional[Adw.ExpanderRow] = None,
) -> Adw.PreferencesWindow:
return shared.win.get_application().on_preferences_action( return shared.win.get_application().on_preferences_action(
page_name=page, expander_row=expander_row page_name=page_name, expander_row=expander_row
) )
def timeout_toast(self, *_args): def timeout_toast(self, *_args: Any) -> None:
"""Manually timeout the toast after the user has dismissed all warnings""" """Manually timeout the toast after the user has dismissed all warnings"""
GLib.timeout_add_seconds(5, self.summary_toast.dismiss) GLib.timeout_add_seconds(5, self.summary_toast.dismiss)
def dialog_response_callback(self, _widget, response, *args): def dialog_response_callback(self, _widget: Any, response: str, *args: Any) -> None:
"""Handle after-import dialogs callback""" """Handle after-import dialogs callback"""
logging.debug("After-import dialog response: %s (%s)", response, str(args)) logging.debug("After-import dialog response: %s (%s)", response, str(args))
if response == "open_preferences": if response == "open_preferences":

View File

@@ -20,33 +20,30 @@
from pathlib import Path from pathlib import Path
from time import time from time import time
from typing import NamedTuple
import yaml import yaml
from src import shared from src import shared
from src.game import Game from src.game import Game
from src.importer.sources.location import Location from src.importer.sources.location import Location, LocationSubPath
from src.importer.sources.source import ( from src.importer.sources.source import SourceIterable, URLExecutableSource
SourceIterationResult,
SourceIterator,
URLExecutableSource,
)
class BottlesSourceIterator(SourceIterator): class BottlesSourceIterable(SourceIterable):
source: "BottlesSource" source: "BottlesSource"
def generator_builder(self) -> SourceIterationResult: def __iter__(self):
"""Generator method producing games""" """Generator method producing games"""
data = self.source.data_location["library.yml"].read_text("utf-8") data = self.source.locations.data["library.yml"].read_text("utf-8")
library: dict = yaml.safe_load(data) library: dict = yaml.safe_load(data)
added_time = int(time()) added_time = int(time())
for entry in library.values(): for entry in library.values():
# Build game # Build game
values = { values = {
"source": self.source.id, "source": self.source.source_id,
"added": added_time, "added": added_time,
"name": entry["name"], "name": entry["name"],
"game_id": self.source.game_id_format.format(game_id=entry["id"]), "game_id": self.source.game_id_format.format(game_id=entry["id"]),
@@ -62,11 +59,11 @@ class BottlesSourceIterator(SourceIterator):
# as Cartridges can't access directories picked via Bottles' file picker portal # as Cartridges can't access directories picked via Bottles' file picker portal
bottles_location = Path( bottles_location = Path(
yaml.safe_load( yaml.safe_load(
self.source.data_location["data.yml"].read_text("utf-8") self.source.locations.data["data.yml"].read_text("utf-8")
)["custom_bottles_path"] )["custom_bottles_path"]
) )
except (FileNotFoundError, KeyError): except (FileNotFoundError, KeyError):
bottles_location = self.source.data_location.root / "bottles" bottles_location = self.source.locations.data.root / "bottles"
bottle_path = entry["bottle"]["path"] bottle_path = entry["bottle"]["path"]
@@ -80,23 +77,35 @@ class BottlesSourceIterator(SourceIterator):
yield (game, additional_data) yield (game, additional_data)
class BottlesLocations(NamedTuple):
data: Location
class BottlesSource(URLExecutableSource): class BottlesSource(URLExecutableSource):
"""Generic Bottles source""" """Generic Bottles source"""
name = "Bottles" source_id = "bottles"
iterator_class = BottlesSourceIterator name = _("Bottles")
iterable_class = BottlesSourceIterable
url_format = 'bottles:run/"{bottle_name}"/"{game_name}"' url_format = 'bottles:run/"{bottle_name}"/"{game_name}"'
available_on = {"linux"} available_on = {"linux"}
data_location = Location( locations: BottlesLocations
schema_key="bottles-location",
candidates=( def __init__(self) -> None:
shared.flatpak_dir / "com.usebottles.bottles" / "data" / "bottles", super().__init__()
shared.data_dir / "bottles/", self.locations = BottlesLocations(
shared.home / ".local" / "share" / "bottles", Location(
), schema_key="bottles-location",
paths={ candidates=(
"library.yml": (False, "library.yml"), shared.flatpak_dir / "com.usebottles.bottles" / "data" / "bottles",
"data.yml": (False, "data.yml"), shared.data_dir / "bottles/",
}, shared.home / ".local" / "share" / "bottles",
) ),
paths={
"library.yml": LocationSubPath("library.yml"),
"data.yml": LocationSubPath("data.yml"),
},
invalid_subtitle=Location.DATA_INVALID_SUBTITLE,
)
)

View File

@@ -19,25 +19,26 @@
from pathlib import Path from pathlib import Path
from time import time from time import time
from typing import NamedTuple
from gi.repository import GLib, Gtk from gi.repository import GLib, Gtk
from src import shared from src import shared
from src.game import Game from src.game import Game
from src.importer.sources.location import Location from src.importer.sources.location import Location, LocationSubPath
from src.importer.sources.source import Source, SourceIterationResult, SourceIterator from src.importer.sources.source import ExecutableFormatSource, SourceIterable
class FlatpakSourceIterator(SourceIterator): class FlatpakSourceIterable(SourceIterable):
source: "FlatpakSource" source: "FlatpakSource"
def generator_builder(self) -> SourceIterationResult: def __iter__(self):
"""Generator method producing games""" """Generator method producing games"""
added_time = int(time()) added_time = int(time())
icon_theme = Gtk.IconTheme.new() icon_theme = Gtk.IconTheme.new()
icon_theme.add_search_path(str(self.source.data_location["icons"])) icon_theme.add_search_path(str(self.source.locations.data["icons"]))
blacklist = ( blacklist = (
{"hu.kramo.Cartridges", "hu.kramo.Cartridges.Devel"} {"hu.kramo.Cartridges", "hu.kramo.Cartridges.Devel"}
@@ -53,7 +54,7 @@ class FlatpakSourceIterator(SourceIterator):
} }
) )
for entry in (self.source.data_location["applications"]).iterdir(): for entry in (self.source.locations.data["applications"]).iterdir():
if entry.suffix != ".desktop": if entry.suffix != ".desktop":
continue continue
@@ -76,7 +77,7 @@ class FlatpakSourceIterator(SourceIterator):
continue continue
values = { values = {
"source": self.source.id, "source": self.source.source_id,
"added": added_time, "added": added_time,
"name": name, "name": name,
"game_id": self.source.game_id_format.format(game_id=flatpak_id), "game_id": self.source.game_id_format.format(game_id=flatpak_id),
@@ -111,22 +112,34 @@ class FlatpakSourceIterator(SourceIterator):
yield (game, additional_data) yield (game, additional_data)
class FlatpakSource(Source): class FlatpakLocations(NamedTuple):
data: Location
class FlatpakSource(ExecutableFormatSource):
"""Generic Flatpak source""" """Generic Flatpak source"""
name = "Flatpak" source_id = "flatpak"
iterator_class = FlatpakSourceIterator name = _("Flatpak")
iterable_class = FlatpakSourceIterable
executable_format = "flatpak run {flatpak_id}" executable_format = "flatpak run {flatpak_id}"
available_on = {"linux"} available_on = {"linux"}
data_location = Location( locations: FlatpakLocations
schema_key="flatpak-location",
candidates=( def __init__(self) -> None:
"/var/lib/flatpak/", super().__init__()
shared.data_dir / "flatpak", self.locations = FlatpakLocations(
), Location(
paths={ schema_key="flatpak-location",
"applications": (True, "exports/share/applications"), candidates=(
"icons": (True, "exports/share/icons"), "/var/lib/flatpak/",
}, shared.data_dir / "flatpak",
) ),
paths={
"applications": LocationSubPath("exports/share/applications", True),
"icons": LocationSubPath("exports/share/icons", True),
},
invalid_subtitle=Location.DATA_INVALID_SUBTITLE,
)
)

View File

@@ -20,21 +20,47 @@
import json import json
import logging import logging
from abc import abstractmethod
from functools import cached_property
from hashlib import sha256 from hashlib import sha256
from json import JSONDecodeError from json import JSONDecodeError
from pathlib import Path
from time import time from time import time
from typing import Optional, TypedDict from typing import Iterable, NamedTuple, Optional, TypedDict
from src import shared from src import shared
from src.game import Game from src.game import Game
from src.importer.sources.location import Location from src.importer.sources.location import Location, LocationSubPath
from src.importer.sources.source import ( from src.importer.sources.source import (
URLExecutableSource, SourceIterable,
SourceIterationResult, SourceIterationResult,
SourceIterator, URLExecutableSource,
) )
def path_json_load(path: Path):
"""
Load JSON from the file at the given path
:raises OSError: if the file can't be opened
:raises JSONDecodeError: if the file isn't valid JSON
"""
with path.open("r", encoding="utf-8") as open_file:
return json.load(open_file)
class InvalidLibraryFileError(Exception):
pass
class InvalidInstalledFileError(Exception):
pass
class InvalidStoreFileError(Exception):
pass
class HeroicLibraryEntry(TypedDict): class HeroicLibraryEntry(TypedDict):
app_name: str app_name: str
installed: Optional[bool] installed: Optional[bool]
@@ -44,119 +70,326 @@ class HeroicLibraryEntry(TypedDict):
art_square: str art_square: str
class HeroicSubSource(TypedDict): class SubSourceIterable(Iterable):
service: str """Class representing a Heroic sub-source"""
path: tuple[str]
class HeroicSourceIterator(SourceIterator):
source: "HeroicSource" source: "HeroicSource"
source_iterable: "HeroicSourceIterable"
name: str
service: str
image_uri_params: str = ""
relative_library_path: Path
library_json_entries_key: str = "library"
sub_sources: dict[str, HeroicSubSource] = { def __init__(self, source, source_iterable) -> None:
"sideload": { self.source = source
"service": "sideload", self.source_iterable = source_iterable
"path": ("sideload_apps", "library.json"),
},
"legendary": {
"service": "epic",
"path": ("store_cache", "legendary_library.json"),
},
"gog": {
"service": "gog",
"path": ("store_cache", "gog_library.json"),
},
}
def game_from_library_entry( @cached_property
def library_path(self) -> Path:
path = self.source.locations.config.root / self.relative_library_path
logging.debug("Using Heroic %s library.json path %s", self.name, path)
return path
def process_library_entry(
self, entry: HeroicLibraryEntry, added_time: int self, entry: HeroicLibraryEntry, added_time: int
) -> SourceIterationResult: ) -> SourceIterationResult:
"""Helper method used to build a Game from a Heroic library entry""" """Build a Game from a Heroic library entry"""
# Skip games that are not installed
if not entry["is_installed"]:
return None
# Build game
app_name = entry["app_name"] app_name = entry["app_name"]
runner = entry["runner"] runner = entry["runner"]
service = self.sub_sources[runner]["service"]
# Build game
values = { values = {
"source": self.source.id, "source": f"{self.source.source_id}_{self.service}",
"added": added_time, "added": added_time,
"name": entry["title"], "name": entry["title"],
"developer": entry.get("developer", None), "developer": entry.get("developer", None),
"game_id": self.source.game_id_format.format( "game_id": self.source.game_id_format.format(
service=service, game_id=app_name service=self.service, game_id=app_name
), ),
"executable": self.source.executable_format.format(app_name=app_name), "executable": self.source.executable_format.format(
runner=runner, app_name=app_name
),
"hidden": self.source_iterable.is_hidden(app_name),
} }
game = Game(values) game = Game(values)
# Get the image path from the heroic cache # Get the image path from the heroic cache
# Filenames are derived from the URL that heroic used to get the file # Filenames are derived from the URL that heroic used to get the file
uri: str = entry["art_square"] uri: str = entry["art_square"] + self.image_uri_params
if service == "epic":
uri += "?h=400&resize=1&w=300"
digest = sha256(uri.encode()).hexdigest() digest = sha256(uri.encode()).hexdigest()
image_path = self.source.config_location.root / "images-cache" / digest image_path = self.source.locations.config.root / "images-cache" / digest
additional_data = {"local_image_path": image_path} additional_data = {"local_image_path": image_path}
return (game, additional_data) return (game, additional_data)
def generator_builder(self) -> SourceIterationResult: def __iter__(self):
"""
Iterate through the games with a generator
:raises InvalidLibraryFileError: on initial call if the library file is bad
"""
added_time = int(time())
try:
iterator = iter(
path_json_load(self.library_path)[self.library_json_entries_key]
)
except (OSError, JSONDecodeError, TypeError, KeyError) as error:
raise InvalidLibraryFileError(
f"Invalid {self.library_path.name}"
) from error
for entry in iterator:
try:
yield self.process_library_entry(entry, added_time)
except KeyError as error:
logging.warning(
"Skipped invalid %s game %s",
self.name,
entry.get("app_name", "UNKNOWN"),
exc_info=error,
)
continue
class StoreSubSourceIterable(SubSourceIterable):
"""
Class representing a "store" sub source.
Games can be installed or not, this class does the check accordingly.
"""
relative_installed_path: Path
installed_app_names: set[str]
@cached_property
def installed_path(self) -> Path:
path = self.source.locations.config.root / self.relative_installed_path
logging.debug("Using Heroic %s installed.json path %s", self.name, path)
return path
@abstractmethod
def get_installed_app_names(self) -> set[str]:
"""
Get the sub source's installed app names as a set.
:raises InvalidInstalledFileError: if the installed file data cannot be read
Whenever possible, `__cause__` is set with the original exception
"""
def is_installed(self, app_name: str) -> bool:
return app_name in self.installed_app_names
def process_library_entry(self, entry, added_time):
# Skip games that are not installed
app_name = entry["app_name"]
if not self.is_installed(app_name):
logging.warning(
"Skipped %s game %s (%s): not installed",
self.service,
entry["title"],
app_name,
)
return None
# Process entry as normal
return super().process_library_entry(entry, added_time)
def __iter__(self):
"""
Iterate through the installed games with a generator
:raises InvalidLibraryFileError: on initial call if the library file is bad
:raises InvalidInstalledFileError: on initial call if the installed file is bad
"""
self.installed_app_names = self.get_installed_app_names()
yield from super().__iter__()
class SideloadIterable(SubSourceIterable):
name = "sideload"
service = "sideload"
relative_library_path = Path("sideload_apps") / "library.json"
library_json_entries_key = "games"
class LegendaryIterable(StoreSubSourceIterable):
name = "legendary"
service = "epic"
image_uri_params = "?h=400&resize=1&w=300"
relative_library_path = Path("store_cache") / "legendary_library.json"
# relative_installed_path = (
# Path("legendary") / "legendaryConfig" / "legendary" / "installed.json"
# )
@cached_property
def installed_path(self) -> Path:
"""
Get the right path depending on the Heroic version
TODO after heroic 2.9 has been out for a while
We should use the commented out relative_installed_path
and remove this property override.
"""
heroic_config_path = self.source.locations.config.root
# Heroic >= 2.9
if (path := heroic_config_path / "legendaryConfig").is_dir():
logging.debug("Using Heroic >= 2.9 legendary file")
# Heroic <= 2.8
elif heroic_config_path.is_relative_to(shared.flatpak_dir):
# Heroic flatpak
path = shared.flatpak_dir / "com.heroicgameslauncher.hgl" / "config"
logging.debug("Using Heroic flatpak <= 2.8 legendary file")
else:
# Heroic native
logging.debug("Using Heroic native <= 2.8 legendary file")
path = shared.home / ".config"
path = path / "legendary" / "installed.json"
logging.debug("Using Heroic %s installed.json path %s", self.name, path)
return path
def get_installed_app_names(self):
try:
return set(path_json_load(self.installed_path).keys())
except (OSError, JSONDecodeError, AttributeError) as error:
raise InvalidInstalledFileError(
f"Invalid {self.installed_path.name}"
) from error
class GogIterable(StoreSubSourceIterable):
name = "gog"
service = "gog"
library_json_entries_key = "games"
relative_library_path = Path("store_cache") / "gog_library.json"
relative_installed_path = Path("gog_store") / "installed.json"
def get_installed_app_names(self):
try:
return {
app_name
for entry in path_json_load(self.installed_path)["installed"]
if (app_name := entry.get("appName")) is not None
}
except (OSError, JSONDecodeError, KeyError, AttributeError) as error:
raise InvalidInstalledFileError(
f"Invalid {self.installed_path.name}"
) from error
class NileIterable(StoreSubSourceIterable):
name = "nile"
service = "amazon"
relative_library_path = Path("store_cache") / "nile_library.json"
relative_installed_path = Path("nile_config") / "nile" / "installed.json"
def get_installed_app_names(self):
try:
installed_json = path_json_load(self.installed_path)
return {
app_name
for entry in installed_json
if (app_name := entry.get("id")) is not None
}
except (OSError, JSONDecodeError, AttributeError) as error:
raise InvalidInstalledFileError(
f"Invalid {self.installed_path.name}"
) from error
class HeroicSourceIterable(SourceIterable):
source: "HeroicSource"
hidden_app_names: set[str] = set()
def is_hidden(self, app_name: str) -> bool:
return app_name in self.hidden_app_names
def get_hidden_app_names(self) -> set[str]:
"""Get the hidden app names from store/config.json
:raises InvalidStoreFileError: if the store is invalid for some reason
"""
try:
store = path_json_load(self.source.locations.config["store_config.json"])
self.hidden_app_names = {
app_name
for game in store["games"]["hidden"]
if (app_name := game.get("appName")) is not None
}
except KeyError:
logging.warning('No ["games"]["hidden"] key in Heroic store file')
except (OSError, JSONDecodeError, TypeError) as error:
logging.error("Invalid Heroic store file", exc_info=error)
raise InvalidStoreFileError() from error
def __iter__(self):
"""Generator method producing games from all the Heroic sub-sources""" """Generator method producing games from all the Heroic sub-sources"""
for sub_source_name, sub_source in self.sub_sources.items(): self.get_hidden_app_names()
# Skip disabled sub-sources
if not shared.schema.get_boolean("heroic-import-" + sub_source["service"]): # Get games from the sub sources
for sub_source_class in (
SideloadIterable,
LegendaryIterable,
GogIterable,
NileIterable,
):
sub_source = sub_source_class(self.source, self)
if not shared.schema.get_boolean("heroic-import-" + sub_source.service):
logging.debug("Skipping Heroic %s: disabled", sub_source.service)
continue continue
# Load games from JSON
file = self.source.config_location.root.joinpath(*sub_source["path"])
try: try:
contents = json.load(file.open()) sub_source_iterable = iter(sub_source)
key = "library" if sub_source_name == "legendary" else "games" yield from sub_source_iterable
library = contents[key] except (InvalidLibraryFileError, InvalidInstalledFileError) as error:
except (JSONDecodeError, OSError, KeyError): logging.error(
# Invalid library.json file, skip it "Skipping bad Heroic sub-source %s",
logging.warning("Couldn't open Heroic file: %s", str(file)) sub_source.service,
exc_info=error,
)
continue continue
added_time = int(time())
for entry in library: class HeroicLocations(NamedTuple):
try: config: Location
result = self.game_from_library_entry(entry, added_time)
except KeyError as error:
# Skip invalid games
logging.warning(
"Invalid Heroic game skipped in %s", str(file), exc_info=error
)
continue
yield result
class HeroicSource(URLExecutableSource): class HeroicSource(URLExecutableSource):
"""Generic Heroic Games Launcher source""" """Generic Heroic Games Launcher source"""
name = "Heroic" source_id = "heroic"
iterator_class = HeroicSourceIterator name = _("Heroic")
url_format = "heroic://launch/{app_name}" iterable_class = HeroicSourceIterable
url_format = "heroic://launch/{runner}/{app_name}"
available_on = {"linux", "win32"} available_on = {"linux", "win32"}
config_location = Location( locations: HeroicLocations
schema_key="heroic-location",
candidates=(
shared.flatpak_dir / "com.heroicgameslauncher.hgl" / "config" / "heroic",
shared.config_dir / "heroic",
shared.home / ".config" / "heroic",
shared.appdata_dir / "heroic",
),
paths={
"config.json": (False, "config.json"),
},
)
@property @property
def game_id_format(self) -> str: def game_id_format(self) -> str:
"""The string format used to construct game IDs""" """The string format used to construct game IDs"""
return self.name.lower() + "_{service}_{game_id}" return self.source_id + "_{service}_{game_id}"
def __init__(self) -> None:
super().__init__()
self.locations = HeroicLocations(
Location(
schema_key="heroic-location",
candidates=(
shared.config_dir / "heroic",
shared.home / ".config" / "heroic",
shared.flatpak_dir
/ "com.heroicgameslauncher.hgl"
/ "config"
/ "heroic",
shared.appdata_dir / "heroic",
),
paths={
"config.json": LocationSubPath("config.json"),
"store_config.json": LocationSubPath("store/config.json"),
},
invalid_subtitle=Location.CONFIG_INVALID_SUBTITLE,
)
)

View File

@@ -21,22 +21,19 @@
from shutil import rmtree from shutil import rmtree
from sqlite3 import connect from sqlite3 import connect
from time import time from time import time
from typing import NamedTuple
from src import shared from src import shared
from src.game import Game from src.game import Game
from src.importer.sources.location import Location from src.importer.sources.location import Location, LocationSubPath
from src.importer.sources.source import ( from src.importer.sources.source import SourceIterable, URLExecutableSource
SourceIterationResult,
SourceIterator,
URLExecutableSource,
)
from src.utils.sqlite import copy_db from src.utils.sqlite import copy_db
class ItchSourceIterator(SourceIterator): class ItchSourceIterable(SourceIterable):
source: "ItchSource" source: "ItchSource"
def generator_builder(self) -> SourceIterationResult: def __iter__(self):
"""Generator method producing games""" """Generator method producing games"""
# Query the database # Query the database
@@ -55,7 +52,7 @@ class ItchSourceIterator(SourceIterator):
caves.game_id = games.id caves.game_id = games.id
; ;
""" """
db_path = copy_db(self.source.config_location["butler.db"]) db_path = copy_db(self.source.locations.config["butler.db"])
connection = connect(db_path) connection = connect(db_path)
cursor = connection.execute(db_request) cursor = connection.execute(db_request)
@@ -65,7 +62,7 @@ class ItchSourceIterator(SourceIterator):
for row in cursor: for row in cursor:
values = { values = {
"added": added_time, "added": added_time,
"source": self.source.id, "source": self.source.source_id,
"name": row[1], "name": row[1],
"game_id": self.source.game_id_format.format(game_id=row[0]), "game_id": self.source.game_id_format.format(game_id=row[0]),
"executable": self.source.executable_format.format(cave_id=row[4]), "executable": self.source.executable_format.format(cave_id=row[4]),
@@ -78,19 +75,33 @@ class ItchSourceIterator(SourceIterator):
rmtree(str(db_path.parent)) rmtree(str(db_path.parent))
class ItchLocations(NamedTuple):
config: Location
class ItchSource(URLExecutableSource): class ItchSource(URLExecutableSource):
name = "Itch" source_id = "itch"
iterator_class = ItchSourceIterator name = _("itch")
iterable_class = ItchSourceIterable
url_format = "itch://caves/{cave_id}/launch" url_format = "itch://caves/{cave_id}/launch"
available_on = {"linux", "win32"} available_on = {"linux", "win32"}
config_location = Location( locations: ItchLocations
schema_key="itch-location",
candidates=( def __init__(self) -> None:
shared.flatpak_dir / "io.itch.itch" / "config" / "itch", super().__init__()
shared.config_dir / "itch", self.locations = ItchLocations(
shared.home / ".config" / "itch", Location(
shared.appdata_dir / "itch", schema_key="itch-location",
), candidates=(
paths={"butler.db": (False, "db/butler.db")}, shared.flatpak_dir / "io.itch.itch" / "config" / "itch",
) shared.config_dir / "itch",
shared.home / ".config" / "itch",
shared.appdata_dir / "itch",
),
paths={
"butler.db": LocationSubPath("db/butler.db"),
},
invalid_subtitle=Location.CONFIG_INVALID_SUBTITLE,
)
)

View File

@@ -21,15 +21,19 @@ import json
import logging import logging
from json import JSONDecodeError from json import JSONDecodeError
from time import time from time import time
from typing import Generator from typing import NamedTuple
from src import shared from src import shared
from src.game import Game from src.game import Game
from src.importer.sources.location import Location from src.importer.sources.location import Location, LocationSubPath
from src.importer.sources.source import Source, SourceIterationResult, SourceIterator from src.importer.sources.source import (
ExecutableFormatSource,
SourceIterationResult,
SourceIterable,
)
class LegendarySourceIterator(SourceIterator): class LegendarySourceIterable(SourceIterable):
source: "LegendarySource" source: "LegendarySource"
def game_from_library_entry( def game_from_library_entry(
@@ -43,7 +47,7 @@ class LegendarySourceIterator(SourceIterator):
app_name = entry["app_name"] app_name = entry["app_name"]
values = { values = {
"added": added_time, "added": added_time,
"source": self.source.id, "source": self.source.source_id,
"name": entry["title"], "name": entry["title"],
"game_id": self.source.game_id_format.format(game_id=app_name), "game_id": self.source.game_id_format.format(game_id=app_name),
"executable": self.source.executable_format.format(app_name=app_name), "executable": self.source.executable_format.format(app_name=app_name),
@@ -51,7 +55,7 @@ class LegendarySourceIterator(SourceIterator):
data = {} data = {}
# Get additional metadata from file (optional) # Get additional metadata from file (optional)
metadata_file = self.source.config_location["metadata"] / f"{app_name}.json" metadata_file = self.source.locations.config["metadata"] / f"{app_name}.json"
try: try:
metadata = json.load(metadata_file.open()) metadata = json.load(metadata_file.open())
values["developer"] = metadata["metadata"]["developer"] values["developer"] = metadata["metadata"]["developer"]
@@ -65,9 +69,9 @@ class LegendarySourceIterator(SourceIterator):
game = Game(values) game = Game(values)
return (game, data) return (game, data)
def generator_builder(self) -> Generator[SourceIterationResult, None, None]: def __iter__(self):
# Open library # Open library
file = self.source.config_location["installed.json"] file = self.source.locations.config["installed.json"]
try: try:
library: dict = json.load(file.open()) library: dict = json.load(file.open())
except (JSONDecodeError, OSError): except (JSONDecodeError, OSError):
@@ -89,20 +93,32 @@ class LegendarySourceIterator(SourceIterator):
yield result yield result
class LegendarySource(Source): class LegendaryLocations(NamedTuple):
name = "Legendary" config: Location
executable_format = "legendary launch {app_name}"
available_on = {"linux", "win32"}
iterator_class = LegendarySourceIterator
config_location: Location = Location( class LegendarySource(ExecutableFormatSource):
schema_key="legendary-location", source_id = "legendary"
candidates=( name = _("Legendary")
shared.config_dir / "legendary", executable_format = "legendary launch {app_name}"
shared.home / ".config" / "legendary", available_on = {"linux"}
), iterable_class = LegendarySourceIterable
paths={
"installed.json": (False, "installed.json"), locations: LegendaryLocations
"metadata": (True, "metadata"),
}, def __init__(self) -> None:
) super().__init__()
self.locations = LegendaryLocations(
Location(
schema_key="legendary-location",
candidates=(
shared.config_dir / "legendary",
shared.home / ".config" / "legendary",
),
paths={
"installed.json": LocationSubPath("installed.json"),
"metadata": LocationSubPath("metadata", True),
},
invalid_subtitle=Location.CONFIG_INVALID_SUBTITLE,
)
)

View File

@@ -1,13 +1,18 @@
import logging import logging
from pathlib import Path
from typing import Callable, Mapping, Iterable
from os import PathLike from os import PathLike
from pathlib import Path
from typing import Iterable, Mapping, NamedTuple, Optional
from src import shared from src import shared
PathSegment = str | PathLike | Path PathSegment = str | PathLike | Path
PathSegments = Iterable[PathSegment] PathSegments = Iterable[PathSegment]
Candidate = PathSegments | Callable[[], PathSegments] Candidate = PathSegments
class LocationSubPath(NamedTuple):
segment: PathSegment
is_directory: bool = False
class UnresolvableLocationError(Exception): class UnresolvableLocationError(Exception):
@@ -24,37 +29,48 @@ class Location:
* When resolved, the schema is updated with the picked chosen * When resolved, the schema is updated with the picked chosen
""" """
# The variable is the name of the source
CACHE_INVALID_SUBTITLE = _("Select the {} cache directory.")
# The variable is the name of the source
CONFIG_INVALID_SUBTITLE = _("Select the {} configuration directory.")
# The variable is the name of the source
DATA_INVALID_SUBTITLE = _("Select the {} data directory.")
schema_key: str schema_key: str
candidates: Iterable[Candidate] candidates: Iterable[Candidate]
paths: Mapping[str, tuple[bool, PathSegments]] paths: Mapping[str, LocationSubPath]
root: Path = None invalid_subtitle: str
root: Optional[Path] = None
def __init__( def __init__(
self, self,
schema_key: str, schema_key: str,
candidates: Iterable[Candidate], candidates: Iterable[Candidate],
paths: Mapping[str, tuple[bool, PathSegments]], paths: Mapping[str, LocationSubPath],
invalid_subtitle: str,
) -> None: ) -> None:
super().__init__() super().__init__()
self.schema_key = schema_key self.schema_key = schema_key
self.candidates = candidates self.candidates = candidates
self.paths = paths self.paths = paths
self.invalid_subtitle = invalid_subtitle
def check_candidate(self, candidate: Path) -> bool: def check_candidate(self, candidate: Path) -> bool:
"""Check if a candidate root has the necessary files and directories""" """Check if a candidate root has the necessary files and directories"""
for type_is_dir, subpath in self.paths.values(): for segment, is_directory in self.paths.values():
subpath = Path(candidate) / Path(subpath) path = Path(candidate) / segment
if type_is_dir: if is_directory:
if not subpath.is_dir(): if not path.is_dir():
return False return False
else: else:
if not subpath.is_file(): if not path.is_file():
return False return False
return True return True
def resolve(self) -> None: def resolve(self) -> None:
"""Choose a root path from the candidates for the location. """Choose a root path from the candidates for the location.
If none fits, raise a UnresolvableLocationError""" If none fits, raise an UnresolvableLocationError"""
if self.root is not None: if self.root is not None:
return return
@@ -78,7 +94,9 @@ class Location:
shared.schema.set_string(self.schema_key, value) shared.schema.set_string(self.schema_key, value)
logging.debug("Resolved value for schema key %s: %s", self.schema_key, value) logging.debug("Resolved value for schema key %s: %s", self.schema_key, value)
def __getitem__(self, key: str): def __getitem__(self, key: str) -> Optional[Path]:
"""Get the computed path from its key for the location""" """Get the computed path from its key for the location"""
self.resolve() self.resolve()
return self.root / self.paths[key][1] if self.root:
return self.root / self.paths[key].segment
return None

View File

@@ -20,22 +20,19 @@
from shutil import rmtree from shutil import rmtree
from sqlite3 import connect from sqlite3 import connect
from time import time from time import time
from typing import NamedTuple
from src import shared from src import shared
from src.game import Game from src.game import Game
from src.importer.sources.location import Location from src.importer.sources.location import Location, LocationSubPath
from src.importer.sources.source import ( from src.importer.sources.source import SourceIterable, URLExecutableSource
SourceIterationResult,
SourceIterator,
URLExecutableSource,
)
from src.utils.sqlite import copy_db from src.utils.sqlite import copy_db
class LutrisSourceIterator(SourceIterator): class LutrisSourceIterable(SourceIterable):
source: "LutrisSource" source: "LutrisSource"
def generator_builder(self) -> SourceIterationResult: def __iter__(self):
"""Generator method producing games""" """Generator method producing games"""
# Query the database # Query the database
@@ -55,7 +52,7 @@ class LutrisSourceIterator(SourceIterator):
"import_steam": shared.schema.get_boolean("lutris-import-steam"), "import_steam": shared.schema.get_boolean("lutris-import-steam"),
"import_flatpak": shared.schema.get_boolean("lutris-import-flatpak"), "import_flatpak": shared.schema.get_boolean("lutris-import-flatpak"),
} }
db_path = copy_db(self.source.data_location["pga.db"]) db_path = copy_db(self.source.locations.config["pga.db"])
connection = connect(db_path) connection = connect(db_path)
cursor = connection.execute(request, params) cursor = connection.execute(request, params)
@@ -68,7 +65,7 @@ class LutrisSourceIterator(SourceIterator):
"added": added_time, "added": added_time,
"hidden": row[4], "hidden": row[4],
"name": row[1], "name": row[1],
"source": f"{self.source.id}_{row[3]}", "source": f"{self.source.source_id}_{row[3]}",
"game_id": self.source.game_id_format.format( "game_id": self.source.game_id_format.format(
runner=row[3], game_id=row[0] runner=row[3], game_id=row[0]
), ),
@@ -77,7 +74,7 @@ class LutrisSourceIterator(SourceIterator):
game = Game(values) game = Game(values)
# Get official image path # Get official image path
image_path = self.source.cache_location["coverart"] / f"{row[2]}.jpg" image_path = self.source.locations.cache["coverart"] / f"{row[2]}.jpg"
additional_data = {"local_image_path": image_path} additional_data = {"local_image_path": image_path}
# Produce game # Produce game
@@ -87,40 +84,53 @@ class LutrisSourceIterator(SourceIterator):
rmtree(str(db_path.parent)) rmtree(str(db_path.parent))
class LutrisLocations(NamedTuple):
config: Location
cache: Location
class LutrisSource(URLExecutableSource): class LutrisSource(URLExecutableSource):
"""Generic Lutris source""" """Generic Lutris source"""
name = "Lutris" source_id = "lutris"
iterator_class = LutrisSourceIterator name = _("Lutris")
iterable_class = LutrisSourceIterable
url_format = "lutris:rungameid/{game_id}" url_format = "lutris:rungameid/{game_id}"
available_on = {"linux"} available_on = {"linux"}
# FIXME possible bug: location picks ~/.var... and cache_lcoation picks ~/.local... # FIXME possible bug: config picks ~/.var... and cache picks ~/.local...
data_location = Location( locations: LutrisLocations
schema_key="lutris-location",
candidates=(
shared.flatpak_dir / "net.lutris.Lutris" / "data" / "lutris",
shared.data_dir / "lutris",
shared.home / ".local" / "share" / "lutris",
),
paths={
"pga.db": (False, "pga.db"),
},
)
cache_location = Location(
schema_key="lutris-cache-location",
candidates=(
shared.flatpak_dir / "net.lutris.Lutris" / "cache" / "lutris",
shared.cache_dir / "lutris",
shared.home / ".cache" / "lutris",
),
paths={
"coverart": (True, "coverart"),
},
)
@property @property
def game_id_format(self): def game_id_format(self):
return self.id + "_{runner}_{game_id}" return self.source_id + "_{runner}_{game_id}"
def __init__(self) -> None:
super().__init__()
self.locations = LutrisLocations(
Location(
schema_key="lutris-location",
candidates=(
shared.flatpak_dir / "net.lutris.Lutris" / "data" / "lutris",
shared.data_dir / "lutris",
shared.home / ".local" / "share" / "lutris",
),
paths={
"pga.db": LocationSubPath("pga.db"),
},
invalid_subtitle=Location.DATA_INVALID_SUBTITLE,
),
Location(
schema_key="lutris-cache-location",
candidates=(
shared.flatpak_dir / "net.lutris.Lutris" / "cache" / "lutris",
shared.cache_dir / "lutris",
shared.home / ".cache" / "lutris",
),
paths={
"coverart": LocationSubPath("coverart", True),
},
invalid_subtitle=Location.CACHE_INVALID_SUBTITLE,
),
)

View File

@@ -0,0 +1,256 @@
# retroarch_source.py
#
# Copyright 2023 Rilic
#
# 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 logging
import re
from hashlib import md5
from json import JSONDecodeError
from pathlib import Path
from shlex import quote as shell_quote
from time import time
from typing import NamedTuple
from urllib.parse import quote as url_quote
from src import shared
from src.errors.friendly_error import FriendlyError
from src.game import Game
from src.importer.sources.location import (
Location,
LocationSubPath,
UnresolvableLocationError,
)
from src.importer.sources.source import Source, SourceIterable
from src.importer.sources.steam_source import SteamSource
class RetroarchSourceIterable(SourceIterable):
source: "RetroarchSource"
def get_config_value(self, key: str, config_data: str):
for item in re.findall(f'{key}\\s*=\\s*"(.*)"\n', config_data, re.IGNORECASE):
if item.startswith(":"):
item = item.replace(":", str(self.source.locations.config.root))
logging.debug(str(item))
return item
raise KeyError(f"Key not found in RetroArch config: {key}")
def __iter__(self):
added_time = int(time())
bad_playlists = set()
config_file = self.source.locations.config["retroarch.cfg"]
with config_file.open(encoding="utf-8") as open_file:
config_data = open_file.read()
playlist_folder = Path(
self.get_config_value("playlist_directory", config_data)
).expanduser()
thumbnail_folder = Path(
self.get_config_value("thumbnails_directory", config_data)
).expanduser()
# Get all playlist files, ending in .lpl
playlist_files = playlist_folder.glob("*.lpl")
for playlist_file in playlist_files:
logging.debug(playlist_file)
try:
with playlist_file.open(
encoding="utf-8",
) as open_file:
playlist_json = json.load(open_file)
except (JSONDecodeError, OSError):
logging.warning("Cannot read playlist file: %s", str(playlist_file))
continue
for item in playlist_json["items"]:
# Select the core.
# Try the content's core first, then the playlist's default core.
# If none can be used, warn the user and continue.
for core_path in (
item["core_path"],
playlist_json["default_core_path"],
):
if core_path not in ("DETECT", ""):
break
else:
logging.warning("Cannot find core for: %s", str(item["path"]))
bad_playlists.add(playlist_file.stem)
continue
# Build game
game_id = md5(item["path"].encode("utf-8")).hexdigest()
values = {
"source": self.source.source_id,
"added": added_time,
"name": item["label"],
"game_id": self.source.game_id_format.format(game_id=game_id),
"executable": self.source.make_executable(
core_path=core_path,
rom_path=item["path"],
),
}
game = Game(values)
# Get boxart
boxart_image_name = item["label"] + ".png"
boxart_image_name = re.sub(r"[&\*\/:`<>\?\\\|]", "_", boxart_image_name)
boxart_folder_name = playlist_file.stem
image_path = (
thumbnail_folder
/ boxart_folder_name
/ "Named_Boxarts"
/ boxart_image_name
)
additional_data = {"local_image_path": image_path}
yield (game, additional_data)
if bad_playlists:
raise FriendlyError(
_("No RetroArch Core Selected"),
# The variable is a newline separated list of playlists
_("The following playlists have no default core:")
+ "\n\n{}\n\n".format("\n".join(bad_playlists))
+ _("Games with no core selected were not imported"),
)
class RetroarchLocations(NamedTuple):
config: Location
class RetroarchSource(Source):
name = _("RetroArch")
source_id = "retroarch"
available_on = {"linux"}
iterable_class = RetroarchSourceIterable
locations: RetroarchLocations
def __init__(self) -> None:
super().__init__()
self.locations = RetroarchLocations(
Location(
schema_key="retroarch-location",
candidates=[
shared.flatpak_dir
/ "org.libretro.RetroArch"
/ "config"
/ "retroarch",
shared.config_dir / "retroarch",
shared.home / ".config" / "retroarch",
# TODO: Windows support, waiting for executable path setting improvement
# Path("C:\\RetroArch-Win64"),
# Path("C:\\RetroArch-Win32"),
# TODO: UWP support (URL handler - https://github.com/libretro/RetroArch/pull/13563)
# shared.local_appdata_dir
# / "Packages"
# / "1e4cf179-f3c2-404f-b9f3-cb2070a5aad8_8ngdn9a6dx1ma"
# / "LocalState",
],
paths={
"retroarch.cfg": LocationSubPath("retroarch.cfg"),
},
invalid_subtitle=Location.CONFIG_INVALID_SUBTITLE,
)
)
self.add_steam_location_candidate()
def add_steam_location_candidate(self) -> None:
"""Add the Steam RetroAcrh location to the config candidates"""
try:
self.locations.config.candidates.append(self.get_steam_location())
except (OSError, KeyError, UnresolvableLocationError):
logging.debug("Steam isn't installed")
except ValueError as error:
logging.debug("RetroArch Steam location candiate not found", exc_info=error)
def get_steam_location(self) -> str:
"""
Get the RetroArch installed via Steam location
:raise UnresolvableLocationError: if steam isn't installed
:raise KeyError: if there is no libraryfolders.vdf subpath
:raise OSError: if libraryfolders.vdf can't be opened
:raise ValueError: if RetroArch isn't installed through Steam
"""
# Find steam location
libraryfolders = SteamSource().locations.data["libraryfolders.vdf"]
parse_apps = False
with open(libraryfolders, "r", encoding="utf-8") as open_file:
# Search each line for a library path and store it each time a new one is found.
for line in open_file:
if '"path"' in line:
library_path = re.findall(
'"path"\\s+"(.*)"\n', line, re.IGNORECASE
)[0]
elif '"apps"' in line:
parse_apps = True
elif parse_apps and "}" in line:
parse_apps = False
# Stop searching, as the library path directly above the appid has been found.
elif parse_apps and '"1118310"' in line:
return Path(f"{library_path}/steamapps/common/RetroArch")
# Not found
raise ValueError("RetroArch not found in Steam library")
def make_executable(self, core_path: Path, rom_path: Path) -> str:
"""
Generate an executable command from the rom path and core path,
depending on the source's location.
The format depends on RetroArch's installation method,
detected from the source config location
:param Path rom_path: the game's rom path
:param Path core_path: the game's core path
:return str: an executable command
"""
self.locations.config.resolve()
args = ("-L", core_path, rom_path)
# Steam RetroArch
# (Must check before Flatpak, because Steam itself can be installed as one)
if self.locations.config.root.parent.parent.name == "steamapps":
# steam://run exepects args to be url-encoded and separated by spaces.
args = map(lambda s: url_quote(str(s), safe=""), args)
args_str = " ".join(args)
uri = f"steam://run/1118310//{args_str}/"
return f"xdg-open {shell_quote(uri)}"
# Flatpak RetroArch
args = map(lambda s: shell_quote(str(s)), args)
args_str = " ".join(args)
if self.locations.config.root.is_relative_to(shared.flatpak_dir):
return f"flatpak run org.libretro.RetroArch {args_str}"
# TODO executable override for non-sandboxed sources
# Linux native RetroArch
return f"retroarch {args_str}"
# TODO implement for windows (needs override)

View File

@@ -19,35 +19,26 @@
import sys import sys
from abc import abstractmethod from abc import abstractmethod
from collections.abc import Iterable, Iterator from collections.abc import Iterable
from typing import Any, Generator, Optional from typing import Any, Collection, Generator, Optional
from src.game import Game from src.game import Game
from src.importer.sources.location import Location from src.importer.sources.location import Location
# Type of the data returned by iterating on a Source # Type of the data returned by iterating on a Source
SourceIterationResult = None | Game | tuple[Game, tuple[Any]] SourceIterationResult = Optional[Game | tuple[Game, tuple[Any]]]
class SourceIterator(Iterator): class SourceIterable(Iterable):
"""Data producer for a source of games""" """Data producer for a source of games"""
source: "Source" = None source: "Source"
generator: Generator = None
def __init__(self, source: "Source") -> None: def __init__(self, source: "Source") -> None:
super().__init__()
self.source = source self.source = source
self.generator = self.generator_builder()
def __iter__(self) -> "SourceIterator":
return self
def __next__(self) -> SourceIterationResult:
return next(self.generator)
@abstractmethod @abstractmethod
def generator_builder(self) -> Generator[SourceIterationResult, None, None]: def __iter__(self) -> Generator[SourceIterationResult, None, None]:
""" """
Method that returns a generator that produces games Method that returns a generator that produces games
* Should be implemented as a generator method * Should be implemented as a generator method
@@ -60,59 +51,65 @@ class SourceIterator(Iterator):
class Source(Iterable): class Source(Iterable):
"""Source of games. E.g an installed app with a config file that lists game directories""" """Source of games. E.g an installed app with a config file that lists game directories"""
source_id: str
name: str name: str
variant: str = None variant: Optional[str] = None
available_on: set[str] = set() available_on: set[str] = set()
data_location: Optional[Location] = None iterable_class: type[SourceIterable]
cache_location: Optional[Location] = None
config_location: Optional[Location] = None # NOTE: Locations must be set at __init__ time, not in the class definition.
iterator_class: type[SourceIterator] # They must not be shared between source instances.
locations: Collection[Location]
@property @property
def full_name(self) -> str: def full_name(self) -> str:
"""The source's full name""" """The source's full name"""
full_name_ = self.name full_name_ = self.name
if self.variant is not None: if self.variant:
full_name_ += f" ({self.variant})" full_name_ += f" ({self.variant})"
return full_name_ return full_name_
@property
def id(self) -> str: # pylint: disable=invalid-name
"""The source's identifier"""
id_ = self.name.lower()
if self.variant is not None:
id_ += f"_{self.variant.lower()}"
return id_
@property @property
def game_id_format(self) -> str: def game_id_format(self) -> str:
"""The string format used to construct game IDs""" """The string format used to construct game IDs"""
return self.id + "_{game_id}" return self.source_id + "_{game_id}"
@property @property
def is_available(self): def is_available(self) -> bool:
return sys.platform in self.available_on return sys.platform in self.available_on
@abstractmethod
def make_executable(self, *args, **kwargs) -> str:
"""
Create a game executable command.
Should be implemented by child classes.
"""
def __iter__(self) -> Generator[SourceIterationResult, None, None]:
"""
Get an iterator for the source
:raises UnresolvableLocationError: Not iterable if any of the locations are unresolvable
"""
for location in self.locations:
location.resolve()
return iter(self.iterable_class(self))
class ExecutableFormatSource(Source):
"""Source class that uses a simple executable format to start games"""
@property @property
@abstractmethod @abstractmethod
def executable_format(self) -> str: def executable_format(self) -> str:
"""The executable format used to construct game executables""" """The executable format used to construct game executables"""
def __iter__(self) -> SourceIterator: def make_executable(self, *args, **kwargs) -> str:
""" """Use the executable format to"""
Get an iterator for the source return self.executable_format.format(args, kwargs)
:raises UnresolvableLocationError: Not iterable if any of the locations are unresolvable
"""
for location_name in ("data", "cache", "config"):
location = getattr(self, f"{location_name}_location", None)
if location is None:
continue
location.resolve()
return self.iterator_class(self)
# pylint: disable=abstract-method # pylint: disable=abstract-method
class URLExecutableSource(Source): class URLExecutableSource(ExecutableFormatSource):
"""Source class that use custom URLs to start games""" """Source class that use custom URLs to start games"""
url_format: str url_format: str

View File

@@ -18,28 +18,25 @@
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
import logging
import re import re
from pathlib import Path from pathlib import Path
from time import time from time import time
from typing import Iterable from typing import Iterable, NamedTuple
from src import shared from src import shared
from src.game import Game from src.game import Game
from src.importer.sources.source import ( from src.importer.sources.location import Location, LocationSubPath
SourceIterationResult, from src.importer.sources.source import SourceIterable, URLExecutableSource
SourceIterator,
URLExecutableSource,
)
from src.utils.steam import SteamFileHelper, SteamInvalidManifestError from src.utils.steam import SteamFileHelper, SteamInvalidManifestError
from src.importer.sources.location import Location
class SteamSourceIterator(SourceIterator): class SteamSourceIterable(SourceIterable):
source: "SteamSource" source: "SteamSource"
def get_manifest_dirs(self) -> Iterable[Path]: def get_manifest_dirs(self) -> Iterable[Path]:
"""Get dirs that contain steam app manifests""" """Get dirs that contain steam app manifests"""
libraryfolders_path = self.source.data_location["libraryfolders.vdf"] libraryfolders_path = self.source.locations.data["libraryfolders.vdf"]
with open(libraryfolders_path, "r", encoding="utf-8") as file: with open(libraryfolders_path, "r", encoding="utf-8") as file:
contents = file.read() contents = file.read()
return [ return [
@@ -62,7 +59,7 @@ class SteamSourceIterator(SourceIterator):
) )
return manifests return manifests
def generator_builder(self) -> SourceIterationResult: def __iter__(self):
"""Generator method producing games""" """Generator method producing games"""
appid_cache = set() appid_cache = set()
manifests = self.get_manifests() manifests = self.get_manifests()
@@ -74,17 +71,20 @@ class SteamSourceIterator(SourceIterator):
steam = SteamFileHelper() steam = SteamFileHelper()
try: try:
local_data = steam.get_manifest_data(manifest) local_data = steam.get_manifest_data(manifest)
except (OSError, SteamInvalidManifestError): except (OSError, SteamInvalidManifestError) as error:
logging.debug("Couldn't load appmanifest %s", manifest, exc_info=error)
continue continue
# Skip non installed games # Skip non installed games
installed_mask = 4 installed_mask = 4
if not int(local_data["stateflags"]) & installed_mask: if not int(local_data["stateflags"]) & installed_mask:
logging.debug("Skipped %s: not installed", manifest)
continue continue
# Skip duplicate appids # Skip duplicate appids
appid = local_data["appid"] appid = local_data["appid"]
if appid in appid_cache: if appid in appid_cache:
logging.debug("Skipped %s: appid already seen during import", manifest)
continue continue
appid_cache.add(appid) appid_cache.add(appid)
@@ -92,7 +92,7 @@ class SteamSourceIterator(SourceIterator):
values = { values = {
"added": added_time, "added": added_time,
"name": local_data["name"], "name": local_data["name"],
"source": self.source.id, "source": self.source.source_id,
"game_id": self.source.game_id_format.format(game_id=appid), "game_id": self.source.game_id_format.format(game_id=appid),
"executable": self.source.executable_format.format(game_id=appid), "executable": self.source.executable_format.format(game_id=appid),
} }
@@ -100,7 +100,7 @@ class SteamSourceIterator(SourceIterator):
# Add official cover image # Add official cover image
image_path = ( image_path = (
self.source.data_location["librarycache"] self.source.locations.data["librarycache"]
/ f"{appid}_library_600x900.jpg" / f"{appid}_library_600x900.jpg"
) )
additional_data = {"local_image_path": image_path, "steam_appid": appid} additional_data = {"local_image_path": image_path, "steam_appid": appid}
@@ -109,22 +109,36 @@ class SteamSourceIterator(SourceIterator):
yield (game, additional_data) yield (game, additional_data)
class SteamLocations(NamedTuple):
data: Location
class SteamSource(URLExecutableSource): class SteamSource(URLExecutableSource):
name = "Steam" source_id = "steam"
name = _("Steam")
available_on = {"linux", "win32"} available_on = {"linux", "win32"}
iterator_class = SteamSourceIterator iterable_class = SteamSourceIterable
url_format = "steam://rungameid/{game_id}" url_format = "steam://rungameid/{game_id}"
data_location = Location( locations: SteamLocations
schema_key="steam-location",
candidates=( def __init__(self) -> None:
shared.home / ".steam" / "steam", super().__init__()
shared.data_dir / "Steam", self.locations = SteamLocations(
shared.flatpak_dir / "com.valvesoftware.Steam" / "data" / "Steam", Location(
shared.programfiles32_dir / "Steam", schema_key="steam-location",
), candidates=(
paths={ shared.home / ".steam" / "steam",
"libraryfolders.vdf": (False, "steamapps/libraryfolders.vdf"), shared.data_dir / "Steam",
"librarycache": (True, "appcache/librarycache"), shared.flatpak_dir / "com.valvesoftware.Steam" / "data" / "Steam",
}, shared.programfiles32_dir / "Steam",
) ),
paths={
"libraryfolders.vdf": LocationSubPath(
"steamapps/libraryfolders.vdf"
),
"librarycache": LocationSubPath("appcache/librarycache", True),
},
invalid_subtitle=Location.DATA_INVALID_SUBTITLE,
)
)

View File

@@ -29,7 +29,7 @@ class ColorLogFormatter(Formatter):
RED = "\033[31m" RED = "\033[31m"
YELLOW = "\033[33m" YELLOW = "\033[33m"
def format(self, record: LogRecord): def format(self, record: LogRecord) -> str:
super_format = super().format(record) super_format = super().format(record)
match record.levelname: match record.levelname:
case "CRITICAL": case "CRITICAL":

View File

@@ -18,11 +18,12 @@
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
import lzma import lzma
from io import StringIO from io import TextIOWrapper
from logging import StreamHandler from logging import StreamHandler
from lzma import FORMAT_XZ, PRESET_DEFAULT from lzma import FORMAT_XZ, PRESET_DEFAULT
from os import PathLike from os import PathLike
from pathlib import Path from pathlib import Path
from typing import Optional
from src import shared from src import shared
@@ -37,7 +38,7 @@ class SessionFileHandler(StreamHandler):
backup_count: int backup_count: int
filename: Path filename: Path
log_file: StringIO = None log_file: Optional[TextIOWrapper] = None
def create_dir(self) -> None: def create_dir(self) -> None:
"""Create the log dir if needed""" """Create the log dir if needed"""
@@ -83,7 +84,7 @@ class SessionFileHandler(StreamHandler):
logfiles.sort(key=self.file_sort_key, reverse=True) logfiles.sort(key=self.file_sort_key, reverse=True)
return logfiles return logfiles
def rotate_file(self, path: Path): def rotate_file(self, path: Path) -> None:
"""Rotate a file's number suffix and remove it if it's too old""" """Rotate a file's number suffix and remove it if it's too old"""
# If uncompressed, compress # If uncompressed, compress
@@ -128,5 +129,6 @@ class SessionFileHandler(StreamHandler):
super().__init__(self.log_file) super().__init__(self.log_file)
def close(self) -> None: def close(self) -> None:
self.log_file.close() if self.log_file:
self.log_file.close()
super().close() super().close()

View File

@@ -27,7 +27,7 @@ import sys
from src import shared from src import shared
def setup_logging(): def setup_logging() -> None:
"""Intitate the app's logging""" """Intitate the app's logging"""
is_dev = shared.PROFILE == "development" is_dev = shared.PROFILE == "development"
@@ -73,7 +73,7 @@ def setup_logging():
"PIL": { "PIL": {
"handlers": ["lib_console_handler", "file_handler"], "handlers": ["lib_console_handler", "file_handler"],
"propagate": False, "propagate": False,
"level": "NOTSET", "level": "WARNING",
}, },
"urllib3": { "urllib3": {
"handlers": ["lib_console_handler", "file_handler"], "handlers": ["lib_console_handler", "file_handler"],
@@ -89,7 +89,7 @@ def setup_logging():
logging_dot_config.dictConfig(config) logging_dot_config.dictConfig(config)
def log_system_info(): def log_system_info() -> None:
"""Log system debug information""" """Log system debug information"""
logging.debug("Starting %s v%s (%s)", shared.APP_ID, shared.VERSION, shared.PROFILE) logging.debug("Starting %s v%s (%s)", shared.APP_ID, shared.VERSION, shared.PROFILE)

View File

@@ -19,7 +19,9 @@
import json import json
import lzma import lzma
import os
import sys import sys
from typing import Any, Optional
import gi import gi
@@ -39,31 +41,38 @@ from src.importer.sources.heroic_source import HeroicSource
from src.importer.sources.itch_source import ItchSource from src.importer.sources.itch_source import ItchSource
from src.importer.sources.legendary_source import LegendarySource from src.importer.sources.legendary_source import LegendarySource
from src.importer.sources.lutris_source import LutrisSource from src.importer.sources.lutris_source import LutrisSource
from src.importer.sources.retroarch_source import RetroarchSource
from src.importer.sources.steam_source import SteamSource from src.importer.sources.steam_source import SteamSource
from src.logging.setup import log_system_info, setup_logging from src.logging.setup import log_system_info, setup_logging
from src.preferences import PreferencesWindow from src.preferences import PreferencesWindow
from src.store.managers.cover_manager import CoverManager
from src.store.managers.display_manager import DisplayManager from src.store.managers.display_manager import DisplayManager
from src.store.managers.file_manager import FileManager from src.store.managers.file_manager import FileManager
from src.store.managers.local_cover_manager import LocalCoverManager
from src.store.managers.online_cover_manager import OnlineCoverManager
from src.store.managers.sgdb_manager import SGDBManager from src.store.managers.sgdb_manager import SGDBManager
from src.store.managers.steam_api_manager import SteamAPIManager from src.store.managers.steam_api_manager import SteamAPIManager
from src.store.store import Store from src.store.store import Store
from src.utils.migrate_files_v1_to_v2 import migrate_files_v1_to_v2
from src.window import CartridgesWindow from src.window import CartridgesWindow
class CartridgesApplication(Adw.Application): class CartridgesApplication(Adw.Application):
win = None win: CartridgesWindow
def __init__(self): def __init__(self) -> None:
shared.store = Store() shared.store = Store()
super().__init__( super().__init__(
application_id=shared.APP_ID, flags=Gio.ApplicationFlags.FLAGS_NONE application_id=shared.APP_ID, flags=Gio.ApplicationFlags.FLAGS_NONE
) )
def do_activate(self): # pylint: disable=arguments-differ def do_activate(self) -> None: # pylint: disable=arguments-differ
"""Called on app creation""" """Called on app creation"""
setup_logging()
log_system_info()
if os.name == "nt":
migrate_files_v1_to_v2()
# Set fallback icon-name # Set fallback icon-name
Gtk.Window.set_default_icon_name(shared.APP_ID) Gtk.Window.set_default_icon_name(shared.APP_ID)
@@ -89,11 +98,10 @@ class CartridgesApplication(Adw.Application):
self.load_games_from_disk() self.load_games_from_disk()
# Add rest of the managers for game imports # Add rest of the managers for game imports
shared.store.add_manager(LocalCoverManager()) shared.store.add_manager(CoverManager())
shared.store.add_manager(SteamAPIManager()) shared.store.add_manager(SteamAPIManager())
shared.store.add_manager(OnlineCoverManager())
shared.store.add_manager(SGDBManager()) shared.store.add_manager(SGDBManager())
shared.store.enable_manager_in_pipelines(FileManager) shared.store.toggle_manager_in_pipelines(FileManager, True)
# Create actions # Create actions
self.create_actions( self.create_actions(
@@ -134,14 +142,17 @@ class CartridgesApplication(Adw.Application):
self.win.present() self.win.present()
def load_games_from_disk(self): def load_games_from_disk(self) -> None:
if shared.games_dir.is_dir(): if shared.games_dir.is_dir():
for game_file in shared.games_dir.iterdir(): for game_file in shared.games_dir.iterdir():
data = json.load(game_file.open()) try:
data = json.load(game_file.open())
except (OSError, json.decoder.JSONDecodeError):
continue
game = Game(data) game = Game(data)
shared.store.add_game(game, {"skip_save": True}) shared.store.add_game(game, {"skip_save": True})
def on_about_action(self, *_args): def on_about_action(self, *_args: Any) -> None:
# Get the debug info from the log files # Get the debug info from the log files
debug_str = "" debug_str = ""
for i, path in enumerate(shared.log_files): for i, path in enumerate(shared.log_files):
@@ -166,9 +177,10 @@ class CartridgesApplication(Adw.Application):
developers=[ developers=[
"kramo https://kramo.hu", "kramo https://kramo.hu",
"Geoffrey Coulaud https://geoffrey-coulaud.fr", "Geoffrey Coulaud https://geoffrey-coulaud.fr",
"Rilic https://rilic.red",
"Arcitec https://github.com/Arcitec", "Arcitec https://github.com/Arcitec",
"Domenico https://github.com/Domefemia",
"Paweł Lidwin https://github.com/imLinguin", "Paweł Lidwin https://github.com/imLinguin",
"Domenico https://github.com/Domefemia",
"Rafael Mardojai CM https://mardojai.com", "Rafael Mardojai CM https://mardojai.com",
], ],
designers=("kramo https://kramo.hu",), designers=("kramo https://kramo.hu",),
@@ -179,12 +191,17 @@ class CartridgesApplication(Adw.Application):
# 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
translator_credits=_("translator_credits"), translator_credits=_("translator_credits"),
debug_info=debug_str, debug_info=debug_str,
debug_info_filename="cartridges.log",
) )
about.present() about.present()
def on_preferences_action( def on_preferences_action(
self, _action=None, _parameter=None, page_name=None, expander_row=None self,
): _action: Any = None,
_parameter: Any = None,
page_name: Optional[str] = None,
expander_row: Optional[str] = None,
) -> CartridgesWindow:
win = PreferencesWindow() win = PreferencesWindow()
if page_name: if page_name:
win.set_visible_page_name(page_name) win.set_visible_page_name(page_name)
@@ -194,73 +211,76 @@ class CartridgesApplication(Adw.Application):
return win return win
def on_launch_game_action(self, *_args): def on_launch_game_action(self, *_args: Any) -> None:
self.win.active_game.launch() self.win.active_game.launch()
def on_hide_game_action(self, *_args): def on_hide_game_action(self, *_args: Any) -> None:
self.win.active_game.toggle_hidden() self.win.active_game.toggle_hidden()
def on_edit_game_action(self, *_args): def on_edit_game_action(self, *_args: Any) -> None:
DetailsWindow(self.win.active_game) DetailsWindow(self.win.active_game)
def on_add_game_action(self, *_args): def on_add_game_action(self, *_args: Any) -> None:
DetailsWindow() DetailsWindow()
def on_import_action(self, *_args): def on_import_action(self, *_args: Any) -> None:
importer = Importer() shared.importer = Importer()
if shared.schema.get_boolean("lutris"): if shared.schema.get_boolean("lutris"):
importer.add_source(LutrisSource()) shared.importer.add_source(LutrisSource())
if shared.schema.get_boolean("steam"): if shared.schema.get_boolean("steam"):
importer.add_source(SteamSource()) shared.importer.add_source(SteamSource())
if shared.schema.get_boolean("heroic"): if shared.schema.get_boolean("heroic"):
importer.add_source(HeroicSource()) shared.importer.add_source(HeroicSource())
if shared.schema.get_boolean("bottles"): if shared.schema.get_boolean("bottles"):
importer.add_source(BottlesSource()) shared.importer.add_source(BottlesSource())
if shared.schema.get_boolean("flatpak"): if shared.schema.get_boolean("flatpak"):
importer.add_source(FlatpakSource()) shared.importer.add_source(FlatpakSource())
if shared.schema.get_boolean("itch"): if shared.schema.get_boolean("itch"):
importer.add_source(ItchSource()) shared.importer.add_source(ItchSource())
if shared.schema.get_boolean("legendary"): if shared.schema.get_boolean("legendary"):
importer.add_source(LegendarySource()) shared.importer.add_source(LegendarySource())
importer.run() if shared.schema.get_boolean("retroarch"):
shared.importer.add_source(RetroarchSource())
def on_remove_game_action(self, *_args): shared.importer.run()
def on_remove_game_action(self, *_args: Any) -> None:
self.win.active_game.remove_game() self.win.active_game.remove_game()
def on_remove_game_details_view_action(self, *_args): def on_remove_game_details_view_action(self, *_args: Any) -> None:
if self.win.stack.get_visible_child() == self.win.details_view: if self.win.stack.get_visible_child() == self.win.details_view:
self.on_remove_game_action() self.on_remove_game_action()
def search(self, uri): def search(self, uri: str) -> None:
Gio.AppInfo.launch_default_for_uri(f"{uri}{self.win.active_game.name}") Gio.AppInfo.launch_default_for_uri(f"{uri}{self.win.active_game.name}")
def on_igdb_search_action(self, *_args): def on_igdb_search_action(self, *_args: Any) -> None:
self.search("https://www.igdb.com/search?type=1&q=") self.search("https://www.igdb.com/search?type=1&q=")
def on_sgdb_search_action(self, *_args): def on_sgdb_search_action(self, *_args: Any) -> None:
self.search("https://www.steamgriddb.com/search/grids?term=") self.search("https://www.steamgriddb.com/search/grids?term=")
def on_protondb_search_action(self, *_args): def on_protondb_search_action(self, *_args: Any) -> None:
self.search("https://www.protondb.com/search?q=") self.search("https://www.protondb.com/search?q=")
def on_lutris_search_action(self, *_args): def on_lutris_search_action(self, *_args: Any) -> None:
self.search("https://lutris.net/games?q=") self.search("https://lutris.net/games?q=")
def on_hltb_search_action(self, *_args): def on_hltb_search_action(self, *_args: Any) -> None:
self.search("https://howlongtobeat.com/?q=") self.search("https://howlongtobeat.com/?q=")
def on_quit_action(self, *_args): def on_quit_action(self, *_args: Any) -> None:
self.quit() self.quit()
def create_actions(self, actions): def create_actions(self, actions: set) -> None:
for action in actions: for action in actions:
simple_action = Gio.SimpleAction.new(action[0], None) simple_action = Gio.SimpleAction.new(action[0], None)
@@ -276,9 +296,7 @@ class CartridgesApplication(Adw.Application):
scope.add_action(simple_action) scope.add_action(simple_action)
def main(_version): def main(_version: int) -> Any:
"""App entry point""" """App entry point"""
setup_logging()
log_system_info()
app = CartridgesApplication() app = CartridgesApplication()
return app.run(sys.argv) return app.run(sys.argv)

View File

@@ -21,10 +21,12 @@ import logging
import re import re
from pathlib import Path from pathlib import Path
from shutil import rmtree from shutil import rmtree
from typing import Any, Callable, Optional
from gi.repository import Adw, Gio, GLib, Gtk from gi.repository import Adw, Gio, GLib, Gtk
from src import shared from src import shared
from src.game import Game
from src.importer.sources.bottles_source import BottlesSource from src.importer.sources.bottles_source import BottlesSource
from src.importer.sources.flatpak_source import FlatpakSource from src.importer.sources.flatpak_source import FlatpakSource
from src.importer.sources.heroic_source import HeroicSource from src.importer.sources.heroic_source import HeroicSource
@@ -32,6 +34,7 @@ from src.importer.sources.itch_source import ItchSource
from src.importer.sources.legendary_source import LegendarySource from src.importer.sources.legendary_source import LegendarySource
from src.importer.sources.location import UnresolvableLocationError from src.importer.sources.location import UnresolvableLocationError
from src.importer.sources.lutris_source import LutrisSource from src.importer.sources.lutris_source import LutrisSource
from src.importer.sources.retroarch_source import RetroarchSource
from src.importer.sources.source import Source from src.importer.sources.source import Source
from src.importer.sources.steam_source import SteamSource from src.importer.sources.steam_source import SteamSource
from src.utils.create_dialog import create_dialog from src.utils.create_dialog import create_dialog
@@ -51,6 +54,8 @@ class PreferencesWindow(Adw.PreferencesWindow):
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_missing_switch = Gtk.Template.Child()
steam_expander_row = Gtk.Template.Child() steam_expander_row = Gtk.Template.Child()
steam_data_action_row = Gtk.Template.Child() steam_data_action_row = Gtk.Template.Child()
steam_data_file_chooser_button = Gtk.Template.Child() steam_data_file_chooser_button = Gtk.Template.Child()
@@ -68,6 +73,7 @@ class PreferencesWindow(Adw.PreferencesWindow):
heroic_config_file_chooser_button = Gtk.Template.Child() heroic_config_file_chooser_button = Gtk.Template.Child()
heroic_import_epic_switch = Gtk.Template.Child() heroic_import_epic_switch = Gtk.Template.Child()
heroic_import_gog_switch = Gtk.Template.Child() heroic_import_gog_switch = Gtk.Template.Child()
heroic_import_amazon_switch = Gtk.Template.Child()
heroic_import_sideload_switch = Gtk.Template.Child() heroic_import_sideload_switch = Gtk.Template.Child()
bottles_expander_row = Gtk.Template.Child() bottles_expander_row = Gtk.Template.Child()
@@ -82,6 +88,10 @@ class PreferencesWindow(Adw.PreferencesWindow):
legendary_config_action_row = Gtk.Template.Child() legendary_config_action_row = Gtk.Template.Child()
legendary_config_file_chooser_button = Gtk.Template.Child() legendary_config_file_chooser_button = Gtk.Template.Child()
retroarch_expander_row = Gtk.Template.Child()
retroarch_config_action_row = Gtk.Template.Child()
retroarch_config_file_chooser_button = Gtk.Template.Child()
flatpak_expander_row = Gtk.Template.Child() flatpak_expander_row = Gtk.Template.Child()
flatpak_data_action_row = Gtk.Template.Child() flatpak_data_action_row = Gtk.Template.Child()
flatpak_data_file_chooser_button = Gtk.Template.Child() flatpak_data_file_chooser_button = Gtk.Template.Child()
@@ -99,10 +109,10 @@ class PreferencesWindow(Adw.PreferencesWindow):
reset_button = Gtk.Template.Child() reset_button = Gtk.Template.Child()
remove_all_games_button = Gtk.Template.Child() remove_all_games_button = Gtk.Template.Child()
removed_games = set() removed_games: set[Game] = set()
warning_menu_buttons = {} warning_menu_buttons: dict = {}
def __init__(self, **kwargs): def __init__(self, **kwargs: Any) -> None:
super().__init__(**kwargs) super().__init__(**kwargs)
self.win = shared.win self.win = shared.win
self.file_chooser = Gtk.FileDialog() self.file_chooser = Gtk.FileDialog()
@@ -138,17 +148,18 @@ class PreferencesWindow(Adw.PreferencesWindow):
ItchSource, ItchSource,
LegendarySource, LegendarySource,
LutrisSource, LutrisSource,
RetroarchSource,
SteamSource, SteamSource,
): ):
source = source_class() source = source_class()
if not source.is_available: if not source.is_available:
expander_row = getattr(self, f"{source.id}_expander_row") expander_row = getattr(self, f"{source.source_id}_expander_row")
expander_row.set_visible(False) expander_row.set_visible(False)
else: else:
self.init_source_row(source) self.init_source_row(source)
# SteamGridDB # SteamGridDB
def sgdb_key_changed(*_args): def sgdb_key_changed(*_args: Any) -> None:
shared.schema.set_string("sgdb-key", self.sgdb_key_entry_row.get_text()) shared.schema.set_string("sgdb-key", self.sgdb_key_entry_row.get_text())
self.sgdb_key_entry_row.set_text(shared.schema.get_string("sgdb-key")) self.sgdb_key_entry_row.set_text(shared.schema.get_string("sgdb-key"))
@@ -162,7 +173,7 @@ class PreferencesWindow(Adw.PreferencesWindow):
) )
) )
def set_sgdb_sensitive(widget): def set_sgdb_sensitive(widget: Adw.EntryRow) -> None:
if not widget.get_text(): if not widget.get_text():
shared.schema.set_boolean("sgdb", False) shared.schema.set_boolean("sgdb", False)
@@ -173,26 +184,28 @@ class PreferencesWindow(Adw.PreferencesWindow):
# Switches # Switches
self.bind_switches( self.bind_switches(
( {
"exit-after-launch", "exit-after-launch",
"cover-launches-game", "cover-launches-game",
"high-quality-images", "high-quality-images",
"remove-missing",
"lutris-import-steam", "lutris-import-steam",
"lutris-import-flatpak", "lutris-import-flatpak",
"heroic-import-epic", "heroic-import-epic",
"heroic-import-gog", "heroic-import-gog",
"heroic-import-amazon",
"heroic-import-sideload", "heroic-import-sideload",
"flatpak-import-launchers", "flatpak-import-launchers",
"sgdb", "sgdb",
"sgdb-prefer", "sgdb-prefer",
"sgdb-animated", "sgdb-animated",
) }
) )
def get_switch(self, setting): def get_switch(self, setting: str) -> Any:
return getattr(self, f'{setting.replace("-", "_")}_switch') return getattr(self, f'{setting.replace("-", "_")}_switch')
def bind_switches(self, settings): def bind_switches(self, settings: set[str]) -> None:
for setting in settings: for setting in settings:
shared.schema.bind( shared.schema.bind(
setting, setting,
@@ -201,10 +214,12 @@ class PreferencesWindow(Adw.PreferencesWindow):
Gio.SettingsBindFlags.DEFAULT, Gio.SettingsBindFlags.DEFAULT,
) )
def choose_folder(self, _widget, callback, callback_data=None): def choose_folder(
self, _widget: Any, callback: Callable, callback_data: Optional[str] = None
) -> None:
self.file_chooser.select_folder(self.win, None, callback, callback_data) self.file_chooser.select_folder(self.win, None, callback, callback_data)
def undo_remove_all(self, *_args): def undo_remove_all(self, *_args: Any) -> None:
for game in self.removed_games: for game in self.removed_games:
game.removed = False game.removed = False
game.save() game.save()
@@ -213,11 +228,10 @@ class PreferencesWindow(Adw.PreferencesWindow):
self.removed_games = set() self.removed_games = set()
self.toast.dismiss() self.toast.dismiss()
def remove_all_games(self, *_args): def remove_all_games(self, *_args: Any) -> None:
for game in shared.store.games.values(): for game in shared.store:
if not game.removed: if not game.removed:
self.removed_games.add(game) self.removed_games.add(game)
game.removed = True game.removed = True
game.save() game.save()
game.update() game.update()
@@ -227,7 +241,7 @@ class PreferencesWindow(Adw.PreferencesWindow):
self.add_toast(self.toast) self.add_toast(self.toast)
def reset_app(self, *_args): def reset_app(self, *_args: Any) -> None:
rmtree(shared.data_dir / "cartridges", True) rmtree(shared.data_dir / "cartridges", True)
rmtree(shared.config_dir / "cartridges", True) rmtree(shared.config_dir / "cartridges", True)
rmtree(shared.cache_dir / "cartridges", True) rmtree(shared.cache_dir / "cartridges", True)
@@ -245,35 +259,35 @@ class PreferencesWindow(Adw.PreferencesWindow):
shared.win.get_application().quit() shared.win.get_application().quit()
def update_source_action_row_paths(self, source): def update_source_action_row_paths(self, source: Source) -> None:
"""Set the dir subtitle for a source's action rows""" """Set the dir subtitle for a source's action rows"""
for location in ("data", "config", "cache"): for location_name, location in source.locations._asdict().items():
# Get the action row to subtitle # Get the action row to subtitle
action_row = getattr(self, f"{source.id}_{location}_action_row", None) action_row = getattr(
self, f"{source.source_id}_{location_name}_action_row", None
)
if not action_row: if not action_row:
continue continue
path = Path(shared.schema.get_string(location.schema_key)).expanduser()
infix = "-cache" if location == "cache" else ""
key = f"{source.id}{infix}-location"
path = Path(shared.schema.get_string(key)).expanduser()
# Remove the path prefix if picked via Flatpak portal # Remove the path prefix if picked via Flatpak portal
subtitle = re.sub("/run/user/\\d*/doc/.*/", "", str(path)) subtitle = re.sub("/run/user/\\d*/doc/.*/", "", str(path))
action_row.set_subtitle(subtitle) action_row.set_subtitle(subtitle)
def resolve_locations(self, source): def resolve_locations(self, source: Source) -> None:
"""Resolve locations and add a warning if location cannot be found""" """Resolve locations and add a warning if location cannot be found"""
def clear_warning_selection(_widget, label): def clear_warning_selection(_widget: Any, label: Gtk.Label) -> None:
label.select_region(-1, -1) label.select_region(-1, -1)
for location_name in ("data", "config", "cache"): for location_name, location in source.locations._asdict().items():
action_row = getattr(self, f"{source.id}_{location_name}_action_row", None) action_row = getattr(
self, f"{source.source_id}_{location_name}_action_row", None
)
if not action_row: if not action_row:
continue continue
try: try:
getattr(source, f"{location_name}_location", None).resolve() location.resolve()
except UnresolvableLocationError: except UnresolvableLocationError:
popover = Gtk.Popover( popover = Gtk.Popover(
@@ -310,80 +324,66 @@ class PreferencesWindow(Adw.PreferencesWindow):
menu_button.add_css_class("warning") menu_button.add_css_class("warning")
action_row.add_prefix(menu_button) action_row.add_prefix(menu_button)
self.warning_menu_buttons[source.id] = menu_button self.warning_menu_buttons[source.source_id] = menu_button
def init_source_row(self, source: Source): def init_source_row(self, source: Source) -> None:
"""Initialize a preference row for a source class""" """Initialize a preference row for a source class"""
def set_dir(_widget, result, location_name): def set_dir(_widget: Any, result: Gio.Task, location_name: str) -> None:
"""Callback called when a dir picker button is clicked""" """Callback called when a dir picker button is clicked"""
try: try:
path = Path(self.file_chooser.select_folder_finish(result).get_path()) path = Path(self.file_chooser.select_folder_finish(result).get_path())
except GLib.GError: except GLib.GError:
return return
# Good picked location # Good picked location
location = getattr(source, f"{location_name}_location") location = source.locations._asdict()[location_name]
if location.check_candidate(path): if location.check_candidate(path):
# Set the schema shared.schema.set_string(location.schema_key, str(path))
infix = "-cache" if location_name == "cache" else ""
key = f"{source.id}{infix}-location"
value = str(path)
shared.schema.set_string(key, value)
# Update the row
self.update_source_action_row_paths(source) self.update_source_action_row_paths(source)
if self.warning_menu_buttons.get(source.source_id):
if self.warning_menu_buttons.get(source.id):
action_row = getattr( action_row = getattr(
self, f"{source.id}_{location_name}_action_row", None self, f"{source.source_id}_{location_name}_action_row", None
) )
action_row.remove(self.warning_menu_buttons[source.id]) action_row.remove( # type: ignore
self.warning_menu_buttons.pop(source.id) self.warning_menu_buttons[source.source_id]
)
logging.debug("User-set value for schema key %s: %s", key, value) self.warning_menu_buttons.pop(source.source_id)
logging.debug("User-set value for %s is %s", location.schema_key, path)
# Bad picked location, inform user # Bad picked location, inform user
else: else:
title = _("Invalid Directory") title = _("Invalid Directory")
match location_name:
case "cache":
# The variable is the name of the source
subtitle_format = _("Select the {} cache directory.")
case "config":
# The variable is the name of the source
subtitle_format = _("Select the {} configuration directory.")
case "data":
# The variable is the name of the source
subtitle_format = _("Select the {} data directory.")
dialog = create_dialog( dialog = create_dialog(
self, self,
title, title,
subtitle_format.format(source.name), location.invalid_subtitle.format(source.name),
"choose_folder", "choose_folder",
_("Set Location"), _("Set Location"),
) )
def on_response(widget, response): def on_response(widget: Any, response: str) -> None:
if response == "choose_folder": if response == "choose_folder":
self.choose_folder(widget, set_dir, location_name) self.choose_folder(widget, set_dir, location_name)
dialog.connect("response", on_response) dialog.connect("response", on_response)
# Bind expander row activation to source being enabled # Bind expander row activation to source being enabled
expander_row = getattr(self, f"{source.id}_expander_row") expander_row = getattr(self, f"{source.source_id}_expander_row")
shared.schema.bind( shared.schema.bind(
source.id, source.source_id,
expander_row, expander_row,
"enable-expansion", "enable-expansion",
Gio.SettingsBindFlags.DEFAULT, Gio.SettingsBindFlags.DEFAULT,
) )
# Connect dir picker buttons # Connect dir picker buttons
for location in ("data", "config", "cache"): for location_name in source.locations._asdict():
button = getattr(self, f"{source.id}_{location}_file_chooser_button", None) button = getattr(
self, f"{source.source_id}_{location_name}_file_chooser_button", None
)
if button is not None: if button is not None:
button.connect("clicked", self.choose_folder, set_dir, location) button.connect("clicked", self.choose_folder, set_dir, location_name)
# Set the source row subtitles # Set the source row subtitles
self.resolve_locations(source) self.resolve_locations(source)

View File

@@ -34,13 +34,14 @@ state_schema = Gio.Settings.new(APP_ID + ".State")
home = Path.home() home = Path.home()
data_dir = Path(GLib.get_user_data_dir()) data_dir = Path(GLib.get_user_data_dir())
config_dir = Path(GLib.get_user_config_dir()) config_dir = Path(GLib.get_user_config_dir())
cache_dir = Path(GLib.get_user_config_dir()) cache_dir = Path(GLib.get_user_cache_dir())
flatpak_dir = home / ".var" / "app" flatpak_dir = home / ".var" / "app"
games_dir = data_dir / "cartridges" / "games" games_dir = data_dir / "cartridges" / "games"
covers_dir = data_dir / "cartridges" / "covers" covers_dir = data_dir / "cartridges" / "covers"
appdata_dir = Path(os.getenv("appdata") or "C:\\Users\\Default\\AppData\\Roaming") appdata_dir = Path(os.getenv("appdata") or "C:\\Users\\Default\\AppData\\Roaming")
local_appdata_dir = Path(os.getenv("csidl_local_appdata") or "C:\\Users\\Default\\AppData\\Local")
programfiles32_dir = Path(os.getenv("programfiles(x86)") or "C:\\Program Files (x86)") programfiles32_dir = Path(os.getenv("programfiles(x86)") or "C:\\Program Files (x86)")
scale_factor = max( scale_factor = max(

View File

@@ -56,7 +56,7 @@ class AsyncManager(Manager):
def _task_thread_func(self, _task, _source_object, data, _cancellable): def _task_thread_func(self, _task, _source_object, data, _cancellable):
"""Task thread entry point""" """Task thread entry point"""
game, additional_data, *_rest = data game, additional_data, *_rest = data
self.execute_resilient_manager_logic(game, additional_data) self.run(game, additional_data)
def _task_callback(self, _source_object, _result, data): def _task_callback(self, _source_object, _result, data):
"""Method run after the task is done""" """Method run after the task is done"""

View File

@@ -0,0 +1,197 @@
# local_cover_manager.py
#
# Copyright 2023 Geoffrey Coulaud
# Copyright 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 typing import NamedTuple
import requests
from gi.repository import Gio, GdkPixbuf
from requests.exceptions import HTTPError, SSLError
from src import shared
from src.game import Game
from src.store.managers.manager import Manager
from src.store.managers.steam_api_manager import SteamAPIManager
from src.utils.save_cover import resize_cover, save_cover
class ImageSize(NamedTuple):
width: float = 0
height: float = 0
@property
def aspect_ratio(self) -> float:
return self.width / self.height
def __str__(self):
return f"{self.width}x{self.height}"
def __mul__(self, scale: float | int) -> "ImageSize":
return ImageSize(
self.width * scale,
self.height * scale,
)
def __truediv__(self, divisor: float | int) -> "ImageSize":
return self * (1 / divisor)
def __add__(self, other_size: "ImageSize") -> "ImageSize":
return ImageSize(
self.width + other_size.width,
self.height + other_size.height,
)
def __sub__(self, other_size: "ImageSize") -> "ImageSize":
return self + (other_size * -1)
def element_wise_div(self, other_size: "ImageSize") -> "ImageSize":
"""Divide every element of self by the equivalent in the other size"""
return ImageSize(
self.width / other_size.width,
self.height / other_size.height,
)
def element_wise_mul(self, other_size: "ImageSize") -> "ImageSize":
"""Multiply every element of self by the equivalent in the other size"""
return ImageSize(
self.width * other_size.width,
self.height * other_size.height,
)
def invert(self) -> "ImageSize":
"""Invert the element of self"""
return ImageSize(1, 1).element_wise_div(self)
class CoverManager(Manager):
"""
Manager in charge of adding the cover image of the game
Order of priority is:
1. local cover
2. icon cover
3. online cover
"""
run_after = (SteamAPIManager,)
retryable_on = (HTTPError, SSLError, ConnectionError)
def download_image(self, url: str) -> Path:
image_file = Gio.File.new_tmp()[0]
path = Path(image_file.get_path())
with requests.get(url, timeout=5) as cover:
cover.raise_for_status()
path.write_bytes(cover.content)
return path
def is_stretchable(self, source_size: ImageSize, cover_size: ImageSize) -> bool:
is_taller = source_size.aspect_ratio < cover_size.aspect_ratio
if is_taller:
return True
max_stretch = 0.12
resized_height = (1 / source_size.aspect_ratio) * cover_size.width
stretch = 1 - (resized_height / cover_size.height)
return stretch <= max_stretch
def save_composited_cover(
self,
game: Game,
image_path: Path,
scale: float = 1,
blur_size: ImageSize = ImageSize(2, 2),
) -> None:
"""
Save the image composited with a background blur.
If the image is stretchable, just stretch it.
:param game: The game to save the cover for
:param path: Path where the source image is located
:param scale:
Scale of the smalled image side
compared to the corresponding side in the cover
:param blur_size: Size of the downscaled image used for the blur
"""
# Load source image
source = GdkPixbuf.Pixbuf.new_from_file(str(image_path))
source_size = ImageSize(source.get_width(), source.get_height())
cover_size = ImageSize._make(shared.image_size)
# Stretch if possible
if scale == 1 and self.is_stretchable(source_size, cover_size):
save_cover(game.game_id, resize_cover(pixbuf=source))
return
# Create the blurred cover background
# fmt: off
cover = (
source
.scale_simple(*blur_size, GdkPixbuf.InterpType.BILINEAR)
.scale_simple(*cover_size, GdkPixbuf.InterpType.BILINEAR)
)
# fmt: on
# Scale to fit, apply scaling, then center
uniform_scale = scale * min(cover_size.element_wise_div(source_size))
source_in_cover_size = source_size * uniform_scale
source_in_cover_position = (cover_size - source_in_cover_size) / 2
# Center the scaled source image in the cover
source.composite(
cover,
*source_in_cover_position,
*source_in_cover_size,
*source_in_cover_position,
uniform_scale,
uniform_scale,
GdkPixbuf.InterpType.BILINEAR,
255,
)
save_cover(game.game_id, resize_cover(pixbuf=cover))
def main(self, game: Game, additional_data: dict) -> None:
if game.blacklisted:
return
for key in (
"local_image_path",
"local_icon_path",
"online_cover_url",
):
# Get an image path
if not (value := additional_data.get(key)):
continue
if key == "online_cover_url":
image_path = self.download_image(value)
else:
image_path = Path(value)
if not image_path.is_file():
continue
# Icon cover
if key == "local_icon_path":
self.save_composited_cover(
game,
image_path,
scale=0.7,
blur_size=ImageSize(1, 2),
)
return
self.save_composited_cover(game, image_path)

View File

@@ -30,7 +30,7 @@ class DisplayManager(Manager):
run_after = (SteamAPIManager, SGDBManager) run_after = (SteamAPIManager, SGDBManager)
signals = {"update-ready"} signals = {"update-ready"}
def manager_logic(self, game: Game, _additional_data: dict) -> None: def main(self, game: Game, _additional_data: dict) -> None:
if game.get_parent(): if game.get_parent():
game.get_parent().get_parent().remove(game) game.get_parent().get_parent().remove(game)
if game.get_parent(): if game.get_parent():

View File

@@ -31,7 +31,7 @@ class FileManager(AsyncManager):
run_after = (SteamAPIManager,) run_after = (SteamAPIManager,)
signals = {"save-ready"} signals = {"save-ready"}
def manager_logic(self, game: Game, additional_data: dict) -> None: def main(self, game: Game, additional_data: dict) -> None:
if additional_data.get("skip_save"): # Skip saving when loading games from disk if additional_data.get("skip_save"): # Skip saving when loading games from disk
return return

View File

@@ -1,71 +0,0 @@
# local_cover_manager.py
#
# Copyright 2023 Geoffrey Coulaud
# Copyright 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
from src import shared
from src.game import Game
from src.store.managers.manager import Manager
from src.store.managers.steam_api_manager import SteamAPIManager
from src.utils.save_cover import resize_cover, save_cover
class LocalCoverManager(Manager):
"""Manager in charge of adding the local cover image of the game"""
run_after = (SteamAPIManager,)
def manager_logic(self, game: Game, additional_data: dict) -> None:
if image_path := additional_data.get("local_image_path"):
if not image_path.is_file():
return
save_cover(game.game_id, resize_cover(image_path))
elif icon_path := additional_data.get("local_icon_path"):
cover_width, cover_height = shared.image_size
dest_width = cover_width * 0.7
dest_height = cover_width * 0.7
dest_x = cover_width * 0.15
dest_y = (cover_height - dest_height) / 2
image = GdkPixbuf.Pixbuf.new_from_file(str(icon_path)).scale_simple(
dest_width, dest_height, GdkPixbuf.InterpType.BILINEAR
)
cover = image.scale_simple(
1, 2, GdkPixbuf.InterpType.BILINEAR
).scale_simple(cover_width, cover_height, GdkPixbuf.InterpType.BILINEAR)
image.composite(
cover,
dest_x,
dest_y,
dest_width,
dest_height,
dest_x,
dest_y,
1,
1,
GdkPixbuf.InterpType.BILINEAR,
255,
)
save_cover(game.game_id, resize_cover(pixbuf=cover))

View File

@@ -46,11 +46,11 @@ class Manager(ErrorProducer):
max_tries: int = 3 max_tries: int = 3
@property @property
def name(self): def name(self) -> str:
return type(self).__name__ return type(self).__name__
@abstractmethod @abstractmethod
def manager_logic(self, game: Game, additional_data: dict) -> None: def main(self, game: Game, additional_data: dict) -> None:
""" """
Manager specific logic triggered by the run method Manager specific logic triggered by the run method
* Implemented by final child classes * Implemented by final child classes
@@ -59,13 +59,13 @@ class Manager(ErrorProducer):
* May raise other exceptions that will be reported * May raise other exceptions that will be reported
""" """
def execute_resilient_manager_logic(self, game: Game, additional_data: dict): def run(self, game: Game, additional_data: dict) -> None:
"""Handle errors (retry, ignore or raise) that occur in the manager logic""" """Handle errors (retry, ignore or raise) that occur in the manager logic"""
# Keep track of the number of tries # Keep track of the number of tries
tries = 1 tries = 1
def handle_error(error: Exception): def handle_error(error: Exception) -> None:
nonlocal tries nonlocal tries
# If FriendlyError, handle its cause instead # If FriendlyError, handle its cause instead
@@ -83,11 +83,11 @@ class Manager(ErrorProducer):
retrying_format = "Retrying %s in %s for %s" retrying_format = "Retrying %s in %s for %s"
unretryable_format = "Unretryable %s in %s for %s" unretryable_format = "Unretryable %s in %s for %s"
if error in self.continue_on: if type(error) in self.continue_on:
# Handle skippable errors (skip silently) # Handle skippable errors (skip silently)
return return
if error in self.retryable_on: if type(error) in self.retryable_on:
if tries > self.max_tries: if tries > self.max_tries:
# Handle being out of retries # Handle being out of retries
logging.error(out_of_retries_format, *log_args) logging.error(out_of_retries_format, *log_args)
@@ -104,9 +104,9 @@ class Manager(ErrorProducer):
logging.error(unretryable_format, *log_args, exc_info=error) logging.error(unretryable_format, *log_args, exc_info=error)
self.report_error(base_error) self.report_error(base_error)
def try_manager_logic(): def try_manager_logic() -> None:
try: try:
self.manager_logic(game, additional_data) self.main(game, additional_data)
except Exception as error: # pylint: disable=broad-exception-caught except Exception as error: # pylint: disable=broad-exception-caught
handle_error(error) handle_error(error)
@@ -116,5 +116,5 @@ class Manager(ErrorProducer):
self, game: Game, additional_data: dict, callback: Callable[["Manager"], Any] self, game: Game, additional_data: dict, callback: Callable[["Manager"], Any]
) -> None: ) -> None:
"""Pass the game through the manager""" """Pass the game through the manager"""
self.execute_resilient_manager_logic(game, additional_data) self.run(game, additional_data)
callback(self) callback(self)

View File

@@ -1,126 +0,0 @@
# online_cover_manager.py
#
# Copyright 2023 Geoffrey Coulaud
#
# 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 logging
from pathlib import Path
import requests
from gi.repository import Gio, GdkPixbuf
from requests.exceptions import HTTPError, SSLError
from PIL import Image
from src import shared
from src.game import Game
from src.store.managers.local_cover_manager import LocalCoverManager
from src.store.managers.manager import Manager
from src.utils.save_cover import resize_cover, save_cover
class OnlineCoverManager(Manager):
"""Manager that downloads game covers from URLs"""
run_after = (LocalCoverManager,)
retryable_on = (HTTPError, SSLError, ConnectionError)
def save_composited_cover(
self,
game: Game,
image_file: Gio.File,
original_width: int,
original_height: int,
target_width: int,
target_height: int,
) -> None:
"""Save the image composited with a background blur to fit the cover size"""
logging.debug(
"Compositing image for %s (%s) %dx%d -> %dx%d",
game.name,
game.game_id,
original_width,
original_height,
target_width,
target_height,
)
# Load game image
image = GdkPixbuf.Pixbuf.new_from_stream(image_file.read())
# Create background blur of the size of the cover
cover = image.scale_simple(2, 2, GdkPixbuf.InterpType.BILINEAR).scale_simple(
target_width, target_height, GdkPixbuf.InterpType.BILINEAR
)
# Center the image above the blurred background
scale = min(target_width / original_width, target_height / original_height)
left_padding = (target_width - original_width * scale) / 2
top_padding = (target_height - original_height * scale) / 2
image.composite(
cover,
# Top left of overwritten area on the destination
left_padding,
top_padding,
# Size of the overwritten area on the destination
original_width * scale,
original_height * scale,
# Offset
left_padding,
top_padding,
# Scale to apply to the resized image
scale,
scale,
# Compositing stuff
GdkPixbuf.InterpType.BILINEAR,
255,
)
# Resize and save the cover
save_cover(game.game_id, resize_cover(pixbuf=cover))
def manager_logic(self, game: Game, additional_data: dict) -> None:
# Ensure that we have a cover to download
cover_url = additional_data.get("online_cover_url")
if not cover_url:
return
# Download cover
image_file = Gio.File.new_tmp()[0]
image_path = Path(image_file.get_path())
with requests.get(cover_url, timeout=5) as cover:
cover.raise_for_status()
image_path.write_bytes(cover.content)
# Get image size
cover_width, cover_height = shared.image_size
with Image.open(image_path) as pil_image:
width, height = pil_image.size
# Composite if the image is shorter and the stretch amount is too high
aspect_ratio = width / height
target_aspect_ratio = cover_width / cover_height
is_taller = aspect_ratio < target_aspect_ratio
resized_height = height / width * cover_width
stretch = 1 - (resized_height / cover_height)
max_stretch = 0.12
if is_taller or stretch <= max_stretch:
save_cover(game.game_id, resize_cover(image_path))
else:
self.save_composited_cover(
game, image_file, width, height, cover_width, cover_height
)

View File

@@ -24,19 +24,18 @@ from requests.exceptions import HTTPError, SSLError
from src.errors.friendly_error import FriendlyError from src.errors.friendly_error import FriendlyError
from src.game import Game from src.game import Game
from src.store.managers.async_manager import AsyncManager from src.store.managers.async_manager import AsyncManager
from src.store.managers.local_cover_manager import LocalCoverManager
from src.store.managers.online_cover_manager import OnlineCoverManager
from src.store.managers.steam_api_manager import SteamAPIManager from src.store.managers.steam_api_manager import SteamAPIManager
from src.store.managers.cover_manager import CoverManager
from src.utils.steamgriddb import SGDBAuthError, SGDBHelper from src.utils.steamgriddb import SGDBAuthError, SGDBHelper
class SGDBManager(AsyncManager): class SGDBManager(AsyncManager):
"""Manager in charge of downloading a game's cover from steamgriddb""" """Manager in charge of downloading a game's cover from steamgriddb"""
run_after = (SteamAPIManager, LocalCoverManager, OnlineCoverManager) run_after = (SteamAPIManager, CoverManager)
retryable_on = (HTTPError, SSLError, ConnectionError, JSONDecodeError) retryable_on = (HTTPError, SSLError, ConnectionError, JSONDecodeError)
def manager_logic(self, game: Game, _additional_data: dict) -> None: def main(self, game: Game, _additional_data: dict) -> None:
try: try:
sgdb = SGDBHelper() sgdb = SGDBHelper()
sgdb.conditionaly_update_cover(game) sgdb.conditionaly_update_cover(game)

View File

@@ -18,6 +18,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
from requests.exceptions import HTTPError, SSLError from requests.exceptions import HTTPError, SSLError
from urllib3.exceptions import ConnectionError as Urllib3ConnectionError
from src.game import Game from src.game import Game
from src.store.managers.async_manager import AsyncManager from src.store.managers.async_manager import AsyncManager
@@ -32,7 +33,7 @@ from src.utils.steam import (
class SteamAPIManager(AsyncManager): class SteamAPIManager(AsyncManager):
"""Manager in charge of completing a game's data from the Steam API""" """Manager in charge of completing a game's data from the Steam API"""
retryable_on = (HTTPError, SSLError, ConnectionError) retryable_on = (HTTPError, SSLError, Urllib3ConnectionError)
steam_api_helper: SteamAPIHelper = None steam_api_helper: SteamAPIHelper = None
steam_rate_limiter: SteamRateLimiter = None steam_rate_limiter: SteamRateLimiter = None
@@ -42,7 +43,7 @@ class SteamAPIManager(AsyncManager):
self.steam_rate_limiter = SteamRateLimiter() self.steam_rate_limiter = SteamRateLimiter()
self.steam_api_helper = SteamAPIHelper(self.steam_rate_limiter) self.steam_api_helper = SteamAPIHelper(self.steam_rate_limiter)
def manager_logic(self, game: Game, additional_data: dict) -> None: def main(self, game: Game, additional_data: dict) -> None:
# Skip non-steam games # Skip non-steam games
appid = additional_data.get("steam_appid", None) appid = additional_data.get("steam_appid", None)
if appid is None: if appid is None:

View File

@@ -83,7 +83,7 @@ class Pipeline(GObject.Object):
progress = 1 progress = 1
return progress return progress
def advance(self): def advance(self) -> None:
"""Spawn tasks for managers that are able to run for a game""" """Spawn tasks for managers that are able to run for a game"""
# Separate blocking / async managers # Separate blocking / async managers
@@ -106,5 +106,5 @@ class Pipeline(GObject.Object):
self.advance() self.advance()
@GObject.Signal(name="advanced") @GObject.Signal(name="advanced")
def advanced(self) -> None: def advanced(self): # type: ignore
"""Signal emitted when the pipeline has advanced""" """Signal emitted when the pipeline has advanced"""

View File

@@ -18,6 +18,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
import logging import logging
from typing import Any, Generator, MutableMapping, Optional
from src import shared from src import shared
from src.game import Game from src.game import Game
@@ -31,27 +32,68 @@ class Store:
managers: dict[type[Manager], Manager] managers: dict[type[Manager], Manager]
pipeline_managers: set[Manager] pipeline_managers: set[Manager]
pipelines: dict[str, Pipeline] pipelines: dict[str, Pipeline]
games: dict[str, Game] source_games: MutableMapping[str, MutableMapping[str, Game]]
new_game_ids: set[str]
duplicate_game_ids: set[str]
def __init__(self) -> None: def __init__(self) -> None:
self.managers = {} self.managers = {}
self.pipeline_managers = set() self.pipeline_managers = set()
self.pipelines = {} self.pipelines = {}
self.games = {} self.source_games = {}
self.new_game_ids = set()
self.duplicate_game_ids = set()
def add_manager(self, manager: Manager, in_pipeline=True): def __contains__(self, obj: object) -> bool:
"""Check if the game is present in the store with the `in` keyword"""
if not isinstance(obj, Game):
return False
if not (source_mapping := self.source_games.get(obj.source)):
return False
return obj.game_id in source_mapping
def __iter__(self) -> Generator[Game, None, None]:
"""Iterate through the games in the store with `for ... in`"""
for _source_id, games_mapping in self.source_games.items():
for _game_id, game in games_mapping.items():
yield game
def __len__(self) -> int:
"""Get the number of games in the store with the `len` builtin"""
return sum(len(source_mapping) for source_mapping in self.source_games)
def __getitem__(self, game_id: str) -> Game:
"""Get a game by its id with `store["game_id_goes_here"]`"""
for game in iter(self):
if game.game_id == game_id:
return game
raise KeyError("Game not found in store")
def get(self, game_id: str, default: Any = None) -> Game | Any:
"""Get a game by its ID, with a fallback if not found"""
try:
game = self[game_id]
return game
except KeyError:
return default
def add_manager(self, manager: Manager, in_pipeline: bool = True) -> None:
"""Add a manager to the store""" """Add a manager to the store"""
manager_type = type(manager) manager_type = type(manager)
self.managers[manager_type] = manager self.managers[manager_type] = manager
if in_pipeline: self.toggle_manager_in_pipelines(manager_type, in_pipeline)
self.enable_manager_in_pipelines(manager_type)
def enable_manager_in_pipelines(self, manager_type: type[Manager]): def toggle_manager_in_pipelines(
"""Make a manager run in new pipelines""" self, manager_type: type[Manager], enable: bool
self.pipeline_managers.add(self.managers[manager_type]) ) -> None:
"""Change if a manager should run in new pipelines"""
if enable:
self.pipeline_managers.add(self.managers[manager_type])
else:
self.pipeline_managers.discard(self.managers[manager_type])
def cleanup_game(self, game: Game) -> None: def cleanup_game(self, game: Game) -> None:
"""Remove a game's files""" """Remove a game's files, dismiss any loose toasts"""
for path in ( for path in (
shared.games_dir / f"{game.game_id}.json", shared.games_dir / f"{game.game_id}.json",
shared.covers_dir / f"{game.game_id}.tiff", shared.covers_dir / f"{game.game_id}.tiff",
@@ -59,9 +101,17 @@ class Store:
): ):
path.unlink(missing_ok=True) path.unlink(missing_ok=True)
# TODO: don't run this if the state is startup
for undo in ("remove", "hide"):
try:
shared.win.toasts[(game, undo)].dismiss()
shared.win.toasts.pop((game, undo))
except KeyError:
pass
def add_game( def add_game(
self, game: Game, additional_data: dict, run_pipeline=True self, game: Game, additional_data: dict, run_pipeline: bool = True
) -> Pipeline | None: ) -> Optional[Pipeline]:
"""Add a game to the app""" """Add a game to the app"""
# Ignore games from a newer spec version # Ignore games from a newer spec version
@@ -74,10 +124,11 @@ class Store:
return None return None
# Handle game duplicates # Handle game duplicates
stored_game = self.games.get(game.game_id) stored_game = self.get(game.game_id)
if not stored_game: if not stored_game:
# New game, do as normal # New game, do as normal
logging.debug("New store game %s (%s)", game.name, game.game_id) logging.debug("New store game %s (%s)", game.name, game.game_id)
self.new_game_ids.add(game.game_id)
elif stored_game.removed: elif stored_game.removed:
# Will replace a removed game, cleanup its remains # Will replace a removed game, cleanup its remains
logging.debug( logging.debug(
@@ -86,21 +137,27 @@ class Store:
game.game_id, game.game_id,
) )
self.cleanup_game(stored_game) self.cleanup_game(stored_game)
self.new_game_ids.add(game.game_id)
else: else:
# Duplicate game, ignore it # Duplicate game, ignore it
logging.debug("Duplicate store game %s (%s)", game.name, game.game_id) logging.debug("Duplicate store game %s (%s)", game.name, game.game_id)
self.duplicate_game_ids.add(game.game_id)
return None return None
# Connect signals # Connect signals
for manager in self.managers.values(): for manager in self.managers.values():
for signal in manager.signals: for signal in manager.signals:
game.connect(signal, manager.execute_resilient_manager_logic) game.connect(signal, manager.run)
# Add the game to the store
if not game.source in self.source_games:
self.source_games[game.source] = {}
self.source_games[game.source][game.game_id] = game
# Run the pipeline for the game # Run the pipeline for the game
if not run_pipeline: if not run_pipeline:
return None return None
pipeline = Pipeline(game, additional_data, self.pipeline_managers) pipeline = Pipeline(game, additional_data, self.pipeline_managers)
self.games[game.game_id] = game
self.pipelines[game.game_id] = pipeline self.pipelines[game.game_id] = pipeline
pipeline.advance() pipeline.advance()
return pipeline return pipeline

View File

@@ -1,32 +0,0 @@
# 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
# TODO delegate to the sources
def check_install(check, locations, setting=None, subdirs=(Path(),)):
for location in locations:
for subdir in (Path(),) + subdirs:
if (location / subdir / check).exists():
if setting:
setting[0].set_string(setting[1], str(location / subdir))
return location / subdir
return False

View File

@@ -17,10 +17,18 @@
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
from gi.repository import Adw from typing import Optional
from gi.repository import Adw, Gtk
def create_dialog(win, heading, body, extra_option=None, extra_label=None): def create_dialog(
win: Gtk.Window,
heading: str,
body: str,
extra_option: Optional[str] = None,
extra_label: Optional[str] = None,
) -> Adw.MessageDialog:
dialog = Adw.MessageDialog.new(win, heading, body) dialog = Adw.MessageDialog.new(win, heading, body)
dialog.add_response("dismiss", _("Dismiss")) dialog.add_response("dismiss", _("Dismiss"))

View File

@@ -0,0 +1,128 @@
# migrate_files_v1_to_v2.py
#
# Copyright 2023 Geoffrey Coulaud
#
# 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 logging
from pathlib import Path
from src import shared
old_data_dir = shared.home / ".local" / "share"
old_cartridges_data_dir = old_data_dir / "cartridges"
migrated_file_path = old_cartridges_data_dir / ".migrated"
old_games_dir = old_cartridges_data_dir / "games"
old_covers_dir = old_cartridges_data_dir / "covers"
def migrate_game_covers(game_path: Path) -> None:
"""Migrate a game covers from a source game path to the current dir"""
for suffix in (".tiff", ".gif"):
cover_path = old_covers_dir / game_path.with_suffix(suffix).name
if not cover_path.is_file():
continue
destination_cover_path = shared.covers_dir / cover_path.name
logging.info("Moving %s -> %s", str(cover_path), str(destination_cover_path))
cover_path.rename(destination_cover_path)
def migrate_files_v1_to_v2() -> None:
"""
Migrate user data from the v1.X locations to the latest location.
Fix for commit 4a204442b5d8ba2e918f8c2605d72e483bf35efd
where the windows directories for data, config and cache changed.
"""
# Skip if there is no old dir
# Skip if old == current
# Skip if already migrated
if (
not old_data_dir.is_dir()
or str(old_data_dir) == str(shared.data_dir)
or migrated_file_path.is_file()
):
return
logging.info("Migrating data dir %s", str(old_data_dir))
# Create new directories
shared.games_dir.mkdir(parents=True, exist_ok=True)
shared.covers_dir.mkdir(parents=True, exist_ok=True)
old_game_paths = set(old_games_dir.glob("*.json"))
old_imported_game_paths = set(
filter(lambda path: path.name.startswith("imported_"), old_game_paths)
)
old_other_game_paths = old_game_paths - old_imported_game_paths
# Discover current imported games
imported_game_number = 0
imported_execs = set()
for game_path in shared.games_dir.glob("imported_*.json"):
try:
game_data = json.load(game_path.open("r"))
except (OSError, json.JSONDecodeError):
continue
number = int(game_data["game_id"].replace("imported_", ""))
imported_game_number = max(number, imported_game_number)
imported_execs.add(game_data["executable"])
# Migrate imported game files
for game_path in old_imported_game_paths:
try:
game_data = json.load(game_path.open("r"))
except (OSError, json.JSONDecodeError):
continue
# Don't migrate if there's a game with the same exec
if game_data["executable"] in imported_execs:
continue
# Migrate with updated index
imported_game_number += 1
game_id = f"imported_{imported_game_number}"
game_data["game_id"] = game_id
destination_game_path = shared.games_dir / f"{game_id}.json"
logging.info(
"Moving (updated id) %s -> %s", str(game_path), str(destination_game_path)
)
json.dump(
game_data,
destination_game_path.open("w"),
indent=4,
sort_keys=True,
)
game_path.unlink()
migrate_game_covers(game_path)
# Migrate all other games
for game_path in old_other_game_paths:
# Do nothing if already in games dir
destination_game_path = shared.games_dir / game_path.name
if destination_game_path.exists():
continue
# Else, migrate the game
logging.info("Moving %s -> %s", str(game_path), str(destination_game_path))
game_path.rename(destination_game_path)
migrate_game_covers(game_path)
# Signal that this dir is migrated
migrated_file_path.touch()
logging.info("Migration done")

View File

@@ -17,11 +17,11 @@
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
from typing import Optional, Sized
from threading import Lock, Thread, BoundedSemaphore
from time import sleep, time
from collections import deque from collections import deque
from contextlib import AbstractContextManager from contextlib import AbstractContextManager
from threading import BoundedSemaphore, Lock, Thread
from time import sleep, time
from typing import Any, Sized
class PickHistory(Sized): class PickHistory(Sized):
@@ -30,22 +30,22 @@ class PickHistory(Sized):
period: int period: int
timestamps: list[int] = None timestamps: list[float]
timestamps_lock: Lock = None timestamps_lock: Lock
def __init__(self, period: int) -> None: def __init__(self, period: int) -> None:
self.period = period self.period = period
self.timestamps = [] self.timestamps = []
self.timestamps_lock = Lock() self.timestamps_lock = Lock()
def remove_old_entries(self): def remove_old_entries(self) -> None:
"""Remove history entries older than the period""" """Remove history entries older than the period"""
now = time() now = time()
cutoff = now - self.period cutoff = now - self.period
with self.timestamps_lock: with self.timestamps_lock:
self.timestamps = [entry for entry in self.timestamps if entry > cutoff] self.timestamps = [entry for entry in self.timestamps if entry > cutoff]
def add(self, *new_timestamps: Optional[int]): def add(self, *new_timestamps: float) -> None:
"""Add timestamps to the history. """Add timestamps to the history.
If none given, will add the current timestamp""" If none given, will add the current timestamp"""
if len(new_timestamps) == 0: if len(new_timestamps) == 0:
@@ -60,7 +60,7 @@ class PickHistory(Sized):
return len(self.timestamps) return len(self.timestamps)
@property @property
def start(self) -> int: def start(self) -> float:
"""Get the time at which the history started""" """Get the time at which the history started"""
self.remove_old_entries() self.remove_old_entries()
with self.timestamps_lock: with self.timestamps_lock:
@@ -70,7 +70,7 @@ class PickHistory(Sized):
entry = time() entry = time()
return entry return entry
def copy_timestamps(self) -> str: def copy_timestamps(self) -> list[float]:
"""Get a copy of the timestamps history""" """Get a copy of the timestamps history"""
self.remove_old_entries() self.remove_old_entries()
with self.timestamps_lock: with self.timestamps_lock:
@@ -79,51 +79,55 @@ class PickHistory(Sized):
# pylint: disable=too-many-instance-attributes # pylint: disable=too-many-instance-attributes
class RateLimiter(AbstractContextManager): class RateLimiter(AbstractContextManager):
"""Rate limiter implementing the token bucket algorithm""" """
Base rate limiter implementing the token bucket algorithm.
Do not use directly, create a child class to tailor the rate limiting to the
underlying service's limits.
Subclasses must provide values to the following attributes:
* refill_period_seconds - Period in which we have a max amount of tokens
* refill_period_tokens - Number of tokens allowed in this period
* burst_tokens - Max number of tokens that can be consumed instantly
"""
# Period in which we have a max amount of tokens
refill_period_seconds: int refill_period_seconds: int
# Number of tokens allowed in this period
refill_period_tokens: int refill_period_tokens: int
# Max number of tokens that can be consumed instantly
burst_tokens: int burst_tokens: int
pick_history: PickHistory = None pick_history: PickHistory
bucket: BoundedSemaphore = None bucket: BoundedSemaphore
queue: deque[Lock] = None queue: deque[Lock]
queue_lock: Lock = None queue_lock: Lock
# Protect the number of tokens behind a lock # Protect the number of tokens behind a lock
__n_tokens_lock: Lock = None __n_tokens_lock: Lock
__n_tokens = 0 __n_tokens = 0
@property @property
def n_tokens(self): def n_tokens(self) -> int:
with self.__n_tokens_lock: with self.__n_tokens_lock:
return self.__n_tokens return self.__n_tokens
@n_tokens.setter @n_tokens.setter
def n_tokens(self, value: int): def n_tokens(self, value: int) -> None:
with self.__n_tokens_lock: with self.__n_tokens_lock:
self.__n_tokens = value self.__n_tokens = value
def __init__( def _init_pick_history(self) -> None:
self, """
refill_period_seconds: Optional[int] = None, Initialize the tocken pick history
refill_period_tokens: Optional[int] = None, (only for use in this class and its children)
burst_tokens: Optional[int] = None,
) -> None: By default, creates an empty pick history.
Should be overriden or extended by subclasses.
"""
self.pick_history = PickHistory(self.refill_period_seconds)
def __init__(self) -> None:
"""Initialize the limiter""" """Initialize the limiter"""
# Initialize default values self._init_pick_history()
if refill_period_seconds is not None:
self.refill_period_seconds = refill_period_seconds
if refill_period_tokens is not None:
self.refill_period_tokens = refill_period_tokens
if burst_tokens is not None:
self.burst_tokens = burst_tokens
if self.pick_history is None:
self.pick_history = PickHistory(self.refill_period_seconds)
# Create synchronization data # Create synchronization data
self.__n_tokens_lock = Lock() self.__n_tokens_lock = Lock()
@@ -147,8 +151,8 @@ class RateLimiter(AbstractContextManager):
""" """
# Compute ideal spacing # Compute ideal spacing
tokens_left = self.refill_period_tokens - len(self.pick_history) tokens_left = self.refill_period_tokens - len(self.pick_history) # type: ignore
seconds_left = self.pick_history.start + self.refill_period_seconds - time() seconds_left = self.pick_history.start + self.refill_period_seconds - time() # type: ignore
try: try:
spacing_seconds = seconds_left / tokens_left spacing_seconds = seconds_left / tokens_left
except ZeroDivisionError: except ZeroDivisionError:
@@ -159,7 +163,7 @@ class RateLimiter(AbstractContextManager):
natural_spacing = self.refill_period_seconds / self.refill_period_tokens natural_spacing = self.refill_period_seconds / self.refill_period_tokens
return max(natural_spacing, spacing_seconds) return max(natural_spacing, spacing_seconds)
def refill(self): def refill(self) -> None:
"""Add a token back in the bucket""" """Add a token back in the bucket"""
sleep(self.refill_spacing) sleep(self.refill_spacing)
try: try:
@@ -170,7 +174,7 @@ class RateLimiter(AbstractContextManager):
else: else:
self.n_tokens += 1 self.n_tokens += 1
def refill_thread_func(self): def refill_thread_func(self) -> None:
"""Entry point for the daemon thread that is refilling the bucket""" """Entry point for the daemon thread that is refilling the bucket"""
while True: while True:
self.refill() self.refill()
@@ -200,18 +204,18 @@ class RateLimiter(AbstractContextManager):
self.queue.appendleft(lock) self.queue.appendleft(lock)
return lock return lock
def acquire(self): def acquire(self) -> None:
"""Acquires a token from the bucket when it's your turn in queue""" """Acquires a token from the bucket when it's your turn in queue"""
lock = self.add_to_queue() lock = self.add_to_queue()
self.update_queue() self.update_queue()
# Wait until our turn in queue # Wait until our turn in queue
lock.acquire() # pylint: disable=consider-using-with lock.acquire() # pylint: disable=consider-using-with
self.pick_history.add() self.pick_history.add() # type: ignore
# --- Support for use in with statements # --- Support for use in with statements
def __enter__(self): def __enter__(self) -> None:
self.acquire() self.acquire()
def __exit__(self, *_args): def __exit__(self, *_args: Any) -> None:
pass pass

View File

@@ -18,11 +18,12 @@
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
from datetime import datetime from datetime import datetime
from typing import Any
from gi.repository import GLib from gi.repository import GLib
def relative_date(timestamp): # pylint: disable=too-many-return-statements def relative_date(timestamp: int) -> Any: # pylint: disable=too-many-return-statements
days_no = ((today := datetime.today()) - datetime.fromtimestamp(timestamp)).days days_no = ((today := datetime.today()) - datetime.fromtimestamp(timestamp)).days
if days_no == 0: if days_no == 0:

View File

@@ -20,14 +20,17 @@
from pathlib import Path from pathlib import Path
from shutil import copyfile from shutil import copyfile
from typing import Optional
from gi.repository import Gdk, Gio, GLib from gi.repository import Gdk, GdkPixbuf, Gio, GLib
from PIL import Image, ImageSequence, UnidentifiedImageError from PIL import Image, ImageSequence, UnidentifiedImageError
from src import shared from src import shared
def resize_cover(cover_path=None, pixbuf=None): def resize_cover(
cover_path: Optional[Path] = None, pixbuf: Optional[GdkPixbuf.Pixbuf] = None
) -> Optional[Path]:
if not cover_path and not pixbuf: if not cover_path and not pixbuf:
return None return None
@@ -74,7 +77,7 @@ def resize_cover(cover_path=None, pixbuf=None):
return tmp_path return tmp_path
def save_cover(game_id, cover_path): def save_cover(game_id: str, cover_path: Path) -> None:
shared.covers_dir.mkdir(parents=True, exist_ok=True) shared.covers_dir.mkdir(parents=True, exist_ok=True)
animated_path = shared.covers_dir / f"{game_id}.gif" animated_path = shared.covers_dir / f"{game_id}.gif"

View File

@@ -21,13 +21,14 @@
import json import json
import logging import logging
import re import re
from pathlib import Path
from typing import TypedDict from typing import TypedDict
import requests import requests
from requests.exceptions import HTTPError from requests.exceptions import HTTPError
from src import shared from src import shared
from src.utils.rate_limiter import PickHistory, RateLimiter from src.utils.rate_limiter import RateLimiter
class SteamError(Exception): class SteamError(Exception):
@@ -71,16 +72,18 @@ class SteamRateLimiter(RateLimiter):
refill_period_tokens = 200 refill_period_tokens = 200
burst_tokens = 100 burst_tokens = 100
def __init__(self) -> None: def _init_pick_history(self) -> None:
# Load pick history from schema """
# (Remember API limits through restarts of Cartridges) Load the pick history from schema.
Allows remembering API limits through restarts of Cartridges.
"""
super()._init_pick_history()
timestamps_str = shared.state_schema.get_string("steam-limiter-tokens-history") timestamps_str = shared.state_schema.get_string("steam-limiter-tokens-history")
self.pick_history = PickHistory(self.refill_period_seconds)
self.pick_history.add(*json.loads(timestamps_str)) self.pick_history.add(*json.loads(timestamps_str))
self.pick_history.remove_old_entries() self.pick_history.remove_old_entries()
super().__init__()
def acquire(self): def acquire(self) -> None:
"""Get a token from the bucket and store the pick history in the schema""" """Get a token from the bucket and store the pick history in the schema"""
super().acquire() super().acquire()
timestamps_str = json.dumps(self.pick_history.copy_timestamps()) timestamps_str = json.dumps(self.pick_history.copy_timestamps())
@@ -90,7 +93,7 @@ class SteamRateLimiter(RateLimiter):
class SteamFileHelper: class SteamFileHelper:
"""Helper for steam file formats""" """Helper for steam file formats"""
def get_manifest_data(self, manifest_path) -> SteamManifestData: def get_manifest_data(self, manifest_path: Path) -> SteamManifestData:
"""Get local data for a game from its manifest""" """Get local data for a game from its manifest"""
with open(manifest_path, "r", encoding="utf-8") as file: with open(manifest_path, "r", encoding="utf-8") as file:
@@ -104,7 +107,11 @@ class SteamFileHelper:
raise SteamInvalidManifestError() raise SteamInvalidManifestError()
data[key] = match.group(1) data[key] = match.group(1)
return SteamManifestData(**data) return SteamManifestData(
name=data["name"],
appid=data["appid"],
stateflags=data["stateflags"],
)
class SteamAPIHelper: class SteamAPIHelper:
@@ -116,7 +123,7 @@ class SteamAPIHelper:
def __init__(self, rate_limiter: RateLimiter) -> None: def __init__(self, rate_limiter: RateLimiter) -> None:
self.rate_limiter = rate_limiter self.rate_limiter = rate_limiter
def get_api_data(self, appid) -> SteamAPIData: def get_api_data(self, appid: str) -> SteamAPIData:
""" """
Get online data for a game from its appid. Get online data for a game from its appid.
May block to satisfy the Steam web API limitations. May block to satisfy the Steam web API limitations.
@@ -142,8 +149,7 @@ class SteamAPIHelper:
raise SteamGameNotFoundError() raise SteamGameNotFoundError()
# Handle appid is not a game # Handle appid is not a game
game_types = ("game", "demo") if data["data"]["type"] not in {"game", "demo", "mod"}:
if data["data"]["type"] not in game_types:
logging.debug("Appid %s is not a game", appid) logging.debug("Appid %s is not a game", appid)
raise SteamNotAGameError() raise SteamNotAGameError()

View File

@@ -20,12 +20,14 @@
import logging import logging
from pathlib import Path from pathlib import Path
from typing import Any
import requests import requests
from gi.repository import Gio from gi.repository import Gio
from requests.exceptions import HTTPError from requests.exceptions import HTTPError
from src import shared from src import shared
from src.game import Game
from src.utils.save_cover import resize_cover, save_cover from src.utils.save_cover import resize_cover, save_cover
@@ -55,12 +57,12 @@ class SGDBHelper:
base_url = "https://www.steamgriddb.com/api/v2/" base_url = "https://www.steamgriddb.com/api/v2/"
@property @property
def auth_headers(self): def auth_headers(self) -> dict[str, str]:
key = shared.schema.get_string("sgdb-key") key = shared.schema.get_string("sgdb-key")
headers = {"Authorization": f"Bearer {key}"} headers = {"Authorization": f"Bearer {key}"}
return headers return headers
def get_game_id(self, game): def get_game_id(self, game: Game) -> Any:
"""Get grid results for a game. Can raise an exception.""" """Get grid results for a game. Can raise an exception."""
uri = f"{self.base_url}search/autocomplete/{game.name}" uri = f"{self.base_url}search/autocomplete/{game.name}"
res = requests.get(uri, headers=self.auth_headers, timeout=5) res = requests.get(uri, headers=self.auth_headers, timeout=5)
@@ -74,7 +76,7 @@ class SGDBHelper:
case _: case _:
res.raise_for_status() res.raise_for_status()
def get_image_uri(self, game_id, animated=False): def get_image_uri(self, game_id: str, animated: bool = False) -> Any:
"""Get the image for a SGDB game id""" """Get the image for a SGDB game id"""
uri = f"{self.base_url}grids/game/{game_id}?dimensions=600x900" uri = f"{self.base_url}grids/game/{game_id}?dimensions=600x900"
if animated: if animated:
@@ -93,7 +95,7 @@ class SGDBHelper:
case _: case _:
res.raise_for_status() res.raise_for_status()
def conditionaly_update_cover(self, game): def conditionaly_update_cover(self, game: Game) -> None:
"""Update the game's cover if appropriate""" """Update the game's cover if appropriate"""
# Obvious skips # Obvious skips
@@ -103,11 +105,11 @@ class SGDBHelper:
image_trunk = shared.covers_dir / game.game_id image_trunk = shared.covers_dir / game.game_id
still = image_trunk.with_suffix(".tiff") still = image_trunk.with_suffix(".tiff")
uri_kwargs = image_trunk.with_suffix(".gif") animated = image_trunk.with_suffix(".gif")
prefer_sgdb = shared.schema.get_boolean("sgdb-prefer") prefer_sgdb = shared.schema.get_boolean("sgdb-prefer")
# Do nothing if file present and not prefer SGDB # Do nothing if file present and not prefer SGDB
if not prefer_sgdb and (still.is_file() or uri_kwargs.is_file()): if not prefer_sgdb and (still.is_file() or animated.is_file()):
return return
# Get ID for the game # Get ID for the game

View File

@@ -18,25 +18,28 @@
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
from functools import wraps from functools import wraps
from typing import Any, Callable
from gi.repository import Gio from gi.repository import Gio
def create_task_thread_func_closure(func, data): def create_task_thread_func_closure(func: Callable, data: Any) -> Callable:
"""Wrap a Gio.TaskThreadFunc with the given data in a closure""" """Wrap a Gio.TaskThreadFunc with the given data in a closure"""
def closure(task, source_object, _data, cancellable): def closure(
task: Gio.Task, source_object: object, _data: Any, cancellable: Gio.Cancellable
) -> Any:
func(task, source_object, data, cancellable) func(task, source_object, data, cancellable)
return closure return closure
def decorate_set_task_data(task): def decorate_set_task_data(task: Gio.Task) -> Callable:
"""Decorate Gio.Task.set_task_data to replace it""" """Decorate Gio.Task.set_task_data to replace it"""
def decorator(original_method): def decorator(original_method: Callable) -> Callable:
@wraps(original_method) @wraps(original_method)
def new_method(task_data): def new_method(task_data: Any) -> None:
task.task_data = task_data task.task_data = task_data
return new_method return new_method
@@ -44,13 +47,13 @@ def decorate_set_task_data(task):
return decorator return decorator
def decorate_run_in_thread(task): def decorate_run_in_thread(task: Gio.Task) -> Callable:
"""Decorate Gio.Task.run_in_thread to pass the task data correctly """Decorate Gio.Task.run_in_thread to pass the task data correctly
Creates a closure around task_thread_func with the task data available.""" Creates a closure around task_thread_func with the task data available."""
def decorator(original_method): def decorator(original_method: Callable) -> Callable:
@wraps(original_method) @wraps(original_method)
def new_method(task_thread_func): def new_method(task_thread_func: Callable) -> None:
closure = create_task_thread_func_closure(task_thread_func, task.task_data) closure = create_task_thread_func_closure(task_thread_func, task.task_data)
original_method(closure) original_method(closure)
@@ -64,11 +67,17 @@ class Task:
"""Wrapper around Gio.Task to patch task data not being passed""" """Wrapper around Gio.Task to patch task data not being passed"""
@classmethod @classmethod
def new(cls, source_object, cancellable, callback, callback_data): def new(
cls,
source_object: object,
cancellable: Gio.Cancellable,
callback: Callable,
callback_data: Any,
) -> Gio.Task:
"""Create a new, monkey-patched Gio.Task. """Create a new, monkey-patched Gio.Task.
The `set_task_data` and `run_in_thread` methods are decorated. The `set_task_data` and `run_in_thread` methods are decorated.
As of 2023-05-19, pygobject does not work well with Gio.Task, so to pass data As of 2023-05-19, PyGObject does not work well with Gio.Task, so to pass data
the only viable way it to create a closure with the thread function and its data. the only viable way it to create a closure with the thread function and its data.
This class is supposed to make Gio.Task comply with its expected behaviour This class is supposed to make Gio.Task comply with its expected behaviour
per the docs: per the docs:

View File

@@ -17,9 +17,13 @@
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
from gi.repository import Adw, Gtk from typing import Any, Optional
from gi.repository import Adw, Gio, GLib, Gtk
from src import shared from src import shared
from src.game import Game
from src.game_cover import GameCover
from src.utils.relative_date import relative_date from src.utils.relative_date import relative_date
@@ -64,13 +68,13 @@ class CartridgesWindow(Adw.ApplicationWindow):
hidden_search_entry = Gtk.Template.Child() hidden_search_entry = Gtk.Template.Child()
hidden_search_button = Gtk.Template.Child() hidden_search_button = Gtk.Template.Child()
game_covers = {} game_covers: dict = {}
toasts = {} toasts: dict = {}
active_game = None active_game: Game
details_view_game_cover = None details_view_game_cover: Optional[GameCover] = None
sort_state = "a-z" sort_state: str = "a-z"
def __init__(self, **kwargs): def __init__(self, **kwargs: Any) -> None:
super().__init__(**kwargs) super().__init__(**kwargs)
self.previous_page = self.library_view self.previous_page = self.library_view
@@ -110,14 +114,14 @@ class CartridgesWindow(Adw.ApplicationWindow):
style_manager.connect("notify::dark", self.set_details_view_opacity) style_manager.connect("notify::dark", self.set_details_view_opacity)
style_manager.connect("notify::high-contrast", self.set_details_view_opacity) style_manager.connect("notify::high-contrast", self.set_details_view_opacity)
def search_changed(self, _widget, hidden): def search_changed(self, _widget: Any, hidden: bool) -> None:
# Refresh search filter on keystroke in search box # Refresh search filter on keystroke in search box
(self.hidden_library if hidden else self.library).invalidate_filter() (self.hidden_library if hidden else self.library).invalidate_filter()
def set_library_child(self): def set_library_child(self) -> None:
child, hidden_child = self.notice_empty, self.hidden_notice_empty child, hidden_child = self.notice_empty, self.hidden_notice_empty
for game in shared.store.games.values(): for game in shared.store:
if game.removed or game.blacklisted: if game.removed or game.blacklisted:
continue continue
if game.hidden: if game.hidden:
@@ -134,7 +138,7 @@ class CartridgesWindow(Adw.ApplicationWindow):
self.library_bin.set_child(child) self.library_bin.set_child(child)
self.hidden_library_bin.set_child(hidden_child) self.hidden_library_bin.set_child(hidden_child)
def filter_func(self, child): def filter_func(self, child: Gtk.Widget) -> bool:
game = child.get_child() game = child.get_child()
text = ( text = (
( (
@@ -156,10 +160,10 @@ class CartridgesWindow(Adw.ApplicationWindow):
return not filtered return not filtered
def set_active_game(self, _widget, _pspec, game): def set_active_game(self, _widget: Any, _pspec: Any, game: Game) -> None:
self.active_game = game self.active_game = game
def show_details_view(self, game): def show_details_view(self, game: Game) -> None:
self.active_game = game self.active_game = game
self.details_view_cover.set_opacity(int(not game.loading)) self.details_view_cover.set_opacity(int(not game.loading))
@@ -207,7 +211,7 @@ class CartridgesWindow(Adw.ApplicationWindow):
self.set_details_view_opacity() self.set_details_view_opacity()
def set_details_view_opacity(self, *_args): def set_details_view_opacity(self, *_args: Any) -> None:
if self.stack.get_visible_child() != self.details_view: if self.stack.get_visible_child() != self.details_view:
return return
@@ -218,12 +222,12 @@ class CartridgesWindow(Adw.ApplicationWindow):
return return
self.details_view_blurred_cover.set_opacity( self.details_view_blurred_cover.set_opacity(
1 - self.details_view_game_cover.luminance[0] 1 - self.details_view_game_cover.luminance[0] # type: ignore
if style_manager.get_dark() if style_manager.get_dark()
else self.details_view_game_cover.luminance[1] else self.details_view_game_cover.luminance[1] # type: ignore
) )
def sort_func(self, child1, child2): def sort_func(self, child1: Gtk.Widget, child2: Gtk.Widget) -> int:
var, order = "name", True var, order = "name", True
if self.sort_state in ("newest", "oldest"): if self.sort_state in ("newest", "oldest"):
@@ -233,7 +237,7 @@ class CartridgesWindow(Adw.ApplicationWindow):
elif self.sort_state == "a-z": elif self.sort_state == "a-z":
order = False order = False
def get_value(index): def get_value(index: int) -> str:
return str( return str(
getattr((child1.get_child(), child2.get_child())[index], var) getattr((child1.get_child(), child2.get_child())[index], var)
).lower() ).lower()
@@ -243,7 +247,7 @@ class CartridgesWindow(Adw.ApplicationWindow):
return ((get_value(0) > get_value(1)) ^ order) * 2 - 1 return ((get_value(0) > get_value(1)) ^ order) * 2 - 1
def navigate(self, next_page): def navigate(self, next_page: Gtk.Widget) -> None:
levels = (self.library_view, self.hidden_library_view, self.details_view) levels = (self.library_view, self.hidden_library_view, self.details_view)
self.stack.set_transition_type( self.stack.set_transition_type(
Gtk.StackTransitionType.UNDER_RIGHT Gtk.StackTransitionType.UNDER_RIGHT
@@ -260,13 +264,13 @@ class CartridgesWindow(Adw.ApplicationWindow):
self.stack.set_visible_child(next_page) self.stack.set_visible_child(next_page)
def on_go_back_action(self, *_args): def on_go_back_action(self, *_args: Any) -> None:
if self.stack.get_visible_child() == self.hidden_library_view: if self.stack.get_visible_child() == self.hidden_library_view:
self.navigate(self.library_view) self.navigate(self.library_view)
elif self.stack.get_visible_child() == self.details_view: elif self.stack.get_visible_child() == self.details_view:
self.on_go_to_parent_action() self.on_go_to_parent_action()
def on_go_to_parent_action(self, *_args): def on_go_to_parent_action(self, *_args: Any) -> None:
if self.stack.get_visible_child() == self.details_view: if self.stack.get_visible_child() == self.details_view:
self.navigate( self.navigate(
self.hidden_library_view self.hidden_library_view
@@ -274,20 +278,20 @@ class CartridgesWindow(Adw.ApplicationWindow):
else self.library_view else self.library_view
) )
def on_go_home_action(self, *_args): def on_go_home_action(self, *_args: Any) -> None:
self.navigate(self.library_view) self.navigate(self.library_view)
def on_show_hidden_action(self, *_args): def on_show_hidden_action(self, *_args: Any) -> None:
self.navigate(self.hidden_library_view) self.navigate(self.hidden_library_view)
def on_sort_action(self, action, state): def on_sort_action(self, action: Gio.SimpleAction, state: GLib.Variant) -> None:
action.set_state(state) action.set_state(state)
self.sort_state = str(state).strip("'") self.sort_state = str(state).strip("'")
self.library.invalidate_sort() self.library.invalidate_sort()
shared.state_schema.set_string("sort-mode", self.sort_state) shared.state_schema.set_string("sort-mode", self.sort_state)
def on_toggle_search_action(self, *_args): def on_toggle_search_action(self, *_args: Any) -> None:
if self.stack.get_visible_child() == self.library_view: if self.stack.get_visible_child() == self.library_view:
search_bar = self.search_bar search_bar = self.search_bar
search_entry = self.search_entry search_entry = self.search_entry
@@ -304,7 +308,7 @@ class CartridgesWindow(Adw.ApplicationWindow):
search_entry.set_text("") search_entry.set_text("")
def on_escape_action(self, *_args): def on_escape_action(self, *_args: Any) -> None:
if ( if (
self.get_focus() == self.search_entry.get_focus_child() self.get_focus() == self.search_entry.get_focus_child()
or self.hidden_search_entry.get_focus_child() or self.hidden_search_entry.get_focus_child()
@@ -313,7 +317,7 @@ class CartridgesWindow(Adw.ApplicationWindow):
else: else:
self.on_go_back_action() self.on_go_back_action()
def show_details_view_search(self, widget): def show_details_view_search(self, widget: Gtk.Widget) -> None:
library = ( library = (
self.hidden_library if widget == self.hidden_search_entry else self.library self.hidden_library if widget == self.hidden_search_entry else self.library
) )
@@ -329,30 +333,39 @@ class CartridgesWindow(Adw.ApplicationWindow):
index += 1 index += 1
def on_undo_action(self, _widget, game=None, undo=None): def on_undo_action(
self, _widget: Any, game: Optional[Game] = None, undo: Optional[str] = None
) -> None:
if not game: # If the action was activated via Ctrl + Z if not game: # If the action was activated via Ctrl + Z
if shared.importer and (
shared.importer.imported_game_ids or shared.importer.removed_game_ids
):
shared.importer.undo_import()
return
try: try:
game = tuple(self.toasts.keys())[-1][0] game = tuple(self.toasts.keys())[-1][0]
undo = tuple(self.toasts.keys())[-1][1] undo = tuple(self.toasts.keys())[-1][1]
except IndexError: except IndexError:
return return
if undo == "hide": if game:
game.toggle_hidden(False) if undo == "hide":
game.toggle_hidden(False)
elif undo == "remove": elif undo == "remove":
game.removed = False game.removed = False
game.save() game.save()
game.update() game.update()
self.toasts[(game, undo)].dismiss() self.toasts[(game, undo)].dismiss()
self.toasts.pop((game, undo)) self.toasts.pop((game, undo))
def on_open_menu_action(self, *_args): def on_open_menu_action(self, *_args: Any) -> None:
if self.stack.get_visible_child() == self.library_view: if self.stack.get_visible_child() == self.library_view:
self.primary_menu_button.popup() self.primary_menu_button.popup()
elif self.stack.get_visible_child() == self.hidden_library_view: elif self.stack.get_visible_child() == self.hidden_library_view:
self.hidden_primary_menu_button.popup() self.hidden_primary_menu_button.popup()
def on_close_action(self, *_args): def on_close_action(self, *_args: Any) -> None:
self.close() self.close()