Compare commits
772 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d4b0f98caa | ||
|
|
420ca939ef | ||
|
|
91f4e05abe | ||
|
|
a4a929c965 | ||
|
|
37f838e4a2 | ||
|
|
a39303603c | ||
|
|
195f7dbb7e | ||
|
|
191beed12e | ||
|
|
208eae75c1 | ||
|
|
f3c590b033 | ||
|
|
a0c736b7cf | ||
|
|
0d32414f1e | ||
|
|
eeb18eb017 | ||
|
|
a3aa7f9ccf | ||
|
|
0e2918cfe8 | ||
|
|
8dc96b53b2 | ||
|
|
0d6432388c | ||
|
|
73897a9ed3 | ||
|
|
f8037e2542 | ||
|
|
afb2d8b6d3 | ||
|
|
dbb6076fdc | ||
|
|
16d6a026e5 | ||
|
|
cb9513ff13 | ||
|
|
b466eb7ab2 | ||
|
|
5551756111 | ||
|
|
9b97e8c355 | ||
|
|
5abf3f300d | ||
|
|
8ca264ff95 | ||
|
|
1c2c844f89 | ||
|
|
86ac95641c | ||
|
|
c2c998adcd | ||
|
|
0599a61057 | ||
|
|
07b78bcdbd | ||
|
|
78199267b3 | ||
|
|
0098669ab6 | ||
|
|
fefa9d27bd | ||
|
|
fe07f4f571 | ||
|
|
70d8d91b53 | ||
|
|
675359ee58 | ||
|
|
f43d8ff907 | ||
|
|
e90215bf66 | ||
|
|
2e844b2d06 | ||
|
|
8de7226a2f | ||
|
|
7598f1ea71 | ||
|
|
417a02e8b6 | ||
|
|
1aff1347e3 | ||
|
|
e4dc1253ae | ||
|
|
459e13ad05 | ||
|
|
e554cf8678 | ||
|
|
f0afdcc943 | ||
|
|
d3a6eaa4d1 | ||
|
|
1404878e28 | ||
|
|
fa8a15addf | ||
|
|
04d0e9e90e | ||
|
|
0677eae0a2 | ||
|
|
f3dcdbf0d2 | ||
|
|
0b577d2480 | ||
|
|
ca73023bc9 | ||
|
|
b8cd1fd741 | ||
|
|
26e8d6d2c6 | ||
|
|
311ed3b09c | ||
|
|
8eca19d9a1 | ||
|
|
7bcb113a33 | ||
|
|
fbf076660d | ||
|
|
b1992a9466 | ||
|
|
c347d9b0f4 | ||
|
|
9cd4d7048c | ||
|
|
da777d3605 | ||
|
|
4587720934 | ||
|
|
270fa2092c | ||
|
|
82dddd1c5c | ||
|
|
3d17b5a920 | ||
|
|
2c67dd23ab | ||
|
|
45d1ddaa7d | ||
|
|
bb4870e99d | ||
|
|
190b446de5 | ||
|
|
52b6c47c8d | ||
|
|
0df123975c | ||
|
|
7f576d1bd3 | ||
|
|
30152cd10a | ||
|
|
2acdedf033 | ||
|
|
a399113ff9 | ||
|
|
8839db272b | ||
|
|
a0bfca01d6 | ||
|
|
0601fd5ebb | ||
|
|
15da65fccf | ||
|
|
00ff297867 | ||
|
|
fbb2ccec57 | ||
|
|
8bd96fdb38 | ||
|
|
55cd590424 | ||
|
|
386120a505 | ||
|
|
faee57a42a | ||
|
|
0a2051f5c7 | ||
|
|
be6338cdd4 | ||
|
|
bb7fded0e5 | ||
|
|
7d91b84a87 | ||
|
|
0865d4e133 | ||
|
|
9a7875eb87 | ||
|
|
6b26076b92 | ||
|
|
19b0737715 | ||
|
|
06de79ad54 | ||
|
|
9ffbcc73ae | ||
|
|
5a89f8a542 | ||
|
|
f9cfc311fa | ||
|
|
45884d5c11 | ||
|
|
86a34f1596 | ||
|
|
9ccb315a2d | ||
|
|
3002cef448 | ||
|
|
89f6dcad19 | ||
|
|
5c62b7ba02 | ||
|
|
c96b64f72e | ||
|
|
a1c5a4bdd8 | ||
|
|
6114f65204 | ||
|
|
5be70bba52 | ||
|
|
99ef85daf3 | ||
|
|
719cedba67 | ||
|
|
19432a1fe7 | ||
|
|
220d00141f | ||
|
|
633e2a6c5d | ||
|
|
bc25afa494 | ||
|
|
6bf246a8e6 | ||
|
|
ac71bc6ecb | ||
|
|
d7d6270bbc | ||
|
|
cd986c3f5e | ||
|
|
c3bd7ee736 | ||
|
|
b4bfe38765 | ||
|
|
a0c46bbc74 | ||
|
|
6a06f7329d | ||
|
|
16db07511a | ||
|
|
34863901fd | ||
|
|
3f5f8b71e8 | ||
|
|
618a98ee89 | ||
|
|
867e4d3cce | ||
|
|
3c019796c2 | ||
|
|
1c8448c1e1 | ||
|
|
dad3dcafb7 | ||
|
|
c6ef2ea0b4 | ||
|
|
e4d9f8ba45 | ||
|
|
87a4319360 | ||
|
|
dc232e1e43 | ||
|
|
39be891452 | ||
|
|
c3cad7c793 | ||
|
|
2952322759 | ||
|
|
653bc8668c | ||
|
|
1a23851000 | ||
|
|
560d1cd273 | ||
|
|
dc0d7304f1 | ||
|
|
0100e7176c | ||
|
|
23aaabd425 | ||
|
|
2ad1863577 | ||
|
|
0297275540 | ||
|
|
a4bebdd4a9 | ||
|
|
8524a891cf | ||
|
|
a6fafc3963 | ||
|
|
2d324997fd | ||
|
|
9ed1f84879 | ||
|
|
253bef9507 | ||
|
|
95c637699a | ||
|
|
da22751035 | ||
|
|
0500b8ebe1 | ||
|
|
a2c77a5852 | ||
|
|
0efa05514c | ||
|
|
3a20eb7399 | ||
|
|
a7d0842ebc | ||
|
|
220c9a4bb7 | ||
|
|
e388623c03 | ||
|
|
e320e58ffc | ||
|
|
c9a1104b44 | ||
|
|
ee5740c21c | ||
|
|
1498326f45 | ||
|
|
69fc7e1b03 | ||
|
|
8a3397bef5 | ||
|
|
d87048ee64 | ||
|
|
3d6601238d | ||
|
|
a7393ba9b9 | ||
|
|
c2f429a29c | ||
|
|
8fadcc8524 | ||
|
|
c544901519 | ||
|
|
7756f75bb9 | ||
|
|
fabd9828f6 | ||
|
|
29e022327b | ||
|
|
49fb3705e4 | ||
|
|
0c6cfc14f0 | ||
|
|
75a5255806 | ||
|
|
dd1dd2b7e5 | ||
|
|
4a204442b5 | ||
|
|
fb0c47c1f1 | ||
|
|
3af968fee7 | ||
|
|
9fbb45cfa5 | ||
|
|
bbfe478ac3 | ||
|
|
339ec1c20a | ||
|
|
97e40e0a80 | ||
|
|
95d47815ab | ||
|
|
772bf30468 | ||
|
|
7311015549 | ||
|
|
e7d2f58416 | ||
|
|
a040b058d2 | ||
|
|
7be20c64bd | ||
|
|
036e5814f3 | ||
|
|
e46c9b6a30 | ||
|
|
495755f278 | ||
|
|
1f25bed842 | ||
|
|
ad38dc6d49 | ||
|
|
a7efe0a920 | ||
|
|
8d082ab158 | ||
|
|
b3c2437618 | ||
|
|
8e7d08b3b2 | ||
|
|
d22d3820b9 | ||
|
|
721a46c5b8 | ||
|
|
8efb1c6c5e | ||
|
|
07960182c7 | ||
|
|
fccf302c4b | ||
|
|
7a1e5e0968 | ||
|
|
19a1c856ac | ||
|
|
e9b8c0d01e | ||
|
|
95cd65bc7a | ||
|
|
073dbdb97b | ||
|
|
ad0e5b2abf | ||
|
|
9ed085e1a0 | ||
|
|
f4f6d73d4a | ||
|
|
107c1c96b5 | ||
|
|
299333c959 | ||
|
|
e4b315f252 | ||
|
|
455c6891d8 | ||
|
|
2311f3dff7 | ||
|
|
f5b527cc51 | ||
|
|
0a89061218 | ||
|
|
20bfe9309c | ||
|
|
50e9bb7c0e | ||
|
|
3b032ffb64 | ||
|
|
09a7504c78 | ||
|
|
1c51da2750 | ||
|
|
7a07553a5d | ||
|
|
450cab9bbf | ||
|
|
6b46efb0b8 | ||
|
|
00b3145833 | ||
|
|
8cb1cd998c | ||
|
|
8870c20279 | ||
|
|
08da6b8e3f | ||
|
|
18858edcd4 | ||
|
|
27829670b6 | ||
|
|
affdfaed27 | ||
|
|
cbd0b3f287 | ||
|
|
523aa8a82c | ||
|
|
4f7dc8716a | ||
|
|
92add88c5d | ||
|
|
e73bc5507c | ||
|
|
f1acb55ece | ||
|
|
5e5a2fe746 | ||
|
|
3fa80a53c6 | ||
|
|
41c2a1023a | ||
|
|
c38a73ea98 | ||
|
|
6408e250ee | ||
|
|
e97c08a42b | ||
|
|
e57a2a74df | ||
|
|
f9000be272 | ||
|
|
882ed55cc6 | ||
|
|
7bbb9e564d | ||
|
|
ad7084410c | ||
|
|
ea0ecf4fb4 | ||
|
|
9f582dfa3e | ||
|
|
6ff9039064 | ||
|
|
42ba8244d0 | ||
|
|
4793d50b0a | ||
|
|
a96b989a29 | ||
|
|
286b44360e | ||
|
|
2aea2fb377 | ||
|
|
2e97edcdb5 | ||
|
|
32adc68d82 | ||
|
|
8dcbe56e76 | ||
|
|
009e6f3641 | ||
|
|
9d7a6d8ea4 | ||
|
|
cff2a4ae6c | ||
|
|
eb91586216 | ||
|
|
8eb203cb06 | ||
|
|
b2b1780374 | ||
|
|
f0dda997c3 | ||
|
|
366b68cf8f | ||
|
|
beba0ff1e2 | ||
|
|
e694341a31 | ||
|
|
d060acb90a | ||
|
|
90667b0f31 | ||
|
|
39bc64c136 | ||
|
|
e6afed6678 | ||
|
|
3bc0df3881 | ||
|
|
695cc88d76 | ||
|
|
6dd8e3965f | ||
|
|
dbb96a166b | ||
|
|
054089431f | ||
|
|
59c2d68642 | ||
|
|
68273d9217 | ||
|
|
2798097623 | ||
|
|
6a099b2bdd | ||
|
|
d340e007e3 | ||
|
|
de3ef53148 | ||
|
|
5a7ada1c0e | ||
|
|
0db636b375 | ||
|
|
49011c395a | ||
|
|
893b290a1e | ||
|
|
49769b7083 | ||
|
|
5fadaf8537 | ||
|
|
dcd4357e57 | ||
|
|
3a0911e742 | ||
|
|
8eb2a270f6 | ||
|
|
e7fd01f509 | ||
|
|
c9a96f5eec | ||
|
|
eeb0f3e501 | ||
|
|
842f9fe522 | ||
|
|
070d875ff8 | ||
|
|
51922ad4c6 | ||
|
|
b895c8ebe2 | ||
|
|
9ebd7cf7ee | ||
|
|
5dc6ec899a | ||
|
|
98f02da36c | ||
|
|
7eef050a64 | ||
|
|
b50a0a1a04 | ||
|
|
725bab5c93 | ||
|
|
1e3e6484e4 | ||
|
|
1dcfe38253 | ||
|
|
e91aeddd3b | ||
|
|
43d4a50bf7 | ||
|
|
cf9d4059b3 | ||
|
|
67a5a364f7 | ||
|
|
ff0ba00733 | ||
|
|
1e4004329c | ||
|
|
7cf4d8199c | ||
|
|
ebd22e27da | ||
|
|
7d8a7a894f | ||
|
|
729ca82445 | ||
|
|
6f77e0d30d | ||
|
|
216c3f5dae | ||
|
|
dc47c850ce | ||
|
|
b1476a744d | ||
|
|
58054f1c26 | ||
|
|
6d6e830cc9 | ||
|
|
10a635fc78 | ||
|
|
06b6ee4593 | ||
|
|
e804f8192e | ||
|
|
2009003dea | ||
|
|
2b2355e2c2 | ||
|
|
f05d1e702b | ||
|
|
aa33e79963 | ||
|
|
f0948c422f | ||
|
|
97b770cbf2 | ||
|
|
ed66109404 | ||
|
|
344aa7057d | ||
|
|
a213abe4da | ||
|
|
ef63210a8f | ||
|
|
d204737339 | ||
|
|
0b188136a2 | ||
|
|
743db2b747 | ||
|
|
1311c53c3e | ||
|
|
0645808ac4 | ||
|
|
8ddb110cbb | ||
|
|
b99c058cd7 | ||
|
|
aeab1de4a9 | ||
|
|
e7fa20e4d4 | ||
|
|
12ad5c598e | ||
|
|
101eb1f07c | ||
|
|
39b7b35c1b | ||
|
|
6f69344a16 | ||
|
|
63951d76ac | ||
|
|
c045ad1f53 | ||
|
|
8a1e00883c | ||
|
|
620a094ff0 | ||
|
|
7b7232d741 | ||
|
|
4c1af9245f | ||
|
|
d05a03dee7 | ||
|
|
bff225572e | ||
|
|
ac3f3133d9 | ||
|
|
bda487f26e | ||
|
|
4711652b4a | ||
|
|
2f9bbe933b | ||
|
|
11cd2129b8 | ||
|
|
5dd09b6d8f | ||
|
|
b6ebb6bb54 | ||
|
|
cb35f58db8 | ||
|
|
edf9242288 | ||
|
|
1c9be94ce7 | ||
|
|
2e19567c8e | ||
|
|
3202bd4332 | ||
|
|
1d2253ff94 | ||
|
|
e7e30c8ac5 | ||
|
|
8da7185d17 | ||
|
|
7220852291 | ||
|
|
8026c41886 | ||
|
|
4943a9c7fd | ||
|
|
fda06e6c1a | ||
|
|
36b6bc17bd | ||
|
|
f06aed3ce0 | ||
|
|
2b8c594a50 | ||
|
|
a11569014d | ||
|
|
95524563bb | ||
|
|
abe41635fd | ||
|
|
9ea2e9652d | ||
|
|
3df9380c2d | ||
|
|
9fd58e6ba3 | ||
|
|
e5d2657bb9 | ||
|
|
f246a73b19 | ||
|
|
dd37fda07b | ||
|
|
7fdf164120 | ||
|
|
49f0b2d92d | ||
|
|
8587c80394 | ||
|
|
4bc35383ae | ||
|
|
604bcfb2e9 | ||
|
|
08c4b53cca | ||
|
|
7252655aba | ||
|
|
7b97481b55 | ||
|
|
138dcb6271 | ||
|
|
83d7aad0d1 | ||
|
|
a176b33241 | ||
|
|
56c110ffa2 | ||
|
|
505088e053 | ||
|
|
c0e275ac5c | ||
|
|
46f30d289b | ||
|
|
2abf671ea4 | ||
|
|
d981f05095 | ||
|
|
538b00bba5 | ||
|
|
0c6c0ea467 | ||
|
|
ee80c2c552 | ||
|
|
42e3b45ec6 | ||
|
|
4553ab97e0 | ||
|
|
e93c93e802 | ||
|
|
d347c30dff | ||
|
|
2b92417674 | ||
|
|
211c5d670b | ||
|
|
b2ade45d76 | ||
|
|
b706f140e7 | ||
|
|
aa5252d7e8 | ||
|
|
771c64acac | ||
|
|
8a0951c727 | ||
|
|
c647ca1a31 | ||
|
|
78b91c0d52 | ||
|
|
48ca1d938f | ||
|
|
74afc8b6ea | ||
|
|
cb337044ac | ||
|
|
f3190e50b6 | ||
|
|
855ab2c5e8 | ||
|
|
718b6f3063 | ||
|
|
9a33660f94 | ||
|
|
0abe283619 | ||
|
|
5c6bfc8b3e | ||
|
|
8b7b23379f | ||
|
|
f432c41843 | ||
|
|
451fde8a91 | ||
|
|
0abb7d3df9 | ||
|
|
524a56ea9a | ||
|
|
19496ab9c3 | ||
|
|
382623d1e7 | ||
|
|
8cafd0c246 | ||
|
|
5c07bbb88a | ||
|
|
9cac59e912 | ||
|
|
4ca8e140aa | ||
|
|
0e24c8c50b | ||
|
|
0fc063a528 | ||
|
|
2e1aa24e54 | ||
|
|
da207d35f7 | ||
|
|
acb2924602 | ||
|
|
f041598629 | ||
|
|
292e1f8f97 | ||
|
|
d6a2108e42 | ||
|
|
5c8e290fd4 | ||
|
|
1597d783f0 | ||
|
|
8fc7bcd8a8 | ||
|
|
dd2562a8ed | ||
|
|
f2c9e11856 | ||
|
|
5e07621b48 | ||
|
|
0f59b75d42 | ||
|
|
203393dea0 | ||
|
|
ab21e8b38b | ||
|
|
d6cda0c562 | ||
|
|
1db5a15c33 | ||
|
|
1b5080b0c6 | ||
|
|
2dc36287ee | ||
|
|
88dbf04325 | ||
|
|
0074ef56d4 | ||
|
|
48685d2591 | ||
|
|
caaeade600 | ||
|
|
7b34b53a3a | ||
|
|
d060c4feca | ||
|
|
f2c807d8e8 | ||
|
|
0715c77c06 | ||
|
|
0e79f07d72 | ||
|
|
28a304e364 | ||
|
|
4ff236ed44 | ||
|
|
235c8ab531 | ||
|
|
5d5530ffb5 | ||
|
|
caf68332ba | ||
|
|
247a6e1012 | ||
|
|
19c7148ee6 | ||
|
|
cd7e5a5de0 | ||
|
|
e9ef3b2d32 | ||
|
|
25a340015c | ||
|
|
3127f4a898 | ||
|
|
6db43213f0 | ||
|
|
53f273d434 | ||
|
|
8446635f10 | ||
|
|
01622f48a6 | ||
|
|
2b7d0d9f88 | ||
|
|
c113ebb750 | ||
|
|
f7c363f118 | ||
|
|
630d94f75f | ||
|
|
410ef80fe8 | ||
|
|
0be07aa8de | ||
|
|
8f3ce6328b | ||
|
|
47f4d85efa | ||
|
|
34ab65c4d2 | ||
|
|
aaed2ee8f2 | ||
|
|
d701d0827a | ||
|
|
c39eb5672f | ||
|
|
0c63943cfc | ||
|
|
e46ed5de44 | ||
|
|
98a299016f | ||
|
|
d4dbf4ce67 | ||
|
|
613c2e6300 | ||
|
|
160d62fd76 | ||
|
|
0010e20a34 | ||
|
|
2ce604d7f0 | ||
|
|
1b00d1445e | ||
|
|
62b3116b3c | ||
|
|
7fedf887f9 | ||
|
|
c675492f10 | ||
|
|
4c2853eb0d | ||
|
|
76e11f0413 | ||
|
|
131199b75a | ||
|
|
f6332d50c6 | ||
|
|
74e4d28edd | ||
|
|
961525c2ca | ||
|
|
e6b09bc0af | ||
|
|
00fa770943 | ||
|
|
e1296444e5 | ||
|
|
bd0386bcba | ||
|
|
f8c06a9e4d | ||
|
|
eb8f6ef204 | ||
|
|
15fc6292b6 | ||
|
|
cd396a4bf8 | ||
|
|
820bcb5aa8 | ||
|
|
491bc4919c | ||
|
|
92e818af64 | ||
|
|
caf0706d22 | ||
|
|
82aceb3b18 | ||
|
|
44d63d37bd | ||
|
|
fc67ba471a | ||
|
|
6f273ab8a6 | ||
|
|
d505705493 | ||
|
|
1e3df843ba | ||
|
|
5fd0cdf416 | ||
|
|
7a5450d7d8 | ||
|
|
2b2b7e0c75 | ||
|
|
3cfb3c5028 | ||
|
|
b92e316729 | ||
|
|
259891fdc5 | ||
|
|
9c38d10ff8 | ||
|
|
9e7dc12a99 | ||
|
|
96a16c1adb | ||
|
|
bc9192e83b | ||
|
|
f8bb111939 | ||
|
|
741245b415 | ||
|
|
bc0d33f966 | ||
|
|
297bea8494 | ||
|
|
838460ce2a | ||
|
|
a6523aee16 | ||
|
|
8832bb36f4 | ||
|
|
b4b1d62c46 | ||
|
|
b4f0e9b2c6 | ||
|
|
1a3c26c074 | ||
|
|
598f93201b | ||
|
|
a03fae8556 | ||
|
|
7eb7248b4c | ||
|
|
16956d214b | ||
|
|
3966b8f4ff | ||
|
|
4b11a2737a | ||
|
|
aea8a6ed5f | ||
|
|
24ad3369c7 | ||
|
|
12f6ae0567 | ||
|
|
b89d15537d | ||
|
|
f0be6888cf | ||
|
|
43ec0e1a1f | ||
|
|
e3411b8e7e | ||
|
|
00151abcf7 | ||
|
|
6b2678c5f6 | ||
|
|
6edd85e80a | ||
|
|
3da6674dbb | ||
|
|
43e8317c46 | ||
|
|
8a7d716db6 | ||
|
|
fd66d07ac3 | ||
|
|
cebf080619 | ||
|
|
e08f849d64 | ||
|
|
a08ed1d4c2 | ||
|
|
984249c05b | ||
|
|
1d630722de | ||
|
|
2303c2e6da | ||
|
|
fd9e0511d0 | ||
|
|
dc9a91eac3 | ||
|
|
0da5f94ea3 | ||
|
|
5b08cea6de | ||
|
|
0f6a989142 | ||
|
|
3c6639ae07 | ||
|
|
3e495283b0 | ||
|
|
9e60aad7f3 | ||
|
|
8ec2998077 | ||
|
|
62aff0e7cc | ||
|
|
c1715aa328 | ||
|
|
d136897c8c | ||
|
|
7b4513913e | ||
|
|
0fb7c859d2 | ||
|
|
39f79e118e | ||
|
|
d93c6aa81d | ||
|
|
3107bda8e0 | ||
|
|
fbc33e0fe3 | ||
|
|
5ea8d49f14 | ||
|
|
cccc4744ac | ||
|
|
05004b8225 | ||
|
|
b86f0f9217 | ||
|
|
22182a838a | ||
|
|
a9e67595f7 | ||
|
|
9986e35365 | ||
|
|
c8bc101c96 | ||
|
|
06026757d6 | ||
|
|
d2064ecaf4 | ||
|
|
ed3b8d7019 | ||
|
|
1279514c30 | ||
|
|
b580e55c02 | ||
|
|
33377cf69f | ||
|
|
50ce503458 | ||
|
|
7647857617 | ||
|
|
329fe098c5 | ||
|
|
415ebb8844 | ||
|
|
dac83919a0 | ||
|
|
32b965300f | ||
|
|
74b639c760 | ||
|
|
4a1f9d3f86 | ||
|
|
087c7989c2 | ||
|
|
725e4027f2 | ||
|
|
41f7ce3d5f | ||
|
|
ee0c07befc | ||
|
|
b942fd7d3c | ||
|
|
00580571a6 | ||
|
|
60b8a537ea | ||
|
|
df69352602 | ||
|
|
a9dc097553 | ||
|
|
cbe9bfbab8 | ||
|
|
45be2eb165 | ||
|
|
1e484e03f2 | ||
|
|
f18894bf10 | ||
|
|
a4c28449a7 | ||
|
|
b1cb2d679a | ||
|
|
e373534e41 | ||
|
|
937f66237c | ||
|
|
f3db0647ae | ||
|
|
54d9a996e4 | ||
|
|
95d1fe6c92 | ||
|
|
7e968a9ac7 | ||
|
|
960eaa1949 | ||
|
|
b511ce22b7 | ||
|
|
6899246d01 | ||
|
|
3bcbf8457c | ||
|
|
397f267522 | ||
|
|
6e1acf43da | ||
|
|
3e568be6d8 | ||
|
|
89afe23535 | ||
|
|
77b083e219 | ||
|
|
780fd0a09f | ||
|
|
a53e49610c | ||
|
|
3ec02ee64f | ||
|
|
4ed84390cf | ||
|
|
dbe00c5f90 | ||
|
|
6766910bb7 | ||
|
|
7a3019775c | ||
|
|
ef509f2eb0 | ||
|
|
d5fa2a0dba | ||
|
|
d664b50afb | ||
|
|
4928fb8bbf | ||
|
|
7841462738 | ||
|
|
eabf903e1c | ||
|
|
c26575a6cc | ||
|
|
61ef02cc7a | ||
|
|
bf2a500d5e | ||
|
|
dad4905753 | ||
|
|
e6ba083736 | ||
|
|
4d99f80ff7 | ||
|
|
0a943d4259 | ||
|
|
2248660027 | ||
|
|
af679ef2e6 | ||
|
|
a5f553f701 | ||
|
|
88c9dcb628 | ||
|
|
fb35f8a007 | ||
|
|
71ed5c3c7e | ||
|
|
44bde9ae25 | ||
|
|
fc85f6a9b3 | ||
|
|
8858968f0e | ||
|
|
8ae10ccf04 | ||
|
|
ef196ac12c | ||
|
|
ea5585f4e9 | ||
|
|
7602003e9e | ||
|
|
f4a31886cb | ||
|
|
2e3e716ff2 | ||
|
|
e031cf7b50 | ||
|
|
2b0356ce19 | ||
|
|
21603f4486 | ||
|
|
71a047f8b4 | ||
|
|
4fc2a31cd8 | ||
|
|
cb3c72f48a | ||
|
|
7e882c9064 | ||
|
|
05043cde30 | ||
|
|
364a171326 | ||
|
|
2d354f42d3 | ||
|
|
451f191fd2 | ||
|
|
6050ae5bbe | ||
|
|
925e3ef5a8 | ||
|
|
ef8b63af97 | ||
|
|
417cd77907 | ||
|
|
14731b92f4 | ||
|
|
ba69182222 | ||
|
|
36fd3bb2bf | ||
|
|
94e8839f8f | ||
|
|
f17663323d | ||
|
|
eca96d8a5a | ||
|
|
d4e6423bd5 | ||
|
|
17a6a53fd2 | ||
|
|
db32f66d76 | ||
|
|
c1abed8af6 | ||
|
|
643ca368a6 | ||
|
|
3f4443d703 | ||
|
|
9aea8cc089 | ||
|
|
f5acf6d256 | ||
|
|
95cf7ed691 | ||
|
|
33a6efc02b | ||
|
|
d88801bdef | ||
|
|
8c58452a6e | ||
|
|
993c0165d0 | ||
|
|
042fb3e5d3 | ||
|
|
6f92d98d23 | ||
|
|
4ba4fbe27d | ||
|
|
1954749068 | ||
|
|
ee76b8eb55 | ||
|
|
60be155b51 | ||
|
|
60925982e0 | ||
|
|
1fe2add19a | ||
|
|
f046538771 | ||
|
|
ca7199b9d1 | ||
|
|
07a5e268cf | ||
|
|
7200d45303 | ||
|
|
a154c76744 | ||
|
|
228db1b2f0 | ||
|
|
2cc9f638a7 | ||
|
|
70f3089aed | ||
|
|
610837911f | ||
|
|
d57bc83357 | ||
|
|
3e152fd4ca | ||
|
|
723f21ca13 | ||
|
|
33223d22f4 | ||
|
|
0a0865e0b4 | ||
|
|
a1bf94904c | ||
|
|
5e0c5970ad | ||
|
|
d353249c41 | ||
|
|
88af0f2f59 | ||
|
|
ad461dc1f0 | ||
|
|
32ab5871bb | ||
|
|
3d5bf39ea7 | ||
|
|
f3956f3ea6 | ||
|
|
0aa6d967bb | ||
|
|
500d02b62d | ||
|
|
f321b5453c | ||
|
|
4227b71138 | ||
|
|
d588695a29 | ||
|
|
c841d766a6 | ||
|
|
2480527e5b | ||
|
|
12e4d5ed80 | ||
|
|
501ca75a02 | ||
|
|
732bb77192 | ||
|
|
f1b9a59c54 |
4
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -23,9 +23,13 @@ A clear and concise description of what you expected to happen.
|
|||||||
**Screenshots**
|
**Screenshots**
|
||||||
If applicable, add screenshots to help explain your problem.
|
If applicable, add screenshots to help explain your problem.
|
||||||
|
|
||||||
|
**Logs**
|
||||||
|
If applicable, attatch your logs from `Main Menu > About Cartridges > Troubleshooting > Debugging Information` to the issue.
|
||||||
|
|
||||||
**System (please complete the following information):**
|
**System (please complete the following information):**
|
||||||
- OS: [e.g. Fedora Linux]
|
- OS: [e.g. Fedora Linux]
|
||||||
- Installation method [e.g. Flatpak]
|
- Installation method [e.g. Flatpak]
|
||||||
|
- Cartridges version [e.g. 1.5.4]
|
||||||
|
|
||||||
**Additional context**
|
**Additional context**
|
||||||
Add any other context about the problem here.
|
Add any other context about the problem here.
|
||||||
|
|||||||
60
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request:
|
||||||
|
name: CI
|
||||||
|
concurrency:
|
||||||
|
group: release-${{ github.sha }}
|
||||||
|
jobs:
|
||||||
|
flatpak:
|
||||||
|
name: Flatpak
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: bilelmoussaoui/flatpak-github-actions:gnome-44
|
||||||
|
options: --privileged
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Flatpak Builder
|
||||||
|
uses: flatpak/flatpak-github-actions/flatpak-builder@v6.1
|
||||||
|
with:
|
||||||
|
bundle: hu.kramo.Cartridges.Devel.flatpak
|
||||||
|
manifest-path: flatpak/hu.kramo.Cartridges.Devel.json
|
||||||
|
|
||||||
|
windows:
|
||||||
|
name: Windows
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup MSYS2
|
||||||
|
uses: msys2/setup-msys2@v2
|
||||||
|
with:
|
||||||
|
msystem: UCRT64
|
||||||
|
update: true
|
||||||
|
install: mingw-w64-ucrt-x86_64-gtk4 mingw-w64-ucrt-x86_64-libadwaita mingw-w64-ucrt-x86_64-python-gobject mingw-w64-ucrt-x86_64-python-yaml mingw-w64-ucrt-x86_64-python-requests mingw-w64-ucrt-x86_64-python-pillow mingw-w64-ucrt-x86_64-desktop-file-utils mingw-w64-ucrt-x86_64-ca-certificates mingw-w64-ucrt-x86_64-meson git
|
||||||
|
|
||||||
|
- name: Compile
|
||||||
|
shell: msys2 {0}
|
||||||
|
run: |
|
||||||
|
meson setup _build
|
||||||
|
ninja -C _build install
|
||||||
|
pacman --noconfirm -Rs mingw-w64-ucrt-x86_64-desktop-file-utils mingw-w64-ucrt-x86_64-meson git
|
||||||
|
find /ucrt64/share/locale/ -type f ! -name "*cartridges.mo" -delete
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
shell: msys2 {0}
|
||||||
|
run: |
|
||||||
|
set +e
|
||||||
|
timeout 2 cartridges; [ "$?" -eq "124" ]
|
||||||
|
|
||||||
|
- name: Inno Setup
|
||||||
|
run: iscc ".\_build\windows\Cartridges.iss"
|
||||||
|
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: Windows Installer
|
||||||
|
path: _build/windows/Output/Cartridges Setup.exe
|
||||||
19
.github/workflows/flatpak-builder.yml
vendored
@@ -1,19 +0,0 @@
|
|||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
pull_request:
|
|
||||||
name: CI
|
|
||||||
jobs:
|
|
||||||
flatpak:
|
|
||||||
name: "Flatpak"
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: bilelmoussaoui/flatpak-github-actions:gnome-40
|
|
||||||
options: --privileged
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: flatpak/flatpak-github-actions/flatpak-builder@v5
|
|
||||||
with:
|
|
||||||
bundle: hu.kramo.Cartridges.flatpak
|
|
||||||
manifest-path: hu.kramo.Cartridges.json
|
|
||||||
cache-key: flatpak-builder-${{ github.sha }}
|
|
||||||
45
.github/workflows/publish-release.yml
vendored
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
"*"
|
||||||
|
name: Publish Release
|
||||||
|
concurrency:
|
||||||
|
group: release-${{ github.sha }}
|
||||||
|
jobs:
|
||||||
|
publish-release:
|
||||||
|
name: Publish Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Download workflow artifact
|
||||||
|
uses: dawidd6/action-download-artifact@v2.27.0
|
||||||
|
with:
|
||||||
|
workflow: ci.yml
|
||||||
|
commit: ${{ github.sha }}
|
||||||
|
|
||||||
|
- name: Get release notes
|
||||||
|
shell: python
|
||||||
|
run: |
|
||||||
|
import re, textwrap
|
||||||
|
open_file = open("./data/hu.kramo.Cartridges.metainfo.xml.in", "r", encoding="utf-8")
|
||||||
|
string = open_file.read()
|
||||||
|
open_file.close()
|
||||||
|
string = re.findall("<release.*>\s*<description.*>\n([\s\S]*?)\s*</description>\s*<\/release>", string)[0]
|
||||||
|
string = textwrap.dedent(string)
|
||||||
|
open_file = open("release_notes", "w", encoding="utf-8")
|
||||||
|
open_file.write(string)
|
||||||
|
open_file.close()
|
||||||
|
|
||||||
|
- name: Get tag name
|
||||||
|
id: get_tag_name
|
||||||
|
run: echo tag_name=${GITHUB_REF#refs/tags/} >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Publish release
|
||||||
|
uses: softprops/action-gh-release@v0.1.15
|
||||||
|
with:
|
||||||
|
files: Windows Installer/Cartridges Setup.exe
|
||||||
|
fail_on_unmatched_files: true
|
||||||
|
tag_name: ${{ steps.get_tag_name.outputs.tag_name }}
|
||||||
|
body_path: release_notes
|
||||||
31
.github/workflows/windows.yml
vendored
@@ -1,31 +0,0 @@
|
|||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
pull_request:
|
|
||||||
name: "Build for Windows"
|
|
||||||
jobs:
|
|
||||||
windows:
|
|
||||||
name: "Build"
|
|
||||||
runs-on: windows-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: MSYS2
|
|
||||||
uses: msys2/setup-msys2@v2
|
|
||||||
with:
|
|
||||||
msystem: UCRT64
|
|
||||||
update: true
|
|
||||||
install: mingw-w64-ucrt-x86_64-gtk4 mingw-w64-ucrt-x86_64-libadwaita mingw-w64-ucrt-x86_64-python-gobject mingw-w64-ucrt-x86_64-python-yaml mingw-w64-ucrt-x86_64-desktop-file-utils mingw-w64-ucrt-x86_64-ca-certificates mingw-w64-ucrt-x86_64-meson git
|
|
||||||
- name: Compile
|
|
||||||
shell: msys2 {0}
|
|
||||||
run: |
|
|
||||||
meson setup _build
|
|
||||||
ninja -C _build install
|
|
||||||
pacman --noconfirm -Rs mingw-w64-ucrt-x86_64-desktop-file-utils mingw-w64-ucrt-x86_64-meson git
|
|
||||||
- name: "Inno Setup"
|
|
||||||
run: iscc ".\.windows\Cartridges.iss"
|
|
||||||
- name: "Upload Artifact"
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: "Installer"
|
|
||||||
path: ".windows/Output/Cartridges Setup.exe"
|
|
||||||
32
.pylintrc
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
[MAIN]
|
||||||
|
|
||||||
|
ignore=importers
|
||||||
|
|
||||||
|
[MESSAGES CONTROL]
|
||||||
|
|
||||||
|
|
||||||
|
disable=raw-checker-failed,
|
||||||
|
bad-inline-option,
|
||||||
|
locally-disabled,
|
||||||
|
file-ignored,
|
||||||
|
suppressed-message,
|
||||||
|
useless-suppression,
|
||||||
|
deprecated-pragma,
|
||||||
|
use-symbolic-message-instead,
|
||||||
|
too-few-public-methods,
|
||||||
|
missing-function-docstring,
|
||||||
|
missing-class-docstring,
|
||||||
|
missing-module-docstring,
|
||||||
|
relative-beyond-top-level,
|
||||||
|
import-error,
|
||||||
|
no-name-in-module
|
||||||
|
|
||||||
|
|
||||||
|
[TYPECHECK]
|
||||||
|
|
||||||
|
ignored-classes=Child
|
||||||
|
|
||||||
|
|
||||||
|
[VARIABLES]
|
||||||
|
|
||||||
|
additional-builtins=_
|
||||||
@@ -1,128 +1,3 @@
|
|||||||
# Contributor Covenant Code of Conduct
|
The project follows the [GNOME Code of Conduct](https://wiki.gnome.org/Foundation/CodeOfConduct).
|
||||||
|
|
||||||
## Our Pledge
|
If you believe that someone is violating the Code of Conduct, or have any other concerns, please contact us via [cartridges-community@kramo.hu](mailto:cartridges-community@kramo.hu).
|
||||||
|
|
||||||
We as members, contributors, and leaders pledge to make participation in our
|
|
||||||
community a harassment-free experience for everyone, regardless of age, body
|
|
||||||
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
||||||
identity and expression, level of experience, education, socio-economic status,
|
|
||||||
nationality, personal appearance, race, religion, or sexual identity
|
|
||||||
and orientation.
|
|
||||||
|
|
||||||
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
||||||
diverse, inclusive, and healthy community.
|
|
||||||
|
|
||||||
## Our Standards
|
|
||||||
|
|
||||||
Examples of behavior that contributes to a positive environment for our
|
|
||||||
community include:
|
|
||||||
|
|
||||||
* Demonstrating empathy and kindness toward other people
|
|
||||||
* Being respectful of differing opinions, viewpoints, and experiences
|
|
||||||
* Giving and gracefully accepting constructive feedback
|
|
||||||
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
||||||
and learning from the experience
|
|
||||||
* Focusing on what is best not just for us as individuals, but for the
|
|
||||||
overall community
|
|
||||||
|
|
||||||
Examples of unacceptable behavior include:
|
|
||||||
|
|
||||||
* The use of sexualized language or imagery, and sexual attention or
|
|
||||||
advances of any kind
|
|
||||||
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
||||||
* Public or private harassment
|
|
||||||
* Publishing others' private information, such as a physical or email
|
|
||||||
address, without their explicit permission
|
|
||||||
* Other conduct which could reasonably be considered inappropriate in a
|
|
||||||
professional setting
|
|
||||||
|
|
||||||
## Enforcement Responsibilities
|
|
||||||
|
|
||||||
Community leaders are responsible for clarifying and enforcing our standards of
|
|
||||||
acceptable behavior and will take appropriate and fair corrective action in
|
|
||||||
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
||||||
or harmful.
|
|
||||||
|
|
||||||
Community leaders have the right and responsibility to remove, edit, or reject
|
|
||||||
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
||||||
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
||||||
decisions when appropriate.
|
|
||||||
|
|
||||||
## Scope
|
|
||||||
|
|
||||||
This Code of Conduct applies within all community spaces, and also applies when
|
|
||||||
an individual is officially representing the community in public spaces.
|
|
||||||
Examples of representing our community include using an official e-mail address,
|
|
||||||
posting via an official social media account, or acting as an appointed
|
|
||||||
representative at an online or offline event.
|
|
||||||
|
|
||||||
## Enforcement
|
|
||||||
|
|
||||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
||||||
reported to the community leaders responsible for enforcement at
|
|
||||||
cartridges-community@kramo.hu.
|
|
||||||
All complaints will be reviewed and investigated promptly and fairly.
|
|
||||||
|
|
||||||
All community leaders are obligated to respect the privacy and security of the
|
|
||||||
reporter of any incident.
|
|
||||||
|
|
||||||
## Enforcement Guidelines
|
|
||||||
|
|
||||||
Community leaders will follow these Community Impact Guidelines in determining
|
|
||||||
the consequences for any action they deem in violation of this Code of Conduct:
|
|
||||||
|
|
||||||
### 1. Correction
|
|
||||||
|
|
||||||
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
||||||
unprofessional or unwelcome in the community.
|
|
||||||
|
|
||||||
**Consequence**: A private, written warning from community leaders, providing
|
|
||||||
clarity around the nature of the violation and an explanation of why the
|
|
||||||
behavior was inappropriate. A public apology may be requested.
|
|
||||||
|
|
||||||
### 2. Warning
|
|
||||||
|
|
||||||
**Community Impact**: A violation through a single incident or series
|
|
||||||
of actions.
|
|
||||||
|
|
||||||
**Consequence**: A warning with consequences for continued behavior. No
|
|
||||||
interaction with the people involved, including unsolicited interaction with
|
|
||||||
those enforcing the Code of Conduct, for a specified period of time. This
|
|
||||||
includes avoiding interactions in community spaces as well as external channels
|
|
||||||
like social media. Violating these terms may lead to a temporary or
|
|
||||||
permanent ban.
|
|
||||||
|
|
||||||
### 3. Temporary Ban
|
|
||||||
|
|
||||||
**Community Impact**: A serious violation of community standards, including
|
|
||||||
sustained inappropriate behavior.
|
|
||||||
|
|
||||||
**Consequence**: A temporary ban from any sort of interaction or public
|
|
||||||
communication with the community for a specified period of time. No public or
|
|
||||||
private interaction with the people involved, including unsolicited interaction
|
|
||||||
with those enforcing the Code of Conduct, is allowed during this period.
|
|
||||||
Violating these terms may lead to a permanent ban.
|
|
||||||
|
|
||||||
### 4. Permanent Ban
|
|
||||||
|
|
||||||
**Community Impact**: Demonstrating a pattern of violation of community
|
|
||||||
standards, including sustained inappropriate behavior, harassment of an
|
|
||||||
individual, or aggression toward or disparagement of classes of individuals.
|
|
||||||
|
|
||||||
**Consequence**: A permanent ban from any sort of public interaction within
|
|
||||||
the community.
|
|
||||||
|
|
||||||
## Attribution
|
|
||||||
|
|
||||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
||||||
version 2.0, available at
|
|
||||||
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
|
||||||
|
|
||||||
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
|
||||||
enforcement ladder](https://github.com/mozilla/diversity).
|
|
||||||
|
|
||||||
[homepage]: https://www.contributor-covenant.org
|
|
||||||
|
|
||||||
For answers to common questions about this code of conduct, see the FAQ at
|
|
||||||
https://www.contributor-covenant.org/faq. Translations are available at
|
|
||||||
https://www.contributor-covenant.org/translations.
|
|
||||||
@@ -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,14 +24,14 @@ 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.
|
||||||
|
|
||||||
## For Windows
|
## For Windows
|
||||||
1. Install [MSYS2](https://www.msys2.org/).
|
1. Install [MSYS2](https://www.msys2.org/).
|
||||||
2. From the MSYS2 shell, install the required dependencies listed [here](https://github.com/kra-mo/cartridges/blob/main/.github/workflows/windows.yml).
|
2. From the MSYS2 shell, install the required dependencies listed [here](https://github.com/kra-mo/cartridges/blob/main/.github/workflows/ci.yml).
|
||||||
3. Build it via Meson
|
3. Build it via Meson.
|
||||||
|
|
||||||
## Meson
|
## Meson
|
||||||
```bash
|
```bash
|
||||||
@@ -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.
|
||||||
|
|||||||
75
README.md
@@ -1,62 +1,93 @@
|
|||||||
|
|
||||||
|
[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
|
A GTK4 + Libadwaita game launcher
|
||||||
|
|
||||||
[![Build status][github-actions-image]][github-actions-url]
|
[![GNOME Circle][circle-image]][circle-url]
|
||||||
[![Translation Status][weblate-image]][weblate-url]
|
[![Translation Status][weblate-image]][weblate-url]
|
||||||
[![License][license-image]][license-url]
|
|
||||||
[![Discord Chatroom][discord-image]][discord-url]
|
|
||||||
[![Code style][code-style-image]][code-style-url]
|
|
||||||
|
|
||||||
[github-actions-url]: https://github.com/kra-mo/cartridges
|
[![Flathub][flathub-image]][flathub-url]
|
||||||
[github-actions-image]: https://github.com/kra-mo/cartridges/actions/workflows/flatpak-builder.yml/badge.svg
|
[![Discord][discord-image]][discord-url]
|
||||||
[license-url]: https://github.com/kra-mo/cartridges/blob/main/LICENSE
|
[![Matrix][matrix-image]][matrix-url]
|
||||||
[license-image]: https://img.shields.io/github/license/kra-mo/cartridges
|
[![Installs][installs-image]][flathub-url]
|
||||||
[code-style-url]: https://github.com/psf/black
|
|
||||||
[code-style-image]: https://img.shields.io/badge/code%20style-black-000000?style=flat
|
|
||||||
[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
|
|
||||||
|
|
||||||
<img src="data/screenshots/1.png">
|
<img src="data/screenshots/1.png">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
# The Project
|
# The Project
|
||||||
|
|
||||||
Cartridges is a simple game launcher written in Python using GTK4 and Libadwaita.
|
Cartridges is a simple game launcher written in Python using GTK4 and Libadwaita.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Manually adding and editing games
|
- Manually adding and editing games
|
||||||
- Importing games from Steam, Heroic and Bottles
|
- Importing games from various sources:
|
||||||
- Support for multiple Steam install locations
|
- Steam
|
||||||
|
- Lutris
|
||||||
|
- Heroic
|
||||||
|
- Bottles
|
||||||
|
- itch
|
||||||
|
- Legendary
|
||||||
|
- RetroArch
|
||||||
|
- Flatpak
|
||||||
- Hiding games
|
- Hiding games
|
||||||
- Searching and sorting by title, date added and last played
|
- Searching and sorting by title, date added and last played
|
||||||
|
- Automatically downloading cover art from [SteamGridDB](https://www.steamgriddb.com/)
|
||||||
|
- Searching for games on various databases
|
||||||
|
- Animated covers
|
||||||
|
|
||||||
For updates and questions, join our [Discord server]([discord-url])!
|
For updates and questions, join our [Discord server][discord-url] (bridged to [Matrix](https://matrix.to/#/#cartridges:matrix.org))!
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
## Linux
|
## Linux
|
||||||
|
|
||||||
### From Releases
|
### Flathub
|
||||||
1. Download the latest release from [Releases](https://github.com/kra-mo/cartridges/releases).
|
|
||||||
2. Install the downloaded file via GNOME Software or `flatpak install hu.kramo.Cartridges.flatpak`.
|
The app is available on Flathub.
|
||||||
|
|
||||||
|
<a href=https://flathub.org/apps/hu.kramo.Cartridges><img width='240' alt='Download on Flathub' src='https://dl.flathub.org/assets/badges/flathub-badge-en.png'/></a>
|
||||||
|
|
||||||
## Windows
|
## Windows
|
||||||
|
|
||||||
### From Releases
|
### From Releases
|
||||||
|
|
||||||
1. Download the latest release from [Releases](https://github.com/kra-mo/cartridges/releases).
|
1. Download the latest release from [Releases](https://github.com/kra-mo/cartridges/releases).
|
||||||
2. Run the downloaded installer.
|
2. Run the downloaded installer.
|
||||||
|
|
||||||
Note: Windows might present you with a warning when trying to install the app. This is expected, just ignore the warning.
|
Note: Windows might present you with a warning when trying to install the app. This is expected, just ignore the warning.
|
||||||
|
|
||||||
|
### Winget
|
||||||
|
|
||||||
|
Install the latest release with the command: `winget install cartridges`.
|
||||||
|
|
||||||
## Building manually
|
## Building manually
|
||||||
|
|
||||||
See [Building](https://github.com/kra-mo/cartridges/blob/main/CONTRIBUTING.md#building).
|
See [Building](https://github.com/kra-mo/cartridges/blob/main/CONTRIBUTING.md#building).
|
||||||
|
|
||||||
# Contributing
|
# Contributing
|
||||||
|
|
||||||
See [CONTRIBUTING](https://github.com/kra-mo/cartridges/blob/main/CONTRIBUTING.md).
|
See [CONTRIBUTING.md](https://github.com/kra-mo/cartridges/blob/main/CONTRIBUTING.md).
|
||||||
|
|
||||||
Thanks to [Weblate](https://weblate.org/) for hosting our translations!
|
Thanks to [Weblate](https://weblate.org/) for hosting our translations!
|
||||||
|
|
||||||
|
# Code of Conduct
|
||||||
|
|
||||||
|
The project follows the [GNOME Code of Conduct](https://wiki.gnome.org/Foundation/CodeOfConduct).
|
||||||
|
|
||||||
|
See [CODE_OF_CONDUCT.md](https://github.com/kra-mo/cartridges/blob/main/CODE_OF_CONDUCT.md).
|
||||||
|
|||||||
59
cartridges.doap
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Project xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
|
||||||
|
xmlns:foaf="http://xmlns.com/foaf/0.1/"
|
||||||
|
xmlns:gnome="http://api.gnome.org/doap-extensions#"
|
||||||
|
xmlns="http://usefulinc.com/ns/doap#">
|
||||||
|
|
||||||
|
<name>Cartridges</name>
|
||||||
|
<shortdesc xml:lang="en">Launch all your games</shortdesc>
|
||||||
|
<description xml:lang="en">
|
||||||
|
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.
|
||||||
|
</description>
|
||||||
|
|
||||||
|
<homepage rdf:resource="https://github.com/kra-mo/cartridges" />
|
||||||
|
<download-page rdf:resource="https://github.com/kra-mo/cartridges" />
|
||||||
|
<bug-database rdf:resource="https://github.com/kra-mo/cartridges/issues" />
|
||||||
|
|
||||||
|
<programming-language>Python</programming-language>
|
||||||
|
<platform>GTK 4</platform>
|
||||||
|
<platform>Libadwaita</platform>
|
||||||
|
|
||||||
|
<maintainer>
|
||||||
|
<foaf:Person>
|
||||||
|
<foaf:name>kramo</foaf:name>
|
||||||
|
<foaf:mbox rdf:resource="mailto:contact@kramo.hu" />
|
||||||
|
<foaf:account>
|
||||||
|
<foaf:OnlineAccount>
|
||||||
|
<foaf:accountServiceHomepage rdf:resource="https://github.com"/>
|
||||||
|
<foaf:accountName>kra-mo</foaf:accountName>
|
||||||
|
</foaf:OnlineAccount>
|
||||||
|
</foaf:account>
|
||||||
|
<foaf:account>
|
||||||
|
<foaf:OnlineAccount>
|
||||||
|
<foaf:accountServiceHomepage rdf:resource="https://gitlab.gnome.org"/>
|
||||||
|
<foaf:accountName>kramo</foaf:accountName>
|
||||||
|
</foaf:OnlineAccount>
|
||||||
|
</foaf:account>
|
||||||
|
</foaf:Person>
|
||||||
|
</maintainer>
|
||||||
|
<maintainer>
|
||||||
|
<foaf:Person>
|
||||||
|
<foaf:name>Geoffrey Coulaud</foaf:name>
|
||||||
|
<foaf:mbox rdf:resource="mailto:geoffrey.coulaud@gmail.com" />
|
||||||
|
<foaf:account>
|
||||||
|
<foaf:OnlineAccount>
|
||||||
|
<foaf:accountServiceHomepage rdf:resource="https://github.com"/>
|
||||||
|
<foaf:accountName>GeoffreyCoulaud</foaf:accountName>
|
||||||
|
</foaf:OnlineAccount>
|
||||||
|
</foaf:account>
|
||||||
|
<foaf:account>
|
||||||
|
<foaf:OnlineAccount>
|
||||||
|
<foaf:accountServiceHomepage rdf:resource="https://gitlab.gnome.org"/>
|
||||||
|
<foaf:accountName>GeoffreyCoulaud</foaf:accountName>
|
||||||
|
</foaf:OnlineAccount>
|
||||||
|
</foaf:account>
|
||||||
|
</foaf:Person>
|
||||||
|
</maintainer>
|
||||||
|
|
||||||
|
</Project>
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<gresources>
|
<gresources>
|
||||||
<gresource prefix="/hu/kramo/Cartridges">
|
<gresource prefix="@PREFIX@">
|
||||||
<file preprocess="xml-stripblanks">gtk/window.ui</file>
|
<file preprocess="xml-stripblanks">gtk/window.ui</file>
|
||||||
<file preprocess="xml-stripblanks">gtk/help-overlay.ui</file>
|
<file preprocess="xml-stripblanks">gtk/help-overlay.ui</file>
|
||||||
<file preprocess="xml-stripblanks">gtk/game.ui</file>
|
<file preprocess="xml-stripblanks">gtk/game.ui</file>
|
||||||
<file preprocess="xml-stripblanks">gtk/preferences.ui</file>
|
<file preprocess="xml-stripblanks">gtk/preferences.ui</file>
|
||||||
|
<file preprocess="xml-stripblanks">gtk/details-window.ui</file>
|
||||||
<file alias="style.css">gtk/style.css</file>
|
<file alias="style.css">gtk/style.css</file>
|
||||||
<file alias="style-dark.css">gtk/style-dark.css</file>
|
<file alias="style-dark.css">gtk/style-dark.css</file>
|
||||||
<file>library_placeholder.svg</file>
|
<file>library_placeholder.svg</file>
|
||||||
|
<file>library_placeholder_small.svg</file>
|
||||||
</gresource>
|
</gresource>
|
||||||
</gresources>
|
</gresources>
|
||||||
143
data/gtk/details-window.blp
Normal file
@@ -0,0 +1,143 @@
|
|||||||
|
using Gtk 4.0;
|
||||||
|
using Adw 1;
|
||||||
|
|
||||||
|
template $DetailsWindow : Adw.Window {
|
||||||
|
default-width: 480; // Same as Nautilus' properties window
|
||||||
|
default-height: -1;
|
||||||
|
modal: true;
|
||||||
|
|
||||||
|
ShortcutController {
|
||||||
|
Shortcut {
|
||||||
|
trigger: "Escape";
|
||||||
|
action: "action(window.close)";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Box {
|
||||||
|
orientation: vertical;
|
||||||
|
|
||||||
|
Adw.HeaderBar HeaderBar {
|
||||||
|
show-start-title-buttons: false;
|
||||||
|
show-end-title-buttons: false;
|
||||||
|
|
||||||
|
[start]
|
||||||
|
Button cancel_button {
|
||||||
|
label: _("Cancel");
|
||||||
|
action-name: "window.close";
|
||||||
|
}
|
||||||
|
|
||||||
|
[end]
|
||||||
|
Button apply_button {
|
||||||
|
styles [
|
||||||
|
"suggested-action"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.PreferencesPage {
|
||||||
|
vexpand: true;
|
||||||
|
|
||||||
|
Adw.PreferencesGroup cover_group {
|
||||||
|
Adw.Clamp cover_clamp {
|
||||||
|
maximum-size: 200;
|
||||||
|
Overlay {
|
||||||
|
[overlay]
|
||||||
|
Spinner spinner {
|
||||||
|
margin-start: 72;
|
||||||
|
margin-end: 72;
|
||||||
|
}
|
||||||
|
|
||||||
|
Overlay cover_overlay {
|
||||||
|
halign: center;
|
||||||
|
valign: center;
|
||||||
|
|
||||||
|
[overlay]
|
||||||
|
Button cover_button_edit {
|
||||||
|
icon-name: "document-edit-symbolic";
|
||||||
|
tooltip-text: _("New Cover");
|
||||||
|
halign: end;
|
||||||
|
valign: end;
|
||||||
|
margin-bottom: 6;
|
||||||
|
margin-end: 6;
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"circular", "osd"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
[overlay]
|
||||||
|
Revealer cover_button_delete_revealer {
|
||||||
|
transition-type: crossfade;
|
||||||
|
margin-end: 40;
|
||||||
|
|
||||||
|
Button cover_button_delete {
|
||||||
|
icon-name: "user-trash-symbolic";
|
||||||
|
tooltip-text: _("Delete Cover");
|
||||||
|
halign: end;
|
||||||
|
valign: end;
|
||||||
|
margin-bottom: 6;
|
||||||
|
margin-end: 6;
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"circular", "osd"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Picture cover {
|
||||||
|
width-request: 200;
|
||||||
|
height-request: 300;
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"card"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.PreferencesGroup {
|
||||||
|
Adw.EntryRow name {
|
||||||
|
title: _("Title");
|
||||||
|
}
|
||||||
|
Adw.EntryRow developer {
|
||||||
|
title: _("Developer (optional)");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Adw.PreferencesGroup {
|
||||||
|
Adw.EntryRow executable {
|
||||||
|
title: _("Executable");
|
||||||
|
|
||||||
|
[suffix]
|
||||||
|
Gtk.MenuButton exec_info_button {
|
||||||
|
valign: center;
|
||||||
|
icon-name: "help-about-symbolic";
|
||||||
|
tooltip-text: _("More Info");
|
||||||
|
|
||||||
|
popover: Popover exec_info_popover {
|
||||||
|
focusable: true;
|
||||||
|
|
||||||
|
Label exec_info_label {
|
||||||
|
use-markup: true;
|
||||||
|
wrap: true;
|
||||||
|
max-width-chars: 50;
|
||||||
|
halign: center;
|
||||||
|
valign: center;
|
||||||
|
margin-top: 6;
|
||||||
|
margin-bottom: 6;
|
||||||
|
margin-start: 6;
|
||||||
|
margin-end: 6;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"flat"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,87 +1,106 @@
|
|||||||
using Gtk 4.0;
|
using Gtk 4.0;
|
||||||
using Adw 1;
|
using Adw 1;
|
||||||
|
|
||||||
template game : Box {
|
template $Game : Box {
|
||||||
orientation: vertical;
|
orientation: vertical;
|
||||||
halign: center;
|
halign: center;
|
||||||
valign: start;
|
valign: start;
|
||||||
|
|
||||||
Adw.Clamp {
|
Adw.Clamp {
|
||||||
maximum-size: 200;
|
maximum-size: 200;
|
||||||
|
|
||||||
|
Overlay {
|
||||||
|
[overlay]
|
||||||
|
Revealer play_revealer {
|
||||||
|
transition-type: crossfade;
|
||||||
|
valign: start;
|
||||||
|
halign: start;
|
||||||
|
|
||||||
|
Button play_button {
|
||||||
|
icon-name: "media-playback-start-symbolic";
|
||||||
|
margin-start: 6;
|
||||||
|
margin-end: 3;
|
||||||
|
margin-top: 6;
|
||||||
|
margin-bottom: 3;
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"circular",
|
||||||
|
"osd",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[overlay]
|
||||||
|
Revealer menu_revealer {
|
||||||
|
transition-type: crossfade;
|
||||||
|
valign: start;
|
||||||
|
halign: end;
|
||||||
|
|
||||||
|
MenuButton menu_button {
|
||||||
|
icon-name: "view-more-symbolic";
|
||||||
|
margin-start: 3;
|
||||||
|
margin-end: 6;
|
||||||
|
margin-top: 6;
|
||||||
|
margin-bottom: 3;
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"circular",
|
||||||
|
"osd",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Button cover_button {
|
||||||
|
name: "cover_button";
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
accessibility {
|
||||||
|
labelled-by: title;
|
||||||
|
}
|
||||||
|
|
||||||
Box {
|
Box {
|
||||||
orientation: vertical;
|
orientation: vertical;
|
||||||
Button cover_button {
|
|
||||||
overflow: hidden;
|
Overlay {
|
||||||
|
[overlay]
|
||||||
|
Spinner spinner {
|
||||||
|
margin-start: 72;
|
||||||
|
margin-end: 72;
|
||||||
|
}
|
||||||
|
|
||||||
Picture cover {
|
Picture cover {
|
||||||
width-request: 200;
|
width-request: 200;
|
||||||
height-request: 300;
|
height-request: 300;
|
||||||
hexpand: true;
|
hexpand: true;
|
||||||
vexpand: true;
|
vexpand: true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
styles [
|
|
||||||
"card",
|
|
||||||
"flat",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Overlay overlay {
|
|
||||||
[overlay]
|
|
||||||
Revealer play_revealer {
|
|
||||||
reveal-child: false;
|
|
||||||
transition-type: crossfade;
|
|
||||||
Box {
|
|
||||||
Button button_play {
|
|
||||||
halign: start;
|
|
||||||
label: _("Play");
|
|
||||||
margin-start: 6;
|
|
||||||
margin-end: 6;
|
|
||||||
margin-top: 6;
|
|
||||||
margin-bottom: 6;
|
|
||||||
}
|
|
||||||
MenuButton menu_button {
|
|
||||||
icon-name: "view-more-symbolic";
|
|
||||||
margin-top: 6;
|
|
||||||
margin-bottom: 6;
|
|
||||||
margin-end: 6;
|
|
||||||
margin-start: 6;
|
|
||||||
hexpand: true;
|
|
||||||
halign: end;
|
|
||||||
|
|
||||||
styles [
|
|
||||||
"flat",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Revealer title_revealer {
|
|
||||||
transition-type: slide_down;
|
|
||||||
reveal-child: true;
|
|
||||||
valign: start;
|
|
||||||
Label title {
|
Label title {
|
||||||
label: _("Title");
|
label: _("Title");
|
||||||
ellipsize: end;
|
ellipsize: end;
|
||||||
hexpand: true;
|
hexpand: true;
|
||||||
halign: start;
|
halign: start;
|
||||||
margin-top: 14;
|
margin-top: 15;
|
||||||
margin-bottom: 14;
|
margin-bottom: 15;
|
||||||
margin-start: 12;
|
margin-start: 12;
|
||||||
margin-end: 12;
|
margin-end: 12;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
"card",
|
"card",
|
||||||
]
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
menu game_options {
|
menu game_options {
|
||||||
section {
|
section {
|
||||||
item {
|
item {
|
||||||
label: _("Edit");
|
label: _("Edit");
|
||||||
action: "app.edit_details";
|
action: "app.edit_game";
|
||||||
}
|
}
|
||||||
|
|
||||||
item {
|
item {
|
||||||
@@ -100,7 +119,7 @@ menu hidden_game_options {
|
|||||||
section {
|
section {
|
||||||
item {
|
item {
|
||||||
label: _("Edit");
|
label: _("Edit");
|
||||||
action: "app.edit_details";
|
action: "app.edit_game";
|
||||||
}
|
}
|
||||||
|
|
||||||
item {
|
item {
|
||||||
|
|||||||
@@ -8,51 +8,61 @@ ShortcutsWindow help_overlay {
|
|||||||
max-height: 10;
|
max-height: 10;
|
||||||
|
|
||||||
ShortcutsGroup {
|
ShortcutsGroup {
|
||||||
title: C_("shortcut window", "General");
|
title: _("General");
|
||||||
|
|
||||||
ShortcutsShortcut {
|
ShortcutsShortcut {
|
||||||
title: C_("shortcut window", "Quit");
|
title: _("Quit");
|
||||||
action-name: "app.quit";
|
action-name: "app.quit";
|
||||||
}
|
}
|
||||||
|
|
||||||
ShortcutsShortcut {
|
ShortcutsShortcut {
|
||||||
title: C_("shortcut window", "Search");
|
title: _("Search");
|
||||||
action-name: "win.toggle_search";
|
action-name: "win.toggle_search";
|
||||||
}
|
}
|
||||||
|
|
||||||
ShortcutsShortcut {
|
ShortcutsShortcut {
|
||||||
title: C_("shortcut window", "Show preferences");
|
title: _("Show preferences");
|
||||||
action-name: "app.preferences";
|
action-name: "app.preferences";
|
||||||
}
|
}
|
||||||
|
|
||||||
ShortcutsShortcut {
|
ShortcutsShortcut {
|
||||||
title: C_("shortcut window", "Shortcuts");
|
title: _("Shortcuts");
|
||||||
action-name: "win.show-help-overlay";
|
action-name: "win.show-help-overlay";
|
||||||
}
|
}
|
||||||
|
|
||||||
ShortcutsShortcut {
|
ShortcutsShortcut {
|
||||||
title: C_("shortcut window", "Undo");
|
title: _("Undo");
|
||||||
action-name: "win.undo_remove";
|
action-name: "win.undo";
|
||||||
}
|
}
|
||||||
|
|
||||||
ShortcutsShortcut {
|
ShortcutsShortcut {
|
||||||
title: C_("shortcut window", "Open menu");
|
title: _("Open menu");
|
||||||
action-name: "win.open_menu";
|
action-name: "win.open_menu";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ShortcutsGroup {
|
ShortcutsGroup {
|
||||||
title: C_("shortcut window", "Games");
|
title: _("Games");
|
||||||
|
|
||||||
ShortcutsShortcut {
|
ShortcutsShortcut {
|
||||||
title: C_("shortcut window", "Add new game");
|
title: _("Add new game");
|
||||||
action-name: "app.add_game";
|
action-name: "app.add_game";
|
||||||
}
|
}
|
||||||
|
|
||||||
ShortcutsShortcut {
|
ShortcutsShortcut {
|
||||||
title: C_("shortcut window", "Show hidden games");
|
title: _("Import games");
|
||||||
|
action-name: "app.import";
|
||||||
|
}
|
||||||
|
|
||||||
|
ShortcutsShortcut {
|
||||||
|
title: _("Show hidden games");
|
||||||
action-name: "win.show_hidden";
|
action-name: "win.show_hidden";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ShortcutsShortcut {
|
||||||
|
title: _("Remove game");
|
||||||
|
action-name: "app.remove_game_details_view";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,47 +1,60 @@
|
|||||||
using Gtk 4.0;
|
using Gtk 4.0;
|
||||||
using Adw 1;
|
using Adw 1;
|
||||||
|
|
||||||
template PreferencesWindow : Adw.PreferencesWindow {
|
template $PreferencesWindow : Adw.PreferencesWindow {
|
||||||
search-enabled: false;
|
|
||||||
default-height: 500;
|
default-height: 500;
|
||||||
|
|
||||||
Adw.PreferencesPage page {
|
Adw.PreferencesPage general_page {
|
||||||
Adw.PreferencesGroup {
|
name: "general";
|
||||||
title: _("General");
|
title: _("General");
|
||||||
|
icon-name: "user-home-symbolic";
|
||||||
|
|
||||||
|
Adw.PreferencesGroup behavior_group {
|
||||||
|
title: _("Behavior");
|
||||||
|
|
||||||
Adw.ActionRow {
|
Adw.ActionRow {
|
||||||
title: _("Exit After Launching Games");
|
title: _("Exit After Launching Games");
|
||||||
|
activatable-widget: exit_after_launch_switch;
|
||||||
|
|
||||||
Switch exit_after_launch_switch {
|
Switch exit_after_launch_switch {
|
||||||
valign: center;
|
valign: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Adw.PreferencesGroup steam_group {
|
|
||||||
title: "Steam";
|
|
||||||
|
|
||||||
Adw.ActionRow {
|
Adw.ActionRow {
|
||||||
title: _("Steam Install Location");
|
title: _("Cover Image Launches Game");
|
||||||
subtitle: _("Directory to use when importing games");
|
subtitle: _("Swaps the behavior of the cover image and the play button");
|
||||||
|
activatable-widget: cover_launches_game_switch;
|
||||||
|
|
||||||
Button steam_file_chooser_button {
|
Switch cover_launches_game_switch {
|
||||||
icon-name: "folder-symbolic";
|
|
||||||
valign: center;
|
valign: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.PreferencesGroup images_group {
|
||||||
|
title: _("Images");
|
||||||
|
|
||||||
Adw.ActionRow {
|
Adw.ActionRow {
|
||||||
title: _("Extra Steam Libraries");
|
title: _("High Quality Images");
|
||||||
subtitle: _("Select other directories where you have Steam games installed");
|
subtitle: _("Save game covers losslessly at the cost of storage");
|
||||||
|
activatable-widget: high_quality_images_switch;
|
||||||
|
|
||||||
|
Switch high_quality_images_switch {
|
||||||
Revealer steam_clear_button_revealer {
|
valign: center;
|
||||||
reveal-child: false;
|
}
|
||||||
transition-type: slide_left;
|
}
|
||||||
Button steam_clear_button {
|
}
|
||||||
label: _("Clear");
|
|
||||||
|
Adw.PreferencesGroup danger_zone_group {
|
||||||
|
title: _("Danger Zone");
|
||||||
|
|
||||||
|
Adw.ActionRow {
|
||||||
|
title: _("Remove All Games");
|
||||||
|
|
||||||
|
Button remove_all_games_button {
|
||||||
|
label: _("Remove");
|
||||||
valign: center;
|
valign: center;
|
||||||
halign: end;
|
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
"destructive-action",
|
"destructive-action",
|
||||||
@@ -49,21 +62,108 @@ template PreferencesWindow : Adw.PreferencesWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Button steam_extra_file_chooser_button {
|
Adw.ActionRow reset_action_row {
|
||||||
icon-name: "folder-new-symbolic";
|
title: "Reset App";
|
||||||
|
subtitle: "Completely resets and quits Cartridges";
|
||||||
|
visible: false;
|
||||||
|
|
||||||
|
Button reset_button {
|
||||||
|
label: "Reset";
|
||||||
|
valign: center;
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"destructive-action",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.PreferencesPage import_page {
|
||||||
|
name: "import";
|
||||||
|
title: _("Import");
|
||||||
|
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;
|
valign: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Adw.PreferencesGroup heroic_group {
|
Adw.PreferencesGroup sources_group {
|
||||||
title: "Heroic";
|
title: _("Sources");
|
||||||
|
|
||||||
|
Adw.ExpanderRow steam_expander_row {
|
||||||
|
title: _("Steam");
|
||||||
|
show-enable-switch: true;
|
||||||
|
|
||||||
|
Adw.ActionRow steam_data_action_row {
|
||||||
|
title: _("Install Location");
|
||||||
|
|
||||||
|
Button steam_data_file_chooser_button {
|
||||||
|
icon-name: "folder-symbolic";
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.ExpanderRow lutris_expander_row {
|
||||||
|
title: _("Lutris");
|
||||||
|
show-enable-switch: true;
|
||||||
|
|
||||||
|
Adw.ActionRow lutris_data_action_row {
|
||||||
|
title: _("Install Location");
|
||||||
|
|
||||||
|
Button lutris_data_file_chooser_button {
|
||||||
|
icon-name: "folder-symbolic";
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.ActionRow lutris_cache_action_row {
|
||||||
|
title: _("Cache Location");
|
||||||
|
|
||||||
|
Button lutris_cache_file_chooser_button {
|
||||||
|
icon-name: "folder-symbolic";
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Adw.ActionRow {
|
Adw.ActionRow {
|
||||||
title: _("Heroic Install Location");
|
title: _("Import Steam Games");
|
||||||
subtitle: _("Directory to use when importing games");
|
activatable-widget: lutris_import_steam_switch;
|
||||||
|
|
||||||
Button heroic_file_chooser_button {
|
Switch lutris_import_steam_switch {
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.ActionRow {
|
||||||
|
title: _("Import Flatpak Games");
|
||||||
|
activatable-widget: lutris_import_flatpak_switch;
|
||||||
|
|
||||||
|
Switch lutris_import_flatpak_switch {
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.ExpanderRow heroic_expander_row {
|
||||||
|
title: _("Heroic");
|
||||||
|
show-enable-switch: true;
|
||||||
|
|
||||||
|
Adw.ActionRow heroic_config_action_row {
|
||||||
|
title: _("Install Location");
|
||||||
|
|
||||||
|
Button heroic_config_file_chooser_button {
|
||||||
icon-name: "folder-symbolic";
|
icon-name: "folder-symbolic";
|
||||||
valign: center;
|
valign: center;
|
||||||
}
|
}
|
||||||
@@ -71,38 +171,162 @@ template PreferencesWindow : Adw.PreferencesWindow {
|
|||||||
|
|
||||||
Adw.ActionRow {
|
Adw.ActionRow {
|
||||||
title: _("Import Epic Games");
|
title: _("Import Epic Games");
|
||||||
|
activatable-widget: heroic_import_epic_switch;
|
||||||
|
|
||||||
Switch import_epic_games_switch {
|
Switch heroic_import_epic_switch {
|
||||||
valign: center;
|
valign: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Adw.ActionRow {
|
Adw.ActionRow {
|
||||||
title: _("Import GOG Games");
|
title: _("Import GOG Games");
|
||||||
|
activatable-widget: heroic_import_gog_switch;
|
||||||
|
|
||||||
Switch import_gog_games_switch {
|
Switch heroic_import_gog_switch {
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.ActionRow {
|
||||||
|
title: _("Import Amazon Games");
|
||||||
|
activatable-widget: heroic_import_amazon_switch;
|
||||||
|
|
||||||
|
Switch heroic_import_amazon_switch {
|
||||||
valign: center;
|
valign: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Adw.ActionRow {
|
Adw.ActionRow {
|
||||||
title: _("Import Sideloaded Games");
|
title: _("Import Sideloaded Games");
|
||||||
|
activatable-widget: heroic_import_sideload_switch;
|
||||||
|
|
||||||
Switch import_sideload_games_switch {
|
Switch heroic_import_sideload_switch {
|
||||||
valign: center;
|
valign: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Adw.PreferencesGroup bottles_group {
|
Adw.ExpanderRow bottles_expander_row {
|
||||||
title: "Bottles";
|
title: _("Bottles");
|
||||||
|
show-enable-switch: true;
|
||||||
|
|
||||||
|
Adw.ActionRow bottles_data_action_row {
|
||||||
|
title: _("Install Location");
|
||||||
|
|
||||||
|
Button bottles_data_file_chooser_button {
|
||||||
|
icon-name: "folder-symbolic";
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.ExpanderRow itch_expander_row {
|
||||||
|
title: _("itch");
|
||||||
|
show-enable-switch: true;
|
||||||
|
|
||||||
|
Adw.ActionRow itch_config_action_row {
|
||||||
|
title: _("Install Location");
|
||||||
|
|
||||||
|
Button itch_config_file_chooser_button {
|
||||||
|
icon-name: "folder-symbolic";
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.ExpanderRow legendary_expander_row {
|
||||||
|
title: _("Legendary");
|
||||||
|
show-enable-switch: true;
|
||||||
|
|
||||||
|
Adw.ActionRow legendary_config_action_row {
|
||||||
|
title: _("Install Location");
|
||||||
|
|
||||||
|
Button legendary_config_file_chooser_button {
|
||||||
|
icon-name: "folder-symbolic";
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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 {
|
||||||
|
title: _("Flatpak");
|
||||||
|
show-enable-switch: true;
|
||||||
|
|
||||||
|
Adw.ActionRow flatpak_data_action_row {
|
||||||
|
title: _("Install Location");
|
||||||
|
|
||||||
|
Button flatpak_data_file_chooser_button {
|
||||||
|
icon-name: "folder-symbolic";
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.ActionRow flatpak_import_launchers_row {
|
||||||
|
title: _("Import Game Launchers");
|
||||||
|
activatable-widget: flatpak_import_launchers_switch;
|
||||||
|
|
||||||
|
Switch flatpak_import_launchers_switch {
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.PreferencesPage sgdb_page {
|
||||||
|
name: "sgdb";
|
||||||
|
title: _("SteamGridDB");
|
||||||
|
icon-name: "image-x-generic-symbolic";
|
||||||
|
|
||||||
|
Adw.PreferencesGroup sgdb_key_group {
|
||||||
|
title: _("Authentication");
|
||||||
|
|
||||||
|
Adw.EntryRow sgdb_key_entry_row {
|
||||||
|
title: _("API Key");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.PreferencesGroup sgdb_behavior_group {
|
||||||
|
title: _("Behavior");
|
||||||
|
|
||||||
|
Adw.ActionRow sgdb_switch_row {
|
||||||
|
title: _("Use SteamGridDB");
|
||||||
|
subtitle: _("Download images when adding or importing games");
|
||||||
|
activatable-widget: sgdb_switch;
|
||||||
|
|
||||||
|
Switch sgdb_switch {
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Adw.ActionRow {
|
Adw.ActionRow {
|
||||||
title: _("Bottles Install Location");
|
title: _("Prefer Over Official Images");
|
||||||
subtitle: _("Directory to use when importing games");
|
activatable-widget: sgdb_prefer_switch;
|
||||||
|
|
||||||
Button bottles_file_chooser_button {
|
Switch sgdb_prefer_switch {
|
||||||
icon-name: "folder-symbolic";
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.ActionRow {
|
||||||
|
title: _("Prefer Animated Images");
|
||||||
|
activatable-widget: sgdb_animated_switch;
|
||||||
|
|
||||||
|
Switch sgdb_animated_switch {
|
||||||
valign: center;
|
valign: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,11 @@
|
|||||||
@define-color accent_color @purple_1;
|
@define-color accent_color @purple_1;
|
||||||
@define-color accent_bg_color @purple_4;
|
@define-color accent_bg_color @purple_4;
|
||||||
|
|
||||||
|
#details_view {
|
||||||
|
background-color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details_view_play_button {
|
||||||
|
color: rgba(0, 0, 0, .8);
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
@@ -1,2 +1,11 @@
|
|||||||
@define-color accent_color @purple_5;
|
@define-color accent_color @purple_5;
|
||||||
@define-color accent_bg_color @purple_3;
|
@define-color accent_bg_color @purple_3;
|
||||||
|
|
||||||
|
#details_view {
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details_view_play_button {
|
||||||
|
color: white;
|
||||||
|
background-color: rgba(0, 0, 0, .8);
|
||||||
|
}
|
||||||
@@ -9,12 +9,30 @@ Adw.StatusPage notice_no_results {
|
|||||||
valign: center;
|
valign: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Adw.StatusPage hidden_notice_no_results {
|
||||||
|
icon-name: "system-search-symbolic";
|
||||||
|
title: _("No Games Found");
|
||||||
|
description: _("Try a different search.");
|
||||||
|
vexpand: true;
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
|
||||||
Adw.StatusPage notice_empty {
|
Adw.StatusPage notice_empty {
|
||||||
icon-name: "applications-games-symbolic";
|
|
||||||
title: _("No Games");
|
title: _("No Games");
|
||||||
description: _("Use the + button to add games.");
|
description: _("Use the + button to add games.");
|
||||||
vexpand: true;
|
vexpand: true;
|
||||||
valign: center;
|
valign: center;
|
||||||
|
|
||||||
|
Button {
|
||||||
|
label: _("Import");
|
||||||
|
halign: center;
|
||||||
|
action-name: "app.import";
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"pill",
|
||||||
|
"suggested-action",
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Adw.StatusPage hidden_notice_empty {
|
Adw.StatusPage hidden_notice_empty {
|
||||||
@@ -25,7 +43,7 @@ Adw.StatusPage hidden_notice_empty {
|
|||||||
valign: center;
|
valign: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
template CartridgesWindow : Adw.ApplicationWindow {
|
template $CartridgesWindow : Adw.ApplicationWindow {
|
||||||
title: _("Cartridges");
|
title: _("Cartridges");
|
||||||
|
|
||||||
Adw.ToastOverlay toast_overlay {
|
Adw.ToastOverlay toast_overlay {
|
||||||
@@ -33,9 +51,11 @@ template CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
visible-child: library_view;
|
visible-child: library_view;
|
||||||
transition-type: over_left;
|
transition-type: over_left;
|
||||||
|
|
||||||
Overlay overview {
|
Overlay details_view {
|
||||||
|
name: "details_view";
|
||||||
|
|
||||||
[overlay]
|
[overlay]
|
||||||
Box overview_box {
|
Box details_view_box {
|
||||||
orientation: vertical;
|
orientation: vertical;
|
||||||
|
|
||||||
Adw.HeaderBar {
|
Adw.HeaderBar {
|
||||||
@@ -47,7 +67,7 @@ template CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[title]
|
[title]
|
||||||
Adw.WindowTitle overview_header_bar_title {
|
Adw.WindowTitle details_view_header_bar_title {
|
||||||
title: _("Game Details");
|
title: _("Game Details");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,7 +90,15 @@ template CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
|
|
||||||
Adw.Clamp {
|
Adw.Clamp {
|
||||||
maximum-size: 200;
|
maximum-size: 200;
|
||||||
Picture overview_cover {
|
|
||||||
|
Overlay {
|
||||||
|
[overlay]
|
||||||
|
Spinner details_view_spinner {
|
||||||
|
margin-start: 72;
|
||||||
|
margin-end: 72;
|
||||||
|
}
|
||||||
|
|
||||||
|
Picture details_view_cover {
|
||||||
halign: end;
|
halign: end;
|
||||||
valign: start;
|
valign: start;
|
||||||
width-request: 200;
|
width-request: 200;
|
||||||
@@ -81,6 +109,7 @@ template CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Box {
|
Box {
|
||||||
orientation: vertical;
|
orientation: vertical;
|
||||||
@@ -88,10 +117,11 @@ template CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
vexpand: true;
|
vexpand: true;
|
||||||
valign: center;
|
valign: center;
|
||||||
|
|
||||||
Label overview_title {
|
Label details_view_title {
|
||||||
label: _("Game Title");
|
label: _("Game Title");
|
||||||
hexpand: true;
|
hexpand: true;
|
||||||
halign: start;
|
halign: start;
|
||||||
|
max-width-chars: 24;
|
||||||
wrap: true;
|
wrap: true;
|
||||||
wrap-mode: word_char;
|
wrap-mode: word_char;
|
||||||
natural-wrap-mode: word;
|
natural-wrap-mode: word;
|
||||||
@@ -101,71 +131,96 @@ template CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
Label overview_developer {
|
Label details_view_developer {
|
||||||
margin-top: 3;
|
|
||||||
hexpand: true;
|
|
||||||
halign: start;
|
|
||||||
wrap: true;
|
|
||||||
wrap-mode: word_char;
|
|
||||||
natural-wrap-mode: word;
|
|
||||||
|
|
||||||
styles [
|
|
||||||
"heading"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
Label overview_added {
|
|
||||||
margin-top: 12;
|
|
||||||
hexpand: true;
|
|
||||||
halign: start;
|
|
||||||
wrap: true;
|
|
||||||
wrap-mode: word_char;
|
|
||||||
natural-wrap-mode: word;
|
|
||||||
|
|
||||||
styles [
|
|
||||||
"dim-label",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Label overview_last_played {
|
|
||||||
margin-top: 6;
|
margin-top: 6;
|
||||||
hexpand: true;
|
hexpand: true;
|
||||||
halign: start;
|
halign: start;
|
||||||
|
max-width-chars: 36;
|
||||||
wrap: true;
|
wrap: true;
|
||||||
wrap-mode: word_char;
|
wrap-mode: word_char;
|
||||||
natural-wrap-mode: word;
|
natural-wrap-mode: word;
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
"dim-label",
|
"heading",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Box {
|
||||||
|
orientation: horizontal;
|
||||||
|
margin-top: 15;
|
||||||
|
hexpand: true;
|
||||||
|
halign: start;
|
||||||
|
|
||||||
|
Label details_view_added {
|
||||||
|
wrap: true;
|
||||||
|
wrap-mode: word_char;
|
||||||
|
natural-wrap-mode: word;
|
||||||
|
}
|
||||||
|
|
||||||
|
Label details_view_last_played {
|
||||||
|
margin-start: 12;
|
||||||
|
wrap: true;
|
||||||
|
wrap-mode: word_char;
|
||||||
|
natural-wrap-mode: word;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Box {
|
Box {
|
||||||
hexpand: true;
|
hexpand: true;
|
||||||
vexpand: true;
|
vexpand: true;
|
||||||
valign: center;
|
valign: center;
|
||||||
|
|
||||||
Button overview_launch {
|
Button details_view_play_button {
|
||||||
|
name: "details_view_play_button";
|
||||||
action-name: "app.launch_game";
|
action-name: "app.launch_game";
|
||||||
label: _("Play");
|
label: _("Play");
|
||||||
halign: start;
|
halign: start;
|
||||||
margin-top: 24;
|
margin-top: 24;
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
"suggested-action",
|
"opaque",
|
||||||
"pill",
|
"pill",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
MenuButton overview_menu_button {
|
Box {
|
||||||
icon-name: "view-more-symbolic";
|
|
||||||
hexpand: true;
|
|
||||||
vexpand: true;
|
|
||||||
halign: start;
|
halign: start;
|
||||||
valign: center;
|
valign: center;
|
||||||
margin-top: 24;
|
margin-top: 24;
|
||||||
margin-start: 6;
|
margin-start: 9;
|
||||||
|
|
||||||
|
Button {
|
||||||
|
icon-name: "document-edit-symbolic";
|
||||||
|
action-name: "app.edit_game";
|
||||||
|
tooltip-text: _("Edit");
|
||||||
|
|
||||||
|
styles ["raised", "circular"]
|
||||||
|
}
|
||||||
|
|
||||||
|
Button details_view_hide_button {
|
||||||
|
action-name: "app.hide_game";
|
||||||
|
|
||||||
|
styles ["raised", "circular"]
|
||||||
|
}
|
||||||
|
|
||||||
|
Button {
|
||||||
|
icon-name: "user-trash-symbolic";
|
||||||
|
action-name: "app.remove_game";
|
||||||
|
tooltip-text: _("Remove");
|
||||||
|
|
||||||
|
styles ["raised", "circular"]
|
||||||
|
}
|
||||||
|
|
||||||
|
MenuButton {
|
||||||
|
icon-name: "system-search-symbolic";
|
||||||
|
menu-model: search;
|
||||||
|
tooltip-text: _("Search");
|
||||||
|
|
||||||
|
styles ["raised", "circular"]
|
||||||
|
}
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
"circular",
|
"toolbar",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -174,16 +229,8 @@ template CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
styles [
|
Picture details_view_blurred_cover {
|
||||||
"background",
|
|
||||||
]
|
|
||||||
|
|
||||||
Picture overview_blurred_cover {
|
|
||||||
opacity: 0.2;
|
|
||||||
can-shrink: true;
|
|
||||||
keep-aspect-ratio: false;
|
keep-aspect-ratio: false;
|
||||||
hexpand: true;
|
|
||||||
vexpand: true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -214,11 +261,15 @@ template CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SearchBar search_bar {
|
SearchBar search_bar {
|
||||||
|
search-mode-enabled: bind-property search_button.active bidirectional;
|
||||||
|
key-capture-widget: library_view;
|
||||||
|
|
||||||
Adw.Clamp {
|
Adw.Clamp {
|
||||||
maximum-size: 500;
|
maximum-size: 500;
|
||||||
tightening-threshold: 500;
|
tightening-threshold: 500;
|
||||||
|
|
||||||
SearchEntry search_entry {
|
SearchEntry search_entry {
|
||||||
|
placeholder-text: _("Search games");
|
||||||
hexpand: true;
|
hexpand: true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -235,10 +286,10 @@ template CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
valign: start;
|
valign: start;
|
||||||
column-spacing: 12;
|
column-spacing: 12;
|
||||||
row-spacing: 12;
|
row-spacing: 12;
|
||||||
margin-top: 16;
|
margin-top: 15;
|
||||||
margin-bottom: 16;
|
margin-bottom: 15;
|
||||||
margin-start: 16;
|
margin-start: 15;
|
||||||
margin-end: 16;
|
margin-end: 15;
|
||||||
selection-mode: none;
|
selection-mode: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -262,7 +313,7 @@ template CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[end]
|
[end]
|
||||||
MenuButton {
|
MenuButton hidden_primary_menu_button {
|
||||||
tooltip-text: _("Main Menu");
|
tooltip-text: _("Main Menu");
|
||||||
icon-name: "open-menu-symbolic";
|
icon-name: "open-menu-symbolic";
|
||||||
menu-model: primary_menu;
|
menu-model: primary_menu;
|
||||||
@@ -277,11 +328,15 @@ template CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SearchBar hidden_search_bar {
|
SearchBar hidden_search_bar {
|
||||||
|
search-mode-enabled: bind-property hidden_search_button.active bidirectional;
|
||||||
|
key-capture-widget: hidden_library_view;
|
||||||
|
|
||||||
Adw.Clamp {
|
Adw.Clamp {
|
||||||
maximum-size: 500;
|
maximum-size: 500;
|
||||||
tightening-threshold: 500;
|
tightening-threshold: 500;
|
||||||
|
|
||||||
SearchEntry hidden_search_entry {
|
SearchEntry hidden_search_entry {
|
||||||
|
placeholder-text: _("Search hidden games");
|
||||||
hexpand: true;
|
hexpand: true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -298,10 +353,10 @@ template CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
valign: start;
|
valign: start;
|
||||||
column-spacing: 12;
|
column-spacing: 12;
|
||||||
row-spacing: 12;
|
row-spacing: 12;
|
||||||
margin-top: 16;
|
margin-top: 15;
|
||||||
margin-bottom: 16;
|
margin-bottom: 15;
|
||||||
margin-start: 16;
|
margin-start: 15;
|
||||||
margin-end: 16;
|
margin-end: 15;
|
||||||
selection-mode: none;
|
selection-mode: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -383,24 +438,42 @@ menu add_games {
|
|||||||
action: "app.add_game";
|
action: "app.add_game";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
section {
|
section {
|
||||||
submenu {
|
|
||||||
label: _("Import from");
|
|
||||||
item {
|
item {
|
||||||
label: _("Steam");
|
label: _("Import");
|
||||||
action: "app.steam_import";
|
action: "app.import";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
item {
|
}
|
||||||
label: _("Heroic");
|
|
||||||
action: "app.heroic_import";
|
menu search {
|
||||||
}
|
section {
|
||||||
|
label: "Search on…";
|
||||||
item {
|
|
||||||
label: _("Bottles");
|
item {
|
||||||
action: "app.bottles_import";
|
label: "IGDB";
|
||||||
hidden-when: "action-disabled";
|
action: "app.igdb_search";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
item {
|
||||||
|
label: "SteamGridDB";
|
||||||
|
action: "app.sgdb_search";
|
||||||
|
}
|
||||||
|
|
||||||
|
item {
|
||||||
|
label: "ProtonDB";
|
||||||
|
action: "app.protondb_search";
|
||||||
|
}
|
||||||
|
|
||||||
|
item {
|
||||||
|
label: "Lutris";
|
||||||
|
action: "app.lutris_search";
|
||||||
|
}
|
||||||
|
|
||||||
|
item {
|
||||||
|
label: "HowLongToBeat";
|
||||||
|
action: "app.hltb_search";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=Cartridges
|
Name=Cartridges
|
||||||
GenericName=Game Launcher
|
GenericName=Game Launcher
|
||||||
Comment=Launch your games
|
Comment=Launch all your games
|
||||||
Exec=cartridges
|
Exec=cartridges
|
||||||
Icon=hu.kramo.Cartridges
|
Icon=@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;flatpak;legendary;retroarch;
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<schemalist gettext-domain="cartridges">
|
|
||||||
<schema id="hu.kramo.Cartridges" path="/hu/kramo/Cartridges/">
|
|
||||||
<key name="exit-after-launch" type="b">
|
|
||||||
<default>false</default>
|
|
||||||
</key>
|
|
||||||
<key name="heroic-import-epic" type="b">
|
|
||||||
<default>true</default>
|
|
||||||
</key>
|
|
||||||
<key name="heroic-import-gog" type="b">
|
|
||||||
<default>true</default>
|
|
||||||
</key>
|
|
||||||
<key name="heroic-import-sideload" type="b">
|
|
||||||
<default>true</default>
|
|
||||||
</key>
|
|
||||||
<key name="steam-location" type="s">
|
|
||||||
<default>"~/.steam/"</default>
|
|
||||||
</key>
|
|
||||||
<key name="steam-extra-dirs" type="as">
|
|
||||||
<default>[]</default>
|
|
||||||
</key>
|
|
||||||
<key name="heroic-location" type="s">
|
|
||||||
<default>"~/.var/app/com.heroicgameslauncher.hgl/config/heroic/"</default>
|
|
||||||
</key>
|
|
||||||
<key name="bottles-location" type="s">
|
|
||||||
<default>"~/.var/app/com.usebottles.bottles/data/bottles/"</default>
|
|
||||||
</key>
|
|
||||||
</schema>
|
|
||||||
<schema id="hu.kramo.Cartridge.State" path="/hu/kramo/Cartridges/State/">
|
|
||||||
<key name="width" type="i">
|
|
||||||
<default>1110</default>
|
|
||||||
</key>
|
|
||||||
<key name="height" type="i">
|
|
||||||
<default>820</default>
|
|
||||||
</key>
|
|
||||||
<key name="is-maximized" type="b">
|
|
||||||
<default>false</default>
|
|
||||||
</key>
|
|
||||||
<key name="sort-mode" type="s">
|
|
||||||
<choices>
|
|
||||||
<choice value="a-z"/>
|
|
||||||
<choice value="z-a"/>
|
|
||||||
<choice value="newest"/>
|
|
||||||
<choice value="oldest"/>
|
|
||||||
<choice value="last_played"/>
|
|
||||||
</choices>
|
|
||||||
<default>"a-z"</default>
|
|
||||||
</key>
|
|
||||||
</schema>
|
|
||||||
</schemalist>
|
|
||||||
125
data/hu.kramo.Cartridges.gschema.xml.in
Normal file
@@ -0,0 +1,125 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<schemalist gettext-domain="cartridges">
|
||||||
|
<schema id="@APP_ID@" path="@PREFIX@/">
|
||||||
|
<key name="exit-after-launch" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
</key>
|
||||||
|
<key name="cover-launches-game" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
</key>
|
||||||
|
<key name="high-quality-images" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
</key>
|
||||||
|
<key name="remove-missing" type="b">
|
||||||
|
<default>true</default>
|
||||||
|
</key>
|
||||||
|
<key name="steam" type="b">
|
||||||
|
<default>true</default>
|
||||||
|
</key>
|
||||||
|
<key name="steam-location" type="s">
|
||||||
|
<default>"~/.steam/steam"</default>
|
||||||
|
</key>
|
||||||
|
<key name="lutris" type="b">
|
||||||
|
<default>true</default>
|
||||||
|
</key>
|
||||||
|
<key name="lutris-location" type="s">
|
||||||
|
<default>"~/.var/app/net.lutris.Lutris/data/lutris/"</default>
|
||||||
|
</key>
|
||||||
|
<key name="lutris-cache-location" type="s">
|
||||||
|
<default>"~/.var/app/net.lutris.Lutris/cache/lutris"</default>
|
||||||
|
</key>
|
||||||
|
<key name="lutris-import-steam" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
</key>
|
||||||
|
<key name="lutris-import-flatpak" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
</key>
|
||||||
|
<key name="heroic" type="b">
|
||||||
|
<default>true</default>
|
||||||
|
</key>
|
||||||
|
<key name="heroic-location" type="s">
|
||||||
|
<default>"~/.config/heroic/"</default>
|
||||||
|
</key>
|
||||||
|
<key name="heroic-import-epic" type="b">
|
||||||
|
<default>true</default>
|
||||||
|
</key>
|
||||||
|
<key name="heroic-import-gog" type="b">
|
||||||
|
<default>true</default>
|
||||||
|
</key>
|
||||||
|
<key name="heroic-import-amazon" type="b">
|
||||||
|
<default>true</default>
|
||||||
|
</key>
|
||||||
|
<key name="heroic-import-sideload" type="b">
|
||||||
|
<default>true</default>
|
||||||
|
</key>
|
||||||
|
<key name="bottles" type="b">
|
||||||
|
<default>true</default>
|
||||||
|
</key>
|
||||||
|
<key name="bottles-location" type="s">
|
||||||
|
<default>"~/.var/app/com.usebottles.bottles/data/bottles/"</default>
|
||||||
|
</key>
|
||||||
|
<key name="itch" type="b">
|
||||||
|
<default>true</default>
|
||||||
|
</key>
|
||||||
|
<key name="itch-location" type="s">
|
||||||
|
<default>"~/.var/app/io.itch.itch/config/itch/"</default>
|
||||||
|
</key>
|
||||||
|
<key name="legendary" type="b">
|
||||||
|
<default>true</default>
|
||||||
|
</key>
|
||||||
|
<key name="legendary-location" type="s">
|
||||||
|
<default>"~/.config/legendary/"</default>
|
||||||
|
</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">
|
||||||
|
<default>true</default>
|
||||||
|
</key>
|
||||||
|
<key name="flatpak-location" type="s">
|
||||||
|
<default>"/var/lib/flatpak/"</default>
|
||||||
|
</key>
|
||||||
|
<key name="flatpak-import-launchers" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
</key>
|
||||||
|
<key name="sgdb-key" type="s">
|
||||||
|
<default>""</default>
|
||||||
|
</key>
|
||||||
|
<key name="sgdb" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
</key>
|
||||||
|
<key name="sgdb-prefer" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
</key>
|
||||||
|
<key name="sgdb-animated" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
</key>
|
||||||
|
</schema>
|
||||||
|
<schema id="@APP_ID@.State" path="@PREFIX@/State/">
|
||||||
|
<key name="width" type="i">
|
||||||
|
<default>1110</default>
|
||||||
|
</key>
|
||||||
|
<key name="height" type="i">
|
||||||
|
<default>820</default>
|
||||||
|
</key>
|
||||||
|
<key name="is-maximized" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
</key>
|
||||||
|
<key name="sort-mode" type="s">
|
||||||
|
<choices>
|
||||||
|
<choice value="a-z" />
|
||||||
|
<choice value="z-a" />
|
||||||
|
<choice value="newest" />
|
||||||
|
<choice value="oldest" />
|
||||||
|
<choice value="last_played" />
|
||||||
|
</choices>
|
||||||
|
<default>"a-z"</default>
|
||||||
|
</key>
|
||||||
|
<key name="steam-limiter-tokens-history" type="s">
|
||||||
|
<default>"[]"</default>
|
||||||
|
</key>
|
||||||
|
</schema>
|
||||||
|
</schemalist>
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<component type="desktop-application">
|
<component type="desktop-application">
|
||||||
<id>hu.kramo.Cartridges.desktop</id>
|
<id>@APP_ID@</id>
|
||||||
<metadata_license>CC0-1.0</metadata_license>
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
<project_license>GPL-3.0-or-later</project_license>
|
<project_license>GPL-3.0-or-later</project_license>
|
||||||
<name>Cartridges</name>
|
<name>Cartridges</name>
|
||||||
<summary>Launch all your games</summary>
|
<summary>Launch all your games</summary>
|
||||||
<description>
|
<description>
|
||||||
<p>Cartridges is a simple game launcher. It has support for importing your games from Steam, Heroic and Bottles with organizational features such as hiding and sorting by date added or last played.</p>
|
<p>Cartridges is a simple game launcher for all of your games. It has support for importing games from Steam, Lutris, Heroic and more with no login necessary. You can sort and hide games or download cover art from SteamGridDB.</p>
|
||||||
</description>
|
</description>
|
||||||
<url type="homepage">https://github.com/kra-mo/cartridges</url>
|
<url type="homepage">https://github.com/kra-mo/cartridges</url>
|
||||||
<url type="bugtracker">https://github.com/kra-mo/cartridges/issues</url>
|
<url type="bugtracker">https://github.com/kra-mo/cartridges/issues</url>
|
||||||
@@ -15,7 +15,15 @@
|
|||||||
<url type="vcs-browser">https://github.com/kra-mo/cartridges</url>
|
<url type="vcs-browser">https://github.com/kra-mo/cartridges</url>
|
||||||
<url type="contribute">https://github.com/kra-mo/cartridges/blob/main/CONTRIBUTING.md</url>
|
<url type="contribute">https://github.com/kra-mo/cartridges/blob/main/CONTRIBUTING.md</url>
|
||||||
<developer_name translatable="no">kramo</developer_name>
|
<developer_name translatable="no">kramo</developer_name>
|
||||||
<launchable type="desktop-id">hu.kramo.Cartridges.desktop</launchable>
|
<launchable type="desktop-id">@APP_ID@.desktop</launchable>
|
||||||
|
<supports>
|
||||||
|
<control>pointing</control>
|
||||||
|
<control>keyboard</control>
|
||||||
|
<control>touch</control>
|
||||||
|
</supports>
|
||||||
|
<recommends>
|
||||||
|
<display_length compare="gt">545</display_length>
|
||||||
|
</recommends>
|
||||||
<screenshots>
|
<screenshots>
|
||||||
<screenshot type="default">
|
<screenshot type="default">
|
||||||
<image>https://raw.githubusercontent.com/kra-mo/cartridges/main/data/screenshots/1.png</image>
|
<image>https://raw.githubusercontent.com/kra-mo/cartridges/main/data/screenshots/1.png</image>
|
||||||
@@ -36,8 +44,92 @@
|
|||||||
</screenshots>
|
</screenshots>
|
||||||
<content_rating type="oars-1.1" />
|
<content_rating type="oars-1.1" />
|
||||||
<releases>
|
<releases>
|
||||||
|
<release version="2.2" date="2023-08-17">
|
||||||
|
<description translatable="no">
|
||||||
|
<ul>
|
||||||
|
<li>New import source: RetroArch</li>
|
||||||
|
<li>Added the option to automatically remove uninstalled games on import</li>
|
||||||
|
<li>Added the ability to undo an import</li>
|
||||||
|
<li>Various UX improvements</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>
|
||||||
|
</description>
|
||||||
|
</release>
|
||||||
|
<release version="2.0" date="2023-07-05">
|
||||||
|
<description translatable="no">
|
||||||
|
<p>After months of work, Cartridges 2.0 is here:</p>
|
||||||
|
<ul>
|
||||||
|
<li>New import source: Legendary</li>
|
||||||
|
<li>New import source: Flatpak</li>
|
||||||
|
<li>Importing games should be much quicker</li>
|
||||||
|
<li>Error handling has been improved</li>
|
||||||
|
<li>Various UX improvements</li>
|
||||||
|
<li>Translations since 1.5</li>
|
||||||
|
</ul>
|
||||||
|
<p>Thanks to the new import backend, adding new sources is much easier and a lot more are coming soon!</p>
|
||||||
|
</description>
|
||||||
|
</release>
|
||||||
|
<release version="1.5" date="2023-05-23">
|
||||||
|
<description translatable="no">
|
||||||
|
<ul>
|
||||||
|
<li>Cartridges is now part of GNOME Circle!</li>
|
||||||
|
<li>Extra Steam libraries are now detected automatically</li>
|
||||||
|
<li>Executables are now passed directly to the shell</li>
|
||||||
|
<li>Various UX improvements</li>
|
||||||
|
<li>Translations since 1.4</li>
|
||||||
|
</ul>
|
||||||
|
</description>
|
||||||
|
</release>
|
||||||
|
<release version="1.4" date="2023-04-16">
|
||||||
|
<description translatable="no">
|
||||||
|
<ul>
|
||||||
|
<li>Support for animated covers</li>
|
||||||
|
<li>Redesigned details view</li>
|
||||||
|
<li>Easily search for games on various databases</li>
|
||||||
|
<li>Translations since 1.3</li>
|
||||||
|
</ul>
|
||||||
|
</description>
|
||||||
|
</release>
|
||||||
|
<release version="1.3" date="2023-04-06">
|
||||||
|
<description translatable="no">
|
||||||
|
<ul>
|
||||||
|
<li>Support for importing game covers from SteamGridDB!</li>
|
||||||
|
<li>New import source: Lutris</li>
|
||||||
|
<li>New import source: itch</li>
|
||||||
|
<li>Better feedback for hiding and launching games</li>
|
||||||
|
<li>UX improvements</li>
|
||||||
|
<li>Translations since 1.2</li>
|
||||||
|
</ul>
|
||||||
|
</description>
|
||||||
|
</release>
|
||||||
|
<release version="1.2" date="2023-03-30">
|
||||||
|
<description translatable="no">
|
||||||
|
<ul>
|
||||||
|
<li>Refined the user experience for importing games</li>
|
||||||
|
<li>Added option to remove all games</li>
|
||||||
|
<li>Translations since 1.1</li>
|
||||||
|
</ul>
|
||||||
|
</description>
|
||||||
|
</release>
|
||||||
|
<release version="1.1" date="2023-03-26">
|
||||||
|
<description translatable="no">
|
||||||
|
<ul>
|
||||||
|
<li>Added option to launch games by clicking the cover image</li>
|
||||||
|
<li>Added option to save cover art losslessly</li>
|
||||||
|
<li>Translations since 1.0</li>
|
||||||
|
</ul>
|
||||||
|
</description>
|
||||||
|
</release>
|
||||||
<release version="1.0" date="2023-03-25">
|
<release version="1.0" date="2023-03-25">
|
||||||
<description>
|
<description translatable="no">
|
||||||
<p>First stable release</p>
|
<p>First stable release</p>
|
||||||
</description>
|
</description>
|
||||||
</release>
|
</release>
|
||||||
|
|||||||
@@ -0,0 +1,85 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg height="128px" viewBox="0 0 128 128" width="128px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
|
<linearGradient id="a" gradientUnits="userSpaceOnUse" x1="9" x2="119" y1="115" y2="115">
|
||||||
|
<stop offset="0" stop-color="#613583"/>
|
||||||
|
<stop offset="0.05" stop-color="#9141ac"/>
|
||||||
|
<stop offset="0.22" stop-color="#613583"/>
|
||||||
|
<stop offset="0.78" stop-color="#613583"/>
|
||||||
|
<stop offset="0.95" stop-color="#9141ac"/>
|
||||||
|
<stop offset="1" stop-color="#613583"/>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient id="b" gradientUnits="userSpaceOnUse" x1="45" x2="45" y1="50" y2="82">
|
||||||
|
<stop offset="0" stop-color="#bdd0d5"/>
|
||||||
|
<stop offset="1" stop-color="#305749"/>
|
||||||
|
</linearGradient>
|
||||||
|
<clipPath id="c">
|
||||||
|
<rect height="128" width="128"/>
|
||||||
|
</clipPath>
|
||||||
|
<clipPath id="d">
|
||||||
|
<rect height="128" width="128"/>
|
||||||
|
</clipPath>
|
||||||
|
<filter id="e" height="100%" width="100%" x="0%" y="0%">
|
||||||
|
<feColorMatrix in="SourceGraphic" type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/>
|
||||||
|
</filter>
|
||||||
|
<mask id="f">
|
||||||
|
<g clip-path="url(#d)" filter="url(#e)">
|
||||||
|
<g clip-path="url(#c)">
|
||||||
|
<path d="m 111 29 h -94 c -4.417969 0 -8 3.582031 -8 8 v 70 c 0 4.417969 3.582031 8 8 8 h 94 c 4.417969 0 8 -3.582031 8 -8 v -70 c 0 -4.417969 -3.582031 -8 -8 -8 z m 0 0" fill="url(#a)"/>
|
||||||
|
<path d="m 111 29 h -94 c -4.417969 0 -8 3.679688 -8 8.222656 v 57.554688 c 0 4.539062 3.582031 8.222656 8 8.222656 h 94 c 4.417969 0 8 -3.679688 8 -8.222656 v -57.554688 c 0 -4.539062 -3.582031 -8.222656 -8 -8.222656 z m 0 0" fill="#c061cb"/>
|
||||||
|
<path d="m 84 42 h -40 c -2.210938 0 -4 1.789062 -4 4 v 40 c 0 2.210938 1.789062 4 4 4 h 40 c 2.210938 0 4 -1.789062 4 -4 v -40 c 0 -2.210938 -1.789062 -4 -4 -4 z m 0 0"/>
|
||||||
|
<path d="m 81 50 h -34 c -1.105469 0 -2 0.894531 -2 2 v 28 c 0 1.105469 0.894531 2 2 2 h 34 c 1.105469 0 2 -0.894531 2 -2 v -28 c 0 -1.105469 -0.894531 -2 -2 -2 z m 0 0" fill="url(#b)"/>
|
||||||
|
<path d="m 102 61 v -1 c 0 -2.761719 -2.238281 -5 -5 -5 s -5 2.238281 -5 5 v 1 c 0 2.761719 2.238281 5 5 5 s 5 -2.238281 5 -5 z m 12 -6 v -1 c 0 -2.761719 -2.238281 -5 -5 -5 s -5 2.238281 -5 5 v 1 c 0 2.761719 2.238281 5 5 5 s 5 -2.238281 5 -5 z m 0 0"/>
|
||||||
|
<path d="m 97 64 c 2.761719 0 5 -2.015625 5 -4.5 s -2.238281 -4.5 -5 -4.5 s -5 2.015625 -5 4.5 s 2.238281 4.5 5 4.5 z m 12 -6 c 2.761719 0 5 -2.015625 5 -4.5 s -2.238281 -4.5 -5 -4.5 s -5 2.015625 -5 4.5 s 2.238281 4.5 5 4.5 z m 0 0" fill="#3d3846"/>
|
||||||
|
<path d="m 29 56.5 c 0 -1.933594 -1.566406 -3.5 -3.5 -3.5 s -3.5 1.566406 -3.5 3.5 v 13 c 0 1.933594 1.566406 3.5 3.5 3.5 s 3.5 -1.566406 3.5 -3.5 z m 0 0"/>
|
||||||
|
<path d="m 33 58 h -15 c -1.65625 0 -3 1.34375 -3 3 v 2 c 0 1.65625 1.34375 3 3 3 h 15 c 1.65625 0 3 -1.34375 3 -3 v -2 c 0 -1.65625 -1.34375 -3 -3 -3 z m 0 0"/>
|
||||||
|
<path d="m 29 54.5 c 0 -1.933594 -1.566406 -3.5 -3.5 -3.5 s -3.5 1.566406 -3.5 3.5 v 13 c 0 1.933594 1.566406 3.5 3.5 3.5 s 3.5 -1.566406 3.5 -3.5 z m 0 0" fill="#3d3846"/>
|
||||||
|
<path d="m 33 58 h -15 c -1.65625 0 -3 1.34375 -3 3 s 1.34375 3 3 3 h 15 c 1.65625 0 3 -1.34375 3 -3 s -1.34375 -3 -3 -3 z m 0 0" fill="#3d3846"/>
|
||||||
|
<path d="m 71 109 c 0 -1.105469 0.894531 -2 2 -2 s 2 0.894531 2 2 s -0.894531 2 -2 2 s -2 -0.894531 -2 -2 z m 0 0"/>
|
||||||
|
<path d="m 71.0625 108.5 c 0.226562 0.882812 1.023438 1.503906 1.9375 1.503906 s 1.710938 -0.621094 1.9375 -1.503906 c 0.195312 0.757812 -0.066406 1.558594 -0.671875 2.050781 c -0.605469 0.492188 -1.445313 0.585938 -2.144531 0.242188 c -0.855469 -0.414063 -1.296875 -1.375 -1.058594 -2.292969 z m 0 0" fill="#9141ac"/>
|
||||||
|
<path d="m 66 107 h -10 c -1.105469 0 -2 0.894531 -2 2 s 0.894531 2 2 2 h 10 c 1.105469 0 2 -0.894531 2 -2 s -0.894531 -2 -2 -2 z m 0 0"/>
|
||||||
|
<path d="m 54.0625 108.5 c -0.152344 0.597656 -0.023438 1.234375 0.355469 1.726562 c 0.378906 0.488282 0.964843 0.773438 1.582031 0.773438 h 10 c 0.617188 0 1.203125 -0.285156 1.582031 -0.773438 c 0.378907 -0.492187 0.511719 -1.128906 0.355469 -1.726562 c -0.226562 0.882812 -1.023438 1.5 -1.9375 1.5 h -10 c -0.914062 0 -1.710938 -0.617188 -1.9375 -1.5 z m 0 0" fill="#9141ac"/>
|
||||||
|
<path d="m 110 74 h -14 c -0.550781 0 -1 0.449219 -1 1 s 0.449219 1 1 1 h 14 c 0.550781 0 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 z m 0 5 h -14 c -0.550781 0 -1 0.449219 -1 1 s 0.449219 1 1 1 h 14 c 0.550781 0 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 z m 0 5 h -14 c -0.550781 0 -1 0.449219 -1 1 s 0.449219 1 1 1 h 14 c 0.550781 0 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 z m 0 0" fill="#613583"/>
|
||||||
|
<path d="m 21.5 79 h -3 c -1.378906 0 -2.5 1.121094 -2.5 2.5 s 1.121094 2.5 2.5 2.5 h 3 c 1.378906 0 2.5 -1.121094 2.5 -2.5 s -1.121094 -2.5 -2.5 -2.5 z m 11 0 h -3 c -1.378906 0 -2.5 1.121094 -2.5 2.5 s 1.121094 2.5 2.5 2.5 h 3 c 1.378906 0 2.5 -1.121094 2.5 -2.5 s -1.121094 -2.5 -2.5 -2.5 z m 0 0"/>
|
||||||
|
<path d="m 22 79 h -4 c -1.105469 0 -2 0.894531 -2 2 s 0.894531 2 2 2 h 4 c 1.105469 0 2 -0.894531 2 -2 s -0.894531 -2 -2 -2 z m 11 0 h -4 c -1.105469 0 -2 0.894531 -2 2 s 0.894531 2 2 2 h 4 c 1.105469 0 2 -0.894531 2 -2 s -0.894531 -2 -2 -2 z m 0 0" fill="#3d3846"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</mask>
|
||||||
|
<mask id="g">
|
||||||
|
<g filter="url(#e)">
|
||||||
|
<rect fill-opacity="0.8" height="128" width="128"/>
|
||||||
|
</g>
|
||||||
|
</mask>
|
||||||
|
<linearGradient id="h" gradientTransform="matrix(0 0.37 -0.98462 0 295.38501 -30.360001)" gradientUnits="userSpaceOnUse" x1="300" x2="428" y1="235" y2="235">
|
||||||
|
<stop offset="0" stop-color="#f9f06b"/>
|
||||||
|
<stop offset="1" stop-color="#f5c211"/>
|
||||||
|
</linearGradient>
|
||||||
|
<clipPath id="i">
|
||||||
|
<rect height="128" width="128"/>
|
||||||
|
</clipPath>
|
||||||
|
<clipPath id="j">
|
||||||
|
<rect height="128" width="128"/>
|
||||||
|
</clipPath>
|
||||||
|
<path d="m 111 29 h -94 c -4.417969 0 -8 3.582031 -8 8 v 70 c 0 4.417969 3.582031 8 8 8 h 94 c 4.417969 0 8 -3.582031 8 -8 v -70 c 0 -4.417969 -3.582031 -8 -8 -8 z m 0 0" fill="url(#a)"/>
|
||||||
|
<path d="m 111 29 h -94 c -4.417969 0 -8 3.679688 -8 8.222656 v 57.554688 c 0 4.539062 3.582031 8.222656 8 8.222656 h 94 c 4.417969 0 8 -3.679688 8 -8.222656 v -57.554688 c 0 -4.539062 -3.582031 -8.222656 -8 -8.222656 z m 0 0" fill="#c061cb"/>
|
||||||
|
<path d="m 84 42 h -40 c -2.210938 0 -4 1.789062 -4 4 v 40 c 0 2.210938 1.789062 4 4 4 h 40 c 2.210938 0 4 -1.789062 4 -4 v -40 c 0 -2.210938 -1.789062 -4 -4 -4 z m 0 0"/>
|
||||||
|
<path d="m 81 50 h -34 c -1.105469 0 -2 0.894531 -2 2 v 28 c 0 1.105469 0.894531 2 2 2 h 34 c 1.105469 0 2 -0.894531 2 -2 v -28 c 0 -1.105469 -0.894531 -2 -2 -2 z m 0 0" fill="url(#b)"/>
|
||||||
|
<path d="m 102 61 v -1 c 0 -2.761719 -2.238281 -5 -5 -5 s -5 2.238281 -5 5 v 1 c 0 2.761719 2.238281 5 5 5 s 5 -2.238281 5 -5 z m 12 -6 v -1 c 0 -2.761719 -2.238281 -5 -5 -5 s -5 2.238281 -5 5 v 1 c 0 2.761719 2.238281 5 5 5 s 5 -2.238281 5 -5 z m 0 0"/>
|
||||||
|
<path d="m 97 64 c 2.761719 0 5 -2.015625 5 -4.5 s -2.238281 -4.5 -5 -4.5 s -5 2.015625 -5 4.5 s 2.238281 4.5 5 4.5 z m 12 -6 c 2.761719 0 5 -2.015625 5 -4.5 s -2.238281 -4.5 -5 -4.5 s -5 2.015625 -5 4.5 s 2.238281 4.5 5 4.5 z m 0 0" fill="#3d3846"/>
|
||||||
|
<path d="m 29 56.5 c 0 -1.933594 -1.566406 -3.5 -3.5 -3.5 s -3.5 1.566406 -3.5 3.5 v 13 c 0 1.933594 1.566406 3.5 3.5 3.5 s 3.5 -1.566406 3.5 -3.5 z m 0 0"/>
|
||||||
|
<path d="m 33 58 h -15 c -1.65625 0 -3 1.34375 -3 3 v 2 c 0 1.65625 1.34375 3 3 3 h 15 c 1.65625 0 3 -1.34375 3 -3 v -2 c 0 -1.65625 -1.34375 -3 -3 -3 z m 0 0"/>
|
||||||
|
<path d="m 29 54.5 c 0 -1.933594 -1.566406 -3.5 -3.5 -3.5 s -3.5 1.566406 -3.5 3.5 v 13 c 0 1.933594 1.566406 3.5 3.5 3.5 s 3.5 -1.566406 3.5 -3.5 z m 0 0" fill="#3d3846"/>
|
||||||
|
<path d="m 33 58 h -15 c -1.65625 0 -3 1.34375 -3 3 s 1.34375 3 3 3 h 15 c 1.65625 0 3 -1.34375 3 -3 s -1.34375 -3 -3 -3 z m 0 0" fill="#3d3846"/>
|
||||||
|
<path d="m 71 109 c 0 -1.105469 0.894531 -2 2 -2 s 2 0.894531 2 2 s -0.894531 2 -2 2 s -2 -0.894531 -2 -2 z m 0 0"/>
|
||||||
|
<path d="m 71.0625 108.5 c 0.226562 0.882812 1.023438 1.503906 1.9375 1.503906 s 1.710938 -0.621094 1.9375 -1.503906 c 0.195312 0.757812 -0.066406 1.558594 -0.671875 2.050781 c -0.605469 0.492188 -1.445313 0.585938 -2.144531 0.242188 c -0.855469 -0.414063 -1.296875 -1.375 -1.058594 -2.292969 z m 0 0" fill="#9141ac"/>
|
||||||
|
<path d="m 66 107 h -10 c -1.105469 0 -2 0.894531 -2 2 s 0.894531 2 2 2 h 10 c 1.105469 0 2 -0.894531 2 -2 s -0.894531 -2 -2 -2 z m 0 0"/>
|
||||||
|
<path d="m 54.0625 108.5 c -0.152344 0.597656 -0.023438 1.234375 0.355469 1.726562 c 0.378906 0.488282 0.964843 0.773438 1.582031 0.773438 h 10 c 0.617188 0 1.203125 -0.285156 1.582031 -0.773438 c 0.378907 -0.492187 0.511719 -1.128906 0.355469 -1.726562 c -0.226562 0.882812 -1.023438 1.5 -1.9375 1.5 h -10 c -0.914062 0 -1.710938 -0.617188 -1.9375 -1.5 z m 0 0" fill="#9141ac"/>
|
||||||
|
<path d="m 110 74 h -14 c -0.550781 0 -1 0.449219 -1 1 s 0.449219 1 1 1 h 14 c 0.550781 0 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 z m 0 5 h -14 c -0.550781 0 -1 0.449219 -1 1 s 0.449219 1 1 1 h 14 c 0.550781 0 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 z m 0 5 h -14 c -0.550781 0 -1 0.449219 -1 1 s 0.449219 1 1 1 h 14 c 0.550781 0 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 z m 0 0" fill="#613583"/>
|
||||||
|
<path d="m 21.5 79 h -3 c -1.378906 0 -2.5 1.121094 -2.5 2.5 s 1.121094 2.5 2.5 2.5 h 3 c 1.378906 0 2.5 -1.121094 2.5 -2.5 s -1.121094 -2.5 -2.5 -2.5 z m 11 0 h -3 c -1.378906 0 -2.5 1.121094 -2.5 2.5 s 1.121094 2.5 2.5 2.5 h 3 c 1.378906 0 2.5 -1.121094 2.5 -2.5 s -1.121094 -2.5 -2.5 -2.5 z m 0 0"/>
|
||||||
|
<path d="m 22 79 h -4 c -1.105469 0 -2 0.894531 -2 2 s 0.894531 2 2 2 h 4 c 1.105469 0 2 -0.894531 2 -2 s -0.894531 -2 -2 -2 z m 11 0 h -4 c -1.105469 0 -2 0.894531 -2 2 s 0.894531 2 2 2 h 4 c 1.105469 0 2 -0.894531 2 -2 s -0.894531 -2 -2 -2 z m 0 0" fill="#3d3846"/>
|
||||||
|
<g clip-path="url(#j)" mask="url(#f)">
|
||||||
|
<g clip-path="url(#i)" mask="url(#g)">
|
||||||
|
<path d="m 128 80.640625 v 47.359375 h -128 v -47.359375 z m 0 0" fill="url(#h)"/>
|
||||||
|
<path d="m 13.308594 80.640625 l 47.355468 47.359375 h 21.214844 l -47.359375 -47.359375 z m 42.421875 0 l 47.363281 47.359375 h 21.214844 l -47.363282 -47.359375 z m 42.429687 0 l 29.839844 29.839844 v -21.210938 l -8.628906 -8.628906 z m -98.160156 7.90625 v 21.214844 l 18.238281 18.238281 h 21.214844 z m 0 0"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 10 KiB |
@@ -0,0 +1,3 @@
|
|||||||
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M3 3C1.89543 3 1 3.89543 1 5V11C1 12.1046 1.89543 13 3 13H13C14.1046 13 15 12.1046 15 11V5C15 3.89543 14.1046 3 13 3H3ZM6 5C5.44772 5 5 5.44772 5 6V10C5 10.5523 5.44772 11 6 11H10C10.5523 11 11 10.5523 11 10V6C11 5.44772 10.5523 5 10 5H6ZM12 8C12 7.44772 12.4477 7 13 7C13.5523 7 14 7.44772 14 8C14 8.55228 13.5523 9 13 9C12.4477 9 12 8.55228 12 8ZM3 7C2.44772 7 2 7.44772 2 8C2 8.55228 2.44772 9 3 9C3.55228 9 4 8.55228 4 8C4 7.44772 3.55228 7 3 7Z" fill="black"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 618 B |
@@ -1,13 +1,11 @@
|
|||||||
application_id = 'hu.kramo.Cartridges'
|
|
||||||
|
|
||||||
scalable_dir = join_paths('hicolor', 'scalable', 'apps')
|
scalable_dir = join_paths('hicolor', 'scalable', 'apps')
|
||||||
install_data(
|
install_data(
|
||||||
join_paths(scalable_dir, ('@0@.svg').format(application_id)),
|
join_paths(scalable_dir, ('@0@.svg').format(app_id)),
|
||||||
install_dir: join_paths(get_option('datadir'), 'icons', scalable_dir)
|
install_dir: join_paths(get_option('datadir'), 'icons', scalable_dir)
|
||||||
)
|
)
|
||||||
|
|
||||||
symbolic_dir = join_paths('hicolor', 'symbolic', 'apps')
|
symbolic_dir = join_paths('hicolor', 'symbolic', 'apps')
|
||||||
install_data(
|
install_data(
|
||||||
join_paths(symbolic_dir, ('@0@-symbolic.svg').format(application_id)),
|
join_paths(symbolic_dir, ('@0@-symbolic.svg').format(app_id)),
|
||||||
install_dir: join_paths(get_option('datadir'), 'icons', symbolic_dir)
|
install_dir: join_paths(get_option('datadir'), 'icons', symbolic_dir)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,15 +1 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="300" fill="none">
|
<svg width="200" height="300" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="url(#a)" d="M0 0h200v300H0z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M63.125 113.125c-8.146 0-14.75 6.604-14.75 14.75v44.25c0 8.146 6.604 14.75 14.75 14.75h73.75c8.146 0 14.75-6.604 14.75-14.75v-44.25c0-8.146-6.604-14.75-14.75-14.75h-73.75Zm22.125 14.75a7.375 7.375 0 0 0-7.375 7.375v29.5a7.375 7.375 0 0 0 7.375 7.375h29.5a7.375 7.375 0 0 0 7.375-7.375v-29.5a7.375 7.375 0 0 0-7.375-7.375h-29.5ZM129.5 150a7.375 7.375 0 1 1 14.75 0 7.375 7.375 0 0 1-14.75 0Zm-66.375-7.375a7.375 7.375 0 1 0 0 14.75 7.375 7.375 0 0 0 0-14.75Z" fill="#fff"/><defs><linearGradient id="a" x1="100" y1="0" x2="100" y2="300" gradientUnits="userSpaceOnUse"><stop stop-color="#9A9996"/><stop offset="1" stop-color="#5E5C64"/></linearGradient></defs></svg>
|
||||||
<path fill="url(#a)" d="M0 0h200v300H0z"/>
|
|
||||||
<g fill="#241F31" clip-path="url(#b)">
|
|
||||||
<path d="M49 169.125v15.937C49 193.853 56.147 201 64.938 201h3.187c7.047 0 12.75-5.703 12.75-12.75s5.703-12.75 12.75-12.75 12.75 5.703 12.75 12.75c.872 7.919 8.019 13.622 15.937 12.75 8.791 0 15.938-7.122 15.938-15.938v-15.937c0-14.095-11.405-25.5-25.5-25.5H74.5c-14.095 0-25.5 11.405-25.5 25.5Zm20.719-12.75h3.187c.872 0 1.594.722 1.594 1.594v4.781h4.781c.872 0 1.594.722 1.594 1.594v3.187c0 .897-.722 1.594-1.594 1.594H74.5v4.781c0 .897-.722 1.594-1.594 1.594H69.72a1.573 1.573 0 0 1-1.594-1.594v-4.781h-4.781a1.573 1.573 0 0 1-1.594-1.594v-3.187c0-.872.697-1.594 1.594-1.594h4.781v-4.781c0-.872.697-1.594 1.594-1.594Zm39.843 4.781a4.783 4.783 0 0 1 4.782 4.782 4.783 4.783 0 0 1-4.782 4.781 4.783 4.783 0 0 1-4.781-4.781 4.783 4.783 0 0 1 4.781-4.782Zm12.75 6.375a4.783 4.783 0 0 1 4.782 4.781 4.783 4.783 0 0 1-4.782 4.782 4.783 4.783 0 0 1-4.781-4.782 4.783 4.783 0 0 1 4.781-4.781ZM61.75 118.225c.05 10.558 8.666 19.075 19.225 19.025h50.8c10.609 0 19.225-8.616 19.225-19.225-.05-10.558-8.666-19.075-19.225-19.025h-50.8c-10.609 0-19.225 8.616-19.225 19.225Zm20.52-12.85h3.187c.872 0 1.594.722 1.594 1.594v4.781h4.781c.872 0 1.594.722 1.594 1.594v3.187c0 .897-.722 1.594-1.594 1.594h-4.781v4.781c0 .897-.722 1.594-1.594 1.594h-3.188a1.573 1.573 0 0 1-1.593-1.594v-4.781h-4.782a1.573 1.573 0 0 1-1.593-1.594v-3.187c0-.872.697-1.594 1.593-1.594h4.782v-4.781c0-.872.697-1.594 1.593-1.594Zm39.843 4.781a4.783 4.783 0 0 1 4.782 4.782 4.783 4.783 0 0 1-4.782 4.781 4.783 4.783 0 0 1-4.781-4.781 4.783 4.783 0 0 1 4.781-4.782Zm12.75.199a4.783 4.783 0 0 1 4.782 4.782 4.783 4.783 0 0 1-4.782 4.781 4.783 4.783 0 0 1-4.781-4.781 4.783 4.783 0 0 1 4.781-4.782Z"/>
|
|
||||||
</g>
|
|
||||||
<defs>
|
|
||||||
<linearGradient id="a" x1="100" x2="100" y1="0" y2="300" gradientUnits="userSpaceOnUse">
|
|
||||||
<stop stop-color="#DEDDDA"/>
|
|
||||||
<stop offset="1" stop-color="#9A9996"/>
|
|
||||||
</linearGradient>
|
|
||||||
<clipPath id="b">
|
|
||||||
<path fill="#fff" d="M49 99h102v102H49z"/>
|
|
||||||
</clipPath>
|
|
||||||
</defs>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 831 B |
1
data/library_placeholder_small.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg width="2" height="2" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="url(#a)" d="M0 0h2v2H0z"/><defs><linearGradient id="a" x1="1" y1="0" x2="1" y2="2" gradientUnits="userSpaceOnUse"><stop stop-color="#9A9996"/><stop offset="1" stop-color="#5E5C64"/></linearGradient></defs></svg>
|
||||||
|
After Width: | Height: | Size: 296 B |
@@ -3,14 +3,19 @@ blueprints = custom_target('blueprints',
|
|||||||
'gtk/help-overlay.blp',
|
'gtk/help-overlay.blp',
|
||||||
'gtk/window.blp',
|
'gtk/window.blp',
|
||||||
'gtk/game.blp',
|
'gtk/game.blp',
|
||||||
'gtk/preferences.blp'
|
'gtk/preferences.blp',
|
||||||
|
'gtk/details-window.blp'
|
||||||
),
|
),
|
||||||
output: '.',
|
output: '.',
|
||||||
command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
|
command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
|
||||||
)
|
)
|
||||||
|
|
||||||
gnome.compile_resources('cartridges',
|
gnome.compile_resources('cartridges',
|
||||||
'cartridges.gresource.xml',
|
configure_file(
|
||||||
|
input: 'cartridges.gresource.xml.in',
|
||||||
|
output: 'cartridges.gresource.xml',
|
||||||
|
configuration: conf
|
||||||
|
),
|
||||||
gresource_bundle: true,
|
gresource_bundle: true,
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: pkgdatadir,
|
install_dir: pkgdatadir,
|
||||||
@@ -18,8 +23,12 @@ gnome.compile_resources('cartridges',
|
|||||||
)
|
)
|
||||||
|
|
||||||
desktop_file = i18n.merge_file(
|
desktop_file = i18n.merge_file(
|
||||||
|
input: configure_file(
|
||||||
input: 'hu.kramo.Cartridges.desktop.in',
|
input: 'hu.kramo.Cartridges.desktop.in',
|
||||||
output: 'hu.kramo.Cartridges.desktop',
|
output: app_id + '.desktop.in',
|
||||||
|
configuration: conf
|
||||||
|
),
|
||||||
|
output: app_id + '.desktop',
|
||||||
type: 'desktop',
|
type: 'desktop',
|
||||||
po_dir: '../po',
|
po_dir: '../po',
|
||||||
install: true,
|
install: true,
|
||||||
@@ -32,8 +41,12 @@ if desktop_utils.found()
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
appstream_file = i18n.merge_file(
|
appstream_file = i18n.merge_file(
|
||||||
|
input: configure_file(
|
||||||
input: 'hu.kramo.Cartridges.metainfo.xml.in',
|
input: 'hu.kramo.Cartridges.metainfo.xml.in',
|
||||||
output: 'hu.kramo.Cartridges.metainfo.xml',
|
output: app_id + '.metainfo.xml.in',
|
||||||
|
configuration: conf
|
||||||
|
),
|
||||||
|
output: app_id + '.metainfo.xml',
|
||||||
po_dir: '../po',
|
po_dir: '../po',
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: join_paths(get_option('datadir'), 'metainfo')
|
install_dir: join_paths(get_option('datadir'), 'metainfo')
|
||||||
@@ -44,7 +57,12 @@ if appstream_util.found()
|
|||||||
test('Validate appstream file', appstream_util, args: ['validate', appstream_file])
|
test('Validate appstream file', appstream_util, args: ['validate', appstream_file])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
install_data('hu.kramo.Cartridges.gschema.xml',
|
install_data(
|
||||||
|
configure_file(
|
||||||
|
input: 'hu.kramo.Cartridges.gschema.xml.in',
|
||||||
|
output: app_id + '.gschema.xml',
|
||||||
|
configuration: conf
|
||||||
|
),
|
||||||
install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas')
|
install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas')
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 719 KiB After Width: | Height: | Size: 683 KiB |
|
Before Width: | Height: | Size: 105 KiB After Width: | Height: | Size: 142 KiB |
|
Before Width: | Height: | Size: 156 KiB After Width: | Height: | Size: 292 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 25 KiB |
116
docs/game_id.json.md
Normal file
@@ -0,0 +1,116 @@
|
|||||||
|
# [game_id].json specification
|
||||||
|
#### Version 2.0
|
||||||
|
|
||||||
|
Games are saved to disk in the form of [game_id].json files. These files contain all information about a game excluding its cover, which is handled separately.
|
||||||
|
|
||||||
|
## Location
|
||||||
|
|
||||||
|
The standard location for these files is `/cartridges/games/` under the data directory of the user (`XDG_DATA_HOME` on Linux).
|
||||||
|
|
||||||
|
## Contents
|
||||||
|
|
||||||
|
The following attributes are saved:
|
||||||
|
|
||||||
|
- [added](#added)
|
||||||
|
- [executable](#executable)
|
||||||
|
- [game_id](#game_id)
|
||||||
|
- [source](#source)
|
||||||
|
- [hidden](#hidden)
|
||||||
|
- [last_played](#last_played)
|
||||||
|
- [name](#name)
|
||||||
|
- [developer](#developer)
|
||||||
|
- [removed](#removed)
|
||||||
|
- [blacklisted](#blacklisted)
|
||||||
|
- [version](#version)
|
||||||
|
|
||||||
|
### added
|
||||||
|
|
||||||
|
The date at which the game was added.
|
||||||
|
|
||||||
|
Cartridges will set the value for itself. Don't touch it.
|
||||||
|
|
||||||
|
Stored as a Unix time stamp.
|
||||||
|
|
||||||
|
### executable
|
||||||
|
|
||||||
|
The executable to run when launching a game.
|
||||||
|
|
||||||
|
If the source has a URL handler, using that is preferred. In that case, the value should be `"xdg-open url://example/url"` for Linux and `"start url://example/url"` for Windows.
|
||||||
|
|
||||||
|
Stored as either a string (preferred) or an argument vector to be passed to the shell through [subprocess.Popen](https://docs.python.org/3/library/subprocess.html#popen-constructor).
|
||||||
|
|
||||||
|
### game_id
|
||||||
|
|
||||||
|
The unique ID of the game, prefixed with [`[source]_`](#source) to avoid clashes.
|
||||||
|
|
||||||
|
If the game's source uses a consistent internal ID system, use the ID from there. If not, use a hash function that always returns the same hash for the same game, even if some of its attributes change inside of the source.
|
||||||
|
|
||||||
|
Stored as a string.
|
||||||
|
|
||||||
|
### source
|
||||||
|
|
||||||
|
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`. This is the only place you should use an underscore.
|
||||||
|
|
||||||
|
Stored as a string.
|
||||||
|
|
||||||
|
### hidden
|
||||||
|
|
||||||
|
Whether or not a game is hidden.
|
||||||
|
|
||||||
|
If the source provides a way of hiding games, take the value from there. Otherwise it should be set to false by default.
|
||||||
|
|
||||||
|
Stored as a boolean.
|
||||||
|
|
||||||
|
### last_played
|
||||||
|
|
||||||
|
The date at which the game was last launched from Cartridges.
|
||||||
|
|
||||||
|
Cartridges will set the value for itself. Don't touch it.
|
||||||
|
|
||||||
|
Stored as a Unix time stamp. 0 if the game hasn't been played yet.
|
||||||
|
|
||||||
|
### name
|
||||||
|
|
||||||
|
The title of the game.
|
||||||
|
|
||||||
|
Stored as a string.
|
||||||
|
|
||||||
|
### developer
|
||||||
|
|
||||||
|
The developer or publisher of the game.
|
||||||
|
|
||||||
|
If there are multiple developers or publishers, they should be joined with a comma and a space (`, `) into one string.
|
||||||
|
|
||||||
|
This is an optional attribute. If it can't be retrieved from the source, don't touch it.
|
||||||
|
|
||||||
|
Stored as a string.
|
||||||
|
|
||||||
|
### removed
|
||||||
|
|
||||||
|
Whether or not a game has been removed.
|
||||||
|
|
||||||
|
Cartridges will set the value for itself. Don't touch it.
|
||||||
|
|
||||||
|
Stored as a boolean.
|
||||||
|
|
||||||
|
### blacklisted
|
||||||
|
|
||||||
|
Whether or not a game is blacklisted. Blacklisting a game means it is going to still be imported, but not displayed to the user.
|
||||||
|
|
||||||
|
You should only blacklist a game based on information you pull from the web. This is to ensure that games which you would skip based on information online are still skipped even if the user loses their internet connection. If an entry is broken locally, just skip it.
|
||||||
|
|
||||||
|
The only reason to blacklist a game is if you find out that the locally cached entry is not actually a game (eg. Proton) or is otherwise invalid.
|
||||||
|
|
||||||
|
Unless the above criteria is met, don't touch the attribute.
|
||||||
|
|
||||||
|
Stored as a boolean.
|
||||||
|
|
||||||
|
### version
|
||||||
|
|
||||||
|
The version number of the [game_id].json specification.
|
||||||
|
|
||||||
|
Cartridges will set the value for itself. Don't touch it.
|
||||||
|
|
||||||
|
Stored as a number.
|
||||||
134
flatpak/hu.kramo.Cartridges.Devel.json
Normal file
@@ -0,0 +1,134 @@
|
|||||||
|
{
|
||||||
|
"id" : "hu.kramo.Cartridges.Devel",
|
||||||
|
"runtime" : "org.gnome.Platform",
|
||||||
|
"runtime-version" : "44",
|
||||||
|
"sdk" : "org.gnome.Sdk",
|
||||||
|
"command" : "cartridges",
|
||||||
|
"finish-args" : [
|
||||||
|
"--share=network",
|
||||||
|
"--share=ipc",
|
||||||
|
"--socket=fallback-x11",
|
||||||
|
"--device=dri",
|
||||||
|
"--socket=wayland",
|
||||||
|
"--talk-name=org.freedesktop.Flatpak",
|
||||||
|
"--filesystem=host:ro",
|
||||||
|
"--filesystem=~/.var/app/com.valvesoftware.Steam/data/Steam/:ro",
|
||||||
|
"--filesystem=~/.var/app/net.lutris.Lutris/:ro",
|
||||||
|
"--filesystem=~/.var/app/com.heroicgameslauncher.hgl/config/heroic/:ro",
|
||||||
|
"--filesystem=~/.var/app/com.heroicgameslauncher.hgl/config/legendary/:ro",
|
||||||
|
"--filesystem=~/.var/app/com.usebottles.bottles/data/bottles/:ro",
|
||||||
|
"--filesystem=~/.var/app/io.itch.itch/config/itch/:ro",
|
||||||
|
"--filesystem=~/.var/app/org.libretro.RetroArch/config/retroarch/:ro",
|
||||||
|
"--filesystem=/var/lib/flatpak:ro"
|
||||||
|
],
|
||||||
|
"cleanup" : [
|
||||||
|
"/include",
|
||||||
|
"/lib/pkgconfig",
|
||||||
|
"/man",
|
||||||
|
"/share/doc",
|
||||||
|
"/share/gtk-doc",
|
||||||
|
"/share/man",
|
||||||
|
"/share/pkgconfig",
|
||||||
|
"*.la",
|
||||||
|
"*.a"
|
||||||
|
],
|
||||||
|
"modules" : [
|
||||||
|
{
|
||||||
|
"name": "python3-modules",
|
||||||
|
"buildsystem": "simple",
|
||||||
|
"build-commands": [],
|
||||||
|
"modules": [
|
||||||
|
{
|
||||||
|
"name": "python3-pyyaml",
|
||||||
|
"buildsystem": "simple",
|
||||||
|
"build-commands": [
|
||||||
|
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"pyyaml\" --no-build-isolation"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
{
|
||||||
|
"type": "file",
|
||||||
|
"url": "https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz",
|
||||||
|
"sha256": "68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "python3-requests",
|
||||||
|
"buildsystem": "simple",
|
||||||
|
"build-commands": [
|
||||||
|
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"requests\" --no-build-isolation"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
{
|
||||||
|
"type": "file",
|
||||||
|
"url": "https://files.pythonhosted.org/packages/71/4c/3db2b8021bd6f2f0ceb0e088d6b2d49147671f25832fb17970e9b583d742/certifi-2022.12.7-py3-none-any.whl",
|
||||||
|
"sha256": "4ad3232f5e926d6718ec31cfc1fcadfde020920e278684144551c91769c7bc18"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "file",
|
||||||
|
"url": "https://files.pythonhosted.org/packages/ff/d7/8d757f8bd45be079d76309248845a04f09619a7b17d6dfc8c9ff6433cac2/charset-normalizer-3.1.0.tar.gz",
|
||||||
|
"sha256": "34e0a2f9c370eb95597aae63bf85eb5e96826d81e3dcf88b8886012906f509b5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "file",
|
||||||
|
"url": "https://files.pythonhosted.org/packages/fc/34/3030de6f1370931b9dbb4dad48f6ab1015ab1d32447850b9fc94e60097be/idna-3.4-py3-none-any.whl",
|
||||||
|
"sha256": "90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "file",
|
||||||
|
"url": "https://files.pythonhosted.org/packages/d2/f4/274d1dbe96b41cf4e0efb70cbced278ffd61b5c7bb70338b62af94ccb25b/requests-2.28.2-py3-none-any.whl",
|
||||||
|
"sha256": "64299f4909223da747622c030b781c0d7811e359c37124b4bd368fb8c6518baa"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "file",
|
||||||
|
"url": "https://files.pythonhosted.org/packages/7b/f5/890a0baca17a61c1f92f72b81d3c31523c99bec609e60c292ea55b387ae8/urllib3-1.26.15-py2.py3-none-any.whl",
|
||||||
|
"sha256": "aa751d169e23c7479ce47a0cb0da579e3ede798f994f5816a74e4f4500dcea42"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "python3-pillow",
|
||||||
|
"buildsystem": "simple",
|
||||||
|
"build-commands": [
|
||||||
|
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"pillow\" --no-build-isolation"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
{
|
||||||
|
"type": "file",
|
||||||
|
"url": "https://files.pythonhosted.org/packages/00/d5/4903f310765e0ff2b8e91ffe55031ac6af77d982f0156061e20a4d1a8b2d/Pillow-9.5.0.tar.gz",
|
||||||
|
"sha256": "bf548479d336726d7a0eceb6e767e179fbde37833ae42794602631a070d630f1"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name" : "blueprint-compiler",
|
||||||
|
"buildsystem" : "meson",
|
||||||
|
"sources" : [
|
||||||
|
{
|
||||||
|
"type" : "git",
|
||||||
|
"url" : "https://gitlab.gnome.org/jwestman/blueprint-compiler",
|
||||||
|
"tag" : "v0.8.1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"cleanup" : [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name" : "cartridges",
|
||||||
|
"builddir" : true,
|
||||||
|
"buildsystem" : "meson",
|
||||||
|
"config-opts": [
|
||||||
|
"-Dprofile=development"
|
||||||
|
],
|
||||||
|
"sources" : [
|
||||||
|
{
|
||||||
|
"type" : "dir",
|
||||||
|
"path" : ".."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,74 +0,0 @@
|
|||||||
{
|
|
||||||
"id" : "hu.kramo.Cartridges",
|
|
||||||
"runtime" : "org.gnome.Platform",
|
|
||||||
"runtime-version" : "44",
|
|
||||||
"sdk" : "org.gnome.Sdk",
|
|
||||||
"command" : "cartridges",
|
|
||||||
"finish-args" : [
|
|
||||||
"--share=ipc",
|
|
||||||
"--socket=fallback-x11",
|
|
||||||
"--device=dri",
|
|
||||||
"--socket=wayland",
|
|
||||||
"--talk-name=org.freedesktop.Flatpak",
|
|
||||||
"--talk-name=org.gtk.vfs.*",
|
|
||||||
"--filesystem=xdg-run/gvfsd",
|
|
||||||
"--filesystem=~/.steam/steam/:ro",
|
|
||||||
"--filesystem=xdg-config/heroic/:ro",
|
|
||||||
"--filesystem=xdg-data/bottles/:ro",
|
|
||||||
"--filesystem=~/.var/app/com.valvesoftware.Steam/data/Steam/:ro",
|
|
||||||
"--filesystem=~/.var/app/com.heroicgameslauncher.hgl/config/heroic/:ro",
|
|
||||||
"--filesystem=~/.var/app/com.usebottles.bottles/data/bottles/:ro"
|
|
||||||
],
|
|
||||||
"cleanup" : [
|
|
||||||
"/include",
|
|
||||||
"/lib/pkgconfig",
|
|
||||||
"/man",
|
|
||||||
"/share/doc",
|
|
||||||
"/share/gtk-doc",
|
|
||||||
"/share/man",
|
|
||||||
"/share/pkgconfig",
|
|
||||||
"*.la",
|
|
||||||
"*.a"
|
|
||||||
],
|
|
||||||
"modules" : [
|
|
||||||
{
|
|
||||||
"name": "python3-pyyaml",
|
|
||||||
"buildsystem": "simple",
|
|
||||||
"build-commands": [
|
|
||||||
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"pyyaml\" --no-build-isolation"
|
|
||||||
],
|
|
||||||
"sources": [
|
|
||||||
{
|
|
||||||
"type": "file",
|
|
||||||
"url": "https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz",
|
|
||||||
"sha256": "68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "blueprint-compiler",
|
|
||||||
"buildsystem" : "meson",
|
|
||||||
"sources" : [
|
|
||||||
{
|
|
||||||
"type" : "git",
|
|
||||||
"url" : "https://gitlab.gnome.org/jwestman/blueprint-compiler",
|
|
||||||
"tag" : "v0.6.0"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "cartridges",
|
|
||||||
"builddir" : true,
|
|
||||||
"buildsystem" : "meson",
|
|
||||||
"sources" : [
|
|
||||||
{
|
|
||||||
"type" : "dir",
|
|
||||||
"path" : "."
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"build-options" : {
|
|
||||||
"env" : { }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
26
meson.build
@@ -1,18 +1,42 @@
|
|||||||
project('cartridges',
|
project('cartridges',
|
||||||
version: '1.0',
|
version: '2.2',
|
||||||
meson_version: '>= 0.59.0',
|
meson_version: '>= 0.59.0',
|
||||||
default_options: [ 'warning_level=2', 'werror=false', ],
|
default_options: [ 'warning_level=2', 'werror=false', ],
|
||||||
)
|
)
|
||||||
|
|
||||||
i18n = import('i18n')
|
i18n = import('i18n')
|
||||||
gnome = import('gnome')
|
gnome = import('gnome')
|
||||||
|
python = import('python')
|
||||||
|
|
||||||
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
|
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
|
||||||
|
|
||||||
|
profile = get_option('profile')
|
||||||
|
if profile == 'development'
|
||||||
|
app_id = 'hu.kramo.Cartridges.Devel'
|
||||||
|
prefix = '/hu/kramo/Cartridges/Devel'
|
||||||
|
elif profile == 'release'
|
||||||
|
app_id = 'hu.kramo.Cartridges'
|
||||||
|
prefix = '/hu/kramo/Cartridges'
|
||||||
|
endif
|
||||||
|
|
||||||
|
conf = configuration_data()
|
||||||
|
conf.set('PYTHON', python.find_installation('python3').full_path())
|
||||||
|
conf.set('PYTHON_VERSION', python.find_installation('python3').language_version())
|
||||||
|
conf.set('APP_ID', app_id)
|
||||||
|
conf.set('PREFIX', prefix)
|
||||||
|
conf.set('VERSION', meson.project_version())
|
||||||
|
conf.set('PROFILE', profile)
|
||||||
|
conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir')))
|
||||||
|
conf.set('pkgdatadir', pkgdatadir)
|
||||||
|
|
||||||
subdir('data')
|
subdir('data')
|
||||||
subdir('src')
|
subdir('src')
|
||||||
subdir('po')
|
subdir('po')
|
||||||
|
|
||||||
|
if host_machine.system() == 'windows'
|
||||||
|
subdir('windows')
|
||||||
|
endif
|
||||||
|
|
||||||
gnome.post_install(
|
gnome.post_install(
|
||||||
glib_compile_schemas: true,
|
glib_compile_schemas: true,
|
||||||
gtk_update_icon_cache: true,
|
gtk_update_icon_cache: true,
|
||||||
|
|||||||
9
meson_options.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
option(
|
||||||
|
'profile',
|
||||||
|
type: 'combo',
|
||||||
|
choices: [
|
||||||
|
'release',
|
||||||
|
'development',
|
||||||
|
],
|
||||||
|
value: 'release'
|
||||||
|
)
|
||||||
12
po/LINGUAS
@@ -8,3 +8,15 @@ it
|
|||||||
ar
|
ar
|
||||||
es
|
es
|
||||||
fi
|
fi
|
||||||
|
pt
|
||||||
|
ru
|
||||||
|
ko
|
||||||
|
de
|
||||||
|
ro
|
||||||
|
pt_BR
|
||||||
|
fa
|
||||||
|
pl
|
||||||
|
sv
|
||||||
|
tr
|
||||||
|
el
|
||||||
|
cs
|
||||||
|
|||||||
14
po/POTFILES
@@ -1,19 +1,21 @@
|
|||||||
data/hu.kramo.Cartridges.desktop.in
|
data/hu.kramo.Cartridges.desktop.in
|
||||||
data/hu.kramo.Cartridges.gschema.xml
|
data/hu.kramo.Cartridges.gschema.xml.in
|
||||||
data/hu.kramo.Cartridges.metainfo.xml.in
|
data/hu.kramo.Cartridges.metainfo.xml.in
|
||||||
|
|
||||||
data/gtk/window.blp
|
data/gtk/details-window.blp
|
||||||
data/gtk/game.blp
|
data/gtk/game.blp
|
||||||
data/gtk/help-overlay.blp
|
data/gtk/help-overlay.blp
|
||||||
data/gtk/preferences.blp
|
data/gtk/preferences.blp
|
||||||
|
data/gtk/window.blp
|
||||||
|
|
||||||
src/main.py
|
src/main.py
|
||||||
src/window.py
|
src/window.py
|
||||||
|
src/details_window.py
|
||||||
src/game.py
|
src/game.py
|
||||||
src/preferences.py
|
src/preferences.py
|
||||||
|
|
||||||
src/utils/bottles_parser.py
|
|
||||||
src/utils/create_details_window.py
|
|
||||||
src/utils/create_dialog.py
|
src/utils/create_dialog.py
|
||||||
src/utils/heroic_parser.py
|
src/importer/importer.py
|
||||||
src/utils/steam_parser.py
|
src/importer/sources/source.py
|
||||||
|
src/importer/sources/location.py
|
||||||
|
src/store/managers/sgdb_manager.py
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
# SOME DESCRIPTIVE TITLE.
|
# SOME DESCRIPTIVE TITLE.
|
||||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
# Copyright (C) YEAR kramo
|
||||||
# This file is distributed under the same license as the cartridges package.
|
# This file is distributed under the same license as the Cartridges package.
|
||||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
#
|
#
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: cartridges\n"
|
"Project-Id-Version: Cartridges\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2023-03-25 11:25+0100\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"
|
||||||
@@ -18,8 +18,8 @@ msgstr ""
|
|||||||
"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:29
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
|
||||||
#: src/main.py:115
|
#: src/main.py:169
|
||||||
msgid "Cartridges"
|
msgid "Cartridges"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -28,482 +28,555 @@ msgid "Game Launcher"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.desktop.in:5
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
msgid "Launch your games"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
msgid "Launch all your games"
|
msgid "Launch all your games"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
#: data/hu.kramo.Cartridges.desktop.in:11
|
||||||
msgid ""
|
msgid ""
|
||||||
"Cartridges is a simple game launcher. It has support for importing your "
|
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
|
||||||
"games from Steam, Heroic and Bottles with organizational features such as "
|
|
||||||
"hiding and sorting by date added or last played."
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:22
|
#: 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 ""
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:30
|
||||||
msgid "Library"
|
msgid "Library"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:26
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:34
|
||||||
#: src/utils/create_details_window.py:48
|
|
||||||
msgid "Edit Game Details"
|
msgid "Edit Game Details"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:30 data/gtk/window.blp:51
|
#: 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:34 data/gtk/window.blp:363
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:418
|
||||||
#: src/utils/steam_parser.py:170
|
#: src/details_window.py:241 src/importer/importer.py:292
|
||||||
|
#: src/importer/importer.py:342
|
||||||
msgid "Preferences"
|
msgid "Preferences"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/hu.kramo.Cartridges.metainfo.xml.in:41
|
#: data/gtk/details-window.blp:25
|
||||||
msgid "First stable release"
|
msgid "Cancel"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/window.blp:6 src/utils/bottles_parser.py:140
|
#: data/gtk/details-window.blp:57
|
||||||
#: src/utils/heroic_parser.py:250 src/utils/steam_parser.py:167
|
msgid "New Cover"
|
||||||
msgid "No Games Found"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/window.blp:7
|
#: data/gtk/details-window.blp:75
|
||||||
msgid "Try a different search."
|
msgid "Delete Cover"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/window.blp:14
|
#: data/gtk/details-window.blp:102 data/gtk/game.blp:80
|
||||||
msgid "No Games"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:15
|
|
||||||
msgid "Use the + button to add games."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:22
|
|
||||||
msgid "No Hidden Games"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:23
|
|
||||||
msgid "Games you hide will appear here."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:44 data/gtk/window.blp:254
|
|
||||||
msgid "Back"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:92
|
|
||||||
msgid "Game Title"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:148 data/gtk/game.blp:35
|
|
||||||
msgid "Play"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:196 data/gtk/window.blp:382
|
|
||||||
msgid "Add Game"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:203 data/gtk/window.blp:266
|
|
||||||
msgid "Main Menu"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:210 data/gtk/window.blp:273
|
|
||||||
msgid "Search"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:261
|
|
||||||
msgid "Hidden Games"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:321
|
|
||||||
msgid "Sort"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:324
|
|
||||||
msgid "A-Z"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:330
|
|
||||||
msgid "Z-A"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:336
|
|
||||||
msgid "Newest"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:342
|
|
||||||
msgid "Oldest"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:348
|
|
||||||
msgid "Last Played"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:355
|
|
||||||
msgid "Show Hidden"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:368
|
|
||||||
msgid "Keyboard Shortcuts"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:373
|
|
||||||
msgid "About Cartridges"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:388
|
|
||||||
msgid "Import from"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:390
|
|
||||||
msgid "Steam"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:395
|
|
||||||
msgid "Heroic"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/window.blp:400
|
|
||||||
msgid "Bottles"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: data/gtk/game.blp:61 src/utils/create_details_window.py:94
|
|
||||||
msgid "Title"
|
msgid "Title"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/game.blp:83 data/gtk/game.blp:102
|
#: data/gtk/details-window.blp:105
|
||||||
|
msgid "Developer (optional)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:110
|
||||||
|
msgid "Executable"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:116
|
||||||
|
msgid "More Info"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:195
|
||||||
msgid "Edit"
|
msgid "Edit"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/game.blp:88
|
#: data/gtk/game.blp:107 src/window.py:171
|
||||||
msgid "Hide"
|
msgid "Hide"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/game.blp:93 data/gtk/game.blp:112
|
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:56
|
||||||
|
#: data/gtk/window.blp:209
|
||||||
msgid "Remove"
|
msgid "Remove"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/game.blp:107
|
#: data/gtk/game.blp:126 src/window.py:173
|
||||||
msgid "Unhide"
|
msgid "Unhide"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:11
|
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "General"
|
msgid "General"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:14
|
#: data/gtk/help-overlay.blp:14
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Quit"
|
msgid "Quit"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:19
|
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:217 data/gtk/window.blp:257
|
||||||
msgctxt "shortcut window"
|
#: data/gtk/window.blp:324
|
||||||
msgid "Search"
|
msgid "Search"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:24
|
#: data/gtk/help-overlay.blp:24
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Show preferences"
|
msgid "Show preferences"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:29
|
#: data/gtk/help-overlay.blp:29
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Shortcuts"
|
msgid "Shortcuts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:34
|
#: data/gtk/help-overlay.blp:34 src/game.py:103 src/preferences.py:120
|
||||||
msgctxt "shortcut window"
|
#: src/importer/importer.py:366
|
||||||
msgid "Undo"
|
msgid "Undo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:39
|
#: data/gtk/help-overlay.blp:39
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Open menu"
|
msgid "Open menu"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:45
|
#: data/gtk/help-overlay.blp:45
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Games"
|
msgid "Games"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:48
|
#: data/gtk/help-overlay.blp:48
|
||||||
msgctxt "shortcut window"
|
|
||||||
msgid "Add new game"
|
msgid "Add new game"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/help-overlay.blp:53
|
#: data/gtk/help-overlay.blp:53
|
||||||
msgctxt "shortcut window"
|
msgid "Import games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:58
|
||||||
msgid "Show hidden games"
|
msgid "Show hidden games"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:10
|
#: data/gtk/help-overlay.blp:63
|
||||||
msgid "General"
|
msgid "Remove game"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:13
|
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:89
|
||||||
|
#: data/gtk/preferences.blp:304
|
||||||
|
msgid "Behavior"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:16
|
||||||
msgid "Exit After Launching Games"
|
msgid "Exit After Launching Games"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:25
|
#: data/gtk/preferences.blp:25
|
||||||
msgid "Steam Install Location"
|
msgid "Cover Image Launches Game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26
|
||||||
|
msgid "Swaps the behavior of the cover image and the play button"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:36 src/details_window.py:81
|
||||||
|
msgid "Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:39
|
||||||
|
msgid "High Quality Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:40
|
||||||
|
msgid "Save game covers losslessly at the cost of storage"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:50
|
||||||
|
msgid "Danger Zone"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:53
|
||||||
|
msgid "Remove All Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:85 data/gtk/window.blp:27 data/gtk/window.blp:444
|
||||||
|
msgid "Import"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:92
|
||||||
|
msgid "Remove Uninstalled Games"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:26 data/gtk/preferences.blp:64
|
|
||||||
#: data/gtk/preferences.blp:102
|
#: data/gtk/preferences.blp:102
|
||||||
msgid "Directory to use when importing games"
|
msgid "Sources"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:34
|
#: data/gtk/preferences.blp:105
|
||||||
msgid "Extra Steam Libraries"
|
msgid "Steam"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:35
|
#: data/gtk/preferences.blp:109 data/gtk/preferences.blp:123
|
||||||
msgid "Select other directories where you have Steam games installed"
|
#: data/gtk/preferences.blp:164 data/gtk/preferences.blp:214
|
||||||
|
#: data/gtk/preferences.blp:228 data/gtk/preferences.blp:242
|
||||||
|
#: data/gtk/preferences.blp:256 data/gtk/preferences.blp:270
|
||||||
|
msgid "Install Location"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:42
|
#: data/gtk/preferences.blp:119
|
||||||
msgid "Clear"
|
msgid "Lutris"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:63
|
#: data/gtk/preferences.blp:132
|
||||||
msgid "Heroic Install Location"
|
msgid "Cache Location"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:73
|
#: data/gtk/preferences.blp:141
|
||||||
|
msgid "Import Steam Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:150
|
||||||
|
msgid "Import Flatpak Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:160
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:173
|
||||||
msgid "Import Epic Games"
|
msgid "Import Epic Games"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:81
|
#: data/gtk/preferences.blp:182
|
||||||
msgid "Import GOG Games"
|
msgid "Import GOG Games"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/gtk/preferences.blp:89
|
#: 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:101
|
#: data/gtk/preferences.blp:210
|
||||||
msgid "Bottles Install Location"
|
msgid "Bottles"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:224
|
||||||
|
msgid "itch"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:238
|
||||||
|
msgid "Legendary"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:252
|
||||||
|
msgid "RetroArch"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:266
|
||||||
|
msgid "Flatpak"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:279
|
||||||
|
msgid "Import Game Launchers"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:292
|
||||||
|
msgid "SteamGridDB"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:296
|
||||||
|
msgid "Authentication"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:299
|
||||||
|
msgid "API Key"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:307
|
||||||
|
msgid "Use SteamGridDB"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:308
|
||||||
|
msgid "Download images when adding or importing games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:317
|
||||||
|
msgid "Prefer Over Official Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:326
|
||||||
|
msgid "Prefer Animated Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 data/gtk/window.blp:14
|
||||||
|
msgid "No Games Found"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:7 data/gtk/window.blp:15
|
||||||
|
msgid "Try a different search."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:21
|
||||||
|
msgid "No Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:22
|
||||||
|
msgid "Use the + button to add games."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:40
|
||||||
|
msgid "No Hidden Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:41
|
||||||
|
msgid "Games you hide will appear here."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:64 data/gtk/window.blp:305
|
||||||
|
msgid "Back"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:121
|
||||||
|
msgid "Game Title"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:176
|
||||||
|
msgid "Play"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:243 data/gtk/window.blp:437
|
||||||
|
msgid "Add Game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:250 data/gtk/window.blp:317
|
||||||
|
msgid "Main Menu"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:272
|
||||||
|
msgid "Search games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:312
|
||||||
|
msgid "Hidden Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:339
|
||||||
|
msgid "Search hidden games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:376
|
||||||
|
msgid "Sort"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:379
|
||||||
|
msgid "A-Z"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:385
|
||||||
|
msgid "Z-A"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:391
|
||||||
|
msgid "Newest"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:397
|
||||||
|
msgid "Oldest"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:403
|
||||||
|
msgid "Last Played"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:410
|
||||||
|
msgid "Show Hidden"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:423
|
||||||
|
msgid "Keyboard Shortcuts"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:428
|
||||||
|
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:130
|
#: src/main.py:188
|
||||||
msgid "translator_credits"
|
msgid "translator_credits"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/main.py:193
|
|
||||||
#, python-brace-format
|
|
||||||
msgid "{title} removed"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/main.py:194
|
|
||||||
msgid "Undo"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.py:235
|
|
||||||
msgid "Today"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.py:237
|
|
||||||
msgid "Yesterday"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. The variable is the date when the game was added
|
#. The variable is the date when the game was added
|
||||||
#: src/window.py:271
|
#: src/window.py:194
|
||||||
#, python-brace-format
|
msgid "Added: {}"
|
||||||
msgid "Added: {date}"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/window.py:276
|
#: src/window.py:197
|
||||||
msgid "Never"
|
msgid "Never"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. The variable is the date when the game was last played
|
#. The variable is the date when the game was last played
|
||||||
#: src/window.py:280
|
#: src/window.py:201
|
||||||
#, python-brace-format
|
msgid "Last played: {}"
|
||||||
msgid "Last played: {last_played_date}"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:80 src/utils/heroic_parser.py:87
|
#: src/details_window.py:72
|
||||||
#: src/utils/steam_parser.py:245
|
|
||||||
msgid "Couldn't Import Games"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:81
|
|
||||||
msgid "The Bottles directory cannot be found."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:83
|
|
||||||
msgid "Set Bottles Location"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:141
|
|
||||||
msgid "No new games were found in the Bottles library."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:146 src/utils/bottles_parser.py:153
|
|
||||||
msgid "Bottles Games Imported"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/bottles_parser.py:147 src/utils/heroic_parser.py:257
|
|
||||||
#: src/utils/steam_parser.py:177
|
|
||||||
msgid "Successfully imported 1 game."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. The variable is the number of games
|
|
||||||
#: src/utils/bottles_parser.py:155 src/utils/heroic_parser.py:265
|
|
||||||
#: src/utils/steam_parser.py:185
|
|
||||||
#, python-brace-format
|
|
||||||
msgid "Successfully imported {games_no} games."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:41
|
|
||||||
msgid "Add New Game"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:46
|
|
||||||
msgid "Confirm"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:57
|
|
||||||
msgid "Apply"
|
msgid "Apply"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:59
|
#: src/details_window.py:78
|
||||||
msgid "Images"
|
msgid "Add New Game"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:95
|
#: src/details_window.py:79
|
||||||
msgid "The title of the game"
|
msgid "Add"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:100
|
#. Translate this string as you would translate "file"
|
||||||
msgid "Developer"
|
#: src/details_window.py:92
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:101
|
|
||||||
msgid "The developer or publisher (optional)"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:111
|
|
||||||
msgid "file.txt"
|
msgid "file.txt"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. As in software
|
#. As in software
|
||||||
#: src/utils/create_details_window.py:113
|
#: src/details_window.py:94
|
||||||
msgid "program"
|
msgid "program"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:117
|
#. Translate this string as you would translate "path to {}"
|
||||||
#, python-brace-format
|
#: src/details_window.py:99 src/details_window.py:101
|
||||||
msgid "C:\\path\\to\\{exe_name}"
|
msgid "C:\\path\\to\\{}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:118
|
#. Translate this string as you would translate "path to {}"
|
||||||
#, python-brace-format
|
#: src/details_window.py:105 src/details_window.py:107
|
||||||
msgid "C:\\path\\to\\{file_name}"
|
msgid "/path/to/{}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:121
|
#: src/details_window.py:112
|
||||||
#, python-brace-format
|
|
||||||
msgid "/path/to/{exe_name}"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:122
|
|
||||||
#, python-brace-format
|
|
||||||
msgid "/path/to/{file_name}"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:126
|
|
||||||
#, python-brace-format
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"To launch the executable \"{exe_name}\", use the command:\n"
|
"To launch the executable \"{}\", use the command:\n"
|
||||||
"\n"
|
"\n"
|
||||||
"<tt>\"{exe_path}\"</tt>\n"
|
"<tt>\"{}\"</tt>\n"
|
||||||
"\n"
|
"\n"
|
||||||
"To open the file \"{file_name}\" with the default application, use:\n"
|
"To open the file \"{}\" with the default application, use:\n"
|
||||||
"\n"
|
"\n"
|
||||||
"<tt>{command} \"{file_path}\"</tt>\n"
|
"<tt>{} \"{}\"</tt>\n"
|
||||||
"\n"
|
"\n"
|
||||||
"If the path contains spaces, make sure to wrap it in double quotes!"
|
"If the path contains spaces, make sure to wrap it in double quotes!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:149
|
#: src/details_window.py:147 src/details_window.py:153
|
||||||
msgid "Executable"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:150
|
|
||||||
msgid "File to open or command to run when launching the game"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:162
|
|
||||||
msgid "Cancel"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:212
|
|
||||||
#: src/utils/create_details_window.py:222
|
|
||||||
#: src/utils/create_details_window.py:228
|
|
||||||
msgid "Couldn't Add Game"
|
msgid "Couldn't Add Game"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:214
|
#: src/details_window.py:147 src/details_window.py:183
|
||||||
#: src/utils/create_details_window.py:252
|
|
||||||
#: src/utils/create_details_window.py:260
|
|
||||||
msgid "Couldn't Apply Preferences"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:222
|
|
||||||
#: src/utils/create_details_window.py:253
|
|
||||||
msgid "Game title cannot be empty."
|
msgid "Game title cannot be empty."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:228
|
#: src/details_window.py:153 src/details_window.py:191
|
||||||
#: src/utils/create_details_window.py:261
|
|
||||||
msgid "Executable cannot be empty."
|
msgid "Executable cannot be empty."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/create_dialog.py:25
|
#: src/details_window.py:182 src/details_window.py:190
|
||||||
|
msgid "Couldn't Apply Preferences"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:139
|
||||||
|
msgid "{} launched"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} hidden"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} unhidden"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. 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"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:119
|
||||||
|
msgid "All games removed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:168
|
||||||
|
msgid ""
|
||||||
|
"An API key is required to use SteamGridDB. You can generate one {}here{}."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:294
|
||||||
|
msgid "Installation Not Found"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:296
|
||||||
|
msgid "Select a valid directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:351
|
||||||
|
msgid "Invalid Directory"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:357
|
||||||
|
msgid "Set Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_dialog.py:25 src/importer/importer.py:291
|
||||||
msgid "Dismiss"
|
msgid "Dismiss"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:88
|
#: src/importer/importer.py:128
|
||||||
msgid "The Heroic directory cannot be found."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:90
|
|
||||||
msgid "Set Heroic Location"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:251
|
|
||||||
msgid "No new games were found in the Heroic library."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:256 src/utils/heroic_parser.py:263
|
|
||||||
msgid "Heroic Games Imported"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:168
|
|
||||||
msgid "No new games were found in the Steam library."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:176 src/utils/steam_parser.py:183
|
|
||||||
msgid "Steam Games Imported"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:246
|
|
||||||
msgid "The Steam directory cannot be found."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:248
|
|
||||||
msgid "Set Steam Location"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:265
|
|
||||||
msgid "Importing Games…"
|
msgid "Importing Games…"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:266
|
#: src/importer/importer.py:290
|
||||||
msgid "Talking to Steam"
|
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
|
||||||
|
#: src/importer/sources/location.py:33
|
||||||
|
msgid "Select the {} cache directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:35
|
||||||
|
msgid "Select the {} configuration directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:37
|
||||||
|
msgid "Select the {} data directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:46
|
||||||
|
msgid "Couldn't Authenticate SteamGridDB"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:47
|
||||||
|
msgid "Verify your API key in preferences"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
629
po/cs.po
Normal file
@@ -0,0 +1,629 @@
|
|||||||
|
# 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-08-16 11:06+0200\n"
|
||||||
|
"PO-Revision-Date: 2023-08-05 08:07+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:169
|
||||||
|
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;flatpak;legendary;"
|
||||||
|
msgid ""
|
||||||
|
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
|
||||||
|
msgstr "hraní;spouštěč;steam;lutris;heroic;láhve;itch;flatpak;legendary;"
|
||||||
|
|
||||||
|
#: 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
|
||||||
|
msgid "Edit Game Details"
|
||||||
|
msgstr "Upravit podrobnosti o hře"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:38 data/gtk/window.blp:71
|
||||||
|
#: src/details_window.py:67
|
||||||
|
msgid "Game Details"
|
||||||
|
msgstr "Podrobnosti o hře"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:418
|
||||||
|
#: src/details_window.py:241 src/importer/importer.py:292
|
||||||
|
#: src/importer/importer.py:342
|
||||||
|
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:102 data/gtk/game.blp:80
|
||||||
|
msgid "Title"
|
||||||
|
msgstr "Název"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:105
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "The developer or publisher (optional)"
|
||||||
|
msgid "Developer (optional)"
|
||||||
|
msgstr "Vývojář nebo vydavatel (nepovinné)"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:110
|
||||||
|
msgid "Executable"
|
||||||
|
msgstr "Spustitelný soubor"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:116
|
||||||
|
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:324
|
||||||
|
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:103 src/preferences.py:120
|
||||||
|
#: src/importer/importer.py:366
|
||||||
|
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:89
|
||||||
|
#: data/gtk/preferences.blp:304
|
||||||
|
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:444
|
||||||
|
msgid "Import"
|
||||||
|
msgstr "Import"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:92
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Remove All Games"
|
||||||
|
msgid "Remove Uninstalled Games"
|
||||||
|
msgstr "Odstranit všechny hry"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:102
|
||||||
|
msgid "Sources"
|
||||||
|
msgstr "Zdroje"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:105
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr "Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:109 data/gtk/preferences.blp:123
|
||||||
|
#: data/gtk/preferences.blp:164 data/gtk/preferences.blp:214
|
||||||
|
#: data/gtk/preferences.blp:228 data/gtk/preferences.blp:242
|
||||||
|
#: data/gtk/preferences.blp:256 data/gtk/preferences.blp:270
|
||||||
|
msgid "Install Location"
|
||||||
|
msgstr "Umístění instalace"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:119
|
||||||
|
msgid "Lutris"
|
||||||
|
msgstr "Lutris"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:132
|
||||||
|
msgid "Cache Location"
|
||||||
|
msgstr "Umístění dočasných souborů"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:141
|
||||||
|
msgid "Import Steam Games"
|
||||||
|
msgstr "Importovat Steam hry"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:150
|
||||||
|
msgid "Import Flatpak Games"
|
||||||
|
msgstr "Importovat Flatpak hry"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:160
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr "Heroic"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:173
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr "Importovat Epic Games hry"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:182
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr "Importovat GOG hry"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:191
|
||||||
|
msgid "Import Amazon Games"
|
||||||
|
msgstr "Importovat Amazon hry"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:200
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr "Importovat ručně načtené hry"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:210
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr "Láhve"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:224
|
||||||
|
msgid "itch"
|
||||||
|
msgstr "itch"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:238
|
||||||
|
msgid "Legendary"
|
||||||
|
msgstr "Legendary"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:252
|
||||||
|
msgid "RetroArch"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:266
|
||||||
|
msgid "Flatpak"
|
||||||
|
msgstr "Flatpak"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:279
|
||||||
|
msgid "Import Game Launchers"
|
||||||
|
msgstr "Importovat spouštěče her"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:292
|
||||||
|
msgid "SteamGridDB"
|
||||||
|
msgstr "SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:296
|
||||||
|
msgid "Authentication"
|
||||||
|
msgstr "Ověření"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:299
|
||||||
|
msgid "API Key"
|
||||||
|
msgstr "Klíč API"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:307
|
||||||
|
msgid "Use SteamGridDB"
|
||||||
|
msgstr "Používat SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:308
|
||||||
|
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:317
|
||||||
|
msgid "Prefer Over Official Images"
|
||||||
|
msgstr "Upřednostnit před oficiálními obrázky"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:326
|
||||||
|
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:305
|
||||||
|
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:437
|
||||||
|
msgid "Add Game"
|
||||||
|
msgstr "Přidat hru"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:250 data/gtk/window.blp:317
|
||||||
|
msgid "Main Menu"
|
||||||
|
msgstr "Hlavní nabídka"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:272
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Search"
|
||||||
|
msgid "Search games"
|
||||||
|
msgstr "Vyhledávání"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:312
|
||||||
|
msgid "Hidden Games"
|
||||||
|
msgstr "Skryté hry"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:339
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Show hidden games"
|
||||||
|
msgid "Search hidden games"
|
||||||
|
msgstr "Zobrazit skryté hry"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:376
|
||||||
|
msgid "Sort"
|
||||||
|
msgstr "Třídit"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:379
|
||||||
|
msgid "A-Z"
|
||||||
|
msgstr "A-Ž"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:385
|
||||||
|
msgid "Z-A"
|
||||||
|
msgstr "Ž-A"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:391
|
||||||
|
msgid "Newest"
|
||||||
|
msgstr "Nejnovější"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:397
|
||||||
|
msgid "Oldest"
|
||||||
|
msgstr "Nejstarší"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:403
|
||||||
|
msgid "Last Played"
|
||||||
|
msgstr "Naposledy hráno"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:410
|
||||||
|
msgid "Show Hidden"
|
||||||
|
msgstr "Zobrazit Skryté"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:423
|
||||||
|
msgid "Keyboard Shortcuts"
|
||||||
|
msgstr "Klávesové zkratky"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:428
|
||||||
|
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 "Add"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. 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:139
|
||||||
|
msgid "{} launched"
|
||||||
|
msgstr "{} spuštěno"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} hidden"
|
||||||
|
msgstr "{} skryto"
|
||||||
|
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} unhidden"
|
||||||
|
msgstr "{} odkryto"
|
||||||
|
|
||||||
|
#. 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"
|
||||||
|
msgstr "{} odstraněno"
|
||||||
|
|
||||||
|
#: src/preferences.py:119
|
||||||
|
msgid "All games removed"
|
||||||
|
msgstr "Všechny hry odstraněny"
|
||||||
|
|
||||||
|
#: src/preferences.py:168
|
||||||
|
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:294
|
||||||
|
msgid "Installation Not Found"
|
||||||
|
msgstr "Instalace nebyla nalezena"
|
||||||
|
|
||||||
|
#: src/preferences.py:296
|
||||||
|
msgid "Select a valid directory."
|
||||||
|
msgstr "Vyberte platný adresář."
|
||||||
|
|
||||||
|
#: src/preferences.py:351
|
||||||
|
msgid "Invalid Directory"
|
||||||
|
msgstr "Neplatný adresář"
|
||||||
|
|
||||||
|
#: src/preferences.py:357
|
||||||
|
msgid "Set Location"
|
||||||
|
msgstr "Nastavit umístění"
|
||||||
|
|
||||||
|
#: src/utils/create_dialog.py:25 src/importer/importer.py:291
|
||||||
|
msgid "Dismiss"
|
||||||
|
msgstr "Zahodit"
|
||||||
|
|
||||||
|
#: src/importer/importer.py:128
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Import Epic Games"
|
||||||
|
msgid "Importing Games…"
|
||||||
|
msgstr "Importovat Epic Games hry"
|
||||||
|
|
||||||
|
#: 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
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "No Games Found"
|
||||||
|
msgid "No new games found"
|
||||||
|
msgstr "Nebyly nalezeny žádné hry"
|
||||||
|
|
||||||
|
#: src/importer/importer.py:351
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "All games removed"
|
||||||
|
msgid "1 game imported"
|
||||||
|
msgstr "Všechny hry odstraněny"
|
||||||
|
|
||||||
|
#. The variable is the number of games
|
||||||
|
#: src/importer/importer.py:355
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "All games removed"
|
||||||
|
msgid "{} games imported"
|
||||||
|
msgstr "Všechny hry odstraněny"
|
||||||
|
|
||||||
|
#. A single game removed
|
||||||
|
#: src/importer/importer.py:359
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "{} removed"
|
||||||
|
msgid "1 removed"
|
||||||
|
msgstr "{} odstraněno"
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:33
|
||||||
|
msgid "Select the {} cache directory."
|
||||||
|
msgstr "Vyberte adresář {} mezipaměti."
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:35
|
||||||
|
msgid "Select the {} configuration directory."
|
||||||
|
msgstr "Vyberte konfigurační adresář {}."
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:37
|
||||||
|
msgid "Select the {} data directory."
|
||||||
|
msgstr "Vyberte datový adresář {}."
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:46
|
||||||
|
msgid "Couldn't Authenticate SteamGridDB"
|
||||||
|
msgstr "Nelze ověřit SteamGridDB"
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:47
|
||||||
|
msgid "Verify your API key in preferences"
|
||||||
|
msgstr "Ověřte váš klíč API v předvolbách"
|
||||||
|
|
||||||
|
#~ msgid "The title of the game"
|
||||||
|
#~ msgstr "Název hry"
|
||||||
|
|
||||||
|
#~ msgid "Developer"
|
||||||
|
#~ msgstr "Vývojář"
|
||||||
|
|
||||||
|
#~ msgid "File to open or command to run when launching the game"
|
||||||
|
#~ msgstr "Soubor nebo příkaz pro spuštění hry"
|
||||||
|
|
||||||
|
#~ msgid "Confirm"
|
||||||
|
#~ msgstr "Potvrdit"
|
||||||
712
po/de.po
Normal file
@@ -0,0 +1,712 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR kramo
|
||||||
|
# This file is distributed under the same license as the Cartridges package.
|
||||||
|
# Jummit <jummit@web.de>, 2023.
|
||||||
|
# WebSnke <websnke@tutanota.com>, 2023.
|
||||||
|
# Ettore Atalan <atalanttore@googlemail.com>, 2023.
|
||||||
|
# Simon Hahne <simonhahne@web.de>, 2023.
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Cartridges\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2023-08-16 11:06+0200\n"
|
||||||
|
"PO-Revision-Date: 2023-08-05 08:07+0000\n"
|
||||||
|
"Last-Translator: Simon Hahne <simonhahne@web.de>\n"
|
||||||
|
"Language-Team: German <https://hosted.weblate.org/projects/cartridges/"
|
||||||
|
"cartridges/de/>\n"
|
||||||
|
"Language: de\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||||
|
"X-Generator: Weblate 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:169
|
||||||
|
msgid "Cartridges"
|
||||||
|
msgstr "Cartridges"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:4
|
||||||
|
msgid "Game Launcher"
|
||||||
|
msgstr "Spiele-Launcher"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
|
msgid "Launch all your games"
|
||||||
|
msgstr "Starte all deine Spiele"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:11
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
|
||||||
|
msgid ""
|
||||||
|
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
|
||||||
|
msgstr "spiel;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
||||||
|
msgid ""
|
||||||
|
"Cartridges is a simple game launcher for all of your games. It has support "
|
||||||
|
"for importing games from Steam, Lutris, Heroic and more with no login "
|
||||||
|
"necessary. You can sort and hide games or download cover art from "
|
||||||
|
"SteamGridDB."
|
||||||
|
msgstr ""
|
||||||
|
"Cartridges ist ein einfacher Spiel-Launcher. Es unterstützt das Importieren "
|
||||||
|
"von Spielen aus Steam, Lutris, Heroic und mehr, keine Anmeldung "
|
||||||
|
"erforderlich. Du kannst sortieren, Spiele verstecken oder das Cover-Art aus "
|
||||||
|
"SteamGRID herunterladen."
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:30
|
||||||
|
msgid "Library"
|
||||||
|
msgstr "Bibliothek"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:34
|
||||||
|
msgid "Edit Game Details"
|
||||||
|
msgstr "Spieldetails bearbeiten"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:38 data/gtk/window.blp:71
|
||||||
|
#: src/details_window.py:67
|
||||||
|
msgid "Game Details"
|
||||||
|
msgstr "Spieldetails"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:418
|
||||||
|
#: src/details_window.py:241 src/importer/importer.py:292
|
||||||
|
#: src/importer/importer.py:342
|
||||||
|
msgid "Preferences"
|
||||||
|
msgstr "Einstellungen"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:25
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Abbrechen"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:57
|
||||||
|
msgid "New Cover"
|
||||||
|
msgstr "Neues Cover"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:75
|
||||||
|
msgid "Delete Cover"
|
||||||
|
msgstr "Cover löschen"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:102 data/gtk/game.blp:80
|
||||||
|
msgid "Title"
|
||||||
|
msgstr "Titel"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:105
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "The developer or publisher (optional)"
|
||||||
|
msgid "Developer (optional)"
|
||||||
|
msgstr "Der Entwickler oder Verlag (optional)"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:110
|
||||||
|
msgid "Executable"
|
||||||
|
msgstr "Ausführbare Datei"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:116
|
||||||
|
msgid "More Info"
|
||||||
|
msgstr "Weitere Informationen"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:195
|
||||||
|
msgid "Edit"
|
||||||
|
msgstr "Bearbeiten"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:107 src/window.py:171
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr "Verstecken"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:56
|
||||||
|
#: data/gtk/window.blp:209
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr "Entfernen"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:126 src/window.py:173
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr "Unverstecken"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
|
||||||
|
msgid "General"
|
||||||
|
msgstr "Allgemein"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr "Beenden"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:217 data/gtk/window.blp:257
|
||||||
|
#: data/gtk/window.blp:324
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "Suchen"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr "Einstellungen anzeigen"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr "Kürzel"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34 src/game.py:103 src/preferences.py:120
|
||||||
|
#: src/importer/importer.py:366
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "Rückgängig"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr "Menü öffnen"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgid "Games"
|
||||||
|
msgstr "Spiele"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr "Neues Spiel hinzufügen"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgid "Import games"
|
||||||
|
msgstr "Spiele importieren"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:58
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr "Ausgeblendete Spiele anzeigen"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:63
|
||||||
|
msgid "Remove game"
|
||||||
|
msgstr "Spiel entfernen"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:89
|
||||||
|
#: data/gtk/preferences.blp:304
|
||||||
|
msgid "Behavior"
|
||||||
|
msgstr "Verhalten"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:16
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr "Nach dem Starten von Spielen beenden"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Cover Image Launches Game"
|
||||||
|
msgstr "Coverbild Startet Spiel"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26
|
||||||
|
msgid "Swaps the behavior of the cover image and the play button"
|
||||||
|
msgstr "Tauscht das Verhalten des Covers und des Spielen-Knopfes"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:36 src/details_window.py:81
|
||||||
|
msgid "Images"
|
||||||
|
msgstr "Bilder"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:39
|
||||||
|
msgid "High Quality Images"
|
||||||
|
msgstr "Hochaufgelöste Bilder"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:40
|
||||||
|
msgid "Save game covers losslessly at the cost of storage"
|
||||||
|
msgstr "Speichere Spielcovers verlustfrei auf Kosten des Speicherplatzes"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:50
|
||||||
|
msgid "Danger Zone"
|
||||||
|
msgstr "Gefahrenzone"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:53
|
||||||
|
msgid "Remove All Games"
|
||||||
|
msgstr "Alle Spiele entfernen"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:85 data/gtk/window.blp:27 data/gtk/window.blp:444
|
||||||
|
msgid "Import"
|
||||||
|
msgstr "Importieren"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:92
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Remove All Games"
|
||||||
|
msgid "Remove Uninstalled Games"
|
||||||
|
msgstr "Alle Spiele entfernen"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:102
|
||||||
|
msgid "Sources"
|
||||||
|
msgstr "Quellen"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:105
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr "Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:109 data/gtk/preferences.blp:123
|
||||||
|
#: data/gtk/preferences.blp:164 data/gtk/preferences.blp:214
|
||||||
|
#: data/gtk/preferences.blp:228 data/gtk/preferences.blp:242
|
||||||
|
#: data/gtk/preferences.blp:256 data/gtk/preferences.blp:270
|
||||||
|
msgid "Install Location"
|
||||||
|
msgstr "Installationsort"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:119
|
||||||
|
msgid "Lutris"
|
||||||
|
msgstr "Lutris"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:132
|
||||||
|
msgid "Cache Location"
|
||||||
|
msgstr "Cache-Speicherort"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:141
|
||||||
|
msgid "Import Steam Games"
|
||||||
|
msgstr "Steam-Spiele importieren"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:150
|
||||||
|
msgid "Import Flatpak Games"
|
||||||
|
msgstr "Flatpak-Spiele importieren"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:160
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr "Heroic"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:173
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr "Epic Games importieren"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:182
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr "GOG-Spiele importieren"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:191
|
||||||
|
msgid "Import Amazon Games"
|
||||||
|
msgstr "Amazon-Spiele importieren"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:200
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr "Sideloaded-Spiele importieren"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:210
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr "Bottles"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:224
|
||||||
|
msgid "itch"
|
||||||
|
msgstr "itch"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:238
|
||||||
|
msgid "Legendary"
|
||||||
|
msgstr "Legendary"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:252
|
||||||
|
msgid "RetroArch"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:266
|
||||||
|
msgid "Flatpak"
|
||||||
|
msgstr "Flatpak"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:279
|
||||||
|
msgid "Import Game Launchers"
|
||||||
|
msgstr "Spiele-Launcher importieren"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:292
|
||||||
|
msgid "SteamGridDB"
|
||||||
|
msgstr "SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:296
|
||||||
|
msgid "Authentication"
|
||||||
|
msgstr "Authentifizierung"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:299
|
||||||
|
msgid "API Key"
|
||||||
|
msgstr "API-Schlüssel"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:307
|
||||||
|
msgid "Use SteamGridDB"
|
||||||
|
msgstr "SteamGridDB benutzen"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:308
|
||||||
|
msgid "Download images when adding or importing games"
|
||||||
|
msgstr "Lade Bilder herunter, wenn Spiele hinzugefügt oder importiert werden"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:317
|
||||||
|
msgid "Prefer Over Official Images"
|
||||||
|
msgstr "Über offizielien Images bevorzugen"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:326
|
||||||
|
msgid "Prefer Animated Images"
|
||||||
|
msgstr "Animierte Bilder bevorzugen"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 data/gtk/window.blp:14
|
||||||
|
msgid "No Games Found"
|
||||||
|
msgstr "Keine Spiele gefunden"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:7 data/gtk/window.blp:15
|
||||||
|
msgid "Try a different search."
|
||||||
|
msgstr "Versuche eine andere Suche."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:21
|
||||||
|
msgid "No Games"
|
||||||
|
msgstr "Keine Spiele"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:22
|
||||||
|
msgid "Use the + button to add games."
|
||||||
|
msgstr "Benutze denn + Knopf um Spiele hinzuzufügen."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:40
|
||||||
|
msgid "No Hidden Games"
|
||||||
|
msgstr "Keine versteckten Spiele"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:41
|
||||||
|
msgid "Games you hide will appear here."
|
||||||
|
msgstr "Ausgeblendete Spiele, werden hier angezeigt."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:64 data/gtk/window.blp:305
|
||||||
|
msgid "Back"
|
||||||
|
msgstr "Zurück"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:121
|
||||||
|
msgid "Game Title"
|
||||||
|
msgstr "Spieltitel"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:176
|
||||||
|
msgid "Play"
|
||||||
|
msgstr "Spielen"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:243 data/gtk/window.blp:437
|
||||||
|
msgid "Add Game"
|
||||||
|
msgstr "Spiel hinzufügen"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:250 data/gtk/window.blp:317
|
||||||
|
msgid "Main Menu"
|
||||||
|
msgstr "Hauptmenü"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:272
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Search"
|
||||||
|
msgid "Search games"
|
||||||
|
msgstr "Suchen"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:312
|
||||||
|
msgid "Hidden Games"
|
||||||
|
msgstr "Ausgeblendete Spiele"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:339
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Show hidden games"
|
||||||
|
msgid "Search hidden games"
|
||||||
|
msgstr "Ausgeblendete Spiele anzeigen"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:376
|
||||||
|
msgid "Sort"
|
||||||
|
msgstr "Sortierung"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:379
|
||||||
|
msgid "A-Z"
|
||||||
|
msgstr "A-Z"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:385
|
||||||
|
msgid "Z-A"
|
||||||
|
msgstr "Z-A"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:391
|
||||||
|
msgid "Newest"
|
||||||
|
msgstr "Neuestes"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:397
|
||||||
|
msgid "Oldest"
|
||||||
|
msgstr "Älteste"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:403
|
||||||
|
msgid "Last Played"
|
||||||
|
msgstr "Zuletzt gespielt"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:410
|
||||||
|
msgid "Show Hidden"
|
||||||
|
msgstr "Ausgeblendete anzeigen"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:423
|
||||||
|
msgid "Keyboard Shortcuts"
|
||||||
|
msgstr "Tastaturkürzel"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:428
|
||||||
|
msgid "About Cartridges"
|
||||||
|
msgstr "Über Cartridges"
|
||||||
|
|
||||||
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
|
#: src/main.py:188
|
||||||
|
msgid "translator_credits"
|
||||||
|
msgstr "Feliks Weber"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was added
|
||||||
|
#: src/window.py:194
|
||||||
|
msgid "Added: {}"
|
||||||
|
msgstr "Hinzugefügt: {}"
|
||||||
|
|
||||||
|
#: src/window.py:197
|
||||||
|
msgid "Never"
|
||||||
|
msgstr "Nie"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was last played
|
||||||
|
#: src/window.py:201
|
||||||
|
msgid "Last played: {}"
|
||||||
|
msgstr "Zuletzt gespielt: {}"
|
||||||
|
|
||||||
|
#: src/details_window.py:72
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr "Anwenden"
|
||||||
|
|
||||||
|
#: src/details_window.py:78
|
||||||
|
msgid "Add New Game"
|
||||||
|
msgstr "Neues Spiel hinzufügen"
|
||||||
|
|
||||||
|
#: src/details_window.py:79
|
||||||
|
msgid "Add"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "file"
|
||||||
|
#: src/details_window.py:92
|
||||||
|
msgid "file.txt"
|
||||||
|
msgstr "datei.txt"
|
||||||
|
|
||||||
|
#. As in software
|
||||||
|
#: src/details_window.py:94
|
||||||
|
msgid "program"
|
||||||
|
msgstr "Programm"
|
||||||
|
|
||||||
|
#. 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:\\pfad\\zu\\{}"
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "path to {}"
|
||||||
|
#: src/details_window.py:105 src/details_window.py:107
|
||||||
|
msgid "/path/to/{}"
|
||||||
|
msgstr "/pfad/zu/{}"
|
||||||
|
|
||||||
|
#: 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 ""
|
||||||
|
"Verwende diesen Kommando um die ausführbare Datei \"{}\" zu starten:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>\"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"Um die Datei \"{}\" mit der Standardanwendung zu öffnen, benutze:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>{} \"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"Falls der Pfad Leerzeichen enthält, stelle sicher ihn in doppelte "
|
||||||
|
"Anführungszeichen zu setzen!"
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:153
|
||||||
|
msgid "Couldn't Add Game"
|
||||||
|
msgstr "Konnte Spiel nicht hinzufügen"
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:183
|
||||||
|
msgid "Game title cannot be empty."
|
||||||
|
msgstr "Spieltitel kann nicht leer sein."
|
||||||
|
|
||||||
|
#: src/details_window.py:153 src/details_window.py:191
|
||||||
|
msgid "Executable cannot be empty."
|
||||||
|
msgstr "Ausführbare Datei darf nicht leer sein."
|
||||||
|
|
||||||
|
#: src/details_window.py:182 src/details_window.py:190
|
||||||
|
msgid "Couldn't Apply Preferences"
|
||||||
|
msgstr "Einstellungen konnten nicht angewendet werden"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:139
|
||||||
|
msgid "{} launched"
|
||||||
|
msgstr "{} gestartet"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} hidden"
|
||||||
|
msgstr "{} versteckt"
|
||||||
|
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} unhidden"
|
||||||
|
msgstr "{} unversteckt"
|
||||||
|
|
||||||
|
#. 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"
|
||||||
|
msgstr "{} entfernt"
|
||||||
|
|
||||||
|
#: src/preferences.py:119
|
||||||
|
msgid "All games removed"
|
||||||
|
msgstr "Alle Spiele entfernt"
|
||||||
|
|
||||||
|
#: src/preferences.py:168
|
||||||
|
msgid ""
|
||||||
|
"An API key is required to use SteamGridDB. You can generate one {}here{}."
|
||||||
|
msgstr ""
|
||||||
|
"Für die Nutzung von SteamGridDB ist ein API-Schlüssel erforderlich. Sie "
|
||||||
|
"können ihn {}hier{} generieren."
|
||||||
|
|
||||||
|
#: src/preferences.py:294
|
||||||
|
msgid "Installation Not Found"
|
||||||
|
msgstr "Installation nicht gefunden"
|
||||||
|
|
||||||
|
#: src/preferences.py:296
|
||||||
|
msgid "Select a valid directory."
|
||||||
|
msgstr "Wähle ein gültiges Verzeichnis aus."
|
||||||
|
|
||||||
|
#: src/preferences.py:351
|
||||||
|
msgid "Invalid Directory"
|
||||||
|
msgstr "Ungültiges Verzeichnis"
|
||||||
|
|
||||||
|
#: src/preferences.py:357
|
||||||
|
msgid "Set Location"
|
||||||
|
msgstr "Ort festlegen"
|
||||||
|
|
||||||
|
#: src/utils/create_dialog.py:25 src/importer/importer.py:291
|
||||||
|
msgid "Dismiss"
|
||||||
|
msgstr "Verstanden"
|
||||||
|
|
||||||
|
#: src/importer/importer.py:128
|
||||||
|
msgid "Importing Games…"
|
||||||
|
msgstr "Spiele werden importiert…"
|
||||||
|
|
||||||
|
#: 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
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "No Games Found"
|
||||||
|
msgid "No new games found"
|
||||||
|
msgstr "Keine Spiele gefunden"
|
||||||
|
|
||||||
|
#: src/importer/importer.py:351
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Game Imported"
|
||||||
|
msgid "1 game imported"
|
||||||
|
msgstr "Spiel Importiert"
|
||||||
|
|
||||||
|
#. The variable is the number of games
|
||||||
|
#: src/importer/importer.py:355
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Games Imported"
|
||||||
|
msgid "{} games imported"
|
||||||
|
msgstr "Spiele importiert"
|
||||||
|
|
||||||
|
#. A single game removed
|
||||||
|
#: src/importer/importer.py:359
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "{} removed"
|
||||||
|
msgid "1 removed"
|
||||||
|
msgstr "{} entfernt"
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:33
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Select the {} data directory."
|
||||||
|
msgid "Select the {} cache directory."
|
||||||
|
msgstr "Wähle das Cache-Verzeichnis von {} aus."
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:35
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Select the {} configuration directory."
|
||||||
|
msgid "Select the {} configuration directory."
|
||||||
|
msgstr "Wähle das Konfigurationsverzeichnis von {} aus."
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:37
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Select the {} data directory."
|
||||||
|
msgid "Select the {} data directory."
|
||||||
|
msgstr "Wähle das Datenverzeichnis von {} aus."
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:46
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Couldn't Connect to SteamGridDB"
|
||||||
|
msgid "Couldn't Authenticate SteamGridDB"
|
||||||
|
msgstr "Verbindung zu SteamGridDB konnte nicht hergestellt werden"
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:47
|
||||||
|
msgid "Verify your API key in preferences"
|
||||||
|
msgstr "Verifiziere deinen API-Schlüssel in den Einstellungen"
|
||||||
|
|
||||||
|
#~ msgid "The title of the game"
|
||||||
|
#~ msgstr "Der Titel des Spiels"
|
||||||
|
|
||||||
|
#~ msgid "Developer"
|
||||||
|
#~ msgstr "Entwickler"
|
||||||
|
|
||||||
|
#~ msgid "File to open or command to run when launching the game"
|
||||||
|
#~ msgstr "Datei zum Öffnen oder Befehl zum Starten des Spiels"
|
||||||
|
|
||||||
|
#~ msgid "Confirm"
|
||||||
|
#~ msgstr "Bestätigen"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "Cache Not Found"
|
||||||
|
#~ msgid "Directory not Valid"
|
||||||
|
#~ msgstr "Cache nicht gefunden"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "Confirm"
|
||||||
|
#~ msgid "Configuration"
|
||||||
|
#~ msgstr "Bestätigen"
|
||||||
|
|
||||||
|
#~ msgid "Steam Install Location"
|
||||||
|
#~ msgstr "Steam-Installationsort"
|
||||||
|
|
||||||
|
#~ msgid "Lutris Install Location"
|
||||||
|
#~ msgstr "Lutris-Installationsort"
|
||||||
|
|
||||||
|
#~ msgid "Heroic Install Location"
|
||||||
|
#~ msgstr "Heroic-Installationsort"
|
||||||
|
|
||||||
|
#~ msgid "Bottles Install Location"
|
||||||
|
#~ msgstr "Bottles-Installationsort"
|
||||||
|
|
||||||
|
#~ msgid "Today"
|
||||||
|
#~ msgstr "Heute"
|
||||||
|
|
||||||
|
#~ msgid "Yesterday"
|
||||||
|
#~ msgstr "Gestern"
|
||||||
|
|
||||||
|
#~ msgid "Select the Lutris cache directory."
|
||||||
|
#~ msgstr "Wähle das Lutris-Cache-Verzeichnis aus."
|
||||||
|
|
||||||
|
#~ msgid "Importing Covers…"
|
||||||
|
#~ msgstr "Spielecover werden importiert…"
|
||||||
|
|
||||||
|
#~ msgid "Directory to use when importing games"
|
||||||
|
#~ msgstr "Verzeichnis, das beim Importieren von Spielen verwendet wird"
|
||||||
|
|
||||||
|
#~ msgid "Extra Steam Libraries"
|
||||||
|
#~ msgstr "Extra Steam-Bibliotheken"
|
||||||
|
|
||||||
|
#~ msgid "Select other directories where you have Steam games installed"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "Wähle andere Verzeichnisse in denen du Steam-Spiele installiert hast"
|
||||||
|
|
||||||
|
#~ msgid "Clear"
|
||||||
|
#~ msgstr "Löchen"
|
||||||
|
|
||||||
|
#~ msgid "Directory to use when importing game covers"
|
||||||
|
#~ msgstr "Verzeichnis für den Import von Spiel-Covern"
|
||||||
|
|
||||||
|
#~ msgid "Details"
|
||||||
|
#~ msgstr "Details"
|
||||||
|
|
||||||
|
#~ msgid "No new games were found on your system."
|
||||||
|
#~ msgstr "Keine neuen Spiele auf deinem System gefunden."
|
||||||
|
|
||||||
|
#~ msgid "Successfully imported 1 game."
|
||||||
|
#~ msgstr "Erfolgreich 1 Spiel importiert."
|
||||||
|
|
||||||
|
#~ msgid "Successfully imported {} games."
|
||||||
|
#~ msgstr "Erfolgreich {} Spiele importiert."
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Looks like you have multiple Steam libraries. Would you like to add them "
|
||||||
|
#~ "in preferences?"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "Sieht aus als hättest du mehrere Steam-Bibliotheken. Möchtest du sie in "
|
||||||
|
#~ "den Einstellungen hinzufügen?"
|
||||||
|
|
||||||
|
#~ msgid "Launch your games"
|
||||||
|
#~ msgstr "Starte deine Spiele"
|
||||||
683
po/el.po
Normal file
@@ -0,0 +1,683 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR kramo
|
||||||
|
# This file is distributed under the same license as the Cartridges package.
|
||||||
|
# yiannis ioannides <sub@wai.ai>, 2023.
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Cartridges\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2023-08-16 11:06+0200\n"
|
||||||
|
"PO-Revision-Date: 2023-05-29 18:48+0000\n"
|
||||||
|
"Last-Translator: yiannis ioannides <sub@wai.ai>\n"
|
||||||
|
"Language-Team: Greek <https://hosted.weblate.org/projects/cartridges/"
|
||||||
|
"cartridges/el/>\n"
|
||||||
|
"Language: el\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||||
|
"X-Generator: Weblate 4.18-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:169
|
||||||
|
msgid "Cartridges"
|
||||||
|
msgstr "Κασέτες"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:4
|
||||||
|
msgid "Game Launcher"
|
||||||
|
msgstr "Πρόγραμμα Εκκίνησης Παιχνιδιών"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
|
msgid "Launch all your games"
|
||||||
|
msgstr "Εκκινήστε όλα σας τα παιχνίδια"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:11
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;"
|
||||||
|
msgid ""
|
||||||
|
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
|
||||||
|
msgstr "gaming;εκκινητής;steam;lutris;heroic;bottles;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 ""
|
||||||
|
"Οι Κασέτες είναι ένας απλός εκκινητής παιχνιδιών για όλα σας τα παιχνίδια. "
|
||||||
|
"Υποστηρίζει την εισαγωγή παιχνιδιών από το Steam, Heroic και άλλες "
|
||||||
|
"πλατφόρμες χωρίς σύνδεση να είναι απαραίτητη. Μπορείτε να ταξινομήσετε και "
|
||||||
|
"να κρύψετε τα παιχνίδια σας, καθώς και να κατεβάσετε τα εξώφυλλα τους από το "
|
||||||
|
"SteamGridDB."
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:30
|
||||||
|
msgid "Library"
|
||||||
|
msgstr "Βιβλιοθήκη"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:34
|
||||||
|
msgid "Edit Game Details"
|
||||||
|
msgstr "Επεξεργασία Λεπτομερειών Παιχνιδιού"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:38 data/gtk/window.blp:71
|
||||||
|
#: src/details_window.py:67
|
||||||
|
msgid "Game Details"
|
||||||
|
msgstr "Λεπτομέρειες Παιχνιδιού"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:418
|
||||||
|
#: src/details_window.py:241 src/importer/importer.py:292
|
||||||
|
#: src/importer/importer.py:342
|
||||||
|
msgid "Preferences"
|
||||||
|
msgstr "Προτιμήσεις"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:25
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Ακύρωση"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:57
|
||||||
|
msgid "New Cover"
|
||||||
|
msgstr "Νέο Εξώφυλλο"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:75
|
||||||
|
msgid "Delete Cover"
|
||||||
|
msgstr "Διαγραφή Εξώφυλλου"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:102 data/gtk/game.blp:80
|
||||||
|
msgid "Title"
|
||||||
|
msgstr "Τίτλος"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:105
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "The developer or publisher (optional)"
|
||||||
|
msgid "Developer (optional)"
|
||||||
|
msgstr "Προγραμματιστής ή Εκδότης (προαιρετικό)"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:110
|
||||||
|
msgid "Executable"
|
||||||
|
msgstr "Πρόγραμμα"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:116
|
||||||
|
msgid "More Info"
|
||||||
|
msgstr "Περισσότερες Πληροφορίες"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:195
|
||||||
|
msgid "Edit"
|
||||||
|
msgstr "Επεξεργασία"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:107 src/window.py:171
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr "Απόκρυψη"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:56
|
||||||
|
#: data/gtk/window.blp:209
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr "Αφαίρεση"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:126 src/window.py:173
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr "Φανέρωση"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
|
||||||
|
msgid "General"
|
||||||
|
msgstr "Γενικά"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr "Κλείσιμο"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:217 data/gtk/window.blp:257
|
||||||
|
#: data/gtk/window.blp:324
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "Εύρεση"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr "Εμφάνιση προτιμήσεων"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr "Συντομεύσεις"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34 src/game.py:103 src/preferences.py:120
|
||||||
|
#: src/importer/importer.py:366
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "Αναίρεση"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr "Άνοιγμα μενού"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgid "Games"
|
||||||
|
msgstr "Παιχνίδια"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr "Πρόσθεση νέου παιχνιδιού"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgid "Import games"
|
||||||
|
msgstr "Εισαγωγή παιχνιδιών"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:58
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr "Εμφάνιση κρυμμένων παιχνιδιών"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:63
|
||||||
|
msgid "Remove game"
|
||||||
|
msgstr "Αφαίρεση παιχνιδιού"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:89
|
||||||
|
#: data/gtk/preferences.blp:304
|
||||||
|
msgid "Behavior"
|
||||||
|
msgstr "Συμπεριφορά"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:16
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr "Έξοδος μετά την εκκίνηση παιχνιδιών"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Cover Image Launches Game"
|
||||||
|
msgstr "Εξώφυλλο εκκινεί το παιχνίδι"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26
|
||||||
|
msgid "Swaps the behavior of the cover image and the play button"
|
||||||
|
msgstr "Αντικατάσταση συμπεριφοράς εξωφύλλου και του κουμπιού αναπαραγωγής"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:36 src/details_window.py:81
|
||||||
|
msgid "Images"
|
||||||
|
msgstr "Εικόνες"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:39
|
||||||
|
msgid "High Quality Images"
|
||||||
|
msgstr "Εικόνες Υψηλής Ποιότητας"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:40
|
||||||
|
msgid "Save game covers losslessly at the cost of storage"
|
||||||
|
msgstr ""
|
||||||
|
"Αποθήκευση εξωφύλλου παιχνιδιού σε υψηλή ευκρίνεια, με κόστος τη χωρητικότητα"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:50
|
||||||
|
msgid "Danger Zone"
|
||||||
|
msgstr "Επικίνδυνη Ζώνη"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:53
|
||||||
|
msgid "Remove All Games"
|
||||||
|
msgstr "Αφαίρεση Όλων Των Παιχνιδιών"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:85 data/gtk/window.blp:27 data/gtk/window.blp:444
|
||||||
|
msgid "Import"
|
||||||
|
msgstr "Εισαγωγή"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:92
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Remove All Games"
|
||||||
|
msgid "Remove Uninstalled Games"
|
||||||
|
msgstr "Αφαίρεση Όλων Των Παιχνιδιών"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:102
|
||||||
|
msgid "Sources"
|
||||||
|
msgstr "Πηγές"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:105
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr "Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:109 data/gtk/preferences.blp:123
|
||||||
|
#: data/gtk/preferences.blp:164 data/gtk/preferences.blp:214
|
||||||
|
#: data/gtk/preferences.blp:228 data/gtk/preferences.blp:242
|
||||||
|
#: data/gtk/preferences.blp:256 data/gtk/preferences.blp:270
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "itch Install Location"
|
||||||
|
msgid "Install Location"
|
||||||
|
msgstr "Τοποθεσία Εγκατάστασης itch"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:119
|
||||||
|
msgid "Lutris"
|
||||||
|
msgstr "Lutris"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:132
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Lutris Cache Location"
|
||||||
|
msgid "Cache Location"
|
||||||
|
msgstr "Τοποθεσία cache του Lutris"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:141
|
||||||
|
msgid "Import Steam Games"
|
||||||
|
msgstr "Εισαγωγή Παιχνιδιών Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:150
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Import Steam Games"
|
||||||
|
msgid "Import Flatpak Games"
|
||||||
|
msgstr "Εισαγωγή Παιχνιδιών Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:160
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr "Heroic"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:173
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr "Εισαγωγή Παιχνιδιών Epic"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:182
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr "Εισαγωγή Παιχνιδιών GOG"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:191
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Import Steam Games"
|
||||||
|
msgid "Import Amazon Games"
|
||||||
|
msgstr "Εισαγωγή Παιχνιδιών Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:200
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr "Εισαγωγή Παιχνιδιών Μέσω Sideloading"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:210
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr "Bottles"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:224
|
||||||
|
msgid "itch"
|
||||||
|
msgstr "itch"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:238
|
||||||
|
msgid "Legendary"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:252
|
||||||
|
msgid "RetroArch"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:266
|
||||||
|
msgid "Flatpak"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:279
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Game Launcher"
|
||||||
|
msgid "Import Game Launchers"
|
||||||
|
msgstr "Πρόγραμμα Εκκίνησης Παιχνιδιών"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:292
|
||||||
|
msgid "SteamGridDB"
|
||||||
|
msgstr "SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:296
|
||||||
|
msgid "Authentication"
|
||||||
|
msgstr "Επιβεβαίωση"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:299
|
||||||
|
msgid "API Key"
|
||||||
|
msgstr "Κλειδί API"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:307
|
||||||
|
msgid "Use SteamGridDB"
|
||||||
|
msgstr "Χρήση SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:308
|
||||||
|
msgid "Download images when adding or importing games"
|
||||||
|
msgstr "Λήψη εικόνων κατά τη διάρκεια πρόσθεσης ή εισαγωγής παιχνιδιών"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:317
|
||||||
|
msgid "Prefer Over Official Images"
|
||||||
|
msgstr "Προτίμηση Επίσημων Εικόνων"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:326
|
||||||
|
msgid "Prefer Animated Images"
|
||||||
|
msgstr "Προτίμηση Κινούμενων Εικόνων"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 data/gtk/window.blp:14
|
||||||
|
msgid "No Games Found"
|
||||||
|
msgstr "Δεν Βρέθηκαν Παιχνίδια"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:7 data/gtk/window.blp:15
|
||||||
|
msgid "Try a different search."
|
||||||
|
msgstr "Δοκιμάστε μια διαφορετική αναζήτηση."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:21
|
||||||
|
msgid "No Games"
|
||||||
|
msgstr "Δίχως Παιχνίδια"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:22
|
||||||
|
msgid "Use the + button to add games."
|
||||||
|
msgstr "Χρησιμοποιήστε το κουμπί + για να προσθέσετε παιχνίδια."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:40
|
||||||
|
msgid "No Hidden Games"
|
||||||
|
msgstr "Δεν υπάρχουν κρυφά παιχνίδια"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:41
|
||||||
|
msgid "Games you hide will appear here."
|
||||||
|
msgstr "Τα παιχνίδια που κρύβετε θα εμφανίζονται εδώ."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:64 data/gtk/window.blp:305
|
||||||
|
msgid "Back"
|
||||||
|
msgstr "Πίσω"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:121
|
||||||
|
msgid "Game Title"
|
||||||
|
msgstr "Τίτλος παιχνιδιού"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:176
|
||||||
|
msgid "Play"
|
||||||
|
msgstr "Παίξτε"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:243 data/gtk/window.blp:437
|
||||||
|
msgid "Add Game"
|
||||||
|
msgstr "Προσθήκη παιχνιδιού"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:250 data/gtk/window.blp:317
|
||||||
|
msgid "Main Menu"
|
||||||
|
msgstr "Κύριο μενού"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:272
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Search"
|
||||||
|
msgid "Search games"
|
||||||
|
msgstr "Εύρεση"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:312
|
||||||
|
msgid "Hidden Games"
|
||||||
|
msgstr "Κρυμμένα παιχνίδια"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:339
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Show hidden games"
|
||||||
|
msgid "Search hidden games"
|
||||||
|
msgstr "Εμφάνιση κρυμμένων παιχνιδιών"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:376
|
||||||
|
msgid "Sort"
|
||||||
|
msgstr "Ταξινόμηση"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:379
|
||||||
|
msgid "A-Z"
|
||||||
|
msgstr "Α-Ζ"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:385
|
||||||
|
msgid "Z-A"
|
||||||
|
msgstr "Ζ-Α"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:391
|
||||||
|
msgid "Newest"
|
||||||
|
msgstr "Νεότερο"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:397
|
||||||
|
msgid "Oldest"
|
||||||
|
msgstr "Παλαιότερο"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:403
|
||||||
|
msgid "Last Played"
|
||||||
|
msgstr "Τελευταία αναπαραγωγή"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:410
|
||||||
|
msgid "Show Hidden"
|
||||||
|
msgstr "Εμφάνιση Κρυφών"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:423
|
||||||
|
msgid "Keyboard Shortcuts"
|
||||||
|
msgstr "Συντομεύσεις Πληκτρολογίου"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:428
|
||||||
|
msgid "About Cartridges"
|
||||||
|
msgstr "Σχετικά με τις Κασέτες"
|
||||||
|
|
||||||
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
|
#: src/main.py:188
|
||||||
|
msgid "translator_credits"
|
||||||
|
msgstr "Yiannis Ioannides"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was added
|
||||||
|
#: src/window.py:194
|
||||||
|
msgid "Added: {}"
|
||||||
|
msgstr "Προστέθηκε: {}"
|
||||||
|
|
||||||
|
#: src/window.py:197
|
||||||
|
msgid "Never"
|
||||||
|
msgstr "Ποτέ"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was last played
|
||||||
|
#: src/window.py:201
|
||||||
|
msgid "Last played: {}"
|
||||||
|
msgstr "Τελευταία αναπαραγωγή: {}"
|
||||||
|
|
||||||
|
#: src/details_window.py:72
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr "Εφαρμογή"
|
||||||
|
|
||||||
|
#: src/details_window.py:78
|
||||||
|
msgid "Add New Game"
|
||||||
|
msgstr "Προσθήκη νέου παιχνιδιού"
|
||||||
|
|
||||||
|
#: src/details_window.py:79
|
||||||
|
msgid "Add"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "file"
|
||||||
|
#: src/details_window.py:92
|
||||||
|
msgid "file.txt"
|
||||||
|
msgstr "αρχειο.txt"
|
||||||
|
|
||||||
|
#. As in software
|
||||||
|
#: src/details_window.py:94
|
||||||
|
msgid "program"
|
||||||
|
msgstr "Πρόγραμμα"
|
||||||
|
|
||||||
|
#. 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:\\προς\\φάκελο\\{}"
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "path to {}"
|
||||||
|
#: src/details_window.py:105 src/details_window.py:107
|
||||||
|
msgid "/path/to/{}"
|
||||||
|
msgstr "/προς/φάκελο/{}"
|
||||||
|
|
||||||
|
#: 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 ""
|
||||||
|
"Για να εκτελέσετε την εφαρμογή \"{}\", χρησιμοποιήστε την εντολή:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>\"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"Για να ανοίξετε το αρχείο \"{}\" με την προεπιλεγμένη εφαρμογή, "
|
||||||
|
"χρησιμοποιήστε:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>{} \"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"Αν η διεύθυνση φακέλου περιέχει κενά, φροντίστε να την περικλείσετε σε διπλά "
|
||||||
|
"εισαγωγικά!"
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:153
|
||||||
|
msgid "Couldn't Add Game"
|
||||||
|
msgstr "Αδυναμία προσθήκης παιχνιδιού"
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:183
|
||||||
|
msgid "Game title cannot be empty."
|
||||||
|
msgstr "Ο τίτλος παιχνιδιού δεν μπορεί να είναι κενός."
|
||||||
|
|
||||||
|
#: src/details_window.py:153 src/details_window.py:191
|
||||||
|
msgid "Executable cannot be empty."
|
||||||
|
msgstr "Η εφαρμογή δεν μπορεί να είναι κενή."
|
||||||
|
|
||||||
|
#: src/details_window.py:182 src/details_window.py:190
|
||||||
|
msgid "Couldn't Apply Preferences"
|
||||||
|
msgstr "Αδυναμία Εφαρμογής Προτιμήσεων"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:139
|
||||||
|
msgid "{} launched"
|
||||||
|
msgstr "{} εκκινήθη"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} hidden"
|
||||||
|
msgstr "{} αποκρύφθηκε"
|
||||||
|
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} unhidden"
|
||||||
|
msgstr "{} φανερώθηκε"
|
||||||
|
|
||||||
|
#. 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"
|
||||||
|
msgstr "{} αφαιρέθηκε"
|
||||||
|
|
||||||
|
#: src/preferences.py:119
|
||||||
|
msgid "All games removed"
|
||||||
|
msgstr "Όλα τα παιχνίδια αφαιρέθηκαν"
|
||||||
|
|
||||||
|
#: src/preferences.py:168
|
||||||
|
msgid ""
|
||||||
|
"An API key is required to use SteamGridDB. You can generate one {}here{}."
|
||||||
|
msgstr ""
|
||||||
|
"Για τη χρήση του SteamGridDB απαιτείται ένα κλειδί API. Μπορείτε να "
|
||||||
|
"δημιουργήσετε ένα {}εδώ{}."
|
||||||
|
|
||||||
|
#: src/preferences.py:294
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Installation Not Found"
|
||||||
|
msgid "Installation Not Found"
|
||||||
|
msgstr "Η εγκατάσταση δεν βρέθηκε"
|
||||||
|
|
||||||
|
#: src/preferences.py:296
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Select the {} data directory."
|
||||||
|
msgid "Select a valid directory."
|
||||||
|
msgstr "Επιλέξτε τον κατάλογο δεδομένων {}."
|
||||||
|
|
||||||
|
#: src/preferences.py:351
|
||||||
|
msgid "Invalid Directory"
|
||||||
|
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 "1 παιχνίδι εισήχθη"
|
||||||
|
|
||||||
|
#. 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
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "{} removed"
|
||||||
|
msgid "1 removed"
|
||||||
|
msgstr "{} αφαιρέθηκε"
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:33
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Select the {} data directory."
|
||||||
|
msgid "Select the {} cache directory."
|
||||||
|
msgstr "Επιλέξτε τον κατάλογο δεδομένων {}."
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:35
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Select the {} configuration directory."
|
||||||
|
msgid "Select the {} configuration directory."
|
||||||
|
msgstr "Επιλέξτε τον κατάλογο διαμόρφωσης {}."
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:37
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Select the {} data directory."
|
||||||
|
msgid "Select the {} data directory."
|
||||||
|
msgstr "Επιλέξτε τον κατάλογο δεδομένων {}."
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:46
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Couldn't Connect to SteamGridDB"
|
||||||
|
msgid "Couldn't Authenticate SteamGridDB"
|
||||||
|
msgstr "Η σύνδεση στο SteamGridDB δεν μπόρεσε να πραγματοποιηθεί"
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:47
|
||||||
|
msgid "Verify your API key in preferences"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#~ msgid "The title of the game"
|
||||||
|
#~ msgstr "Τίτλος Παιχνιδιού"
|
||||||
|
|
||||||
|
#~ msgid "Developer"
|
||||||
|
#~ msgstr "Προγραμματιστής"
|
||||||
|
|
||||||
|
#~ msgid "File to open or command to run when launching the game"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "Αρχείο προς άνοιγμα ή εντολή προς εκτέλεση κατά την εκκίνηση παιχνιδιού"
|
||||||
|
|
||||||
|
#~ msgid "Confirm"
|
||||||
|
#~ msgstr "Επιβεβαίωση"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "Cache Not Found"
|
||||||
|
#~ msgid "Directory not Valid"
|
||||||
|
#~ msgstr "Τα cache δεν βρέθηκαν"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "Confirm"
|
||||||
|
#~ msgid "Configuration"
|
||||||
|
#~ msgstr "Επιβεβαίωση"
|
||||||
|
|
||||||
|
#~ msgid "Steam Install Location"
|
||||||
|
#~ msgstr "Τοποθεσία Εγκατάστασης Steam"
|
||||||
|
|
||||||
|
#~ msgid "Lutris Install Location"
|
||||||
|
#~ msgstr "Τοποθεσία Εγκατάστασης Lutris"
|
||||||
|
|
||||||
|
#~ msgid "Heroic Install Location"
|
||||||
|
#~ msgstr "Τοποθεσία Εγκατάστασης Heroic"
|
||||||
|
|
||||||
|
#~ msgid "Bottles Install Location"
|
||||||
|
#~ msgstr "Τοποθεσία Εγκατάστασης Bottles"
|
||||||
|
|
||||||
|
#~ msgid "Today"
|
||||||
|
#~ msgstr "Σήμερα"
|
||||||
|
|
||||||
|
#~ msgid "Yesterday"
|
||||||
|
#~ msgstr "Χθες"
|
||||||
|
|
||||||
|
#~ msgid "Select the Lutris cache directory."
|
||||||
|
#~ msgstr "Επιλέξτε τη τοποθεσία cache του Lutris."
|
||||||
|
|
||||||
|
#~ msgid "Importing Covers…"
|
||||||
|
#~ msgstr "Εισαγωγή εξώφυλλων…"
|
||||||
604
po/fa.po
Normal file
@@ -0,0 +1,604 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR kramo
|
||||||
|
# This file is distributed under the same license as the Cartridges package.
|
||||||
|
# سید حسین موسوی فرد <shmf1385@protonmail.com>, 2023.
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Cartridges\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2023-08-16 11:06+0200\n"
|
||||||
|
"PO-Revision-Date: 2023-04-22 10:48+0000\n"
|
||||||
|
"Last-Translator: سید حسین موسوی فرد <shmf1385@protonmail.com>\n"
|
||||||
|
"Language-Team: Persian <https://hosted.weblate.org/projects/cartridges/"
|
||||||
|
"cartridges/fa/>\n"
|
||||||
|
"Language: fa\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||||
|
"X-Generator: Weblate 4.18-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:169
|
||||||
|
msgid "Cartridges"
|
||||||
|
msgstr "کارتریجها"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:4
|
||||||
|
msgid "Game Launcher"
|
||||||
|
msgstr "اجراگر بازی"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
|
msgid "Launch all your games"
|
||||||
|
msgstr "اجرای همهٔ بازیهای شما"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:11
|
||||||
|
msgid ""
|
||||||
|
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: 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 ""
|
||||||
|
"کارتریج یک اجراگر سادهٔ بازی برای همهٔ بازیهای شماست. کارتریج میتواند بدون "
|
||||||
|
"نیاز به ورود، بازیهای شما را از استیم، لوتریس، هیروییک و... وارد کند. شما "
|
||||||
|
"میتوانید بازیهای خود را پنهان کنید یا جلدشان را از SteamGridDB بارگیری کنید."
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:30
|
||||||
|
msgid "Library"
|
||||||
|
msgstr "کتابخانه"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:34
|
||||||
|
msgid "Edit Game Details"
|
||||||
|
msgstr "ویرایش جزییات بازی"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:38 data/gtk/window.blp:71
|
||||||
|
#: src/details_window.py:67
|
||||||
|
msgid "Game Details"
|
||||||
|
msgstr "جزییات بازی"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:418
|
||||||
|
#: src/details_window.py:241 src/importer/importer.py:292
|
||||||
|
#: src/importer/importer.py:342
|
||||||
|
msgid "Preferences"
|
||||||
|
msgstr "ترجیحات"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:25
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:57
|
||||||
|
msgid "New Cover"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:75
|
||||||
|
msgid "Delete Cover"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:102 data/gtk/game.blp:80
|
||||||
|
msgid "Title"
|
||||||
|
msgstr "عنوان"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:105
|
||||||
|
msgid "Developer (optional)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:110
|
||||||
|
msgid "Executable"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:116
|
||||||
|
msgid "More Info"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:195
|
||||||
|
msgid "Edit"
|
||||||
|
msgstr "ویرایش"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:107 src/window.py:171
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr "پنهان کردن"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:56
|
||||||
|
#: data/gtk/window.blp:209
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr "حذف"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:126 src/window.py:173
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr "پیدا کردن"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
|
||||||
|
msgid "General"
|
||||||
|
msgstr "عمومی"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr "خروج"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:217 data/gtk/window.blp:257
|
||||||
|
#: data/gtk/window.blp:324
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "جستوجو"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr "نمایش ترجیحات"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr "میانبرها"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34 src/game.py:103 src/preferences.py:120
|
||||||
|
#: src/importer/importer.py:366
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "برگردان"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr "گشودن فهرست"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgid "Games"
|
||||||
|
msgstr "بازیها"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr "افزدون بازی"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgid "Import games"
|
||||||
|
msgstr "درونریزی بازی"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:58
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr "نمایش بازیهای پنهان"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:63
|
||||||
|
msgid "Remove game"
|
||||||
|
msgstr "حذف کردن بازی"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:89
|
||||||
|
#: data/gtk/preferences.blp:304
|
||||||
|
msgid "Behavior"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:16
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr "خروج پس از اجرا کردن بازی"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Cover Image Launches Game"
|
||||||
|
msgstr "عکس جلد بازی را باز میکند"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26
|
||||||
|
msgid "Swaps the behavior of the cover image and the play button"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:36 src/details_window.py:81
|
||||||
|
msgid "Images"
|
||||||
|
msgstr "عکسها"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:39
|
||||||
|
msgid "High Quality Images"
|
||||||
|
msgstr "عکسهای با کیفیت بالا"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:40
|
||||||
|
msgid "Save game covers losslessly at the cost of storage"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:50
|
||||||
|
msgid "Danger Zone"
|
||||||
|
msgstr "منطقهٔ خطر"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:53
|
||||||
|
msgid "Remove All Games"
|
||||||
|
msgstr "حذف کردن همهٔ بازیها"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:85 data/gtk/window.blp:27 data/gtk/window.blp:444
|
||||||
|
msgid "Import"
|
||||||
|
msgstr "درونریزی"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:92
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Remove All Games"
|
||||||
|
msgid "Remove Uninstalled Games"
|
||||||
|
msgstr "حذف کردن همهٔ بازیها"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:102
|
||||||
|
msgid "Sources"
|
||||||
|
msgstr "منبعها"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:105
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr "استیم"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:109 data/gtk/preferences.blp:123
|
||||||
|
#: data/gtk/preferences.blp:164 data/gtk/preferences.blp:214
|
||||||
|
#: data/gtk/preferences.blp:228 data/gtk/preferences.blp:242
|
||||||
|
#: data/gtk/preferences.blp:256 data/gtk/preferences.blp:270
|
||||||
|
msgid "Install Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:119
|
||||||
|
msgid "Lutris"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:132
|
||||||
|
msgid "Cache Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:141
|
||||||
|
msgid "Import Steam Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:150
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Import games"
|
||||||
|
msgid "Import Flatpak Games"
|
||||||
|
msgstr "درونریزی بازی"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:160
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:173
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:182
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:191
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Import games"
|
||||||
|
msgid "Import Amazon Games"
|
||||||
|
msgstr "درونریزی بازی"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:200
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:210
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:224
|
||||||
|
msgid "itch"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:238
|
||||||
|
msgid "Legendary"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:252
|
||||||
|
msgid "RetroArch"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:266
|
||||||
|
msgid "Flatpak"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:279
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Game Launcher"
|
||||||
|
msgid "Import Game Launchers"
|
||||||
|
msgstr "اجراگر بازی"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:292
|
||||||
|
msgid "SteamGridDB"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:296
|
||||||
|
msgid "Authentication"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:299
|
||||||
|
msgid "API Key"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:307
|
||||||
|
msgid "Use SteamGridDB"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:308
|
||||||
|
msgid "Download images when adding or importing games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:317
|
||||||
|
msgid "Prefer Over Official Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:326
|
||||||
|
msgid "Prefer Animated Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 data/gtk/window.blp:14
|
||||||
|
msgid "No Games Found"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:7 data/gtk/window.blp:15
|
||||||
|
msgid "Try a different search."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:21
|
||||||
|
msgid "No Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:22
|
||||||
|
msgid "Use the + button to add games."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:40
|
||||||
|
msgid "No Hidden Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:41
|
||||||
|
msgid "Games you hide will appear here."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:64 data/gtk/window.blp:305
|
||||||
|
msgid "Back"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:121
|
||||||
|
msgid "Game Title"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:176
|
||||||
|
msgid "Play"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:243 data/gtk/window.blp:437
|
||||||
|
msgid "Add Game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:250 data/gtk/window.blp:317
|
||||||
|
msgid "Main Menu"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:272
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Search"
|
||||||
|
msgid "Search games"
|
||||||
|
msgstr "جستوجو"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:312
|
||||||
|
msgid "Hidden Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:339
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Show hidden games"
|
||||||
|
msgid "Search hidden games"
|
||||||
|
msgstr "نمایش بازیهای پنهان"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:376
|
||||||
|
msgid "Sort"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:379
|
||||||
|
msgid "A-Z"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:385
|
||||||
|
msgid "Z-A"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:391
|
||||||
|
msgid "Newest"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:397
|
||||||
|
msgid "Oldest"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:403
|
||||||
|
msgid "Last Played"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:410
|
||||||
|
msgid "Show Hidden"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:423
|
||||||
|
msgid "Keyboard Shortcuts"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:428
|
||||||
|
msgid "About Cartridges"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
|
#: src/main.py:188
|
||||||
|
msgid "translator_credits"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the date when the game was added
|
||||||
|
#: src/window.py:194
|
||||||
|
msgid "Added: {}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/window.py:197
|
||||||
|
msgid "Never"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the date when the game was last played
|
||||||
|
#: src/window.py:201
|
||||||
|
msgid "Last played: {}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/details_window.py:72
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/details_window.py:78
|
||||||
|
msgid "Add New Game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/details_window.py:79
|
||||||
|
msgid "Add"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "file"
|
||||||
|
#: src/details_window.py:92
|
||||||
|
msgid "file.txt"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. As in software
|
||||||
|
#: src/details_window.py:94
|
||||||
|
msgid "program"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "path to {}"
|
||||||
|
#: src/details_window.py:99 src/details_window.py:101
|
||||||
|
msgid "C:\\path\\to\\{}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "path to {}"
|
||||||
|
#: src/details_window.py:105 src/details_window.py:107
|
||||||
|
msgid "/path/to/{}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: 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 ""
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:153
|
||||||
|
msgid "Couldn't Add Game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:183
|
||||||
|
msgid "Game title cannot be empty."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/details_window.py:153 src/details_window.py:191
|
||||||
|
msgid "Executable cannot be empty."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/details_window.py:182 src/details_window.py:190
|
||||||
|
msgid "Couldn't Apply Preferences"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:139
|
||||||
|
msgid "{} launched"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} hidden"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} unhidden"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. 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"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:119
|
||||||
|
msgid "All games removed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:168
|
||||||
|
msgid ""
|
||||||
|
"An API key is required to use SteamGridDB. You can generate one {}here{}."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:294
|
||||||
|
msgid "Installation Not Found"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:296
|
||||||
|
msgid "Select a valid directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:351
|
||||||
|
msgid "Invalid Directory"
|
||||||
|
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
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Import games"
|
||||||
|
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
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Add new game"
|
||||||
|
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
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Remove"
|
||||||
|
msgid "1 removed"
|
||||||
|
msgstr "حذف"
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:33
|
||||||
|
msgid "Select the {} cache directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:35
|
||||||
|
msgid "Select the {} configuration directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:37
|
||||||
|
msgid "Select the {} data directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:46
|
||||||
|
msgid "Couldn't Authenticate SteamGridDB"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:47
|
||||||
|
msgid "Verify your API key in preferences"
|
||||||
|
msgstr ""
|
||||||
609
po/ko.po
Normal file
@@ -0,0 +1,609 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR kramo
|
||||||
|
# This file is distributed under the same license as the Cartridges package.
|
||||||
|
# MJKim <kmj10727@gmail.com>, 2023.
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Cartridges\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2023-08-16 11:06+0200\n"
|
||||||
|
"PO-Revision-Date: 2023-03-28 22:23+0000\n"
|
||||||
|
"Last-Translator: MJKim <kmj10727@gmail.com>\n"
|
||||||
|
"Language-Team: Korean <https://hosted.weblate.org/projects/cartridges/"
|
||||||
|
"cartridges/ko/>\n"
|
||||||
|
"Language: ko\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||||
|
"X-Generator: Weblate 4.17-dev\n"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:3
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
|
||||||
|
#: src/main.py:169
|
||||||
|
msgid "Cartridges"
|
||||||
|
msgstr "카트리지"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:4
|
||||||
|
msgid "Game Launcher"
|
||||||
|
msgstr "게임 런처"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
|
msgid "Launch all your games"
|
||||||
|
msgstr "모든 게임을 실행합니다"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:11
|
||||||
|
msgid ""
|
||||||
|
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid ""
|
||||||
|
#| "Cartridges is a simple game launcher. It has support for importing your "
|
||||||
|
#| "games from Steam, Heroic and Bottles with organizational features such as "
|
||||||
|
#| "hiding and sorting by date added or last played."
|
||||||
|
msgid ""
|
||||||
|
"Cartridges is a simple game launcher for all of your games. It has support "
|
||||||
|
"for importing games from Steam, Lutris, Heroic and more with no login "
|
||||||
|
"necessary. You can sort and hide games or download cover art from "
|
||||||
|
"SteamGridDB."
|
||||||
|
msgstr ""
|
||||||
|
"카트리지는 간단한 게임 런처입니다. 추가한 날짜 또는 마지막으로 플레이한 날짜"
|
||||||
|
"별로 게임을 숨기거나 정렬하는 등의 정리 기능을 통해 Steam, Heroic 및 Bottles"
|
||||||
|
"에서 게임을 가져올 수 있습니다."
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:30
|
||||||
|
msgid "Library"
|
||||||
|
msgstr "라이브러리"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:34
|
||||||
|
msgid "Edit Game Details"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:38 data/gtk/window.blp:71
|
||||||
|
#: src/details_window.py:67
|
||||||
|
msgid "Game Details"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:418
|
||||||
|
#: src/details_window.py:241 src/importer/importer.py:292
|
||||||
|
#: src/importer/importer.py:342
|
||||||
|
msgid "Preferences"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:25
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:57
|
||||||
|
msgid "New Cover"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:75
|
||||||
|
msgid "Delete Cover"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:102 data/gtk/game.blp:80
|
||||||
|
msgid "Title"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:105
|
||||||
|
msgid "Developer (optional)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:110
|
||||||
|
msgid "Executable"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:116
|
||||||
|
msgid "More Info"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:195
|
||||||
|
msgid "Edit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:107 src/window.py:171
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:56
|
||||||
|
#: data/gtk/window.blp:209
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:126 src/window.py:173
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
|
||||||
|
msgid "General"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:217 data/gtk/window.blp:257
|
||||||
|
#: data/gtk/window.blp:324
|
||||||
|
msgid "Search"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34 src/game.py:103 src/preferences.py:120
|
||||||
|
#: src/importer/importer.py:366
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "No Games"
|
||||||
|
msgid "Games"
|
||||||
|
msgstr "게임이 없습니다"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "No Games"
|
||||||
|
msgid "Import games"
|
||||||
|
msgstr "게임이 없습니다"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:58
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:63
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "No Games"
|
||||||
|
msgid "Remove game"
|
||||||
|
msgstr "게임이 없습니다"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:89
|
||||||
|
#: data/gtk/preferences.blp:304
|
||||||
|
msgid "Behavior"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:16
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Cover Image Launches Game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26
|
||||||
|
msgid "Swaps the behavior of the cover image and the play button"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:36 src/details_window.py:81
|
||||||
|
msgid "Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:39
|
||||||
|
msgid "High Quality Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:40
|
||||||
|
msgid "Save game covers losslessly at the cost of storage"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:50
|
||||||
|
msgid "Danger Zone"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:53
|
||||||
|
msgid "Remove All Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:85 data/gtk/window.blp:27 data/gtk/window.blp:444
|
||||||
|
msgid "Import"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:92
|
||||||
|
msgid "Remove Uninstalled Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:102
|
||||||
|
msgid "Sources"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:105
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:109 data/gtk/preferences.blp:123
|
||||||
|
#: data/gtk/preferences.blp:164 data/gtk/preferences.blp:214
|
||||||
|
#: data/gtk/preferences.blp:228 data/gtk/preferences.blp:242
|
||||||
|
#: data/gtk/preferences.blp:256 data/gtk/preferences.blp:270
|
||||||
|
msgid "Install Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:119
|
||||||
|
msgid "Lutris"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:132
|
||||||
|
msgid "Cache Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:141
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "No Games"
|
||||||
|
msgid "Import Steam Games"
|
||||||
|
msgstr "게임이 없습니다"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:150
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "No Games"
|
||||||
|
msgid "Import Flatpak Games"
|
||||||
|
msgstr "게임이 없습니다"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:160
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:173
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:182
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:191
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "No Games"
|
||||||
|
msgid "Import Amazon Games"
|
||||||
|
msgstr "게임이 없습니다"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:200
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:210
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:224
|
||||||
|
msgid "itch"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:238
|
||||||
|
msgid "Legendary"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:252
|
||||||
|
msgid "RetroArch"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:266
|
||||||
|
msgid "Flatpak"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:279
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Game Launcher"
|
||||||
|
msgid "Import Game Launchers"
|
||||||
|
msgstr "게임 런처"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:292
|
||||||
|
msgid "SteamGridDB"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:296
|
||||||
|
msgid "Authentication"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:299
|
||||||
|
msgid "API Key"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:307
|
||||||
|
msgid "Use SteamGridDB"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:308
|
||||||
|
msgid "Download images when adding or importing games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:317
|
||||||
|
msgid "Prefer Over Official Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:326
|
||||||
|
msgid "Prefer Animated Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 data/gtk/window.blp:14
|
||||||
|
msgid "No Games Found"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:7 data/gtk/window.blp:15
|
||||||
|
msgid "Try a different search."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:21
|
||||||
|
msgid "No Games"
|
||||||
|
msgstr "게임이 없습니다"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:22
|
||||||
|
msgid "Use the + button to add games."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:40
|
||||||
|
msgid "No Hidden Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:41
|
||||||
|
msgid "Games you hide will appear here."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:64 data/gtk/window.blp:305
|
||||||
|
msgid "Back"
|
||||||
|
msgstr "뒤로"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:121
|
||||||
|
msgid "Game Title"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:176
|
||||||
|
msgid "Play"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:243 data/gtk/window.blp:437
|
||||||
|
msgid "Add Game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:250 data/gtk/window.blp:317
|
||||||
|
msgid "Main Menu"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:272
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Launch your games"
|
||||||
|
msgid "Search games"
|
||||||
|
msgstr "게임을 실행합니다"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:312
|
||||||
|
msgid "Hidden Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:339
|
||||||
|
msgid "Search hidden games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:376
|
||||||
|
msgid "Sort"
|
||||||
|
msgstr "정렬"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:379
|
||||||
|
msgid "A-Z"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:385
|
||||||
|
msgid "Z-A"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:391
|
||||||
|
msgid "Newest"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:397
|
||||||
|
msgid "Oldest"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:403
|
||||||
|
msgid "Last Played"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:410
|
||||||
|
msgid "Show Hidden"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:423
|
||||||
|
msgid "Keyboard Shortcuts"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:428
|
||||||
|
msgid "About Cartridges"
|
||||||
|
msgstr "카트리지 정보"
|
||||||
|
|
||||||
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
|
#: src/main.py:188
|
||||||
|
msgid "translator_credits"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the date when the game was added
|
||||||
|
#: src/window.py:194
|
||||||
|
msgid "Added: {}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/window.py:197
|
||||||
|
msgid "Never"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the date when the game was last played
|
||||||
|
#: src/window.py:201
|
||||||
|
msgid "Last played: {}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/details_window.py:72
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/details_window.py:78
|
||||||
|
msgid "Add New Game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/details_window.py:79
|
||||||
|
msgid "Add"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "file"
|
||||||
|
#: src/details_window.py:92
|
||||||
|
msgid "file.txt"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. As in software
|
||||||
|
#: src/details_window.py:94
|
||||||
|
msgid "program"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "path to {}"
|
||||||
|
#: src/details_window.py:99 src/details_window.py:101
|
||||||
|
msgid "C:\\path\\to\\{}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "path to {}"
|
||||||
|
#: src/details_window.py:105 src/details_window.py:107
|
||||||
|
msgid "/path/to/{}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: 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 ""
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:153
|
||||||
|
msgid "Couldn't Add Game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:183
|
||||||
|
msgid "Game title cannot be empty."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/details_window.py:153 src/details_window.py:191
|
||||||
|
msgid "Executable cannot be empty."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/details_window.py:182 src/details_window.py:190
|
||||||
|
msgid "Couldn't Apply Preferences"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:139
|
||||||
|
msgid "{} launched"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} hidden"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} unhidden"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. 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"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:119
|
||||||
|
msgid "All games removed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:168
|
||||||
|
msgid ""
|
||||||
|
"An API key is required to use SteamGridDB. You can generate one {}here{}."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:294
|
||||||
|
msgid "Installation Not Found"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:296
|
||||||
|
msgid "Select a valid directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:351
|
||||||
|
msgid "Invalid Directory"
|
||||||
|
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
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "No Games"
|
||||||
|
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
|
||||||
|
#: src/importer/sources/location.py:33
|
||||||
|
msgid "Select the {} cache directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:35
|
||||||
|
msgid "Select the {} configuration directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:37
|
||||||
|
msgid "Select the {} data directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:46
|
||||||
|
msgid "Couldn't Authenticate SteamGridDB"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:47
|
||||||
|
msgid "Verify your API key in preferences"
|
||||||
|
msgstr ""
|
||||||
1026
po/nb_NO.po
702
po/pl.po
Normal file
@@ -0,0 +1,702 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR kramo
|
||||||
|
# This file is distributed under the same license as the Cartridges package.
|
||||||
|
# Artur Wróblewski <krypalkora1984@gmail.com>, 2023.
|
||||||
|
# Kshyso <Kshysio@protonmail.com>, 2023.
|
||||||
|
# Eryk Michalak <gnu.ewm@protonmail.com>, 2023.
|
||||||
|
# Michaks <fexwex3@gmail.com>, 2023.
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Cartridges\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2023-08-16 11:06+0200\n"
|
||||||
|
"PO-Revision-Date: 2023-07-24 13:05+0000\n"
|
||||||
|
"Last-Translator: Michaks <fexwex3@gmail.com>\n"
|
||||||
|
"Language-Team: Polish <https://hosted.weblate.org/projects/cartridges/"
|
||||||
|
"cartridges/pl/>\n"
|
||||||
|
"Language: pl\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%10>=2 && n%10<=4 && (n%100<10 "
|
||||||
|
"|| n%100>=20) ? 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:169
|
||||||
|
msgid "Cartridges"
|
||||||
|
msgstr "Kartridże"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:4
|
||||||
|
msgid "Game Launcher"
|
||||||
|
msgstr "Launcher Gier"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
|
msgid "Launch all your games"
|
||||||
|
msgstr "Uruchom wszystkie swoje gry"
|
||||||
|
|
||||||
|
#: 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;retroarch;"
|
||||||
|
msgstr "gry;gaming;launcher;steam;lutris;heroic;bottles;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 ""
|
||||||
|
"Cartridges to prosty launcher gier dla wszystkich twoich gier. Posiada "
|
||||||
|
"wsparcie dla importu gier ze Steam, Lutris, Heroic i innych bez konieczności "
|
||||||
|
"logowania. Możesz sortować i ukrywać gry lub pobierać okładki ze SteamGridDB."
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:30
|
||||||
|
msgid "Library"
|
||||||
|
msgstr "Biblioteka"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:34
|
||||||
|
msgid "Edit Game Details"
|
||||||
|
msgstr "Edycja szczegółów gry"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:38 data/gtk/window.blp:71
|
||||||
|
#: src/details_window.py:67
|
||||||
|
msgid "Game Details"
|
||||||
|
msgstr "Szczegóły gry"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:418
|
||||||
|
#: src/details_window.py:241 src/importer/importer.py:292
|
||||||
|
#: src/importer/importer.py:342
|
||||||
|
msgid "Preferences"
|
||||||
|
msgstr "Preferencje"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:25
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Anuluj"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:57
|
||||||
|
msgid "New Cover"
|
||||||
|
msgstr "Nowa okładka"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:75
|
||||||
|
msgid "Delete Cover"
|
||||||
|
msgstr "Usuń osłonę"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:102 data/gtk/game.blp:80
|
||||||
|
msgid "Title"
|
||||||
|
msgstr "Tytuł"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:105
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "The developer or publisher (optional)"
|
||||||
|
msgid "Developer (optional)"
|
||||||
|
msgstr "Twórca lub wydawca (opcjonalnie)"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:110
|
||||||
|
msgid "Executable"
|
||||||
|
msgstr "Wykonywalne"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:116
|
||||||
|
msgid "More Info"
|
||||||
|
msgstr "Więcej informacji"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:195
|
||||||
|
msgid "Edit"
|
||||||
|
msgstr "Edytuj"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:107 src/window.py:171
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr "Ukryj"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:56
|
||||||
|
#: data/gtk/window.blp:209
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr "Usuń"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:126 src/window.py:173
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr "Odkryj"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
|
||||||
|
msgid "General"
|
||||||
|
msgstr "Ogólne"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr "Wyjdź"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:217 data/gtk/window.blp:257
|
||||||
|
#: data/gtk/window.blp:324
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "Szukaj"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr "Pokaż preferencje"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr "Skróty"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34 src/game.py:103 src/preferences.py:120
|
||||||
|
#: src/importer/importer.py:366
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "Wróć"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr "Otwórz menu"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgid "Games"
|
||||||
|
msgstr "Gry"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr "Dodaj nową gre"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgid "Import games"
|
||||||
|
msgstr "Importuj gry"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:58
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr "Pokaż ukryte gry"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:63
|
||||||
|
msgid "Remove game"
|
||||||
|
msgstr "Usuń grę"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:89
|
||||||
|
#: data/gtk/preferences.blp:304
|
||||||
|
msgid "Behavior"
|
||||||
|
msgstr "Zachowanie"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:16
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr "Wyjdź po uruchomieniu gry"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Cover Image Launches Game"
|
||||||
|
msgstr "Obraz okładki uruchamia grę"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26
|
||||||
|
msgid "Swaps the behavior of the cover image and the play button"
|
||||||
|
msgstr "Zamienia zachowanie obrazu okładki i przycisku odtwarzania"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:36 src/details_window.py:81
|
||||||
|
msgid "Images"
|
||||||
|
msgstr "Obrazy"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:39
|
||||||
|
msgid "High Quality Images"
|
||||||
|
msgstr "Wysokiej jakości obrazy"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:40
|
||||||
|
msgid "Save game covers losslessly at the cost of storage"
|
||||||
|
msgstr "Zapisywanie okładek gier bezstratnie kosztem pamięci masowej"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:50
|
||||||
|
msgid "Danger Zone"
|
||||||
|
msgstr "Strefa zagrożenia"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:53
|
||||||
|
msgid "Remove All Games"
|
||||||
|
msgstr "Usuń wszystkie gry"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:85 data/gtk/window.blp:27 data/gtk/window.blp:444
|
||||||
|
msgid "Import"
|
||||||
|
msgstr "Importuj"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:92
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Remove All Games"
|
||||||
|
msgid "Remove Uninstalled Games"
|
||||||
|
msgstr "Usuń wszystkie gry"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:102
|
||||||
|
msgid "Sources"
|
||||||
|
msgstr "Źródła"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:105
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr "Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:109 data/gtk/preferences.blp:123
|
||||||
|
#: data/gtk/preferences.blp:164 data/gtk/preferences.blp:214
|
||||||
|
#: data/gtk/preferences.blp:228 data/gtk/preferences.blp:242
|
||||||
|
#: data/gtk/preferences.blp:256 data/gtk/preferences.blp:270
|
||||||
|
msgid "Install Location"
|
||||||
|
msgstr "Lokalizacja instalacji"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:119
|
||||||
|
msgid "Lutris"
|
||||||
|
msgstr "Lutris"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:132
|
||||||
|
msgid "Cache Location"
|
||||||
|
msgstr "Lokalizacja pamięci podręcznej"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:141
|
||||||
|
msgid "Import Steam Games"
|
||||||
|
msgstr "Importuj gry Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:150
|
||||||
|
msgid "Import Flatpak Games"
|
||||||
|
msgstr "Importuj gry Flatpak"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:160
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr "Heroic"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:173
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr "Zaimportuj Epic Games"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:182
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr "Importuj gry z GOG"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:191
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Import Steam Games"
|
||||||
|
msgid "Import Amazon Games"
|
||||||
|
msgstr "Importuj gry Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:200
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr "Importuj gry w wersji Sideloaded"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:210
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr "Butelki"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:224
|
||||||
|
msgid "itch"
|
||||||
|
msgstr "itch"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:238
|
||||||
|
msgid "Legendary"
|
||||||
|
msgstr "Legendarne"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:252
|
||||||
|
msgid "RetroArch"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:266
|
||||||
|
msgid "Flatpak"
|
||||||
|
msgstr "Flatpak"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:279
|
||||||
|
msgid "Import Game Launchers"
|
||||||
|
msgstr "Importuj programy uruchamiające gry"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:292
|
||||||
|
msgid "SteamGridDB"
|
||||||
|
msgstr "SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:296
|
||||||
|
msgid "Authentication"
|
||||||
|
msgstr "Uwierzytelnianie"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:299
|
||||||
|
msgid "API Key"
|
||||||
|
msgstr "Klucz API"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:307
|
||||||
|
msgid "Use SteamGridDB"
|
||||||
|
msgstr "Użyj SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:308
|
||||||
|
msgid "Download images when adding or importing games"
|
||||||
|
msgstr "Pobieranie obrazów podczas dodawania lub importowania gier"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:317
|
||||||
|
msgid "Prefer Over Official Images"
|
||||||
|
msgstr "Preferuj ponad Oficjalne zdjęcia"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:326
|
||||||
|
msgid "Prefer Animated Images"
|
||||||
|
msgstr "Preferuj animowane obrazy"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 data/gtk/window.blp:14
|
||||||
|
msgid "No Games Found"
|
||||||
|
msgstr "Nie znaleziono żadnych gier"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:7 data/gtk/window.blp:15
|
||||||
|
msgid "Try a different search."
|
||||||
|
msgstr "Spróbuj innego wyszukiwania."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:21
|
||||||
|
msgid "No Games"
|
||||||
|
msgstr "Brak gier"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:22
|
||||||
|
msgid "Use the + button to add games."
|
||||||
|
msgstr "Użyj przycisku +, aby dodać gry."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:40
|
||||||
|
msgid "No Hidden Games"
|
||||||
|
msgstr "Brak ukrytych gier"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:41
|
||||||
|
msgid "Games you hide will appear here."
|
||||||
|
msgstr "Gry, które ukryjesz, pojawią się tutaj."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:64 data/gtk/window.blp:305
|
||||||
|
msgid "Back"
|
||||||
|
msgstr "Powrót"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:121
|
||||||
|
msgid "Game Title"
|
||||||
|
msgstr "Tytuł gry"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:176
|
||||||
|
msgid "Play"
|
||||||
|
msgstr "Graj"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:243 data/gtk/window.blp:437
|
||||||
|
msgid "Add Game"
|
||||||
|
msgstr "Dodaj grę"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:250 data/gtk/window.blp:317
|
||||||
|
msgid "Main Menu"
|
||||||
|
msgstr "Menu główne"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:272
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Search"
|
||||||
|
msgid "Search games"
|
||||||
|
msgstr "Szukaj"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:312
|
||||||
|
msgid "Hidden Games"
|
||||||
|
msgstr "Ukryte gry"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:339
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Show hidden games"
|
||||||
|
msgid "Search hidden games"
|
||||||
|
msgstr "Pokaż ukryte gry"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:376
|
||||||
|
msgid "Sort"
|
||||||
|
msgstr "Sortuj"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:379
|
||||||
|
msgid "A-Z"
|
||||||
|
msgstr "A-Z"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:385
|
||||||
|
msgid "Z-A"
|
||||||
|
msgstr "Z-A"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:391
|
||||||
|
msgid "Newest"
|
||||||
|
msgstr "Najnowsza"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:397
|
||||||
|
msgid "Oldest"
|
||||||
|
msgstr "Najstarszy"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:403
|
||||||
|
msgid "Last Played"
|
||||||
|
msgstr "Ostatnio odtwarzane"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:410
|
||||||
|
msgid "Show Hidden"
|
||||||
|
msgstr "Pokaż ukryte"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:423
|
||||||
|
msgid "Keyboard Shortcuts"
|
||||||
|
msgstr "Skróty klawiaturowe"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:428
|
||||||
|
msgid "About Cartridges"
|
||||||
|
msgstr "O Kartridżach"
|
||||||
|
|
||||||
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
|
#: src/main.py:188
|
||||||
|
msgid "translator_credits"
|
||||||
|
msgstr "kredyty tłumacza"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was added
|
||||||
|
#: src/window.py:194
|
||||||
|
msgid "Added: {}"
|
||||||
|
msgstr "Dodano: {}"
|
||||||
|
|
||||||
|
#: src/window.py:197
|
||||||
|
msgid "Never"
|
||||||
|
msgstr "Nigdy"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was last played
|
||||||
|
#: src/window.py:201
|
||||||
|
msgid "Last played: {}"
|
||||||
|
msgstr "Ostatnio grane: {}"
|
||||||
|
|
||||||
|
#: src/details_window.py:72
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr "Zastosuj"
|
||||||
|
|
||||||
|
#: src/details_window.py:78
|
||||||
|
msgid "Add New Game"
|
||||||
|
msgstr "Dodaj nową Grę"
|
||||||
|
|
||||||
|
#: src/details_window.py:79
|
||||||
|
msgid "Add"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "file"
|
||||||
|
#: src/details_window.py:92
|
||||||
|
msgid "file.txt"
|
||||||
|
msgstr "plik.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:\\scieżka\\do\\{}"
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "path to {}"
|
||||||
|
#: src/details_window.py:105 src/details_window.py:107
|
||||||
|
msgid "/path/to/{}"
|
||||||
|
msgstr "/ścieżka/do/{}"
|
||||||
|
|
||||||
|
#: 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 ""
|
||||||
|
"Aby uruchomić plik wykonywalny \"{}\", należy użyć polecenia:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>\"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"Aby otworzyć plik \"{}\" za pomocą domyślnej aplikacji, użyj:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>{} \"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"Jeśli ścieżka zawiera spacje, pamiętaj, aby zawinąć ją w podwójne cudzysłowy!"
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:153
|
||||||
|
msgid "Couldn't Add Game"
|
||||||
|
msgstr "Nie można było dodać gry"
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:183
|
||||||
|
msgid "Game title cannot be empty."
|
||||||
|
msgstr "Tytuł gry nie może być pusty."
|
||||||
|
|
||||||
|
#: src/details_window.py:153 src/details_window.py:191
|
||||||
|
msgid "Executable cannot be empty."
|
||||||
|
msgstr "Plik wykonywalny nie może być pusty."
|
||||||
|
|
||||||
|
#: src/details_window.py:182 src/details_window.py:190
|
||||||
|
msgid "Couldn't Apply Preferences"
|
||||||
|
msgstr "Nie można zastosować preferencji"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:139
|
||||||
|
msgid "{} launched"
|
||||||
|
msgstr "{} uruchomiony"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} hidden"
|
||||||
|
msgstr "{} ukryte"
|
||||||
|
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} unhidden"
|
||||||
|
msgstr "{} nieukryty"
|
||||||
|
|
||||||
|
#. 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"
|
||||||
|
msgstr "{} usunięty"
|
||||||
|
|
||||||
|
#: src/preferences.py:119
|
||||||
|
msgid "All games removed"
|
||||||
|
msgstr "Wszystkie gry usunięte"
|
||||||
|
|
||||||
|
#: src/preferences.py:168
|
||||||
|
msgid ""
|
||||||
|
"An API key is required to use SteamGridDB. You can generate one {}here{}."
|
||||||
|
msgstr ""
|
||||||
|
"Do korzystania z SteamGridDB wymagany jest klucz API. Możesz go wygenerować "
|
||||||
|
"{} tutaj{}."
|
||||||
|
|
||||||
|
#: src/preferences.py:294
|
||||||
|
msgid "Installation Not Found"
|
||||||
|
msgstr "Nie znaleziono instalacji"
|
||||||
|
|
||||||
|
#: src/preferences.py:296
|
||||||
|
msgid "Select a valid directory."
|
||||||
|
msgstr "Wybierz prawidłowy katalog."
|
||||||
|
|
||||||
|
#: src/preferences.py:351
|
||||||
|
msgid "Invalid Directory"
|
||||||
|
msgstr "Nieprawidłowy katalog"
|
||||||
|
|
||||||
|
#: src/preferences.py:357
|
||||||
|
msgid "Set Location"
|
||||||
|
msgstr "Ustaw położenie"
|
||||||
|
|
||||||
|
#: src/utils/create_dialog.py:25 src/importer/importer.py:291
|
||||||
|
msgid "Dismiss"
|
||||||
|
msgstr "Odrzucić"
|
||||||
|
|
||||||
|
#: src/importer/importer.py:128
|
||||||
|
msgid "Importing Games…"
|
||||||
|
msgstr "Importowanie gier…"
|
||||||
|
|
||||||
|
#: 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
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "No Games Found"
|
||||||
|
msgid "No new games found"
|
||||||
|
msgstr "Nie znaleziono żadnych gier"
|
||||||
|
|
||||||
|
#: src/importer/importer.py:351
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Game Imported"
|
||||||
|
msgid "1 game imported"
|
||||||
|
msgstr "Gra Importowana"
|
||||||
|
|
||||||
|
#. The variable is the number of games
|
||||||
|
#: src/importer/importer.py:355
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Games Imported"
|
||||||
|
msgid "{} games imported"
|
||||||
|
msgstr "Gry Przywiezione"
|
||||||
|
|
||||||
|
#. A single game removed
|
||||||
|
#: src/importer/importer.py:359
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "{} removed"
|
||||||
|
msgid "1 removed"
|
||||||
|
msgstr "{} usunięty"
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:33
|
||||||
|
msgid "Select the {} cache directory."
|
||||||
|
msgstr "Wybierz katalog pamięci podręcznej {}."
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:35
|
||||||
|
msgid "Select the {} configuration directory."
|
||||||
|
msgstr "Wybierz katalog konfiguracyjny {}."
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:37
|
||||||
|
msgid "Select the {} data directory."
|
||||||
|
msgstr "Wybierz katalog z danymi {}."
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:46
|
||||||
|
msgid "Couldn't Authenticate SteamGridDB"
|
||||||
|
msgstr "Nie można uwierzytelnić SteamGridDB"
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:47
|
||||||
|
msgid "Verify your API key in preferences"
|
||||||
|
msgstr "Zweryfikuj swój klucz API w preferencjach"
|
||||||
|
|
||||||
|
#~ msgid "The title of the game"
|
||||||
|
#~ msgstr "Tytuł Gry"
|
||||||
|
|
||||||
|
#~ msgid "Developer"
|
||||||
|
#~ msgstr "Deweloper"
|
||||||
|
|
||||||
|
#~ msgid "File to open or command to run when launching the game"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "Plik do otwarcia lub polecenie do uruchomienia podczas uruchamiania gry"
|
||||||
|
|
||||||
|
#~ msgid "Confirm"
|
||||||
|
#~ msgstr "Potwierdź"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "Cache Not Found"
|
||||||
|
#~ msgid "Directory not Valid"
|
||||||
|
#~ msgstr "Nie znaleziono pamięci podręcznej"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "Confirm"
|
||||||
|
#~ msgid "Configuration"
|
||||||
|
#~ msgstr "Potwierdź"
|
||||||
|
|
||||||
|
#~ msgid "Steam Install Location"
|
||||||
|
#~ msgstr "Lokalizacja instalacji Steam"
|
||||||
|
|
||||||
|
#~ msgid "Lutris Install Location"
|
||||||
|
#~ msgstr "Lokalizacja instalacji Lutris"
|
||||||
|
|
||||||
|
#~ msgid "Heroic Install Location"
|
||||||
|
#~ msgstr "Lokalizacja instalacji Heroic"
|
||||||
|
|
||||||
|
#~ msgid "Bottles Install Location"
|
||||||
|
#~ msgstr "Butelki Miejsce montażu"
|
||||||
|
|
||||||
|
#~ msgid "Today"
|
||||||
|
#~ msgstr "Dzisiaj"
|
||||||
|
|
||||||
|
#~ msgid "Yesterday"
|
||||||
|
#~ msgstr "Wczoraj"
|
||||||
|
|
||||||
|
#~ msgid "Select the Lutris cache directory."
|
||||||
|
#~ msgstr "Wybierz katalog pamięci podręcznej Lutris."
|
||||||
|
|
||||||
|
#~ msgid "Importing Covers…"
|
||||||
|
#~ msgstr "Importowanie okładek…"
|
||||||
|
|
||||||
|
#~ msgid "Directory to use when importing games"
|
||||||
|
#~ msgstr "Katalog używany podczas importowania gier"
|
||||||
|
|
||||||
|
#~ msgid "Extra Steam Libraries"
|
||||||
|
#~ msgstr "Dodatkowe biblioteki Steam"
|
||||||
|
|
||||||
|
#~ msgid "Select other directories where you have Steam games installed"
|
||||||
|
#~ msgstr "Wybierz inne katalogi, w których masz zainstalowane gry Steam"
|
||||||
|
|
||||||
|
#~ msgid "Clear"
|
||||||
|
#~ msgstr "Wyczyść"
|
||||||
|
|
||||||
|
#~ msgid "Directory to use when importing game covers"
|
||||||
|
#~ msgstr "Katalog do użycia podczas importowania okładek gier"
|
||||||
|
|
||||||
|
#~ msgid "Details"
|
||||||
|
#~ msgstr "Szczegóły"
|
||||||
|
|
||||||
|
#~ msgid "No new games were found on your system."
|
||||||
|
#~ msgstr "W systemie nie znaleziono żadnych nowych gier."
|
||||||
|
|
||||||
|
#~ msgid "Successfully imported 1 game."
|
||||||
|
#~ msgstr "Udało się zaimportować 1 grę."
|
||||||
|
|
||||||
|
#~ msgid "Successfully imported {} games."
|
||||||
|
#~ msgstr "Udało się zaimportować {} gier."
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Looks like you have multiple Steam libraries. Would you like to add them "
|
||||||
|
#~ "in preferences?"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "Wygląda na to, że masz wiele bibliotek Steam. Czy chciałbyś dodać je w "
|
||||||
|
#~ "preferencjach?"
|
||||||
797
po/pt.po
Normal file
@@ -0,0 +1,797 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the cartridges package.
|
||||||
|
# Pedro Sader Azevedo <pedro.saderazevedo@protonmail.com>, 2023.
|
||||||
|
# kramo <contact@kramo.hu>, 2023.
|
||||||
|
# Henrique Machado <henriquecamposrj@gmail.com>, 2023.
|
||||||
|
# João Alves <joao.2003.couto@gmail.com>, 2023.
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: cartridges\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2023-08-16 11:06+0200\n"
|
||||||
|
"PO-Revision-Date: 2023-06-04 22:47+0000\n"
|
||||||
|
"Last-Translator: João Alves <joao.2003.couto@gmail.com>\n"
|
||||||
|
"Language-Team: Portuguese <https://hosted.weblate.org/projects/cartridges/"
|
||||||
|
"cartridges/pt/>\n"
|
||||||
|
"Language: pt\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||||
|
"X-Generator: Weblate 4.18-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:169
|
||||||
|
msgid "Cartridges"
|
||||||
|
msgstr "Cartridges"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:4
|
||||||
|
msgid "Game Launcher"
|
||||||
|
msgstr "Iniciador de jogos"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
|
msgid "Launch all your games"
|
||||||
|
msgstr "Inicie todos os seus jogos"
|
||||||
|
|
||||||
|
#: 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;retroarch;"
|
||||||
|
msgstr "gaming;iniciador;steam;lutris;heroic;bottles;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 ""
|
||||||
|
"Cartridges é um lançador de jogos simples para todos os seus jogos. Tem "
|
||||||
|
"suporte para importar jogos do Steam, Lutris, Heroic e muito mais, sem "
|
||||||
|
"necessidade de login. Você pode classificar e ocultar jogos ou baixar a capa "
|
||||||
|
"do SteamGridDB."
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:30
|
||||||
|
msgid "Library"
|
||||||
|
msgstr "Biblioteca"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:34
|
||||||
|
msgid "Edit Game Details"
|
||||||
|
msgstr "Editar detalhes do jogo"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:38 data/gtk/window.blp:71
|
||||||
|
#: src/details_window.py:67
|
||||||
|
msgid "Game Details"
|
||||||
|
msgstr "Detalhes do jogo"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:418
|
||||||
|
#: src/details_window.py:241 src/importer/importer.py:292
|
||||||
|
#: src/importer/importer.py:342
|
||||||
|
msgid "Preferences"
|
||||||
|
msgstr "Preferências"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:25
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Cancelar"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:57
|
||||||
|
msgid "New Cover"
|
||||||
|
msgstr "Nova capa"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:75
|
||||||
|
msgid "Delete Cover"
|
||||||
|
msgstr "Apagar capa"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:102 data/gtk/game.blp:80
|
||||||
|
msgid "Title"
|
||||||
|
msgstr "Título"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:105
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "The developer or publisher (optional)"
|
||||||
|
msgid "Developer (optional)"
|
||||||
|
msgstr "O desenvolvedor ou publicador (opcional)"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:110
|
||||||
|
msgid "Executable"
|
||||||
|
msgstr "Executável"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:116
|
||||||
|
msgid "More Info"
|
||||||
|
msgstr "Mais informação"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:195
|
||||||
|
msgid "Edit"
|
||||||
|
msgstr "Editar"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:107 src/window.py:171
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr "Ocultar"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:56
|
||||||
|
#: data/gtk/window.blp:209
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr "Remover"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:126 src/window.py:173
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr "Exibir"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
|
||||||
|
msgid "General"
|
||||||
|
msgstr "Geral"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr "Sair"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:217 data/gtk/window.blp:257
|
||||||
|
#: data/gtk/window.blp:324
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "Buscar"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr "Mostrar preferências"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr "Atalhos"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34 src/game.py:103 src/preferences.py:120
|
||||||
|
#: src/importer/importer.py:366
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "Desfazer"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr "Abrir menu"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgid "Games"
|
||||||
|
msgstr "Jogos"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr "Adicionar novo jogo"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgid "Import games"
|
||||||
|
msgstr "Importar jogos"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:58
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr "Exibir jogos ocultados"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:63
|
||||||
|
msgid "Remove game"
|
||||||
|
msgstr "Remover jogo"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:89
|
||||||
|
#: data/gtk/preferences.blp:304
|
||||||
|
msgid "Behavior"
|
||||||
|
msgstr "Comportamento"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:16
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr "Fechar Cartridges ao iniciar um jogo"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Cover Image Launches Game"
|
||||||
|
msgstr "Clicar na capa inicia o jogo"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26
|
||||||
|
msgid "Swaps the behavior of the cover image and the play button"
|
||||||
|
msgstr "Troca o comportamento de clicar na capa do jogo e do botão Jogar"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:36 src/details_window.py:81
|
||||||
|
msgid "Images"
|
||||||
|
msgstr "Imagens"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:39
|
||||||
|
msgid "High Quality Images"
|
||||||
|
msgstr "Imagens de alta qualidade"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:40
|
||||||
|
msgid "Save game covers losslessly at the cost of storage"
|
||||||
|
msgstr "Salva imagens das capas sem perda, consumindo mais armazenamento"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:50
|
||||||
|
msgid "Danger Zone"
|
||||||
|
msgstr "Zona de perigo"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:53
|
||||||
|
msgid "Remove All Games"
|
||||||
|
msgstr "Remover todos os jogos"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:85 data/gtk/window.blp:27 data/gtk/window.blp:444
|
||||||
|
msgid "Import"
|
||||||
|
msgstr "Importar"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:92
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Remove All Games"
|
||||||
|
msgid "Remove Uninstalled Games"
|
||||||
|
msgstr "Remover todos os jogos"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:102
|
||||||
|
msgid "Sources"
|
||||||
|
msgstr "Fontes"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:105
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr "Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:109 data/gtk/preferences.blp:123
|
||||||
|
#: data/gtk/preferences.blp:164 data/gtk/preferences.blp:214
|
||||||
|
#: data/gtk/preferences.blp:228 data/gtk/preferences.blp:242
|
||||||
|
#: data/gtk/preferences.blp:256 data/gtk/preferences.blp:270
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "itch Install Location"
|
||||||
|
msgid "Install Location"
|
||||||
|
msgstr "Local de instalação do itch"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:119
|
||||||
|
msgid "Lutris"
|
||||||
|
msgstr "Lutris"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:132
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Lutris Cache Location"
|
||||||
|
msgid "Cache Location"
|
||||||
|
msgstr "Local do cache do Lutris"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:141
|
||||||
|
msgid "Import Steam Games"
|
||||||
|
msgstr "Importar jogos da Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:150
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Import Steam Games"
|
||||||
|
msgid "Import Flatpak Games"
|
||||||
|
msgstr "Importar jogos da Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:160
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr "Heroic"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:173
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr "Importar jogos da Epic Games"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:182
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr "Importar jogos do GOG"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:191
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Import Steam Games"
|
||||||
|
msgid "Import Amazon Games"
|
||||||
|
msgstr "Importar jogos da Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:200
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr "Importar jogos adicionados manualmente"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:210
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr "Bottles"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:224
|
||||||
|
msgid "itch"
|
||||||
|
msgstr "itch"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:238
|
||||||
|
msgid "Legendary"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:252
|
||||||
|
msgid "RetroArch"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:266
|
||||||
|
msgid "Flatpak"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:279
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Game Launcher"
|
||||||
|
msgid "Import Game Launchers"
|
||||||
|
msgstr "Iniciador de jogos"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:292
|
||||||
|
msgid "SteamGridDB"
|
||||||
|
msgstr "SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:296
|
||||||
|
msgid "Authentication"
|
||||||
|
msgstr "Autenticação"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:299
|
||||||
|
msgid "API Key"
|
||||||
|
msgstr "Chave da API"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:307
|
||||||
|
msgid "Use SteamGridDB"
|
||||||
|
msgstr "Usar SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:308
|
||||||
|
msgid "Download images when adding or importing games"
|
||||||
|
msgstr "Baixa imagens ao adicionar ou importar jogos"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:317
|
||||||
|
msgid "Prefer Over Official Images"
|
||||||
|
msgstr "Preferir mais que as imagens oficiais"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:326
|
||||||
|
msgid "Prefer Animated Images"
|
||||||
|
msgstr "Preferir imagens animadas"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 data/gtk/window.blp:14
|
||||||
|
msgid "No Games Found"
|
||||||
|
msgstr "Nenhum jogo encontrado"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:7 data/gtk/window.blp:15
|
||||||
|
msgid "Try a different search."
|
||||||
|
msgstr "Tente outra pesquisa."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:21
|
||||||
|
msgid "No Games"
|
||||||
|
msgstr "Sem jogos"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:22
|
||||||
|
msgid "Use the + button to add games."
|
||||||
|
msgstr "Use o botão + para adicionar jogos."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:40
|
||||||
|
msgid "No Hidden Games"
|
||||||
|
msgstr "Sem jogos ocultados"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:41
|
||||||
|
msgid "Games you hide will appear here."
|
||||||
|
msgstr "Jogos ocultados vão aparecer aqui."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:64 data/gtk/window.blp:305
|
||||||
|
msgid "Back"
|
||||||
|
msgstr "Voltar"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:121
|
||||||
|
msgid "Game Title"
|
||||||
|
msgstr "Título do jogo"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:176
|
||||||
|
msgid "Play"
|
||||||
|
msgstr "Jogar"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:243 data/gtk/window.blp:437
|
||||||
|
msgid "Add Game"
|
||||||
|
msgstr "Adicionar jogo"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:250 data/gtk/window.blp:317
|
||||||
|
msgid "Main Menu"
|
||||||
|
msgstr "Menu principal"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:272
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Search"
|
||||||
|
msgid "Search games"
|
||||||
|
msgstr "Buscar"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:312
|
||||||
|
msgid "Hidden Games"
|
||||||
|
msgstr "Jogos ocultados"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:339
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Show hidden games"
|
||||||
|
msgid "Search hidden games"
|
||||||
|
msgstr "Exibir jogos ocultados"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:376
|
||||||
|
msgid "Sort"
|
||||||
|
msgstr "Ordenar"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:379
|
||||||
|
msgid "A-Z"
|
||||||
|
msgstr "A-Z"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:385
|
||||||
|
msgid "Z-A"
|
||||||
|
msgstr "Z-A"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:391
|
||||||
|
msgid "Newest"
|
||||||
|
msgstr "Mais novo"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:397
|
||||||
|
msgid "Oldest"
|
||||||
|
msgstr "Mais antigo"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:403
|
||||||
|
msgid "Last Played"
|
||||||
|
msgstr "Última vez jogado"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:410
|
||||||
|
msgid "Show Hidden"
|
||||||
|
msgstr "Mostrar ocultados"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:423
|
||||||
|
msgid "Keyboard Shortcuts"
|
||||||
|
msgstr "Atalhos de teclado"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:428
|
||||||
|
msgid "About Cartridges"
|
||||||
|
msgstr "Sobre o Cartuchos"
|
||||||
|
|
||||||
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
|
#: src/main.py:188
|
||||||
|
msgid "translator_credits"
|
||||||
|
msgstr "Pedro Sader Azevedo"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was added
|
||||||
|
#: src/window.py:194
|
||||||
|
msgid "Added: {}"
|
||||||
|
msgstr "Adicionado: {}"
|
||||||
|
|
||||||
|
#: src/window.py:197
|
||||||
|
msgid "Never"
|
||||||
|
msgstr "Nunca"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was last played
|
||||||
|
#: src/window.py:201
|
||||||
|
msgid "Last played: {}"
|
||||||
|
msgstr "Última vez jogado"
|
||||||
|
|
||||||
|
#: src/details_window.py:72
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr "Aplicar"
|
||||||
|
|
||||||
|
#: src/details_window.py:78
|
||||||
|
msgid "Add New Game"
|
||||||
|
msgstr "Adicionar novo jogo"
|
||||||
|
|
||||||
|
#: src/details_window.py:79
|
||||||
|
msgid "Add"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "file"
|
||||||
|
#: src/details_window.py:92
|
||||||
|
msgid "file.txt"
|
||||||
|
msgstr "arquivo.txt"
|
||||||
|
|
||||||
|
#. As in software
|
||||||
|
#: src/details_window.py:94
|
||||||
|
msgid "program"
|
||||||
|
msgstr "programa"
|
||||||
|
|
||||||
|
#. 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:\\caminho\\para\\{}"
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "path to {}"
|
||||||
|
#: src/details_window.py:105 src/details_window.py:107
|
||||||
|
msgid "/path/to/{}"
|
||||||
|
msgstr "/caminho/para/{}"
|
||||||
|
|
||||||
|
#: 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 ""
|
||||||
|
"Para iniciar o executável \"{}\", use o comando:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>\"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"Para abrir o arquivo \"{}\" com o aplicativo padrão, use:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>{}\"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"Se o caminho contiver espaços, certifique-se de colocá-lo entre aspas duplas!"
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:153
|
||||||
|
msgid "Couldn't Add Game"
|
||||||
|
msgstr "Não foi possível adicionar o jogo"
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:183
|
||||||
|
msgid "Game title cannot be empty."
|
||||||
|
msgstr "O título do jogo não pode estar vazio."
|
||||||
|
|
||||||
|
#: src/details_window.py:153 src/details_window.py:191
|
||||||
|
msgid "Executable cannot be empty."
|
||||||
|
msgstr "O executável não pode estar vazio."
|
||||||
|
|
||||||
|
#: src/details_window.py:182 src/details_window.py:190
|
||||||
|
msgid "Couldn't Apply Preferences"
|
||||||
|
msgstr "Não foi possível aplicar as preferências"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:139
|
||||||
|
msgid "{} launched"
|
||||||
|
msgstr "{} iniciado"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} hidden"
|
||||||
|
msgstr "{} está oculto"
|
||||||
|
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} unhidden"
|
||||||
|
msgstr "{} está exposto"
|
||||||
|
|
||||||
|
#. 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"
|
||||||
|
msgstr "{} removido"
|
||||||
|
|
||||||
|
#: src/preferences.py:119
|
||||||
|
msgid "All games removed"
|
||||||
|
msgstr "Todos os jogos foram removidos"
|
||||||
|
|
||||||
|
#: src/preferences.py:168
|
||||||
|
msgid ""
|
||||||
|
"An API key is required to use SteamGridDB. You can generate one {}here{}."
|
||||||
|
msgstr ""
|
||||||
|
"Uma chave da API é necessária para usar a SteamGridDB. Você pode gerar uma "
|
||||||
|
"chave {}aqui{}."
|
||||||
|
|
||||||
|
#: src/preferences.py:294
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Installation Not Found"
|
||||||
|
msgid "Installation Not Found"
|
||||||
|
msgstr "Instalação não encontrada"
|
||||||
|
|
||||||
|
#: src/preferences.py:296
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Select the {} data directory."
|
||||||
|
msgid "Select a valid directory."
|
||||||
|
msgstr "Selecione o diretório de informações de {}."
|
||||||
|
|
||||||
|
#: src/preferences.py:351
|
||||||
|
msgid "Invalid Directory"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:357
|
||||||
|
msgid "Set Location"
|
||||||
|
msgstr "Definir local"
|
||||||
|
|
||||||
|
#: src/utils/create_dialog.py:25 src/importer/importer.py:291
|
||||||
|
msgid "Dismiss"
|
||||||
|
msgstr "Dispensar"
|
||||||
|
|
||||||
|
#: src/importer/importer.py:128
|
||||||
|
msgid "Importing Games…"
|
||||||
|
msgstr "Importando jogos…"
|
||||||
|
|
||||||
|
#: 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 "Nenhum jogo novo encontrado"
|
||||||
|
|
||||||
|
#: src/importer/importer.py:351
|
||||||
|
msgid "1 game imported"
|
||||||
|
msgstr "1 jogo importado"
|
||||||
|
|
||||||
|
#. The variable is the number of games
|
||||||
|
#: src/importer/importer.py:355
|
||||||
|
msgid "{} games imported"
|
||||||
|
msgstr "{} jogos importados"
|
||||||
|
|
||||||
|
#. A single game removed
|
||||||
|
#: src/importer/importer.py:359
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "{} removed"
|
||||||
|
msgid "1 removed"
|
||||||
|
msgstr "{} removido"
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:33
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Select the {} data directory."
|
||||||
|
msgid "Select the {} cache directory."
|
||||||
|
msgstr "Selecione o diretório de informações de {}."
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:35
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Select the {} configuration directory."
|
||||||
|
msgid "Select the {} configuration directory."
|
||||||
|
msgstr "Selecione o diretório de configuração de {}."
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:37
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Select the {} data directory."
|
||||||
|
msgid "Select the {} data directory."
|
||||||
|
msgstr "Selecione o diretório de informações de {}."
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:46
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Couldn't Connect to SteamGridDB"
|
||||||
|
msgid "Couldn't Authenticate SteamGridDB"
|
||||||
|
msgstr "Não foi possível conectar à SteamGridDB"
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:47
|
||||||
|
msgid "Verify your API key in preferences"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#~ msgid "The title of the game"
|
||||||
|
#~ msgstr "O título do jogo"
|
||||||
|
|
||||||
|
#~ msgid "Developer"
|
||||||
|
#~ msgstr "Desenvolvedor"
|
||||||
|
|
||||||
|
#~ msgid "File to open or command to run when launching the game"
|
||||||
|
#~ msgstr "Arquivo a ser aberto ou comando a ser executado ao iniciar o jogo"
|
||||||
|
|
||||||
|
#~ msgid "Confirm"
|
||||||
|
#~ msgstr "Confirmar"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "The Steam directory cannot be found."
|
||||||
|
#~ msgid "Directory not Valid"
|
||||||
|
#~ msgstr "O diretório da Steam não foi encontrado."
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "Confirm"
|
||||||
|
#~ msgid "Configuration"
|
||||||
|
#~ msgstr "Confirmar"
|
||||||
|
|
||||||
|
#~ msgid "Steam Install Location"
|
||||||
|
#~ msgstr "Local de instalação da Steam"
|
||||||
|
|
||||||
|
#~ msgid "Lutris Install Location"
|
||||||
|
#~ msgstr "Local de instalação do Lutris"
|
||||||
|
|
||||||
|
#~ msgid "Heroic Install Location"
|
||||||
|
#~ msgstr "Local de instalação do Heroic"
|
||||||
|
|
||||||
|
#~ msgid "Bottles Install Location"
|
||||||
|
#~ msgstr "Local de instalação do Bottles"
|
||||||
|
|
||||||
|
#~ msgid "Today"
|
||||||
|
#~ msgstr "Hoje"
|
||||||
|
|
||||||
|
#~ msgid "Yesterday"
|
||||||
|
#~ msgstr "Ontem"
|
||||||
|
|
||||||
|
#~ msgid "Cache Not Found"
|
||||||
|
#~ msgstr "Cache não encontrado"
|
||||||
|
|
||||||
|
#~ msgid "Select the Lutris cache directory."
|
||||||
|
#~ msgstr "Selecione o diretório de cache do Lutris."
|
||||||
|
|
||||||
|
#~ msgid "Importing Covers…"
|
||||||
|
#~ msgstr "Importando capas…"
|
||||||
|
|
||||||
|
#~ msgid "Directory to use when importing games"
|
||||||
|
#~ msgstr "Diretório para usar ao importar jogos"
|
||||||
|
|
||||||
|
#~ msgid "Extra Steam Libraries"
|
||||||
|
#~ msgstr "Bibliotecas adicionais da Steam"
|
||||||
|
|
||||||
|
#~ msgid "Select other directories where you have Steam games installed"
|
||||||
|
#~ msgstr "Selecione outros diretórios onde você tem jogos da Steam instalados"
|
||||||
|
|
||||||
|
#~ msgid "Clear"
|
||||||
|
#~ msgstr "Limpar"
|
||||||
|
|
||||||
|
#~ msgid "Directory to use when importing game covers"
|
||||||
|
#~ msgstr "Diretório para usar ao importar imagens das capas dos jogos"
|
||||||
|
|
||||||
|
#~ msgid "Details"
|
||||||
|
#~ msgstr "Detalhes"
|
||||||
|
|
||||||
|
#~ msgid "No new games were found on your system."
|
||||||
|
#~ msgstr "Nenhum jogo novo foi encontrado no seu sistema."
|
||||||
|
|
||||||
|
#~ msgid "Successfully imported 1 game."
|
||||||
|
#~ msgstr "1 jogo foi importado com sucesso."
|
||||||
|
|
||||||
|
#~ msgid "Successfully imported {} games."
|
||||||
|
#~ msgstr "{} jogos foram importados com sucesso."
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Looks like you have multiple Steam libraries. Would you like to add them "
|
||||||
|
#~ "in preferences?"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "Parece que você tem múltiplas bibliotecas Steam. Gostaria de adicioná-las "
|
||||||
|
#~ "nas preferências?"
|
||||||
|
|
||||||
|
#~ msgid "Launch your games"
|
||||||
|
#~ msgstr "Inicie seus jogos"
|
||||||
|
|
||||||
|
#, python-brace-format
|
||||||
|
#~ msgid "Last played: {last_played_date}"
|
||||||
|
#~ msgstr "Última vez jogado: {last_played_date}"
|
||||||
|
|
||||||
|
#, python-brace-format
|
||||||
|
#~ msgid "Successfully imported {games_no} games."
|
||||||
|
#~ msgstr "{games_no} jogos importados com sucesso."
|
||||||
|
|
||||||
|
#, python-brace-format
|
||||||
|
#~ msgid "C:\\path\\to\\{file_name}"
|
||||||
|
#~ msgstr "C:\\caminho\\para\\{file_name}"
|
||||||
|
|
||||||
|
#, python-brace-format
|
||||||
|
#~ msgid "/path/to/{file_name}"
|
||||||
|
#~ msgstr "/caminho/para/{file_name}"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "General"
|
||||||
|
#~ msgctxt "shortcuts window"
|
||||||
|
#~ msgid "General"
|
||||||
|
#~ msgstr "Geral"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "Search"
|
||||||
|
#~ msgctxt "shortcuts window"
|
||||||
|
#~ msgid "Search"
|
||||||
|
#~ msgstr "Buscar"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "Undo"
|
||||||
|
#~ msgctxt "shortcuts window"
|
||||||
|
#~ msgid "Undo"
|
||||||
|
#~ msgstr "Desfazer"
|
||||||
|
|
||||||
|
#~ msgid "First stable release"
|
||||||
|
#~ msgstr "Primeira versão estável"
|
||||||
|
|
||||||
|
#~ msgctxt "shortcut window"
|
||||||
|
#~ msgid "General"
|
||||||
|
#~ msgstr "Geral"
|
||||||
|
|
||||||
|
#~ msgctxt "shortcut window"
|
||||||
|
#~ msgid "Search"
|
||||||
|
#~ msgstr "Buscar"
|
||||||
|
|
||||||
|
#~ msgctxt "shortcut window"
|
||||||
|
#~ msgid "Undo"
|
||||||
|
#~ msgstr "Desfazer"
|
||||||
|
|
||||||
|
#~ msgid "Couldn't Import Games"
|
||||||
|
#~ msgstr "Não foi possível importar os jogos"
|
||||||
|
|
||||||
|
#~ msgid "The Bottles directory cannot be found."
|
||||||
|
#~ msgstr "O diretório do Bottles não foi encontrado."
|
||||||
|
|
||||||
|
#~ msgid "Set Bottles Location"
|
||||||
|
#~ msgstr "Definir local do Bottles"
|
||||||
|
|
||||||
|
#~ msgid "No new games were found in the Bottles library."
|
||||||
|
#~ msgstr "Nenhum jogo novo foi encontrado na biblioteca do Bottles."
|
||||||
|
|
||||||
|
#~ msgid "Bottles Games Imported"
|
||||||
|
#~ msgstr "Jogos do Bottles importados"
|
||||||
|
|
||||||
|
#~ msgid "The Heroic directory cannot be found."
|
||||||
|
#~ msgstr "O diretório do Heroic não foi encontrado."
|
||||||
|
|
||||||
|
#~ msgid "Heroic Games Imported"
|
||||||
|
#~ msgstr "Jogos do Heroic importados"
|
||||||
|
|
||||||
|
#~ msgid "No new games were found in the Steam library."
|
||||||
|
#~ msgstr "Nenhum jogo novo foi encontrado na biblioteca da Steam."
|
||||||
|
|
||||||
|
#~ msgid "Talking to Steam"
|
||||||
|
#~ msgstr "Falando com a Steam"
|
||||||
683
po/pt_BR.po
Normal file
@@ -0,0 +1,683 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR kramo
|
||||||
|
# This file is distributed under the same license as the Cartridges package.
|
||||||
|
# Henrique Machado <henriquecamposrj@gmail.com>, 2023.
|
||||||
|
# Vinícius Gama Santos <vinny.stalck@protonmail.com>, 2023.
|
||||||
|
# Vítor Fernandes Almado <vfalmado@gmail.com>, 2023.
|
||||||
|
# Rafael Fontenelle <rafaelff@gnome.org>, 2023.
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Cartridges\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2023-08-16 11:06+0200\n"
|
||||||
|
"PO-Revision-Date: 2023-08-16 13:41+0000\n"
|
||||||
|
"Last-Translator: Rafael Fontenelle <rafaelff@gnome.org>\n"
|
||||||
|
"Language-Team: Portuguese (Brazil) <https://hosted.weblate.org/projects/"
|
||||||
|
"cartridges/cartridges/pt_BR/>\n"
|
||||||
|
"Language: pt_BR\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||||
|
"X-Generator: Weblate 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:169
|
||||||
|
msgid "Cartridges"
|
||||||
|
msgstr "Cartuchos"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:4
|
||||||
|
msgid "Game Launcher"
|
||||||
|
msgstr "Iniciador de jogos"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
|
msgid "Launch all your games"
|
||||||
|
msgstr "Inicie todos os seus jogos"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:11
|
||||||
|
msgid ""
|
||||||
|
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
|
||||||
|
msgstr ""
|
||||||
|
"Jogos;lançador;gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;"
|
||||||
|
"legendary;"
|
||||||
|
|
||||||
|
#: 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 ""
|
||||||
|
"Cartuchos é um simples iniciador de jogos para todos os seus jogos. Ele tem "
|
||||||
|
"suporte para importar jogos do Steam, Lutris, Heroic e outros, sem "
|
||||||
|
"necessidade de login. Você pode ordenar e esconder jogos ou baixar arte de "
|
||||||
|
"capa do SteamGridDB."
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:30
|
||||||
|
msgid "Library"
|
||||||
|
msgstr "Biblioteca"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:34
|
||||||
|
msgid "Edit Game Details"
|
||||||
|
msgstr "Editar detalhes do jogo"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:38 data/gtk/window.blp:71
|
||||||
|
#: src/details_window.py:67
|
||||||
|
msgid "Game Details"
|
||||||
|
msgstr "Detalhes do jogo"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:418
|
||||||
|
#: src/details_window.py:241 src/importer/importer.py:292
|
||||||
|
#: src/importer/importer.py:342
|
||||||
|
msgid "Preferences"
|
||||||
|
msgstr "Preferências"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:25
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Cancelar"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:57
|
||||||
|
msgid "New Cover"
|
||||||
|
msgstr "Nova capa"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:75
|
||||||
|
msgid "Delete Cover"
|
||||||
|
msgstr "Excluir capa"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:102 data/gtk/game.blp:80
|
||||||
|
msgid "Title"
|
||||||
|
msgstr "Título"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:105
|
||||||
|
msgid "Developer (optional)"
|
||||||
|
msgstr "Desenvolvedor (opcional)"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:110
|
||||||
|
msgid "Executable"
|
||||||
|
msgstr "Executável"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:116
|
||||||
|
msgid "More Info"
|
||||||
|
msgstr "Mais informações"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:195
|
||||||
|
msgid "Edit"
|
||||||
|
msgstr "Editar"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:107 src/window.py:171
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr "Esconder"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:56
|
||||||
|
#: data/gtk/window.blp:209
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr "Remover"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:126 src/window.py:173
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr "Exibir"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
|
||||||
|
msgid "General"
|
||||||
|
msgstr "Geral"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr "Sair"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:217 data/gtk/window.blp:257
|
||||||
|
#: data/gtk/window.blp:324
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "Buscar"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr "Mostrar preferências"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr "Atalhos"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34 src/game.py:103 src/preferences.py:120
|
||||||
|
#: src/importer/importer.py:366
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "Desfazer"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr "Abrir menu"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgid "Games"
|
||||||
|
msgstr "Jogos"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr "Adicionar novo jogo"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgid "Import games"
|
||||||
|
msgstr "Importar jogos"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:58
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr "Exibir jogos ocultos"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:63
|
||||||
|
msgid "Remove game"
|
||||||
|
msgstr "Remover jogo"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:89
|
||||||
|
#: data/gtk/preferences.blp:304
|
||||||
|
msgid "Behavior"
|
||||||
|
msgstr "Comportamento"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:16
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr "Fechar ao iniciar jogos"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Cover Image Launches Game"
|
||||||
|
msgstr "Imagem da capa inicia o jogo"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26
|
||||||
|
msgid "Swaps the behavior of the cover image and the play button"
|
||||||
|
msgstr "Troca o comportamento da imagem da capa e do botão jogar"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:36 src/details_window.py:81
|
||||||
|
msgid "Images"
|
||||||
|
msgstr "Imagens"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:39
|
||||||
|
msgid "High Quality Images"
|
||||||
|
msgstr "Imagens de alta qualidade"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:40
|
||||||
|
msgid "Save game covers losslessly at the cost of storage"
|
||||||
|
msgstr "Salva capas de jogos sem perdas, consumindo mais armazenamento"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:50
|
||||||
|
msgid "Danger Zone"
|
||||||
|
msgstr "Zona de Perigo"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:53
|
||||||
|
msgid "Remove All Games"
|
||||||
|
msgstr "Remover todos os jogos"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:85 data/gtk/window.blp:27 data/gtk/window.blp:444
|
||||||
|
msgid "Import"
|
||||||
|
msgstr "Importar"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:92
|
||||||
|
msgid "Remove Uninstalled Games"
|
||||||
|
msgstr "Remover jogos desinstalados"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:102
|
||||||
|
msgid "Sources"
|
||||||
|
msgstr "Fontes"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:105
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr "Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:109 data/gtk/preferences.blp:123
|
||||||
|
#: data/gtk/preferences.blp:164 data/gtk/preferences.blp:214
|
||||||
|
#: data/gtk/preferences.blp:228 data/gtk/preferences.blp:242
|
||||||
|
#: data/gtk/preferences.blp:256 data/gtk/preferences.blp:270
|
||||||
|
msgid "Install Location"
|
||||||
|
msgstr "Local de instalação"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:119
|
||||||
|
msgid "Lutris"
|
||||||
|
msgstr "Lutris"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:132
|
||||||
|
msgid "Cache Location"
|
||||||
|
msgstr "Local do cache"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:141
|
||||||
|
msgid "Import Steam Games"
|
||||||
|
msgstr "Importar jogos do Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:150
|
||||||
|
msgid "Import Flatpak Games"
|
||||||
|
msgstr "Importar jogos do Flatpak"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:160
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr "Heroic"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:173
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr "Importar jogos da Epic Games"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:182
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr "Importar jogos do GOG"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:191
|
||||||
|
msgid "Import Amazon Games"
|
||||||
|
msgstr "Importar jogos da Amazon"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:200
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr "Importar jogos adicionados manualmente"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:210
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr "Garrafas"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:224
|
||||||
|
msgid "itch"
|
||||||
|
msgstr "itch"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:238
|
||||||
|
msgid "Legendary"
|
||||||
|
msgstr "Lendário"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:252
|
||||||
|
msgid "RetroArch"
|
||||||
|
msgstr "RetroArch"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:266
|
||||||
|
msgid "Flatpak"
|
||||||
|
msgstr "Flatpak"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:279
|
||||||
|
msgid "Import Game Launchers"
|
||||||
|
msgstr "Importar iniciadores de jogos"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:292
|
||||||
|
msgid "SteamGridDB"
|
||||||
|
msgstr "SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:296
|
||||||
|
msgid "Authentication"
|
||||||
|
msgstr "Autenticação"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:299
|
||||||
|
msgid "API Key"
|
||||||
|
msgstr "Chave da API"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:307
|
||||||
|
msgid "Use SteamGridDB"
|
||||||
|
msgstr "Usar SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:308
|
||||||
|
msgid "Download images when adding or importing games"
|
||||||
|
msgstr "Baixar imagens ao adicionar ou importar jogos"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:317
|
||||||
|
msgid "Prefer Over Official Images"
|
||||||
|
msgstr "Preferir mais que as imagens oficiais"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:326
|
||||||
|
msgid "Prefer Animated Images"
|
||||||
|
msgstr "Preferir imagens animadas"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 data/gtk/window.blp:14
|
||||||
|
msgid "No Games Found"
|
||||||
|
msgstr "Nenhum jogo encontrado"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:7 data/gtk/window.blp:15
|
||||||
|
msgid "Try a different search."
|
||||||
|
msgstr "Tente uma busca diferente."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:21
|
||||||
|
msgid "No Games"
|
||||||
|
msgstr "Sem jogos"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:22
|
||||||
|
msgid "Use the + button to add games."
|
||||||
|
msgstr "Use o botão + para adicionar jogos."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:40
|
||||||
|
msgid "No Hidden Games"
|
||||||
|
msgstr "Sem jogos ocultos"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:41
|
||||||
|
msgid "Games you hide will appear here."
|
||||||
|
msgstr "Os jogos ocultos aparecerão aqui."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:64 data/gtk/window.blp:305
|
||||||
|
msgid "Back"
|
||||||
|
msgstr "Voltar"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:121
|
||||||
|
msgid "Game Title"
|
||||||
|
msgstr "Título do jogo"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:176
|
||||||
|
msgid "Play"
|
||||||
|
msgstr "Jogar"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:243 data/gtk/window.blp:437
|
||||||
|
msgid "Add Game"
|
||||||
|
msgstr "Adicionar jogo"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:250 data/gtk/window.blp:317
|
||||||
|
msgid "Main Menu"
|
||||||
|
msgstr "Menu Principal"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:272
|
||||||
|
msgid "Search games"
|
||||||
|
msgstr "Buscar jogos"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:312
|
||||||
|
msgid "Hidden Games"
|
||||||
|
msgstr "Jogos ocultos"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:339
|
||||||
|
msgid "Search hidden games"
|
||||||
|
msgstr "Buscar jogos ocultos"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:376
|
||||||
|
msgid "Sort"
|
||||||
|
msgstr "Ordenar"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:379
|
||||||
|
msgid "A-Z"
|
||||||
|
msgstr "A-Z"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:385
|
||||||
|
msgid "Z-A"
|
||||||
|
msgstr "Z-A"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:391
|
||||||
|
msgid "Newest"
|
||||||
|
msgstr "Mais novo"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:397
|
||||||
|
msgid "Oldest"
|
||||||
|
msgstr "Mais antigo"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:403
|
||||||
|
msgid "Last Played"
|
||||||
|
msgstr "Última vez jogado"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:410
|
||||||
|
msgid "Show Hidden"
|
||||||
|
msgstr "Mostrar ocultados"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:423
|
||||||
|
msgid "Keyboard Shortcuts"
|
||||||
|
msgstr "Atalhos de teclado"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:428
|
||||||
|
msgid "About Cartridges"
|
||||||
|
msgstr "Sobre o Cartuchos"
|
||||||
|
|
||||||
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
|
#: src/main.py:188
|
||||||
|
msgid "translator_credits"
|
||||||
|
msgstr "Pedro Sader Azevedo, Vinícius \"Stalck\""
|
||||||
|
|
||||||
|
#. The variable is the date when the game was added
|
||||||
|
#: src/window.py:194
|
||||||
|
msgid "Added: {}"
|
||||||
|
msgstr "Adicionado: {}"
|
||||||
|
|
||||||
|
#: src/window.py:197
|
||||||
|
msgid "Never"
|
||||||
|
msgstr "Nunca"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was last played
|
||||||
|
#: src/window.py:201
|
||||||
|
msgid "Last played: {}"
|
||||||
|
msgstr "Jogado pela última vez: {}"
|
||||||
|
|
||||||
|
#: src/details_window.py:72
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr "Aplicar"
|
||||||
|
|
||||||
|
#: src/details_window.py:78
|
||||||
|
msgid "Add New Game"
|
||||||
|
msgstr "Adicionar novo jogo"
|
||||||
|
|
||||||
|
#: src/details_window.py:79
|
||||||
|
msgid "Add"
|
||||||
|
msgstr "Adicionar"
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "file"
|
||||||
|
#: src/details_window.py:92
|
||||||
|
msgid "file.txt"
|
||||||
|
msgstr "arquivo.txt"
|
||||||
|
|
||||||
|
#. As in software
|
||||||
|
#: src/details_window.py:94
|
||||||
|
msgid "program"
|
||||||
|
msgstr "programa"
|
||||||
|
|
||||||
|
#. 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:\\caminho\\para\\{}"
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "path to {}"
|
||||||
|
#: src/details_window.py:105 src/details_window.py:107
|
||||||
|
msgid "/path/to/{}"
|
||||||
|
msgstr "/caminho/para/{}"
|
||||||
|
|
||||||
|
#: 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 ""
|
||||||
|
"Para iniciar o executável \"{}\", use o comando:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>\"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"Para abrir o arquivo \"{}\" com o aplicativo padrão, use:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>{} \"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"Se o caminho contiver espaços, certifique-se de colocá-lo entre aspas duplas!"
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:153
|
||||||
|
msgid "Couldn't Add Game"
|
||||||
|
msgstr "Não foi possível adicionar o jogo"
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:183
|
||||||
|
msgid "Game title cannot be empty."
|
||||||
|
msgstr "O título do jogo não pode estar vazio."
|
||||||
|
|
||||||
|
#: src/details_window.py:153 src/details_window.py:191
|
||||||
|
msgid "Executable cannot be empty."
|
||||||
|
msgstr "O executável não pode estar vazio."
|
||||||
|
|
||||||
|
#: src/details_window.py:182 src/details_window.py:190
|
||||||
|
msgid "Couldn't Apply Preferences"
|
||||||
|
msgstr "Não foi possível aplicar as preferências"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:139
|
||||||
|
msgid "{} launched"
|
||||||
|
msgstr "{} iniciado"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} hidden"
|
||||||
|
msgstr "{} ocultado"
|
||||||
|
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} unhidden"
|
||||||
|
msgstr "{} exibido"
|
||||||
|
|
||||||
|
#. 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"
|
||||||
|
msgstr "{} removido"
|
||||||
|
|
||||||
|
#: src/preferences.py:119
|
||||||
|
msgid "All games removed"
|
||||||
|
msgstr "Todos os jogos foram removidos"
|
||||||
|
|
||||||
|
#: src/preferences.py:168
|
||||||
|
msgid ""
|
||||||
|
"An API key is required to use SteamGridDB. You can generate one {}here{}."
|
||||||
|
msgstr ""
|
||||||
|
"Uma chave de API é necessária para utilizar o SteamGridDB. Você pode gerar "
|
||||||
|
"uma {}aqui{}."
|
||||||
|
|
||||||
|
#: src/preferences.py:294
|
||||||
|
msgid "Installation Not Found"
|
||||||
|
msgstr "Instalação não encontrada"
|
||||||
|
|
||||||
|
#: src/preferences.py:296
|
||||||
|
msgid "Select a valid directory."
|
||||||
|
msgstr "Selecione um diretório válido."
|
||||||
|
|
||||||
|
#: src/preferences.py:351
|
||||||
|
msgid "Invalid Directory"
|
||||||
|
msgstr "Diretório inválido"
|
||||||
|
|
||||||
|
#: src/preferences.py:357
|
||||||
|
msgid "Set Location"
|
||||||
|
msgstr "Definir local"
|
||||||
|
|
||||||
|
#: src/utils/create_dialog.py:25 src/importer/importer.py:291
|
||||||
|
msgid "Dismiss"
|
||||||
|
msgstr "Dispensar"
|
||||||
|
|
||||||
|
#: src/importer/importer.py:128
|
||||||
|
msgid "Importing Games…"
|
||||||
|
msgstr "Importando jogos…"
|
||||||
|
|
||||||
|
#: src/importer/importer.py:290
|
||||||
|
msgid "Warning"
|
||||||
|
msgstr "Atenção"
|
||||||
|
|
||||||
|
#: src/importer/importer.py:311
|
||||||
|
msgid "The following errors occured during import:"
|
||||||
|
msgstr "Ocorreram os seguintes erros durante a importação:"
|
||||||
|
|
||||||
|
#: src/importer/importer.py:339
|
||||||
|
msgid "No new games found"
|
||||||
|
msgstr "Nenhum jogo novo encontrado"
|
||||||
|
|
||||||
|
#: src/importer/importer.py:351
|
||||||
|
msgid "1 game imported"
|
||||||
|
msgstr "1 jogo importado"
|
||||||
|
|
||||||
|
#. The variable is the number of games
|
||||||
|
#: src/importer/importer.py:355
|
||||||
|
msgid "{} games imported"
|
||||||
|
msgstr "{} jogos importados"
|
||||||
|
|
||||||
|
#. A single game removed
|
||||||
|
#: src/importer/importer.py:359
|
||||||
|
msgid "1 removed"
|
||||||
|
msgstr "1 removido"
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:33
|
||||||
|
msgid "Select the {} cache directory."
|
||||||
|
msgstr "Selecione o diretório de cache do(a) {}."
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:35
|
||||||
|
msgid "Select the {} configuration directory."
|
||||||
|
msgstr "Selecione o diretório de configuração do(a) {}."
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:37
|
||||||
|
msgid "Select the {} data directory."
|
||||||
|
msgstr "Selecione o diretório de dados do(a) {}."
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:46
|
||||||
|
msgid "Couldn't Authenticate SteamGridDB"
|
||||||
|
msgstr "Não foi possível autenticar ao SteamGridDB"
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:47
|
||||||
|
msgid "Verify your API key in preferences"
|
||||||
|
msgstr "Verifique sua chave API nas preferências"
|
||||||
|
|
||||||
|
#~ msgid "The title of the game"
|
||||||
|
#~ msgstr "O título do jogo"
|
||||||
|
|
||||||
|
#~ msgid "Developer"
|
||||||
|
#~ msgstr "Desenvolvedor"
|
||||||
|
|
||||||
|
#~ msgid "File to open or command to run when launching the game"
|
||||||
|
#~ msgstr "Arquivo a ser aberto ou comando a ser executado ao iniciar o jogo"
|
||||||
|
|
||||||
|
#~ msgid "Confirm"
|
||||||
|
#~ msgstr "Confirmar"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "Cache Not Found"
|
||||||
|
#~ msgid "Directory not Valid"
|
||||||
|
#~ msgstr "Cache não encontrado"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "Confirm"
|
||||||
|
#~ msgid "Configuration"
|
||||||
|
#~ msgstr "Confirmar"
|
||||||
|
|
||||||
|
#~ msgid "Steam Install Location"
|
||||||
|
#~ msgstr "Local de instalação do Steam"
|
||||||
|
|
||||||
|
#~ msgid "Lutris Install Location"
|
||||||
|
#~ msgstr "Local de instalação do Lutris"
|
||||||
|
|
||||||
|
#~ msgid "Heroic Install Location"
|
||||||
|
#~ msgstr "Local de instalação do Heroic"
|
||||||
|
|
||||||
|
#~ msgid "Bottles Install Location"
|
||||||
|
#~ msgstr "Local de instalação do Garrafas"
|
||||||
|
|
||||||
|
#~ msgid "Today"
|
||||||
|
#~ msgstr "Hoje"
|
||||||
|
|
||||||
|
#~ msgid "Yesterday"
|
||||||
|
#~ msgstr "Ontem"
|
||||||
|
|
||||||
|
#~ msgid "Select the Lutris cache directory."
|
||||||
|
#~ msgstr "Selecione o diretório de cache do Lutris."
|
||||||
|
|
||||||
|
#~ msgid "Importing Covers…"
|
||||||
|
#~ msgstr "Importando capas…"
|
||||||
|
|
||||||
|
#~ msgid "Directory to use when importing games"
|
||||||
|
#~ msgstr "Diretório para usar ao importar jogos"
|
||||||
|
|
||||||
|
#~ msgid "Extra Steam Libraries"
|
||||||
|
#~ msgstr "Bibliotecas adicionais da Steam"
|
||||||
|
|
||||||
|
#~ msgid "Select other directories where you have Steam games installed"
|
||||||
|
#~ msgstr "Selecione outros diretórios onde você tem jogos da Steam instalados"
|
||||||
|
|
||||||
|
#~ msgid "Clear"
|
||||||
|
#~ msgstr "Limpar"
|
||||||
|
|
||||||
|
#~ msgid "Directory to use when importing game covers"
|
||||||
|
#~ msgstr "Diretório para usar ao importar imagens das capas dos jogos"
|
||||||
|
|
||||||
|
#~ msgid "Details"
|
||||||
|
#~ msgstr "Detalhes"
|
||||||
|
|
||||||
|
#~ msgid "No new games were found on your system."
|
||||||
|
#~ msgstr "Nenhum jogo novo foi encontrado no seu sistema."
|
||||||
|
|
||||||
|
#~ msgid "Successfully imported 1 game."
|
||||||
|
#~ msgstr "1 jogo foi importado com sucesso."
|
||||||
|
|
||||||
|
#~ msgid "Successfully imported {} games."
|
||||||
|
#~ msgstr "{} jogos foram importados com sucesso."
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Looks like you have multiple Steam libraries. Would you like to add them "
|
||||||
|
#~ "in preferences?"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "Parece que você tem múltiplas bibliotecas Steam. Gostaria de adicioná-las "
|
||||||
|
#~ "nas preferências?"
|
||||||
607
po/ro.po
Normal file
@@ -0,0 +1,607 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR kramo
|
||||||
|
# This file is distributed under the same license as the Cartridges package.
|
||||||
|
# Matt C <matei.gurzu@gmail.com>, 2023.
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Cartridges\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2023-08-16 11:06+0200\n"
|
||||||
|
"PO-Revision-Date: 2023-04-04 17:12+0000\n"
|
||||||
|
"Last-Translator: Matt C <matei.gurzu@gmail.com>\n"
|
||||||
|
"Language-Team: Romanian <https://hosted.weblate.org/projects/cartridges/"
|
||||||
|
"cartridges/ro/>\n"
|
||||||
|
"Language: ro\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < "
|
||||||
|
"20)) ? 1 : 2;\n"
|
||||||
|
"X-Generator: Weblate 4.17-dev\n"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:3
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
|
||||||
|
#: src/main.py:169
|
||||||
|
msgid "Cartridges"
|
||||||
|
msgstr "Cartușe"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:4
|
||||||
|
msgid "Game Launcher"
|
||||||
|
msgstr "Lansator de jocuri"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
|
msgid "Launch all your games"
|
||||||
|
msgstr "Lansați toate jocurile dvs"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:11
|
||||||
|
msgid ""
|
||||||
|
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid ""
|
||||||
|
#| "Cartridges is a simple game launcher. It has support for importing your "
|
||||||
|
#| "games from Steam, Heroic and Bottles with organizational features such as "
|
||||||
|
#| "hiding and sorting by date added or last played."
|
||||||
|
msgid ""
|
||||||
|
"Cartridges is a simple game launcher for all of your games. It has support "
|
||||||
|
"for importing games from Steam, Lutris, Heroic and more with no login "
|
||||||
|
"necessary. You can sort and hide games or download cover art from "
|
||||||
|
"SteamGridDB."
|
||||||
|
msgstr ""
|
||||||
|
"Cartridges este un simplu lansator de jocuri. Are suport pentru importarea "
|
||||||
|
"jocurilor dvs. din Steam, Heroic și Bottles cu funcții de organizare, cum ar "
|
||||||
|
"fi ascunderea și sortarea după data adăugată sau ultima dată jucată."
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:30
|
||||||
|
msgid "Library"
|
||||||
|
msgstr "Bibliotecă"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:34
|
||||||
|
msgid "Edit Game Details"
|
||||||
|
msgstr "Editați detaliile jocului"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:38 data/gtk/window.blp:71
|
||||||
|
#: src/details_window.py:67
|
||||||
|
msgid "Game Details"
|
||||||
|
msgstr "Detalii joc"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:418
|
||||||
|
#: src/details_window.py:241 src/importer/importer.py:292
|
||||||
|
#: src/importer/importer.py:342
|
||||||
|
msgid "Preferences"
|
||||||
|
msgstr "Preferințe"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:25
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:57
|
||||||
|
msgid "New Cover"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:75
|
||||||
|
msgid "Delete Cover"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:102 data/gtk/game.blp:80
|
||||||
|
msgid "Title"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:105
|
||||||
|
msgid "Developer (optional)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:110
|
||||||
|
msgid "Executable"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:116
|
||||||
|
msgid "More Info"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:195
|
||||||
|
msgid "Edit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:107 src/window.py:171
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:56
|
||||||
|
#: data/gtk/window.blp:209
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:126 src/window.py:173
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
|
||||||
|
msgid "General"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:217 data/gtk/window.blp:257
|
||||||
|
#: data/gtk/window.blp:324
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "Căutare"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34 src/game.py:103 src/preferences.py:120
|
||||||
|
#: src/importer/importer.py:366
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgid "Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgid "Import games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:58
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:63
|
||||||
|
msgid "Remove game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:89
|
||||||
|
#: data/gtk/preferences.blp:304
|
||||||
|
msgid "Behavior"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:16
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Cover Image Launches Game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26
|
||||||
|
msgid "Swaps the behavior of the cover image and the play button"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:36 src/details_window.py:81
|
||||||
|
msgid "Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:39
|
||||||
|
msgid "High Quality Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:40
|
||||||
|
msgid "Save game covers losslessly at the cost of storage"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:50
|
||||||
|
msgid "Danger Zone"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:53
|
||||||
|
msgid "Remove All Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:85 data/gtk/window.blp:27 data/gtk/window.blp:444
|
||||||
|
msgid "Import"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:92
|
||||||
|
msgid "Remove Uninstalled Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:102
|
||||||
|
msgid "Sources"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:105
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:109 data/gtk/preferences.blp:123
|
||||||
|
#: data/gtk/preferences.blp:164 data/gtk/preferences.blp:214
|
||||||
|
#: data/gtk/preferences.blp:228 data/gtk/preferences.blp:242
|
||||||
|
#: data/gtk/preferences.blp:256 data/gtk/preferences.blp:270
|
||||||
|
msgid "Install Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:119
|
||||||
|
msgid "Lutris"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:132
|
||||||
|
msgid "Cache Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:141
|
||||||
|
msgid "Import Steam Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:150
|
||||||
|
msgid "Import Flatpak Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:160
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:173
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:182
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:191
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Game Launcher"
|
||||||
|
msgid "Import Amazon Games"
|
||||||
|
msgstr "Lansator de jocuri"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:200
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:210
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:224
|
||||||
|
msgid "itch"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:238
|
||||||
|
msgid "Legendary"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:252
|
||||||
|
msgid "RetroArch"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:266
|
||||||
|
msgid "Flatpak"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:279
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Game Launcher"
|
||||||
|
msgid "Import Game Launchers"
|
||||||
|
msgstr "Lansator de jocuri"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:292
|
||||||
|
msgid "SteamGridDB"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:296
|
||||||
|
msgid "Authentication"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:299
|
||||||
|
msgid "API Key"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:307
|
||||||
|
msgid "Use SteamGridDB"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:308
|
||||||
|
msgid "Download images when adding or importing games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:317
|
||||||
|
msgid "Prefer Over Official Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:326
|
||||||
|
msgid "Prefer Animated Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 data/gtk/window.blp:14
|
||||||
|
msgid "No Games Found"
|
||||||
|
msgstr "Nu s-au găsit jocuri"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:7 data/gtk/window.blp:15
|
||||||
|
msgid "Try a different search."
|
||||||
|
msgstr "Încercați o altă căutare."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:21
|
||||||
|
msgid "No Games"
|
||||||
|
msgstr "Fără jocuri"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:22
|
||||||
|
msgid "Use the + button to add games."
|
||||||
|
msgstr "Folosiți butonul + pentru a adăuga jocuri."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:40
|
||||||
|
msgid "No Hidden Games"
|
||||||
|
msgstr "Fără jocuri ascunse"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:41
|
||||||
|
msgid "Games you hide will appear here."
|
||||||
|
msgstr "Jocurile pe care le ascundeți vor apărea aici."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:64 data/gtk/window.blp:305
|
||||||
|
msgid "Back"
|
||||||
|
msgstr "Înapoi"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:121
|
||||||
|
msgid "Game Title"
|
||||||
|
msgstr "Titlul jocului"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:176
|
||||||
|
msgid "Play"
|
||||||
|
msgstr "Joacă"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:243 data/gtk/window.blp:437
|
||||||
|
msgid "Add Game"
|
||||||
|
msgstr "Adăugați joc"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:250 data/gtk/window.blp:317
|
||||||
|
msgid "Main Menu"
|
||||||
|
msgstr "Meniu principal"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:272
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Search"
|
||||||
|
msgid "Search games"
|
||||||
|
msgstr "Căutare"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:312
|
||||||
|
msgid "Hidden Games"
|
||||||
|
msgstr "Jocuri ascunse"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:339
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "No Hidden Games"
|
||||||
|
msgid "Search hidden games"
|
||||||
|
msgstr "Fără jocuri ascunse"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:376
|
||||||
|
msgid "Sort"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:379
|
||||||
|
msgid "A-Z"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:385
|
||||||
|
msgid "Z-A"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:391
|
||||||
|
msgid "Newest"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:397
|
||||||
|
msgid "Oldest"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:403
|
||||||
|
msgid "Last Played"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:410
|
||||||
|
msgid "Show Hidden"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:423
|
||||||
|
msgid "Keyboard Shortcuts"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:428
|
||||||
|
msgid "About Cartridges"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
|
#: src/main.py:188
|
||||||
|
msgid "translator_credits"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the date when the game was added
|
||||||
|
#: src/window.py:194
|
||||||
|
msgid "Added: {}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/window.py:197
|
||||||
|
msgid "Never"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the date when the game was last played
|
||||||
|
#: src/window.py:201
|
||||||
|
msgid "Last played: {}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/details_window.py:72
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/details_window.py:78
|
||||||
|
msgid "Add New Game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/details_window.py:79
|
||||||
|
msgid "Add"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "file"
|
||||||
|
#: src/details_window.py:92
|
||||||
|
msgid "file.txt"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. As in software
|
||||||
|
#: src/details_window.py:94
|
||||||
|
msgid "program"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "path to {}"
|
||||||
|
#: src/details_window.py:99 src/details_window.py:101
|
||||||
|
msgid "C:\\path\\to\\{}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "path to {}"
|
||||||
|
#: src/details_window.py:105 src/details_window.py:107
|
||||||
|
msgid "/path/to/{}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: 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 ""
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:153
|
||||||
|
msgid "Couldn't Add Game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:183
|
||||||
|
msgid "Game title cannot be empty."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/details_window.py:153 src/details_window.py:191
|
||||||
|
msgid "Executable cannot be empty."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/details_window.py:182 src/details_window.py:190
|
||||||
|
msgid "Couldn't Apply Preferences"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:139
|
||||||
|
msgid "{} launched"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} hidden"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} unhidden"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. 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"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:119
|
||||||
|
msgid "All games removed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:168
|
||||||
|
msgid ""
|
||||||
|
"An API key is required to use SteamGridDB. You can generate one {}here{}."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:294
|
||||||
|
msgid "Installation Not Found"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:296
|
||||||
|
msgid "Select a valid directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences.py:351
|
||||||
|
msgid "Invalid Directory"
|
||||||
|
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
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Game Launcher"
|
||||||
|
msgid "Importing Games…"
|
||||||
|
msgstr "Lansator de jocuri"
|
||||||
|
|
||||||
|
#: 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
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "No Games Found"
|
||||||
|
msgid "No new games found"
|
||||||
|
msgstr "Nu s-au găsit jocuri"
|
||||||
|
|
||||||
|
#: 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
|
||||||
|
#: src/importer/sources/location.py:33
|
||||||
|
msgid "Select the {} cache directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:35
|
||||||
|
msgid "Select the {} configuration directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:37
|
||||||
|
msgid "Select the {} data directory."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:46
|
||||||
|
msgid "Couldn't Authenticate SteamGridDB"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:47
|
||||||
|
msgid "Verify your API key in preferences"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#~ msgid "Launch your games"
|
||||||
|
#~ msgstr "Lansați-vă jocurile"
|
||||||
781
po/ru.po
Normal file
@@ -0,0 +1,781 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the cartridges package.
|
||||||
|
# Сергей <asvmail.as@gmail.com>, 2023.
|
||||||
|
# kramo <contact@kramo.hu>, 2023.
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: cartridges\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2023-08-16 11:06+0200\n"
|
||||||
|
"PO-Revision-Date: 2023-07-31 00:05+0000\n"
|
||||||
|
"Last-Translator: Сергей <asvmail.as@gmail.com>\n"
|
||||||
|
"Language-Team: Russian <https://hosted.weblate.org/projects/cartridges/"
|
||||||
|
"cartridges/ru/>\n"
|
||||||
|
"Language: ru\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%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
||||||
|
"%10<=4 && (n%100<10 || n%100>=20) ? 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:169
|
||||||
|
msgid "Cartridges"
|
||||||
|
msgstr "Картриджи"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:4
|
||||||
|
msgid "Game Launcher"
|
||||||
|
msgstr "Средство запуска игр"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
|
msgid "Launch all your games"
|
||||||
|
msgstr "Запустите все свои игры"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:11
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
|
||||||
|
msgid ""
|
||||||
|
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
|
||||||
|
msgstr ""
|
||||||
|
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;игры;стим;"
|
||||||
|
|
||||||
|
#: 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 ""
|
||||||
|
"Картриджи - это простое приложение для запуска ваших игр. Оно поддерживает "
|
||||||
|
"импорт игр из Steam, Lutris, Heroic и других без необходимости входа в "
|
||||||
|
"систему. Вы можете сортировать и скрывать игры или загружать обложки из "
|
||||||
|
"SteamGridDB."
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:30
|
||||||
|
msgid "Library"
|
||||||
|
msgstr "Библиотека"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:34
|
||||||
|
msgid "Edit Game Details"
|
||||||
|
msgstr "Редактировать подробности об игре"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:38 data/gtk/window.blp:71
|
||||||
|
#: src/details_window.py:67
|
||||||
|
msgid "Game Details"
|
||||||
|
msgstr "Подробности об игре"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:418
|
||||||
|
#: src/details_window.py:241 src/importer/importer.py:292
|
||||||
|
#: src/importer/importer.py:342
|
||||||
|
msgid "Preferences"
|
||||||
|
msgstr "Параметры"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:25
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Отменить"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:57
|
||||||
|
msgid "New Cover"
|
||||||
|
msgstr "Новая обложка"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:75
|
||||||
|
msgid "Delete Cover"
|
||||||
|
msgstr "Удалить обложку"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:102 data/gtk/game.blp:80
|
||||||
|
msgid "Title"
|
||||||
|
msgstr "Название"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:105
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "The developer or publisher (optional)"
|
||||||
|
msgid "Developer (optional)"
|
||||||
|
msgstr "Разработчик или издатель (необязательно)"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:110
|
||||||
|
msgid "Executable"
|
||||||
|
msgstr "Исполняемый"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:116
|
||||||
|
msgid "More Info"
|
||||||
|
msgstr "Дополнительная информация"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:195
|
||||||
|
msgid "Edit"
|
||||||
|
msgstr "Редактировать"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:107 src/window.py:171
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr "Скрыть"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:56
|
||||||
|
#: data/gtk/window.blp:209
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr "Удалить"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:126 src/window.py:173
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr "Показать"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
|
||||||
|
msgid "General"
|
||||||
|
msgstr "Основное"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr "Выйти"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:217 data/gtk/window.blp:257
|
||||||
|
#: data/gtk/window.blp:324
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "Поиск"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr "Показать параметры"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr "Комбинации клавиш"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34 src/game.py:103 src/preferences.py:120
|
||||||
|
#: src/importer/importer.py:366
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "Вернуть"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr "Открыть меню"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgid "Games"
|
||||||
|
msgstr "Игры"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr "Добавить новую игру"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgid "Import games"
|
||||||
|
msgstr "Импорт игр"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:58
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr "Показать скрытые игры"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:63
|
||||||
|
msgid "Remove game"
|
||||||
|
msgstr "Удалить игру"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:89
|
||||||
|
#: data/gtk/preferences.blp:304
|
||||||
|
msgid "Behavior"
|
||||||
|
msgstr "Поведение"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:16
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr "Выход после запуска игр"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Cover Image Launches Game"
|
||||||
|
msgstr "Запуск игры используя изображение обложки"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26
|
||||||
|
msgid "Swaps the behavior of the cover image and the play button"
|
||||||
|
msgstr "Меняет местами поведение изображения обложки и кнопки запуска"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:36 src/details_window.py:81
|
||||||
|
msgid "Images"
|
||||||
|
msgstr "Изображения"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:39
|
||||||
|
msgid "High Quality Images"
|
||||||
|
msgstr "Изображения высокого качества"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:40
|
||||||
|
msgid "Save game covers losslessly at the cost of storage"
|
||||||
|
msgstr "Сохранение обложек игр без потерь за счет хранилища"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:50
|
||||||
|
msgid "Danger Zone"
|
||||||
|
msgstr "Небезопасная область"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:53
|
||||||
|
msgid "Remove All Games"
|
||||||
|
msgstr "Удалить все игры"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:85 data/gtk/window.blp:27 data/gtk/window.blp:444
|
||||||
|
msgid "Import"
|
||||||
|
msgstr "Импортировать"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:92
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Remove All Games"
|
||||||
|
msgid "Remove Uninstalled Games"
|
||||||
|
msgstr "Удалить все игры"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:102
|
||||||
|
msgid "Sources"
|
||||||
|
msgstr "Источники"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:105
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr "Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:109 data/gtk/preferences.blp:123
|
||||||
|
#: data/gtk/preferences.blp:164 data/gtk/preferences.blp:214
|
||||||
|
#: data/gtk/preferences.blp:228 data/gtk/preferences.blp:242
|
||||||
|
#: data/gtk/preferences.blp:256 data/gtk/preferences.blp:270
|
||||||
|
msgid "Install Location"
|
||||||
|
msgstr "Место установки"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:119
|
||||||
|
msgid "Lutris"
|
||||||
|
msgstr "Lutris"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:132
|
||||||
|
msgid "Cache Location"
|
||||||
|
msgstr "Расположение кэша"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:141
|
||||||
|
msgid "Import Steam Games"
|
||||||
|
msgstr "Импорт игр Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:150
|
||||||
|
msgid "Import Flatpak Games"
|
||||||
|
msgstr "Импорт игр Flatpak"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:160
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr "Heroic"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:173
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr "Импорт игр Epic"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:182
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr "Импорт игр GOG"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:191
|
||||||
|
msgid "Import Amazon Games"
|
||||||
|
msgstr "Импорт игр Amazon"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:200
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr "Импорт сторонних игр"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:210
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr "Bottles"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:224
|
||||||
|
msgid "itch"
|
||||||
|
msgstr "itch"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:238
|
||||||
|
msgid "Legendary"
|
||||||
|
msgstr "Legendary"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:252
|
||||||
|
msgid "RetroArch"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:266
|
||||||
|
msgid "Flatpak"
|
||||||
|
msgstr "Flatpak"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:279
|
||||||
|
msgid "Import Game Launchers"
|
||||||
|
msgstr "Импорт средств запуска игр"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:292
|
||||||
|
msgid "SteamGridDB"
|
||||||
|
msgstr "SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:296
|
||||||
|
msgid "Authentication"
|
||||||
|
msgstr "Аутентификация"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:299
|
||||||
|
msgid "API Key"
|
||||||
|
msgstr "API-ключ"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:307
|
||||||
|
msgid "Use SteamGridDB"
|
||||||
|
msgstr "Использовать SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:308
|
||||||
|
msgid "Download images when adding or importing games"
|
||||||
|
msgstr "Загрузка изображений при добавлении или импорте игр"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:317
|
||||||
|
msgid "Prefer Over Official Images"
|
||||||
|
msgstr "Отдавать предпочтение официальным изображениям"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:326
|
||||||
|
msgid "Prefer Animated Images"
|
||||||
|
msgstr "Отдавать предпочтение анимированным изображениям"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 data/gtk/window.blp:14
|
||||||
|
msgid "No Games Found"
|
||||||
|
msgstr "Игры не найдены"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:7 data/gtk/window.blp:15
|
||||||
|
msgid "Try a different search."
|
||||||
|
msgstr "Попробуйте другой поиск."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:21
|
||||||
|
msgid "No Games"
|
||||||
|
msgstr "Игр нет"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:22
|
||||||
|
msgid "Use the + button to add games."
|
||||||
|
msgstr "Используйте кнопку «+» для добавления игр."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:40
|
||||||
|
msgid "No Hidden Games"
|
||||||
|
msgstr "Нет скрытых игр"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:41
|
||||||
|
msgid "Games you hide will appear here."
|
||||||
|
msgstr "Здесь появятся скрытые игры."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:64 data/gtk/window.blp:305
|
||||||
|
msgid "Back"
|
||||||
|
msgstr "Назад"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:121
|
||||||
|
msgid "Game Title"
|
||||||
|
msgstr "Название игры"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:176
|
||||||
|
msgid "Play"
|
||||||
|
msgstr "Играть"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:243 data/gtk/window.blp:437
|
||||||
|
msgid "Add Game"
|
||||||
|
msgstr "Добавить игру"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:250 data/gtk/window.blp:317
|
||||||
|
msgid "Main Menu"
|
||||||
|
msgstr "Главное меню"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:272
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Search"
|
||||||
|
msgid "Search games"
|
||||||
|
msgstr "Поиск"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:312
|
||||||
|
msgid "Hidden Games"
|
||||||
|
msgstr "Скрытые игры"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:339
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Show hidden games"
|
||||||
|
msgid "Search hidden games"
|
||||||
|
msgstr "Показать скрытые игры"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:376
|
||||||
|
msgid "Sort"
|
||||||
|
msgstr "Сортировать"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:379
|
||||||
|
msgid "A-Z"
|
||||||
|
msgstr "А-Я"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:385
|
||||||
|
msgid "Z-A"
|
||||||
|
msgstr "Я-А"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:391
|
||||||
|
msgid "Newest"
|
||||||
|
msgstr "Сначала новые"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:397
|
||||||
|
msgid "Oldest"
|
||||||
|
msgstr "Сначала старые"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:403
|
||||||
|
msgid "Last Played"
|
||||||
|
msgstr "Последняя игра"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:410
|
||||||
|
msgid "Show Hidden"
|
||||||
|
msgstr "Показать скрытые"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:423
|
||||||
|
msgid "Keyboard Shortcuts"
|
||||||
|
msgstr "Комбинации клавиш"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:428
|
||||||
|
msgid "About Cartridges"
|
||||||
|
msgstr "О приложении"
|
||||||
|
|
||||||
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
|
#: src/main.py:188
|
||||||
|
msgid "translator_credits"
|
||||||
|
msgstr "Ser82-png"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was added
|
||||||
|
#: src/window.py:194
|
||||||
|
msgid "Added: {}"
|
||||||
|
msgstr "Добавлено: {}"
|
||||||
|
|
||||||
|
#: src/window.py:197
|
||||||
|
msgid "Never"
|
||||||
|
msgstr "Никогда"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was last played
|
||||||
|
#: src/window.py:201
|
||||||
|
msgid "Last played: {}"
|
||||||
|
msgstr "Последний раз запускалась: {}"
|
||||||
|
|
||||||
|
#: src/details_window.py:72
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr "Применить"
|
||||||
|
|
||||||
|
#: src/details_window.py:78
|
||||||
|
msgid "Add New Game"
|
||||||
|
msgstr "Добавить новую игру"
|
||||||
|
|
||||||
|
#: src/details_window.py:79
|
||||||
|
msgid "Add"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "file"
|
||||||
|
#: src/details_window.py:92
|
||||||
|
msgid "file.txt"
|
||||||
|
msgstr "file.txt"
|
||||||
|
|
||||||
|
#. As in software
|
||||||
|
#: src/details_window.py:94
|
||||||
|
msgid "program"
|
||||||
|
msgstr "программа"
|
||||||
|
|
||||||
|
#. 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:\\путь\\к\\{}"
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "path to {}"
|
||||||
|
#: src/details_window.py:105 src/details_window.py:107
|
||||||
|
msgid "/path/to/{}"
|
||||||
|
msgstr "/путь/к/{}"
|
||||||
|
|
||||||
|
#: 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 ""
|
||||||
|
"Чтобы запустить исполняемый файл \"{}\", выполните команду:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>\"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"Чтобы открыть файл \"{}\" с помощью приложения по умолчанию, используйте:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>{} \"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"Если путь содержит пробелы, обязательно заключите его в двойные кавычки!"
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:153
|
||||||
|
msgid "Couldn't Add Game"
|
||||||
|
msgstr "Не удалось добавить игру"
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:183
|
||||||
|
msgid "Game title cannot be empty."
|
||||||
|
msgstr "Название игры не может быть пустым."
|
||||||
|
|
||||||
|
#: src/details_window.py:153 src/details_window.py:191
|
||||||
|
msgid "Executable cannot be empty."
|
||||||
|
msgstr "Исполняемый файл не может быть пустым."
|
||||||
|
|
||||||
|
#: src/details_window.py:182 src/details_window.py:190
|
||||||
|
msgid "Couldn't Apply Preferences"
|
||||||
|
msgstr "Не удалось применить параметры"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:139
|
||||||
|
msgid "{} launched"
|
||||||
|
msgstr "{} - запущена"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} hidden"
|
||||||
|
msgstr "{} - скрытая"
|
||||||
|
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} unhidden"
|
||||||
|
msgstr "{} - не скрыта"
|
||||||
|
|
||||||
|
#. 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"
|
||||||
|
msgstr "{} удалена"
|
||||||
|
|
||||||
|
#: src/preferences.py:119
|
||||||
|
msgid "All games removed"
|
||||||
|
msgstr "Все игры удалены"
|
||||||
|
|
||||||
|
#: src/preferences.py:168
|
||||||
|
msgid ""
|
||||||
|
"An API key is required to use SteamGridDB. You can generate one {}here{}."
|
||||||
|
msgstr ""
|
||||||
|
"Для использования SteamGridDB требуется ключ API. Вы можете сгенерировать "
|
||||||
|
"его {}здесь{}."
|
||||||
|
|
||||||
|
#: src/preferences.py:294
|
||||||
|
msgid "Installation Not Found"
|
||||||
|
msgstr "Установка не найдена"
|
||||||
|
|
||||||
|
#: src/preferences.py:296
|
||||||
|
msgid "Select a valid directory."
|
||||||
|
msgstr "Выберите действующий каталог."
|
||||||
|
|
||||||
|
#: src/preferences.py:351
|
||||||
|
msgid "Invalid Directory"
|
||||||
|
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 "1 игра импортирована"
|
||||||
|
|
||||||
|
#. 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
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "{} removed"
|
||||||
|
msgid "1 removed"
|
||||||
|
msgstr "{} удалена"
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:33
|
||||||
|
msgid "Select the {} cache directory."
|
||||||
|
msgstr "Выберите каталог кэша {}."
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:35
|
||||||
|
msgid "Select the {} configuration directory."
|
||||||
|
msgstr "Выберите каталог конфигурации {}."
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:37
|
||||||
|
msgid "Select the {} data directory."
|
||||||
|
msgstr "Выберите каталог данных {}."
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:46
|
||||||
|
msgid "Couldn't Authenticate SteamGridDB"
|
||||||
|
msgstr "Не удалось пройти аутентификацию SteamGridDB"
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:47
|
||||||
|
msgid "Verify your API key in preferences"
|
||||||
|
msgstr "Проверьте ключ API-ключ в параметрах"
|
||||||
|
|
||||||
|
#~ msgid "The title of the game"
|
||||||
|
#~ msgstr "Название игры"
|
||||||
|
|
||||||
|
#~ msgid "Developer"
|
||||||
|
#~ msgstr "Разработчик"
|
||||||
|
|
||||||
|
#~ msgid "File to open or command to run when launching the game"
|
||||||
|
#~ msgstr "Файл для открытия или команда для запуска игры"
|
||||||
|
|
||||||
|
#~ msgid "Confirm"
|
||||||
|
#~ msgstr "Подтвердить"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "The Steam directory cannot be found."
|
||||||
|
#~ msgid "Directory not Valid"
|
||||||
|
#~ msgstr "Не удалось найти каталог Steam."
|
||||||
|
|
||||||
|
#~ msgid "Cache"
|
||||||
|
#~ msgstr "Кэш"
|
||||||
|
|
||||||
|
#~ msgid "Configuration"
|
||||||
|
#~ msgstr "Конфигурация"
|
||||||
|
|
||||||
|
#~ msgid "Invalid {} Location for {{}}"
|
||||||
|
#~ msgstr "Неверное расположение {} для {{}}"
|
||||||
|
|
||||||
|
#~ msgid "Pick a new one or disable the source in preferences"
|
||||||
|
#~ msgstr "Выберите новый или отключите имеющийся источник в параметрах"
|
||||||
|
|
||||||
|
#~ msgid "Steam Install Location"
|
||||||
|
#~ msgstr "Место установки Steam"
|
||||||
|
|
||||||
|
#~ msgid "Lutris Install Location"
|
||||||
|
#~ msgstr "Место установки Lutris"
|
||||||
|
|
||||||
|
#~ msgid "Heroic Install Location"
|
||||||
|
#~ msgstr "Место установки Heroic"
|
||||||
|
|
||||||
|
#~ msgid "Bottles Install Location"
|
||||||
|
#~ msgstr "Место установки Bottles"
|
||||||
|
|
||||||
|
#~ msgid "Today"
|
||||||
|
#~ msgstr "Сегодня"
|
||||||
|
|
||||||
|
#~ msgid "Yesterday"
|
||||||
|
#~ msgstr "Вчера"
|
||||||
|
|
||||||
|
#~ msgid "Cache Not Found"
|
||||||
|
#~ msgstr "Кэш не найден"
|
||||||
|
|
||||||
|
#~ msgid "Select the Lutris cache directory."
|
||||||
|
#~ msgstr "Выберите каталог кэша Lutris."
|
||||||
|
|
||||||
|
#~ msgid "Importing Covers…"
|
||||||
|
#~ msgstr "Импорт обложек…"
|
||||||
|
|
||||||
|
#~ msgid "Directory to use when importing games"
|
||||||
|
#~ msgstr "Каталог для импорта игр"
|
||||||
|
|
||||||
|
#~ msgid "Extra Steam Libraries"
|
||||||
|
#~ msgstr "Дополнительные библиотеки Steam"
|
||||||
|
|
||||||
|
#~ msgid "Select other directories where you have Steam games installed"
|
||||||
|
#~ msgstr "Выберите другие каталоги, в которых у вас установлены игры из Steam"
|
||||||
|
|
||||||
|
#~ msgid "Clear"
|
||||||
|
#~ msgstr "Очистить"
|
||||||
|
|
||||||
|
#~ msgid "Directory to use when importing game covers"
|
||||||
|
#~ msgstr "Каталог для импорта обложек игр"
|
||||||
|
|
||||||
|
#~ msgid "Details"
|
||||||
|
#~ msgstr "Подробности"
|
||||||
|
|
||||||
|
#~ msgid "No new games were found on your system."
|
||||||
|
#~ msgstr "В вашей системе не найдено новых игр."
|
||||||
|
|
||||||
|
#~ msgid "Successfully imported 1 game."
|
||||||
|
#~ msgstr "Успешно импортирована 1 игра."
|
||||||
|
|
||||||
|
#~ msgid "Successfully imported {} games."
|
||||||
|
#~ msgstr "Успешно импортировано {} игр."
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Looks like you have multiple Steam libraries. Would you like to add them "
|
||||||
|
#~ "in preferences?"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "Похоже, у вас несколько библиотек Steam. Хотите добавить их в параметрах?"
|
||||||
|
|
||||||
|
#~ msgid "Launch your games"
|
||||||
|
#~ msgstr "Запускайте свои игры"
|
||||||
|
|
||||||
|
#, python-brace-format
|
||||||
|
#~ msgid "Last played: {last_played_date}"
|
||||||
|
#~ msgstr "Последняя игра: {last_played_date}"
|
||||||
|
|
||||||
|
#, python-brace-format
|
||||||
|
#~ msgid "Successfully imported {games_no} games."
|
||||||
|
#~ msgstr "Успешно импортировано {games_no} игр."
|
||||||
|
|
||||||
|
#, python-brace-format
|
||||||
|
#~ msgid "C:\\path\\to\\{file_name}"
|
||||||
|
#~ msgstr "C:\\путь\\к\\{file_name}"
|
||||||
|
|
||||||
|
#, python-brace-format
|
||||||
|
#~ msgid "/path/to/{file_name}"
|
||||||
|
#~ msgstr "/путь/к/{file_name}"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "General"
|
||||||
|
#~ msgctxt "shortcuts window"
|
||||||
|
#~ msgid "General"
|
||||||
|
#~ msgstr "Основное"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "Search"
|
||||||
|
#~ msgctxt "shortcuts window"
|
||||||
|
#~ msgid "Search"
|
||||||
|
#~ msgstr "Поиск"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "Undo"
|
||||||
|
#~ msgctxt "shortcuts window"
|
||||||
|
#~ msgid "Undo"
|
||||||
|
#~ msgstr "Отменить"
|
||||||
|
|
||||||
|
#~ msgid "First stable release"
|
||||||
|
#~ msgstr "Первый стабильный выпуск"
|
||||||
|
|
||||||
|
#~ msgctxt "shortcut window"
|
||||||
|
#~ msgid "General"
|
||||||
|
#~ msgstr "Основное"
|
||||||
|
|
||||||
|
#~ msgctxt "shortcut window"
|
||||||
|
#~ msgid "Search"
|
||||||
|
#~ msgstr "Поиск"
|
||||||
|
|
||||||
|
#~ msgctxt "shortcut window"
|
||||||
|
#~ msgid "Undo"
|
||||||
|
#~ msgstr "Отменить"
|
||||||
|
|
||||||
|
#~ msgid "Couldn't Import Games"
|
||||||
|
#~ msgstr "Не удалось импортировать игры"
|
||||||
|
|
||||||
|
#~ msgid "The Bottles directory cannot be found."
|
||||||
|
#~ msgstr "Не удалось найти каталог Bottles."
|
||||||
|
|
||||||
|
#~ msgid "Set Bottles Location"
|
||||||
|
#~ msgstr "Установить расположение Bottles"
|
||||||
|
|
||||||
|
#~ msgid "No new games were found in the Bottles library."
|
||||||
|
#~ msgstr "В библиотеке Bottles не было найдено новых игр."
|
||||||
|
|
||||||
|
#~ msgid "Bottles Games Imported"
|
||||||
|
#~ msgstr "Игры Bottles импортированы"
|
||||||
|
|
||||||
|
#~ msgid "The Heroic directory cannot be found."
|
||||||
|
#~ msgstr "Не удалось найти каталог Heroic."
|
||||||
|
|
||||||
|
#~ msgid "Heroic Games Imported"
|
||||||
|
#~ msgstr "Игры Heroic импортированы"
|
||||||
|
|
||||||
|
#~ msgid "No new games were found in the Steam library."
|
||||||
|
#~ msgstr "В библиотеке Steam новых игр не найдено."
|
||||||
|
|
||||||
|
#~ msgid "Talking to Steam"
|
||||||
|
#~ msgstr "Общение со Steam"
|
||||||
694
po/sv.po
Normal file
@@ -0,0 +1,694 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR kramo
|
||||||
|
# This file is distributed under the same license as the Cartridges package.
|
||||||
|
# micke <mikanybe@gmail.com>, 2023.
|
||||||
|
# micke <micke@users.noreply.hosted.weblate.org>, 2023.
|
||||||
|
# Luna Jernberg <droidbittin@gmail.com>, 2023.
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Cartridges\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2023-08-16 11:06+0200\n"
|
||||||
|
"PO-Revision-Date: 2023-07-08 14:52+0000\n"
|
||||||
|
"Last-Translator: Luna Jernberg <droidbittin@gmail.com>\n"
|
||||||
|
"Language-Team: Swedish <https://hosted.weblate.org/projects/cartridges/"
|
||||||
|
"cartridges/sv/>\n"
|
||||||
|
"Language: sv\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||||
|
"X-Generator: Weblate 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:169
|
||||||
|
msgid "Cartridges"
|
||||||
|
msgstr "Cartridges"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:4
|
||||||
|
msgid "Game Launcher"
|
||||||
|
msgstr "Spelstartare"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
|
msgid "Launch all your games"
|
||||||
|
msgstr "Starta alla dina spel"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:11
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
|
||||||
|
msgid ""
|
||||||
|
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
|
||||||
|
msgstr ""
|
||||||
|
"gaming;spelstartare;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
||||||
|
msgid ""
|
||||||
|
"Cartridges is a simple game launcher for all of your games. It has support "
|
||||||
|
"for importing games from Steam, Lutris, Heroic and more with no login "
|
||||||
|
"necessary. You can sort and hide games or download cover art from "
|
||||||
|
"SteamGridDB."
|
||||||
|
msgstr ""
|
||||||
|
"Cartridges är en enkel spelstartare för alla dina spel. Det har stöd för att "
|
||||||
|
"importera spel från Steam, Lutris, Heroic och fler utan inloggning. Du kan "
|
||||||
|
"sortera och dölja spel eller ladda ner omslagsbilder från SteamGridDB."
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:30
|
||||||
|
msgid "Library"
|
||||||
|
msgstr "Bibliotek"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:34
|
||||||
|
msgid "Edit Game Details"
|
||||||
|
msgstr "Redigera speldetaljer"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:38 data/gtk/window.blp:71
|
||||||
|
#: src/details_window.py:67
|
||||||
|
msgid "Game Details"
|
||||||
|
msgstr "Speldetaljer"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:418
|
||||||
|
#: src/details_window.py:241 src/importer/importer.py:292
|
||||||
|
#: src/importer/importer.py:342
|
||||||
|
msgid "Preferences"
|
||||||
|
msgstr "Inställningar"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:25
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Avbryt"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:57
|
||||||
|
msgid "New Cover"
|
||||||
|
msgstr "Nytt omslag"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:75
|
||||||
|
msgid "Delete Cover"
|
||||||
|
msgstr "Ta bort omslag"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:102 data/gtk/game.blp:80
|
||||||
|
msgid "Title"
|
||||||
|
msgstr "Titel"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:105
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "The developer or publisher (optional)"
|
||||||
|
msgid "Developer (optional)"
|
||||||
|
msgstr "Utvecklaren eller utgivaren (valfritt)"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:110
|
||||||
|
msgid "Executable"
|
||||||
|
msgstr "Körbar"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:116
|
||||||
|
msgid "More Info"
|
||||||
|
msgstr "Mer info"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:195
|
||||||
|
msgid "Edit"
|
||||||
|
msgstr "Redigera"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:107 src/window.py:171
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr "Dölj"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:56
|
||||||
|
#: data/gtk/window.blp:209
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr "Ta bort"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:126 src/window.py:173
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr "Visa"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
|
||||||
|
msgid "General"
|
||||||
|
msgstr "Allmänt"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr "Avsluta"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:217 data/gtk/window.blp:257
|
||||||
|
#: data/gtk/window.blp:324
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "Sök"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr "Visa inställningar"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr "Genvägar"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34 src/game.py:103 src/preferences.py:120
|
||||||
|
#: src/importer/importer.py:366
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "Ångra"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr "Öppna meny"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgid "Games"
|
||||||
|
msgstr "Spel"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr "Lägg till nytt spel"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgid "Import games"
|
||||||
|
msgstr "Importera spel"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:58
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr "Visa dolda spel"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:63
|
||||||
|
msgid "Remove game"
|
||||||
|
msgstr "Ta bort spel"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:89
|
||||||
|
#: data/gtk/preferences.blp:304
|
||||||
|
msgid "Behavior"
|
||||||
|
msgstr "Beteende"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:16
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr "Avsluta efter start av spel"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Cover Image Launches Game"
|
||||||
|
msgstr "Omslagsbild startar spel"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26
|
||||||
|
msgid "Swaps the behavior of the cover image and the play button"
|
||||||
|
msgstr "Byt beteende för omslagsbilden och Spela-knappen"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:36 src/details_window.py:81
|
||||||
|
msgid "Images"
|
||||||
|
msgstr "Bilder"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:39
|
||||||
|
msgid "High Quality Images"
|
||||||
|
msgstr "Bilder av hög kvalitet"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:40
|
||||||
|
msgid "Save game covers losslessly at the cost of storage"
|
||||||
|
msgstr ""
|
||||||
|
"Spara omslagsbilder utan kvalitetsförlust på bekostnad av lagringsplats"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:50
|
||||||
|
msgid "Danger Zone"
|
||||||
|
msgstr "Farozon"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:53
|
||||||
|
msgid "Remove All Games"
|
||||||
|
msgstr "Ta bort alla spel"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:85 data/gtk/window.blp:27 data/gtk/window.blp:444
|
||||||
|
msgid "Import"
|
||||||
|
msgstr "Importera"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:92
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Remove All Games"
|
||||||
|
msgid "Remove Uninstalled Games"
|
||||||
|
msgstr "Ta bort alla spel"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:102
|
||||||
|
msgid "Sources"
|
||||||
|
msgstr "Källor"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:105
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr "Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:109 data/gtk/preferences.blp:123
|
||||||
|
#: data/gtk/preferences.blp:164 data/gtk/preferences.blp:214
|
||||||
|
#: data/gtk/preferences.blp:228 data/gtk/preferences.blp:242
|
||||||
|
#: data/gtk/preferences.blp:256 data/gtk/preferences.blp:270
|
||||||
|
msgid "Install Location"
|
||||||
|
msgstr "Plats för installation"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:119
|
||||||
|
msgid "Lutris"
|
||||||
|
msgstr "Lutris"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:132
|
||||||
|
msgid "Cache Location"
|
||||||
|
msgstr "Plats för cacheminne"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:141
|
||||||
|
msgid "Import Steam Games"
|
||||||
|
msgstr "Importera Steam-spel"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:150
|
||||||
|
msgid "Import Flatpak Games"
|
||||||
|
msgstr "Importera Flatpak-spel"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:160
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr "Heroic"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:173
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr "Importera Epic Games"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:182
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr "Importera GOG-spel"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:191
|
||||||
|
msgid "Import Amazon Games"
|
||||||
|
msgstr "Importera Amazon-spel"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:200
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr "Importera sidoladdade spel"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:210
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr "Bottles"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:224
|
||||||
|
msgid "itch"
|
||||||
|
msgstr "itch"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:238
|
||||||
|
msgid "Legendary"
|
||||||
|
msgstr "Legendary"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:252
|
||||||
|
msgid "RetroArch"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:266
|
||||||
|
msgid "Flatpak"
|
||||||
|
msgstr "Flatpak"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:279
|
||||||
|
msgid "Import Game Launchers"
|
||||||
|
msgstr "Importera spelstartare"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:292
|
||||||
|
msgid "SteamGridDB"
|
||||||
|
msgstr "SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:296
|
||||||
|
msgid "Authentication"
|
||||||
|
msgstr "Autentisering"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:299
|
||||||
|
msgid "API Key"
|
||||||
|
msgstr "API-nyckel"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:307
|
||||||
|
msgid "Use SteamGridDB"
|
||||||
|
msgstr "Använd SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:308
|
||||||
|
msgid "Download images when adding or importing games"
|
||||||
|
msgstr "Ladda ner bilder när spel läggs till eller importeras"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:317
|
||||||
|
msgid "Prefer Over Official Images"
|
||||||
|
msgstr "Föredra framför officiella bilder"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:326
|
||||||
|
msgid "Prefer Animated Images"
|
||||||
|
msgstr "Föredra animerade bilder"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 data/gtk/window.blp:14
|
||||||
|
msgid "No Games Found"
|
||||||
|
msgstr "Inga spel hittades"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:7 data/gtk/window.blp:15
|
||||||
|
msgid "Try a different search."
|
||||||
|
msgstr "Försök med en annan sökning."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:21
|
||||||
|
msgid "No Games"
|
||||||
|
msgstr "Inga spel"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:22
|
||||||
|
msgid "Use the + button to add games."
|
||||||
|
msgstr "Använd +-knappen för att lägga till spel."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:40
|
||||||
|
msgid "No Hidden Games"
|
||||||
|
msgstr "Inga dolda spel"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:41
|
||||||
|
msgid "Games you hide will appear here."
|
||||||
|
msgstr "Spel som du döljer kommer visas här."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:64 data/gtk/window.blp:305
|
||||||
|
msgid "Back"
|
||||||
|
msgstr "Bakåt"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:121
|
||||||
|
msgid "Game Title"
|
||||||
|
msgstr "Speltitel"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:176
|
||||||
|
msgid "Play"
|
||||||
|
msgstr "Spela"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:243 data/gtk/window.blp:437
|
||||||
|
msgid "Add Game"
|
||||||
|
msgstr "Lägg till spel"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:250 data/gtk/window.blp:317
|
||||||
|
msgid "Main Menu"
|
||||||
|
msgstr "Huvudmeny"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:272
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Search"
|
||||||
|
msgid "Search games"
|
||||||
|
msgstr "Sök"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:312
|
||||||
|
msgid "Hidden Games"
|
||||||
|
msgstr "Dolda spel"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:339
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Show hidden games"
|
||||||
|
msgid "Search hidden games"
|
||||||
|
msgstr "Visa dolda spel"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:376
|
||||||
|
msgid "Sort"
|
||||||
|
msgstr "Sortering"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:379
|
||||||
|
msgid "A-Z"
|
||||||
|
msgstr "A-Ö"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:385
|
||||||
|
msgid "Z-A"
|
||||||
|
msgstr "Ö-A"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:391
|
||||||
|
msgid "Newest"
|
||||||
|
msgstr "Nyaste"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:397
|
||||||
|
msgid "Oldest"
|
||||||
|
msgstr "Äldsta"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:403
|
||||||
|
msgid "Last Played"
|
||||||
|
msgstr "Senast spelad"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:410
|
||||||
|
msgid "Show Hidden"
|
||||||
|
msgstr "Visa dolda"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:423
|
||||||
|
msgid "Keyboard Shortcuts"
|
||||||
|
msgstr "Tangentbordsgenvägar"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:428
|
||||||
|
msgid "About Cartridges"
|
||||||
|
msgstr "Om Cartridges"
|
||||||
|
|
||||||
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
|
#: src/main.py:188
|
||||||
|
msgid "translator_credits"
|
||||||
|
msgstr "Micke"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was added
|
||||||
|
#: src/window.py:194
|
||||||
|
msgid "Added: {}"
|
||||||
|
msgstr "Tillagt: {}"
|
||||||
|
|
||||||
|
#: src/window.py:197
|
||||||
|
msgid "Never"
|
||||||
|
msgstr "Aldrig"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was last played
|
||||||
|
#: src/window.py:201
|
||||||
|
msgid "Last played: {}"
|
||||||
|
msgstr "Senast spelat: {}"
|
||||||
|
|
||||||
|
#: src/details_window.py:72
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr "Tillämpa"
|
||||||
|
|
||||||
|
#: src/details_window.py:78
|
||||||
|
msgid "Add New Game"
|
||||||
|
msgstr "Lägg till nytt spel"
|
||||||
|
|
||||||
|
#: src/details_window.py:79
|
||||||
|
msgid "Add"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "file"
|
||||||
|
#: src/details_window.py:92
|
||||||
|
msgid "file.txt"
|
||||||
|
msgstr "fil.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:\\sökväg\\till\\{}"
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "path to {}"
|
||||||
|
#: src/details_window.py:105 src/details_window.py:107
|
||||||
|
msgid "/path/to/{}"
|
||||||
|
msgstr "/sökväg/till/{}"
|
||||||
|
|
||||||
|
#: 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 ""
|
||||||
|
"Använd kommandot för att starta den körbara filen \"{}\":\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>\"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"För att öppna filen \"{}\" med standardprogrammet använder du:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>{} \"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"Om sökvägen innehåller mellanslag, se till att den omsluts av dubbla "
|
||||||
|
"citationstecken!"
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:153
|
||||||
|
msgid "Couldn't Add Game"
|
||||||
|
msgstr "Kunde inte lägga till spelet"
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:183
|
||||||
|
msgid "Game title cannot be empty."
|
||||||
|
msgstr "Spelets titel kan inte vara tom."
|
||||||
|
|
||||||
|
#: src/details_window.py:153 src/details_window.py:191
|
||||||
|
msgid "Executable cannot be empty."
|
||||||
|
msgstr "Den körbara filen kan inte vara tom."
|
||||||
|
|
||||||
|
#: src/details_window.py:182 src/details_window.py:190
|
||||||
|
msgid "Couldn't Apply Preferences"
|
||||||
|
msgstr "Kunde inte tillämpa inställningar"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:139
|
||||||
|
msgid "{} launched"
|
||||||
|
msgstr "{} startat"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} hidden"
|
||||||
|
msgstr "{} dolt"
|
||||||
|
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} unhidden"
|
||||||
|
msgstr "{} synlig"
|
||||||
|
|
||||||
|
#. 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"
|
||||||
|
msgstr "{} borttaget"
|
||||||
|
|
||||||
|
#: src/preferences.py:119
|
||||||
|
msgid "All games removed"
|
||||||
|
msgstr "Alla spel togs bort"
|
||||||
|
|
||||||
|
#: src/preferences.py:168
|
||||||
|
msgid ""
|
||||||
|
"An API key is required to use SteamGridDB. You can generate one {}here{}."
|
||||||
|
msgstr ""
|
||||||
|
"En API-nyckel krävs för att använda SteamGridDB. Du kan generera en {}här{}."
|
||||||
|
|
||||||
|
#: src/preferences.py:294
|
||||||
|
msgid "Installation Not Found"
|
||||||
|
msgstr "Installation hittades inte"
|
||||||
|
|
||||||
|
#: src/preferences.py:296
|
||||||
|
msgid "Select a valid directory."
|
||||||
|
msgstr "Välj en giltig katalog."
|
||||||
|
|
||||||
|
#: src/preferences.py:351
|
||||||
|
msgid "Invalid Directory"
|
||||||
|
msgstr "Ogiltig katalog"
|
||||||
|
|
||||||
|
#: src/preferences.py:357
|
||||||
|
msgid "Set Location"
|
||||||
|
msgstr "Ange plats"
|
||||||
|
|
||||||
|
#: src/utils/create_dialog.py:25 src/importer/importer.py:291
|
||||||
|
msgid "Dismiss"
|
||||||
|
msgstr "Avvisa"
|
||||||
|
|
||||||
|
#: src/importer/importer.py:128
|
||||||
|
msgid "Importing Games…"
|
||||||
|
msgstr "Importerar spel…"
|
||||||
|
|
||||||
|
#: 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 "Inga nya spel hittades"
|
||||||
|
|
||||||
|
#: src/importer/importer.py:351
|
||||||
|
msgid "1 game imported"
|
||||||
|
msgstr "1 spel Importerat"
|
||||||
|
|
||||||
|
#. The variable is the number of games
|
||||||
|
#: src/importer/importer.py:355
|
||||||
|
msgid "{} games imported"
|
||||||
|
msgstr "{} spel importerade"
|
||||||
|
|
||||||
|
#. A single game removed
|
||||||
|
#: src/importer/importer.py:359
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "{} removed"
|
||||||
|
msgid "1 removed"
|
||||||
|
msgstr "{} borttaget"
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:33
|
||||||
|
msgid "Select the {} cache directory."
|
||||||
|
msgstr "Välj {} cachekatalog."
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:35
|
||||||
|
msgid "Select the {} configuration directory."
|
||||||
|
msgstr "Välj {} konfigurationskatalog."
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:37
|
||||||
|
msgid "Select the {} data directory."
|
||||||
|
msgstr "Välj {} datakatalog."
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:46
|
||||||
|
msgid "Couldn't Authenticate SteamGridDB"
|
||||||
|
msgstr "Kunde inte autentisera SteamGridDB"
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:47
|
||||||
|
msgid "Verify your API key in preferences"
|
||||||
|
msgstr "Verifiera din API-nyckel i inställningar"
|
||||||
|
|
||||||
|
#~ msgid "The title of the game"
|
||||||
|
#~ msgstr "Spelets titel"
|
||||||
|
|
||||||
|
#~ msgid "Developer"
|
||||||
|
#~ msgstr "Utvecklare"
|
||||||
|
|
||||||
|
#~ msgid "File to open or command to run when launching the game"
|
||||||
|
#~ msgstr "Fil som ska öppnas eller kommando som ska köras när spelet startas"
|
||||||
|
|
||||||
|
#~ msgid "Confirm"
|
||||||
|
#~ msgstr "Bekräfta"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "Directory not Valid"
|
||||||
|
#~ msgstr "Cache inte hittad"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "Configuration"
|
||||||
|
#~ msgstr "Bekräfta"
|
||||||
|
|
||||||
|
#~ msgid "Steam Install Location"
|
||||||
|
#~ msgstr "Steam-installationsplats"
|
||||||
|
|
||||||
|
#~ msgid "Lutris Install Location"
|
||||||
|
#~ msgstr "Lutris-installationsplats"
|
||||||
|
|
||||||
|
#~ msgid "Heroic Install Location"
|
||||||
|
#~ msgstr "Heroic-installationsplats"
|
||||||
|
|
||||||
|
#~ msgid "Bottles Install Location"
|
||||||
|
#~ msgstr "Bottles-installationsplats"
|
||||||
|
|
||||||
|
#~ msgid "Today"
|
||||||
|
#~ msgstr "Idag"
|
||||||
|
|
||||||
|
#~ msgid "Yesterday"
|
||||||
|
#~ msgstr "Igår"
|
||||||
|
|
||||||
|
#~ msgid "Select the Lutris cache directory."
|
||||||
|
#~ msgstr "Välj Lutris cache-mapp."
|
||||||
|
|
||||||
|
#~ msgid "Importing Covers…"
|
||||||
|
#~ msgstr "Importerar omslagsbilder…"
|
||||||
|
|
||||||
|
#~ msgid "Directory to use when importing games"
|
||||||
|
#~ msgstr "Mapp att använda för importering av spel"
|
||||||
|
|
||||||
|
#~ msgid "Extra Steam Libraries"
|
||||||
|
#~ msgstr "Extra Steam-bibliotek"
|
||||||
|
|
||||||
|
#~ msgid "Select other directories where you have Steam games installed"
|
||||||
|
#~ msgstr "Välj andra mappar där du har Steam-spel installerade"
|
||||||
|
|
||||||
|
#~ msgid "Clear"
|
||||||
|
#~ msgstr "Rensa"
|
||||||
|
|
||||||
|
#~ msgid "Directory to use when importing game covers"
|
||||||
|
#~ msgstr "Mapp att använda för import av omslagsbilder"
|
||||||
|
|
||||||
|
#~ msgid "Details"
|
||||||
|
#~ msgstr "Detaljer"
|
||||||
|
|
||||||
|
#~ msgid "No new games were found on your system."
|
||||||
|
#~ msgstr "Inga nya spel hittades på ditt system."
|
||||||
|
|
||||||
|
#~ msgid "Successfully imported 1 game."
|
||||||
|
#~ msgstr "Importerade 1 spel."
|
||||||
|
|
||||||
|
#~ msgid "Successfully imported {} games."
|
||||||
|
#~ msgstr "Importerade {} spel."
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Looks like you have multiple Steam libraries. Would you like to add them "
|
||||||
|
#~ "in preferences?"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "Du verkar ha flera Steam-bibliotek. Vill du lägga till dem i "
|
||||||
|
#~ "inställningar?"
|
||||||
|
|
||||||
|
#~ msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;"
|
||||||
|
#~ msgstr "gaming;spelstartare;steam;lutris;heroic;bottles;itch;"
|
||||||
660
po/tr.po
Normal file
@@ -0,0 +1,660 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR kramo
|
||||||
|
# This file is distributed under the same license as the Cartridges package.
|
||||||
|
# Sabri Ünal <libreajans@gmail.com>, 2023.
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Cartridges\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2023-08-16 11:06+0200\n"
|
||||||
|
"PO-Revision-Date: 2023-07-15 22:51+0000\n"
|
||||||
|
"Last-Translator: Sabri Ünal <libreajans@gmail.com>\n"
|
||||||
|
"Language-Team: Turkish <https://hosted.weblate.org/projects/cartridges/"
|
||||||
|
"cartridges/tr/>\n"
|
||||||
|
"Language: tr\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||||
|
"X-Generator: Weblate 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:169
|
||||||
|
msgid "Cartridges"
|
||||||
|
msgstr "Kartuşlar"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:4
|
||||||
|
msgid "Game Launcher"
|
||||||
|
msgstr "Oyun Başlatıcı"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
|
msgid "Launch all your games"
|
||||||
|
msgstr "Tüm oyunlarınızı başlatın"
|
||||||
|
|
||||||
|
#: 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;retroarch;"
|
||||||
|
msgstr "oyun;başlatıcı;steam;lutris;heroic;bottles;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 ""
|
||||||
|
"Kartuşlar, tüm oyunlarınız için basit bir oyun başlatıcıdır. Oturum açmaya "
|
||||||
|
"gerek kalmadan Steam, Lutris, Heroic ve daha fazla sağlayıcıdan oyun içe "
|
||||||
|
"aktarma desteğine sahiptir. Oyunları sıralayabilir, gizleyebilir veya "
|
||||||
|
"SteamGridDB'den kapak resmi indirebilirsiniz."
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:30
|
||||||
|
msgid "Library"
|
||||||
|
msgstr "Kütüphane"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:34
|
||||||
|
msgid "Edit Game Details"
|
||||||
|
msgstr "Oyun Ayrıntılarını Düzenle"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:38 data/gtk/window.blp:71
|
||||||
|
#: src/details_window.py:67
|
||||||
|
msgid "Game Details"
|
||||||
|
msgstr "Oyun Ayrıntıları"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/window.blp:418
|
||||||
|
#: src/details_window.py:241 src/importer/importer.py:292
|
||||||
|
#: src/importer/importer.py:342
|
||||||
|
msgid "Preferences"
|
||||||
|
msgstr "Tercihler"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:25
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "İptal"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:57
|
||||||
|
msgid "New Cover"
|
||||||
|
msgstr "Yeni Kapak"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:75
|
||||||
|
msgid "Delete Cover"
|
||||||
|
msgstr "Kapağı Sil"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:102 data/gtk/game.blp:80
|
||||||
|
msgid "Title"
|
||||||
|
msgstr "Başlık"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:105
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "The developer or publisher (optional)"
|
||||||
|
msgid "Developer (optional)"
|
||||||
|
msgstr "Geliştirici veya yayıncı (isteğe bağlı)"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:110
|
||||||
|
msgid "Executable"
|
||||||
|
msgstr "Yürütülebilir"
|
||||||
|
|
||||||
|
#: data/gtk/details-window.blp:116
|
||||||
|
msgid "More Info"
|
||||||
|
msgstr "Daha Fazla Bilgi"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:195
|
||||||
|
msgid "Edit"
|
||||||
|
msgstr "Düzenle"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:107 src/window.py:171
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr "Gizle"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:56
|
||||||
|
#: data/gtk/window.blp:209
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr "Kaldır"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:126 src/window.py:173
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr "Göster"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
|
||||||
|
msgid "General"
|
||||||
|
msgstr "Genel"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr "Çık"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:217 data/gtk/window.blp:257
|
||||||
|
#: data/gtk/window.blp:324
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "Ara"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr "Tercihleri göster"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr "Kısayollar"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34 src/game.py:103 src/preferences.py:120
|
||||||
|
#: src/importer/importer.py:366
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "Geri Al"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr "Menüyü aç"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgid "Games"
|
||||||
|
msgstr "Oyunlar"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr "Yeni oyun ekle"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgid "Import games"
|
||||||
|
msgstr "Oyunları içe aktar"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:58
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr "Gizli oyunları göster"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:63
|
||||||
|
msgid "Remove game"
|
||||||
|
msgstr "Oyunu kaldır"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:89
|
||||||
|
#: data/gtk/preferences.blp:304
|
||||||
|
msgid "Behavior"
|
||||||
|
msgstr "Davranış"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:16
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr "Oyunu Başlatıldıktan Sonra Çık"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Cover Image Launches Game"
|
||||||
|
msgstr "Kapak Görüntüsü Oyunu Başlatır"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26
|
||||||
|
msgid "Swaps the behavior of the cover image and the play button"
|
||||||
|
msgstr "Kapak görüntüsünün ve oyna düğmesinin davranışını değiştirir"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:36 src/details_window.py:81
|
||||||
|
msgid "Images"
|
||||||
|
msgstr "Görüntüler"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:39
|
||||||
|
msgid "High Quality Images"
|
||||||
|
msgstr "Yüksek Kaliteli Görüntüler"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:40
|
||||||
|
msgid "Save game covers losslessly at the cost of storage"
|
||||||
|
msgstr ""
|
||||||
|
"Oyun kapaklarını, daha çok depolama alanı gerektirmesine rağmen, kayıpsız "
|
||||||
|
"kaydet"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:50
|
||||||
|
msgid "Danger Zone"
|
||||||
|
msgstr "Tehlikeli Bölge"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:53
|
||||||
|
msgid "Remove All Games"
|
||||||
|
msgstr "Tüm Oyunları Kaldır"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:85 data/gtk/window.blp:27 data/gtk/window.blp:444
|
||||||
|
msgid "Import"
|
||||||
|
msgstr "İçe Aktar"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:92
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Remove All Games"
|
||||||
|
msgid "Remove Uninstalled Games"
|
||||||
|
msgstr "Tüm Oyunları Kaldır"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:102
|
||||||
|
msgid "Sources"
|
||||||
|
msgstr "Kaynaklar"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:105
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr "Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:109 data/gtk/preferences.blp:123
|
||||||
|
#: data/gtk/preferences.blp:164 data/gtk/preferences.blp:214
|
||||||
|
#: data/gtk/preferences.blp:228 data/gtk/preferences.blp:242
|
||||||
|
#: data/gtk/preferences.blp:256 data/gtk/preferences.blp:270
|
||||||
|
msgid "Install Location"
|
||||||
|
msgstr "Kurulu Konumu"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:119
|
||||||
|
msgid "Lutris"
|
||||||
|
msgstr "Lutris"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:132
|
||||||
|
msgid "Cache Location"
|
||||||
|
msgstr "Önbellek Konumu"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:141
|
||||||
|
msgid "Import Steam Games"
|
||||||
|
msgstr "Steam Oyunlarını İçe Aktar"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:150
|
||||||
|
msgid "Import Flatpak Games"
|
||||||
|
msgstr "Flatpak Oyunlarını İçe Aktarın"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:160
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr "Heroic"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:173
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr "Epic Oyunlarını İçe Aktar"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:182
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr "GOG Oyunlarını İçe Aktar"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:191
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Import Steam Games"
|
||||||
|
msgid "Import Amazon Games"
|
||||||
|
msgstr "Steam Oyunlarını İçe Aktar"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:200
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr "Yandan Yüklenmiş Oyunları İçe Aktar"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:210
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr "Şişeler"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:224
|
||||||
|
msgid "itch"
|
||||||
|
msgstr "itch"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:238
|
||||||
|
msgid "Legendary"
|
||||||
|
msgstr "Efsanevi"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:252
|
||||||
|
msgid "RetroArch"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:266
|
||||||
|
msgid "Flatpak"
|
||||||
|
msgstr "Flatpak"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:279
|
||||||
|
msgid "Import Game Launchers"
|
||||||
|
msgstr "Oyun Başlatıcıları İçe Aktar"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:292
|
||||||
|
msgid "SteamGridDB"
|
||||||
|
msgstr "SteamGridDB"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:296
|
||||||
|
msgid "Authentication"
|
||||||
|
msgstr "Kimlik Doğrulaması"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:299
|
||||||
|
msgid "API Key"
|
||||||
|
msgstr "API anahtarı"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:307
|
||||||
|
msgid "Use SteamGridDB"
|
||||||
|
msgstr "SteamGridDB Kullan"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:308
|
||||||
|
msgid "Download images when adding or importing games"
|
||||||
|
msgstr "Oyun eklerken veya içe aktarırken görüntüleri indir"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:317
|
||||||
|
msgid "Prefer Over Official Images"
|
||||||
|
msgstr "Resmî Görsellere Yeğle"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:326
|
||||||
|
msgid "Prefer Animated Images"
|
||||||
|
msgstr "Hareketli Görselleri Yeğle"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 data/gtk/window.blp:14
|
||||||
|
msgid "No Games Found"
|
||||||
|
msgstr "Hiçbir Oyun Bulunamadı"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:7 data/gtk/window.blp:15
|
||||||
|
msgid "Try a different search."
|
||||||
|
msgstr "Başka arama dene."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:21
|
||||||
|
msgid "No Games"
|
||||||
|
msgstr "Oyun Yok"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:22
|
||||||
|
msgid "Use the + button to add games."
|
||||||
|
msgstr "Oyun eklemek için + düğmesini kullanın."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:40
|
||||||
|
msgid "No Hidden Games"
|
||||||
|
msgstr "Gizli Oyun Yok"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:41
|
||||||
|
msgid "Games you hide will appear here."
|
||||||
|
msgstr "Gizlediğiniz oyunlar burada belirecek."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:64 data/gtk/window.blp:305
|
||||||
|
msgid "Back"
|
||||||
|
msgstr "Geri"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:121
|
||||||
|
msgid "Game Title"
|
||||||
|
msgstr "Oyun Başlığı"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:176
|
||||||
|
msgid "Play"
|
||||||
|
msgstr "Oyna"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:243 data/gtk/window.blp:437
|
||||||
|
msgid "Add Game"
|
||||||
|
msgstr "Oyun Ekle"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:250 data/gtk/window.blp:317
|
||||||
|
msgid "Main Menu"
|
||||||
|
msgstr "Ana Menü"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:272
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Search"
|
||||||
|
msgid "Search games"
|
||||||
|
msgstr "Ara"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:312
|
||||||
|
msgid "Hidden Games"
|
||||||
|
msgstr "Gizli Oyunlar"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:339
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Show hidden games"
|
||||||
|
msgid "Search hidden games"
|
||||||
|
msgstr "Gizli oyunları göster"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:376
|
||||||
|
msgid "Sort"
|
||||||
|
msgstr "Sırala"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:379
|
||||||
|
msgid "A-Z"
|
||||||
|
msgstr "A-Z"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:385
|
||||||
|
msgid "Z-A"
|
||||||
|
msgstr "Z-A"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:391
|
||||||
|
msgid "Newest"
|
||||||
|
msgstr "En Yeni"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:397
|
||||||
|
msgid "Oldest"
|
||||||
|
msgstr "En Eski"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:403
|
||||||
|
msgid "Last Played"
|
||||||
|
msgstr "Son Oynanan"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:410
|
||||||
|
msgid "Show Hidden"
|
||||||
|
msgstr "Gizlileri Göster"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:423
|
||||||
|
msgid "Keyboard Shortcuts"
|
||||||
|
msgstr "Klavye Kısayolları"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:428
|
||||||
|
msgid "About Cartridges"
|
||||||
|
msgstr "Kartuşlar Hakkında"
|
||||||
|
|
||||||
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
|
#: src/main.py:188
|
||||||
|
msgid "translator_credits"
|
||||||
|
msgstr "Sabri Ünal <libreajans@gmail.com>"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was added
|
||||||
|
#: src/window.py:194
|
||||||
|
msgid "Added: {}"
|
||||||
|
msgstr "Eklendi: {}"
|
||||||
|
|
||||||
|
#: src/window.py:197
|
||||||
|
msgid "Never"
|
||||||
|
msgstr "Asla"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was last played
|
||||||
|
#: src/window.py:201
|
||||||
|
msgid "Last played: {}"
|
||||||
|
msgstr "Son oynanma: {}"
|
||||||
|
|
||||||
|
#: src/details_window.py:72
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr "Uygula"
|
||||||
|
|
||||||
|
#: src/details_window.py:78
|
||||||
|
msgid "Add New Game"
|
||||||
|
msgstr "Yeni Oyun Ekle"
|
||||||
|
|
||||||
|
#: src/details_window.py:79
|
||||||
|
msgid "Add"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "file"
|
||||||
|
#: src/details_window.py:92
|
||||||
|
msgid "file.txt"
|
||||||
|
msgstr "dosya.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:\\yol\\klasör\\{}"
|
||||||
|
|
||||||
|
#. Translate this string as you would translate "path to {}"
|
||||||
|
#: src/details_window.py:105 src/details_window.py:107
|
||||||
|
msgid "/path/to/{}"
|
||||||
|
msgstr "/yol/klasör/{}"
|
||||||
|
|
||||||
|
#: 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 ""
|
||||||
|
"\"{}\" yürütülebilirini başlatmak için şu komutu kullanın:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>\"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"\"{}\" dosyasını öntanımlı uygulamayla açmak için şunu kullanın:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>\"{}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"Yol boşluk içeriyorsa, çift tırnak içine aldığınızdan emin olun!"
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:153
|
||||||
|
msgid "Couldn't Add Game"
|
||||||
|
msgstr "Oyun Eklenemedi"
|
||||||
|
|
||||||
|
#: src/details_window.py:147 src/details_window.py:183
|
||||||
|
msgid "Game title cannot be empty."
|
||||||
|
msgstr "Oyun başlığı boş olamaz."
|
||||||
|
|
||||||
|
#: src/details_window.py:153 src/details_window.py:191
|
||||||
|
msgid "Executable cannot be empty."
|
||||||
|
msgstr "Çalıştırılabilir boş olamaz."
|
||||||
|
|
||||||
|
#: src/details_window.py:182 src/details_window.py:190
|
||||||
|
msgid "Couldn't Apply Preferences"
|
||||||
|
msgstr "Tercihler Uygulanamadı"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:139
|
||||||
|
msgid "{} launched"
|
||||||
|
msgstr "{} başlatıldı"
|
||||||
|
|
||||||
|
#. The variable is the title of the game
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} hidden"
|
||||||
|
msgstr "{} gizli"
|
||||||
|
|
||||||
|
#: src/game.py:153
|
||||||
|
msgid "{} unhidden"
|
||||||
|
msgstr "{} görünür"
|
||||||
|
|
||||||
|
#. 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"
|
||||||
|
msgstr "{} kaldırıldı"
|
||||||
|
|
||||||
|
#: src/preferences.py:119
|
||||||
|
msgid "All games removed"
|
||||||
|
msgstr "Tüm oyunlar kaldırıldı"
|
||||||
|
|
||||||
|
#: src/preferences.py:168
|
||||||
|
msgid ""
|
||||||
|
"An API key is required to use SteamGridDB. You can generate one {}here{}."
|
||||||
|
msgstr ""
|
||||||
|
"SteamGridDBʼyi kullanmak için API anahtarı gereklidir. {}Buradan{} bir tane "
|
||||||
|
"oluşturabilirsiniz."
|
||||||
|
|
||||||
|
#: src/preferences.py:294
|
||||||
|
msgid "Installation Not Found"
|
||||||
|
msgstr "Kurulum Bulunamadı"
|
||||||
|
|
||||||
|
#: src/preferences.py:296
|
||||||
|
msgid "Select a valid directory."
|
||||||
|
msgstr "Geçerli bir dizin seçin."
|
||||||
|
|
||||||
|
#: src/preferences.py:351
|
||||||
|
msgid "Invalid Directory"
|
||||||
|
msgstr "Geçersiz Dizin"
|
||||||
|
|
||||||
|
#: src/preferences.py:357
|
||||||
|
msgid "Set Location"
|
||||||
|
msgstr "Konum Ayarla"
|
||||||
|
|
||||||
|
#: src/utils/create_dialog.py:25 src/importer/importer.py:291
|
||||||
|
msgid "Dismiss"
|
||||||
|
msgstr "Vazgeç"
|
||||||
|
|
||||||
|
#: src/importer/importer.py:128
|
||||||
|
msgid "Importing Games…"
|
||||||
|
msgstr "Oyunlar İçe Aktarılıyor…"
|
||||||
|
|
||||||
|
#: 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 "Yeni oyun bulunamadı"
|
||||||
|
|
||||||
|
#: src/importer/importer.py:351
|
||||||
|
msgid "1 game imported"
|
||||||
|
msgstr "1 oyun içe aktarıldı"
|
||||||
|
|
||||||
|
#. The variable is the number of games
|
||||||
|
#: src/importer/importer.py:355
|
||||||
|
msgid "{} games imported"
|
||||||
|
msgstr "{} oyun içe aktarıldı"
|
||||||
|
|
||||||
|
#. A single game removed
|
||||||
|
#: src/importer/importer.py:359
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "{} removed"
|
||||||
|
msgid "1 removed"
|
||||||
|
msgstr "{} kaldırıldı"
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:33
|
||||||
|
msgid "Select the {} cache directory."
|
||||||
|
msgstr "{} önbellek dizinini seç."
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:35
|
||||||
|
msgid "Select the {} configuration directory."
|
||||||
|
msgstr "{} yapılandırma dizinini seç."
|
||||||
|
|
||||||
|
#. The variable is the name of the source
|
||||||
|
#: src/importer/sources/location.py:37
|
||||||
|
msgid "Select the {} data directory."
|
||||||
|
msgstr "{} veri dizinini seç."
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:46
|
||||||
|
msgid "Couldn't Authenticate SteamGridDB"
|
||||||
|
msgstr "SteamGridDB Kimlik Doğrulaması Yapılamadı"
|
||||||
|
|
||||||
|
#: src/store/managers/sgdb_manager.py:47
|
||||||
|
msgid "Verify your API key in preferences"
|
||||||
|
msgstr "Tercihlerde API anahtarınızı doğrulayın"
|
||||||
|
|
||||||
|
#~ msgid "The title of the game"
|
||||||
|
#~ msgstr "Oyunun başlığı"
|
||||||
|
|
||||||
|
#~ msgid "Developer"
|
||||||
|
#~ msgstr "Geliştirici"
|
||||||
|
|
||||||
|
#~ msgid "File to open or command to run when launching the game"
|
||||||
|
#~ msgstr "Oyun başlatılırken açılacak dosya veya çalıştırılacak komut"
|
||||||
|
|
||||||
|
#~ msgid "Confirm"
|
||||||
|
#~ msgstr "Doğrula"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "Cache Not Found"
|
||||||
|
#~ msgid "Directory not Valid"
|
||||||
|
#~ msgstr "Önbellek Bulunamadı"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~| msgid "Confirm"
|
||||||
|
#~ msgid "Configuration"
|
||||||
|
#~ msgstr "Doğrula"
|
||||||
|
|
||||||
|
#~ msgid "Steam Install Location"
|
||||||
|
#~ msgstr "Steam Kurulu Konumu"
|
||||||
|
|
||||||
|
#~ msgid "Lutris Install Location"
|
||||||
|
#~ msgstr "Lutris Kurulu Konumu"
|
||||||
|
|
||||||
|
#~ msgid "Heroic Install Location"
|
||||||
|
#~ msgstr "Heroic Kurulu Konumu"
|
||||||
|
|
||||||
|
#~ msgid "Bottles Install Location"
|
||||||
|
#~ msgstr "Şişeler Kurulu Konumu"
|
||||||
|
|
||||||
|
#~ msgid "Today"
|
||||||
|
#~ msgstr "Bugün"
|
||||||
|
|
||||||
|
#~ msgid "Yesterday"
|
||||||
|
#~ msgstr "Dün"
|
||||||
|
|
||||||
|
#~ msgid "Select the Lutris cache directory."
|
||||||
|
#~ msgstr "Lutris önbellek dizinini seç."
|
||||||
|
|
||||||
|
#~ msgid "Importing Covers…"
|
||||||
|
#~ msgstr "Kapaklar İçe Aktarılıyor…"
|
||||||
1
src/__builtins__.pyi
Normal file
@@ -0,0 +1 @@
|
|||||||
|
def _(_msg: str, /) -> str: ...
|
||||||
@@ -27,6 +27,11 @@ import gettext
|
|||||||
|
|
||||||
VERSION = "@VERSION@"
|
VERSION = "@VERSION@"
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
|
from ctypes import windll
|
||||||
|
|
||||||
|
os.environ["LANGUAGE"] = locale.windows_locale[
|
||||||
|
windll.kernel32.GetUserDefaultUILanguage()
|
||||||
|
]
|
||||||
pkgdatadir = os.path.join(os.path.dirname(__file__), "..", "share", "cartridges")
|
pkgdatadir = os.path.join(os.path.dirname(__file__), "..", "share", "cartridges")
|
||||||
localedir = os.path.join(os.path.dirname(__file__), "..", "share", "locale")
|
localedir = os.path.join(os.path.dirname(__file__), "..", "share", "locale")
|
||||||
else:
|
else:
|
||||||
@@ -50,6 +55,6 @@ if __name__ == "__main__":
|
|||||||
resource = Gio.Resource.load(os.path.join(pkgdatadir, "cartridges.gresource"))
|
resource = Gio.Resource.load(os.path.join(pkgdatadir, "cartridges.gresource"))
|
||||||
resource._register()
|
resource._register()
|
||||||
|
|
||||||
from cartridges import main
|
from src import main
|
||||||
|
|
||||||
sys.exit(main.main(VERSION))
|
sys.exit(main.main(VERSION))
|
||||||
|
|||||||
280
src/details_window.py
Normal file
@@ -0,0 +1,280 @@
|
|||||||
|
# details_window.py
|
||||||
|
#
|
||||||
|
# Copyright 2022-2023 kramo
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
import os
|
||||||
|
from time import time
|
||||||
|
from typing import Any, Optional
|
||||||
|
|
||||||
|
from gi.repository import Adw, Gio, GLib, Gtk
|
||||||
|
from PIL import Image
|
||||||
|
|
||||||
|
from src import shared
|
||||||
|
from src.errors.friendly_error import FriendlyError
|
||||||
|
from src.game import Game
|
||||||
|
from src.game_cover import GameCover
|
||||||
|
from src.store.managers.sgdb_manager import SGDBManager
|
||||||
|
from src.utils.create_dialog import create_dialog
|
||||||
|
from src.utils.save_cover import resize_cover, save_cover
|
||||||
|
|
||||||
|
|
||||||
|
@Gtk.Template(resource_path=shared.PREFIX + "/gtk/details-window.ui")
|
||||||
|
class DetailsWindow(Adw.Window):
|
||||||
|
__gtype_name__ = "DetailsWindow"
|
||||||
|
|
||||||
|
cover_overlay = Gtk.Template.Child()
|
||||||
|
cover = Gtk.Template.Child()
|
||||||
|
cover_button_edit = Gtk.Template.Child()
|
||||||
|
cover_button_delete_revealer = Gtk.Template.Child()
|
||||||
|
cover_button_delete = Gtk.Template.Child()
|
||||||
|
spinner = Gtk.Template.Child()
|
||||||
|
|
||||||
|
name = Gtk.Template.Child()
|
||||||
|
developer = Gtk.Template.Child()
|
||||||
|
executable = Gtk.Template.Child()
|
||||||
|
|
||||||
|
exec_info_label = Gtk.Template.Child()
|
||||||
|
exec_info_popover = Gtk.Template.Child()
|
||||||
|
|
||||||
|
apply_button = Gtk.Template.Child()
|
||||||
|
|
||||||
|
cover_changed: bool = False
|
||||||
|
|
||||||
|
def __init__(self, game: Optional[Game] = None, **kwargs: Any):
|
||||||
|
super().__init__(**kwargs)
|
||||||
|
|
||||||
|
self.game: Game = game
|
||||||
|
self.game_cover: GameCover = GameCover({self.cover})
|
||||||
|
|
||||||
|
self.set_transient_for(shared.win)
|
||||||
|
|
||||||
|
if self.game:
|
||||||
|
self.set_title(_("Game Details"))
|
||||||
|
self.name.set_text(self.game.name)
|
||||||
|
if self.game.developer:
|
||||||
|
self.developer.set_text(self.game.developer)
|
||||||
|
self.executable.set_text(self.game.executable)
|
||||||
|
self.apply_button.set_label(_("Apply"))
|
||||||
|
|
||||||
|
self.game_cover.new_cover(self.game.get_cover_path())
|
||||||
|
if self.game_cover.get_texture():
|
||||||
|
self.cover_button_delete_revealer.set_reveal_child(True)
|
||||||
|
else:
|
||||||
|
self.set_title(_("Add New Game"))
|
||||||
|
self.apply_button.set_label(_("Add"))
|
||||||
|
|
||||||
|
image_filter = Gtk.FileFilter(name=_("Images"))
|
||||||
|
for extension in Image.registered_extensions():
|
||||||
|
image_filter.add_suffix(extension[1:])
|
||||||
|
image_filter.add_suffix("svg") # Gdk.Texture supports .svg but PIL doesn't
|
||||||
|
|
||||||
|
file_filters = Gio.ListStore.new(Gtk.FileFilter)
|
||||||
|
file_filters.append(image_filter)
|
||||||
|
self.file_dialog = Gtk.FileDialog()
|
||||||
|
self.file_dialog.set_filters(file_filters)
|
||||||
|
|
||||||
|
# Translate this string as you would translate "file"
|
||||||
|
file_name = _("file.txt")
|
||||||
|
# As in software
|
||||||
|
exe_name = _("program")
|
||||||
|
|
||||||
|
if os.name == "nt":
|
||||||
|
exe_name += ".exe"
|
||||||
|
# Translate this string as you would translate "path to {}"
|
||||||
|
exe_path = _("C:\\path\\to\\{}").format(exe_name)
|
||||||
|
# Translate this string as you would translate "path to {}"
|
||||||
|
file_path = _("C:\\path\\to\\{}").format(file_name)
|
||||||
|
command = "start"
|
||||||
|
else:
|
||||||
|
# Translate this string as you would translate "path to {}"
|
||||||
|
exe_path = _("/path/to/{}").format(exe_name)
|
||||||
|
# Translate this string as you would translate "path to {}"
|
||||||
|
file_path = _("/path/to/{}").format(file_name)
|
||||||
|
command = "xdg-open"
|
||||||
|
|
||||||
|
# pylint: disable=line-too-long
|
||||||
|
exec_info_text = _(
|
||||||
|
'To launch the executable "{}", use the command:\n\n<tt>"{}"</tt>\n\nTo open the file "{}" with the default application, use:\n\n<tt>{} "{}"</tt>\n\nIf the path contains spaces, make sure to wrap it in double quotes!'
|
||||||
|
).format(exe_name, exe_path, file_name, command, file_path)
|
||||||
|
|
||||||
|
self.exec_info_label.set_label(exec_info_text)
|
||||||
|
|
||||||
|
self.exec_info_popover.update_property(
|
||||||
|
(Gtk.AccessibleProperty.LABEL,),
|
||||||
|
(
|
||||||
|
exec_info_text.replace("<tt>", "").replace("</tt>", ""),
|
||||||
|
), # Remove formatting, else the screen reader reads it
|
||||||
|
)
|
||||||
|
|
||||||
|
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_edit.connect("clicked", self.choose_cover)
|
||||||
|
self.apply_button.connect("clicked", self.apply_preferences)
|
||||||
|
|
||||||
|
self.name.connect("entry-activated", self.focus_executable)
|
||||||
|
self.developer.connect("entry-activated", self.focus_executable)
|
||||||
|
self.executable.connect("entry-activated", self.apply_preferences)
|
||||||
|
|
||||||
|
self.set_focus(self.name)
|
||||||
|
self.present()
|
||||||
|
|
||||||
|
def delete_pixbuf(self, *_args: Any) -> None:
|
||||||
|
self.game_cover.new_cover()
|
||||||
|
|
||||||
|
self.cover_button_delete_revealer.set_reveal_child(False)
|
||||||
|
self.cover_changed = True
|
||||||
|
|
||||||
|
def apply_preferences(self, *_args: Any) -> None:
|
||||||
|
final_name = self.name.get_text()
|
||||||
|
final_developer = self.developer.get_text()
|
||||||
|
final_executable = self.executable.get_text()
|
||||||
|
|
||||||
|
if not self.game:
|
||||||
|
if final_name == "":
|
||||||
|
create_dialog(
|
||||||
|
self, _("Couldn't Add Game"), _("Game title cannot be empty.")
|
||||||
|
)
|
||||||
|
return
|
||||||
|
|
||||||
|
if final_executable == "":
|
||||||
|
create_dialog(
|
||||||
|
self, _("Couldn't Add Game"), _("Executable cannot be empty.")
|
||||||
|
)
|
||||||
|
return
|
||||||
|
|
||||||
|
# Increment the number after the game id (eg. imported_1, imported_2)
|
||||||
|
source_id = "imported"
|
||||||
|
numbers = [0]
|
||||||
|
game_id: str
|
||||||
|
for game_id in shared.store.source_games.get(source_id, set()):
|
||||||
|
prefix = "imported_"
|
||||||
|
if not game_id.startswith(prefix):
|
||||||
|
continue
|
||||||
|
numbers.append(int(game_id.replace(prefix, "", 1)))
|
||||||
|
|
||||||
|
game_number = max(numbers) + 1
|
||||||
|
|
||||||
|
self.game = Game(
|
||||||
|
{
|
||||||
|
"game_id": f"imported_{game_number}",
|
||||||
|
"hidden": False,
|
||||||
|
"source": source_id,
|
||||||
|
"added": int(time()),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
else:
|
||||||
|
if final_name == "":
|
||||||
|
create_dialog(
|
||||||
|
self,
|
||||||
|
_("Couldn't Apply Preferences"),
|
||||||
|
_("Game title cannot be empty."),
|
||||||
|
)
|
||||||
|
return
|
||||||
|
|
||||||
|
if final_executable == "":
|
||||||
|
create_dialog(
|
||||||
|
self,
|
||||||
|
_("Couldn't Apply Preferences"),
|
||||||
|
_("Executable cannot be empty."),
|
||||||
|
)
|
||||||
|
return
|
||||||
|
|
||||||
|
self.game.name = final_name
|
||||||
|
self.game.developer = final_developer or None
|
||||||
|
self.game.executable = final_executable
|
||||||
|
|
||||||
|
if self.game.game_id in shared.win.game_covers.keys():
|
||||||
|
shared.win.game_covers[self.game.game_id].animation = None
|
||||||
|
|
||||||
|
shared.win.game_covers[self.game.game_id] = self.game_cover
|
||||||
|
|
||||||
|
if self.cover_changed:
|
||||||
|
save_cover(
|
||||||
|
self.game.game_id,
|
||||||
|
self.game_cover.path,
|
||||||
|
)
|
||||||
|
|
||||||
|
shared.store.add_game(self.game, {}, run_pipeline=False)
|
||||||
|
self.game.save()
|
||||||
|
self.game.update()
|
||||||
|
|
||||||
|
# TODO: this is fucked up (less than before)
|
||||||
|
# Get a cover from SGDB if none is present
|
||||||
|
if not self.game_cover.get_texture():
|
||||||
|
self.game.set_loading(1)
|
||||||
|
sgdb_manager: SGDBManager = shared.store.managers[SGDBManager]
|
||||||
|
sgdb_manager.reset_cancellable()
|
||||||
|
sgdb_manager.process_game(self.game, {}, self.update_cover_callback)
|
||||||
|
|
||||||
|
self.game_cover.pictures.remove(self.cover)
|
||||||
|
|
||||||
|
self.close()
|
||||||
|
shared.win.show_details_view(self.game)
|
||||||
|
|
||||||
|
def update_cover_callback(self, manager: SGDBManager) -> None:
|
||||||
|
# Set the game as not loading
|
||||||
|
self.game.set_loading(-1)
|
||||||
|
self.game.update()
|
||||||
|
|
||||||
|
# Handle errors that occured
|
||||||
|
for error in manager.collect_errors():
|
||||||
|
# On auth error, inform the user
|
||||||
|
if isinstance(error, FriendlyError):
|
||||||
|
create_dialog(
|
||||||
|
shared.win,
|
||||||
|
error.title,
|
||||||
|
error.subtitle,
|
||||||
|
"open_preferences",
|
||||||
|
_("Preferences"),
|
||||||
|
).connect("response", self.update_cover_error_response)
|
||||||
|
|
||||||
|
def update_cover_error_response(self, _widget: Any, response: str) -> None:
|
||||||
|
if response == "open_preferences":
|
||||||
|
shared.win.get_application().on_preferences_action(page_name="sgdb")
|
||||||
|
|
||||||
|
def focus_executable(self, *_args: Any) -> None:
|
||||||
|
self.set_focus(self.executable)
|
||||||
|
|
||||||
|
def toggle_loading(self) -> None:
|
||||||
|
self.apply_button.set_sensitive(not self.apply_button.get_sensitive())
|
||||||
|
self.spinner.set_spinning(not self.spinner.get_spinning())
|
||||||
|
self.cover_overlay.set_opacity(not self.cover_overlay.get_opacity())
|
||||||
|
|
||||||
|
def set_cover(self, _source: Any, result: Gio.Task, *_args: Any) -> None:
|
||||||
|
try:
|
||||||
|
path = self.file_dialog.open_finish(result).get_path()
|
||||||
|
except GLib.GError:
|
||||||
|
return
|
||||||
|
|
||||||
|
def resize() -> None:
|
||||||
|
if cover := resize_cover(path):
|
||||||
|
self.game_cover.new_cover(cover)
|
||||||
|
self.cover_button_delete_revealer.set_reveal_child(True)
|
||||||
|
self.cover_changed = True
|
||||||
|
self.toggle_loading()
|
||||||
|
|
||||||
|
self.toggle_loading()
|
||||||
|
GLib.Thread.new(None, resize)
|
||||||
|
|
||||||
|
def choose_cover(self, *_args: Any) -> None:
|
||||||
|
self.file_dialog.open(self, None, self.set_cover)
|
||||||
28
src/errors/error_producer.py
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
from threading import Lock
|
||||||
|
|
||||||
|
|
||||||
|
class ErrorProducer:
|
||||||
|
"""
|
||||||
|
A mixin for objects that produce errors.
|
||||||
|
|
||||||
|
Specifies the report_error and collect_errors methods in a thread-safe manner.
|
||||||
|
"""
|
||||||
|
|
||||||
|
errors: list[Exception]
|
||||||
|
errors_lock: Lock
|
||||||
|
|
||||||
|
def __init__(self) -> None:
|
||||||
|
self.errors = []
|
||||||
|
self.errors_lock = Lock()
|
||||||
|
|
||||||
|
def report_error(self, error: Exception) -> None:
|
||||||
|
"""Report an error"""
|
||||||
|
with self.errors_lock:
|
||||||
|
self.errors.append(error)
|
||||||
|
|
||||||
|
def collect_errors(self) -> list[Exception]:
|
||||||
|
"""Collect and remove the errors produced by the object"""
|
||||||
|
with self.errors_lock:
|
||||||
|
errors = self.errors.copy()
|
||||||
|
self.errors.clear()
|
||||||
|
return errors
|
||||||
47
src/errors/friendly_error.py
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
from typing import Iterable, Optional
|
||||||
|
|
||||||
|
|
||||||
|
class FriendlyError(Exception):
|
||||||
|
"""
|
||||||
|
An error that is supposed to be shown to the user in a nice format
|
||||||
|
|
||||||
|
Use `raise ... from ...` to preserve context.
|
||||||
|
"""
|
||||||
|
|
||||||
|
title_format: str
|
||||||
|
title_args: Iterable[str]
|
||||||
|
subtitle_format: str
|
||||||
|
subtitle_args: Iterable[str]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def title(self) -> str:
|
||||||
|
"""Get the gettext translated error title"""
|
||||||
|
return self.title_format.format(self.title_args)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def subtitle(self) -> str:
|
||||||
|
"""Get the gettext translated error subtitle"""
|
||||||
|
return self.subtitle_format.format(self.subtitle_args)
|
||||||
|
|
||||||
|
def __init__(
|
||||||
|
self,
|
||||||
|
title: str,
|
||||||
|
subtitle: str,
|
||||||
|
title_args: Optional[Iterable[str]] = None,
|
||||||
|
subtitle_args: Optional[Iterable[str]] = None,
|
||||||
|
) -> None:
|
||||||
|
"""Create a friendly error
|
||||||
|
|
||||||
|
:param str title: The error's title, translatable with gettext
|
||||||
|
:param str subtitle: The error's subtitle, translatable with gettext
|
||||||
|
"""
|
||||||
|
super().__init__()
|
||||||
|
if title is not None:
|
||||||
|
self.title_format = title
|
||||||
|
if subtitle is not None:
|
||||||
|
self.subtitle_format = subtitle
|
||||||
|
self.title_args = title_args if title_args else ()
|
||||||
|
self.subtitle_args = subtitle_args if subtitle_args else ()
|
||||||
|
|
||||||
|
def __str__(self) -> str:
|
||||||
|
return f"{self.title} - {self.subtitle}"
|
||||||
245
src/game.py
@@ -17,125 +17,208 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
import json
|
import logging
|
||||||
import os
|
import os
|
||||||
|
import shlex
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
from pathlib import Path
|
||||||
|
from time import time
|
||||||
|
from typing import Any, Optional
|
||||||
|
|
||||||
from gi.repository import GdkPixbuf, Gio, Gtk
|
from gi.repository import Adw, GLib, GObject, Gtk
|
||||||
|
|
||||||
from .save_games import save_games
|
from src import shared
|
||||||
|
from src.game_cover import GameCover
|
||||||
|
|
||||||
|
|
||||||
@Gtk.Template(resource_path="/hu/kramo/Cartridges/gtk/game.ui")
|
# pylint: disable=too-many-instance-attributes
|
||||||
class game(Gtk.Box): # pylint: disable=invalid-name
|
@Gtk.Template(resource_path=shared.PREFIX + "/gtk/game.ui")
|
||||||
__gtype_name__ = "game"
|
class Game(Gtk.Box):
|
||||||
|
__gtype_name__ = "Game"
|
||||||
|
|
||||||
overlay = Gtk.Template.Child()
|
|
||||||
title = Gtk.Template.Child()
|
title = Gtk.Template.Child()
|
||||||
button_play = Gtk.Template.Child()
|
play_button = Gtk.Template.Child()
|
||||||
cover = Gtk.Template.Child()
|
cover = Gtk.Template.Child()
|
||||||
|
spinner = Gtk.Template.Child()
|
||||||
cover_button = Gtk.Template.Child()
|
cover_button = Gtk.Template.Child()
|
||||||
menu_button = Gtk.Template.Child()
|
menu_button = Gtk.Template.Child()
|
||||||
play_revealer = Gtk.Template.Child()
|
play_revealer = Gtk.Template.Child()
|
||||||
title_revealer = Gtk.Template.Child()
|
menu_revealer = Gtk.Template.Child()
|
||||||
game_options = Gtk.Template.Child()
|
game_options = Gtk.Template.Child()
|
||||||
hidden_game_options = Gtk.Template.Child()
|
hidden_game_options = Gtk.Template.Child()
|
||||||
|
|
||||||
def __init__(self, parent_widget, data, **kwargs):
|
loading: int = 0
|
||||||
|
filtered: bool = False
|
||||||
|
|
||||||
|
added: int
|
||||||
|
executable: str
|
||||||
|
game_id: str
|
||||||
|
source: str
|
||||||
|
hidden: bool = False
|
||||||
|
last_played: int = 0
|
||||||
|
name: str
|
||||||
|
developer: Optional[str] = None
|
||||||
|
removed: bool = False
|
||||||
|
blacklisted: bool = False
|
||||||
|
game_cover: GameCover = None
|
||||||
|
version: int = 0
|
||||||
|
|
||||||
|
def __init__(self, data: dict[str, Any], **kwargs: Any) -> None:
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
|
|
||||||
self.parent_widget = parent_widget
|
self.win = shared.win
|
||||||
self.added = data["added"]
|
self.app = self.win.get_application()
|
||||||
self.executable = data["executable"]
|
self.version = shared.SPEC_VERSION
|
||||||
self.game_id = data["game_id"]
|
|
||||||
self.hidden = data["hidden"]
|
|
||||||
self.last_played = data["last_played"]
|
|
||||||
self.name = data["name"]
|
|
||||||
self.developer = data["developer"] if "developer" in data.keys() else None
|
|
||||||
self.removed = "removed" in data.keys()
|
|
||||||
self.blacklisted = "blacklisted" in data.keys()
|
|
||||||
|
|
||||||
self.pixbuf = self.get_cover()
|
self.update_values(data)
|
||||||
|
self.base_source = self.source.split("_")[0]
|
||||||
|
|
||||||
self.cover.set_pixbuf(self.pixbuf)
|
self.set_play_icon()
|
||||||
self.title.set_label(self.name)
|
|
||||||
|
|
||||||
self.event_contoller_motion = Gtk.EventControllerMotion.new()
|
self.event_contoller_motion = Gtk.EventControllerMotion.new()
|
||||||
self.add_controller(self.event_contoller_motion)
|
self.add_controller(self.event_contoller_motion)
|
||||||
self.overlay.set_measure_overlay(self.play_revealer, True)
|
self.event_contoller_motion.connect("enter", self.toggle_play, False)
|
||||||
|
self.event_contoller_motion.connect("leave", self.toggle_play, None, None)
|
||||||
|
self.cover_button.connect("clicked", self.main_button_clicked, False)
|
||||||
|
self.play_button.connect("clicked", self.main_button_clicked, True)
|
||||||
|
|
||||||
self.button_play.connect("clicked", self.launch_game)
|
shared.schema.connect("changed", self.schema_changed)
|
||||||
self.event_contoller_motion.connect("enter", self.show_play)
|
|
||||||
self.event_contoller_motion.connect("leave", self.hide_play)
|
|
||||||
|
|
||||||
if self.hidden:
|
def update_values(self, data: dict[str, Any]) -> None:
|
||||||
self.menu_button.set_menu_model(self.hidden_game_options)
|
for key, value in data.items():
|
||||||
else:
|
# Convert executables to strings
|
||||||
self.menu_button.set_menu_model(self.game_options)
|
if key == "executable" and isinstance(value, list):
|
||||||
self.menu_button.get_popover().connect("notify::visible", self.hide_play)
|
value = shlex.join(value)
|
||||||
|
setattr(self, key, value)
|
||||||
|
|
||||||
def launch(self):
|
def update(self) -> None:
|
||||||
# The host environment vars are automatically passed through by Popen.
|
self.emit("update-ready", {})
|
||||||
|
|
||||||
|
def save(self) -> None:
|
||||||
|
self.emit("save-ready", {})
|
||||||
|
|
||||||
|
def create_toast(self, title: str, action: Optional[str] = None) -> None:
|
||||||
|
toast = Adw.Toast.new(title.format(self.name))
|
||||||
|
toast.set_priority(Adw.ToastPriority.HIGH)
|
||||||
|
|
||||||
|
if action:
|
||||||
|
toast.set_button_label(_("Undo"))
|
||||||
|
toast.connect("button-clicked", self.win.on_undo_action, self, action)
|
||||||
|
|
||||||
|
if (self, action) in self.win.toasts.keys():
|
||||||
|
# Dismiss the toast if there already is one
|
||||||
|
self.win.toasts[(self, action)].dismiss()
|
||||||
|
|
||||||
|
self.win.toasts[(self, action)] = toast
|
||||||
|
|
||||||
|
self.win.toast_overlay.add_toast(toast)
|
||||||
|
|
||||||
|
def launch(self) -> None:
|
||||||
|
self.last_played = int(time())
|
||||||
|
self.save()
|
||||||
|
self.update()
|
||||||
|
|
||||||
|
args = (
|
||||||
|
"flatpak-spawn --host /bin/sh -c " + shlex.quote(self.executable) # Flatpak
|
||||||
|
if os.getenv("FLATPAK_ID") == shared.APP_ID
|
||||||
|
else self.executable # Others
|
||||||
|
)
|
||||||
|
|
||||||
|
logging.info("Starting %s: %s", self.name, str(args))
|
||||||
|
# pylint: disable=consider-using-with
|
||||||
subprocess.Popen(
|
subprocess.Popen(
|
||||||
["flatpak-spawn", "--host", *self.executable] # Flatpak
|
args,
|
||||||
if os.getenv("FLATPAK_ID") == "hu.kramo.Cartridges"
|
cwd=shared.home,
|
||||||
else self.executable, # Others
|
shell=True,
|
||||||
shell=os.name == "nt", # Set shell to True on Windows
|
|
||||||
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 Gio.Settings.new("hu.kramo.Cartridges").get_boolean("exit-after-launch"):
|
|
||||||
sys.exit()
|
|
||||||
|
|
||||||
def toggle_hidden(self):
|
|
||||||
games_dir = os.path.join(
|
|
||||||
os.getenv("XDG_DATA_HOME")
|
|
||||||
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
|
||||||
"cartridges",
|
|
||||||
"games",
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if not os.path.exists(games_dir):
|
if shared.schema.get_boolean("exit-after-launch"):
|
||||||
return
|
self.app.quit()
|
||||||
|
|
||||||
with open(os.path.join(games_dir, f"{self.game_id}.json"), "r") as open_file:
|
# The variable is the title of the game
|
||||||
data = json.loads(open_file.read())
|
self.create_toast(_("{} launched"))
|
||||||
|
|
||||||
data["hidden"] = not data["hidden"]
|
def toggle_hidden(self, toast: bool = True) -> None:
|
||||||
|
self.hidden = not self.hidden
|
||||||
|
self.save()
|
||||||
|
|
||||||
save_games({self.game_id: data})
|
if self.win.stack.get_visible_child() == self.win.details_view:
|
||||||
|
self.win.on_go_back_action()
|
||||||
|
|
||||||
def get_cover(self):
|
self.update()
|
||||||
|
|
||||||
# If the cover is already in memory, return
|
if toast:
|
||||||
if self.game_id in self.parent_widget.pixbufs.keys():
|
self.create_toast(
|
||||||
return self.parent_widget.pixbufs[self.game_id]
|
# The variable is the title of the game
|
||||||
|
(_("{} hidden") if self.hidden else _("{} unhidden")).format(
|
||||||
# Create a new pixbuf
|
GLib.markup_escape_text(self.name)
|
||||||
cover_path = os.path.join(
|
),
|
||||||
os.getenv("XDG_DATA_HOME")
|
"hide",
|
||||||
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
|
||||||
"cartridges",
|
|
||||||
"covers",
|
|
||||||
f"{self.game_id}.tiff",
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if os.path.isfile(cover_path):
|
def remove_game(self) -> None:
|
||||||
return GdkPixbuf.Pixbuf.new_from_file(cover_path)
|
# Add "removed=True" to the game properties so it can be deleted on next init
|
||||||
|
self.removed = True
|
||||||
|
self.save()
|
||||||
|
self.update()
|
||||||
|
|
||||||
# Return the placeholder pixbuf
|
if self.win.stack.get_visible_child() == self.win.details_view:
|
||||||
return self.parent_widget.placeholder_pixbuf
|
self.win.on_go_back_action()
|
||||||
|
|
||||||
def show_play(self, _widget, *_unused):
|
self.create_toast(
|
||||||
self.play_revealer.set_reveal_child(True)
|
# The variable is the title of the game
|
||||||
self.title_revealer.set_reveal_child(False)
|
_("{} removed").format(GLib.markup_escape_text(self.name)),
|
||||||
|
"remove",
|
||||||
|
)
|
||||||
|
|
||||||
def hide_play(self, _widget, *_unused):
|
def set_loading(self, state: int) -> None:
|
||||||
|
self.loading += state
|
||||||
|
loading = self.loading > 0
|
||||||
|
|
||||||
|
self.cover.set_opacity(int(not loading))
|
||||||
|
self.spinner.set_spinning(loading)
|
||||||
|
|
||||||
|
def get_cover_path(self) -> Optional[Path]:
|
||||||
|
cover_path = shared.covers_dir / f"{self.game_id}.gif"
|
||||||
|
if cover_path.is_file():
|
||||||
|
return cover_path # type: ignore
|
||||||
|
|
||||||
|
cover_path = shared.covers_dir / f"{self.game_id}.tiff"
|
||||||
|
if cover_path.is_file():
|
||||||
|
return cover_path # type: ignore
|
||||||
|
|
||||||
|
return None
|
||||||
|
|
||||||
|
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(False)
|
self.play_revealer.set_reveal_child(not state)
|
||||||
self.title_revealer.set_reveal_child(True)
|
self.menu_revealer.set_reveal_child(not state)
|
||||||
|
|
||||||
def launch_game(self, _widget):
|
def main_button_clicked(self, _widget: Any, button: bool) -> None:
|
||||||
self.parent_widget.set_active_game(None, None, self.game_id)
|
if shared.schema.get_boolean("cover-launches-game") ^ button:
|
||||||
self.parent_widget.get_application().on_launch_game_action(None)
|
self.launch()
|
||||||
|
else:
|
||||||
|
self.win.show_details_view(self)
|
||||||
|
|
||||||
|
def set_play_icon(self) -> None:
|
||||||
|
self.play_button.set_icon_name(
|
||||||
|
"help-about-symbolic"
|
||||||
|
if shared.schema.get_boolean("cover-launches-game")
|
||||||
|
else "media-playback-start-symbolic"
|
||||||
|
)
|
||||||
|
|
||||||
|
def schema_changed(self, _settings: Any, key: str) -> None:
|
||||||
|
if key == "cover-launches-game":
|
||||||
|
self.set_play_icon()
|
||||||
|
|
||||||
|
@GObject.Signal(name="update-ready", arg_types=[object])
|
||||||
|
def update_ready(self, _additional_data): # type: ignore
|
||||||
|
"""Signal emitted when the game needs updating"""
|
||||||
|
|
||||||
|
@GObject.Signal(name="save-ready", arg_types=[object])
|
||||||
|
def save_ready(self, _additional_data): # type: ignore
|
||||||
|
"""Signal emitted when the game needs saving"""
|
||||||
|
|||||||
138
src/game_cover.py
Normal file
@@ -0,0 +1,138 @@
|
|||||||
|
# game_cover.py
|
||||||
|
#
|
||||||
|
# Copyright 2022-2023 kramo
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
from 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 src import shared
|
||||||
|
|
||||||
|
|
||||||
|
class GameCover:
|
||||||
|
texture: Optional[Gdk.Texture]
|
||||||
|
blurred: Optional[Gdk.Texture]
|
||||||
|
luminance: Optional[tuple[float, float]]
|
||||||
|
path: Optional[Path]
|
||||||
|
animation: Optional[GdkPixbuf.PixbufAnimation]
|
||||||
|
anim_iter: Optional[GdkPixbuf.PixbufAnimationIter]
|
||||||
|
|
||||||
|
placeholder = Gdk.Texture.new_from_resource(
|
||||||
|
shared.PREFIX + "/library_placeholder.svg"
|
||||||
|
)
|
||||||
|
placeholder_small = Gdk.Texture.new_from_resource(
|
||||||
|
shared.PREFIX + "/library_placeholder_small.svg"
|
||||||
|
)
|
||||||
|
|
||||||
|
def __init__(self, pictures: set[Gtk.Picture], path: Optional[Path] = None) -> None:
|
||||||
|
self.pictures = pictures
|
||||||
|
self.new_cover(path)
|
||||||
|
|
||||||
|
# Wrap the function in another one as Gio.Task.run_in_thread does not allow for passing args
|
||||||
|
def create_func(self, path: Optional[Path]) -> Callable:
|
||||||
|
self.animation = GdkPixbuf.PixbufAnimation.new_from_file(str(path))
|
||||||
|
self.anim_iter = self.animation.get_iter()
|
||||||
|
|
||||||
|
def wrapper(task: Gio.Task, *_args: Any) -> None:
|
||||||
|
self.update_animation((task, self.animation))
|
||||||
|
|
||||||
|
return wrapper
|
||||||
|
|
||||||
|
def new_cover(self, path: Optional[Path] = None) -> None:
|
||||||
|
self.animation = None
|
||||||
|
self.texture = None
|
||||||
|
self.blurred = None
|
||||||
|
self.luminance = None
|
||||||
|
self.path = path
|
||||||
|
|
||||||
|
if path:
|
||||||
|
if path.suffix == ".gif":
|
||||||
|
self.task = Gio.Task.new()
|
||||||
|
self.task.run_in_thread(self.create_func(self.path))
|
||||||
|
else:
|
||||||
|
self.texture = Gdk.Texture.new_from_filename(str(path))
|
||||||
|
|
||||||
|
if not self.animation:
|
||||||
|
self.set_texture(self.texture)
|
||||||
|
|
||||||
|
def get_texture(self) -> Gdk.Texture:
|
||||||
|
return (
|
||||||
|
Gdk.Texture.new_for_pixbuf(self.animation.get_static_image())
|
||||||
|
if self.animation
|
||||||
|
else self.texture
|
||||||
|
)
|
||||||
|
|
||||||
|
def get_blurred(self) -> Gdk.Texture:
|
||||||
|
if not self.blurred:
|
||||||
|
if self.path:
|
||||||
|
with Image.open(self.path) as image:
|
||||||
|
image = (
|
||||||
|
image.convert("RGB")
|
||||||
|
.resize((100, 150))
|
||||||
|
.filter(ImageFilter.GaussianBlur(20))
|
||||||
|
)
|
||||||
|
|
||||||
|
tmp_path = Gio.File.new_tmp(None)[0].get_path()
|
||||||
|
image.save(tmp_path, "tiff", compression=None)
|
||||||
|
|
||||||
|
self.blurred = Gdk.Texture.new_from_filename(tmp_path)
|
||||||
|
|
||||||
|
stat = ImageStat.Stat(image.convert("L"))
|
||||||
|
|
||||||
|
# Luminance values for light and dark mode
|
||||||
|
self.luminance = (
|
||||||
|
min((stat.mean[0] + stat.extrema[0][0]) / 510, 0.7),
|
||||||
|
max((stat.mean[0] + stat.extrema[0][1]) / 510, 0.3),
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
self.blurred = self.placeholder_small
|
||||||
|
self.luminance = (0.3, 0.5)
|
||||||
|
|
||||||
|
return self.blurred
|
||||||
|
|
||||||
|
def add_picture(self, picture: Gtk.Picture) -> None:
|
||||||
|
self.pictures.add(picture)
|
||||||
|
if not self.animation:
|
||||||
|
self.set_texture(self.texture)
|
||||||
|
else:
|
||||||
|
self.update_animation((self.task, self.animation))
|
||||||
|
|
||||||
|
def set_texture(self, texture: Gdk.Texture) -> None:
|
||||||
|
self.pictures.discard(
|
||||||
|
picture for picture in self.pictures if not picture.is_visible()
|
||||||
|
)
|
||||||
|
if not self.pictures:
|
||||||
|
self.animation = None
|
||||||
|
else:
|
||||||
|
for picture in self.pictures:
|
||||||
|
picture.set_paintable(texture or self.placeholder)
|
||||||
|
|
||||||
|
def update_animation(self, data: GdkPixbuf.PixbufAnimation) -> None:
|
||||||
|
if self.animation == data[1]:
|
||||||
|
self.anim_iter.advance() # type: ignore
|
||||||
|
|
||||||
|
self.set_texture(Gdk.Texture.new_for_pixbuf(self.anim_iter.get_pixbuf())) # type: ignore
|
||||||
|
|
||||||
|
delay_time = self.anim_iter.get_delay_time() # type: ignore
|
||||||
|
GLib.timeout_add(
|
||||||
|
20 if delay_time < 20 else delay_time,
|
||||||
|
self.update_animation,
|
||||||
|
data,
|
||||||
|
)
|
||||||
398
src/importer/importer.py
Normal file
@@ -0,0 +1,398 @@
|
|||||||
|
# importer.py
|
||||||
|
#
|
||||||
|
# Copyright 2022-2023 kramo
|
||||||
|
# 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 typing import Any, Optional
|
||||||
|
|
||||||
|
from gi.repository import Adw, GLib, Gtk
|
||||||
|
|
||||||
|
from src import shared
|
||||||
|
from src.errors.error_producer import ErrorProducer
|
||||||
|
from src.errors.friendly_error import FriendlyError
|
||||||
|
from src.game import Game
|
||||||
|
from src.importer.sources.location import UnresolvableLocationError
|
||||||
|
from src.importer.sources.source import Source
|
||||||
|
from src.store.managers.async_manager import AsyncManager
|
||||||
|
from src.store.pipeline import Pipeline
|
||||||
|
from src.utils.task import Task
|
||||||
|
|
||||||
|
|
||||||
|
# pylint: disable=too-many-instance-attributes
|
||||||
|
class Importer(ErrorProducer):
|
||||||
|
"""A class in charge of scanning sources for games"""
|
||||||
|
|
||||||
|
progressbar: Gtk.ProgressBar
|
||||||
|
import_statuspage: Adw.StatusPage
|
||||||
|
import_dialog: Adw.MessageDialog
|
||||||
|
summary_toast: Adw.Toast
|
||||||
|
|
||||||
|
sources: set[Source]
|
||||||
|
|
||||||
|
n_source_tasks_created: int = 0
|
||||||
|
n_source_tasks_done: int = 0
|
||||||
|
n_pipelines_done: int = 0
|
||||||
|
game_pipelines: set[Pipeline]
|
||||||
|
|
||||||
|
removed_game_ids: set[str] = set()
|
||||||
|
imported_game_ids: set[str] = set()
|
||||||
|
|
||||||
|
def __init__(self) -> None:
|
||||||
|
super().__init__()
|
||||||
|
|
||||||
|
# TODO: make this stateful
|
||||||
|
shared.store.new_game_ids = set()
|
||||||
|
shared.store.duplicate_game_ids = set()
|
||||||
|
|
||||||
|
self.game_pipelines = set()
|
||||||
|
self.sources = set()
|
||||||
|
|
||||||
|
@property
|
||||||
|
def n_games_added(self) -> int:
|
||||||
|
return sum(
|
||||||
|
1 if not (pipeline.game.blacklisted or pipeline.game.removed) else 0
|
||||||
|
for pipeline in self.game_pipelines
|
||||||
|
)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def pipelines_progress(self) -> float:
|
||||||
|
progress = sum(pipeline.progress for pipeline in self.game_pipelines)
|
||||||
|
try:
|
||||||
|
progress = progress / len(self.game_pipelines)
|
||||||
|
except ZeroDivisionError:
|
||||||
|
progress = 0
|
||||||
|
return progress # type: ignore
|
||||||
|
|
||||||
|
@property
|
||||||
|
def sources_progress(self) -> float:
|
||||||
|
try:
|
||||||
|
progress = self.n_source_tasks_done / self.n_source_tasks_created
|
||||||
|
except ZeroDivisionError:
|
||||||
|
progress = 0
|
||||||
|
return progress
|
||||||
|
|
||||||
|
@property
|
||||||
|
def finished(self) -> bool:
|
||||||
|
return (
|
||||||
|
self.n_source_tasks_created == self.n_source_tasks_done
|
||||||
|
and len(self.game_pipelines) == self.n_pipelines_done
|
||||||
|
)
|
||||||
|
|
||||||
|
def add_source(self, source: Source) -> None:
|
||||||
|
self.sources.add(source)
|
||||||
|
|
||||||
|
def run(self) -> None:
|
||||||
|
"""Use several Gio.Task to import games from added sources"""
|
||||||
|
|
||||||
|
shared.win.get_application().lookup_action("import").set_enabled(False)
|
||||||
|
|
||||||
|
self.create_dialog()
|
||||||
|
|
||||||
|
# Collect all errors and reset the cancellables for the managers
|
||||||
|
# - Only one importer exists at any given time
|
||||||
|
# - Every import starts fresh
|
||||||
|
self.collect_errors()
|
||||||
|
for manager in shared.store.managers.values():
|
||||||
|
manager.collect_errors()
|
||||||
|
if isinstance(manager, AsyncManager):
|
||||||
|
manager.reset_cancellable()
|
||||||
|
|
||||||
|
for source in self.sources:
|
||||||
|
logging.debug("Importing games from source %s", source.source_id)
|
||||||
|
task = Task.new(None, None, self.source_callback, (source,))
|
||||||
|
self.n_source_tasks_created += 1
|
||||||
|
task.set_task_data((source,))
|
||||||
|
task.run_in_thread(self.source_task_thread_func)
|
||||||
|
|
||||||
|
self.progress_changed_callback()
|
||||||
|
|
||||||
|
def create_dialog(self) -> None:
|
||||||
|
"""Create the import dialog"""
|
||||||
|
self.progressbar = Gtk.ProgressBar(margin_start=12, margin_end=12)
|
||||||
|
self.import_statuspage = Adw.StatusPage(
|
||||||
|
title=_("Importing Games…"),
|
||||||
|
child=self.progressbar,
|
||||||
|
)
|
||||||
|
self.import_dialog = Adw.Window(
|
||||||
|
content=self.import_statuspage,
|
||||||
|
modal=True,
|
||||||
|
default_width=350,
|
||||||
|
default_height=-1,
|
||||||
|
transient_for=shared.win,
|
||||||
|
deletable=False,
|
||||||
|
)
|
||||||
|
self.import_dialog.present()
|
||||||
|
|
||||||
|
def source_task_thread_func(
|
||||||
|
self, _task: Any, _obj: Any, data: tuple, _cancellable: Any
|
||||||
|
) -> None:
|
||||||
|
"""Source import task code"""
|
||||||
|
|
||||||
|
source: Source
|
||||||
|
source, *_rest = data
|
||||||
|
|
||||||
|
# Early exit if not available or not installed
|
||||||
|
if not source.is_available:
|
||||||
|
logging.info("Source %s skipped, not available", source.source_id)
|
||||||
|
return
|
||||||
|
try:
|
||||||
|
iterator = iter(source)
|
||||||
|
except UnresolvableLocationError:
|
||||||
|
logging.info("Source %s skipped, bad location", source.source_id)
|
||||||
|
return
|
||||||
|
|
||||||
|
# Get games from source
|
||||||
|
logging.info("Scanning source %s", source.source_id)
|
||||||
|
while True:
|
||||||
|
# Handle exceptions raised when iterating
|
||||||
|
try:
|
||||||
|
iteration_result = next(iterator)
|
||||||
|
except StopIteration:
|
||||||
|
break
|
||||||
|
except Exception as error: # pylint: disable=broad-exception-caught
|
||||||
|
logging.exception("%s in %s", type(error).__name__, source.source_id)
|
||||||
|
self.report_error(error)
|
||||||
|
continue
|
||||||
|
|
||||||
|
# Handle the result depending on its type
|
||||||
|
if isinstance(iteration_result, Game):
|
||||||
|
game = iteration_result
|
||||||
|
additional_data = {}
|
||||||
|
elif isinstance(iteration_result, tuple):
|
||||||
|
game, additional_data = iteration_result
|
||||||
|
elif iteration_result is None:
|
||||||
|
continue
|
||||||
|
else:
|
||||||
|
# Warn source implementers that an invalid type was produced
|
||||||
|
# Should not happen on production code
|
||||||
|
logging.warning(
|
||||||
|
"%s produced an invalid iteration return type %s",
|
||||||
|
source.source_id,
|
||||||
|
type(iteration_result),
|
||||||
|
)
|
||||||
|
continue
|
||||||
|
|
||||||
|
# Register game
|
||||||
|
pipeline: Pipeline = shared.store.add_game(game, additional_data)
|
||||||
|
if pipeline is not None:
|
||||||
|
logging.info("Imported %s (%s)", game.name, game.game_id)
|
||||||
|
pipeline.connect("advanced", self.pipeline_advanced_callback)
|
||||||
|
self.game_pipelines.add(pipeline)
|
||||||
|
|
||||||
|
def update_progressbar(self) -> None:
|
||||||
|
"""Update the progressbar to show the overall import progress"""
|
||||||
|
# Reserve 10% for the sources discovery, the rest is the pipelines
|
||||||
|
self.progressbar.set_fraction(
|
||||||
|
(0.1 * self.sources_progress) + (0.9 * self.pipelines_progress)
|
||||||
|
)
|
||||||
|
|
||||||
|
def source_callback(self, _obj: Any, _result: Any, data: tuple) -> None:
|
||||||
|
"""Callback executed when a source is fully scanned"""
|
||||||
|
source, *_rest = data
|
||||||
|
logging.debug("Import done for source %s", source.source_id)
|
||||||
|
self.n_source_tasks_done += 1
|
||||||
|
self.progress_changed_callback()
|
||||||
|
|
||||||
|
def pipeline_advanced_callback(self, pipeline: Pipeline) -> None:
|
||||||
|
"""Callback called when a pipeline for a game has advanced"""
|
||||||
|
if pipeline.is_done:
|
||||||
|
self.n_pipelines_done += 1
|
||||||
|
self.progress_changed_callback()
|
||||||
|
|
||||||
|
def progress_changed_callback(self) -> None:
|
||||||
|
"""
|
||||||
|
Callback called when the import process has progressed
|
||||||
|
|
||||||
|
Triggered when:
|
||||||
|
* All sources have been started
|
||||||
|
* A source finishes
|
||||||
|
* A pipeline finishes
|
||||||
|
"""
|
||||||
|
self.update_progressbar()
|
||||||
|
if self.finished:
|
||||||
|
self.import_callback()
|
||||||
|
|
||||||
|
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"""
|
||||||
|
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.summary_toast = self.create_summary_toast()
|
||||||
|
self.create_error_dialog()
|
||||||
|
shared.win.get_application().lookup_action("import").set_enabled(True)
|
||||||
|
|
||||||
|
def create_error_dialog(self) -> None:
|
||||||
|
"""Dialog containing all errors raised by importers"""
|
||||||
|
|
||||||
|
# Collect all errors that happened in the importer and the managers
|
||||||
|
errors = []
|
||||||
|
errors.extend(self.collect_errors())
|
||||||
|
for manager in shared.store.managers.values():
|
||||||
|
errors.extend(manager.collect_errors())
|
||||||
|
|
||||||
|
# Filter out non friendly errors
|
||||||
|
errors = set(
|
||||||
|
tuple(
|
||||||
|
(error.title, error.subtitle)
|
||||||
|
for error in (
|
||||||
|
filter(lambda error: isinstance(error, FriendlyError), errors)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
# No error to display
|
||||||
|
if not errors:
|
||||||
|
self.timeout_toast()
|
||||||
|
return
|
||||||
|
|
||||||
|
# Create error dialog
|
||||||
|
dialog = Adw.MessageDialog()
|
||||||
|
dialog.set_heading(_("Warning"))
|
||||||
|
dialog.add_response("close", _("Dismiss"))
|
||||||
|
dialog.add_response("open_preferences_import", _("Preferences"))
|
||||||
|
dialog.set_default_response("open_preferences_import")
|
||||||
|
dialog.connect("response", self.dialog_response_callback)
|
||||||
|
dialog.set_transient_for(shared.win)
|
||||||
|
|
||||||
|
if len(errors) == 1:
|
||||||
|
dialog.set_heading((error := next(iter(errors)))[0])
|
||||||
|
dialog.set_body(error[1])
|
||||||
|
else:
|
||||||
|
# Display the errors in a list
|
||||||
|
list_box = Gtk.ListBox()
|
||||||
|
list_box.set_selection_mode(Gtk.SelectionMode.NONE)
|
||||||
|
list_box.set_css_classes(["boxed-list"])
|
||||||
|
list_box.set_margin_top(9)
|
||||||
|
for error in errors:
|
||||||
|
row = Adw.ActionRow.new()
|
||||||
|
row.set_title(error[0])
|
||||||
|
row.set_subtitle(error[1])
|
||||||
|
list_box.append(row)
|
||||||
|
dialog.set_body(_("The following errors occured during import:"))
|
||||||
|
dialog.set_extra_child(list_box)
|
||||||
|
|
||||||
|
dialog.present()
|
||||||
|
|
||||||
|
def undo_import(self, *_args: Any) -> None:
|
||||||
|
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)
|
||||||
|
|
||||||
|
if not self.n_games_added:
|
||||||
|
toast_title = _("No new games found")
|
||||||
|
|
||||||
|
if not self.removed_game_ids:
|
||||||
|
toast.set_button_label(_("Preferences"))
|
||||||
|
toast.connect(
|
||||||
|
"button-clicked",
|
||||||
|
self.dialog_response_callback,
|
||||||
|
"open_preferences",
|
||||||
|
"import",
|
||||||
|
)
|
||||||
|
|
||||||
|
elif self.n_games_added == 1:
|
||||||
|
toast_title = _("1 game imported")
|
||||||
|
|
||||||
|
elif self.n_games_added > 1:
|
||||||
|
# The variable is the number of games
|
||||||
|
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)
|
||||||
|
return toast
|
||||||
|
|
||||||
|
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(
|
||||||
|
page_name=page_name, expander_row=expander_row
|
||||||
|
)
|
||||||
|
|
||||||
|
def timeout_toast(self, *_args: Any) -> None:
|
||||||
|
"""Manually timeout the toast after the user has dismissed all warnings"""
|
||||||
|
GLib.timeout_add_seconds(5, self.summary_toast.dismiss)
|
||||||
|
|
||||||
|
def dialog_response_callback(self, _widget: Any, response: str, *args: Any) -> None:
|
||||||
|
"""Handle after-import dialogs callback"""
|
||||||
|
logging.debug("After-import dialog response: %s (%s)", response, str(args))
|
||||||
|
if response == "open_preferences":
|
||||||
|
self.open_preferences(*args)
|
||||||
|
elif response == "open_preferences_import":
|
||||||
|
self.open_preferences(*args).connect("close-request", self.timeout_toast)
|
||||||
|
else:
|
||||||
|
self.timeout_toast()
|
||||||
111
src/importer/sources/bottles_source.py
Normal file
@@ -0,0 +1,111 @@
|
|||||||
|
# bottles_source.py
|
||||||
|
#
|
||||||
|
# Copyright 2022-2023 kramo
|
||||||
|
# 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
|
||||||
|
|
||||||
|
from pathlib import Path
|
||||||
|
from time import time
|
||||||
|
from typing import NamedTuple
|
||||||
|
|
||||||
|
import yaml
|
||||||
|
|
||||||
|
from src import shared
|
||||||
|
from src.game import Game
|
||||||
|
from src.importer.sources.location import Location, LocationSubPath
|
||||||
|
from src.importer.sources.source import SourceIterable, URLExecutableSource
|
||||||
|
|
||||||
|
|
||||||
|
class BottlesSourceIterable(SourceIterable):
|
||||||
|
source: "BottlesSource"
|
||||||
|
|
||||||
|
def __iter__(self):
|
||||||
|
"""Generator method producing games"""
|
||||||
|
|
||||||
|
data = self.source.locations.data["library.yml"].read_text("utf-8")
|
||||||
|
library: dict = yaml.safe_load(data)
|
||||||
|
added_time = int(time())
|
||||||
|
|
||||||
|
for entry in library.values():
|
||||||
|
# Build game
|
||||||
|
values = {
|
||||||
|
"source": self.source.source_id,
|
||||||
|
"added": added_time,
|
||||||
|
"name": entry["name"],
|
||||||
|
"game_id": self.source.game_id_format.format(game_id=entry["id"]),
|
||||||
|
"executable": self.source.executable_format.format(
|
||||||
|
bottle_name=entry["bottle"]["name"], game_name=entry["name"]
|
||||||
|
),
|
||||||
|
}
|
||||||
|
game = Game(values)
|
||||||
|
|
||||||
|
# Get official cover path
|
||||||
|
try:
|
||||||
|
# This will not work if both Cartridges and Bottles are installed via Flatpak
|
||||||
|
# as Cartridges can't access directories picked via Bottles' file picker portal
|
||||||
|
bottles_location = Path(
|
||||||
|
yaml.safe_load(
|
||||||
|
self.source.locations.data["data.yml"].read_text("utf-8")
|
||||||
|
)["custom_bottles_path"]
|
||||||
|
)
|
||||||
|
except (FileNotFoundError, KeyError):
|
||||||
|
bottles_location = self.source.locations.data.root / "bottles"
|
||||||
|
|
||||||
|
bottle_path = entry["bottle"]["path"]
|
||||||
|
|
||||||
|
additional_data = {}
|
||||||
|
if entry["thumbnail"]:
|
||||||
|
image_name = entry["thumbnail"].split(":")[1]
|
||||||
|
image_path = bottles_location / bottle_path / "grids" / image_name
|
||||||
|
additional_data = {"local_image_path": image_path}
|
||||||
|
|
||||||
|
# Produce game
|
||||||
|
yield (game, additional_data)
|
||||||
|
|
||||||
|
|
||||||
|
class BottlesLocations(NamedTuple):
|
||||||
|
data: Location
|
||||||
|
|
||||||
|
|
||||||
|
class BottlesSource(URLExecutableSource):
|
||||||
|
"""Generic Bottles source"""
|
||||||
|
|
||||||
|
source_id = "bottles"
|
||||||
|
name = _("Bottles")
|
||||||
|
iterable_class = BottlesSourceIterable
|
||||||
|
url_format = 'bottles:run/"{bottle_name}"/"{game_name}"'
|
||||||
|
available_on = {"linux"}
|
||||||
|
|
||||||
|
locations: BottlesLocations
|
||||||
|
|
||||||
|
def __init__(self) -> None:
|
||||||
|
super().__init__()
|
||||||
|
self.locations = BottlesLocations(
|
||||||
|
Location(
|
||||||
|
schema_key="bottles-location",
|
||||||
|
candidates=(
|
||||||
|
shared.flatpak_dir / "com.usebottles.bottles" / "data" / "bottles",
|
||||||
|
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,
|
||||||
|
)
|
||||||
|
)
|
||||||
145
src/importer/sources/flatpak_source.py
Normal file
@@ -0,0 +1,145 @@
|
|||||||
|
# flatpak_source.py
|
||||||
|
#
|
||||||
|
# Copyright 2022-2023 kramo
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
from pathlib import Path
|
||||||
|
from time import time
|
||||||
|
from typing import NamedTuple
|
||||||
|
|
||||||
|
from gi.repository import GLib, Gtk
|
||||||
|
|
||||||
|
from src import shared
|
||||||
|
from src.game import Game
|
||||||
|
from src.importer.sources.location import Location, LocationSubPath
|
||||||
|
from src.importer.sources.source import ExecutableFormatSource, SourceIterable
|
||||||
|
|
||||||
|
|
||||||
|
class FlatpakSourceIterable(SourceIterable):
|
||||||
|
source: "FlatpakSource"
|
||||||
|
|
||||||
|
def __iter__(self):
|
||||||
|
"""Generator method producing games"""
|
||||||
|
|
||||||
|
added_time = int(time())
|
||||||
|
|
||||||
|
icon_theme = Gtk.IconTheme.new()
|
||||||
|
icon_theme.add_search_path(str(self.source.locations.data["icons"]))
|
||||||
|
|
||||||
|
blacklist = (
|
||||||
|
{"hu.kramo.Cartridges", "hu.kramo.Cartridges.Devel"}
|
||||||
|
if shared.schema.get_boolean("flatpak-import-launchers")
|
||||||
|
else {
|
||||||
|
"hu.kramo.Cartridges",
|
||||||
|
"hu.kramo.Cartridges.Devel",
|
||||||
|
"com.valvesoftware.Steam",
|
||||||
|
"net.lutris.Lutris",
|
||||||
|
"com.heroicgameslauncher.hgl",
|
||||||
|
"com.usebottles.Bottles",
|
||||||
|
"io.itch.itch",
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
for entry in (self.source.locations.data["applications"]).iterdir():
|
||||||
|
if entry.suffix != ".desktop":
|
||||||
|
continue
|
||||||
|
|
||||||
|
keyfile = GLib.KeyFile.new()
|
||||||
|
|
||||||
|
try:
|
||||||
|
keyfile.load_from_file(str(entry), 0)
|
||||||
|
|
||||||
|
if "Game" not in keyfile.get_string_list("Desktop Entry", "Categories"):
|
||||||
|
continue
|
||||||
|
|
||||||
|
if (
|
||||||
|
flatpak_id := keyfile.get_string("Desktop Entry", "X-Flatpak")
|
||||||
|
) in blacklist or flatpak_id != entry.stem:
|
||||||
|
continue
|
||||||
|
|
||||||
|
name = keyfile.get_string("Desktop Entry", "Name")
|
||||||
|
|
||||||
|
except GLib.GError:
|
||||||
|
continue
|
||||||
|
|
||||||
|
values = {
|
||||||
|
"source": self.source.source_id,
|
||||||
|
"added": added_time,
|
||||||
|
"name": name,
|
||||||
|
"game_id": self.source.game_id_format.format(game_id=flatpak_id),
|
||||||
|
"executable": self.source.executable_format.format(
|
||||||
|
flatpak_id=flatpak_id
|
||||||
|
),
|
||||||
|
}
|
||||||
|
game = Game(values)
|
||||||
|
|
||||||
|
additional_data = {}
|
||||||
|
|
||||||
|
try:
|
||||||
|
if (
|
||||||
|
icon_path := icon_theme.lookup_icon(
|
||||||
|
keyfile.get_string("Desktop Entry", "Icon"),
|
||||||
|
None,
|
||||||
|
512,
|
||||||
|
1,
|
||||||
|
shared.win.get_direction(),
|
||||||
|
0,
|
||||||
|
)
|
||||||
|
.get_file()
|
||||||
|
.get_path()
|
||||||
|
):
|
||||||
|
additional_data = {"local_icon_path": Path(icon_path)}
|
||||||
|
else:
|
||||||
|
pass
|
||||||
|
except GLib.GError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
# Produce game
|
||||||
|
yield (game, additional_data)
|
||||||
|
|
||||||
|
|
||||||
|
class FlatpakLocations(NamedTuple):
|
||||||
|
data: Location
|
||||||
|
|
||||||
|
|
||||||
|
class FlatpakSource(ExecutableFormatSource):
|
||||||
|
"""Generic Flatpak source"""
|
||||||
|
|
||||||
|
source_id = "flatpak"
|
||||||
|
name = _("Flatpak")
|
||||||
|
iterable_class = FlatpakSourceIterable
|
||||||
|
executable_format = "flatpak run {flatpak_id}"
|
||||||
|
available_on = {"linux"}
|
||||||
|
|
||||||
|
locations: FlatpakLocations
|
||||||
|
|
||||||
|
def __init__(self) -> None:
|
||||||
|
super().__init__()
|
||||||
|
self.locations = FlatpakLocations(
|
||||||
|
Location(
|
||||||
|
schema_key="flatpak-location",
|
||||||
|
candidates=(
|
||||||
|
"/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,
|
||||||
|
)
|
||||||
|
)
|
||||||
392
src/importer/sources/heroic_source.py
Normal file
@@ -0,0 +1,392 @@
|
|||||||
|
# heroic_source.py
|
||||||
|
#
|
||||||
|
# Copyright 2022-2023 kramo
|
||||||
|
# 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 abc import abstractmethod
|
||||||
|
from functools import cached_property
|
||||||
|
from hashlib import sha256
|
||||||
|
from json import JSONDecodeError
|
||||||
|
from pathlib import Path
|
||||||
|
from time import time
|
||||||
|
from typing import Iterable, NamedTuple, Optional, TypedDict
|
||||||
|
|
||||||
|
from src import shared
|
||||||
|
from src.game import Game
|
||||||
|
from src.importer.sources.location import Location, LocationSubPath
|
||||||
|
from src.importer.sources.source import (
|
||||||
|
SourceIterable,
|
||||||
|
SourceIterationResult,
|
||||||
|
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):
|
||||||
|
app_name: str
|
||||||
|
installed: Optional[bool]
|
||||||
|
runner: str
|
||||||
|
title: str
|
||||||
|
developer: str
|
||||||
|
art_square: str
|
||||||
|
|
||||||
|
|
||||||
|
class SubSourceIterable(Iterable):
|
||||||
|
"""Class representing a Heroic sub-source"""
|
||||||
|
|
||||||
|
source: "HeroicSource"
|
||||||
|
source_iterable: "HeroicSourceIterable"
|
||||||
|
name: str
|
||||||
|
service: str
|
||||||
|
image_uri_params: str = ""
|
||||||
|
relative_library_path: Path
|
||||||
|
library_json_entries_key: str = "library"
|
||||||
|
|
||||||
|
def __init__(self, source, source_iterable) -> None:
|
||||||
|
self.source = source
|
||||||
|
self.source_iterable = source_iterable
|
||||||
|
|
||||||
|
@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
|
||||||
|
) -> SourceIterationResult:
|
||||||
|
"""Build a Game from a Heroic library entry"""
|
||||||
|
|
||||||
|
app_name = entry["app_name"]
|
||||||
|
runner = entry["runner"]
|
||||||
|
|
||||||
|
# Build game
|
||||||
|
values = {
|
||||||
|
"source": f"{self.source.source_id}_{self.service}",
|
||||||
|
"added": added_time,
|
||||||
|
"name": entry["title"],
|
||||||
|
"developer": entry.get("developer", None),
|
||||||
|
"game_id": self.source.game_id_format.format(
|
||||||
|
service=self.service, game_id=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)
|
||||||
|
|
||||||
|
# Get the image path from the Heroic cache
|
||||||
|
# Filenames are derived from the URL that Heroic used to get the file
|
||||||
|
uri: str = entry["art_square"] + self.image_uri_params
|
||||||
|
digest = sha256(uri.encode()).hexdigest()
|
||||||
|
image_path = self.source.locations.config.root / "images-cache" / digest
|
||||||
|
additional_data = {"local_image_path": image_path}
|
||||||
|
|
||||||
|
return (game, additional_data)
|
||||||
|
|
||||||
|
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"""
|
||||||
|
|
||||||
|
self.get_hidden_app_names()
|
||||||
|
|
||||||
|
# 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
|
||||||
|
try:
|
||||||
|
sub_source_iterable = iter(sub_source)
|
||||||
|
yield from sub_source_iterable
|
||||||
|
except (InvalidLibraryFileError, InvalidInstalledFileError) as error:
|
||||||
|
logging.error(
|
||||||
|
"Skipping bad Heroic sub-source %s",
|
||||||
|
sub_source.service,
|
||||||
|
exc_info=error,
|
||||||
|
)
|
||||||
|
continue
|
||||||
|
|
||||||
|
|
||||||
|
class HeroicLocations(NamedTuple):
|
||||||
|
config: Location
|
||||||
|
|
||||||
|
|
||||||
|
class HeroicSource(URLExecutableSource):
|
||||||
|
"""Generic Heroic Games Launcher source"""
|
||||||
|
|
||||||
|
source_id = "heroic"
|
||||||
|
name = _("Heroic")
|
||||||
|
iterable_class = HeroicSourceIterable
|
||||||
|
url_format = "heroic://launch/{runner}/{app_name}"
|
||||||
|
available_on = {"linux", "win32"}
|
||||||
|
|
||||||
|
locations: HeroicLocations
|
||||||
|
|
||||||
|
@property
|
||||||
|
def game_id_format(self) -> str:
|
||||||
|
"""The string format used to construct game IDs"""
|
||||||
|
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,
|
||||||
|
)
|
||||||
|
)
|
||||||
107
src/importer/sources/itch_source.py
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
# itch_source.py
|
||||||
|
#
|
||||||
|
# Copyright 2022-2023 kramo
|
||||||
|
# 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
|
||||||
|
|
||||||
|
from shutil import rmtree
|
||||||
|
from sqlite3 import connect
|
||||||
|
from time import time
|
||||||
|
from typing import NamedTuple
|
||||||
|
|
||||||
|
from src import shared
|
||||||
|
from src.game import Game
|
||||||
|
from src.importer.sources.location import Location, LocationSubPath
|
||||||
|
from src.importer.sources.source import SourceIterable, URLExecutableSource
|
||||||
|
from src.utils.sqlite import copy_db
|
||||||
|
|
||||||
|
|
||||||
|
class ItchSourceIterable(SourceIterable):
|
||||||
|
source: "ItchSource"
|
||||||
|
|
||||||
|
def __iter__(self):
|
||||||
|
"""Generator method producing games"""
|
||||||
|
|
||||||
|
# Query the database
|
||||||
|
db_request = """
|
||||||
|
SELECT
|
||||||
|
games.id,
|
||||||
|
games.title,
|
||||||
|
games.cover_url,
|
||||||
|
games.still_cover_url,
|
||||||
|
caves.id
|
||||||
|
FROM
|
||||||
|
'caves'
|
||||||
|
INNER JOIN
|
||||||
|
'games'
|
||||||
|
ON
|
||||||
|
caves.game_id = games.id
|
||||||
|
;
|
||||||
|
"""
|
||||||
|
db_path = copy_db(self.source.locations.config["butler.db"])
|
||||||
|
connection = connect(db_path)
|
||||||
|
cursor = connection.execute(db_request)
|
||||||
|
|
||||||
|
added_time = int(time())
|
||||||
|
|
||||||
|
# Create games from the db results
|
||||||
|
for row in cursor:
|
||||||
|
values = {
|
||||||
|
"added": added_time,
|
||||||
|
"source": self.source.source_id,
|
||||||
|
"name": row[1],
|
||||||
|
"game_id": self.source.game_id_format.format(game_id=row[0]),
|
||||||
|
"executable": self.source.executable_format.format(cave_id=row[4]),
|
||||||
|
}
|
||||||
|
additional_data = {"online_cover_url": row[3] or row[2]}
|
||||||
|
game = Game(values)
|
||||||
|
yield (game, additional_data)
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
rmtree(str(db_path.parent))
|
||||||
|
|
||||||
|
|
||||||
|
class ItchLocations(NamedTuple):
|
||||||
|
config: Location
|
||||||
|
|
||||||
|
|
||||||
|
class ItchSource(URLExecutableSource):
|
||||||
|
source_id = "itch"
|
||||||
|
name = _("itch")
|
||||||
|
iterable_class = ItchSourceIterable
|
||||||
|
url_format = "itch://caves/{cave_id}/launch"
|
||||||
|
available_on = {"linux", "win32"}
|
||||||
|
|
||||||
|
locations: ItchLocations
|
||||||
|
|
||||||
|
def __init__(self) -> None:
|
||||||
|
super().__init__()
|
||||||
|
self.locations = ItchLocations(
|
||||||
|
Location(
|
||||||
|
schema_key="itch-location",
|
||||||
|
candidates=(
|
||||||
|
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,
|
||||||
|
)
|
||||||
|
)
|
||||||
124
src/importer/sources/legendary_source.py
Normal file
@@ -0,0 +1,124 @@
|
|||||||
|
# legendary_source.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 json import JSONDecodeError
|
||||||
|
from time import time
|
||||||
|
from typing import NamedTuple
|
||||||
|
|
||||||
|
from src import shared
|
||||||
|
from src.game import Game
|
||||||
|
from src.importer.sources.location import Location, LocationSubPath
|
||||||
|
from src.importer.sources.source import (
|
||||||
|
ExecutableFormatSource,
|
||||||
|
SourceIterationResult,
|
||||||
|
SourceIterable,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
class LegendarySourceIterable(SourceIterable):
|
||||||
|
source: "LegendarySource"
|
||||||
|
|
||||||
|
def game_from_library_entry(
|
||||||
|
self, entry: dict, added_time: int
|
||||||
|
) -> SourceIterationResult:
|
||||||
|
# Skip non-games
|
||||||
|
if entry["is_dlc"]:
|
||||||
|
return None
|
||||||
|
|
||||||
|
# Build game
|
||||||
|
app_name = entry["app_name"]
|
||||||
|
values = {
|
||||||
|
"added": added_time,
|
||||||
|
"source": self.source.source_id,
|
||||||
|
"name": entry["title"],
|
||||||
|
"game_id": self.source.game_id_format.format(game_id=app_name),
|
||||||
|
"executable": self.source.executable_format.format(app_name=app_name),
|
||||||
|
}
|
||||||
|
data = {}
|
||||||
|
|
||||||
|
# Get additional metadata from file (optional)
|
||||||
|
metadata_file = self.source.locations.config["metadata"] / f"{app_name}.json"
|
||||||
|
try:
|
||||||
|
metadata = json.load(metadata_file.open())
|
||||||
|
values["developer"] = metadata["metadata"]["developer"]
|
||||||
|
for image_entry in metadata["metadata"]["keyImages"]:
|
||||||
|
if image_entry["type"] == "DieselGameBoxTall":
|
||||||
|
data["online_cover_url"] = image_entry["url"]
|
||||||
|
break
|
||||||
|
except (JSONDecodeError, OSError, KeyError):
|
||||||
|
pass
|
||||||
|
|
||||||
|
game = Game(values)
|
||||||
|
return (game, data)
|
||||||
|
|
||||||
|
def __iter__(self):
|
||||||
|
# Open library
|
||||||
|
file = self.source.locations.config["installed.json"]
|
||||||
|
try:
|
||||||
|
library: dict = json.load(file.open())
|
||||||
|
except (JSONDecodeError, OSError):
|
||||||
|
logging.warning("Couldn't open Legendary file: %s", str(file))
|
||||||
|
return
|
||||||
|
|
||||||
|
added_time = int(time())
|
||||||
|
|
||||||
|
# Generate games from library
|
||||||
|
for entry in library.values():
|
||||||
|
try:
|
||||||
|
result = self.game_from_library_entry(entry, added_time)
|
||||||
|
except KeyError as error:
|
||||||
|
# Skip invalid games
|
||||||
|
logging.warning(
|
||||||
|
"Invalid Legendary game skipped in %s", str(file), exc_info=error
|
||||||
|
)
|
||||||
|
continue
|
||||||
|
yield result
|
||||||
|
|
||||||
|
|
||||||
|
class LegendaryLocations(NamedTuple):
|
||||||
|
config: Location
|
||||||
|
|
||||||
|
|
||||||
|
class LegendarySource(ExecutableFormatSource):
|
||||||
|
source_id = "legendary"
|
||||||
|
name = _("Legendary")
|
||||||
|
executable_format = "legendary launch {app_name}"
|
||||||
|
available_on = {"linux"}
|
||||||
|
iterable_class = LegendarySourceIterable
|
||||||
|
|
||||||
|
locations: LegendaryLocations
|
||||||
|
|
||||||
|
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,
|
||||||
|
)
|
||||||
|
)
|
||||||
102
src/importer/sources/location.py
Normal file
@@ -0,0 +1,102 @@
|
|||||||
|
import logging
|
||||||
|
from os import PathLike
|
||||||
|
from pathlib import Path
|
||||||
|
from typing import Iterable, Mapping, NamedTuple, Optional
|
||||||
|
|
||||||
|
from src import shared
|
||||||
|
|
||||||
|
PathSegment = str | PathLike | Path
|
||||||
|
PathSegments = Iterable[PathSegment]
|
||||||
|
Candidate = PathSegments
|
||||||
|
|
||||||
|
|
||||||
|
class LocationSubPath(NamedTuple):
|
||||||
|
segment: PathSegment
|
||||||
|
is_directory: bool = False
|
||||||
|
|
||||||
|
|
||||||
|
class UnresolvableLocationError(Exception):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class Location:
|
||||||
|
"""
|
||||||
|
Class representing a filesystem location
|
||||||
|
|
||||||
|
* A location may have multiple candidate roots
|
||||||
|
* The path in the schema is always favored
|
||||||
|
* From the candidate root, multiple subpaths should exist for it to be valid
|
||||||
|
* 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
|
||||||
|
candidates: Iterable[Candidate]
|
||||||
|
paths: Mapping[str, LocationSubPath]
|
||||||
|
invalid_subtitle: str
|
||||||
|
|
||||||
|
root: Optional[Path] = None
|
||||||
|
|
||||||
|
def __init__(
|
||||||
|
self,
|
||||||
|
schema_key: str,
|
||||||
|
candidates: Iterable[Candidate],
|
||||||
|
paths: Mapping[str, LocationSubPath],
|
||||||
|
invalid_subtitle: str,
|
||||||
|
) -> None:
|
||||||
|
super().__init__()
|
||||||
|
self.schema_key = schema_key
|
||||||
|
self.candidates = candidates
|
||||||
|
self.paths = paths
|
||||||
|
self.invalid_subtitle = invalid_subtitle
|
||||||
|
|
||||||
|
def check_candidate(self, candidate: Path) -> bool:
|
||||||
|
"""Check if a candidate root has the necessary files and directories"""
|
||||||
|
for segment, is_directory in self.paths.values():
|
||||||
|
path = Path(candidate) / segment
|
||||||
|
if is_directory:
|
||||||
|
if not path.is_dir():
|
||||||
|
return False
|
||||||
|
else:
|
||||||
|
if not path.is_file():
|
||||||
|
return False
|
||||||
|
return True
|
||||||
|
|
||||||
|
def resolve(self) -> None:
|
||||||
|
"""Choose a root path from the candidates for the location.
|
||||||
|
If none fits, raise an UnresolvableLocationError"""
|
||||||
|
|
||||||
|
if self.root is not None:
|
||||||
|
return
|
||||||
|
|
||||||
|
# Get the schema candidate
|
||||||
|
schema_candidate = shared.schema.get_string(self.schema_key)
|
||||||
|
|
||||||
|
# Find the first matching candidate
|
||||||
|
for candidate in (schema_candidate, *self.candidates):
|
||||||
|
candidate = Path(candidate).expanduser()
|
||||||
|
if not self.check_candidate(candidate):
|
||||||
|
continue
|
||||||
|
self.root = candidate
|
||||||
|
break
|
||||||
|
else:
|
||||||
|
# No good candidate found
|
||||||
|
raise UnresolvableLocationError()
|
||||||
|
|
||||||
|
# Update the schema with the found candidate
|
||||||
|
value = str(candidate)
|
||||||
|
shared.schema.set_string(self.schema_key, value)
|
||||||
|
logging.debug("Resolved value for schema key %s: %s", self.schema_key, value)
|
||||||
|
|
||||||
|
def __getitem__(self, key: str) -> Optional[Path]:
|
||||||
|
"""Get the computed path from its key for the location"""
|
||||||
|
self.resolve()
|
||||||
|
if self.root:
|
||||||
|
return self.root / self.paths[key].segment
|
||||||
|
return None
|
||||||
136
src/importer/sources/lutris_source.py
Normal file
@@ -0,0 +1,136 @@
|
|||||||
|
# lutris_source.py
|
||||||
|
#
|
||||||
|
# Copyright 2022-2023 kramo
|
||||||
|
# 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
|
||||||
|
from shutil import rmtree
|
||||||
|
from sqlite3 import connect
|
||||||
|
from time import time
|
||||||
|
from typing import NamedTuple
|
||||||
|
|
||||||
|
from src import shared
|
||||||
|
from src.game import Game
|
||||||
|
from src.importer.sources.location import Location, LocationSubPath
|
||||||
|
from src.importer.sources.source import SourceIterable, URLExecutableSource
|
||||||
|
from src.utils.sqlite import copy_db
|
||||||
|
|
||||||
|
|
||||||
|
class LutrisSourceIterable(SourceIterable):
|
||||||
|
source: "LutrisSource"
|
||||||
|
|
||||||
|
def __iter__(self):
|
||||||
|
"""Generator method producing games"""
|
||||||
|
|
||||||
|
# Query the database
|
||||||
|
request = """
|
||||||
|
SELECT id, name, slug, runner, hidden
|
||||||
|
FROM 'games'
|
||||||
|
WHERE
|
||||||
|
name IS NOT NULL
|
||||||
|
AND slug IS NOT NULL
|
||||||
|
AND configPath IS NOT NULL
|
||||||
|
AND installed
|
||||||
|
AND (runner IS NOT "steam" OR :import_steam)
|
||||||
|
AND (runner IS NOT "flatpak" OR :import_flatpak)
|
||||||
|
;
|
||||||
|
"""
|
||||||
|
params = {
|
||||||
|
"import_steam": shared.schema.get_boolean("lutris-import-steam"),
|
||||||
|
"import_flatpak": shared.schema.get_boolean("lutris-import-flatpak"),
|
||||||
|
}
|
||||||
|
db_path = copy_db(self.source.locations.config["pga.db"])
|
||||||
|
connection = connect(db_path)
|
||||||
|
cursor = connection.execute(request, params)
|
||||||
|
|
||||||
|
added_time = int(time())
|
||||||
|
|
||||||
|
# Create games from the DB results
|
||||||
|
for row in cursor:
|
||||||
|
# Create game
|
||||||
|
values = {
|
||||||
|
"added": added_time,
|
||||||
|
"hidden": row[4],
|
||||||
|
"name": row[1],
|
||||||
|
"source": f"{self.source.source_id}_{row[3]}",
|
||||||
|
"game_id": self.source.game_id_format.format(
|
||||||
|
runner=row[3], game_id=row[0]
|
||||||
|
),
|
||||||
|
"executable": self.source.executable_format.format(game_id=row[0]),
|
||||||
|
}
|
||||||
|
game = Game(values)
|
||||||
|
|
||||||
|
# Get official image path
|
||||||
|
image_path = self.source.locations.cache["coverart"] / f"{row[2]}.jpg"
|
||||||
|
additional_data = {"local_image_path": image_path}
|
||||||
|
|
||||||
|
# Produce game
|
||||||
|
yield (game, additional_data)
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
rmtree(str(db_path.parent))
|
||||||
|
|
||||||
|
|
||||||
|
class LutrisLocations(NamedTuple):
|
||||||
|
config: Location
|
||||||
|
cache: Location
|
||||||
|
|
||||||
|
|
||||||
|
class LutrisSource(URLExecutableSource):
|
||||||
|
"""Generic Lutris source"""
|
||||||
|
|
||||||
|
source_id = "lutris"
|
||||||
|
name = _("Lutris")
|
||||||
|
iterable_class = LutrisSourceIterable
|
||||||
|
url_format = "lutris:rungameid/{game_id}"
|
||||||
|
available_on = {"linux"}
|
||||||
|
|
||||||
|
# FIXME possible bug: config picks ~/.var... and cache picks ~/.local...
|
||||||
|
|
||||||
|
locations: LutrisLocations
|
||||||
|
|
||||||
|
@property
|
||||||
|
def game_id_format(self):
|
||||||
|
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,
|
||||||
|
),
|
||||||
|
)
|
||||||
258
src/importer/sources/retroarch_source.py
Normal file
@@ -0,0 +1,258 @@
|
|||||||
|
# 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,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
# TODO enable when we get the Steam RetroArch games working
|
||||||
|
# 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)
|
||||||
|
# TODO enable when we get Steam RetroArch executable to work
|
||||||
|
# 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)
|
||||||
127
src/importer/sources/source.py
Normal file
@@ -0,0 +1,127 @@
|
|||||||
|
# source.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 sys
|
||||||
|
from abc import abstractmethod
|
||||||
|
from collections.abc import Iterable
|
||||||
|
from typing import Any, Collection, Generator, Optional
|
||||||
|
|
||||||
|
from src.game import Game
|
||||||
|
from src.importer.sources.location import Location
|
||||||
|
|
||||||
|
# Type of the data returned by iterating on a Source
|
||||||
|
SourceIterationResult = Optional[Game | tuple[Game, tuple[Any]]]
|
||||||
|
|
||||||
|
|
||||||
|
class SourceIterable(Iterable):
|
||||||
|
"""Data producer for a source of games"""
|
||||||
|
|
||||||
|
source: "Source"
|
||||||
|
|
||||||
|
def __init__(self, source: "Source") -> None:
|
||||||
|
self.source = source
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __iter__(self) -> Generator[SourceIterationResult, None, None]:
|
||||||
|
"""
|
||||||
|
Method that returns a generator that produces games
|
||||||
|
* Should be implemented as a generator method
|
||||||
|
* May yield `None` when an iteration hasn't produced a game
|
||||||
|
* In charge of handling per-game errors
|
||||||
|
* Returns when exhausted
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
class Source(Iterable):
|
||||||
|
"""Source of games. E.g an installed app with a config file that lists game directories"""
|
||||||
|
|
||||||
|
source_id: str
|
||||||
|
name: str
|
||||||
|
variant: Optional[str] = None
|
||||||
|
available_on: set[str] = set()
|
||||||
|
iterable_class: type[SourceIterable]
|
||||||
|
|
||||||
|
# NOTE: Locations must be set at __init__ time, not in the class definition.
|
||||||
|
# They must not be shared between source instances.
|
||||||
|
locations: Collection[Location]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def full_name(self) -> str:
|
||||||
|
"""The source's full name"""
|
||||||
|
full_name_ = self.name
|
||||||
|
if self.variant:
|
||||||
|
full_name_ += f" ({self.variant})"
|
||||||
|
return full_name_
|
||||||
|
|
||||||
|
@property
|
||||||
|
def game_id_format(self) -> str:
|
||||||
|
"""The string format used to construct game IDs"""
|
||||||
|
return self.source_id + "_{game_id}"
|
||||||
|
|
||||||
|
@property
|
||||||
|
def is_available(self) -> bool:
|
||||||
|
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
|
||||||
|
@abstractmethod
|
||||||
|
def executable_format(self) -> str:
|
||||||
|
"""The executable format used to construct game executables"""
|
||||||
|
|
||||||
|
def make_executable(self, *args, **kwargs) -> str:
|
||||||
|
"""Use the executable format to"""
|
||||||
|
return self.executable_format.format(args, kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
# pylint: disable=abstract-method
|
||||||
|
class URLExecutableSource(ExecutableFormatSource):
|
||||||
|
"""Source class that use custom URLs to start games"""
|
||||||
|
|
||||||
|
url_format: str
|
||||||
|
|
||||||
|
@property
|
||||||
|
def executable_format(self) -> str:
|
||||||
|
match sys.platform:
|
||||||
|
case "win32":
|
||||||
|
return "start " + self.url_format
|
||||||
|
case "linux":
|
||||||
|
return "xdg-open " + self.url_format
|
||||||
|
case other:
|
||||||
|
raise NotImplementedError(
|
||||||
|
f"No URL handler command available for {other}"
|
||||||
|
)
|
||||||
144
src/importer/sources/steam_source.py
Normal file
@@ -0,0 +1,144 @@
|
|||||||
|
# steam_source.py
|
||||||
|
#
|
||||||
|
# Copyright 2022-2023 kramo
|
||||||
|
# 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
|
||||||
|
import re
|
||||||
|
from pathlib import Path
|
||||||
|
from time import time
|
||||||
|
from typing import Iterable, NamedTuple
|
||||||
|
|
||||||
|
from src import shared
|
||||||
|
from src.game import Game
|
||||||
|
from src.importer.sources.location import Location, LocationSubPath
|
||||||
|
from src.importer.sources.source import SourceIterable, URLExecutableSource
|
||||||
|
from src.utils.steam import SteamFileHelper, SteamInvalidManifestError
|
||||||
|
|
||||||
|
|
||||||
|
class SteamSourceIterable(SourceIterable):
|
||||||
|
source: "SteamSource"
|
||||||
|
|
||||||
|
def get_manifest_dirs(self) -> Iterable[Path]:
|
||||||
|
"""Get dirs that contain Steam app manifests"""
|
||||||
|
libraryfolders_path = self.source.locations.data["libraryfolders.vdf"]
|
||||||
|
with open(libraryfolders_path, "r", encoding="utf-8") as file:
|
||||||
|
contents = file.read()
|
||||||
|
return [
|
||||||
|
Path(path) / "steamapps"
|
||||||
|
for path in re.findall('"path"\\s+"(.*)"\n', contents, re.IGNORECASE)
|
||||||
|
]
|
||||||
|
|
||||||
|
def get_manifests(self) -> Iterable[Path]:
|
||||||
|
"""Get app manifests"""
|
||||||
|
manifests = set()
|
||||||
|
for steamapps_dir in self.get_manifest_dirs():
|
||||||
|
if not steamapps_dir.is_dir():
|
||||||
|
continue
|
||||||
|
manifests.update(
|
||||||
|
[
|
||||||
|
manifest
|
||||||
|
for manifest in steamapps_dir.glob("appmanifest_*.acf")
|
||||||
|
if manifest.is_file()
|
||||||
|
]
|
||||||
|
)
|
||||||
|
return manifests
|
||||||
|
|
||||||
|
def __iter__(self):
|
||||||
|
"""Generator method producing games"""
|
||||||
|
appid_cache = set()
|
||||||
|
manifests = self.get_manifests()
|
||||||
|
|
||||||
|
added_time = int(time())
|
||||||
|
|
||||||
|
for manifest in manifests:
|
||||||
|
# Get metadata from manifest
|
||||||
|
steam = SteamFileHelper()
|
||||||
|
try:
|
||||||
|
local_data = steam.get_manifest_data(manifest)
|
||||||
|
except (OSError, SteamInvalidManifestError) as error:
|
||||||
|
logging.debug("Couldn't load appmanifest %s", manifest, exc_info=error)
|
||||||
|
continue
|
||||||
|
|
||||||
|
# Skip non installed games
|
||||||
|
installed_mask = 4
|
||||||
|
if not int(local_data["stateflags"]) & installed_mask:
|
||||||
|
logging.debug("Skipped %s: not installed", manifest)
|
||||||
|
continue
|
||||||
|
|
||||||
|
# Skip duplicate appids
|
||||||
|
appid = local_data["appid"]
|
||||||
|
if appid in appid_cache:
|
||||||
|
logging.debug("Skipped %s: appid already seen during import", manifest)
|
||||||
|
continue
|
||||||
|
appid_cache.add(appid)
|
||||||
|
|
||||||
|
# Build game from local data
|
||||||
|
values = {
|
||||||
|
"added": added_time,
|
||||||
|
"name": local_data["name"],
|
||||||
|
"source": self.source.source_id,
|
||||||
|
"game_id": self.source.game_id_format.format(game_id=appid),
|
||||||
|
"executable": self.source.executable_format.format(game_id=appid),
|
||||||
|
}
|
||||||
|
game = Game(values)
|
||||||
|
|
||||||
|
# Add official cover image
|
||||||
|
image_path = (
|
||||||
|
self.source.locations.data["librarycache"]
|
||||||
|
/ f"{appid}_library_600x900.jpg"
|
||||||
|
)
|
||||||
|
additional_data = {"local_image_path": image_path, "steam_appid": appid}
|
||||||
|
|
||||||
|
# Produce game
|
||||||
|
yield (game, additional_data)
|
||||||
|
|
||||||
|
|
||||||
|
class SteamLocations(NamedTuple):
|
||||||
|
data: Location
|
||||||
|
|
||||||
|
|
||||||
|
class SteamSource(URLExecutableSource):
|
||||||
|
source_id = "steam"
|
||||||
|
name = _("Steam")
|
||||||
|
available_on = {"linux", "win32"}
|
||||||
|
iterable_class = SteamSourceIterable
|
||||||
|
url_format = "steam://rungameid/{game_id}"
|
||||||
|
|
||||||
|
locations: SteamLocations
|
||||||
|
|
||||||
|
def __init__(self) -> None:
|
||||||
|
super().__init__()
|
||||||
|
self.locations = SteamLocations(
|
||||||
|
Location(
|
||||||
|
schema_key="steam-location",
|
||||||
|
candidates=(
|
||||||
|
shared.home / ".steam" / "steam",
|
||||||
|
shared.data_dir / "Steam",
|
||||||
|
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,
|
||||||
|
)
|
||||||
|
)
|
||||||
44
src/logging/color_log_formatter.py
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
# color_log_formatter.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
|
||||||
|
|
||||||
|
from logging import Formatter, LogRecord
|
||||||
|
|
||||||
|
|
||||||
|
class ColorLogFormatter(Formatter):
|
||||||
|
"""Formatter that outputs logs in a colored format"""
|
||||||
|
|
||||||
|
RESET = "\033[0m"
|
||||||
|
DIM = "\033[2m"
|
||||||
|
BOLD = "\033[1m"
|
||||||
|
RED = "\033[31m"
|
||||||
|
YELLOW = "\033[33m"
|
||||||
|
|
||||||
|
def format(self, record: LogRecord) -> str:
|
||||||
|
super_format = super().format(record)
|
||||||
|
match record.levelname:
|
||||||
|
case "CRITICAL":
|
||||||
|
return self.BOLD + self.RED + super_format + self.RESET
|
||||||
|
case "ERROR":
|
||||||
|
return self.RED + super_format + self.RESET
|
||||||
|
case "WARNING":
|
||||||
|
return self.YELLOW + super_format + self.RESET
|
||||||
|
case "DEBUG":
|
||||||
|
return self.DIM + super_format + self.RESET
|
||||||
|
case _other:
|
||||||
|
return super_format
|
||||||
134
src/logging/session_file_handler.py
Normal file
@@ -0,0 +1,134 @@
|
|||||||
|
# session_file_handler.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 lzma
|
||||||
|
from io import TextIOWrapper
|
||||||
|
from logging import StreamHandler
|
||||||
|
from lzma import FORMAT_XZ, PRESET_DEFAULT
|
||||||
|
from os import PathLike
|
||||||
|
from pathlib import Path
|
||||||
|
from typing import Optional
|
||||||
|
|
||||||
|
from src import shared
|
||||||
|
|
||||||
|
|
||||||
|
class SessionFileHandler(StreamHandler):
|
||||||
|
"""
|
||||||
|
A logging handler that writes to a new file on every app restart.
|
||||||
|
The files are compressed and older sessions logs are kept up to a small limit.
|
||||||
|
"""
|
||||||
|
|
||||||
|
NUMBER_SUFFIX_POSITION = 1
|
||||||
|
|
||||||
|
backup_count: int
|
||||||
|
filename: Path
|
||||||
|
log_file: Optional[TextIOWrapper] = None
|
||||||
|
|
||||||
|
def create_dir(self) -> None:
|
||||||
|
"""Create the log dir if needed"""
|
||||||
|
self.filename.parent.mkdir(exist_ok=True, parents=True)
|
||||||
|
|
||||||
|
def path_is_logfile(self, path: Path) -> bool:
|
||||||
|
return path.is_file() and path.name.startswith(self.filename.stem)
|
||||||
|
|
||||||
|
def path_has_number(self, path: Path) -> bool:
|
||||||
|
try:
|
||||||
|
int(path.suffixes[self.NUMBER_SUFFIX_POSITION][1:])
|
||||||
|
except (ValueError, IndexError):
|
||||||
|
return False
|
||||||
|
return True
|
||||||
|
|
||||||
|
def get_path_number(self, path: Path) -> int:
|
||||||
|
"""Get the number extension in the filename as an int"""
|
||||||
|
suffixes = path.suffixes
|
||||||
|
number = (
|
||||||
|
0
|
||||||
|
if not self.path_has_number(path)
|
||||||
|
else int(suffixes[self.NUMBER_SUFFIX_POSITION][1:])
|
||||||
|
)
|
||||||
|
return number
|
||||||
|
|
||||||
|
def set_path_number(self, path: Path, number: int) -> str:
|
||||||
|
"""Set or add the number extension in the filename"""
|
||||||
|
suffixes = path.suffixes
|
||||||
|
if self.path_has_number(path):
|
||||||
|
suffixes.pop(self.NUMBER_SUFFIX_POSITION)
|
||||||
|
suffixes.insert(self.NUMBER_SUFFIX_POSITION, f".{number}")
|
||||||
|
stem = path.name.split(".", maxsplit=1)[0]
|
||||||
|
new_name = stem + "".join(suffixes)
|
||||||
|
return new_name
|
||||||
|
|
||||||
|
def file_sort_key(self, path: Path) -> int:
|
||||||
|
"""Key function used to sort files"""
|
||||||
|
return self.get_path_number(path) if self.path_has_number(path) else 0
|
||||||
|
|
||||||
|
def get_logfiles(self) -> list[Path]:
|
||||||
|
"""Get the log files"""
|
||||||
|
logfiles = list(filter(self.path_is_logfile, self.filename.parent.iterdir()))
|
||||||
|
logfiles.sort(key=self.file_sort_key, reverse=True)
|
||||||
|
return logfiles
|
||||||
|
|
||||||
|
def rotate_file(self, path: Path) -> None:
|
||||||
|
"""Rotate a file's number suffix and remove it if it's too old"""
|
||||||
|
|
||||||
|
# If uncompressed, compress
|
||||||
|
if not path.name.endswith(".xz"):
|
||||||
|
compressed_path = path.with_suffix(path.suffix + ".xz")
|
||||||
|
with (
|
||||||
|
lzma.open(
|
||||||
|
compressed_path,
|
||||||
|
"wt",
|
||||||
|
format=FORMAT_XZ,
|
||||||
|
preset=PRESET_DEFAULT,
|
||||||
|
encoding="utf-8",
|
||||||
|
) as lzma_file,
|
||||||
|
open(path, "r", encoding="utf-8") as original_file,
|
||||||
|
):
|
||||||
|
lzma_file.write(original_file.read())
|
||||||
|
path.unlink()
|
||||||
|
path = compressed_path
|
||||||
|
|
||||||
|
# Rename with new number suffix
|
||||||
|
new_number = self.get_path_number(path) + 1
|
||||||
|
new_path_name = self.set_path_number(path, new_number)
|
||||||
|
path = path.rename(path.with_name(new_path_name))
|
||||||
|
|
||||||
|
# Remove older files
|
||||||
|
if new_number > self.backup_count:
|
||||||
|
path.unlink()
|
||||||
|
return
|
||||||
|
|
||||||
|
def rotate(self) -> None:
|
||||||
|
"""Rotate the numbered suffix on the log files and remove old ones"""
|
||||||
|
for path in self.get_logfiles():
|
||||||
|
self.rotate_file(path)
|
||||||
|
|
||||||
|
def __init__(self, filename: PathLike, backup_count: int = 2) -> None:
|
||||||
|
self.filename = Path(filename)
|
||||||
|
self.backup_count = backup_count
|
||||||
|
self.create_dir()
|
||||||
|
self.rotate()
|
||||||
|
self.log_file = open(self.filename, "w", encoding="utf-8")
|
||||||
|
shared.log_files = self.get_logfiles()
|
||||||
|
super().__init__(self.log_file)
|
||||||
|
|
||||||
|
def close(self) -> None:
|
||||||
|
if self.log_file:
|
||||||
|
self.log_file.close()
|
||||||
|
super().close()
|
||||||
109
src/logging/setup.py
Normal file
@@ -0,0 +1,109 @@
|
|||||||
|
# setup.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
|
||||||
|
import logging.config as logging_dot_config
|
||||||
|
import os
|
||||||
|
import platform
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
|
from src import shared
|
||||||
|
|
||||||
|
|
||||||
|
def setup_logging() -> None:
|
||||||
|
"""Intitate the app's logging"""
|
||||||
|
|
||||||
|
is_dev = shared.PROFILE == "development"
|
||||||
|
profile_app_log_level = "DEBUG" if is_dev else "INFO"
|
||||||
|
profile_lib_log_level = "INFO" if is_dev else "WARNING"
|
||||||
|
app_log_level = os.environ.get("LOGLEVEL", profile_app_log_level).upper()
|
||||||
|
lib_log_level = os.environ.get("LIBLOGLEVEL", profile_lib_log_level).upper()
|
||||||
|
|
||||||
|
log_filename = shared.cache_dir / "cartridges" / "logs" / "cartridges.log"
|
||||||
|
|
||||||
|
config = {
|
||||||
|
"version": 1,
|
||||||
|
"formatters": {
|
||||||
|
"file_formatter": {
|
||||||
|
"format": "%(asctime)s - %(levelname)s: %(message)s",
|
||||||
|
"datefmt": "%M:%S",
|
||||||
|
},
|
||||||
|
"console_formatter": {
|
||||||
|
"format": "%(name)s %(levelname)s - %(message)s",
|
||||||
|
"class": "src.logging.color_log_formatter.ColorLogFormatter",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"handlers": {
|
||||||
|
"file_handler": {
|
||||||
|
"class": "src.logging.session_file_handler.SessionFileHandler",
|
||||||
|
"formatter": "file_formatter",
|
||||||
|
"level": "DEBUG",
|
||||||
|
"filename": log_filename,
|
||||||
|
"backup_count": 2,
|
||||||
|
},
|
||||||
|
"app_console_handler": {
|
||||||
|
"class": "logging.StreamHandler",
|
||||||
|
"formatter": "console_formatter",
|
||||||
|
"level": app_log_level,
|
||||||
|
},
|
||||||
|
"lib_console_handler": {
|
||||||
|
"class": "logging.StreamHandler",
|
||||||
|
"formatter": "console_formatter",
|
||||||
|
"level": lib_log_level,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"loggers": {
|
||||||
|
"PIL": {
|
||||||
|
"handlers": ["lib_console_handler", "file_handler"],
|
||||||
|
"propagate": False,
|
||||||
|
"level": "WARNING",
|
||||||
|
},
|
||||||
|
"urllib3": {
|
||||||
|
"handlers": ["lib_console_handler", "file_handler"],
|
||||||
|
"propagate": False,
|
||||||
|
"level": "NOTSET",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"level": "NOTSET",
|
||||||
|
"handlers": ["app_console_handler", "file_handler"],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
logging_dot_config.dictConfig(config)
|
||||||
|
|
||||||
|
|
||||||
|
def log_system_info() -> None:
|
||||||
|
"""Log system debug information"""
|
||||||
|
|
||||||
|
logging.debug("Starting %s v%s (%s)", shared.APP_ID, shared.VERSION, shared.PROFILE)
|
||||||
|
logging.debug("Python version: %s", sys.version)
|
||||||
|
if os.getenv("FLATPAK_ID") == shared.APP_ID:
|
||||||
|
process = subprocess.run(
|
||||||
|
("flatpak-spawn", "--host", "flatpak", "--version"),
|
||||||
|
capture_output=True,
|
||||||
|
encoding="utf-8",
|
||||||
|
check=False,
|
||||||
|
)
|
||||||
|
logging.debug("Flatpak version: %s", process.stdout.rstrip())
|
||||||
|
logging.debug("Platform: %s", platform.platform())
|
||||||
|
if os.name == "posix":
|
||||||
|
for key, value in platform.uname()._asdict().items():
|
||||||
|
logging.debug("\t%s: %s", key.title(), value)
|
||||||
|
logging.debug("─" * 37)
|
||||||
328
src/main.py
@@ -17,9 +17,11 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
import json
|
||||||
|
import lzma
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import time
|
from typing import Any, Optional
|
||||||
|
|
||||||
import gi
|
import gi
|
||||||
|
|
||||||
@@ -29,190 +31,272 @@ gi.require_version("Adw", "1")
|
|||||||
# pylint: disable=wrong-import-position
|
# pylint: disable=wrong-import-position
|
||||||
from gi.repository import Adw, Gio, GLib, Gtk
|
from gi.repository import Adw, Gio, GLib, Gtk
|
||||||
|
|
||||||
from .bottles_parser import bottles_parser
|
from src import shared
|
||||||
from .create_details_window import create_details_window
|
from src.details_window import DetailsWindow
|
||||||
from .get_games import get_games
|
from src.game import Game
|
||||||
from .heroic_parser import heroic_parser
|
from src.importer.importer import Importer
|
||||||
from .preferences import PreferencesWindow
|
from src.importer.sources.bottles_source import BottlesSource
|
||||||
from .save_games import save_games
|
from src.importer.sources.flatpak_source import FlatpakSource
|
||||||
from .steam_parser import steam_parser
|
from src.importer.sources.heroic_source import HeroicSource
|
||||||
from .window import CartridgesWindow
|
from src.importer.sources.itch_source import ItchSource
|
||||||
|
from src.importer.sources.legendary_source import LegendarySource
|
||||||
|
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.logging.setup import log_system_info, setup_logging
|
||||||
|
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.file_manager import FileManager
|
||||||
|
from src.store.managers.sgdb_manager import SGDBManager
|
||||||
|
from src.store.managers.steam_api_manager import SteamAPIManager
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
class CartridgesApplication(Adw.Application):
|
class CartridgesApplication(Adw.Application):
|
||||||
def __init__(self):
|
win: CartridgesWindow
|
||||||
|
|
||||||
|
def __init__(self) -> None:
|
||||||
|
shared.store = Store()
|
||||||
super().__init__(
|
super().__init__(
|
||||||
application_id="hu.kramo.Cartridges", flags=Gio.ApplicationFlags.FLAGS_NONE
|
application_id=shared.APP_ID, flags=Gio.ApplicationFlags.FLAGS_NONE
|
||||||
)
|
)
|
||||||
self.create_action("quit", self.on_quit_action, ["<primary>q"])
|
|
||||||
self.create_action("about", self.on_about_action)
|
def do_activate(self) -> None: # pylint: disable=arguments-differ
|
||||||
self.create_action(
|
"""Called on app creation"""
|
||||||
"preferences", self.on_preferences_action, ["<primary>comma"]
|
|
||||||
)
|
setup_logging()
|
||||||
self.create_action("steam_import", self.on_steam_import_action)
|
log_system_info()
|
||||||
self.create_action("heroic_import", self.on_heroic_import_action)
|
|
||||||
self.create_action("bottles_import", self.on_bottles_import_action)
|
|
||||||
self.create_action("launch_game", self.on_launch_game_action)
|
|
||||||
self.create_action("hide_game", self.on_hide_game_action)
|
|
||||||
self.create_action("edit_details", self.on_edit_details_action)
|
|
||||||
self.create_action("add_game", self.on_add_game_action, ["<primary>n"])
|
|
||||||
self.create_action("remove_game", self.on_remove_game_action)
|
|
||||||
|
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
self.lookup_action("bottles_import").set_enabled(False)
|
migrate_files_v1_to_v2()
|
||||||
|
|
||||||
self.win = None
|
# Set fallback icon-name
|
||||||
|
Gtk.Window.set_default_icon_name(shared.APP_ID)
|
||||||
def do_activate(self): # pylint: disable=arguments-differ
|
|
||||||
|
|
||||||
# Create the main window
|
# Create the main window
|
||||||
self.win = self.props.active_window # pylint: disable=no-member
|
self.win = self.props.active_window # pylint: disable=no-member
|
||||||
if not self.win:
|
if not self.win:
|
||||||
self.win = CartridgesWindow(application=self)
|
shared.win = self.win = CartridgesWindow(application=self)
|
||||||
|
|
||||||
# Save window geometry
|
# Save window geometry
|
||||||
state_settings = Gio.Settings(schema_id="hu.kramo.Cartridge.State")
|
shared.state_schema.bind(
|
||||||
state_settings.bind(
|
|
||||||
"width", self.win, "default-width", Gio.SettingsBindFlags.DEFAULT
|
"width", self.win, "default-width", Gio.SettingsBindFlags.DEFAULT
|
||||||
)
|
)
|
||||||
state_settings.bind(
|
shared.state_schema.bind(
|
||||||
"height", self.win, "default-height", Gio.SettingsBindFlags.DEFAULT
|
"height", self.win, "default-height", Gio.SettingsBindFlags.DEFAULT
|
||||||
)
|
)
|
||||||
state_settings.bind(
|
shared.state_schema.bind(
|
||||||
"is-maximized", self.win, "maximized", Gio.SettingsBindFlags.DEFAULT
|
"is-maximized", self.win, "maximized", Gio.SettingsBindFlags.DEFAULT
|
||||||
)
|
)
|
||||||
|
|
||||||
self.win.present()
|
# Load games from disk
|
||||||
|
shared.store.add_manager(FileManager(), False)
|
||||||
|
shared.store.add_manager(DisplayManager())
|
||||||
|
self.load_games_from_disk()
|
||||||
|
|
||||||
# Create actions for the main window
|
# Add rest of the managers for game imports
|
||||||
self.create_action(
|
shared.store.add_manager(CoverManager())
|
||||||
"show_hidden", self.win.on_show_hidden_action, ["<primary>h"], self.win
|
shared.store.add_manager(SteamAPIManager())
|
||||||
|
shared.store.add_manager(SGDBManager())
|
||||||
|
shared.store.toggle_manager_in_pipelines(FileManager, True)
|
||||||
|
|
||||||
|
# Create actions
|
||||||
|
self.create_actions(
|
||||||
|
{
|
||||||
|
("quit", ("<primary>q",)),
|
||||||
|
("about",),
|
||||||
|
("preferences", ("<primary>comma",)),
|
||||||
|
("launch_game",),
|
||||||
|
("hide_game",),
|
||||||
|
("edit_game",),
|
||||||
|
("add_game", ("<primary>n",)),
|
||||||
|
("import", ("<primary>i",)),
|
||||||
|
("remove_game_details_view", ("Delete",)),
|
||||||
|
("remove_game",),
|
||||||
|
("igdb_search",),
|
||||||
|
("sgdb_search",),
|
||||||
|
("protondb_search",),
|
||||||
|
("lutris_search",),
|
||||||
|
("hltb_search",),
|
||||||
|
("show_hidden", ("<primary>h",), self.win),
|
||||||
|
("go_back", ("<alt>Left",), self.win),
|
||||||
|
("go_to_parent", ("<alt>Up",), self.win),
|
||||||
|
("go_home", ("<alt>Home",), self.win),
|
||||||
|
("toggle_search", ("<primary>f",), self.win),
|
||||||
|
("escape", ("Escape",), self.win),
|
||||||
|
("undo", ("<primary>z",), self.win),
|
||||||
|
("open_menu", ("F10",), self.win),
|
||||||
|
("close", ("<primary>w",), self.win),
|
||||||
|
}
|
||||||
)
|
)
|
||||||
self.create_action(
|
|
||||||
"go_back", self.win.on_go_back_action, ["<alt>Left"], self.win
|
sort_action = Gio.SimpleAction.new_stateful(
|
||||||
)
|
|
||||||
self.create_action(
|
|
||||||
"go_to_parent", self.win.on_go_to_parent_action, ["<alt>Up"], self.win
|
|
||||||
)
|
|
||||||
self.create_action(
|
|
||||||
"toggle_search", self.win.on_toggle_search_action, ["<primary>f"], self.win
|
|
||||||
)
|
|
||||||
self.create_action("escape", self.win.on_escape_action, ["Escape"], self.win)
|
|
||||||
self.create_action(
|
|
||||||
"undo_remove", self.win.on_undo_remove_action, ["<primary>z"], self.win
|
|
||||||
)
|
|
||||||
self.create_action("open_menu", self.win.on_open_menu_action, ["F10"], self.win)
|
|
||||||
self.win.sort = Gio.SimpleAction.new_stateful(
|
|
||||||
"sort_by", GLib.VariantType.new("s"), GLib.Variant("s", "a-z")
|
"sort_by", GLib.VariantType.new("s"), GLib.Variant("s", "a-z")
|
||||||
)
|
)
|
||||||
self.win.add_action(self.win.sort)
|
sort_action.connect("activate", self.win.on_sort_action)
|
||||||
self.win.sort.connect("activate", self.win.on_sort_action)
|
self.win.add_action(sort_action)
|
||||||
self.win.on_sort_action(self.win.sort, state_settings.get_value("sort-mode"))
|
self.win.on_sort_action(sort_action, shared.state_schema.get_value("sort-mode"))
|
||||||
|
|
||||||
|
self.win.present()
|
||||||
|
|
||||||
|
def load_games_from_disk(self) -> None:
|
||||||
|
if shared.games_dir.is_dir():
|
||||||
|
for game_file in shared.games_dir.iterdir():
|
||||||
|
try:
|
||||||
|
data = json.load(game_file.open())
|
||||||
|
except (OSError, json.decoder.JSONDecodeError):
|
||||||
|
continue
|
||||||
|
game = Game(data)
|
||||||
|
shared.store.add_game(game, {"skip_save": True})
|
||||||
|
|
||||||
|
def on_about_action(self, *_args: Any) -> None:
|
||||||
|
# Get the debug info from the log files
|
||||||
|
debug_str = ""
|
||||||
|
for i, path in enumerate(shared.log_files):
|
||||||
|
# Add a horizontal line between runs
|
||||||
|
if i > 0:
|
||||||
|
debug_str += "─" * 37 + "\n"
|
||||||
|
# Add the run's logs
|
||||||
|
log_file = (
|
||||||
|
lzma.open(path, "rt", encoding="utf-8")
|
||||||
|
if path.name.endswith(".xz")
|
||||||
|
else open(path, "r", encoding="utf-8")
|
||||||
|
)
|
||||||
|
debug_str += log_file.read()
|
||||||
|
log_file.close()
|
||||||
|
|
||||||
def on_about_action(self, _widget, _callback=None):
|
|
||||||
about = Adw.AboutWindow(
|
about = Adw.AboutWindow(
|
||||||
transient_for=self.win,
|
transient_for=self.win,
|
||||||
application_name=_("Cartridges"),
|
application_name=_("Cartridges"),
|
||||||
application_icon="hu.kramo.Cartridges",
|
application_icon=shared.APP_ID,
|
||||||
developer_name="kramo",
|
developer_name="kramo",
|
||||||
version="1.0",
|
version=shared.VERSION,
|
||||||
developers=[
|
developers=[
|
||||||
"kramo https://kramo.hu",
|
"kramo https://kramo.hu",
|
||||||
|
"Geoffrey Coulaud https://geoffrey-coulaud.fr",
|
||||||
|
"Rilic https://rilic.red",
|
||||||
|
"Arcitec https://github.com/Arcitec",
|
||||||
"Paweł Lidwin https://github.com/imLinguin",
|
"Paweł Lidwin https://github.com/imLinguin",
|
||||||
"Bananaman https://github.com/Bananaman",
|
"Domenico https://github.com/Domefemia",
|
||||||
|
"Rafael Mardojai CM https://mardojai.com",
|
||||||
],
|
],
|
||||||
designers=["kramo https://kramo.hu"],
|
designers=("kramo https://kramo.hu",),
|
||||||
copyright="© 2022-2023 kramo",
|
copyright="© 2022-2023 kramo",
|
||||||
license_type=Gtk.License.GPL_3_0,
|
license_type=Gtk.License.GPL_3_0,
|
||||||
issue_url="https://github.com/kra-mo/cartridges/issues/new",
|
issue_url="https://github.com/kra-mo/cartridges/issues/new",
|
||||||
website="https://github.com/kra-mo/cartridges",
|
website="https://github.com/kra-mo/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
|
||||||
translator_credits=_("translator_credits"),
|
translator_credits=_("translator_credits"),
|
||||||
|
debug_info=debug_str,
|
||||||
|
debug_info_filename="cartridges.log",
|
||||||
)
|
)
|
||||||
about.present()
|
about.present()
|
||||||
|
|
||||||
def on_preferences_action(self, _widget, _callback=None):
|
def on_preferences_action(
|
||||||
PreferencesWindow(self.win).present()
|
self,
|
||||||
|
_action: Any = None,
|
||||||
|
_parameter: Any = None,
|
||||||
|
page_name: Optional[str] = None,
|
||||||
|
expander_row: Optional[str] = None,
|
||||||
|
) -> CartridgesWindow:
|
||||||
|
win = PreferencesWindow()
|
||||||
|
if page_name:
|
||||||
|
win.set_visible_page_name(page_name)
|
||||||
|
if expander_row:
|
||||||
|
getattr(win, expander_row).set_expanded(True)
|
||||||
|
win.present()
|
||||||
|
|
||||||
def on_steam_import_action(self, _widget, _callback=None):
|
return win
|
||||||
# Handle the updating of games inside of the module because the function is async
|
|
||||||
steam_parser(self.win, self.on_steam_import_action)
|
|
||||||
|
|
||||||
def on_heroic_import_action(self, _widget, _callback=None):
|
def on_launch_game_action(self, *_args: Any) -> None:
|
||||||
games = heroic_parser(self.win, self.on_heroic_import_action)
|
self.win.active_game.launch()
|
||||||
save_games(games)
|
|
||||||
self.win.update_games(games.keys())
|
|
||||||
|
|
||||||
def on_bottles_import_action(self, _widget, _callback=None):
|
def on_hide_game_action(self, *_args: Any) -> None:
|
||||||
games = bottles_parser(self.win, self.on_bottles_import_action)
|
self.win.active_game.toggle_hidden()
|
||||||
save_games(games)
|
|
||||||
self.win.update_games(games.keys())
|
|
||||||
|
|
||||||
def on_launch_game_action(self, _widget, _callback=None):
|
def on_edit_game_action(self, *_args: Any) -> None:
|
||||||
# Launch the game and update the last played value
|
DetailsWindow(self.win.active_game)
|
||||||
|
|
||||||
game_id = self.win.active_game_id
|
def on_add_game_action(self, *_args: Any) -> None:
|
||||||
|
DetailsWindow()
|
||||||
|
|
||||||
data = get_games([game_id])[game_id]
|
def on_import_action(self, *_args: Any) -> None:
|
||||||
data["last_played"] = int(time.time())
|
shared.importer = Importer()
|
||||||
save_games({game_id: data})
|
|
||||||
|
|
||||||
self.win.games[game_id].launch()
|
if shared.schema.get_boolean("lutris"):
|
||||||
|
shared.importer.add_source(LutrisSource())
|
||||||
|
|
||||||
self.win.update_games([game_id])
|
if shared.schema.get_boolean("steam"):
|
||||||
|
shared.importer.add_source(SteamSource())
|
||||||
|
|
||||||
if self.win.stack.get_visible_child() == self.win.overview:
|
if shared.schema.get_boolean("heroic"):
|
||||||
self.win.show_overview(None, self.win.active_game_id)
|
shared.importer.add_source(HeroicSource())
|
||||||
|
|
||||||
def on_hide_game_action(self, _widget, _callback=None):
|
if shared.schema.get_boolean("bottles"):
|
||||||
if self.win.stack.get_visible_child() == self.win.overview:
|
shared.importer.add_source(BottlesSource())
|
||||||
self.win.on_go_back_action(None, None)
|
|
||||||
self.win.games[self.win.active_game_id].toggle_hidden()
|
|
||||||
self.win.update_games([self.win.active_game_id])
|
|
||||||
|
|
||||||
def on_edit_details_action(self, _widget, _callback=None):
|
if shared.schema.get_boolean("flatpak"):
|
||||||
create_details_window(self.win, self.win.active_game_id)
|
shared.importer.add_source(FlatpakSource())
|
||||||
|
|
||||||
def on_add_game_action(self, _widget, _callback=None):
|
if shared.schema.get_boolean("itch"):
|
||||||
create_details_window(self.win)
|
shared.importer.add_source(ItchSource())
|
||||||
|
|
||||||
def on_remove_game_action(self, _widget, _callback=None):
|
if shared.schema.get_boolean("legendary"):
|
||||||
# Add "removed=True" to the game properties so it can be deleted on next init
|
shared.importer.add_source(LegendarySource())
|
||||||
game_id = self.win.active_game_id
|
|
||||||
|
|
||||||
data = get_games([game_id])[game_id]
|
if shared.schema.get_boolean("retroarch"):
|
||||||
data["removed"] = True
|
shared.importer.add_source(RetroarchSource())
|
||||||
save_games({game_id: data})
|
|
||||||
|
|
||||||
self.win.update_games([game_id])
|
shared.importer.run()
|
||||||
if self.win.stack.get_visible_child() == self.win.overview:
|
|
||||||
self.win.on_go_back_action(None, None)
|
|
||||||
|
|
||||||
# The variable is the title of the game
|
def on_remove_game_action(self, *_args: Any) -> None:
|
||||||
title = self.win.games[game_id].name
|
self.win.active_game.remove_game()
|
||||||
toast = Adw.Toast.new(_(f"{title} removed"))
|
|
||||||
toast.set_button_label(_("Undo"))
|
|
||||||
toast.connect("button-clicked", self.win.on_undo_remove_action, game_id)
|
|
||||||
toast.set_priority(Adw.ToastPriority.HIGH)
|
|
||||||
self.win.toasts[game_id] = toast
|
|
||||||
self.win.toast_overlay.add_toast(toast)
|
|
||||||
|
|
||||||
def on_quit_action(self, _widget, _callback=None):
|
def on_remove_game_details_view_action(self, *_args: Any) -> None:
|
||||||
|
if self.win.stack.get_visible_child() == self.win.details_view:
|
||||||
|
self.on_remove_game_action()
|
||||||
|
|
||||||
|
def search(self, uri: str) -> None:
|
||||||
|
Gio.AppInfo.launch_default_for_uri(f"{uri}{self.win.active_game.name}")
|
||||||
|
|
||||||
|
def on_igdb_search_action(self, *_args: Any) -> None:
|
||||||
|
self.search("https://www.igdb.com/search?type=1&q=")
|
||||||
|
|
||||||
|
def on_sgdb_search_action(self, *_args: Any) -> None:
|
||||||
|
self.search("https://www.steamgriddb.com/search/grids?term=")
|
||||||
|
|
||||||
|
def on_protondb_search_action(self, *_args: Any) -> None:
|
||||||
|
self.search("https://www.protondb.com/search?q=")
|
||||||
|
|
||||||
|
def on_lutris_search_action(self, *_args: Any) -> None:
|
||||||
|
self.search("https://lutris.net/games?q=")
|
||||||
|
|
||||||
|
def on_hltb_search_action(self, *_args: Any) -> None:
|
||||||
|
self.search("https://howlongtobeat.com/?q=")
|
||||||
|
|
||||||
|
def on_quit_action(self, *_args: Any) -> None:
|
||||||
self.quit()
|
self.quit()
|
||||||
|
|
||||||
def create_action(self, name, callback, shortcuts=None, win=None):
|
def create_actions(self, actions: set) -> None:
|
||||||
action = Gio.SimpleAction.new(name, None)
|
for action in actions:
|
||||||
action.connect("activate", callback)
|
simple_action = Gio.SimpleAction.new(action[0], None)
|
||||||
if not win:
|
|
||||||
self.add_action(action)
|
scope = action[2] if action[2:3] else self
|
||||||
if shortcuts:
|
simple_action.connect("activate", getattr(scope, f"on_{action[0]}_action"))
|
||||||
self.set_accels_for_action(f"app.{name}", shortcuts)
|
|
||||||
else:
|
if action[1:2]:
|
||||||
win.add_action(action)
|
self.set_accels_for_action(
|
||||||
if shortcuts:
|
f"app.{action[0]}" if scope == self else f"win.{action[0]}",
|
||||||
self.set_accels_for_action(f"win.{name}", shortcuts)
|
action[1],
|
||||||
|
)
|
||||||
|
|
||||||
|
scope.add_action(simple_action)
|
||||||
|
|
||||||
|
|
||||||
def main(version): # pylint: disable=unused-argument
|
def main(_version: int) -> Any:
|
||||||
|
"""App entry point"""
|
||||||
app = CartridgesApplication()
|
app = CartridgesApplication()
|
||||||
return app.run(sys.argv)
|
return app.run(sys.argv)
|
||||||
|
|||||||
@@ -1,12 +1,4 @@
|
|||||||
moduledir = join_paths(pkgdatadir, 'cartridges')
|
moduledir = join_paths(pkgdatadir, 'src')
|
||||||
|
|
||||||
python = import('python')
|
|
||||||
|
|
||||||
conf = configuration_data()
|
|
||||||
conf.set('PYTHON', python.find_installation('python3').path())
|
|
||||||
conf.set('VERSION', meson.project_version())
|
|
||||||
conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir')))
|
|
||||||
conf.set('pkgdatadir', pkgdatadir)
|
|
||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
input: 'cartridges.in',
|
input: 'cartridges.in',
|
||||||
@@ -16,20 +8,24 @@ configure_file(
|
|||||||
install_dir: get_option('bindir')
|
install_dir: get_option('bindir')
|
||||||
)
|
)
|
||||||
|
|
||||||
cartridges_sources = [
|
install_subdir('importer', install_dir: moduledir)
|
||||||
'__init__.py',
|
install_subdir('utils', install_dir: moduledir)
|
||||||
|
install_subdir('store', install_dir: moduledir)
|
||||||
|
install_subdir('logging', install_dir: moduledir)
|
||||||
|
install_subdir('errors', install_dir: moduledir)
|
||||||
|
install_data(
|
||||||
|
[
|
||||||
'main.py',
|
'main.py',
|
||||||
'window.py',
|
'window.py',
|
||||||
'preferences.py',
|
'preferences.py',
|
||||||
|
'details_window.py',
|
||||||
'game.py',
|
'game.py',
|
||||||
'utils/steam_parser.py',
|
'game_cover.py',
|
||||||
'utils/heroic_parser.py',
|
configure_file(
|
||||||
'utils/bottles_parser.py',
|
input: 'shared.py.in',
|
||||||
'utils/get_games.py',
|
output: 'shared.py',
|
||||||
'utils/save_games.py',
|
configuration: conf
|
||||||
'utils/save_cover.py',
|
)
|
||||||
'utils/create_dialog.py',
|
],
|
||||||
'utils/create_details_window.py'
|
install_dir: moduledir
|
||||||
]
|
)
|
||||||
|
|
||||||
install_data(cartridges_sources, install_dir: moduledir)
|
|
||||||
@@ -17,124 +17,374 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
import os
|
import logging
|
||||||
|
import re
|
||||||
|
from pathlib import Path
|
||||||
|
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.game import Game
|
||||||
|
from src.importer.sources.bottles_source import BottlesSource
|
||||||
|
from src.importer.sources.flatpak_source import FlatpakSource
|
||||||
|
from src.importer.sources.heroic_source import HeroicSource
|
||||||
|
from src.importer.sources.itch_source import ItchSource
|
||||||
|
from src.importer.sources.legendary_source import LegendarySource
|
||||||
|
from src.importer.sources.location import UnresolvableLocationError
|
||||||
|
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.steam_source import SteamSource
|
||||||
|
from src.utils.create_dialog import create_dialog
|
||||||
|
|
||||||
@Gtk.Template(resource_path="/hu/kramo/Cartridges/gtk/preferences.ui")
|
|
||||||
|
@Gtk.Template(resource_path=shared.PREFIX + "/gtk/preferences.ui")
|
||||||
class PreferencesWindow(Adw.PreferencesWindow):
|
class PreferencesWindow(Adw.PreferencesWindow):
|
||||||
__gtype_name__ = "PreferencesWindow"
|
__gtype_name__ = "PreferencesWindow"
|
||||||
|
|
||||||
page = Gtk.Template.Child()
|
general_page = Gtk.Template.Child()
|
||||||
bottles_group = Gtk.Template.Child()
|
import_page = Gtk.Template.Child()
|
||||||
|
sgdb_page = Gtk.Template.Child()
|
||||||
|
|
||||||
|
sources_group = Gtk.Template.Child()
|
||||||
|
|
||||||
exit_after_launch_switch = Gtk.Template.Child()
|
exit_after_launch_switch = Gtk.Template.Child()
|
||||||
import_epic_games_switch = Gtk.Template.Child()
|
cover_launches_game_switch = Gtk.Template.Child()
|
||||||
import_gog_games_switch = Gtk.Template.Child()
|
high_quality_images_switch = Gtk.Template.Child()
|
||||||
import_sideload_games_switch = Gtk.Template.Child()
|
|
||||||
|
|
||||||
steam_file_chooser_button = Gtk.Template.Child()
|
remove_missing_switch = Gtk.Template.Child()
|
||||||
steam_extra_file_chooser_button = Gtk.Template.Child()
|
|
||||||
steam_clear_button = Gtk.Template.Child()
|
|
||||||
steam_clear_button_revealer = Gtk.Template.Child()
|
|
||||||
heroic_file_chooser_button = Gtk.Template.Child()
|
|
||||||
bottles_file_chooser_button = Gtk.Template.Child()
|
|
||||||
|
|
||||||
def __init__(self, parent_widget, **kwargs):
|
steam_expander_row = Gtk.Template.Child()
|
||||||
|
steam_data_action_row = Gtk.Template.Child()
|
||||||
|
steam_data_file_chooser_button = Gtk.Template.Child()
|
||||||
|
|
||||||
|
lutris_expander_row = Gtk.Template.Child()
|
||||||
|
lutris_data_action_row = Gtk.Template.Child()
|
||||||
|
lutris_data_file_chooser_button = Gtk.Template.Child()
|
||||||
|
lutris_cache_action_row = Gtk.Template.Child()
|
||||||
|
lutris_cache_file_chooser_button = Gtk.Template.Child()
|
||||||
|
lutris_import_steam_switch = Gtk.Template.Child()
|
||||||
|
lutris_import_flatpak_switch = Gtk.Template.Child()
|
||||||
|
|
||||||
|
heroic_expander_row = Gtk.Template.Child()
|
||||||
|
heroic_config_action_row = Gtk.Template.Child()
|
||||||
|
heroic_config_file_chooser_button = Gtk.Template.Child()
|
||||||
|
heroic_import_epic_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()
|
||||||
|
|
||||||
|
bottles_expander_row = Gtk.Template.Child()
|
||||||
|
bottles_data_action_row = Gtk.Template.Child()
|
||||||
|
bottles_data_file_chooser_button = Gtk.Template.Child()
|
||||||
|
|
||||||
|
itch_expander_row = Gtk.Template.Child()
|
||||||
|
itch_config_action_row = Gtk.Template.Child()
|
||||||
|
itch_config_file_chooser_button = Gtk.Template.Child()
|
||||||
|
|
||||||
|
legendary_expander_row = Gtk.Template.Child()
|
||||||
|
legendary_config_action_row = 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_data_action_row = Gtk.Template.Child()
|
||||||
|
flatpak_data_file_chooser_button = Gtk.Template.Child()
|
||||||
|
flatpak_import_launchers_switch = Gtk.Template.Child()
|
||||||
|
|
||||||
|
sgdb_key_group = Gtk.Template.Child()
|
||||||
|
sgdb_key_entry_row = Gtk.Template.Child()
|
||||||
|
sgdb_switch = Gtk.Template.Child()
|
||||||
|
sgdb_switch_row = Gtk.Template.Child()
|
||||||
|
sgdb_prefer_switch = Gtk.Template.Child()
|
||||||
|
sgdb_animated_switch = Gtk.Template.Child()
|
||||||
|
|
||||||
|
danger_zone_group = Gtk.Template.Child()
|
||||||
|
reset_action_row = Gtk.Template.Child()
|
||||||
|
reset_button = Gtk.Template.Child()
|
||||||
|
remove_all_games_button = Gtk.Template.Child()
|
||||||
|
|
||||||
|
removed_games: set[Game] = set()
|
||||||
|
warning_menu_buttons: dict = {}
|
||||||
|
|
||||||
|
def __init__(self, **kwargs: Any) -> None:
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
|
self.win = shared.win
|
||||||
|
self.file_chooser = Gtk.FileDialog()
|
||||||
|
self.set_transient_for(self.win)
|
||||||
|
|
||||||
self.set_transient_for(parent_widget)
|
self.toast = Adw.Toast.new(_("All games removed"))
|
||||||
schema = parent_widget.schema
|
self.toast.set_button_label(_("Undo"))
|
||||||
schema.bind(
|
self.toast.connect("button-clicked", self.undo_remove_all, None)
|
||||||
"exit-after-launch",
|
self.toast.set_priority(Adw.ToastPriority.HIGH)
|
||||||
self.exit_after_launch_switch,
|
|
||||||
"active",
|
|
||||||
Gio.SettingsBindFlags.DEFAULT,
|
|
||||||
)
|
|
||||||
schema.bind(
|
|
||||||
"heroic-import-epic",
|
|
||||||
self.import_epic_games_switch,
|
|
||||||
"active",
|
|
||||||
Gio.SettingsBindFlags.DEFAULT,
|
|
||||||
)
|
|
||||||
schema.bind(
|
|
||||||
"heroic-import-gog",
|
|
||||||
self.import_gog_games_switch,
|
|
||||||
"active",
|
|
||||||
Gio.SettingsBindFlags.DEFAULT,
|
|
||||||
)
|
|
||||||
schema.bind(
|
|
||||||
"heroic-import-sideload",
|
|
||||||
self.import_sideload_games_switch,
|
|
||||||
"active",
|
|
||||||
Gio.SettingsBindFlags.DEFAULT,
|
|
||||||
)
|
|
||||||
|
|
||||||
filechooser = Gtk.FileDialog()
|
(shortcut_controller := Gtk.ShortcutController()).add_shortcut(
|
||||||
|
Gtk.Shortcut.new(
|
||||||
|
Gtk.ShortcutTrigger.parse_string("<primary>z"),
|
||||||
|
Gtk.CallbackAction.new(self.undo_remove_all),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
self.add_controller(shortcut_controller)
|
||||||
|
|
||||||
def update_revealer():
|
# General
|
||||||
if schema.get_strv("steam-extra-dirs"):
|
self.remove_all_games_button.connect("clicked", self.remove_all_games)
|
||||||
self.steam_clear_button_revealer.set_reveal_child(True)
|
|
||||||
|
# Debug
|
||||||
|
if shared.PROFILE == "development":
|
||||||
|
self.reset_action_row.set_visible(True)
|
||||||
|
self.reset_button.connect("clicked", self.reset_app)
|
||||||
|
self.set_default_size(-1, 560)
|
||||||
|
|
||||||
|
# Sources settings
|
||||||
|
for source_class in (
|
||||||
|
BottlesSource,
|
||||||
|
FlatpakSource,
|
||||||
|
HeroicSource,
|
||||||
|
ItchSource,
|
||||||
|
LegendarySource,
|
||||||
|
LutrisSource,
|
||||||
|
RetroarchSource,
|
||||||
|
SteamSource,
|
||||||
|
):
|
||||||
|
source = source_class()
|
||||||
|
if not source.is_available:
|
||||||
|
expander_row = getattr(self, f"{source.source_id}_expander_row")
|
||||||
|
expander_row.set_visible(False)
|
||||||
else:
|
else:
|
||||||
self.steam_clear_button_revealer.set_reveal_child(False)
|
self.init_source_row(source)
|
||||||
|
|
||||||
|
# SteamGridDB
|
||||||
|
def sgdb_key_changed(*_args: Any) -> None:
|
||||||
|
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.connect("changed", sgdb_key_changed)
|
||||||
|
|
||||||
|
self.sgdb_key_group.set_description(
|
||||||
|
_(
|
||||||
|
"An API key is required to use SteamGridDB. You can generate one {}here{}."
|
||||||
|
).format(
|
||||||
|
'<a href="https://www.steamgriddb.com/profile/preferences/api">', "</a>"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
def set_sgdb_sensitive(widget: Adw.EntryRow) -> None:
|
||||||
|
if not widget.get_text():
|
||||||
|
shared.schema.set_boolean("sgdb", False)
|
||||||
|
|
||||||
|
self.sgdb_switch_row.set_sensitive(widget.get_text())
|
||||||
|
|
||||||
|
self.sgdb_key_entry_row.connect("changed", set_sgdb_sensitive)
|
||||||
|
set_sgdb_sensitive(self.sgdb_key_entry_row)
|
||||||
|
|
||||||
|
# Switches
|
||||||
|
self.bind_switches(
|
||||||
|
{
|
||||||
|
"exit-after-launch",
|
||||||
|
"cover-launches-game",
|
||||||
|
"high-quality-images",
|
||||||
|
"remove-missing",
|
||||||
|
"lutris-import-steam",
|
||||||
|
"lutris-import-flatpak",
|
||||||
|
"heroic-import-epic",
|
||||||
|
"heroic-import-gog",
|
||||||
|
"heroic-import-amazon",
|
||||||
|
"heroic-import-sideload",
|
||||||
|
"flatpak-import-launchers",
|
||||||
|
"sgdb",
|
||||||
|
"sgdb-prefer",
|
||||||
|
"sgdb-animated",
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
def get_switch(self, setting: str) -> Any:
|
||||||
|
return getattr(self, f'{setting.replace("-", "_")}_switch')
|
||||||
|
|
||||||
|
def bind_switches(self, settings: set[str]) -> None:
|
||||||
|
for setting in settings:
|
||||||
|
shared.schema.bind(
|
||||||
|
setting,
|
||||||
|
self.get_switch(setting),
|
||||||
|
"active",
|
||||||
|
Gio.SettingsBindFlags.DEFAULT,
|
||||||
|
)
|
||||||
|
|
||||||
|
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)
|
||||||
|
|
||||||
|
def undo_remove_all(self, *_args: Any) -> None:
|
||||||
|
for game in self.removed_games:
|
||||||
|
game.removed = False
|
||||||
|
game.save()
|
||||||
|
game.update()
|
||||||
|
|
||||||
|
self.removed_games = set()
|
||||||
|
self.toast.dismiss()
|
||||||
|
|
||||||
|
def remove_all_games(self, *_args: Any) -> None:
|
||||||
|
for game in shared.store:
|
||||||
|
if not game.removed:
|
||||||
|
self.removed_games.add(game)
|
||||||
|
game.removed = True
|
||||||
|
game.save()
|
||||||
|
game.update()
|
||||||
|
|
||||||
|
if self.win.stack.get_visible_child() == self.win.details_view:
|
||||||
|
self.win.on_go_back_action()
|
||||||
|
|
||||||
|
self.add_toast(self.toast)
|
||||||
|
|
||||||
|
def reset_app(self, *_args: Any) -> None:
|
||||||
|
rmtree(shared.data_dir / "cartridges", True)
|
||||||
|
rmtree(shared.config_dir / "cartridges", True)
|
||||||
|
rmtree(shared.cache_dir / "cartridges", True)
|
||||||
|
|
||||||
|
for key in (
|
||||||
|
(settings_schema_source := Gio.SettingsSchemaSource.get_default())
|
||||||
|
.lookup(shared.APP_ID, True)
|
||||||
|
.list_keys()
|
||||||
|
):
|
||||||
|
shared.schema.reset(key)
|
||||||
|
for key in settings_schema_source.lookup(
|
||||||
|
shared.APP_ID + ".State", True
|
||||||
|
).list_keys():
|
||||||
|
shared.state_schema.reset(key)
|
||||||
|
|
||||||
|
shared.win.get_application().quit()
|
||||||
|
|
||||||
|
def update_source_action_row_paths(self, source: Source) -> None:
|
||||||
|
"""Set the dir subtitle for a source's action rows"""
|
||||||
|
for location_name, location in source.locations._asdict().items():
|
||||||
|
# Get the action row to subtitle
|
||||||
|
action_row = getattr(
|
||||||
|
self, f"{source.source_id}_{location_name}_action_row", None
|
||||||
|
)
|
||||||
|
if not action_row:
|
||||||
|
continue
|
||||||
|
path = Path(shared.schema.get_string(location.schema_key)).expanduser()
|
||||||
|
# Remove the path prefix if picked via Flatpak portal
|
||||||
|
subtitle = re.sub("/run/user/\\d*/doc/.*/", "", str(path))
|
||||||
|
action_row.set_subtitle(subtitle)
|
||||||
|
|
||||||
|
def resolve_locations(self, source: Source) -> None:
|
||||||
|
"""Resolve locations and add a warning if location cannot be found"""
|
||||||
|
|
||||||
|
def clear_warning_selection(_widget: Any, label: Gtk.Label) -> None:
|
||||||
|
label.select_region(-1, -1)
|
||||||
|
|
||||||
|
for location_name, location in source.locations._asdict().items():
|
||||||
|
action_row = getattr(
|
||||||
|
self, f"{source.source_id}_{location_name}_action_row", None
|
||||||
|
)
|
||||||
|
if not action_row:
|
||||||
|
continue
|
||||||
|
|
||||||
def set_steam_dir(_source, result, _unused):
|
|
||||||
try:
|
try:
|
||||||
schema.set_string(
|
location.resolve()
|
||||||
"steam-location",
|
|
||||||
filechooser.select_folder_finish(result).get_path(),
|
|
||||||
)
|
|
||||||
except GLib.GError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def add_steam_dir(_source, result, _unused):
|
except UnresolvableLocationError:
|
||||||
|
popover = Gtk.Popover(
|
||||||
|
child=(
|
||||||
|
label := Gtk.Label(
|
||||||
|
label=(
|
||||||
|
'<span rise="12pt"><b><big>'
|
||||||
|
+ _("Installation Not Found")
|
||||||
|
+ "</big></b></span>\n"
|
||||||
|
+ _("Select a valid directory.")
|
||||||
|
),
|
||||||
|
use_markup=True,
|
||||||
|
wrap=True,
|
||||||
|
max_width_chars=50,
|
||||||
|
halign=Gtk.Align.CENTER,
|
||||||
|
valign=Gtk.Align.CENTER,
|
||||||
|
justify=Gtk.Justification.CENTER,
|
||||||
|
margin_top=9,
|
||||||
|
margin_bottom=9,
|
||||||
|
margin_start=12,
|
||||||
|
margin_end=12,
|
||||||
|
selectable=True,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
popover.connect("show", clear_warning_selection, label)
|
||||||
|
|
||||||
|
menu_button = Gtk.MenuButton(
|
||||||
|
icon_name="dialog-warning-symbolic",
|
||||||
|
valign=Gtk.Align.CENTER,
|
||||||
|
popover=popover,
|
||||||
|
)
|
||||||
|
menu_button.add_css_class("warning")
|
||||||
|
|
||||||
|
action_row.add_prefix(menu_button)
|
||||||
|
self.warning_menu_buttons[source.source_id] = menu_button
|
||||||
|
|
||||||
|
def init_source_row(self, source: Source) -> None:
|
||||||
|
"""Initialize a preference row for a source class"""
|
||||||
|
|
||||||
|
def set_dir(_widget: Any, result: Gio.Task, location_name: str) -> None:
|
||||||
|
"""Callback called when a dir picker button is clicked"""
|
||||||
try:
|
try:
|
||||||
value = schema.get_strv("steam-extra-dirs")
|
path = Path(self.file_chooser.select_folder_finish(result).get_path())
|
||||||
value.append(filechooser.select_folder_finish(result).get_path())
|
|
||||||
schema.set_strv("steam-extra-dirs", value)
|
|
||||||
except GLib.GError:
|
except GLib.GError:
|
||||||
pass
|
return
|
||||||
update_revealer()
|
|
||||||
|
|
||||||
def clear_steam_dirs(*_unused):
|
# Good picked location
|
||||||
schema.set_strv("steam-extra-dirs", [])
|
location = source.locations._asdict()[location_name]
|
||||||
update_revealer()
|
if location.check_candidate(path):
|
||||||
|
shared.schema.set_string(location.schema_key, str(path))
|
||||||
def set_heroic_dir(_source, result, _unused):
|
self.update_source_action_row_paths(source)
|
||||||
try:
|
if self.warning_menu_buttons.get(source.source_id):
|
||||||
schema.set_string(
|
action_row = getattr(
|
||||||
"heroic-location",
|
self, f"{source.source_id}_{location_name}_action_row", None
|
||||||
filechooser.select_folder_finish(result).get_path(),
|
|
||||||
)
|
)
|
||||||
except GLib.GError:
|
action_row.remove( # type: ignore
|
||||||
pass
|
self.warning_menu_buttons[source.source_id]
|
||||||
|
|
||||||
def set_bottles_dir(_source, result, _unused):
|
|
||||||
try:
|
|
||||||
schema.set_string(
|
|
||||||
"bottles-location",
|
|
||||||
filechooser.select_folder_finish(result).get_path(),
|
|
||||||
)
|
)
|
||||||
except GLib.GError:
|
self.warning_menu_buttons.pop(source.source_id)
|
||||||
pass
|
logging.debug("User-set value for %s is %s", location.schema_key, path)
|
||||||
|
|
||||||
def choose_folder(_widget, function):
|
# Bad picked location, inform user
|
||||||
filechooser.select_folder(parent_widget, None, function, None)
|
else:
|
||||||
|
title = _("Invalid Directory")
|
||||||
update_revealer()
|
dialog = create_dialog(
|
||||||
|
self,
|
||||||
self.steam_file_chooser_button.connect("clicked", choose_folder, set_steam_dir)
|
title,
|
||||||
self.steam_extra_file_chooser_button.connect(
|
location.invalid_subtitle.format(source.name),
|
||||||
"clicked", choose_folder, add_steam_dir
|
"choose_folder",
|
||||||
)
|
_("Set Location"),
|
||||||
self.steam_clear_button.connect("clicked", clear_steam_dirs)
|
|
||||||
self.heroic_file_chooser_button.connect(
|
|
||||||
"clicked", choose_folder, set_heroic_dir
|
|
||||||
)
|
|
||||||
self.bottles_file_chooser_button.connect(
|
|
||||||
"clicked", choose_folder, set_bottles_dir
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if os.name == "nt":
|
def on_response(widget: Any, response: str) -> None:
|
||||||
self.page.remove(self.bottles_group)
|
if response == "choose_folder":
|
||||||
|
self.choose_folder(widget, set_dir, location_name)
|
||||||
|
|
||||||
|
dialog.connect("response", on_response)
|
||||||
|
|
||||||
|
# Bind expander row activation to source being enabled
|
||||||
|
expander_row = getattr(self, f"{source.source_id}_expander_row")
|
||||||
|
shared.schema.bind(
|
||||||
|
source.source_id,
|
||||||
|
expander_row,
|
||||||
|
"enable-expansion",
|
||||||
|
Gio.SettingsBindFlags.DEFAULT,
|
||||||
|
)
|
||||||
|
|
||||||
|
# Connect dir picker buttons
|
||||||
|
for location_name in source.locations._asdict():
|
||||||
|
button = getattr(
|
||||||
|
self, f"{source.source_id}_{location_name}_file_chooser_button", None
|
||||||
|
)
|
||||||
|
if button is not None:
|
||||||
|
button.connect("clicked", self.choose_folder, set_dir, location_name)
|
||||||
|
|
||||||
|
# Set the source row subtitles
|
||||||
|
self.resolve_locations(source)
|
||||||
|
self.update_source_action_row_paths(source)
|
||||||
|
|||||||
56
src/shared.py.in
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
# shared.py.in
|
||||||
|
#
|
||||||
|
# Copyright 2022-2023 kramo
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
import os
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
from gi.repository import Gdk, Gio, GLib
|
||||||
|
|
||||||
|
APP_ID = "@APP_ID@"
|
||||||
|
VERSION = "@VERSION@"
|
||||||
|
PREFIX = "@PREFIX@"
|
||||||
|
PROFILE = "@PROFILE@"
|
||||||
|
SPEC_VERSION = 1.5 # The version of the game_id.json spec
|
||||||
|
|
||||||
|
schema = Gio.Settings.new(APP_ID)
|
||||||
|
state_schema = Gio.Settings.new(APP_ID + ".State")
|
||||||
|
|
||||||
|
home = Path.home()
|
||||||
|
data_dir = Path(GLib.get_user_data_dir())
|
||||||
|
config_dir = Path(GLib.get_user_config_dir())
|
||||||
|
cache_dir = Path(GLib.get_user_cache_dir())
|
||||||
|
flatpak_dir = home / ".var" / "app"
|
||||||
|
|
||||||
|
games_dir = data_dir / "cartridges" / "games"
|
||||||
|
covers_dir = data_dir / "cartridges" / "covers"
|
||||||
|
|
||||||
|
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)")
|
||||||
|
|
||||||
|
scale_factor = max(
|
||||||
|
monitor.get_scale_factor() for monitor in Gdk.Display.get_default().get_monitors()
|
||||||
|
)
|
||||||
|
image_size = (200 * scale_factor, 300 * scale_factor)
|
||||||
|
|
||||||
|
# pylint: disable=invalid-name
|
||||||
|
win = None
|
||||||
|
importer = None
|
||||||
|
store = None
|
||||||
|
log_files = None
|
||||||
64
src/store/managers/async_manager.py
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
# async_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
|
||||||
|
|
||||||
|
from typing import Callable, Any
|
||||||
|
|
||||||
|
from gi.repository import Gio
|
||||||
|
|
||||||
|
from src.game import Game
|
||||||
|
from src.store.managers.manager import Manager
|
||||||
|
from src.utils.task import Task
|
||||||
|
|
||||||
|
|
||||||
|
class AsyncManager(Manager):
|
||||||
|
"""Manager that can run asynchronously"""
|
||||||
|
|
||||||
|
blocking = False
|
||||||
|
cancellable: Gio.Cancellable = None
|
||||||
|
|
||||||
|
def __init__(self) -> None:
|
||||||
|
super().__init__()
|
||||||
|
self.cancellable = Gio.Cancellable()
|
||||||
|
|
||||||
|
def cancel_tasks(self):
|
||||||
|
"""Cancel all tasks for this manager"""
|
||||||
|
self.cancellable.cancel()
|
||||||
|
|
||||||
|
def reset_cancellable(self):
|
||||||
|
"""Reset the cancellable for this manager.
|
||||||
|
Already scheduled Tasks will no longer be cancellable."""
|
||||||
|
self.cancellable = Gio.Cancellable()
|
||||||
|
|
||||||
|
def process_game(
|
||||||
|
self, game: Game, additional_data: dict, callback: Callable[["Manager"], Any]
|
||||||
|
) -> None:
|
||||||
|
"""Create a task to process the game in a separate thread"""
|
||||||
|
task = Task.new(None, self.cancellable, self._task_callback, (callback,))
|
||||||
|
task.set_task_data((game, additional_data))
|
||||||
|
task.run_in_thread(self._task_thread_func)
|
||||||
|
|
||||||
|
def _task_thread_func(self, _task, _source_object, data, _cancellable):
|
||||||
|
"""Task thread entry point"""
|
||||||
|
game, additional_data, *_rest = data
|
||||||
|
self.run(game, additional_data)
|
||||||
|
|
||||||
|
def _task_callback(self, _source_object, _result, data):
|
||||||
|
"""Method run after the task is done"""
|
||||||
|
callback, *_rest = data
|
||||||
|
callback(self)
|
||||||
197
src/store/managers/cover_manager.py
Normal 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)
|
||||||
72
src/store/managers/display_manager.py
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
# display_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
|
||||||
|
|
||||||
|
from src.game import Game
|
||||||
|
from src.game_cover import GameCover
|
||||||
|
from src.store.managers.manager import Manager
|
||||||
|
from src.store.managers.sgdb_manager import SGDBManager
|
||||||
|
from src.store.managers.steam_api_manager import SteamAPIManager
|
||||||
|
|
||||||
|
|
||||||
|
class DisplayManager(Manager):
|
||||||
|
"""Manager in charge of adding a game to the UI"""
|
||||||
|
|
||||||
|
run_after = (SteamAPIManager, SGDBManager)
|
||||||
|
signals = {"update-ready"}
|
||||||
|
|
||||||
|
def main(self, game: Game, _additional_data: dict) -> None:
|
||||||
|
if game.get_parent():
|
||||||
|
game.get_parent().get_parent().remove(game)
|
||||||
|
if game.get_parent():
|
||||||
|
game.get_parent().set_child()
|
||||||
|
|
||||||
|
game.menu_button.set_menu_model(
|
||||||
|
game.hidden_game_options if game.hidden else game.game_options
|
||||||
|
)
|
||||||
|
|
||||||
|
game.title.set_label(game.name)
|
||||||
|
|
||||||
|
game.menu_button.get_popover().connect(
|
||||||
|
"notify::visible", game.toggle_play, None
|
||||||
|
)
|
||||||
|
game.menu_button.get_popover().connect(
|
||||||
|
"notify::visible", game.win.set_active_game, game
|
||||||
|
)
|
||||||
|
|
||||||
|
if game.game_id in game.win.game_covers:
|
||||||
|
game.game_cover = game.win.game_covers[game.game_id]
|
||||||
|
game.game_cover.add_picture(game.cover)
|
||||||
|
else:
|
||||||
|
game.game_cover = GameCover({game.cover}, game.get_cover_path())
|
||||||
|
game.win.game_covers[game.game_id] = game.game_cover
|
||||||
|
|
||||||
|
if (
|
||||||
|
game.win.stack.get_visible_child() == game.win.details_view
|
||||||
|
and game.win.active_game == game
|
||||||
|
):
|
||||||
|
game.win.show_details_view(game)
|
||||||
|
|
||||||
|
if not game.removed and not game.blacklisted:
|
||||||
|
if game.hidden:
|
||||||
|
game.win.hidden_library.append(game)
|
||||||
|
else:
|
||||||
|
game.win.library.append(game)
|
||||||
|
game.get_parent().set_focusable(False)
|
||||||
|
|
||||||
|
game.win.set_library_child()
|
||||||
59
src/store/managers/file_manager.py
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
# file_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 json
|
||||||
|
|
||||||
|
from src import shared
|
||||||
|
from src.game import Game
|
||||||
|
from src.store.managers.async_manager import AsyncManager
|
||||||
|
from src.store.managers.steam_api_manager import SteamAPIManager
|
||||||
|
|
||||||
|
|
||||||
|
class FileManager(AsyncManager):
|
||||||
|
"""Manager in charge of saving a game to a file"""
|
||||||
|
|
||||||
|
run_after = (SteamAPIManager,)
|
||||||
|
signals = {"save-ready"}
|
||||||
|
|
||||||
|
def main(self, game: Game, additional_data: dict) -> None:
|
||||||
|
if additional_data.get("skip_save"): # Skip saving when loading games from disk
|
||||||
|
return
|
||||||
|
|
||||||
|
shared.games_dir.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
attrs = (
|
||||||
|
"added",
|
||||||
|
"executable",
|
||||||
|
"game_id",
|
||||||
|
"source",
|
||||||
|
"hidden",
|
||||||
|
"last_played",
|
||||||
|
"name",
|
||||||
|
"developer",
|
||||||
|
"removed",
|
||||||
|
"blacklisted",
|
||||||
|
"version",
|
||||||
|
)
|
||||||
|
|
||||||
|
json.dump(
|
||||||
|
{attr: getattr(game, attr) for attr in attrs if attr},
|
||||||
|
(shared.games_dir / f"{game.game_id}.json").open("w"),
|
||||||
|
indent=4,
|
||||||
|
sort_keys=True,
|
||||||
|
)
|
||||||
120
src/store/managers/manager.py
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
# 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 abc import abstractmethod
|
||||||
|
from time import sleep
|
||||||
|
from typing import Any, Callable, Container
|
||||||
|
|
||||||
|
from src.errors.error_producer import ErrorProducer
|
||||||
|
from src.errors.friendly_error import FriendlyError
|
||||||
|
from src.game import Game
|
||||||
|
|
||||||
|
|
||||||
|
class Manager(ErrorProducer):
|
||||||
|
"""Class in charge of handling a post creation action for games.
|
||||||
|
|
||||||
|
* May connect to signals on the game to handle them.
|
||||||
|
* May cancel its running tasks on critical error,
|
||||||
|
in that case a new cancellable must be generated for new tasks to run.
|
||||||
|
* May be retried on some specific error types
|
||||||
|
"""
|
||||||
|
|
||||||
|
run_after: Container[type["Manager"]] = tuple()
|
||||||
|
blocking: bool = True
|
||||||
|
|
||||||
|
retryable_on: Container[type[Exception]] = tuple()
|
||||||
|
continue_on: Container[type[Exception]] = tuple()
|
||||||
|
signals: Container[type[str]] = set()
|
||||||
|
retry_delay: int = 3
|
||||||
|
max_tries: int = 3
|
||||||
|
|
||||||
|
@property
|
||||||
|
def name(self) -> str:
|
||||||
|
return type(self).__name__
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def main(self, game: Game, additional_data: dict) -> None:
|
||||||
|
"""
|
||||||
|
Manager specific logic triggered by the run method
|
||||||
|
* Implemented by final child classes
|
||||||
|
* May block its thread
|
||||||
|
* May raise retryable exceptions that will trigger a retry if possible
|
||||||
|
* May raise other exceptions that will be reported
|
||||||
|
"""
|
||||||
|
|
||||||
|
def run(self, game: Game, additional_data: dict) -> None:
|
||||||
|
"""Handle errors (retry, ignore or raise) that occur in the manager logic"""
|
||||||
|
|
||||||
|
# Keep track of the number of tries
|
||||||
|
tries = 1
|
||||||
|
|
||||||
|
def handle_error(error: Exception) -> None:
|
||||||
|
nonlocal tries
|
||||||
|
|
||||||
|
# If FriendlyError, handle its cause instead
|
||||||
|
base_error = error
|
||||||
|
if isinstance(error, FriendlyError):
|
||||||
|
error = error.__cause__
|
||||||
|
|
||||||
|
log_args = (
|
||||||
|
type(error).__name__,
|
||||||
|
self.name,
|
||||||
|
f"{game.name} ({game.game_id})",
|
||||||
|
)
|
||||||
|
|
||||||
|
out_of_retries_format = "Out of retries dues to %s in %s for %s"
|
||||||
|
retrying_format = "Retrying %s in %s for %s"
|
||||||
|
unretryable_format = "Unretryable %s in %s for %s"
|
||||||
|
|
||||||
|
if type(error) in self.continue_on:
|
||||||
|
# Handle skippable errors (skip silently)
|
||||||
|
return
|
||||||
|
|
||||||
|
if type(error) in self.retryable_on:
|
||||||
|
if tries > self.max_tries:
|
||||||
|
# Handle being out of retries
|
||||||
|
logging.error(out_of_retries_format, *log_args)
|
||||||
|
self.report_error(base_error)
|
||||||
|
else:
|
||||||
|
# Handle retryable errors
|
||||||
|
logging.error(retrying_format, *log_args)
|
||||||
|
sleep(self.retry_delay)
|
||||||
|
tries += 1
|
||||||
|
try_manager_logic()
|
||||||
|
|
||||||
|
else:
|
||||||
|
# Handle unretryable errors
|
||||||
|
logging.error(unretryable_format, *log_args, exc_info=error)
|
||||||
|
self.report_error(base_error)
|
||||||
|
|
||||||
|
def try_manager_logic() -> None:
|
||||||
|
try:
|
||||||
|
self.main(game, additional_data)
|
||||||
|
except Exception as error: # pylint: disable=broad-exception-caught
|
||||||
|
handle_error(error)
|
||||||
|
|
||||||
|
try_manager_logic()
|
||||||
|
|
||||||
|
def process_game(
|
||||||
|
self, game: Game, additional_data: dict, callback: Callable[["Manager"], Any]
|
||||||
|
) -> None:
|
||||||
|
"""Pass the game through the manager"""
|
||||||
|
self.run(game, additional_data)
|
||||||
|
callback(self)
|
||||||
48
src/store/managers/sgdb_manager.py
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
# sgdb_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
|
||||||
|
|
||||||
|
from json import JSONDecodeError
|
||||||
|
|
||||||
|
from requests.exceptions import HTTPError, SSLError
|
||||||
|
|
||||||
|
from src.errors.friendly_error import FriendlyError
|
||||||
|
from src.game import Game
|
||||||
|
from src.store.managers.async_manager import AsyncManager
|
||||||
|
from src.store.managers.cover_manager import CoverManager
|
||||||
|
from src.store.managers.steam_api_manager import SteamAPIManager
|
||||||
|
from src.utils.steamgriddb import SGDBAuthError, SGDBHelper
|
||||||
|
|
||||||
|
|
||||||
|
class SGDBManager(AsyncManager):
|
||||||
|
"""Manager in charge of downloading a game's cover from SteamGridDB"""
|
||||||
|
|
||||||
|
run_after = (SteamAPIManager, CoverManager)
|
||||||
|
retryable_on = (HTTPError, SSLError, ConnectionError, JSONDecodeError)
|
||||||
|
|
||||||
|
def main(self, game: Game, _additional_data: dict) -> None:
|
||||||
|
try:
|
||||||
|
sgdb = SGDBHelper()
|
||||||
|
sgdb.conditionaly_update_cover(game)
|
||||||
|
except SGDBAuthError as error:
|
||||||
|
# If invalid auth, cancel all SGDBManager tasks
|
||||||
|
self.cancellable.cancel()
|
||||||
|
raise FriendlyError(
|
||||||
|
_("Couldn't Authenticate SteamGridDB"),
|
||||||
|
_("Verify your API key in preferences"),
|
||||||
|
) from error
|
||||||
57
src/store/managers/steam_api_manager.py
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
# steam_api_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
|
||||||
|
|
||||||
|
from requests.exceptions import HTTPError, SSLError
|
||||||
|
from urllib3.exceptions import ConnectionError as Urllib3ConnectionError
|
||||||
|
|
||||||
|
from src.game import Game
|
||||||
|
from src.store.managers.async_manager import AsyncManager
|
||||||
|
from src.utils.steam import (
|
||||||
|
SteamAPIHelper,
|
||||||
|
SteamGameNotFoundError,
|
||||||
|
SteamNotAGameError,
|
||||||
|
SteamRateLimiter,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
class SteamAPIManager(AsyncManager):
|
||||||
|
"""Manager in charge of completing a game's data from the Steam API"""
|
||||||
|
|
||||||
|
retryable_on = (HTTPError, SSLError, Urllib3ConnectionError)
|
||||||
|
|
||||||
|
steam_api_helper: SteamAPIHelper = None
|
||||||
|
steam_rate_limiter: SteamRateLimiter = None
|
||||||
|
|
||||||
|
def __init__(self) -> None:
|
||||||
|
super().__init__()
|
||||||
|
self.steam_rate_limiter = SteamRateLimiter()
|
||||||
|
self.steam_api_helper = SteamAPIHelper(self.steam_rate_limiter)
|
||||||
|
|
||||||
|
def main(self, game: Game, additional_data: dict) -> None:
|
||||||
|
# Skip non-Steam games
|
||||||
|
appid = additional_data.get("steam_appid", None)
|
||||||
|
if appid is None:
|
||||||
|
return
|
||||||
|
# Get online metadata
|
||||||
|
try:
|
||||||
|
online_data = self.steam_api_helper.get_api_data(appid=appid)
|
||||||
|
except (SteamNotAGameError, SteamGameNotFoundError):
|
||||||
|
game.update_values({"blacklisted": True})
|
||||||
|
else:
|
||||||
|
game.update_values(online_data)
|
||||||
110
src/store/pipeline.py
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
# pipeline.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 typing import Iterable
|
||||||
|
|
||||||
|
from gi.repository import GObject
|
||||||
|
|
||||||
|
from src.game import Game
|
||||||
|
from src.store.managers.manager import Manager
|
||||||
|
|
||||||
|
|
||||||
|
class Pipeline(GObject.Object):
|
||||||
|
"""Class representing a set of managers for a game"""
|
||||||
|
|
||||||
|
game: Game
|
||||||
|
additional_data: dict
|
||||||
|
|
||||||
|
waiting: set[Manager]
|
||||||
|
running: set[Manager]
|
||||||
|
done: set[Manager]
|
||||||
|
|
||||||
|
def __init__(
|
||||||
|
self, game: Game, additional_data: dict, managers: Iterable[Manager]
|
||||||
|
) -> None:
|
||||||
|
super().__init__()
|
||||||
|
self.game = game
|
||||||
|
self.additional_data = additional_data
|
||||||
|
self.waiting = set(managers)
|
||||||
|
self.running = set()
|
||||||
|
self.done = set()
|
||||||
|
|
||||||
|
@property
|
||||||
|
def not_done(self) -> set[Manager]:
|
||||||
|
"""Get the managers that are not done yet"""
|
||||||
|
return self.waiting | self.running
|
||||||
|
|
||||||
|
@property
|
||||||
|
def is_done(self) -> bool:
|
||||||
|
return len(self.waiting) == 0 and len(self.running) == 0
|
||||||
|
|
||||||
|
@property
|
||||||
|
def blocked(self) -> set[Manager]:
|
||||||
|
"""Get the managers that cannot run because their dependencies aren't done"""
|
||||||
|
blocked = set()
|
||||||
|
for waiting in self.waiting:
|
||||||
|
for not_done in self.not_done:
|
||||||
|
if waiting == not_done:
|
||||||
|
continue
|
||||||
|
if type(not_done) in waiting.run_after:
|
||||||
|
blocked.add(waiting)
|
||||||
|
return blocked
|
||||||
|
|
||||||
|
@property
|
||||||
|
def ready(self) -> set[Manager]:
|
||||||
|
"""Get the managers that can be run"""
|
||||||
|
return self.waiting - self.blocked
|
||||||
|
|
||||||
|
@property
|
||||||
|
def progress(self) -> float:
|
||||||
|
"""Get the pipeline progress. Should only be a rough idea."""
|
||||||
|
n_done = len(self.done)
|
||||||
|
n_total = len(self.waiting) + len(self.running) + n_done
|
||||||
|
try:
|
||||||
|
progress = n_done / n_total
|
||||||
|
except ZeroDivisionError:
|
||||||
|
progress = 1
|
||||||
|
return progress
|
||||||
|
|
||||||
|
def advance(self) -> None:
|
||||||
|
"""Spawn tasks for managers that are able to run for a game"""
|
||||||
|
|
||||||
|
# Separate blocking / async managers
|
||||||
|
managers = self.ready
|
||||||
|
blocking = set(filter(lambda manager: manager.blocking, managers))
|
||||||
|
parallel = managers - blocking
|
||||||
|
|
||||||
|
# Schedule parallel managers, then run the blocking ones
|
||||||
|
for manager in (*parallel, *blocking):
|
||||||
|
self.waiting.remove(manager)
|
||||||
|
self.running.add(manager)
|
||||||
|
manager.process_game(self.game, self.additional_data, self.manager_callback)
|
||||||
|
|
||||||
|
def manager_callback(self, manager: Manager) -> None:
|
||||||
|
"""Method called by a manager when it's done"""
|
||||||
|
logging.debug("%s done for %s", manager.name, self.game.game_id)
|
||||||
|
self.running.remove(manager)
|
||||||
|
self.done.add(manager)
|
||||||
|
self.emit("advanced")
|
||||||
|
self.advance()
|
||||||
|
|
||||||
|
@GObject.Signal(name="advanced")
|
||||||
|
def advanced(self): # type: ignore
|
||||||
|
"""Signal emitted when the pipeline has advanced"""
|
||||||
163
src/store/store.py
Normal file
@@ -0,0 +1,163 @@
|
|||||||
|
# store.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 typing import Any, Generator, MutableMapping, Optional
|
||||||
|
|
||||||
|
from src import shared
|
||||||
|
from src.game import Game
|
||||||
|
from src.store.managers.manager import Manager
|
||||||
|
from src.store.pipeline import Pipeline
|
||||||
|
|
||||||
|
|
||||||
|
class Store:
|
||||||
|
"""Class in charge of handling games being added to the app."""
|
||||||
|
|
||||||
|
managers: dict[type[Manager], Manager]
|
||||||
|
pipeline_managers: set[Manager]
|
||||||
|
pipelines: dict[str, Pipeline]
|
||||||
|
source_games: MutableMapping[str, MutableMapping[str, Game]]
|
||||||
|
new_game_ids: set[str]
|
||||||
|
duplicate_game_ids: set[str]
|
||||||
|
|
||||||
|
def __init__(self) -> None:
|
||||||
|
self.managers = {}
|
||||||
|
self.pipeline_managers = set()
|
||||||
|
self.pipelines = {}
|
||||||
|
self.source_games = {}
|
||||||
|
self.new_game_ids = set()
|
||||||
|
self.duplicate_game_ids = set()
|
||||||
|
|
||||||
|
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"""
|
||||||
|
manager_type = type(manager)
|
||||||
|
self.managers[manager_type] = manager
|
||||||
|
self.toggle_manager_in_pipelines(manager_type, in_pipeline)
|
||||||
|
|
||||||
|
def toggle_manager_in_pipelines(
|
||||||
|
self, manager_type: type[Manager], enable: bool
|
||||||
|
) -> 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:
|
||||||
|
"""Remove a game's files, dismiss any loose toasts"""
|
||||||
|
for path in (
|
||||||
|
shared.games_dir / f"{game.game_id}.json",
|
||||||
|
shared.covers_dir / f"{game.game_id}.tiff",
|
||||||
|
shared.covers_dir / f"{game.game_id}.gif",
|
||||||
|
):
|
||||||
|
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(
|
||||||
|
self, game: Game, additional_data: dict, run_pipeline: bool = True
|
||||||
|
) -> Optional[Pipeline]:
|
||||||
|
"""Add a game to the app"""
|
||||||
|
|
||||||
|
# Ignore games from a newer spec version
|
||||||
|
if game.version > shared.SPEC_VERSION:
|
||||||
|
return None
|
||||||
|
|
||||||
|
# Scanned game is already removed, just clean it up
|
||||||
|
if game.removed:
|
||||||
|
self.cleanup_game(game)
|
||||||
|
return None
|
||||||
|
|
||||||
|
# Handle game duplicates
|
||||||
|
stored_game = self.get(game.game_id)
|
||||||
|
if not stored_game:
|
||||||
|
# New game, do as normal
|
||||||
|
logging.debug("New store game %s (%s)", game.name, game.game_id)
|
||||||
|
self.new_game_ids.add(game.game_id)
|
||||||
|
elif stored_game.removed:
|
||||||
|
# Will replace a removed game, cleanup its remains
|
||||||
|
logging.debug(
|
||||||
|
"New store game %s (%s) (replacing a removed one)",
|
||||||
|
game.name,
|
||||||
|
game.game_id,
|
||||||
|
)
|
||||||
|
self.cleanup_game(stored_game)
|
||||||
|
self.new_game_ids.add(game.game_id)
|
||||||
|
else:
|
||||||
|
# Duplicate game, ignore it
|
||||||
|
logging.debug("Duplicate store game %s (%s)", game.name, game.game_id)
|
||||||
|
self.duplicate_game_ids.add(game.game_id)
|
||||||
|
return None
|
||||||
|
|
||||||
|
# Connect signals
|
||||||
|
for manager in self.managers.values():
|
||||||
|
for signal in manager.signals:
|
||||||
|
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
|
||||||
|
if not run_pipeline:
|
||||||
|
return None
|
||||||
|
pipeline = Pipeline(game, additional_data, self.pipeline_managers)
|
||||||
|
self.pipelines[game.game_id] = pipeline
|
||||||
|
pipeline.advance()
|
||||||
|
return pipeline
|
||||||
@@ -1,157 +0,0 @@
|
|||||||
# bottles_parser.py
|
|
||||||
#
|
|
||||||
# Copyright 2022-2023 kramo
|
|
||||||
#
|
|
||||||
# This program is free software: you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
|
|
||||||
import os
|
|
||||||
import time
|
|
||||||
|
|
||||||
import yaml
|
|
||||||
from gi.repository import GLib, Gtk
|
|
||||||
|
|
||||||
from .create_dialog import create_dialog
|
|
||||||
from .save_cover import save_cover
|
|
||||||
|
|
||||||
|
|
||||||
def bottles_parser(parent_widget, action):
|
|
||||||
schema = parent_widget.schema
|
|
||||||
bottles_dir = os.path.expanduser(schema.get_string("bottles-location"))
|
|
||||||
|
|
||||||
def bottles_not_found():
|
|
||||||
if os.path.exists(
|
|
||||||
os.path.expanduser("~/.var/app/com.usebottles.bottles/data/bottles/")
|
|
||||||
):
|
|
||||||
schema.set_string(
|
|
||||||
"bottles-location", "~/.var/app/com.usebottles.bottles/data/bottles/"
|
|
||||||
)
|
|
||||||
action(None, None)
|
|
||||||
elif os.path.exists(
|
|
||||||
os.path.join(
|
|
||||||
os.getenv("XDG_DATA_HOME")
|
|
||||||
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
|
||||||
"bottles",
|
|
||||||
)
|
|
||||||
):
|
|
||||||
schema.set_string(
|
|
||||||
"bottles-location",
|
|
||||||
os.path.join(
|
|
||||||
os.getenv("XDG_DATA_HOME")
|
|
||||||
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
|
||||||
"bottles",
|
|
||||||
),
|
|
||||||
)
|
|
||||||
action(None, None)
|
|
||||||
else:
|
|
||||||
filechooser = Gtk.FileDialog.new()
|
|
||||||
|
|
||||||
def set_bottles_dir(_source, result, _unused):
|
|
||||||
try:
|
|
||||||
schema.set_string(
|
|
||||||
"bottles-location",
|
|
||||||
filechooser.select_folder_finish(result).get_path(),
|
|
||||||
)
|
|
||||||
action(None, None)
|
|
||||||
except GLib.GError:
|
|
||||||
return
|
|
||||||
|
|
||||||
def choose_folder(_widget):
|
|
||||||
filechooser.select_folder(parent_widget, None, set_bottles_dir, None)
|
|
||||||
|
|
||||||
def response(widget, response):
|
|
||||||
if response == "choose_folder":
|
|
||||||
choose_folder(widget)
|
|
||||||
|
|
||||||
create_dialog(
|
|
||||||
parent_widget,
|
|
||||||
_("Couldn't Import Games"),
|
|
||||||
_("The Bottles directory cannot be found."),
|
|
||||||
"choose_folder",
|
|
||||||
_("Set Bottles Location"),
|
|
||||||
).connect("response", response)
|
|
||||||
|
|
||||||
if not os.path.isfile(os.path.join(bottles_dir, "library.yml")):
|
|
||||||
bottles_not_found()
|
|
||||||
return {}
|
|
||||||
|
|
||||||
bottles_dir = os.path.expanduser(schema.get_string("bottles-location"))
|
|
||||||
|
|
||||||
bottles_games = {}
|
|
||||||
current_time = int(time.time())
|
|
||||||
|
|
||||||
with open(os.path.join(bottles_dir, "library.yml"), "r") as open_file:
|
|
||||||
data = open_file.read()
|
|
||||||
|
|
||||||
library = yaml.load(data, Loader=yaml.Loader)
|
|
||||||
|
|
||||||
for game in library:
|
|
||||||
game = library[game]
|
|
||||||
values = {}
|
|
||||||
|
|
||||||
values["game_id"] = f'bottles_{game["id"]}'
|
|
||||||
|
|
||||||
if (
|
|
||||||
values["game_id"] in parent_widget.games
|
|
||||||
and not parent_widget.games[values["game_id"]].removed
|
|
||||||
):
|
|
||||||
continue
|
|
||||||
|
|
||||||
values["name"] = game["name"]
|
|
||||||
values["executable"] = [
|
|
||||||
"xdg-open",
|
|
||||||
f'bottles:run/{game["bottle"]["name"]}/{game["name"]}',
|
|
||||||
]
|
|
||||||
values["hidden"] = False
|
|
||||||
values["source"] = "bottles"
|
|
||||||
values["added"] = current_time
|
|
||||||
values["last_played"] = 0
|
|
||||||
|
|
||||||
if game["thumbnail"]:
|
|
||||||
save_cover(
|
|
||||||
values,
|
|
||||||
parent_widget,
|
|
||||||
os.path.join(
|
|
||||||
bottles_dir,
|
|
||||||
"bottles",
|
|
||||||
game["bottle"]["path"],
|
|
||||||
"grids",
|
|
||||||
game["thumbnail"].split(":")[1],
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
bottles_games[values["game_id"]] = values
|
|
||||||
|
|
||||||
if not bottles_games:
|
|
||||||
create_dialog(
|
|
||||||
parent_widget,
|
|
||||||
_("No Games Found"),
|
|
||||||
_("No new games were found in the Bottles library."),
|
|
||||||
)
|
|
||||||
elif len(bottles_games) == 1:
|
|
||||||
create_dialog(
|
|
||||||
parent_widget,
|
|
||||||
_("Bottles Games Imported"),
|
|
||||||
_("Successfully imported 1 game."),
|
|
||||||
)
|
|
||||||
elif len(bottles_games) > 1:
|
|
||||||
games_no = str(len(bottles_games))
|
|
||||||
create_dialog(
|
|
||||||
parent_widget,
|
|
||||||
_("Bottles Games Imported"),
|
|
||||||
# The variable is the number of games
|
|
||||||
_(f"Successfully imported {games_no} games."),
|
|
||||||
)
|
|
||||||
return bottles_games
|
|
||||||
@@ -1,315 +0,0 @@
|
|||||||
# create_details_window.py
|
|
||||||
#
|
|
||||||
# Copyright 2022-2023 kramo
|
|
||||||
#
|
|
||||||
# This program is free software: you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
|
|
||||||
import json
|
|
||||||
import os
|
|
||||||
import shlex
|
|
||||||
import time
|
|
||||||
|
|
||||||
from gi.repository import Adw, GdkPixbuf, Gio, GLib, GObject, Gtk
|
|
||||||
|
|
||||||
from .create_dialog import create_dialog
|
|
||||||
from .save_cover import save_cover
|
|
||||||
from .save_games import save_games
|
|
||||||
|
|
||||||
|
|
||||||
def create_details_window(parent_widget, game_id=None):
|
|
||||||
window = Adw.Window(
|
|
||||||
modal=True, default_width=500, default_height=750, transient_for=parent_widget
|
|
||||||
)
|
|
||||||
|
|
||||||
games = parent_widget.games
|
|
||||||
pixbuf = None
|
|
||||||
|
|
||||||
if game_id is None:
|
|
||||||
window.set_title(_("Add New Game"))
|
|
||||||
cover = Gtk.Picture.new_for_pixbuf(parent_widget.placeholder_pixbuf)
|
|
||||||
name = Gtk.Entry()
|
|
||||||
developer = Gtk.Entry()
|
|
||||||
executable = Gtk.Entry()
|
|
||||||
apply_button = Gtk.Button.new_with_label(_("Confirm"))
|
|
||||||
else:
|
|
||||||
window.set_title(_("Edit Game Details"))
|
|
||||||
cover = Gtk.Picture.new_for_pixbuf(parent_widget.games[game_id].pixbuf)
|
|
||||||
developer = Gtk.Entry.new_with_buffer(
|
|
||||||
Gtk.EntryBuffer.new(games[game_id].developer, -1)
|
|
||||||
)
|
|
||||||
name = Gtk.Entry.new_with_buffer(Gtk.EntryBuffer.new(games[game_id].name, -1))
|
|
||||||
executable = Gtk.Entry.new_with_buffer(
|
|
||||||
Gtk.EntryBuffer.new(shlex.join(games[game_id].executable), -1)
|
|
||||||
)
|
|
||||||
apply_button = Gtk.Button.new_with_label(_("Apply"))
|
|
||||||
|
|
||||||
image_filter = Gtk.FileFilter(name=_("Images"))
|
|
||||||
image_filter.add_pixbuf_formats()
|
|
||||||
file_filters = Gio.ListStore.new(Gtk.FileFilter)
|
|
||||||
file_filters.append(image_filter)
|
|
||||||
filechooser = Gtk.FileDialog()
|
|
||||||
filechooser.set_filters(file_filters)
|
|
||||||
|
|
||||||
cover.add_css_class("card")
|
|
||||||
cover.set_size_request(200, 300)
|
|
||||||
|
|
||||||
cover_button = Gtk.Button(
|
|
||||||
icon_name="document-edit-symbolic",
|
|
||||||
halign=Gtk.Align.END,
|
|
||||||
valign=Gtk.Align.END,
|
|
||||||
margin_bottom=6,
|
|
||||||
margin_end=6,
|
|
||||||
css_classes=["circular", "osd"],
|
|
||||||
)
|
|
||||||
|
|
||||||
cover_overlay = Gtk.Overlay(
|
|
||||||
child=cover,
|
|
||||||
halign=Gtk.Align.CENTER,
|
|
||||||
valign=Gtk.Align.CENTER,
|
|
||||||
)
|
|
||||||
cover_overlay.add_overlay(cover_button)
|
|
||||||
|
|
||||||
cover_clamp = Adw.Clamp(
|
|
||||||
maximum_size=200,
|
|
||||||
child=cover_overlay,
|
|
||||||
)
|
|
||||||
|
|
||||||
cover_group = Adw.PreferencesGroup()
|
|
||||||
cover_group.add(cover_clamp)
|
|
||||||
|
|
||||||
title_group = Adw.PreferencesGroup(
|
|
||||||
title=_("Title"),
|
|
||||||
description=_("The title of the game"),
|
|
||||||
)
|
|
||||||
title_group.add(name)
|
|
||||||
|
|
||||||
developer_group = Adw.PreferencesGroup(
|
|
||||||
title=_("Developer"),
|
|
||||||
description=_("The developer or publisher (optional)"),
|
|
||||||
)
|
|
||||||
developer_group.add(developer)
|
|
||||||
|
|
||||||
exec_info_button = Gtk.ToggleButton(
|
|
||||||
icon_name="dialog-information-symbolic",
|
|
||||||
valign=Gtk.Align.CENTER,
|
|
||||||
css_classes=["flat", "circular"],
|
|
||||||
)
|
|
||||||
|
|
||||||
file_name = _("file.txt")
|
|
||||||
# As in software
|
|
||||||
exe_name = _("program")
|
|
||||||
|
|
||||||
if os.name == "nt":
|
|
||||||
exe_name += ".exe"
|
|
||||||
exe_path = _(f"C:\\path\\to\\{exe_name}")
|
|
||||||
file_path = _(f"C:\\path\\to\\{file_name}")
|
|
||||||
command = "start"
|
|
||||||
else:
|
|
||||||
exe_path = _(f"/path/to/{exe_name}")
|
|
||||||
file_path = _(f"/path/to/{file_name}")
|
|
||||||
command = "xdg-open"
|
|
||||||
|
|
||||||
exec_info_text = _(
|
|
||||||
f'To launch the executable "{exe_name}", use the command:\n\n<tt>"{exe_path}"</tt>\n\nTo open the file "{file_name}" with the default application, use:\n\n<tt>{command} "{file_path}"</tt>\n\nIf the path contains spaces, make sure to wrap it in double quotes!'
|
|
||||||
)
|
|
||||||
|
|
||||||
exec_info_label = Gtk.Label(
|
|
||||||
label=exec_info_text,
|
|
||||||
use_markup=True,
|
|
||||||
wrap=True,
|
|
||||||
max_width_chars=30,
|
|
||||||
margin_top=6,
|
|
||||||
margin_bottom=12,
|
|
||||||
margin_start=6,
|
|
||||||
margin_end=6,
|
|
||||||
)
|
|
||||||
|
|
||||||
exec_info_popover = Gtk.Popover(
|
|
||||||
position=Gtk.PositionType.TOP, child=exec_info_label
|
|
||||||
)
|
|
||||||
|
|
||||||
exec_info_popover.bind_property(
|
|
||||||
"visible", exec_info_button, "active", GObject.BindingFlags.BIDIRECTIONAL
|
|
||||||
)
|
|
||||||
|
|
||||||
exec_group = Adw.PreferencesGroup(
|
|
||||||
title=_("Executable"),
|
|
||||||
description=_("File to open or command to run when launching the game"),
|
|
||||||
header_suffix=exec_info_button,
|
|
||||||
)
|
|
||||||
exec_info_popover.set_parent(exec_group.get_header_suffix())
|
|
||||||
exec_group.add(executable)
|
|
||||||
|
|
||||||
general_page = Adw.PreferencesPage()
|
|
||||||
general_page.add(cover_group)
|
|
||||||
general_page.add(title_group)
|
|
||||||
general_page.add(developer_group)
|
|
||||||
general_page.add(exec_group)
|
|
||||||
|
|
||||||
cancel_button = Gtk.Button.new_with_label(_("Cancel"))
|
|
||||||
|
|
||||||
apply_button.add_css_class("suggested-action")
|
|
||||||
|
|
||||||
header_bar = Adw.HeaderBar(
|
|
||||||
show_start_title_buttons=False,
|
|
||||||
show_end_title_buttons=False,
|
|
||||||
)
|
|
||||||
header_bar.pack_start(cancel_button)
|
|
||||||
header_bar.pack_end(apply_button)
|
|
||||||
|
|
||||||
main_box = Gtk.Box.new(Gtk.Orientation.VERTICAL, 0)
|
|
||||||
main_box.append(header_bar)
|
|
||||||
main_box.append(general_page)
|
|
||||||
window.set_content(main_box)
|
|
||||||
|
|
||||||
def choose_cover(_widget):
|
|
||||||
filechooser.open(window, None, set_cover, None)
|
|
||||||
|
|
||||||
def set_cover(_source, result, _unused):
|
|
||||||
nonlocal pixbuf
|
|
||||||
try:
|
|
||||||
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(
|
|
||||||
filechooser.open_finish(result).get_path(), 200, 300, False
|
|
||||||
)
|
|
||||||
cover.set_pixbuf(pixbuf)
|
|
||||||
except GLib.GError:
|
|
||||||
return
|
|
||||||
|
|
||||||
def close_window(_widget, _callback=None):
|
|
||||||
window.close()
|
|
||||||
|
|
||||||
def apply_preferences(_widget, _callback=None):
|
|
||||||
nonlocal pixbuf
|
|
||||||
nonlocal game_id
|
|
||||||
|
|
||||||
values = {}
|
|
||||||
|
|
||||||
final_name = name.get_buffer().get_text()
|
|
||||||
final_developer = developer.get_buffer().get_text()
|
|
||||||
final_executable = executable.get_buffer().get_text()
|
|
||||||
|
|
||||||
try:
|
|
||||||
# Attempt to parse using shell parsing rules (doesn't verify executable existence).
|
|
||||||
final_executable_split = shlex.split(
|
|
||||||
final_executable, comments=False, posix=True
|
|
||||||
)
|
|
||||||
except ValueError as exception:
|
|
||||||
create_dialog(
|
|
||||||
window,
|
|
||||||
_("Couldn't Add Game")
|
|
||||||
if game_id is None
|
|
||||||
else _("Couldn't Apply Preferences"),
|
|
||||||
f'{_("Executable")}: {exception}.',
|
|
||||||
)
|
|
||||||
return
|
|
||||||
|
|
||||||
if game_id is None:
|
|
||||||
if final_name == "":
|
|
||||||
create_dialog(
|
|
||||||
window, _("Couldn't Add Game"), _("Game title cannot be empty.")
|
|
||||||
)
|
|
||||||
return
|
|
||||||
|
|
||||||
if final_executable == "":
|
|
||||||
create_dialog(
|
|
||||||
window, _("Couldn't Add Game"), _("Executable cannot be empty.")
|
|
||||||
)
|
|
||||||
return
|
|
||||||
|
|
||||||
# Increment the number after the game id (eg. imported_1, imported_2)
|
|
||||||
|
|
||||||
numbers = [0]
|
|
||||||
|
|
||||||
for game in games:
|
|
||||||
if "imported_" in game:
|
|
||||||
numbers.append(int(game.replace("imported_", "")))
|
|
||||||
|
|
||||||
game_id = f"imported_{str(max(numbers) + 1)}"
|
|
||||||
|
|
||||||
values["game_id"] = game_id
|
|
||||||
values["hidden"] = False
|
|
||||||
values["source"] = "imported"
|
|
||||||
values["added"] = int(time.time())
|
|
||||||
values["last_played"] = 0
|
|
||||||
|
|
||||||
else:
|
|
||||||
if final_name == "":
|
|
||||||
create_dialog(
|
|
||||||
window,
|
|
||||||
_("Couldn't Apply Preferences"),
|
|
||||||
_("Game title cannot be empty."),
|
|
||||||
)
|
|
||||||
return
|
|
||||||
|
|
||||||
if final_executable == "":
|
|
||||||
create_dialog(
|
|
||||||
window,
|
|
||||||
_("Couldn't Apply Preferences"),
|
|
||||||
_("Executable cannot be empty."),
|
|
||||||
)
|
|
||||||
return
|
|
||||||
|
|
||||||
if pixbuf is not None:
|
|
||||||
save_cover(None, parent_widget, None, pixbuf, game_id)
|
|
||||||
|
|
||||||
values["name"] = final_name
|
|
||||||
values["developer"] = final_developer or None
|
|
||||||
values["executable"] = final_executable_split
|
|
||||||
|
|
||||||
path = os.path.join(
|
|
||||||
os.path.join(
|
|
||||||
os.getenv("XDG_DATA_HOME")
|
|
||||||
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
|
||||||
"cartridges",
|
|
||||||
"games",
|
|
||||||
f"{game_id}.json",
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
if os.path.exists(path):
|
|
||||||
with open(path, "r") as open_file:
|
|
||||||
data = json.loads(open_file.read())
|
|
||||||
data.update(values)
|
|
||||||
save_games({game_id: data})
|
|
||||||
else:
|
|
||||||
save_games({game_id: values})
|
|
||||||
|
|
||||||
parent_widget.update_games([game_id])
|
|
||||||
if parent_widget.stack.get_visible_child() == parent_widget.overview:
|
|
||||||
parent_widget.show_overview(None, game_id)
|
|
||||||
window.close()
|
|
||||||
parent_widget.show_overview(None, game_id)
|
|
||||||
|
|
||||||
def focus_executable(_widget):
|
|
||||||
window.set_focus(executable)
|
|
||||||
|
|
||||||
cover_button.connect("clicked", choose_cover)
|
|
||||||
cancel_button.connect("clicked", close_window)
|
|
||||||
apply_button.connect("clicked", apply_preferences)
|
|
||||||
name.connect("activate", focus_executable)
|
|
||||||
executable.connect("activate", apply_preferences)
|
|
||||||
|
|
||||||
shortcut_controller = Gtk.ShortcutController()
|
|
||||||
shortcut_controller.add_shortcut(
|
|
||||||
Gtk.Shortcut.new(
|
|
||||||
Gtk.ShortcutTrigger.parse_string("Escape"),
|
|
||||||
Gtk.CallbackAction.new(close_window),
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
window.add_controller(shortcut_controller)
|
|
||||||
window.set_focus(name)
|
|
||||||
window.present()
|
|
||||||
@@ -17,15 +17,23 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
from typing import Optional
|
||||||
|
|
||||||
from gi.repository import Adw, Gtk
|
from gi.repository import Adw, Gtk
|
||||||
|
|
||||||
|
|
||||||
def create_dialog(parent_widget, heading, body, extra_option=None, extra_label=None):
|
def create_dialog(
|
||||||
dialog = Adw.MessageDialog.new(parent_widget, _(heading), body)
|
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.add_response("dismiss", _("Dismiss"))
|
dialog.add_response("dismiss", _("Dismiss"))
|
||||||
|
|
||||||
if extra_option:
|
if extra_option:
|
||||||
dialog.add_response(extra_option, _(extra_label))
|
dialog.add_response(extra_option, _(extra_label))
|
||||||
|
|
||||||
Gtk.Window.present(dialog)
|
dialog.present()
|
||||||
return dialog
|
return dialog
|
||||||
|
|||||||