Compare commits
140 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
67c1b25429 | ||
|
|
7503d207c8 | ||
|
|
6176982d1c | ||
|
|
aa8145a605 | ||
|
|
ea52f8cf09 | ||
|
|
26636557ee | ||
|
|
b281a4bd0d | ||
|
|
8d820d8426 | ||
|
|
d86593962b | ||
|
|
a3935e24e9 | ||
|
|
0f9aeb3e1d | ||
|
|
d045d51082 | ||
|
|
9724cae884 | ||
|
|
6b0d4593b7 | ||
|
|
a21b3e0171 | ||
|
|
86dae1f972 | ||
|
|
a7a1573569 | ||
|
|
9214400cca | ||
|
|
18f381c377 | ||
|
|
08f63ceeb6 | ||
|
|
0a2e51355a | ||
|
|
270cb4e73a | ||
|
|
7b080af02a | ||
|
|
839a176ef8 | ||
|
|
0993adfda9 | ||
|
|
1c4d6e244e | ||
|
|
6ca11358e9 | ||
|
|
2acd0025e5 | ||
|
|
64581ee607 | ||
|
|
921968bec3 | ||
|
|
149c417901 | ||
|
|
fd6bb12e82 | ||
|
|
0814267683 | ||
|
|
cb267d0d26 | ||
|
|
fbe3d54c50 | ||
|
|
15756f27c2 | ||
|
|
57be95137c | ||
|
|
832f124969 | ||
|
|
8cc5657a0d | ||
|
|
b0a0092a7d | ||
|
|
6652d5f7c3 | ||
|
|
a4cc224aa5 | ||
|
|
8a324aa3dc | ||
|
|
e3b4e1b3f7 | ||
|
|
e594a71d94 | ||
|
|
42889d388e | ||
|
|
7ba020d1d7 | ||
|
|
37d2e341f5 | ||
|
|
ba944fdaab | ||
|
|
224890261b | ||
|
|
cad5c3fd36 | ||
|
|
012959c57b | ||
|
|
c5b263c71e | ||
|
|
e709617370 | ||
|
|
cef5170c51 | ||
|
|
a4e8fde34d | ||
|
|
9e06a4334e | ||
|
|
516c020cbc | ||
|
|
bb159f6503 | ||
|
|
fd395dfa36 | ||
|
|
c91e721824 | ||
|
|
eb3f9a8b8e | ||
|
|
0b3beed6d8 | ||
|
|
62d38a8ec2 | ||
|
|
6ab17cfb1b | ||
|
|
dac518aabd | ||
|
|
86f707694d | ||
|
|
56f5d99b89 | ||
|
|
c2f11ae631 | ||
|
|
e2a2ea6da2 | ||
|
|
b702c9c28e | ||
|
|
8a2ff2561b | ||
|
|
bd0cf7402a | ||
|
|
e4002fb786 | ||
|
|
f416155c2d | ||
|
|
32d9f9a880 | ||
|
|
434b7a11f1 | ||
|
|
9bb668f6e9 | ||
|
|
60c593e118 | ||
|
|
c3fb5ad0b2 | ||
|
|
6dee932339 | ||
|
|
0ec9f9560b | ||
|
|
fdae6ce8e3 | ||
|
|
41762648b2 | ||
|
|
24eac24c33 | ||
|
|
094bfad10d | ||
|
|
a4b1b8efd9 | ||
|
|
e208434711 | ||
|
|
35185205e3 | ||
|
|
3af1e42548 | ||
|
|
f57f8d0d67 | ||
|
|
592a2d4829 | ||
|
|
0ee20a1a1f | ||
|
|
b8141de130 | ||
|
|
049c3b1dd4 | ||
|
|
115a3f7314 | ||
|
|
4e081bd7ee | ||
|
|
4ed6ab2bab | ||
|
|
ddf73dbc03 | ||
|
|
4b9e3666be | ||
|
|
aa77fc8bf3 | ||
|
|
2e1acc4a2e | ||
|
|
6ba86451c7 | ||
|
|
a07bafdf18 | ||
|
|
a0a67fd2ca | ||
|
|
e87e96f3c6 | ||
|
|
49be6d76c2 | ||
|
|
0d7134ce69 | ||
|
|
90a6c16f07 | ||
|
|
f4edff95cf | ||
|
|
0537a9efb1 | ||
|
|
8637654ba8 | ||
|
|
729d650a55 | ||
|
|
910124ea1d | ||
|
|
849c1b4315 | ||
|
|
ff43fc11ca | ||
|
|
8718a6a170 | ||
|
|
1acca573e2 | ||
|
|
5edbdff11b | ||
|
|
2bfc58f22d | ||
|
|
79275caa15 | ||
|
|
01d1c486c0 | ||
|
|
795d7dd322 | ||
|
|
2d62eb6ebc | ||
|
|
733828cfde | ||
|
|
af119706ca | ||
|
|
b13a27a01f | ||
|
|
8d1e98c277 | ||
|
|
24dd082681 | ||
|
|
325820758e | ||
|
|
d454bcd30f | ||
|
|
5e373bd63d | ||
|
|
7c0974de90 | ||
|
|
1b654de6c9 | ||
|
|
9242801395 | ||
|
|
a9a5a1d3c2 | ||
|
|
de4fd79144 | ||
|
|
077bfd5c10 | ||
|
|
7351d26469 | ||
|
|
08729a1dba |
31
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
name: Bug report
|
||||||
|
about: Create a report to help us improve
|
||||||
|
title: ''
|
||||||
|
labels: bug
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Describe the bug**
|
||||||
|
A clear and concise description of what the bug is.
|
||||||
|
|
||||||
|
**To Reproduce**
|
||||||
|
Steps to reproduce the behavior:
|
||||||
|
1. Go to '...'
|
||||||
|
2. Click on '....'
|
||||||
|
3. Scroll down to '....'
|
||||||
|
4. See error
|
||||||
|
|
||||||
|
**Expected behavior**
|
||||||
|
A clear and concise description of what you expected to happen.
|
||||||
|
|
||||||
|
**Screenshots**
|
||||||
|
If applicable, add screenshots to help explain your problem.
|
||||||
|
|
||||||
|
**System (please complete the following information):**
|
||||||
|
- OS: [e.g. Fedora Linux]
|
||||||
|
- Installation method [e.g. Flatpak]
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context about the problem here.
|
||||||
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
name: Feature request
|
||||||
|
about: Suggest an idea for this project
|
||||||
|
title: ''
|
||||||
|
labels: enhancement
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Is your feature request related to a problem? Please describe.**
|
||||||
|
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||||
|
|
||||||
|
**Describe the solution you'd like**
|
||||||
|
A clear and concise description of what you want to happen.
|
||||||
|
|
||||||
|
**Describe alternatives you've considered**
|
||||||
|
A clear and concise description of any alternative solutions or features you've considered.
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context or screenshots about the feature request here.
|
||||||
19
.github/workflows/flatpak-builder.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
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 }}
|
||||||
31
.github/workflows/windows.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
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"
|
||||||
3
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
/subprojects/blueprint-compiler
|
/subprojects/blueprint-compiler
|
||||||
/src/__pycache__
|
/.flatpak
|
||||||
|
/.vscode
|
||||||
57
.windows/Cartridges.iss
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
#define MyAppName "Cartridges"
|
||||||
|
#define MyAppVersion "0.1.4"
|
||||||
|
#define MyAppPublisher "kramo"
|
||||||
|
#define MyAppURL "https://github.com/kra-mo/cartridges"
|
||||||
|
#define MyAppExeName "pythonw.exe"
|
||||||
|
|
||||||
|
[Setup]
|
||||||
|
AppId={{BC3F8D32-4BDC-4715-B149-D79F589CD7F0}
|
||||||
|
AppName={#MyAppName}
|
||||||
|
AppVersion={#MyAppVersion}
|
||||||
|
AppVerName={#MyAppName} {#MyAppVersion}
|
||||||
|
AppPublisher={#MyAppPublisher}
|
||||||
|
AppPublisherURL={#MyAppURL}
|
||||||
|
AppSupportURL=https://github.com/kra-mo/cartridges/issues
|
||||||
|
AppUpdatesURL={#MyAppURL}
|
||||||
|
DefaultDirName={autopf}\{#MyAppName}
|
||||||
|
DisableProgramGroupPage=yes
|
||||||
|
LicenseFile=..\LICENSE
|
||||||
|
PrivilegesRequiredOverridesAllowed=dialog
|
||||||
|
OutputBaseFilename=Cartridges Setup
|
||||||
|
SetupIconFile=icon.ico
|
||||||
|
Compression=lzma
|
||||||
|
SolidCompression=yes
|
||||||
|
WizardStyle=modern
|
||||||
|
|
||||||
|
[Languages]
|
||||||
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||||
|
|
||||||
|
[Tasks]
|
||||||
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
||||||
|
|
||||||
|
[Files]
|
||||||
|
Source: "D:\a\_temp\msys64\ucrt64\bin\cartridges"; DestDir: "{app}\bin"; Flags: ignoreversion
|
||||||
|
Source: "D:\a\_temp\msys64\ucrt64\bin\pythonw.exe"; DestDir: "{app}\bin"; Flags: ignoreversion
|
||||||
|
Source: "D:\a\_temp\msys64\ucrt64\bin\python.exe"; DestDir: "{app}\bin"; Flags: ignoreversion
|
||||||
|
Source: "D:\a\_temp\msys64\ucrt64\bin\gdbus.exe"; DestDir: "{app}\bin"; Flags: ignoreversion
|
||||||
|
Source: "D:\a\_temp\msys64\ucrt64\bin\*.dll"; DestDir: "{app}\bin"; Flags: recursesubdirs ignoreversion
|
||||||
|
|
||||||
|
Source: "D:\a\_temp\msys64\ucrt64\etc\ssl\*"; DestDir: "{app}\etc\ssl"; Flags: recursesubdirs ignoreversion
|
||||||
|
|
||||||
|
Source: "D:\a\_temp\msys64\ucrt64\lib\gdk-pixbuf-2.0\*"; DestDir: "{app}\lib\gdk-pixbuf-2.0"; Flags: recursesubdirs ignoreversion
|
||||||
|
Source: "D:\a\_temp\msys64\ucrt64\lib\girepository-1.0\*"; DestDir: "{app}\lib\girepository-1.0"; Flags: recursesubdirs ignoreversion
|
||||||
|
Source: "D:\a\_temp\msys64\ucrt64\lib\python3.10\*"; DestDir: "{app}\lib\python3.10"; Excludes: "__pycache__"; Flags: recursesubdirs ignoreversion
|
||||||
|
|
||||||
|
Source: "D:\a\_temp\msys64\ucrt64\share\cartridges\*"; DestDir: "{app}\share\cartridges"; Excludes: "__pycache__"; Flags: recursesubdirs ignoreversion
|
||||||
|
Source: "D:\a\_temp\msys64\ucrt64\share\icons\*"; DestDir: "{app}\share\icons"; Excludes: "cursors\*"; Flags: recursesubdirs ignoreversion
|
||||||
|
Source: "D:\a\_temp\msys64\ucrt64\share\glib-2.0\*"; DestDir: "{app}\share\glib-2.0"; Flags: recursesubdirs ignoreversion
|
||||||
|
Source: "D:\a\_temp\msys64\ucrt64\share\gtk-4.0\*"; DestDir: "{app}\share\gtk-4.0"; Flags: recursesubdirs ignoreversion
|
||||||
|
|
||||||
|
Source: "icon.ico"; DestDir: "{app}"; Flags: recursesubdirs ignoreversion
|
||||||
|
|
||||||
|
[Icons]
|
||||||
|
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\bin\{#MyAppExeName}"; Parameters: """{app}\bin\cartridges"""; IconFilename: "{app}\icon.ico"
|
||||||
|
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\bin\{#MyAppExeName}"; Parameters: """{app}\bin\cartridges"""; IconFilename: "{app}\icon.ico"; Tasks: desktopicon
|
||||||
|
|
||||||
|
[Run]
|
||||||
|
Filename: "{app}\bin\{#MyAppExeName}"; Parameters: """{app}\bin\cartridges"""; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall
|
||||||
BIN
.windows/icon.ico
Normal file
|
After Width: | Height: | Size: 169 KiB |
128
CODE_OF_CONDUCT.md
Normal file
@@ -0,0 +1,128 @@
|
|||||||
|
# Contributor Covenant Code of Conduct
|
||||||
|
|
||||||
|
## Our Pledge
|
||||||
|
|
||||||
|
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.
|
||||||
35
CONTRIBUTING.md
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
# Contributing
|
||||||
|
|
||||||
|
## Code
|
||||||
|
Fork the repository, make your changes, then create a pull request.
|
||||||
|
|
||||||
|
## Translations
|
||||||
|
### Weblate
|
||||||
|
The project can be translated on [Weblate](https://hosted.weblate.org/engage/cartridges/).
|
||||||
|
|
||||||
|
### Manually
|
||||||
|
1. Clone the repository.
|
||||||
|
2. If it isn't already there, add your language to `/po/LINGUAS`.
|
||||||
|
3. Create a new translation from the `/po/cartridges.pot` file with a translation editor such as [Poedit](https://poedit.net/).
|
||||||
|
4. Save the file as `[YOUR LANGUAGE CODE].po` to `/po/`.
|
||||||
|
5. Create a pull request with your translations.
|
||||||
|
|
||||||
|
# Building
|
||||||
|
|
||||||
|
## GNOME Builder
|
||||||
|
1. Install [GNOME Builder](https://flathub.org/apps/details/org.gnome.Builder).
|
||||||
|
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.
|
||||||
|
|
||||||
|
## For Windows
|
||||||
|
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).
|
||||||
|
3. Build it via Meson
|
||||||
|
|
||||||
|
## Meson
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/kra-mo/cartridges.git
|
||||||
|
cd cartridges
|
||||||
|
meson setup build
|
||||||
|
ninja -C build install
|
||||||
|
```
|
||||||
71
README.md
@@ -1,50 +1,57 @@
|
|||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<img src="data/icons/hicolor/scalable/apps/hu.kramo.GameShelf.svg" width="128" height="128">
|
<img src="data/icons/hicolor/scalable/apps/hu.kramo.Cartridges.svg" width="128" height="128">
|
||||||
|
|
||||||
# Game Shelf
|
# Cartridges
|
||||||
A GTK4 + Libadwaita game launcher
|
A GTK4 + Libadwaita game launcher
|
||||||
|
|
||||||
|
[![Build status][github-actions-image]][github-actions-url]
|
||||||
|
[![Translation Status][weblate-image]][weblate-url]
|
||||||
|
[![License][license-image]][license-url]
|
||||||
|
[![Code style][code-style-image]][code-style-url]
|
||||||
|
|
||||||
|
[github-actions-url]: https://github.com/kra-mo/cartridges
|
||||||
|
[github-actions-image]: https://github.com/kra-mo/cartridges/actions/workflows/flatpak-builder.yml/badge.svg
|
||||||
|
[license-url]: https://github.com/kra-mo/cartridges/blob/main/LICENSE
|
||||||
|
[license-image]: https://img.shields.io/github/license/kra-mo/cartridges
|
||||||
|
[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
|
||||||
|
|
||||||
<img src="data/screenshot.webp">
|
<img src="data/screenshot.webp">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
# The Project
|
||||||
## The Project
|
Cartridges is a simple game launcher written in Python using GTK4 and Libadwaita.
|
||||||
Game Shelf is a simple game launcher written in Python using GTK4 + Libadwaita.
|
## Features
|
||||||
### Features
|
|
||||||
- Manually adding and editing games
|
- Manually adding and editing games
|
||||||
- Importing games from Steam and Heroic
|
- Importing games from Steam, Heroic and Bottles
|
||||||
|
- Support for multiple Steam install locations
|
||||||
- Hiding games
|
- Hiding games
|
||||||
- Searching and sorting by title, date added and last played
|
- Searching and sorting by title, date added and last played
|
||||||
|
|
||||||
## Building
|
# Installation
|
||||||
|
|
||||||
### GNOME Builder
|
## Linux
|
||||||
|
|
||||||
1. Download [GNOME Builder](https://flathub.org/apps/details/org.gnome.Builder).
|
|
||||||
2. Click "Clone Repository" with `https://github.com/kra-mo/game-shelf.git` as the URL.
|
|
||||||
3. Click on the build button (hammer) at the top.
|
|
||||||
4. Install `org.gnome.Platform` from the [gnome-nightly repository](https://wiki.gnome.org/Apps/Nightly) if needed.
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
### From Releases
|
### From Releases
|
||||||
1. Install `org.gnome.Platform` from the [gnome-nightly repository](https://wiki.gnome.org/Apps/Nightly) if needed.
|
1. Download the latest release from [Releases](https://github.com/kra-mo/cartridges/releases).
|
||||||
2. Download the latest release from Releases.
|
2. Install the downloaded file via GNOME Software or `flatpak install hu.kramo.Cartridges.flatpak`.
|
||||||
3. Install it via GNOME Software or `flatpak install hu.kramo.GameShelf.flatpak`.
|
|
||||||
|
|
||||||
### From GNOME Builder
|
## Windows
|
||||||
Click the down arrow next to the hammer at the top of your GNOME Builder window, then click "Export". This will create a flatpak that then can be installed on your system.
|
|
||||||
|
|
||||||
## Contributing
|
### From Releases
|
||||||
|
1. Download the latest release from [Releases](https://github.com/kra-mo/cartridges/releases).
|
||||||
|
2. Run the downloaded installer.
|
||||||
|
|
||||||
### Code
|
Note: Windows might present you with a warning when trying to install the app. This is expected, just ignore the warning.
|
||||||
Fork the repository, make your changes, then create a pull request.
|
|
||||||
|
|
||||||
### Translations
|
## Building manually
|
||||||
Currently, translations can be added manually with the following steps:
|
See [Building](https://github.com/kra-mo/cartridges/blob/main/CONTRIBUTING.md#building).
|
||||||
1. Clone the repository.
|
|
||||||
2. If it isn't already there, add your language to `/po/LINGUAS`.
|
# Contributing
|
||||||
3. Create a new translation from the `/po/gameshelf.pot` file with a program such as [Poedit](https://poedit.net/).
|
|
||||||
4. Save the file as `[YOUR LANGUAGE CODE].po` to `/po/`.
|
See [CONTRIBUTING](https://github.com/kra-mo/cartridges/blob/main/CONTRIBUTING.md).
|
||||||
5. Create a pull request with your translations.
|
|
||||||
|
Thanks to [Weblate](https://weblate.org/) for hosting our translations!
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<gresources>
|
<gresources>
|
||||||
<gresource prefix="/hu/kramo/GameShelf">
|
<gresource prefix="/hu/kramo/Cartridges">
|
||||||
<file preprocess="xml-stripblanks">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>assets/library_placeholder.svg</file>
|
<file alias="style.css">gtk/style.css</file>
|
||||||
|
<file alias="style-dark.css">gtk/style-dark.css</file>
|
||||||
|
<file>library_placeholder.svg</file>
|
||||||
</gresource>
|
</gresource>
|
||||||
</gresources>
|
</gresources>
|
||||||
120
data/gtk/game.blp
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
using Gtk 4.0;
|
||||||
|
using Adw 1;
|
||||||
|
|
||||||
|
template game : Box {
|
||||||
|
orientation: vertical;
|
||||||
|
halign: center;
|
||||||
|
valign: start;
|
||||||
|
|
||||||
|
Adw.Clamp {
|
||||||
|
maximum-size: 200;
|
||||||
|
Box {
|
||||||
|
orientation: vertical;
|
||||||
|
Button cover_button {
|
||||||
|
Picture cover {
|
||||||
|
width-request: 200;
|
||||||
|
height-request: 300;
|
||||||
|
hexpand: true;
|
||||||
|
vexpand: true;
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"card",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
menu-model: game_options;
|
||||||
|
hexpand: true;
|
||||||
|
halign: end;
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"flat",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Revealer title_revealer {
|
||||||
|
transition-type: slide_down;
|
||||||
|
reveal-child: true;
|
||||||
|
valign: start;
|
||||||
|
Label title {
|
||||||
|
label: _("Title");
|
||||||
|
ellipsize: end;
|
||||||
|
hexpand: true;
|
||||||
|
halign: start;
|
||||||
|
margin-top: 14;
|
||||||
|
margin-bottom: 14;
|
||||||
|
margin-start: 12;
|
||||||
|
margin-end: 12;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"card",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
menu game_options {
|
||||||
|
section {
|
||||||
|
item {
|
||||||
|
label: _("Edit");
|
||||||
|
action: "app.edit_details";
|
||||||
|
}
|
||||||
|
|
||||||
|
item {
|
||||||
|
label: _("Hide");
|
||||||
|
action: "app.hide_game";
|
||||||
|
}
|
||||||
|
|
||||||
|
item {
|
||||||
|
label: _("Remove");
|
||||||
|
action: "app.remove_game";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
menu hidden_game_options {
|
||||||
|
section {
|
||||||
|
item {
|
||||||
|
label: _("Edit");
|
||||||
|
action: "app.edit_details";
|
||||||
|
}
|
||||||
|
|
||||||
|
item {
|
||||||
|
label: _("Unhide");
|
||||||
|
action: "app.hide_game";
|
||||||
|
}
|
||||||
|
|
||||||
|
item {
|
||||||
|
label: _("Remove");
|
||||||
|
action: "app.remove_game";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -20,6 +20,11 @@ ShortcutsWindow help_overlay {
|
|||||||
action-name: "win.toggle_search";
|
action-name: "win.toggle_search";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ShortcutsShortcut {
|
||||||
|
title: C_("shortcut window", "Show preferences");
|
||||||
|
action-name: "app.preferences";
|
||||||
|
}
|
||||||
|
|
||||||
ShortcutsShortcut {
|
ShortcutsShortcut {
|
||||||
title: C_("shortcut window", "Shortcuts");
|
title: C_("shortcut window", "Shortcuts");
|
||||||
action-name: "win.show-help-overlay";
|
action-name: "win.show-help-overlay";
|
||||||
@@ -29,6 +34,25 @@ ShortcutsWindow help_overlay {
|
|||||||
title: C_("shortcut window", "Undo");
|
title: C_("shortcut window", "Undo");
|
||||||
action-name: "win.undo_remove";
|
action-name: "win.undo_remove";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ShortcutsShortcut {
|
||||||
|
title: C_("shortcut window", "Open menu");
|
||||||
|
action-name: "win.open_menu";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ShortcutsGroup {
|
||||||
|
title: C_("shortcut window", "Games");
|
||||||
|
|
||||||
|
ShortcutsShortcut {
|
||||||
|
title: C_("shortcut window", "Add new game");
|
||||||
|
action-name: "app.add_game";
|
||||||
|
}
|
||||||
|
|
||||||
|
ShortcutsShortcut {
|
||||||
|
title: C_("shortcut window", "Show hidden games");
|
||||||
|
action-name: "win.show_hidden";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5,7 +5,7 @@ template PreferencesWindow : Adw.PreferencesWindow {
|
|||||||
search-enabled: false;
|
search-enabled: false;
|
||||||
default-height: 500;
|
default-height: 500;
|
||||||
|
|
||||||
Adw.PreferencesPage {
|
Adw.PreferencesPage page {
|
||||||
Adw.PreferencesGroup {
|
Adw.PreferencesGroup {
|
||||||
title: _("General");
|
title: _("General");
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ template PreferencesWindow : Adw.PreferencesWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Adw.PreferencesGroup {
|
Adw.PreferencesGroup steam_group {
|
||||||
title: "Steam";
|
title: "Steam";
|
||||||
|
|
||||||
Adw.ActionRow {
|
Adw.ActionRow {
|
||||||
@@ -30,9 +30,33 @@ template PreferencesWindow : Adw.PreferencesWindow {
|
|||||||
valign: center;
|
valign: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Adw.ActionRow {
|
||||||
|
title: _("Extra Steam Libraries");
|
||||||
|
subtitle: _("Select other directories where you have Steam games installed");
|
||||||
|
|
||||||
|
|
||||||
|
Revealer steam_clear_button_revealer {
|
||||||
|
reveal-child: false;
|
||||||
|
transition-type: slide_left;
|
||||||
|
Button steam_clear_button {
|
||||||
|
label: _("Clear");
|
||||||
|
valign: center;
|
||||||
|
halign: end;
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"destructive-action",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Button steam_extra_file_chooser_button {
|
||||||
|
icon-name: "folder-new-symbolic";
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Adw.PreferencesGroup {
|
Adw.PreferencesGroup heroic_group {
|
||||||
title: "Heroic";
|
title: "Heroic";
|
||||||
|
|
||||||
Adw.ActionRow {
|
Adw.ActionRow {
|
||||||
@@ -69,5 +93,19 @@ template PreferencesWindow : Adw.PreferencesWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Adw.PreferencesGroup bottles_group {
|
||||||
|
title: "Bottles";
|
||||||
|
|
||||||
|
Adw.ActionRow {
|
||||||
|
title: _("Bottles Install Location");
|
||||||
|
subtitle: _("Directory to use when importing games");
|
||||||
|
|
||||||
|
Button bottles_file_chooser_button {
|
||||||
|
icon-name: "folder-symbolic";
|
||||||
|
valign: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
2
data/gtk/style-dark.css
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
@define-color accent_color @purple_1;
|
||||||
|
@define-color accent_bg_color @purple_4;
|
||||||
2
data/gtk/style.css
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
@define-color accent_color @purple_5;
|
||||||
|
@define-color accent_bg_color @purple_3;
|
||||||
@@ -11,7 +11,7 @@ Adw.StatusPage notice_no_results {
|
|||||||
|
|
||||||
Adw.StatusPage notice_empty {
|
Adw.StatusPage notice_empty {
|
||||||
icon-name: "applications-games-symbolic";
|
icon-name: "applications-games-symbolic";
|
||||||
title: _("No Games Found");
|
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;
|
||||||
@@ -25,10 +25,8 @@ Adw.StatusPage hidden_notice_empty {
|
|||||||
valign: center;
|
valign: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
template GameShelfWindow : Adw.ApplicationWindow {
|
template CartridgesWindow : Adw.ApplicationWindow {
|
||||||
title: _("Game Shelf");
|
title: _("Cartridges");
|
||||||
default-width: 1110;
|
|
||||||
default-height: 820;
|
|
||||||
|
|
||||||
Adw.ToastOverlay toast_overlay {
|
Adw.ToastOverlay toast_overlay {
|
||||||
Stack stack {
|
Stack stack {
|
||||||
@@ -43,6 +41,7 @@ template GameShelfWindow : Adw.ApplicationWindow {
|
|||||||
Adw.HeaderBar {
|
Adw.HeaderBar {
|
||||||
[start]
|
[start]
|
||||||
Button back_button {
|
Button back_button {
|
||||||
|
tooltip-text: _("Back");
|
||||||
action-name: "win.go_back";
|
action-name: "win.go_back";
|
||||||
icon-name: "go-previous-symbolic";
|
icon-name: "go-previous-symbolic";
|
||||||
}
|
}
|
||||||
@@ -69,15 +68,18 @@ template GameShelfWindow : Adw.ApplicationWindow {
|
|||||||
margin-top: 24;
|
margin-top: 24;
|
||||||
margin-bottom: 24;
|
margin-bottom: 24;
|
||||||
|
|
||||||
Picture overview_cover {
|
Adw.Clamp {
|
||||||
halign: end;
|
maximum-size: 200;
|
||||||
valign: start;
|
Picture overview_cover {
|
||||||
width-request: 200;
|
halign: end;
|
||||||
height-request: 300;
|
valign: start;
|
||||||
|
width-request: 200;
|
||||||
|
height-request: 300;
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
"card",
|
"card",
|
||||||
]
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Box {
|
Box {
|
||||||
@@ -98,6 +100,20 @@ template GameShelfWindow : Adw.ApplicationWindow {
|
|||||||
"title-1",
|
"title-1",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Label overview_developer {
|
||||||
|
margin-top: 3;
|
||||||
|
hexpand: true;
|
||||||
|
halign: start;
|
||||||
|
wrap: true;
|
||||||
|
wrap-mode: word_char;
|
||||||
|
natural-wrap-mode: word;
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"heading"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
Label overview_added {
|
Label overview_added {
|
||||||
margin-top: 12;
|
margin-top: 12;
|
||||||
hexpand: true;
|
hexpand: true;
|
||||||
@@ -177,18 +193,21 @@ template GameShelfWindow : Adw.ApplicationWindow {
|
|||||||
Adw.HeaderBar header_bar {
|
Adw.HeaderBar header_bar {
|
||||||
[start]
|
[start]
|
||||||
MenuButton {
|
MenuButton {
|
||||||
|
tooltip-text: _("Add Game");
|
||||||
icon-name: "list-add-symbolic";
|
icon-name: "list-add-symbolic";
|
||||||
menu-model: add_games;
|
menu-model: add_games;
|
||||||
}
|
}
|
||||||
|
|
||||||
[end]
|
[end]
|
||||||
MenuButton {
|
MenuButton primary_menu_button {
|
||||||
|
tooltip-text: _("Main Menu");
|
||||||
icon-name: "open-menu-symbolic";
|
icon-name: "open-menu-symbolic";
|
||||||
menu-model: primary_menu;
|
menu-model: primary_menu;
|
||||||
}
|
}
|
||||||
|
|
||||||
[end]
|
[end]
|
||||||
ToggleButton search_button {
|
ToggleButton search_button {
|
||||||
|
tooltip-text: _("Search");
|
||||||
icon-name: "system-search-symbolic";
|
icon-name: "system-search-symbolic";
|
||||||
action-name: "win.toggle_search";
|
action-name: "win.toggle_search";
|
||||||
}
|
}
|
||||||
@@ -232,6 +251,7 @@ template GameShelfWindow : Adw.ApplicationWindow {
|
|||||||
Adw.HeaderBar hidden_header_bar {
|
Adw.HeaderBar hidden_header_bar {
|
||||||
[start]
|
[start]
|
||||||
Button hidden_back_button {
|
Button hidden_back_button {
|
||||||
|
tooltip-text: _("Back");
|
||||||
action-name: "win.go_back";
|
action-name: "win.go_back";
|
||||||
icon-name: "go-previous-symbolic";
|
icon-name: "go-previous-symbolic";
|
||||||
}
|
}
|
||||||
@@ -243,12 +263,14 @@ template GameShelfWindow : Adw.ApplicationWindow {
|
|||||||
|
|
||||||
[end]
|
[end]
|
||||||
MenuButton {
|
MenuButton {
|
||||||
|
tooltip-text: _("Main Menu");
|
||||||
icon-name: "open-menu-symbolic";
|
icon-name: "open-menu-symbolic";
|
||||||
menu-model: primary_menu;
|
menu-model: primary_menu;
|
||||||
}
|
}
|
||||||
|
|
||||||
[end]
|
[end]
|
||||||
ToggleButton hidden_search_button {
|
ToggleButton hidden_search_button {
|
||||||
|
tooltip-text: _("Search");
|
||||||
icon-name: "system-search-symbolic";
|
icon-name: "system-search-symbolic";
|
||||||
action-name: "win.toggle_search";
|
action-name: "win.toggle_search";
|
||||||
}
|
}
|
||||||
@@ -348,7 +370,7 @@ menu primary_menu {
|
|||||||
}
|
}
|
||||||
|
|
||||||
item {
|
item {
|
||||||
label: _("About Game Shelf");
|
label: _("About Cartridges");
|
||||||
action: "app.about";
|
action: "app.about";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -360,15 +382,25 @@ menu add_games {
|
|||||||
label: _("Add Game");
|
label: _("Add Game");
|
||||||
action: "app.add_game";
|
action: "app.add_game";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
section {
|
||||||
|
submenu {
|
||||||
|
label: _("Import from");
|
||||||
|
item {
|
||||||
|
label: _("Steam");
|
||||||
|
action: "app.steam_import";
|
||||||
|
}
|
||||||
|
|
||||||
item {
|
item {
|
||||||
label: _("Import From Steam");
|
label: _("Heroic");
|
||||||
action: "app.steam_import";
|
action: "app.heroic_import";
|
||||||
}
|
}
|
||||||
|
|
||||||
item {
|
item {
|
||||||
label: _("Import From Heroic");
|
label: _("Bottles");
|
||||||
action: "app.heroic_import";
|
action: "app.bottles_import";
|
||||||
|
hidden-when: "action-disabled";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
10
data/hu.kramo.Cartridges.desktop.in
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=Cartridges
|
||||||
|
GenericName=Game Launcher
|
||||||
|
Comment=Launch your games
|
||||||
|
Exec=cartridges
|
||||||
|
Icon=hu.kramo.Cartridges
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Categories=GNOME;GTK;Game;
|
||||||
|
StartupNotify=true
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<schemalist gettext-domain="gameshelf">
|
<schemalist gettext-domain="cartridges">
|
||||||
<schema id="hu.kramo.GameShelf" path="/hu/kramo/GameShelf/">
|
<schema id="hu.kramo.Cartridges" path="/hu/kramo/Cartridges/">
|
||||||
<key name="exit-after-launch" type="b">
|
<key name="exit-after-launch" type="b">
|
||||||
<default>false</default>
|
<default>false</default>
|
||||||
</key>
|
</key>
|
||||||
@@ -15,11 +15,28 @@
|
|||||||
</key>
|
</key>
|
||||||
<key name="steam-location" type="s">
|
<key name="steam-location" type="s">
|
||||||
<default>"~/.steam/"</default>
|
<default>"~/.steam/"</default>
|
||||||
|
</key>
|
||||||
|
<key name="steam-extra-dirs" type="as">
|
||||||
|
<default>[]</default>
|
||||||
</key>
|
</key>
|
||||||
<key name="heroic-location" type="s">
|
<key name="heroic-location" type="s">
|
||||||
<default>"~/.var/app/com.heroicgameslauncher.hgl/config/heroic/"</default>
|
<default>"~/.var/app/com.heroicgameslauncher.hgl/config/heroic/"</default>
|
||||||
</key>
|
</key>
|
||||||
<key name="sort-mode" type="s">
|
<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>
|
<choices>
|
||||||
<choice value="a-z"/>
|
<choice value="a-z"/>
|
||||||
<choice value="z-a"/>
|
<choice value="z-a"/>
|
||||||
@@ -29,5 +46,5 @@
|
|||||||
</choices>
|
</choices>
|
||||||
<default>"a-z"</default>
|
<default>"a-z"</default>
|
||||||
</key>
|
</key>
|
||||||
</schema>
|
</schema>
|
||||||
</schemalist>
|
</schemalist>
|
||||||
13
data/hu.kramo.Cartridges.metainfo.xml.in
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<component type="desktop-application">
|
||||||
|
<id>hu.kramo.Cartridges.desktop</id>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<project_license>GPL-3.0-or-later</project_license>
|
||||||
|
<name>Cartridges</name>
|
||||||
|
<summary>Launch all your games</summary>
|
||||||
|
<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>
|
||||||
|
</description>
|
||||||
|
<launchable type="desktop-id">hu.kramo.Cartridges.desktop</launchable>
|
||||||
|
<developer_name translatable="no">kramo</developer_name>
|
||||||
|
</component>
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
[Desktop Entry]
|
|
||||||
Name=Game Shelf
|
|
||||||
Exec=gameshelf
|
|
||||||
Icon=hu.kramo.GameShelf
|
|
||||||
Terminal=false
|
|
||||||
Type=Application
|
|
||||||
Categories=Game;
|
|
||||||
StartupNotify=true
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<component type="desktop-application">
|
|
||||||
<id>hu.kramo.GameShelf.desktop</id>
|
|
||||||
<metadata_license>CC0-1.0</metadata_license>
|
|
||||||
<project_license>GPL-3.0-or-later</project_license>
|
|
||||||
<name>Game Shelf</name>
|
|
||||||
<summary>Launch all your games</summary>
|
|
||||||
<description>
|
|
||||||
<p>Game Shelf is a simple game launcher. It has support for importing your games from Steam and Heroic with organizational features such as hiding and sorting by date added or last played.</p>
|
|
||||||
</description>
|
|
||||||
<launchable type="desktop-id">hu.kramo.GameShelf.desktop</launchable>
|
|
||||||
<developer_name>kramo</developer_name>
|
|
||||||
</component>
|
|
||||||
33
data/icons/hicolor/scalable/apps/hu.kramo.Cartridges.svg
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" fill="none">
|
||||||
|
<path fill="url(#a)" d="M111 29H17a8 8 0 0 0-8 8v70a8 8 0 0 0 8 8h94a8 8 0 0 0 8-8V37a8 8 0 0 0-8-8Z"/>
|
||||||
|
<path fill="#C061CB" d="M111 29H17c-4.418 0-8 3.681-8 8.222v57.556c0 4.54 3.582 8.222 8 8.222h94c4.418 0 8-3.681 8-8.222V37.222c0-4.54-3.582-8.222-8-8.222Z"/>
|
||||||
|
<path fill="#000" d="M84 42H44a4 4 0 0 0-4 4v40a4 4 0 0 0 4 4h40a4 4 0 0 0 4-4V46a4 4 0 0 0-4-4Z"/>
|
||||||
|
<path fill="url(#b)" d="M81 50H47a2 2 0 0 0-2 2v28a2 2 0 0 0 2 2h34a2 2 0 0 0 2-2V52a2 2 0 0 0-2-2Z"/>
|
||||||
|
<path fill="#000" d="M102 61v-1a5 5 0 0 0-10 0v1a5 5 0 0 0 10 0ZM114 55v-1a5 5 0 0 0-10 0v1a5 5 0 0 0 10 0Z"/>
|
||||||
|
<path fill="#3D3846" d="M97 64c2.761 0 5-2.015 5-4.5S99.761 55 97 55s-5 2.015-5 4.5 2.239 4.5 5 4.5ZM109 58c2.761 0 5-2.015 5-4.5s-2.239-4.5-5-4.5-5 2.015-5 4.5 2.239 4.5 5 4.5Z"/>
|
||||||
|
<path fill="#000" d="M29 56.5a3.5 3.5 0 1 0-7 0v13a3.5 3.5 0 1 0 7 0v-13Z"/>
|
||||||
|
<path fill="#000" d="M33 58H18a3 3 0 0 0-3 3v2a3 3 0 0 0 3 3h15a3 3 0 0 0 3-3v-2a3 3 0 0 0-3-3Z"/>
|
||||||
|
<path fill="#3D3846" d="M29 54.5a3.5 3.5 0 1 0-7 0v13a3.5 3.5 0 1 0 7 0v-13Z"/>
|
||||||
|
<path fill="#3D3846" d="M33 58H18a3 3 0 1 0 0 6h15a3 3 0 1 0 0-6Z"/>
|
||||||
|
<path fill="#000" d="M71 109a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z"/>
|
||||||
|
<path fill="#9141AC" d="M71.063 108.5a2 2 0 0 0 3.874 0 1.999 1.999 0 0 1-2.817 2.294 1.996 1.996 0 0 1-1.057-2.294Z"/>
|
||||||
|
<path fill="#000" d="M66 107H56a2 2 0 1 0 0 4h10a2 2 0 1 0 0-4Z"/>
|
||||||
|
<path fill="#9141AC" d="M54.063 108.5A2 2 0 0 0 56 111h10a2.005 2.005 0 0 0 1.582-.775 1.996 1.996 0 0 0 .355-1.725A1.999 1.999 0 0 1 66 110H56a1.998 1.998 0 0 1-1.937-1.5Z"/>
|
||||||
|
<path fill="#613583" d="M110 74H96a1 1 0 1 0 0 2h14a1 1 0 0 0 0-2ZM110 79H96a1 1 0 1 0 0 2h14a1 1 0 0 0 0-2ZM110 84H96a1 1 0 1 0 0 2h14a1 1 0 0 0 0-2Z"/>
|
||||||
|
<path fill="#000" d="M21.5 79h-3a2.5 2.5 0 0 0 0 5h3a2.5 2.5 0 0 0 0-5ZM32.5 79h-3a2.5 2.5 0 0 0 0 5h3a2.5 2.5 0 0 0 0-5Z"/>
|
||||||
|
<path fill="#3D3846" d="M22 79h-4a2 2 0 1 0 0 4h4a2 2 0 1 0 0-4ZM33 79h-4a2 2 0 1 0 0 4h4a2 2 0 1 0 0-4Z"/>
|
||||||
|
<defs>
|
||||||
|
<linearGradient id="a" x1="9" x2="119" y1="115" y2="115" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#613583"/>
|
||||||
|
<stop offset=".05" stop-color="#9141AC"/>
|
||||||
|
<stop offset=".22" stop-color="#613583"/>
|
||||||
|
<stop offset=".78" stop-color="#613583"/>
|
||||||
|
<stop offset=".95" stop-color="#9141AC"/>
|
||||||
|
<stop offset="1" stop-color="#613583"/>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient id="b" x1="45" x2="45" y1="50" y2="82" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#BDD0D5"/>
|
||||||
|
<stop offset="1" stop-color="#305749"/>
|
||||||
|
</linearGradient>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.7 KiB |
@@ -1,36 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" fill="none">
|
|
||||||
<rect width="88" height="112" x="20" y="8" fill="url(#a)" rx="9" style="fill:url(#a)"/>
|
|
||||||
<rect width="88" height="95" x="20" y="8" fill="url(#b)" rx="9" style="fill:url(#b)"/>
|
|
||||||
<rect width="74" height="46" x="27" y="15" fill="#000" rx="5"/>
|
|
||||||
<rect width="50" height="34" x="39" y="21" fill="url(#c)" rx="4" style="fill:url(#c)"/>
|
|
||||||
<rect width="9" height="9" x="55" y="107" fill="#241f31" rx="4.5"/>
|
|
||||||
<rect width="5" height="5" x="57" y="109" fill="#000" rx="2.5"/>
|
|
||||||
<rect width="5" height="5" x="71" y="109" fill="#241f31" rx="2.5"/>
|
|
||||||
<rect width="7" height="21" x="40" y="72" fill="#000" rx="3.5"/>
|
|
||||||
<rect width="7" height="21" x="79" y="-54" fill="#000" rx="3.5" transform="rotate(90)"/>
|
|
||||||
<rect width="7" height="21" x="40" y="71" fill="#241f31" rx="3.5"/>
|
|
||||||
<rect width="7" height="21" x="78" y="-54" fill="#241f31" rx="3.5" transform="rotate(90)"/>
|
|
||||||
<rect width="11" height="11" x="80" y="-80" fill="#000" rx="5.5" transform="rotate(90)"/>
|
|
||||||
<rect width="11" height="11" x="73" y="-94" fill="#000" rx="5.5" transform="rotate(90)"/>
|
|
||||||
<rect width="11" height="11" x="79" y="-80" fill="#241f31" rx="5.5" transform="rotate(90)"/>
|
|
||||||
<rect width="11" height="11" x="72" y="-94" fill="#241f31" rx="5.5" transform="rotate(90)"/>
|
|
||||||
<defs>
|
|
||||||
<linearGradient id="a" x1="20" x2="108" y1="120" y2="120" gradientUnits="userSpaceOnUse">
|
|
||||||
<stop stop-color="#FF7800"/>
|
|
||||||
<stop offset=".06" stop-color="#FFA348"/>
|
|
||||||
<stop offset=".21" stop-color="#FFA348" style="stop-color:#ff7800;stop-opacity:1"/>
|
|
||||||
<stop offset=".8" stop-color="#FFA348" style="stop-color:#ff7800;stop-opacity:1"/>
|
|
||||||
<stop offset=".94" stop-color="#FFA348"/>
|
|
||||||
<stop offset="1" stop-color="#FF7800"/>
|
|
||||||
</linearGradient>
|
|
||||||
<linearGradient id="b" x1="64" x2="64" y1="8" y2="103" gradientUnits="userSpaceOnUse">
|
|
||||||
<stop offset="0" stop-color="#FFA348" style="stop-color:#f6d32d;stop-opacity:1"/>
|
|
||||||
<stop offset=".9" stop-color="#F6D32D"/>
|
|
||||||
<stop offset="1" stop-color="#F9F06B"/>
|
|
||||||
</linearGradient>
|
|
||||||
<linearGradient id="c" x1="39" x2="39" y1="21" y2="55" gradientUnits="userSpaceOnUse">
|
|
||||||
<stop stop-color="#53784D"/>
|
|
||||||
<stop offset="1" stop-color="#B2D18B"/>
|
|
||||||
</linearGradient>
|
|
||||||
</defs>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 2.4 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,3 +0,0 @@
|
|||||||
<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 1C2.44772 1 2 1.44772 2 2V14C2 14.5523 2.44772 15 3 15H13C13.5523 15 14 14.5523 14 14V2C14 1.44772 13.5523 1 13 1H3ZM5 2C4.44772 2 4 2.44772 4 3V6C4 6.55228 4.44772 7 5 7H11C11.5523 7 12 6.55228 12 6V3C12 2.44772 11.5523 2 11 2H5ZM4 10.5C4 9.67157 4.67157 9 5.5 9C6.32843 9 7 9.67157 7 10.5C7 11.3284 6.32843 12 5.5 12C4.67157 12 4 11.3284 4 10.5ZM10 9C9.44772 9 9 9.44771 9 10C9 10.5523 9.44771 11 10 11H11C11.5523 11 12 10.5523 12 10C12 9.44771 11.5523 9 11 9H10Z" fill="black"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 637 B |
@@ -1,4 +1,4 @@
|
|||||||
application_id = 'hu.kramo.GameShelf'
|
application_id = 'hu.kramo.Cartridges'
|
||||||
|
|
||||||
scalable_dir = join_paths('hicolor', 'scalable', 'apps')
|
scalable_dir = join_paths('hicolor', 'scalable', 'apps')
|
||||||
install_data(
|
install_data(
|
||||||
|
|||||||
15
data/library_placeholder.svg
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="300" fill="none">
|
||||||
|
<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>
|
||||||
|
After Width: | Height: | Size: 2.1 KiB |
@@ -1,6 +1,25 @@
|
|||||||
|
blueprints = custom_target('blueprints',
|
||||||
|
input: files(
|
||||||
|
'gtk/help-overlay.blp',
|
||||||
|
'gtk/window.blp',
|
||||||
|
'gtk/game.blp',
|
||||||
|
'gtk/preferences.blp'
|
||||||
|
),
|
||||||
|
output: '.',
|
||||||
|
command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
|
||||||
|
)
|
||||||
|
|
||||||
|
gnome.compile_resources('cartridges',
|
||||||
|
'cartridges.gresource.xml',
|
||||||
|
gresource_bundle: true,
|
||||||
|
install: true,
|
||||||
|
install_dir: pkgdatadir,
|
||||||
|
dependencies: blueprints,
|
||||||
|
)
|
||||||
|
|
||||||
desktop_file = i18n.merge_file(
|
desktop_file = i18n.merge_file(
|
||||||
input: 'hu.kramo.GameShelf.desktop.in',
|
input: 'hu.kramo.Cartridges.desktop.in',
|
||||||
output: 'hu.kramo.GameShelf.desktop',
|
output: 'hu.kramo.Cartridges.desktop',
|
||||||
type: 'desktop',
|
type: 'desktop',
|
||||||
po_dir: '../po',
|
po_dir: '../po',
|
||||||
install: true,
|
install: true,
|
||||||
@@ -13,8 +32,8 @@ if desktop_utils.found()
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
appstream_file = i18n.merge_file(
|
appstream_file = i18n.merge_file(
|
||||||
input: 'hu.kramo.GameShelf.metainfo.xml.in',
|
input: 'hu.kramo.Cartridges.metainfo.xml.in',
|
||||||
output: 'hu.kramo.GameShelf.metainfo.xml',
|
output: 'hu.kramo.Cartridges.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')
|
||||||
@@ -25,7 +44,7 @@ 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.GameShelf.gschema.xml',
|
install_data('hu.kramo.Cartridges.gschema.xml',
|
||||||
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: 878 KiB After Width: | Height: | Size: 911 KiB |
61
hu.kramo.Cartridges.json
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
{
|
||||||
|
"app-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" : [
|
||||||
|
"python3-modules.json",
|
||||||
|
{
|
||||||
|
"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" : { }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
{
|
|
||||||
"app-id" : "hu.kramo.GameShelf",
|
|
||||||
"runtime" : "org.gnome.Platform",
|
|
||||||
"runtime-version" : "master",
|
|
||||||
"sdk" : "org.gnome.Sdk",
|
|
||||||
"command" : "gameshelf",
|
|
||||||
"finish-args" : [
|
|
||||||
"--share=ipc",
|
|
||||||
"--socket=fallback-x11",
|
|
||||||
"--device=dri",
|
|
||||||
"--socket=wayland",
|
|
||||||
"--talk-name=org.freedesktop.Flatpak",
|
|
||||||
"--filesystem=xdg-run/gvfsd",
|
|
||||||
"--filesystem=~/.steam/steam/",
|
|
||||||
"--filesystem=~/.var/app/com.heroicgameslauncher.hgl/config/heroic/"
|
|
||||||
],
|
|
||||||
"cleanup" : [
|
|
||||||
"/include",
|
|
||||||
"/lib/pkgconfig",
|
|
||||||
"/man",
|
|
||||||
"/share/doc",
|
|
||||||
"/share/gtk-doc",
|
|
||||||
"/share/man",
|
|
||||||
"/share/pkgconfig",
|
|
||||||
"*.la",
|
|
||||||
"*.a"
|
|
||||||
],
|
|
||||||
"modules" : [
|
|
||||||
{
|
|
||||||
"name" : "gameshelf",
|
|
||||||
"builddir" : true,
|
|
||||||
"buildsystem" : "meson",
|
|
||||||
"sources" : [
|
|
||||||
{
|
|
||||||
"type" : "git",
|
|
||||||
"url" : "file:///home/kramo/Projects"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
project('gameshelf',
|
project('cartridges',
|
||||||
version: '0.1.1',
|
version: '0.1.4',
|
||||||
meson_version: '>= 0.59.0',
|
meson_version: '>= 0.59.0',
|
||||||
default_options: [ 'warning_level=2', 'werror=false', ],
|
default_options: [ 'warning_level=2', 'werror=false', ],
|
||||||
)
|
)
|
||||||
@@ -7,7 +7,7 @@ project('gameshelf',
|
|||||||
i18n = import('i18n')
|
i18n = import('i18n')
|
||||||
gnome = import('gnome')
|
gnome = import('gnome')
|
||||||
|
|
||||||
|
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
|
||||||
|
|
||||||
subdir('data')
|
subdir('data')
|
||||||
subdir('src')
|
subdir('src')
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
hu
|
hu
|
||||||
|
ta
|
||||||
|
uk
|
||||||
|
nb_NO
|
||||||
|
fr
|
||||||
|
|||||||
16
po/POTFILES
@@ -1,13 +1,19 @@
|
|||||||
|
data/hu.kramo.Cartridges.desktop.in
|
||||||
|
data/hu.kramo.Cartridges.gschema.xml
|
||||||
|
data/hu.kramo.Cartridges.metainfo.xml.in
|
||||||
|
|
||||||
|
data/gtk/window.blp
|
||||||
|
data/gtk/game.blp
|
||||||
|
data/gtk/help-overlay.blp
|
||||||
|
data/gtk/preferences.blp
|
||||||
|
|
||||||
src/main.py
|
src/main.py
|
||||||
src/window.py
|
src/window.py
|
||||||
src/window.blp
|
|
||||||
src/game.py
|
src/game.py
|
||||||
src/preferences.py
|
src/preferences.py
|
||||||
|
|
||||||
src/gtk/game.blp
|
src/utils/bottles_parser.py
|
||||||
src/gtk/preferences.blp
|
|
||||||
|
|
||||||
src/utils/create_details_window.py
|
src/utils/create_details_window.py
|
||||||
src/utils/create_dialog.py
|
src/utils/create_dialog.py
|
||||||
src/utils/steam_parser.py
|
|
||||||
src/utils/heroic_parser.py
|
src/utils/heroic_parser.py
|
||||||
|
src/utils/steam_parser.py
|
||||||
|
|||||||
499
po/cartridges.pot
Normal file
@@ -0,0 +1,499 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the cartridges package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
#, fuzzy
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: cartridges\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2023-03-21 15:48+0100\n"
|
||||||
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
"Language: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:3
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:29
|
||||||
|
#: src/main.py:116
|
||||||
|
msgid "Cartridges"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:4
|
||||||
|
msgid "Game Launcher"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
|
msgid "Launch your games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
|
msgid "Launch all your games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
||||||
|
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."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 src/utils/bottles_parser.py:142
|
||||||
|
#: src/utils/heroic_parser.py:253 src/utils/steam_parser.py:161
|
||||||
|
msgid "No Games Found"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:7
|
||||||
|
msgid "Try a different search."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:14
|
||||||
|
msgid "No Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:15
|
||||||
|
msgid "Use the + button to add games."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:22
|
||||||
|
msgid "No Hidden Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:23
|
||||||
|
msgid "Games you hide will appear here."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:44 data/gtk/window.blp:254
|
||||||
|
msgid "Back"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:51
|
||||||
|
msgid "Game Details"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:92
|
||||||
|
msgid "Game Title"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:148 data/gtk/game.blp:38
|
||||||
|
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:363
|
||||||
|
msgid "Preferences"
|
||||||
|
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/window.blp:411 data/gtk/window.blp:430 data/gtk/game.blp:87
|
||||||
|
#: data/gtk/game.blp:106
|
||||||
|
msgid "Edit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:416 data/gtk/game.blp:92
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:421 data/gtk/window.blp:440 data/gtk/game.blp:97
|
||||||
|
#: data/gtk/game.blp:116
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:435 data/gtk/game.blp:111
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:65 src/utils/create_details_window.py:94
|
||||||
|
msgid "Title"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "General"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Search"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:10
|
||||||
|
msgid "General"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Steam Install Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26 data/gtk/preferences.blp:64
|
||||||
|
#: data/gtk/preferences.blp:102
|
||||||
|
msgid "Directory to use when importing games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:34
|
||||||
|
msgid "Extra Steam Libraries"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:35
|
||||||
|
msgid "Select other directories where you have Steam games installed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:42
|
||||||
|
msgid "Clear"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:63
|
||||||
|
msgid "Heroic Install Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:73
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:81
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:89
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:101
|
||||||
|
msgid "Bottles Install Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
|
#: src/main.py:130
|
||||||
|
msgid "translator_credits"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/main.py:195
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "{title} removed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/main.py:196
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/window.py:229
|
||||||
|
msgid "Today"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/window.py:231
|
||||||
|
msgid "Yesterday"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the date when the game was added
|
||||||
|
#: src/window.py:265
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "Added: {date}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/window.py:270
|
||||||
|
msgid "Never"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the date when the game was last played
|
||||||
|
#: src/window.py:274
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "Last played: {last_played_date}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:80 src/utils/heroic_parser.py:87
|
||||||
|
#: src/utils/steam_parser.py:234
|
||||||
|
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:143
|
||||||
|
msgid "No new games were found in the Bottles library."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:148 src/utils/bottles_parser.py:155
|
||||||
|
msgid "Bottles Games Imported"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:149 src/utils/heroic_parser.py:260
|
||||||
|
#: src/utils/steam_parser.py:168
|
||||||
|
msgid "Successfully imported 1 game."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the number of games
|
||||||
|
#: src/utils/bottles_parser.py:157 src/utils/heroic_parser.py:268
|
||||||
|
#: src/utils/steam_parser.py:176
|
||||||
|
#, 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:48
|
||||||
|
msgid "Edit Game Details"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:57
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:59
|
||||||
|
msgid "Images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:95
|
||||||
|
msgid "The title of the game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:100
|
||||||
|
msgid "Developer"
|
||||||
|
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"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. As in software
|
||||||
|
#: src/utils/create_details_window.py:113
|
||||||
|
msgid "program"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:117
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "C:\\path\\to\\{exe_name}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:118
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "C:\\path\\to\\{file_name}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:121
|
||||||
|
#, 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 ""
|
||||||
|
"To launch the executable \"{exe_name}\", use the command:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>\"{exe_path}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"To open the file \"{file_name}\" with the default application, use:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>{command} \"{file_path}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"If the path contains spaces, make sure to wrap it in double quotes!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:149
|
||||||
|
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:208
|
||||||
|
#: src/utils/create_details_window.py:214
|
||||||
|
msgid "Couldn't Add Game"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:208
|
||||||
|
#: src/utils/create_details_window.py:239
|
||||||
|
msgid "Game title cannot be empty."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:214
|
||||||
|
#: src/utils/create_details_window.py:247
|
||||||
|
msgid "Executable cannot be empty."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:238
|
||||||
|
#: src/utils/create_details_window.py:246
|
||||||
|
msgid "Couldn't Apply Preferences"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_dialog.py:25
|
||||||
|
msgid "Dismiss"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/heroic_parser.py:88
|
||||||
|
msgid "The Heroic directory cannot be found."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/heroic_parser.py:90
|
||||||
|
msgid "Set Heroic Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/heroic_parser.py:254
|
||||||
|
msgid "No new games were found in the Heroic library."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/heroic_parser.py:259 src/utils/heroic_parser.py:266
|
||||||
|
msgid "Heroic Games Imported"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:162
|
||||||
|
msgid "No new games were found in the Steam library."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:167 src/utils/steam_parser.py:174
|
||||||
|
msgid "Steam Games Imported"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:235
|
||||||
|
msgid "The Steam directory cannot be found."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:237
|
||||||
|
msgid "Set Steam Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:253
|
||||||
|
msgid "Importing Games…"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:254
|
||||||
|
msgid "Talking to Steam"
|
||||||
|
msgstr ""
|
||||||
526
po/fr.po
Normal file
@@ -0,0 +1,526 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the cartridges package.
|
||||||
|
# "J. Lavoie" <j.lavoie@net-c.ca>, 2023.
|
||||||
|
# kramo <contact@kramo.hu>, 2023.
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: cartridges\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2023-03-21 15:48+0100\n"
|
||||||
|
"PO-Revision-Date: 2023-03-21 11:05+0000\n"
|
||||||
|
"Last-Translator: kramo <contact@kramo.hu>\n"
|
||||||
|
"Language-Team: French <https://hosted.weblate.org/projects/cartridges/"
|
||||||
|
"cartridges/fr/>\n"
|
||||||
|
"Language: fr\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.16.2-dev\n"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:3
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:29
|
||||||
|
#: src/main.py:116
|
||||||
|
msgid "Cartridges"
|
||||||
|
msgstr "Cartridges"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:4
|
||||||
|
msgid "Game Launcher"
|
||||||
|
msgstr "Lanceur de jeu"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
|
msgid "Launch your games"
|
||||||
|
msgstr "Lancez vos jeux"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
|
msgid "Launch all your games"
|
||||||
|
msgstr "Lancez tous vos jeux"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
||||||
|
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."
|
||||||
|
msgstr ""
|
||||||
|
"Cartridges est un simple lanceur de jeux. Il prend en charge l'importation "
|
||||||
|
"de vos jeux depuis Steam, Heroic et Bottles, avec des fonctions "
|
||||||
|
"d'organisation telles que le masquage et le tri par date d'ajout ou de "
|
||||||
|
"dernière lecture."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 src/utils/bottles_parser.py:142
|
||||||
|
#: src/utils/heroic_parser.py:253 src/utils/steam_parser.py:161
|
||||||
|
msgid "No Games Found"
|
||||||
|
msgstr "Aucun jeu trouvé"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:7
|
||||||
|
msgid "Try a different search."
|
||||||
|
msgstr "Essayez une autre recherche."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:14
|
||||||
|
#, fuzzy
|
||||||
|
msgid "No Games"
|
||||||
|
msgstr "Jeux"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:15
|
||||||
|
msgid "Use the + button to add games."
|
||||||
|
msgstr "Utilisez le bouton + pour ajouter des jeux."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:22
|
||||||
|
msgid "No Hidden Games"
|
||||||
|
msgstr "Pas de jeux masqués"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:23
|
||||||
|
msgid "Games you hide will appear here."
|
||||||
|
msgstr "Les jeux que vous masquez apparaîtront ici."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:44 data/gtk/window.blp:254
|
||||||
|
msgid "Back"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:51
|
||||||
|
msgid "Game Details"
|
||||||
|
msgstr "Détails du jeu"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:92
|
||||||
|
msgid "Game Title"
|
||||||
|
msgstr "Titre du jeu"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:148 data/gtk/game.blp:38
|
||||||
|
msgid "Play"
|
||||||
|
msgstr "Jouer"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:196 data/gtk/window.blp:382
|
||||||
|
msgid "Add Game"
|
||||||
|
msgstr "Ajouter un jeu"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:203 data/gtk/window.blp:266
|
||||||
|
msgid "Main Menu"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:210 data/gtk/window.blp:273
|
||||||
|
#, fuzzy
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "Recherche"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:261
|
||||||
|
msgid "Hidden Games"
|
||||||
|
msgstr "Jeux masqués"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:321
|
||||||
|
msgid "Sort"
|
||||||
|
msgstr "Trier"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:324
|
||||||
|
msgid "A-Z"
|
||||||
|
msgstr "A-Z"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:330
|
||||||
|
msgid "Z-A"
|
||||||
|
msgstr "Z-A"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:336
|
||||||
|
msgid "Newest"
|
||||||
|
msgstr "Le plus récent"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:342
|
||||||
|
msgid "Oldest"
|
||||||
|
msgstr "Le plus ancien"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:348
|
||||||
|
msgid "Last Played"
|
||||||
|
msgstr "Dernière session"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:355
|
||||||
|
msgid "Show Hidden"
|
||||||
|
msgstr "Afficher les masqués"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:363
|
||||||
|
msgid "Preferences"
|
||||||
|
msgstr "Préférences"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:368
|
||||||
|
msgid "Keyboard Shortcuts"
|
||||||
|
msgstr "Raccourcis clavier"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:373
|
||||||
|
msgid "About Cartridges"
|
||||||
|
msgstr "À propos de Cartridges"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:388
|
||||||
|
msgid "Import from"
|
||||||
|
msgstr "Importer depuis"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:390
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr "Steam"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:395
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr "Heroic"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:400
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr "Bottles"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:411 data/gtk/window.blp:430 data/gtk/game.blp:87
|
||||||
|
#: data/gtk/game.blp:106
|
||||||
|
msgid "Edit"
|
||||||
|
msgstr "Modifier"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:416 data/gtk/game.blp:92
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr "Masquer"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:421 data/gtk/window.blp:440 data/gtk/game.blp:97
|
||||||
|
#: data/gtk/game.blp:116
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr "Retirer"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:435 data/gtk/game.blp:111
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr "Afficher"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:65 src/utils/create_details_window.py:94
|
||||||
|
msgid "Title"
|
||||||
|
msgstr "Titre"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "General"
|
||||||
|
msgstr "Général"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr "Quitter"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "Recherche"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr "Afficher les préférences"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr "Raccourcis"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "Annuler"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr "Ouvrir le menu"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Games"
|
||||||
|
msgstr "Jeux"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr "Ajouter un nouveau jeu"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr "Afficher les jeux masqués"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:10
|
||||||
|
msgid "General"
|
||||||
|
msgstr "Général"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr "Quitter après avoir lancé les jeux"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Steam Install Location"
|
||||||
|
msgstr "Emplacement de l'installation de Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26 data/gtk/preferences.blp:64
|
||||||
|
#: data/gtk/preferences.blp:102
|
||||||
|
msgid "Directory to use when importing games"
|
||||||
|
msgstr "Répertoire à utiliser lors de l'importation de jeux"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:34
|
||||||
|
msgid "Extra Steam Libraries"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:35
|
||||||
|
msgid "Select other directories where you have Steam games installed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:42
|
||||||
|
msgid "Clear"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:63
|
||||||
|
msgid "Heroic Install Location"
|
||||||
|
msgstr "Emplacement de l'installation Heroic"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:73
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr "Importer Epic Games"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:81
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr "Importer des jeux GOG"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:89
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr "Importer des jeux Sideloaded"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:101
|
||||||
|
msgid "Bottles Install Location"
|
||||||
|
msgstr "Emplacement de l'installation Bottles"
|
||||||
|
|
||||||
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
|
#: src/main.py:130
|
||||||
|
msgid "translator_credits"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/main.py:195
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "{title} removed"
|
||||||
|
msgstr "{title} retiré"
|
||||||
|
|
||||||
|
#: src/main.py:196
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "Annuler"
|
||||||
|
|
||||||
|
#: src/window.py:229
|
||||||
|
msgid "Today"
|
||||||
|
msgstr "Aujourd'hui"
|
||||||
|
|
||||||
|
#: src/window.py:231
|
||||||
|
msgid "Yesterday"
|
||||||
|
msgstr "Hier"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was added
|
||||||
|
#: src/window.py:265
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "Added: {date}"
|
||||||
|
msgstr "Ajouté : {date}"
|
||||||
|
|
||||||
|
#: src/window.py:270
|
||||||
|
msgid "Never"
|
||||||
|
msgstr "Jamais"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was last played
|
||||||
|
#: src/window.py:274
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "Last played: {last_played_date}"
|
||||||
|
msgstr "Dernière session : {last_played_date}"
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:80 src/utils/heroic_parser.py:87
|
||||||
|
#: src/utils/steam_parser.py:234
|
||||||
|
msgid "Couldn't Import Games"
|
||||||
|
msgstr "Impossible d'importer des jeux"
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:81
|
||||||
|
msgid "The Bottles directory cannot be found."
|
||||||
|
msgstr "Le répertoire Bottles est introuvable."
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:83
|
||||||
|
msgid "Set Bottles Location"
|
||||||
|
msgstr "Définir l'emplacement de Bottles"
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:143
|
||||||
|
msgid "No new games were found in the Bottles library."
|
||||||
|
msgstr "Aucun nouveau jeu n'a été trouvé dans la bibliothèque Bottles."
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:148 src/utils/bottles_parser.py:155
|
||||||
|
msgid "Bottles Games Imported"
|
||||||
|
msgstr "Jeux Bottles importés"
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:149 src/utils/heroic_parser.py:260
|
||||||
|
#: src/utils/steam_parser.py:168
|
||||||
|
msgid "Successfully imported 1 game."
|
||||||
|
msgstr "Importation réussie de 1 jeu."
|
||||||
|
|
||||||
|
#. The variable is the number of games
|
||||||
|
#: src/utils/bottles_parser.py:157 src/utils/heroic_parser.py:268
|
||||||
|
#: src/utils/steam_parser.py:176
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "Successfully imported {games_no} games."
|
||||||
|
msgstr "Importation réussie de {games_no} jeux."
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:41
|
||||||
|
msgid "Add New Game"
|
||||||
|
msgstr "Ajouter un nouveau jeu"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:46
|
||||||
|
msgid "Confirm"
|
||||||
|
msgstr "Confirmer"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:48
|
||||||
|
msgid "Edit Game Details"
|
||||||
|
msgstr "Modifier les détails du jeu"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:57
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr "Appliquer"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:59
|
||||||
|
msgid "Images"
|
||||||
|
msgstr "Images"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:95
|
||||||
|
msgid "The title of the game"
|
||||||
|
msgstr "Le titre du jeu"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:100
|
||||||
|
msgid "Developer"
|
||||||
|
msgstr "Développeur"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:101
|
||||||
|
msgid "The developer or publisher (optional)"
|
||||||
|
msgstr "Le développeur ou l'éditeur (facultatif)"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:111
|
||||||
|
msgid "file.txt"
|
||||||
|
msgstr "ficher.txt"
|
||||||
|
|
||||||
|
#. As in software
|
||||||
|
#: src/utils/create_details_window.py:113
|
||||||
|
msgid "program"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:117
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "C:\\path\\to\\{exe_name}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:118
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "C:\\path\\to\\{file_name}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:121
|
||||||
|
#, 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 ""
|
||||||
|
"To launch the executable \"{exe_name}\", use the command:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>\"{exe_path}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"To open the file \"{file_name}\" with the default application, use:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>{command} \"{file_path}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"If the path contains spaces, make sure to wrap it in double quotes!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:149
|
||||||
|
msgid "Executable"
|
||||||
|
msgstr "Exécutable"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:150
|
||||||
|
msgid "File to open or command to run when launching the game"
|
||||||
|
msgstr "Fichier à ouvrir ou commande à exécuter au lancement du jeu"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:162
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Annuler"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:208
|
||||||
|
#: src/utils/create_details_window.py:214
|
||||||
|
msgid "Couldn't Add Game"
|
||||||
|
msgstr "Impossible d'ajouter un jeu"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:208
|
||||||
|
#: src/utils/create_details_window.py:239
|
||||||
|
msgid "Game title cannot be empty."
|
||||||
|
msgstr "Le titre du jeu ne peut pas être vide."
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:214
|
||||||
|
#: src/utils/create_details_window.py:247
|
||||||
|
msgid "Executable cannot be empty."
|
||||||
|
msgstr "L'exécutable ne peut pas être vide."
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:238
|
||||||
|
#: src/utils/create_details_window.py:246
|
||||||
|
msgid "Couldn't Apply Preferences"
|
||||||
|
msgstr "Impossible d'appliquer les préférences"
|
||||||
|
|
||||||
|
#: src/utils/create_dialog.py:25
|
||||||
|
msgid "Dismiss"
|
||||||
|
msgstr "Rejeter"
|
||||||
|
|
||||||
|
#: src/utils/heroic_parser.py:88
|
||||||
|
msgid "The Heroic directory cannot be found."
|
||||||
|
msgstr "Le répertoire Heroic est introuvable."
|
||||||
|
|
||||||
|
#: src/utils/heroic_parser.py:90
|
||||||
|
msgid "Set Heroic Location"
|
||||||
|
msgstr "Définir l'emplacement Heroic"
|
||||||
|
|
||||||
|
#: src/utils/heroic_parser.py:254
|
||||||
|
msgid "No new games were found in the Heroic library."
|
||||||
|
msgstr "Aucun nouveau jeu n'a été trouvé dans la bibliothèque Heroic."
|
||||||
|
|
||||||
|
#: src/utils/heroic_parser.py:259 src/utils/heroic_parser.py:266
|
||||||
|
msgid "Heroic Games Imported"
|
||||||
|
msgstr "Jeux Heroic importés"
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:162
|
||||||
|
msgid "No new games were found in the Steam library."
|
||||||
|
msgstr "Aucun nouveau jeu n'a été trouvé dans la bibliothèque Steam."
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:167 src/utils/steam_parser.py:174
|
||||||
|
msgid "Steam Games Imported"
|
||||||
|
msgstr "Jeux Steam importés"
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:235
|
||||||
|
msgid "The Steam directory cannot be found."
|
||||||
|
msgstr "Le répertoire Steam est introuvable."
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:237
|
||||||
|
msgid "Set Steam Location"
|
||||||
|
msgstr "Définir l'emplacement Steam"
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:253
|
||||||
|
#, fuzzy
|
||||||
|
msgid "Importing Games…"
|
||||||
|
msgstr "Importation de jeux…"
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:254
|
||||||
|
#, fuzzy
|
||||||
|
msgid "Talking to Steam"
|
||||||
|
msgstr "Parler à Steam"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "Successfully imported {str(len(bottles_games))} games."
|
||||||
|
#~ msgstr "Importation réussie de 1 jeu."
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "Successfully imported {str(len(heroic_games))} games."
|
||||||
|
#~ msgstr "Importation réussie de 1 jeu."
|
||||||
|
|
||||||
|
#~ msgid "Last played:"
|
||||||
|
#~ msgstr "Dernière session :"
|
||||||
|
|
||||||
|
#~ msgid "Successfully imported"
|
||||||
|
#~ msgstr "Importation réussie"
|
||||||
|
|
||||||
|
#~ msgid "games."
|
||||||
|
#~ msgstr "jeux."
|
||||||
302
po/gameshelf.pot
@@ -1,302 +0,0 @@
|
|||||||
# SOME DESCRIPTIVE TITLE.
|
|
||||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
|
||||||
# This file is distributed under the same license as the PACKAGE package.
|
|
||||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
||||||
#
|
|
||||||
#, fuzzy
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
|
||||||
"Report-Msgid-Bugs-To: \n"
|
|
||||||
"POT-Creation-Date: 2023-01-29 14:12+0100\n"
|
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
||||||
"Language: \n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=CHARSET\n"
|
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
|
||||||
|
|
||||||
#. Create toast for undoing the remove action
|
|
||||||
#: src/main.py:133
|
|
||||||
msgid "removed"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/main.py:134
|
|
||||||
msgid "Undo"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.py:195
|
|
||||||
msgid "Today"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.py:197
|
|
||||||
msgid "Yesterday"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.py:221
|
|
||||||
msgid "Added: "
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.py:222
|
|
||||||
msgid "Last played: "
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.py:222
|
|
||||||
msgid "Last played: Never"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:6 src/window.blp:14 src/utils/steam_parser.py:98
|
|
||||||
#: src/utils/heroic_parser.py:153
|
|
||||||
msgid "No Games Found"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:7
|
|
||||||
msgid "Try a different search."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:15
|
|
||||||
msgid "Use the + button to add games."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:22
|
|
||||||
msgid "No Hidden Games"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:23
|
|
||||||
msgid "Games you hide will appear here."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:29
|
|
||||||
msgid "Game Shelf"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:52
|
|
||||||
msgid "Game Details"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:90
|
|
||||||
msgid "Game Title"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:132 src/gtk/game.blp:62 src/gtk/game.blp:88
|
|
||||||
msgid "Play"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:241
|
|
||||||
msgid "Hidden Games"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:299
|
|
||||||
msgid "Sort"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:302
|
|
||||||
msgid "A-Z"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:308
|
|
||||||
msgid "Z-A"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:314
|
|
||||||
msgid "Newest"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:320
|
|
||||||
msgid "Oldest"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:326
|
|
||||||
msgid "Last Played"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:333
|
|
||||||
msgid "Show Hidden"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:341
|
|
||||||
msgid "Preferences"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:346
|
|
||||||
msgid "Keyboard Shortcuts"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:351
|
|
||||||
msgid "About Game Shelf"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:360
|
|
||||||
msgid "Add Game"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:365
|
|
||||||
msgid "Import From Steam"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:370
|
|
||||||
msgid "Import From Heroic"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:379 src/window.blp:398 src/gtk/game.blp:69
|
|
||||||
#: src/gtk/game.blp:95
|
|
||||||
msgid "Edit"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:384 src/gtk/game.blp:74
|
|
||||||
msgid "Hide"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:389 src/window.blp:408 src/gtk/game.blp:79
|
|
||||||
#: src/gtk/game.blp:105
|
|
||||||
msgid "Remove"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/window.blp:403 src/gtk/game.blp:100
|
|
||||||
msgid "Unhide"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/gtk/game.blp:32 src/utils/create_details_window.py:82
|
|
||||||
msgid "Title"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/gtk/preferences.blp:10
|
|
||||||
msgid "General"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/gtk/preferences.blp:13
|
|
||||||
msgid "Exit After Launching Games"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/gtk/preferences.blp:25
|
|
||||||
msgid "Steam Install Location"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/gtk/preferences.blp:26 src/gtk/preferences.blp:40
|
|
||||||
msgid "Directory to use when importing games"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/gtk/preferences.blp:39
|
|
||||||
msgid "Heroic Install Location"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/gtk/preferences.blp:49
|
|
||||||
msgid "Import Epic Games"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/gtk/preferences.blp:57
|
|
||||||
msgid "Import GOG Games"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/gtk/preferences.blp:65
|
|
||||||
msgid "Import Sideloaded Games"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:38
|
|
||||||
msgid "Add New Game"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:42
|
|
||||||
msgid "Confirm"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:44
|
|
||||||
msgid "Edit Game Details"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:48
|
|
||||||
msgid "Apply"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:51
|
|
||||||
msgid "Images"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:83
|
|
||||||
msgid "The title of the game"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:88
|
|
||||||
msgid "Executable"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:89
|
|
||||||
msgid "File to open or command to run when launching the game"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:98
|
|
||||||
msgid "Cancel"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:141
|
|
||||||
#: src/utils/create_details_window.py:145
|
|
||||||
msgid "Couldn't Add Game"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:141
|
|
||||||
#: src/utils/create_details_window.py:166
|
|
||||||
msgid "Game title cannot be empty."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:145
|
|
||||||
#: src/utils/create_details_window.py:170
|
|
||||||
msgid "Executable cannot be empty."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:166
|
|
||||||
#: src/utils/create_details_window.py:170
|
|
||||||
msgid "Couldn't Apply Preferences"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/create_dialog.py:24
|
|
||||||
msgid "Dismiss"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:49 src/utils/heroic_parser.py:49
|
|
||||||
msgid "Couldn't Import Games"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:49
|
|
||||||
msgid "Steam directory cannot be found."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:49
|
|
||||||
msgid "Set Steam Location"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:98
|
|
||||||
msgid "No new games found in Steam library."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:100 src/utils/steam_parser.py:102
|
|
||||||
msgid "Steam Games Imported"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:100 src/utils/heroic_parser.py:155
|
|
||||||
msgid "Successfully imported 1 game."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:102 src/utils/heroic_parser.py:157
|
|
||||||
msgid "Successfully imported"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:102 src/utils/heroic_parser.py:157
|
|
||||||
msgid "games."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:49
|
|
||||||
msgid "Heroic directory cannot be found."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:49
|
|
||||||
msgid "Set Heroic Location"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:153
|
|
||||||
msgid "No new games found in Heroic library."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:155 src/utils/heroic_parser.py:157
|
|
||||||
msgid "Heroic Games Imported"
|
|
||||||
msgstr ""
|
|
||||||
611
po/hu.po
@@ -1,303 +1,542 @@
|
|||||||
# SOME DESCRIPTIVE TITLE.
|
# SOME DESCRIPTIVE TITLE.
|
||||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
# This file is distributed under the same license as the PACKAGE package.
|
# This file is distributed under the same license as the cartridges package.
|
||||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
# kramo, 2023.
|
||||||
#
|
#
|
||||||
|
# kramo <contact@kramo.hu>, 2023.
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2023-01-29 14:12+0100\n"
|
"POT-Creation-Date: 2023-03-21 15:48+0100\n"
|
||||||
"PO-Revision-Date: 2023-01-29 14:19+0100\n"
|
"PO-Revision-Date: 2023-03-19 12:28+0000\n"
|
||||||
"Last-Translator: kramo <contact@kramo.hu>\n"
|
"Last-Translator: kramo <contact@kramo.hu>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: Hungarian <https://hosted.weblate.org/projects/cartridges/"
|
||||||
|
"cartridges/hu/>\n"
|
||||||
"Language: hu\n"
|
"Language: hu\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||||
"X-Generator: Poedit 3.2.2\n"
|
"X-Generator: Weblate 4.16.2-dev\n"
|
||||||
|
|
||||||
#. Create toast for undoing the remove action
|
#: data/hu.kramo.Cartridges.desktop.in:3
|
||||||
#: src/main.py:133
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:29
|
||||||
msgid "removed"
|
#: src/main.py:116
|
||||||
msgstr "eltávolítva"
|
msgid "Cartridges"
|
||||||
|
msgstr "Kazetták"
|
||||||
|
|
||||||
#: src/main.py:134
|
#: data/hu.kramo.Cartridges.desktop.in:4
|
||||||
msgid "Undo"
|
msgid "Game Launcher"
|
||||||
msgstr "Visszavonás"
|
msgstr "Játék Indító"
|
||||||
|
|
||||||
#: src/window.py:195
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
msgid "Today"
|
msgid "Launch your games"
|
||||||
msgstr "Ma"
|
msgstr "Indítsa el a játékait"
|
||||||
|
|
||||||
#: src/window.py:197
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
msgid "Yesterday"
|
msgid "Launch all your games"
|
||||||
msgstr "Tegnap"
|
msgstr "Indítsa el az összes játékát"
|
||||||
|
|
||||||
#: src/window.py:221
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
||||||
msgid "Added: "
|
msgid ""
|
||||||
msgstr "Hozzáadva: "
|
"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."
|
||||||
|
msgstr ""
|
||||||
|
"A Kazetták egy egyszerű játékindító. Támogatja a Steam-ből, Heroic-ból és "
|
||||||
|
"Bottles-ből való importálást, valamint a játékok elrejtését és rendezését."
|
||||||
|
|
||||||
#: src/window.py:222
|
#: data/gtk/window.blp:6 src/utils/bottles_parser.py:142
|
||||||
msgid "Last played: "
|
#: src/utils/heroic_parser.py:253 src/utils/steam_parser.py:161
|
||||||
msgstr "Legutóbb játszva: "
|
|
||||||
|
|
||||||
#: src/window.py:222
|
|
||||||
msgid "Last played: Never"
|
|
||||||
msgstr "Legutóbb játszva: Soha"
|
|
||||||
|
|
||||||
#: src/window.blp:6 src/window.blp:14 src/utils/steam_parser.py:98
|
|
||||||
#: src/utils/heroic_parser.py:153
|
|
||||||
msgid "No Games Found"
|
msgid "No Games Found"
|
||||||
msgstr "Nem Találhatóak Játékok"
|
msgstr "Nem Találhatóak Játékok"
|
||||||
|
|
||||||
#: src/window.blp:7
|
#: data/gtk/window.blp:7
|
||||||
msgid "Try a different search."
|
msgid "Try a different search."
|
||||||
msgstr "Próbálkozz más kereséssel."
|
msgstr "Próbálkozz más kereséssel."
|
||||||
|
|
||||||
#: src/window.blp:15
|
#: data/gtk/window.blp:14
|
||||||
|
msgid "No Games"
|
||||||
|
msgstr "Nincsenek Játékok"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:15
|
||||||
msgid "Use the + button to add games."
|
msgid "Use the + button to add games."
|
||||||
msgstr "Használd a + gombot a játékok hozzáadásához."
|
msgstr "Használd a + gombot a játékok hozzáadásához."
|
||||||
|
|
||||||
#: src/window.blp:22
|
#: data/gtk/window.blp:22
|
||||||
msgid "No Hidden Games"
|
msgid "No Hidden Games"
|
||||||
msgstr "Nincsenek Rejtett Játékok"
|
msgstr "Nincsenek Rejtett Játékok"
|
||||||
|
|
||||||
#: src/window.blp:23
|
#: data/gtk/window.blp:23
|
||||||
msgid "Games you hide will appear here."
|
msgid "Games you hide will appear here."
|
||||||
msgstr "A rejtett játékaid itt lesznek megtalálhatók."
|
msgstr "A rejtett játékaid itt lesznek megtalálhatók."
|
||||||
|
|
||||||
#: src/window.blp:29
|
#: data/gtk/window.blp:44 data/gtk/window.blp:254
|
||||||
msgid "Game Shelf"
|
msgid "Back"
|
||||||
msgstr "Játékpolc"
|
msgstr "Vissza"
|
||||||
|
|
||||||
#: src/window.blp:52
|
#: data/gtk/window.blp:51
|
||||||
msgid "Game Details"
|
msgid "Game Details"
|
||||||
msgstr "Játék Részletei"
|
msgstr "Játék Részletei"
|
||||||
|
|
||||||
#: src/window.blp:90
|
#: data/gtk/window.blp:92
|
||||||
msgid "Game Title"
|
msgid "Game Title"
|
||||||
msgstr "Cím"
|
msgstr "Cím"
|
||||||
|
|
||||||
#: src/window.blp:132 src/gtk/game.blp:62 src/gtk/game.blp:88
|
#: data/gtk/window.blp:148 data/gtk/game.blp:38
|
||||||
msgid "Play"
|
msgid "Play"
|
||||||
msgstr "Játék"
|
msgstr "Játék"
|
||||||
|
|
||||||
#: src/window.blp:241
|
#: data/gtk/window.blp:196 data/gtk/window.blp:382
|
||||||
msgid "Hidden Games"
|
|
||||||
msgstr "Rejtett Játékok"
|
|
||||||
|
|
||||||
#: src/window.blp:299
|
|
||||||
msgid "Sort"
|
|
||||||
msgstr "Rendezés"
|
|
||||||
|
|
||||||
#: src/window.blp:302
|
|
||||||
msgid "A-Z"
|
|
||||||
msgstr "A-Z"
|
|
||||||
|
|
||||||
#: src/window.blp:308
|
|
||||||
msgid "Z-A"
|
|
||||||
msgstr "Z-A"
|
|
||||||
|
|
||||||
#: src/window.blp:314
|
|
||||||
msgid "Newest"
|
|
||||||
msgstr "Legújabb"
|
|
||||||
|
|
||||||
#: src/window.blp:320
|
|
||||||
msgid "Oldest"
|
|
||||||
msgstr "Legrégebbi"
|
|
||||||
|
|
||||||
#: src/window.blp:326
|
|
||||||
msgid "Last Played"
|
|
||||||
msgstr "Legutóbb játszott"
|
|
||||||
|
|
||||||
#: src/window.blp:333
|
|
||||||
msgid "Show Hidden"
|
|
||||||
msgstr "Rejtett Játékok"
|
|
||||||
|
|
||||||
#: src/window.blp:341
|
|
||||||
msgid "Preferences"
|
|
||||||
msgstr "Beállítások"
|
|
||||||
|
|
||||||
#: src/window.blp:346
|
|
||||||
msgid "Keyboard Shortcuts"
|
|
||||||
msgstr "Billentyűparancsok"
|
|
||||||
|
|
||||||
#: src/window.blp:351
|
|
||||||
msgid "About Game Shelf"
|
|
||||||
msgstr "A Játékpolcról"
|
|
||||||
|
|
||||||
#: src/window.blp:360
|
|
||||||
msgid "Add Game"
|
msgid "Add Game"
|
||||||
msgstr "Játék Hozzáadása"
|
msgstr "Játék Hozzáadása"
|
||||||
|
|
||||||
#: src/window.blp:365
|
#: data/gtk/window.blp:203 data/gtk/window.blp:266
|
||||||
msgid "Import From Steam"
|
msgid "Main Menu"
|
||||||
msgstr "Importálás Steam-ből"
|
msgstr "Főmenü"
|
||||||
|
|
||||||
#: src/window.blp:370
|
#: data/gtk/window.blp:210 data/gtk/window.blp:273
|
||||||
msgid "Import From Heroic"
|
msgid "Search"
|
||||||
msgstr "Importálás Heroic-ból"
|
msgstr "Keresés"
|
||||||
|
|
||||||
#: src/window.blp:379 src/window.blp:398 src/gtk/game.blp:69
|
#: data/gtk/window.blp:261
|
||||||
#: src/gtk/game.blp:95
|
msgid "Hidden Games"
|
||||||
|
msgstr "Rejtett Játékok"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:321
|
||||||
|
msgid "Sort"
|
||||||
|
msgstr "Rendezés"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:324
|
||||||
|
msgid "A-Z"
|
||||||
|
msgstr "A-Z"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:330
|
||||||
|
msgid "Z-A"
|
||||||
|
msgstr "Z-A"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:336
|
||||||
|
msgid "Newest"
|
||||||
|
msgstr "Legújabb"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:342
|
||||||
|
msgid "Oldest"
|
||||||
|
msgstr "Legrégebbi"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:348
|
||||||
|
msgid "Last Played"
|
||||||
|
msgstr "Legutóbb játszott"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:355
|
||||||
|
msgid "Show Hidden"
|
||||||
|
msgstr "Rejtett Játékok"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:363
|
||||||
|
msgid "Preferences"
|
||||||
|
msgstr "Beállítások"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:368
|
||||||
|
msgid "Keyboard Shortcuts"
|
||||||
|
msgstr "Billentyűparancsok"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:373
|
||||||
|
msgid "About Cartridges"
|
||||||
|
msgstr "A Kazettákról"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:388
|
||||||
|
msgid "Import from"
|
||||||
|
msgstr "Importálás innen"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:390
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr "Steam"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:395
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr "Heroic"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:400
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr "Bottles"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:411 data/gtk/window.blp:430 data/gtk/game.blp:87
|
||||||
|
#: data/gtk/game.blp:106
|
||||||
msgid "Edit"
|
msgid "Edit"
|
||||||
msgstr "Szerkeszt"
|
msgstr "Szerkeszt"
|
||||||
|
|
||||||
#: src/window.blp:384 src/gtk/game.blp:74
|
#: data/gtk/window.blp:416 data/gtk/game.blp:92
|
||||||
msgid "Hide"
|
msgid "Hide"
|
||||||
msgstr "Elrejt"
|
msgstr "Elrejt"
|
||||||
|
|
||||||
#: src/window.blp:389 src/window.blp:408 src/gtk/game.blp:79
|
#: data/gtk/window.blp:421 data/gtk/window.blp:440 data/gtk/game.blp:97
|
||||||
#: src/gtk/game.blp:105
|
#: data/gtk/game.blp:116
|
||||||
msgid "Remove"
|
msgid "Remove"
|
||||||
msgstr "Eltávolít"
|
msgstr "Eltávolít"
|
||||||
|
|
||||||
#: src/window.blp:403 src/gtk/game.blp:100
|
#: data/gtk/window.blp:435 data/gtk/game.blp:111
|
||||||
msgid "Unhide"
|
msgid "Unhide"
|
||||||
msgstr "Mutat"
|
msgstr "Mutat"
|
||||||
|
|
||||||
#: src/gtk/game.blp:32 src/utils/create_details_window.py:82
|
#: data/gtk/game.blp:65 src/utils/create_details_window.py:94
|
||||||
msgid "Title"
|
msgid "Title"
|
||||||
msgstr "Cím"
|
msgstr "Cím"
|
||||||
|
|
||||||
#: src/gtk/preferences.blp:10
|
#: data/gtk/help-overlay.blp:11
|
||||||
|
msgctxt "shortcut window"
|
||||||
msgid "General"
|
msgid "General"
|
||||||
msgstr "Általános"
|
msgstr "Általános"
|
||||||
|
|
||||||
#: src/gtk/preferences.blp:13
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr "Kilépés"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "Keresés"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr "Beállítások mutatása"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr "Billentyűparancsok"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "Visszavonás"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr "Menü megnyitása"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Games"
|
||||||
|
msgstr "Játékok"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr "Új játék hozzáadása"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr "Rejtett játékok megjelenítése"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:10
|
||||||
|
msgid "General"
|
||||||
|
msgstr "Általános"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13
|
||||||
msgid "Exit After Launching Games"
|
msgid "Exit After Launching Games"
|
||||||
msgstr "Kilépés Játékok Indítása Után"
|
msgstr "Kilépés Játékok Indítása Után"
|
||||||
|
|
||||||
#: src/gtk/preferences.blp:25
|
#: data/gtk/preferences.blp:25
|
||||||
msgid "Steam Install Location"
|
msgid "Steam Install Location"
|
||||||
msgstr "Steam Telepítés Helye"
|
msgstr "Steam Telepítés Helye"
|
||||||
|
|
||||||
#: src/gtk/preferences.blp:26 src/gtk/preferences.blp:40
|
#: data/gtk/preferences.blp:26 data/gtk/preferences.blp:64
|
||||||
|
#: data/gtk/preferences.blp:102
|
||||||
msgid "Directory to use when importing games"
|
msgid "Directory to use when importing games"
|
||||||
msgstr "Az importáláskor használatos mappa"
|
msgstr "Az importáláskor használatos mappa"
|
||||||
|
|
||||||
#: src/gtk/preferences.blp:39
|
#: data/gtk/preferences.blp:34
|
||||||
|
msgid "Extra Steam Libraries"
|
||||||
|
msgstr "Extra Steam Könyvtárak"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:35
|
||||||
|
msgid "Select other directories where you have Steam games installed"
|
||||||
|
msgstr "Válasszon ki egyéb mappákat, ahol vannak még Steam játékai"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:42
|
||||||
|
msgid "Clear"
|
||||||
|
msgstr "Törlés"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:63
|
||||||
msgid "Heroic Install Location"
|
msgid "Heroic Install Location"
|
||||||
msgstr "Heroic Telepítés Helye"
|
msgstr "Heroic Telepítés Helye"
|
||||||
|
|
||||||
#: src/gtk/preferences.blp:49
|
#: data/gtk/preferences.blp:73
|
||||||
msgid "Import Epic Games"
|
msgid "Import Epic Games"
|
||||||
msgstr "Epic Games Játékok Importálása"
|
msgstr "Epic Games Játékok Importálása"
|
||||||
|
|
||||||
#: src/gtk/preferences.blp:57
|
#: data/gtk/preferences.blp:81
|
||||||
msgid "Import GOG Games"
|
msgid "Import GOG Games"
|
||||||
msgstr "GOG Játékok Importálása"
|
msgstr "GOG Játékok Importálása"
|
||||||
|
|
||||||
#: src/gtk/preferences.blp:65
|
#: data/gtk/preferences.blp:89
|
||||||
msgid "Import Sideloaded Games"
|
msgid "Import Sideloaded Games"
|
||||||
msgstr "Manuálisan Hozzáadott Játékok Importálása"
|
msgstr "Manuálisan Hozzáadott Játékok Importálása"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:38
|
#: data/gtk/preferences.blp:101
|
||||||
msgid "Add New Game"
|
msgid "Bottles Install Location"
|
||||||
msgstr "Új Játék Hozzáadása"
|
msgstr "Bottles Telepítés Helye"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:42
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
msgid "Confirm"
|
#: src/main.py:130
|
||||||
msgstr "Megerősít"
|
msgid "translator_credits"
|
||||||
|
msgstr "kramo https://kramo.hu"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:44
|
#: src/main.py:195
|
||||||
msgid "Edit Game Details"
|
#, python-brace-format
|
||||||
msgstr "Játék Részleteinek Szerkesztése"
|
msgid "{title} removed"
|
||||||
|
msgstr "{title} eltávolítva"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:48
|
#: src/main.py:196
|
||||||
msgid "Apply"
|
msgid "Undo"
|
||||||
msgstr "Alkalmaz"
|
msgstr "Visszavonás"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:51
|
#: src/window.py:229
|
||||||
msgid "Images"
|
msgid "Today"
|
||||||
msgstr "Képek"
|
msgstr "Ma"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:83
|
#: src/window.py:231
|
||||||
msgid "The title of the game"
|
msgid "Yesterday"
|
||||||
msgstr "A játék címe"
|
msgstr "Tegnap"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:88
|
#. The variable is the date when the game was added
|
||||||
msgid "Executable"
|
#: src/window.py:265
|
||||||
msgstr "Program"
|
#, python-brace-format
|
||||||
|
msgid "Added: {date}"
|
||||||
|
msgstr "Hozzáadva: {date}"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:89
|
#: src/window.py:270
|
||||||
msgid "File to open or command to run when launching the game"
|
msgid "Never"
|
||||||
msgstr "Fájl megnyitása vagy parancs futtatása a játék indításakor"
|
msgstr "Soha"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:98
|
#. The variable is the date when the game was last played
|
||||||
msgid "Cancel"
|
#: src/window.py:274
|
||||||
msgstr "Mégse"
|
#, python-brace-format
|
||||||
|
msgid "Last played: {last_played_date}"
|
||||||
|
msgstr "Legutóbbi játékmenet: {last_played_date}"
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:141
|
#: src/utils/bottles_parser.py:80 src/utils/heroic_parser.py:87
|
||||||
#: src/utils/create_details_window.py:145
|
#: src/utils/steam_parser.py:234
|
||||||
msgid "Couldn't Add Game"
|
|
||||||
msgstr "Nem Lehet Hozzáadni a Játékot"
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:141
|
|
||||||
#: src/utils/create_details_window.py:166
|
|
||||||
msgid "Game title cannot be empty."
|
|
||||||
msgstr "A cím nem lehet üres."
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:145
|
|
||||||
#: src/utils/create_details_window.py:170
|
|
||||||
msgid "Executable cannot be empty."
|
|
||||||
msgstr "A program nem lehet üres."
|
|
||||||
|
|
||||||
#: src/utils/create_details_window.py:166
|
|
||||||
#: src/utils/create_details_window.py:170
|
|
||||||
msgid "Couldn't Apply Preferences"
|
|
||||||
msgstr "Nem Lehet Menteni a Beállításokat"
|
|
||||||
|
|
||||||
#: src/utils/create_dialog.py:24
|
|
||||||
msgid "Dismiss"
|
|
||||||
msgstr "Rendben"
|
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:49 src/utils/heroic_parser.py:49
|
|
||||||
msgid "Couldn't Import Games"
|
msgid "Couldn't Import Games"
|
||||||
msgstr "Nem Lehet Importálni a Játékot"
|
msgstr "Nem Lehet Importálni a Játékot"
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:49
|
#: src/utils/bottles_parser.py:81
|
||||||
msgid "Steam directory cannot be found."
|
msgid "The Bottles directory cannot be found."
|
||||||
msgstr "A Steam mappa nem található."
|
msgstr "A Bottles mappa nem található."
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:49
|
#: src/utils/bottles_parser.py:83
|
||||||
msgid "Set Steam Location"
|
msgid "Set Bottles Location"
|
||||||
msgstr "Steam Mappa Kiválasztása"
|
msgstr "Bottles Mappa Kiválasztása"
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:98
|
#: src/utils/bottles_parser.py:143
|
||||||
msgid "No new games found in Steam library."
|
msgid "No new games were found in the Bottles library."
|
||||||
msgstr "Nem találhatók új játékok a Steam könyvtárban."
|
msgstr "Nem találhatók új játékok a Bottles könyvtárban."
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:100 src/utils/steam_parser.py:102
|
#: src/utils/bottles_parser.py:148 src/utils/bottles_parser.py:155
|
||||||
msgid "Steam Games Imported"
|
msgid "Bottles Games Imported"
|
||||||
msgstr "Steam Játékok Importálva"
|
msgstr "Bottles Játékok Importálva"
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:100 src/utils/heroic_parser.py:155
|
#: src/utils/bottles_parser.py:149 src/utils/heroic_parser.py:260
|
||||||
|
#: src/utils/steam_parser.py:168
|
||||||
msgid "Successfully imported 1 game."
|
msgid "Successfully imported 1 game."
|
||||||
msgstr "1 játék sikeresen importálva."
|
msgstr "1 játék sikeresen importálva."
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:102 src/utils/heroic_parser.py:157
|
#. The variable is the number of games
|
||||||
msgid "Successfully imported"
|
#: src/utils/bottles_parser.py:157 src/utils/heroic_parser.py:268
|
||||||
msgstr "Sikeresen importálva"
|
#: src/utils/steam_parser.py:176
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "Successfully imported {games_no} games."
|
||||||
|
msgstr "{games_no} játék sikeresen importálva."
|
||||||
|
|
||||||
#: src/utils/steam_parser.py:102 src/utils/heroic_parser.py:157
|
#: src/utils/create_details_window.py:41
|
||||||
msgid "games."
|
msgid "Add New Game"
|
||||||
msgstr "játék."
|
msgstr "Új Játék Hozzáadása"
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:49
|
#: src/utils/create_details_window.py:46
|
||||||
msgid "Heroic directory cannot be found."
|
msgid "Confirm"
|
||||||
|
msgstr "Megerősít"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:48
|
||||||
|
msgid "Edit Game Details"
|
||||||
|
msgstr "Játék Részleteinek Szerkesztése"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:57
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr "Alkalmaz"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:59
|
||||||
|
msgid "Images"
|
||||||
|
msgstr "Képek"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:95
|
||||||
|
msgid "The title of the game"
|
||||||
|
msgstr "A játék címe"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:100
|
||||||
|
msgid "Developer"
|
||||||
|
msgstr "Fejlesztő"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:101
|
||||||
|
msgid "The developer or publisher (optional)"
|
||||||
|
msgstr "A fejlesztő vagy kiadó (nem kötelező)"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:111
|
||||||
|
msgid "file.txt"
|
||||||
|
msgstr "fájl.txt"
|
||||||
|
|
||||||
|
#. As in software
|
||||||
|
#: src/utils/create_details_window.py:113
|
||||||
|
msgid "program"
|
||||||
|
msgstr "program"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:117
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "C:\\path\\to\\{exe_name}"
|
||||||
|
msgstr "C:\\útvonal\\a\\programhoz\\{exe_name}"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:118
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "C:\\path\\to\\{file_name}"
|
||||||
|
msgstr "C:\\útvonal\\a\\fájlhoz\\{file_name}"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:121
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "/path/to/{exe_name}"
|
||||||
|
msgstr "/útvonal/a/programhoz/{exe_name}"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:122
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "/path/to/{file_name}"
|
||||||
|
msgstr "/útvonal/a/fájlhoz/{file_name}"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:126
|
||||||
|
#, python-brace-format
|
||||||
|
msgid ""
|
||||||
|
"To launch the executable \"{exe_name}\", use the command:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>\"{exe_path}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"To open the file \"{file_name}\" with the default application, use:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>{command} \"{file_path}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"If the path contains spaces, make sure to wrap it in double quotes!"
|
||||||
|
msgstr ""
|
||||||
|
"Az \"{exe_name}\", program elindításához ezt a parancsot használd:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>\"{exe_path}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"A \"{file_name}\" fájl megnyitásához az alapértelmezett programmal ezt a "
|
||||||
|
"parancsot használd:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>{command} \"{file_path}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"Ha az elérési útvonalban szóközök vannak, rakd az útvonalat idézőjelek közé!"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:149
|
||||||
|
msgid "Executable"
|
||||||
|
msgstr "Program"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:150
|
||||||
|
msgid "File to open or command to run when launching the game"
|
||||||
|
msgstr "Fájl megnyitása vagy parancs futtatása a játék indításakor"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:162
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Mégse"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:208
|
||||||
|
#: src/utils/create_details_window.py:214
|
||||||
|
msgid "Couldn't Add Game"
|
||||||
|
msgstr "Nem Lehet Hozzáadni a Játékot"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:208
|
||||||
|
#: src/utils/create_details_window.py:239
|
||||||
|
msgid "Game title cannot be empty."
|
||||||
|
msgstr "A cím nem lehet üres."
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:214
|
||||||
|
#: src/utils/create_details_window.py:247
|
||||||
|
msgid "Executable cannot be empty."
|
||||||
|
msgstr "A program nem lehet üres."
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:238
|
||||||
|
#: src/utils/create_details_window.py:246
|
||||||
|
msgid "Couldn't Apply Preferences"
|
||||||
|
msgstr "Nem Lehet Menteni a Beállításokat"
|
||||||
|
|
||||||
|
#: src/utils/create_dialog.py:25
|
||||||
|
msgid "Dismiss"
|
||||||
|
msgstr "Rendben"
|
||||||
|
|
||||||
|
#: src/utils/heroic_parser.py:88
|
||||||
|
msgid "The Heroic directory cannot be found."
|
||||||
msgstr "A Heroic mappa nem található."
|
msgstr "A Heroic mappa nem található."
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:49
|
#: src/utils/heroic_parser.py:90
|
||||||
msgid "Set Heroic Location"
|
msgid "Set Heroic Location"
|
||||||
msgstr "Heroic Mappa Kiválasztása"
|
msgstr "Heroic Mappa Kiválasztása"
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:153
|
#: src/utils/heroic_parser.py:254
|
||||||
msgid "No new games found in Heroic library."
|
msgid "No new games were found in the Heroic library."
|
||||||
msgstr "Nem találhatók új játékok a Heroic könyvtárban."
|
msgstr "Nem találhatók új játékok a Heroic könyvtárban."
|
||||||
|
|
||||||
#: src/utils/heroic_parser.py:155 src/utils/heroic_parser.py:157
|
#: src/utils/heroic_parser.py:259 src/utils/heroic_parser.py:266
|
||||||
msgid "Heroic Games Imported"
|
msgid "Heroic Games Imported"
|
||||||
msgstr "Heroic Játékok Importálva"
|
msgstr "Heroic Játékok Importálva"
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:162
|
||||||
|
msgid "No new games were found in the Steam library."
|
||||||
|
msgstr "Nem találhatók új játékok a Steam könyvtárban."
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:167 src/utils/steam_parser.py:174
|
||||||
|
msgid "Steam Games Imported"
|
||||||
|
msgstr "Steam Játékok Importálva"
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:235
|
||||||
|
msgid "The Steam directory cannot be found."
|
||||||
|
msgstr "A Steam mappa nem található."
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:237
|
||||||
|
msgid "Set Steam Location"
|
||||||
|
msgstr "Steam Mappa Kiválasztása"
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:253
|
||||||
|
msgid "Importing Games…"
|
||||||
|
msgstr "Játékok Importálása…"
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:254
|
||||||
|
msgid "Talking to Steam"
|
||||||
|
msgstr "Beszélgetés a Steammel"
|
||||||
|
|
||||||
|
#, python-brace-format
|
||||||
|
#~ msgid "{self.win.games[game_id].name} removed"
|
||||||
|
#~ msgstr "{self.win.games[game_id].name} eltávolítva"
|
||||||
|
|
||||||
|
#~ msgid "Added: {self.get_time(current_game.added)}"
|
||||||
|
#~ msgstr "Hozzáadva: {self.get_time(current_game.added)}"
|
||||||
|
|
||||||
|
#~ msgid "Successfully imported {str(len(bottles_games))} games."
|
||||||
|
#~ msgstr "{str(len(bottles_games))} játék sikeresen importálva."
|
||||||
|
|
||||||
|
#~ msgid "Successfully imported {str(len(heroic_games))} games."
|
||||||
|
#~ msgstr "{str(len(heroic_games))} játék sikeresen importálva."
|
||||||
|
|
||||||
|
#~ msgid "Last played:"
|
||||||
|
#~ msgstr "Legutóbbi játékmenet:"
|
||||||
|
|
||||||
|
#~ msgid "Successfully imported"
|
||||||
|
#~ msgstr "Sikeresen importálva"
|
||||||
|
|
||||||
|
#~ msgid "games."
|
||||||
|
#~ msgstr "játék."
|
||||||
|
|
||||||
|
#~ msgid "kramo"
|
||||||
|
#~ msgstr "kramo"
|
||||||
|
|
||||||
|
#~ msgid "Import From Heroic"
|
||||||
|
#~ msgstr "Importálás Heroic-ból"
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
i18n.gettext('gameshelf', preset: 'glib')
|
i18n.gettext('cartridges', preset: 'glib')
|
||||||
|
|||||||
523
po/nb_NO.po
Normal file
@@ -0,0 +1,523 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the cartridges package.
|
||||||
|
# kramo <contact@kramo.hu>, 2023.
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: cartridges\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2023-03-21 15:48+0100\n"
|
||||||
|
"PO-Revision-Date: 2023-03-21 11:05+0000\n"
|
||||||
|
"Last-Translator: kramo <contact@kramo.hu>\n"
|
||||||
|
"Language-Team: Norwegian Bokmål <https://hosted.weblate.org/projects/"
|
||||||
|
"cartridges/cartridges/nb_NO/>\n"
|
||||||
|
"Language: nb_NO\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.16.2-dev\n"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:3
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:29
|
||||||
|
#: src/main.py:116
|
||||||
|
msgid "Cartridges"
|
||||||
|
msgstr "Cartridges"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:4
|
||||||
|
msgid "Game Launcher"
|
||||||
|
msgstr "Spillutvalgstarter"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
|
msgid "Launch your games"
|
||||||
|
msgstr "Start spillene dine"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
|
msgid "Launch all your games"
|
||||||
|
msgstr "Start alle spillene dine"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
||||||
|
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."
|
||||||
|
msgstr ""
|
||||||
|
"Cartridges er en enkel spillutvalgsoppstarter. Den har støtte for "
|
||||||
|
"importering av spillene dine fra Steam, Heroic, og Bottles, med "
|
||||||
|
"organiseringsfunksjoner som skjuling og sortering etter tillagt dato eller "
|
||||||
|
"sist spilt."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 src/utils/bottles_parser.py:142
|
||||||
|
#: src/utils/heroic_parser.py:253 src/utils/steam_parser.py:161
|
||||||
|
msgid "No Games Found"
|
||||||
|
msgstr "Fant ingen spill"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:7
|
||||||
|
msgid "Try a different search."
|
||||||
|
msgstr "Prøv et forskjellig søk."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:14
|
||||||
|
#, fuzzy
|
||||||
|
msgid "No Games"
|
||||||
|
msgstr "Spill"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:15
|
||||||
|
msgid "Use the + button to add games."
|
||||||
|
msgstr "Bruk «+»-knappen for å legge til spill."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:22
|
||||||
|
msgid "No Hidden Games"
|
||||||
|
msgstr "Ingen skjulte spill"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:23
|
||||||
|
msgid "Games you hide will appear here."
|
||||||
|
msgstr "Spill du skjuler vil vises her."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:44 data/gtk/window.blp:254
|
||||||
|
msgid "Back"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:51
|
||||||
|
msgid "Game Details"
|
||||||
|
msgstr "Spilldetaljer"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:92
|
||||||
|
msgid "Game Title"
|
||||||
|
msgstr "Spillnavn"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:148 data/gtk/game.blp:38
|
||||||
|
msgid "Play"
|
||||||
|
msgstr "Spill"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:196 data/gtk/window.blp:382
|
||||||
|
msgid "Add Game"
|
||||||
|
msgstr "Legg til spill"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:203 data/gtk/window.blp:266
|
||||||
|
msgid "Main Menu"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:210 data/gtk/window.blp:273
|
||||||
|
#, fuzzy
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "Søk"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:261
|
||||||
|
msgid "Hidden Games"
|
||||||
|
msgstr "Skjulte spill"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:321
|
||||||
|
msgid "Sort"
|
||||||
|
msgstr "Sorter"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:324
|
||||||
|
msgid "A-Z"
|
||||||
|
msgstr "A-Å"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:330
|
||||||
|
msgid "Z-A"
|
||||||
|
msgstr "Å-A"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:336
|
||||||
|
msgid "Newest"
|
||||||
|
msgstr "Nyeste"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:342
|
||||||
|
msgid "Oldest"
|
||||||
|
msgstr "Eldste"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:348
|
||||||
|
msgid "Last Played"
|
||||||
|
msgstr "Sist spilt"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:355
|
||||||
|
msgid "Show Hidden"
|
||||||
|
msgstr "Vis skjulte"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:363
|
||||||
|
msgid "Preferences"
|
||||||
|
msgstr "Innstillinger"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:368
|
||||||
|
msgid "Keyboard Shortcuts"
|
||||||
|
msgstr "Tastatursnarveier"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:373
|
||||||
|
msgid "About Cartridges"
|
||||||
|
msgstr "Om"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:388
|
||||||
|
msgid "Import from"
|
||||||
|
msgstr "Importer fra"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:390
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr "Steam"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:395
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr "Heroic"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:400
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr "Bottles"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:411 data/gtk/window.blp:430 data/gtk/game.blp:87
|
||||||
|
#: data/gtk/game.blp:106
|
||||||
|
msgid "Edit"
|
||||||
|
msgstr "Rediger"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:416 data/gtk/game.blp:92
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr "Skjul"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:421 data/gtk/window.blp:440 data/gtk/game.blp:97
|
||||||
|
#: data/gtk/game.blp:116
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr "Fjern"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:435 data/gtk/game.blp:111
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr "Opphev fjerning"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:65 src/utils/create_details_window.py:94
|
||||||
|
msgid "Title"
|
||||||
|
msgstr "Navn"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "General"
|
||||||
|
msgstr "Generelt"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr "Avslutt"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "Søk"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr "Vis innstillinger"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr "Snarveier"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "Angre"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr "Åpne meny"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Games"
|
||||||
|
msgstr "Spill"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr "Legg til nytt spill"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr "Vis skjulte spill"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:10
|
||||||
|
msgid "General"
|
||||||
|
msgstr "Generelt"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr "Avslutt etter oppstart av spill"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Steam Install Location"
|
||||||
|
msgstr "Installasjonssted for Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26 data/gtk/preferences.blp:64
|
||||||
|
#: data/gtk/preferences.blp:102
|
||||||
|
msgid "Directory to use when importing games"
|
||||||
|
msgstr "Mappe å bruke ved import av spill"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:34
|
||||||
|
msgid "Extra Steam Libraries"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:35
|
||||||
|
msgid "Select other directories where you have Steam games installed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:42
|
||||||
|
msgid "Clear"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:63
|
||||||
|
msgid "Heroic Install Location"
|
||||||
|
msgstr "Installasjonssted for Heroic"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:73
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr "Importer Epic-spill"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:81
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr "Importer GOG-spill"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:89
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr "Importer sideinnlastede spill"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:101
|
||||||
|
msgid "Bottles Install Location"
|
||||||
|
msgstr "Installasjonssted for Bottles"
|
||||||
|
|
||||||
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
|
#: src/main.py:130
|
||||||
|
msgid "translator_credits"
|
||||||
|
msgstr "Allan Nordhøy, <epost@anotheragency.no>"
|
||||||
|
|
||||||
|
#: src/main.py:195
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "{title} removed"
|
||||||
|
msgstr "{title} fjernet"
|
||||||
|
|
||||||
|
#: src/main.py:196
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "Angre"
|
||||||
|
|
||||||
|
#: src/window.py:229
|
||||||
|
msgid "Today"
|
||||||
|
msgstr "I dag"
|
||||||
|
|
||||||
|
#: src/window.py:231
|
||||||
|
msgid "Yesterday"
|
||||||
|
msgstr "I går"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was added
|
||||||
|
#: src/window.py:265
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "Added: {date}"
|
||||||
|
msgstr "Tillagt: {date}"
|
||||||
|
|
||||||
|
#: src/window.py:270
|
||||||
|
msgid "Never"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the date when the game was last played
|
||||||
|
#: src/window.py:274
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "Last played: {last_played_date}"
|
||||||
|
msgstr "Sist spilt: {last_played_date}"
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:80 src/utils/heroic_parser.py:87
|
||||||
|
#: src/utils/steam_parser.py:234
|
||||||
|
msgid "Couldn't Import Games"
|
||||||
|
msgstr "Kunne ikke importere spill"
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:81
|
||||||
|
msgid "The Bottles directory cannot be found."
|
||||||
|
msgstr "Finner ikke Bottles-mappen."
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:83
|
||||||
|
msgid "Set Bottles Location"
|
||||||
|
msgstr "Sett mappe for Bottles"
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:143
|
||||||
|
msgid "No new games were found in the Bottles library."
|
||||||
|
msgstr "Fant ingen nye spill i Bottles-biblioteket."
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:148 src/utils/bottles_parser.py:155
|
||||||
|
msgid "Bottles Games Imported"
|
||||||
|
msgstr "Bottles-spill importert"
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:149 src/utils/heroic_parser.py:260
|
||||||
|
#: src/utils/steam_parser.py:168
|
||||||
|
msgid "Successfully imported 1 game."
|
||||||
|
msgstr "Importerte ett spill."
|
||||||
|
|
||||||
|
#. The variable is the number of games
|
||||||
|
#: src/utils/bottles_parser.py:157 src/utils/heroic_parser.py:268
|
||||||
|
#: src/utils/steam_parser.py:176
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "Successfully imported {games_no} games."
|
||||||
|
msgstr "Importerte {games_no} spill."
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:41
|
||||||
|
msgid "Add New Game"
|
||||||
|
msgstr "Legg til nytt spill"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:46
|
||||||
|
msgid "Confirm"
|
||||||
|
msgstr "Bekreft"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:48
|
||||||
|
msgid "Edit Game Details"
|
||||||
|
msgstr "Rediger spilldetaljer"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:57
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr "Bruk"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:59
|
||||||
|
msgid "Images"
|
||||||
|
msgstr "Bilder"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:95
|
||||||
|
msgid "The title of the game"
|
||||||
|
msgstr "Navnet på spillet"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:100
|
||||||
|
msgid "Developer"
|
||||||
|
msgstr "Utvikler"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:101
|
||||||
|
msgid "The developer or publisher (optional)"
|
||||||
|
msgstr "Utvikler eller utgiver (valgfritt)"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:111
|
||||||
|
msgid "file.txt"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. As in software
|
||||||
|
#: src/utils/create_details_window.py:113
|
||||||
|
msgid "program"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:117
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "C:\\path\\to\\{exe_name}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:118
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "C:\\path\\to\\{file_name}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:121
|
||||||
|
#, 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 ""
|
||||||
|
"To launch the executable \"{exe_name}\", use the command:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>\"{exe_path}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"To open the file \"{file_name}\" with the default application, use:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>{command} \"{file_path}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"If the path contains spaces, make sure to wrap it in double quotes!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:149
|
||||||
|
msgid "Executable"
|
||||||
|
msgstr "Kjørbar"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:150
|
||||||
|
msgid "File to open or command to run when launching the game"
|
||||||
|
msgstr "Fil å åpne eller kommando å kjøre ved oppstart av spillet"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:162
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Avbryt"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:208
|
||||||
|
#: src/utils/create_details_window.py:214
|
||||||
|
msgid "Couldn't Add Game"
|
||||||
|
msgstr "Kunne ikke legge til spill"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:208
|
||||||
|
#: src/utils/create_details_window.py:239
|
||||||
|
msgid "Game title cannot be empty."
|
||||||
|
msgstr "Spillnavnet kan ikke være tomt."
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:214
|
||||||
|
#: src/utils/create_details_window.py:247
|
||||||
|
msgid "Executable cannot be empty."
|
||||||
|
msgstr "Kjørbar fil må angis."
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:238
|
||||||
|
#: src/utils/create_details_window.py:246
|
||||||
|
msgid "Couldn't Apply Preferences"
|
||||||
|
msgstr "Kunne ikke ta i bruk endringer"
|
||||||
|
|
||||||
|
#: src/utils/create_dialog.py:25
|
||||||
|
msgid "Dismiss"
|
||||||
|
msgstr "Forkast"
|
||||||
|
|
||||||
|
#: src/utils/heroic_parser.py:88
|
||||||
|
msgid "The Heroic directory cannot be found."
|
||||||
|
msgstr "Finner ikke Heroic-spillmappen."
|
||||||
|
|
||||||
|
#: src/utils/heroic_parser.py:90
|
||||||
|
msgid "Set Heroic Location"
|
||||||
|
msgstr "Velg hvor Heroic er å finne"
|
||||||
|
|
||||||
|
#: src/utils/heroic_parser.py:254
|
||||||
|
msgid "No new games were found in the Heroic library."
|
||||||
|
msgstr "Fant ingen nye spill i Heroic-biblioteket."
|
||||||
|
|
||||||
|
#: src/utils/heroic_parser.py:259 src/utils/heroic_parser.py:266
|
||||||
|
msgid "Heroic Games Imported"
|
||||||
|
msgstr "Heroic-spill importert"
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:162
|
||||||
|
msgid "No new games were found in the Steam library."
|
||||||
|
msgstr "Fant ingen nye spill i Steam-biblioteket."
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:167 src/utils/steam_parser.py:174
|
||||||
|
msgid "Steam Games Imported"
|
||||||
|
msgstr "Steam-spill importert"
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:235
|
||||||
|
msgid "The Steam directory cannot be found."
|
||||||
|
msgstr "Kunne ikke finne Steam-mappen."
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:237
|
||||||
|
msgid "Set Steam Location"
|
||||||
|
msgstr "Velg hvor Steam er å finne"
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:253
|
||||||
|
msgid "Importing Games…"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:254
|
||||||
|
msgid "Talking to Steam"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "Successfully imported {str(len(bottles_games))} games."
|
||||||
|
#~ msgstr "Importerte ett spill."
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "Successfully imported {str(len(heroic_games))} games."
|
||||||
|
#~ msgstr "Importerte ett spill."
|
||||||
|
|
||||||
|
#~ msgid "Last played:"
|
||||||
|
#~ msgstr "Sist spilt:"
|
||||||
|
|
||||||
|
#~ msgid "Successfully imported"
|
||||||
|
#~ msgstr "Importert"
|
||||||
|
|
||||||
|
#~ msgid "games."
|
||||||
|
#~ msgstr "spill."
|
||||||
529
po/ta.po
Normal file
@@ -0,0 +1,529 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the cartridges package.
|
||||||
|
# K.B.Dharun Krishna <kbdharunkrishna@gmail.com>, 2023.
|
||||||
|
# kramo <contact@kramo.hu>, 2023.
|
||||||
|
# "K.B.Dharun Krishna" <kbdharunkrishna@gmail.com>, 2023.
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: \n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2023-03-21 15:48+0100\n"
|
||||||
|
"PO-Revision-Date: 2023-03-18 23:40+0000\n"
|
||||||
|
"Last-Translator: \"K.B.Dharun Krishna\" <kbdharunkrishna@gmail.com>\n"
|
||||||
|
"Language-Team: Tamil <https://hosted.weblate.org/projects/cartridges/"
|
||||||
|
"cartridges/ta/>\n"
|
||||||
|
"Language: ta\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.16.2-dev\n"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:3
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:29
|
||||||
|
#: src/main.py:116
|
||||||
|
msgid "Cartridges"
|
||||||
|
msgstr "கார்ட்ரிட்ஜ்கள்"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:4
|
||||||
|
msgid "Game Launcher"
|
||||||
|
msgstr "விளையாட்டு துவக்கி"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
|
msgid "Launch your games"
|
||||||
|
msgstr "உங்கள் விளையாட்டுகளைத் தொடங்கவும்"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
|
msgid "Launch all your games"
|
||||||
|
msgstr "உங்கள் எல்லா விளையாட்டுகளையும் தொடங்கவும்"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
||||||
|
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."
|
||||||
|
msgstr ""
|
||||||
|
"கார்ட்ரிட்ஜ்கள் ஒரு எளிய விளையாட்டு துவக்கி. இது உங்கள் விளையாட்டுகளை ஸ்டீம், ஹீரோயிக் "
|
||||||
|
"மற்றும் பாட்டில்களில் இருந்து இறக்குமதி செய்வதற்கான ஆதரவைக் கொண்டுள்ளது, அதாவது மறைத்தல் "
|
||||||
|
"மற்றும் சேர்த்த அல்லது கடைசியாக விளையாடிய தேதியின்படி வரிசைப்படுத்துதல் போன்ற நிறுவன "
|
||||||
|
"அம்சங்களுடன்."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 src/utils/bottles_parser.py:142
|
||||||
|
#: src/utils/heroic_parser.py:253 src/utils/steam_parser.py:161
|
||||||
|
msgid "No Games Found"
|
||||||
|
msgstr "விளையாட்டுகள் எதுவும் இல்லை"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:7
|
||||||
|
msgid "Try a different search."
|
||||||
|
msgstr "வேறு தேடலை முயற்சிக்கவும்."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:14
|
||||||
|
#, fuzzy
|
||||||
|
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:51
|
||||||
|
msgid "Game Details"
|
||||||
|
msgstr "விளையாட்டு விவரங்கள்"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:92
|
||||||
|
msgid "Game Title"
|
||||||
|
msgstr "விளையாட்டு தலைப்பு"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:148 data/gtk/game.blp:38
|
||||||
|
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
|
||||||
|
#, fuzzy
|
||||||
|
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 "A-Z"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:330
|
||||||
|
msgid "Z-A"
|
||||||
|
msgstr "Z-A"
|
||||||
|
|
||||||
|
#: 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:363
|
||||||
|
msgid "Preferences"
|
||||||
|
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 "Steam (ஸ்டீம்)"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:395
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr "Heroic (ஹீரோயிக்)"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:400
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr "Bottles (பாட்டில்கள்)"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:411 data/gtk/window.blp:430 data/gtk/game.blp:87
|
||||||
|
#: data/gtk/game.blp:106
|
||||||
|
msgid "Edit"
|
||||||
|
msgstr "தொகு"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:416 data/gtk/game.blp:92
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr "மறை"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:421 data/gtk/window.blp:440 data/gtk/game.blp:97
|
||||||
|
#: data/gtk/game.blp:116
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr "அகற்று"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:435 data/gtk/game.blp:111
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr "மறை காட்டு"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:65 src/utils/create_details_window.py:94
|
||||||
|
msgid "Title"
|
||||||
|
msgstr "தலைப்பு"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "General"
|
||||||
|
msgstr "பொது"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr "வெளியேறு"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "தேடு"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr "விருப்பங்களைக் காட்டு"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr "குறுக்குவழிகள்"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "செயல்தவிர்"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr "பட்டியலை திறக்கவும்"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Games"
|
||||||
|
msgstr "விளையாட்டுகள்"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr "புதிய விளையாட்டைச் சேர்க்கவும்"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr "மறைக்கப்பட்ட விளையாட்டுகளைக் காட்டு"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:10
|
||||||
|
msgid "General"
|
||||||
|
msgstr "பொது"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr "விளையாட்டுகளை தொடங்கிய பிறகு வெளியேறவும்"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Steam Install Location"
|
||||||
|
msgstr "Steam (ஸ்டீம்) நிறுவல் இடம்"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26 data/gtk/preferences.blp:64
|
||||||
|
#: data/gtk/preferences.blp:102
|
||||||
|
msgid "Directory to use when importing games"
|
||||||
|
msgstr "விளையாட்டுகளை இறக்குமதி செய்யும் போது பயன்படுத்த வேண்டிய அடைவு"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:34
|
||||||
|
msgid "Extra Steam Libraries"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:35
|
||||||
|
msgid "Select other directories where you have Steam games installed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:42
|
||||||
|
msgid "Clear"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:63
|
||||||
|
msgid "Heroic Install Location"
|
||||||
|
msgstr "Heroic (ஹீரோயிக்) நிறுவல் இடம்"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:73
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr "Epic விளையாட்டுகளை இறக்குமதி செய்"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:81
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr "GOG விளையாட்டுகளை இறக்குமதி செய்யவும்"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:89
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr "பக்க ஏற்றப்பட்ட விளையாட்டுகளை இறக்குமதி செய்யவும்"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:101
|
||||||
|
msgid "Bottles Install Location"
|
||||||
|
msgstr "Bottles (பாட்டில்கள்) நிறுவும் இடம்"
|
||||||
|
|
||||||
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
|
#: src/main.py:130
|
||||||
|
msgid "translator_credits"
|
||||||
|
msgstr "K.B.Dharun Krishna <kbdharunkrishna@gmail.com>"
|
||||||
|
|
||||||
|
#: src/main.py:195
|
||||||
|
#, fuzzy, python-brace-format
|
||||||
|
msgid "{title} removed"
|
||||||
|
msgstr "அகற்றப்பட்டது"
|
||||||
|
|
||||||
|
#: src/main.py:196
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "செயல்தவிர்"
|
||||||
|
|
||||||
|
#: src/window.py:229
|
||||||
|
msgid "Today"
|
||||||
|
msgstr "இன்று"
|
||||||
|
|
||||||
|
#: src/window.py:231
|
||||||
|
msgid "Yesterday"
|
||||||
|
msgstr "நேற்று"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was added
|
||||||
|
#: src/window.py:265
|
||||||
|
#, fuzzy, python-brace-format
|
||||||
|
msgid "Added: {date}"
|
||||||
|
msgstr "சேர்க்கப்பட்டது:"
|
||||||
|
|
||||||
|
#: src/window.py:270
|
||||||
|
msgid "Never"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. The variable is the date when the game was last played
|
||||||
|
#: src/window.py:274
|
||||||
|
#, fuzzy, python-brace-format
|
||||||
|
msgid "Last played: {last_played_date}"
|
||||||
|
msgstr "கடைசியாக விளையாடியது: ஒருபோதும் இல்லை"
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:80 src/utils/heroic_parser.py:87
|
||||||
|
#: src/utils/steam_parser.py:234
|
||||||
|
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:143
|
||||||
|
msgid "No new games were found in the Bottles library."
|
||||||
|
msgstr "பாட்டில்கள் நூலகத்தில் புதிய விளையாட்டுகள் எதுவும் இல்லை."
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:148 src/utils/bottles_parser.py:155
|
||||||
|
msgid "Bottles Games Imported"
|
||||||
|
msgstr "பாட்டில் விளையாட்டுகள் இறக்குமதி செய்யப்பட்டன"
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:149 src/utils/heroic_parser.py:260
|
||||||
|
#: src/utils/steam_parser.py:168
|
||||||
|
msgid "Successfully imported 1 game."
|
||||||
|
msgstr "1 விளையாட்டு வெற்றிகரமாக இறக்குமதி செய்யப்பட்டது."
|
||||||
|
|
||||||
|
#. The variable is the number of games
|
||||||
|
#: src/utils/bottles_parser.py:157 src/utils/heroic_parser.py:268
|
||||||
|
#: src/utils/steam_parser.py:176
|
||||||
|
#, fuzzy, python-brace-format
|
||||||
|
msgid "Successfully imported {games_no} games."
|
||||||
|
msgstr "1 விளையாட்டு வெற்றிகரமாக இறக்குமதி செய்யப்பட்டது."
|
||||||
|
|
||||||
|
#: 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:48
|
||||||
|
msgid "Edit Game Details"
|
||||||
|
msgstr "விளையாட்டு விவரங்களைத் திருத்து"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:57
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr "விண்ணப்பி"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:59
|
||||||
|
msgid "Images"
|
||||||
|
msgstr "படங்கள்"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:95
|
||||||
|
msgid "The title of the game"
|
||||||
|
msgstr "விளையாட்டின் தலைப்பு"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:100
|
||||||
|
msgid "Developer"
|
||||||
|
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"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. As in software
|
||||||
|
#: src/utils/create_details_window.py:113
|
||||||
|
msgid "program"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:117
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "C:\\path\\to\\{exe_name}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:118
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "C:\\path\\to\\{file_name}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:121
|
||||||
|
#, 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 ""
|
||||||
|
"To launch the executable \"{exe_name}\", use the command:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>\"{exe_path}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"To open the file \"{file_name}\" with the default application, use:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>{command} \"{file_path}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"If the path contains spaces, make sure to wrap it in double quotes!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:149
|
||||||
|
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:208
|
||||||
|
#: src/utils/create_details_window.py:214
|
||||||
|
msgid "Couldn't Add Game"
|
||||||
|
msgstr "விளையாட்டைச் சேர்க்க முடியவில்லை"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:208
|
||||||
|
#: src/utils/create_details_window.py:239
|
||||||
|
msgid "Game title cannot be empty."
|
||||||
|
msgstr "விளையாட்டு தலைப்பு காலியாக இருக்கக்கூடாது."
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:214
|
||||||
|
#: src/utils/create_details_window.py:247
|
||||||
|
msgid "Executable cannot be empty."
|
||||||
|
msgstr "இயங்கக்கூடியது காலியாக இருக்க முடியாது."
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:238
|
||||||
|
#: src/utils/create_details_window.py:246
|
||||||
|
msgid "Couldn't Apply Preferences"
|
||||||
|
msgstr "விருப்பத்தேர்வுகளைப் பயன்படுத்த முடியவில்லை"
|
||||||
|
|
||||||
|
#: src/utils/create_dialog.py:25
|
||||||
|
msgid "Dismiss"
|
||||||
|
msgstr "நிராகரி"
|
||||||
|
|
||||||
|
#: src/utils/heroic_parser.py:88
|
||||||
|
msgid "The Heroic directory cannot be found."
|
||||||
|
msgstr "Heroic (ஹீரோயிக்) கோப்பகத்தைக் கண்டுபிடிக்க முடியவில்லை."
|
||||||
|
|
||||||
|
#: src/utils/heroic_parser.py:90
|
||||||
|
msgid "Set Heroic Location"
|
||||||
|
msgstr "Heroic (ஹீரோயிக்) இருப்பிடத்தை அமைக்கவும்"
|
||||||
|
|
||||||
|
#: src/utils/heroic_parser.py:254
|
||||||
|
msgid "No new games were found in the Heroic library."
|
||||||
|
msgstr "Heroic (ஹீரோயிக்) நூலகத்தில் புதிய விளையாட்டுகள் எதுவும் இல்லை."
|
||||||
|
|
||||||
|
#: src/utils/heroic_parser.py:259 src/utils/heroic_parser.py:266
|
||||||
|
msgid "Heroic Games Imported"
|
||||||
|
msgstr "Heroic (ஹீரோயிக்) விளையாட்டுகள் இறக்குமதி செய்யப்பட்டன"
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:162
|
||||||
|
msgid "No new games were found in the Steam library."
|
||||||
|
msgstr "Steam (ஸ்டீம்) நூலகத்தில் புதிய விளையாட்டுகள் எதுவும் இல்லை."
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:167 src/utils/steam_parser.py:174
|
||||||
|
msgid "Steam Games Imported"
|
||||||
|
msgstr "Steam (ஸ்டீம்) விளையாட்டுகள் இறக்குமதி செய்யப்பட்டன"
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:235
|
||||||
|
msgid "The Steam directory cannot be found."
|
||||||
|
msgstr "Steam (ஸ்டீம்) கோப்பகத்தைக் கண்டறிய முடியவில்லை."
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:237
|
||||||
|
msgid "Set Steam Location"
|
||||||
|
msgstr "Steam (ஸ்டீம் இடத்தை அமைக்கவும்"
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:253
|
||||||
|
#, fuzzy
|
||||||
|
msgid "Importing Games…"
|
||||||
|
msgstr "விளையாட்டுகளை இறக்குமதி செய்கிறது…"
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:254
|
||||||
|
msgid "Talking to Steam"
|
||||||
|
msgstr "ஸ்டிமுடன் (Steam) பேசுகிறேன்"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "Successfully imported {str(len(bottles_games))} games."
|
||||||
|
#~ msgstr "1 விளையாட்டு வெற்றிகரமாக இறக்குமதி செய்யப்பட்டது."
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "Successfully imported {str(len(heroic_games))} games."
|
||||||
|
#~ msgstr "1 விளையாட்டு வெற்றிகரமாக இறக்குமதி செய்யப்பட்டது."
|
||||||
|
|
||||||
|
#~ msgid "Last played:"
|
||||||
|
#~ msgstr "கடைசியாக விளையாடியது:"
|
||||||
|
|
||||||
|
#~ msgid "Successfully imported"
|
||||||
|
#~ msgstr "வெற்றிகரமாக இறக்குமதி செய்யப்பட்டது"
|
||||||
|
|
||||||
|
#~ msgid "games."
|
||||||
|
#~ msgstr "விளையாட்டுகள்."
|
||||||
|
|
||||||
|
#~ msgid "kramo"
|
||||||
|
#~ msgstr "கிராமோ"
|
||||||
534
po/uk.po
Normal file
@@ -0,0 +1,534 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the cartridges package.
|
||||||
|
# kramo <contact@kramo.hu>, 2023.
|
||||||
|
# Dan <denqwerta@gmail.com>, 2023.
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: cartridges\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2023-03-21 15:48+0100\n"
|
||||||
|
"PO-Revision-Date: 2023-03-21 13:12+0000\n"
|
||||||
|
"Last-Translator: Dan <denqwerta@gmail.com>\n"
|
||||||
|
"Language-Team: Ukrainian <https://hosted.weblate.org/projects/cartridges/"
|
||||||
|
"cartridges/uk/>\n"
|
||||||
|
"Language: uk\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 4.16.2-dev\n"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:3
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:29
|
||||||
|
#: src/main.py:116
|
||||||
|
msgid "Cartridges"
|
||||||
|
msgstr "Cartridges"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:4
|
||||||
|
msgid "Game Launcher"
|
||||||
|
msgstr "Ігровий лаунчер"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.desktop.in:5
|
||||||
|
msgid "Launch your games"
|
||||||
|
msgstr "Запустіть свої ігри"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
|
||||||
|
msgid "Launch all your games"
|
||||||
|
msgstr "Запустіть усі свої ігри"
|
||||||
|
|
||||||
|
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
|
||||||
|
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."
|
||||||
|
msgstr ""
|
||||||
|
"Cartridges — це простий ігровий лаунчер. Він підтримує імпорт ваших ігор із "
|
||||||
|
"Steam, Heroic та Bottles із такими організаційними функціями, як "
|
||||||
|
"приховування та сортування за датою додавання чи останньої гри."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:6 src/utils/bottles_parser.py:142
|
||||||
|
#: src/utils/heroic_parser.py:253 src/utils/steam_parser.py:161
|
||||||
|
msgid "No Games Found"
|
||||||
|
msgstr "Ігор не знайдено"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:7
|
||||||
|
msgid "Try a different search."
|
||||||
|
msgstr "Спробуйте інший пошук."
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:14
|
||||||
|
#, fuzzy
|
||||||
|
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:51
|
||||||
|
msgid "Game Details"
|
||||||
|
msgstr "Подробиці гри"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:92
|
||||||
|
msgid "Game Title"
|
||||||
|
msgstr "Назва гри"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:148 data/gtk/game.blp:38
|
||||||
|
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
|
||||||
|
#, fuzzy
|
||||||
|
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:363
|
||||||
|
msgid "Preferences"
|
||||||
|
msgstr "Параметри"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:368
|
||||||
|
msgid "Keyboard Shortcuts"
|
||||||
|
msgstr "Комбінації клавіш"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:373
|
||||||
|
msgid "About Cartridges"
|
||||||
|
msgstr "Про Cartridges"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:388
|
||||||
|
msgid "Import from"
|
||||||
|
msgstr "Імпорт з"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:390
|
||||||
|
msgid "Steam"
|
||||||
|
msgstr "Steam"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:395
|
||||||
|
msgid "Heroic"
|
||||||
|
msgstr "Heroic"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:400
|
||||||
|
msgid "Bottles"
|
||||||
|
msgstr "Bottles"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:411 data/gtk/window.blp:430 data/gtk/game.blp:87
|
||||||
|
#: data/gtk/game.blp:106
|
||||||
|
msgid "Edit"
|
||||||
|
msgstr "Редагувати"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:416 data/gtk/game.blp:92
|
||||||
|
msgid "Hide"
|
||||||
|
msgstr "Приховати"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:421 data/gtk/window.blp:440 data/gtk/game.blp:97
|
||||||
|
#: data/gtk/game.blp:116
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr "Видалити"
|
||||||
|
|
||||||
|
#: data/gtk/window.blp:435 data/gtk/game.blp:111
|
||||||
|
msgid "Unhide"
|
||||||
|
msgstr "Показати"
|
||||||
|
|
||||||
|
#: data/gtk/game.blp:65 src/utils/create_details_window.py:94
|
||||||
|
msgid "Title"
|
||||||
|
msgstr "Назва"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:11
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "General"
|
||||||
|
msgstr "Загальний"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:14
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr "Вийти"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:19
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Search"
|
||||||
|
msgstr "Пошук"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:24
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Show preferences"
|
||||||
|
msgstr "Показати параметри"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:29
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Shortcuts"
|
||||||
|
msgstr "Ярлики"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:34
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "Відмінити"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:39
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Open menu"
|
||||||
|
msgstr "Відкрити меню"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:45
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Games"
|
||||||
|
msgstr "Ігри"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:48
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Add new game"
|
||||||
|
msgstr "Додати нову гру"
|
||||||
|
|
||||||
|
#: data/gtk/help-overlay.blp:53
|
||||||
|
msgctxt "shortcut window"
|
||||||
|
msgid "Show hidden games"
|
||||||
|
msgstr "Показати приховані ігри"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:10
|
||||||
|
msgid "General"
|
||||||
|
msgstr "Загальний"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:13
|
||||||
|
msgid "Exit After Launching Games"
|
||||||
|
msgstr "Вихід після запуску ігор"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:25
|
||||||
|
msgid "Steam Install Location"
|
||||||
|
msgstr "Місце встановлення Steam"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:26 data/gtk/preferences.blp:64
|
||||||
|
#: data/gtk/preferences.blp:102
|
||||||
|
msgid "Directory to use when importing games"
|
||||||
|
msgstr "Каталог для імпорту ігор"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:34
|
||||||
|
msgid "Extra Steam Libraries"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:35
|
||||||
|
msgid "Select other directories where you have Steam games installed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:42
|
||||||
|
msgid "Clear"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:63
|
||||||
|
msgid "Heroic Install Location"
|
||||||
|
msgstr "Місце встановлення Heroic"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:73
|
||||||
|
msgid "Import Epic Games"
|
||||||
|
msgstr "Імпорт Epic Games"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:81
|
||||||
|
msgid "Import GOG Games"
|
||||||
|
msgstr "Імпорт ігор GOG"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:89
|
||||||
|
msgid "Import Sideloaded Games"
|
||||||
|
msgstr "Імпорт сторонніх ігор"
|
||||||
|
|
||||||
|
#: data/gtk/preferences.blp:101
|
||||||
|
msgid "Bottles Install Location"
|
||||||
|
msgstr "Місце встановлення Bottles"
|
||||||
|
|
||||||
|
#. Translators: Replace this with your name for it to show up in the about window
|
||||||
|
#: src/main.py:130
|
||||||
|
msgid "translator_credits"
|
||||||
|
msgstr "kefir2105"
|
||||||
|
|
||||||
|
#: src/main.py:195
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "{title} removed"
|
||||||
|
msgstr "{title} видалено"
|
||||||
|
|
||||||
|
#: src/main.py:196
|
||||||
|
msgid "Undo"
|
||||||
|
msgstr "Відмінити"
|
||||||
|
|
||||||
|
#: src/window.py:229
|
||||||
|
msgid "Today"
|
||||||
|
msgstr "Сьогодні"
|
||||||
|
|
||||||
|
#: src/window.py:231
|
||||||
|
msgid "Yesterday"
|
||||||
|
msgstr "Вчора"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was added
|
||||||
|
#: src/window.py:265
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "Added: {date}"
|
||||||
|
msgstr "Додано: {date}"
|
||||||
|
|
||||||
|
#: src/window.py:270
|
||||||
|
msgid "Never"
|
||||||
|
msgstr "Ніколи"
|
||||||
|
|
||||||
|
#. The variable is the date when the game was last played
|
||||||
|
#: src/window.py:274
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "Last played: {last_played_date}"
|
||||||
|
msgstr "Останній раз грали: {last_played_date}"
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:80 src/utils/heroic_parser.py:87
|
||||||
|
#: src/utils/steam_parser.py:234
|
||||||
|
msgid "Couldn't Import Games"
|
||||||
|
msgstr "Не вдається імпортувати ігри"
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:81
|
||||||
|
msgid "The Bottles directory cannot be found."
|
||||||
|
msgstr "Каталог Bottles не знайдено."
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:83
|
||||||
|
msgid "Set Bottles Location"
|
||||||
|
msgstr "Встановити розташування Bottles"
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:143
|
||||||
|
msgid "No new games were found in the Bottles library."
|
||||||
|
msgstr "У бібліотеці Bottles нових ігор не знайдено."
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:148 src/utils/bottles_parser.py:155
|
||||||
|
msgid "Bottles Games Imported"
|
||||||
|
msgstr "Ігри Bottles імпортовано"
|
||||||
|
|
||||||
|
#: src/utils/bottles_parser.py:149 src/utils/heroic_parser.py:260
|
||||||
|
#: src/utils/steam_parser.py:168
|
||||||
|
msgid "Successfully imported 1 game."
|
||||||
|
msgstr "Успішно імпортовано 1 гру."
|
||||||
|
|
||||||
|
#. The variable is the number of games
|
||||||
|
#: src/utils/bottles_parser.py:157 src/utils/heroic_parser.py:268
|
||||||
|
#: src/utils/steam_parser.py:176
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "Successfully imported {games_no} games."
|
||||||
|
msgstr "Успішно імпортовано {games_no} ігри."
|
||||||
|
|
||||||
|
#: 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:48
|
||||||
|
msgid "Edit Game Details"
|
||||||
|
msgstr "Редагувати інформацію про гру"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:57
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr "Застосувати"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:59
|
||||||
|
msgid "Images"
|
||||||
|
msgstr "Зображення"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:95
|
||||||
|
msgid "The title of the game"
|
||||||
|
msgstr "Назва гри"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:100
|
||||||
|
msgid "Developer"
|
||||||
|
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"
|
||||||
|
msgstr "file.txt"
|
||||||
|
|
||||||
|
#. As in software
|
||||||
|
#: src/utils/create_details_window.py:113
|
||||||
|
msgid "program"
|
||||||
|
msgstr "програма"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:117
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "C:\\path\\to\\{exe_name}"
|
||||||
|
msgstr "C:\\path\\to\\{exe_name}"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:118
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "C:\\path\\to\\{file_name}"
|
||||||
|
msgstr "C:\\path\\to\\{file_name}"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:121
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "/path/to/{exe_name}"
|
||||||
|
msgstr "/path/to/{exe_name}"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:122
|
||||||
|
#, python-brace-format
|
||||||
|
msgid "/path/to/{file_name}"
|
||||||
|
msgstr "/path/to/{file_name}"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:126
|
||||||
|
#, python-brace-format
|
||||||
|
msgid ""
|
||||||
|
"To launch the executable \"{exe_name}\", use the command:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>\"{exe_path}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"To open the file \"{file_name}\" with the default application, use:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>{command} \"{file_path}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"If the path contains spaces, make sure to wrap it in double quotes!"
|
||||||
|
msgstr ""
|
||||||
|
"Щоб запустити виконуваний файл \"{exe_name}\", скористайтеся командою:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>\"{exe_path}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"Щоб відкрити файл \"{file_name}\" за допомогою застосунку за замовчуванням, "
|
||||||
|
"скористайтеся:\n"
|
||||||
|
"\n"
|
||||||
|
"<tt>{command} \"{file_path}\"</tt>\n"
|
||||||
|
"\n"
|
||||||
|
"Якщо шлях містить пробіли, обов'язково візьміть його в подвійні лапки!"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:149
|
||||||
|
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:208
|
||||||
|
#: src/utils/create_details_window.py:214
|
||||||
|
msgid "Couldn't Add Game"
|
||||||
|
msgstr "Не вдалося додати гру"
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:208
|
||||||
|
#: src/utils/create_details_window.py:239
|
||||||
|
msgid "Game title cannot be empty."
|
||||||
|
msgstr "Назва гри не може бути порожньою."
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:214
|
||||||
|
#: src/utils/create_details_window.py:247
|
||||||
|
msgid "Executable cannot be empty."
|
||||||
|
msgstr "Виконуваний файл не може бути порожнім."
|
||||||
|
|
||||||
|
#: src/utils/create_details_window.py:238
|
||||||
|
#: src/utils/create_details_window.py:246
|
||||||
|
msgid "Couldn't Apply Preferences"
|
||||||
|
msgstr "Не вдалося застосувати параметри"
|
||||||
|
|
||||||
|
#: src/utils/create_dialog.py:25
|
||||||
|
msgid "Dismiss"
|
||||||
|
msgstr "Відхилити"
|
||||||
|
|
||||||
|
#: src/utils/heroic_parser.py:88
|
||||||
|
msgid "The Heroic directory cannot be found."
|
||||||
|
msgstr "Не вдається знайти каталог Heroic."
|
||||||
|
|
||||||
|
#: src/utils/heroic_parser.py:90
|
||||||
|
msgid "Set Heroic Location"
|
||||||
|
msgstr "Встановіть розташування Heroic"
|
||||||
|
|
||||||
|
#: src/utils/heroic_parser.py:254
|
||||||
|
msgid "No new games were found in the Heroic library."
|
||||||
|
msgstr "У бібліотеці Heroic нових ігор не знайдено."
|
||||||
|
|
||||||
|
#: src/utils/heroic_parser.py:259 src/utils/heroic_parser.py:266
|
||||||
|
msgid "Heroic Games Imported"
|
||||||
|
msgstr "Ігри Heroic імпортовано"
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:162
|
||||||
|
msgid "No new games were found in the Steam library."
|
||||||
|
msgstr "У бібліотеці Steam не знайдено жодної нової гри."
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:167 src/utils/steam_parser.py:174
|
||||||
|
msgid "Steam Games Imported"
|
||||||
|
msgstr "Ігри Steam імпортовано"
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:235
|
||||||
|
msgid "The Steam directory cannot be found."
|
||||||
|
msgstr "Каталог Steam знайти неможливо."
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:237
|
||||||
|
msgid "Set Steam Location"
|
||||||
|
msgstr "Встановіть розташування Steam"
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:253
|
||||||
|
msgid "Importing Games…"
|
||||||
|
msgstr "Імпорт ігор…"
|
||||||
|
|
||||||
|
#: src/utils/steam_parser.py:254
|
||||||
|
msgid "Talking to Steam"
|
||||||
|
msgstr "Спілкування зі Steam"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "Successfully imported {str(len(bottles_games))} games."
|
||||||
|
#~ msgstr "Успішно імпортовано 1 гру."
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "Successfully imported {str(len(heroic_games))} games."
|
||||||
|
#~ msgstr "Успішно імпортовано 1 гру."
|
||||||
|
|
||||||
|
#~ msgid "Last played:"
|
||||||
|
#~ msgstr "Остання гра:"
|
||||||
|
|
||||||
|
#~ msgid "Successfully imported"
|
||||||
|
#~ msgstr "Успішно імпортовано"
|
||||||
|
|
||||||
|
#~ msgid "games."
|
||||||
|
#~ msgstr "ігри."
|
||||||
21
python3-modules.json
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
<svg width="200" height="300" viewBox="0 0 200 300" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<rect width="200" height="300" fill="url(#paint0_linear_1_2)"/>
|
|
||||||
<g clip-path="url(#clip0_1_2)">
|
|
||||||
<path d="M49 169.125V185.062C49 193.853 56.147 201 64.9375 201H68.125C75.1724 201 80.875 195.297 80.875 188.25C80.875 181.203 86.5776 175.5 93.625 175.5C100.672 175.5 106.375 181.203 106.375 188.25C107.247 196.169 114.394 201.872 122.312 201C131.103 201 138.25 193.878 138.25 185.062V169.125C138.25 155.03 126.845 143.625 112.75 143.625H74.5C60.4053 143.625 49 155.03 49 169.125ZM69.7188 156.375H72.9062C73.7778 156.375 74.5 157.097 74.5 157.969V162.75H79.2812C80.1528 162.75 80.875 163.472 80.875 164.344V167.531C80.875 168.428 80.1528 169.125 79.2812 169.125H74.5V173.906C74.5 174.803 73.7778 175.5 72.9062 175.5H69.7188C68.8223 175.5 68.125 174.803 68.125 173.906V169.125H63.3438C62.4473 169.125 61.75 168.428 61.75 167.531V164.344C61.75 163.472 62.4473 162.75 63.3438 162.75H68.125V157.969C68.125 157.097 68.8223 156.375 69.7188 156.375ZM109.562 161.156C112.202 161.156 114.344 163.298 114.344 165.938C114.344 168.577 112.202 170.719 109.562 170.719C106.923 170.719 104.781 168.577 104.781 165.938C104.781 163.298 106.923 161.156 109.562 161.156ZM122.312 167.531C124.952 167.531 127.094 169.673 127.094 172.312C127.094 174.952 124.952 177.094 122.312 177.094C119.673 177.094 117.531 174.952 117.531 172.312C117.531 169.673 119.673 167.531 122.312 167.531Z" fill="#241F31"/>
|
|
||||||
<path d="M61.75 118.225C61.7998 128.783 70.416 137.3 80.9746 137.25H131.775C142.384 137.25 151 128.634 151 118.025C150.95 107.467 142.334 98.9502 131.775 99H80.9746C70.3662 99 61.75 107.616 61.75 118.225ZM82.2695 105.375H85.457C86.3286 105.375 87.0508 106.097 87.0508 106.969V111.75H91.832C92.7036 111.75 93.4258 112.472 93.4258 113.344V116.531C93.4258 117.428 92.7036 118.125 91.832 118.125H87.0508V122.906C87.0508 123.803 86.3286 124.5 85.457 124.5H82.2695C81.373 124.5 80.6758 123.803 80.6758 122.906V118.125H75.8945C74.998 118.125 74.3008 117.428 74.3008 116.531V113.344C74.3008 112.472 74.998 111.75 75.8945 111.75H80.6758V106.969C80.6758 106.097 81.373 105.375 82.2695 105.375ZM122.113 110.156C124.753 110.156 126.895 112.298 126.895 114.938C126.895 117.577 124.753 119.719 122.113 119.719C119.474 119.719 117.332 117.577 117.332 114.938C117.332 112.298 119.474 110.156 122.113 110.156ZM134.863 110.355C137.503 110.355 139.645 112.497 139.645 115.137C139.645 117.776 137.503 119.918 134.863 119.918C132.224 119.918 130.082 117.776 130.082 115.137C130.082 112.497 132.224 110.355 134.863 110.355Z" fill="#241F31"/>
|
|
||||||
</g>
|
|
||||||
<defs>
|
|
||||||
<linearGradient id="paint0_linear_1_2" x1="100" y1="0" x2="100" y2="300" gradientUnits="userSpaceOnUse">
|
|
||||||
<stop stop-color="#DEDDDA"/>
|
|
||||||
<stop offset="1" stop-color="#9A9996"/>
|
|
||||||
</linearGradient>
|
|
||||||
<clipPath id="clip0_1_2">
|
|
||||||
<rect width="102" height="102" fill="white" transform="translate(49 99)"/>
|
|
||||||
</clipPath>
|
|
||||||
</defs>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 2.9 KiB |
@@ -1,8 +1,8 @@
|
|||||||
#!@PYTHON@
|
#!@PYTHON@
|
||||||
|
|
||||||
# gameshelf.in
|
# cartridges.in
|
||||||
#
|
#
|
||||||
# Copyright 2022 kramo
|
# Copyright 2022-2023 kramo
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -25,22 +25,31 @@ import signal
|
|||||||
import locale
|
import locale
|
||||||
import gettext
|
import gettext
|
||||||
|
|
||||||
VERSION = '@VERSION@'
|
VERSION = "@VERSION@"
|
||||||
pkgdatadir = '@pkgdatadir@'
|
if os.name == "nt":
|
||||||
localedir = '@localedir@'
|
pkgdatadir = os.path.join(os.path.dirname(__file__), "..", "share", "cartridges")
|
||||||
|
localedir = os.path.join(os.path.dirname(__file__), "..", "share", "locale")
|
||||||
|
else:
|
||||||
|
pkgdatadir = "@pkgdatadir@"
|
||||||
|
localedir = "@localedir@"
|
||||||
|
|
||||||
sys.path.insert(1, pkgdatadir)
|
sys.path.insert(1, pkgdatadir)
|
||||||
signal.signal(signal.SIGINT, signal.SIG_DFL)
|
signal.signal(signal.SIGINT, signal.SIG_DFL)
|
||||||
locale.bindtextdomain('gameshelf', localedir)
|
|
||||||
locale.textdomain('gameshelf')
|
|
||||||
gettext.install('gameshelf', localedir)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if os.name != "nt":
|
||||||
|
locale.bindtextdomain("cartridges", localedir)
|
||||||
|
locale.textdomain("cartridges")
|
||||||
|
|
||||||
|
gettext.install("cartridges", localedir)
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
import gi
|
import gi
|
||||||
|
|
||||||
from gi.repository import Gio
|
from gi.repository import Gio
|
||||||
resource = Gio.Resource.load(os.path.join(pkgdatadir, 'gameshelf.gresource'))
|
|
||||||
|
resource = Gio.Resource.load(os.path.join(pkgdatadir, "cartridges.gresource"))
|
||||||
resource._register()
|
resource._register()
|
||||||
|
|
||||||
from gameshelf import main
|
from cartridges import main
|
||||||
|
|
||||||
sys.exit(main.main(VERSION))
|
sys.exit(main.main(VERSION))
|
||||||
58
src/game.py
@@ -1,6 +1,6 @@
|
|||||||
# game.py
|
# game.py
|
||||||
#
|
#
|
||||||
# Copyright 2022 kramo
|
# Copyright 2022-2023 kramo
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -19,22 +19,60 @@
|
|||||||
|
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
|
|
||||||
@Gtk.Template(resource_path='/hu/kramo/GameShelf/gtk/game.ui')
|
from .get_cover import get_cover
|
||||||
class game(Gtk.Box):
|
|
||||||
__gtype_name__ = 'game'
|
|
||||||
|
|
||||||
|
|
||||||
|
@Gtk.Template(resource_path="/hu/kramo/Cartridges/gtk/game.ui")
|
||||||
|
class game(Gtk.Box):
|
||||||
|
__gtype_name__ = "game"
|
||||||
|
|
||||||
|
overlay = Gtk.Template.Child()
|
||||||
title = Gtk.Template.Child()
|
title = Gtk.Template.Child()
|
||||||
|
button_play = Gtk.Template.Child()
|
||||||
cover = Gtk.Template.Child()
|
cover = Gtk.Template.Child()
|
||||||
cover_button = Gtk.Template.Child()
|
cover_button = Gtk.Template.Child()
|
||||||
menu_button = Gtk.Template.Child()
|
menu_button = Gtk.Template.Child()
|
||||||
hidden_game_options = Gtk.Template.Child()
|
hidden_game_options = Gtk.Template.Child()
|
||||||
|
play_revealer = Gtk.Template.Child()
|
||||||
|
title_revealer = Gtk.Template.Child()
|
||||||
|
|
||||||
def __init__(self, title, pixbuf, game_id, **kwargs):
|
def __init__(self, parent_widget, data, **kwargs):
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
|
|
||||||
self.name = title
|
self.parent_widget = parent_widget
|
||||||
self.pixbuf = pixbuf
|
self.added = data["added"]
|
||||||
self.game_id = game_id
|
self.executable = data["executable"]
|
||||||
|
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.title.set_label(title)
|
self.pixbuf = get_cover(self.game_id, self.parent_widget)
|
||||||
self.cover.set_pixbuf(pixbuf)
|
|
||||||
|
self.cover.set_pixbuf(self.pixbuf)
|
||||||
|
self.title.set_label(self.name)
|
||||||
|
|
||||||
|
self.event_contoller_motion = Gtk.EventControllerMotion.new()
|
||||||
|
self.add_controller(self.event_contoller_motion)
|
||||||
|
self.overlay.set_measure_overlay(self.play_revealer, True)
|
||||||
|
|
||||||
|
self.button_play.connect("clicked", self.launch_game)
|
||||||
|
self.event_contoller_motion.connect("enter", self.show_play)
|
||||||
|
self.event_contoller_motion.connect("leave", self.hide_play)
|
||||||
|
self.menu_button.get_popover().connect("notify::visible", self.hide_play)
|
||||||
|
|
||||||
|
def show_play(self, _widget, *_unused):
|
||||||
|
self.play_revealer.set_reveal_child(True)
|
||||||
|
self.title_revealer.set_reveal_child(False)
|
||||||
|
|
||||||
|
def hide_play(self, _widget, *_unused):
|
||||||
|
if not self.menu_button.get_active():
|
||||||
|
self.play_revealer.set_reveal_child(False)
|
||||||
|
self.title_revealer.set_reveal_child(True)
|
||||||
|
|
||||||
|
def launch_game(self, _widget):
|
||||||
|
self.parent_widget.set_active_game(None, None, self.game_id)
|
||||||
|
self.parent_widget.get_application().on_launch_game_action(None)
|
||||||
|
|||||||
109
src/gtk/game.blp
@@ -1,109 +0,0 @@
|
|||||||
using Gtk 4.0;
|
|
||||||
using Adw 1;
|
|
||||||
|
|
||||||
template game : Box {
|
|
||||||
orientation: vertical;
|
|
||||||
halign: center;
|
|
||||||
valign: start;
|
|
||||||
|
|
||||||
Button cover_button {
|
|
||||||
Picture cover {
|
|
||||||
width-request: 200;
|
|
||||||
height-request: 300;
|
|
||||||
hexpand: true;
|
|
||||||
vexpand: true;
|
|
||||||
|
|
||||||
styles [
|
|
||||||
"card",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
styles [
|
|
||||||
"card",
|
|
||||||
"flat",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
Adw.Clamp {
|
|
||||||
maximum-size: 200;
|
|
||||||
|
|
||||||
Box {
|
|
||||||
Label title {
|
|
||||||
label: _("Title");
|
|
||||||
ellipsize: end;
|
|
||||||
hexpand: true;
|
|
||||||
halign: start;
|
|
||||||
margin-start: 12;
|
|
||||||
}
|
|
||||||
|
|
||||||
MenuButton menu_button {
|
|
||||||
icon-name: "view-more-symbolic";
|
|
||||||
margin-top: 6;
|
|
||||||
margin-bottom: 6;
|
|
||||||
margin-end: 6;
|
|
||||||
margin-start: 6;
|
|
||||||
menu-model: game_options;
|
|
||||||
|
|
||||||
styles [
|
|
||||||
"flat",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
styles [
|
|
||||||
"card",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
menu game_options {
|
|
||||||
section {
|
|
||||||
item {
|
|
||||||
label: _("Play");
|
|
||||||
action: "app.launch_game";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
section {
|
|
||||||
item {
|
|
||||||
label: _("Edit");
|
|
||||||
action: "app.edit_details";
|
|
||||||
}
|
|
||||||
|
|
||||||
item {
|
|
||||||
label: _("Hide");
|
|
||||||
action: "app.hide_game";
|
|
||||||
}
|
|
||||||
|
|
||||||
item {
|
|
||||||
label: _("Remove");
|
|
||||||
action: "app.remove_game";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
menu hidden_game_options {
|
|
||||||
section {
|
|
||||||
item {
|
|
||||||
label: _("Play");
|
|
||||||
action: "app.launch_game";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
section {
|
|
||||||
item {
|
|
||||||
label: _("Edit");
|
|
||||||
action: "app.edit_details";
|
|
||||||
}
|
|
||||||
|
|
||||||
item {
|
|
||||||
label: _("Unhide");
|
|
||||||
action: "app.hide_game";
|
|
||||||
}
|
|
||||||
|
|
||||||
item {
|
|
||||||
label: _("Remove");
|
|
||||||
action: "app.remove_game";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
220
src/main.py
@@ -1,6 +1,6 @@
|
|||||||
# main.py
|
# main.py
|
||||||
#
|
#
|
||||||
# Copyright 2022 kramo
|
# Copyright 2022-2023 kramo
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -17,127 +17,189 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
import gi, sys, os, time, json
|
import os
|
||||||
|
import sys
|
||||||
|
import time
|
||||||
|
|
||||||
|
import gi
|
||||||
|
|
||||||
gi.require_version("Gtk", "4.0")
|
gi.require_version("Gtk", "4.0")
|
||||||
gi.require_version("Adw", "1")
|
gi.require_version("Adw", "1")
|
||||||
|
|
||||||
from gi.repository import Gtk, Gio, GLib, Adw
|
from gi.repository import Adw, Gio, GLib, Gtk
|
||||||
|
|
||||||
from .window import GameShelfWindow
|
from .bottles_parser import bottles_parser
|
||||||
from .preferences import PreferencesWindow
|
|
||||||
from .toggle_hidden import toggle_hidden
|
|
||||||
from .save_games import save_games
|
|
||||||
from .run_command import run_command
|
|
||||||
from .steam_parser import steam_parser
|
|
||||||
from .heroic_parser import heroic_parser
|
|
||||||
from .create_details_window import create_details_window
|
from .create_details_window import create_details_window
|
||||||
|
from .get_games import get_games
|
||||||
|
from .heroic_parser import heroic_parser
|
||||||
|
from .preferences import PreferencesWindow
|
||||||
|
from .run_command import run_command
|
||||||
|
from .save_games import save_games
|
||||||
|
from .steam_parser import steam_parser
|
||||||
|
from .toggle_hidden import toggle_hidden
|
||||||
|
from .window import CartridgesWindow
|
||||||
|
|
||||||
class GameShelfApplication(Adw.Application):
|
|
||||||
|
class CartridgesApplication(Adw.Application):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__(application_id="hu.kramo.GameShelf", flags=Gio.ApplicationFlags.FLAGS_NONE)
|
super().__init__(
|
||||||
|
application_id="hu.kramo.Cartridges", flags=Gio.ApplicationFlags.FLAGS_NONE
|
||||||
|
)
|
||||||
self.create_action("quit", self.on_quit_action, ["<primary>q"])
|
self.create_action("quit", self.on_quit_action, ["<primary>q"])
|
||||||
self.create_action("about", self.on_about_action)
|
self.create_action("about", self.on_about_action)
|
||||||
self.create_action("preferences", self.on_preferences_action)
|
self.create_action(
|
||||||
|
"preferences", self.on_preferences_action, ["<primary>comma"]
|
||||||
|
)
|
||||||
self.create_action("steam_import", self.on_steam_import_action)
|
self.create_action("steam_import", self.on_steam_import_action)
|
||||||
self.create_action("heroic_import", self.on_heroic_import_action)
|
self.create_action("heroic_import", self.on_heroic_import_action)
|
||||||
|
self.create_action("bottles_import", self.on_bottles_import_action)
|
||||||
self.create_action("launch_game", self.on_launch_game_action)
|
self.create_action("launch_game", self.on_launch_game_action)
|
||||||
self.create_action("hide_game", self.on_hide_game_action)
|
self.create_action("hide_game", self.on_hide_game_action)
|
||||||
self.create_action("edit_details", self.on_edit_details_action)
|
self.create_action("edit_details", self.on_edit_details_action)
|
||||||
self.create_action("add_game", self.on_add_game_action)
|
self.create_action("add_game", self.on_add_game_action, ["<primary>n"])
|
||||||
self.create_action("remove_game", self.on_remove_game_action)
|
self.create_action("remove_game", self.on_remove_game_action)
|
||||||
|
|
||||||
|
if os.name == "nt":
|
||||||
|
self.lookup_action("bottles_import").set_enabled(False)
|
||||||
|
|
||||||
|
self.win = None
|
||||||
|
|
||||||
def do_activate(self):
|
def do_activate(self):
|
||||||
|
|
||||||
# Create the main window
|
# Create the main window
|
||||||
win = self.props.active_window
|
self.win = self.props.active_window
|
||||||
if not win:
|
if not self.win:
|
||||||
win = GameShelfWindow(application=self)
|
self.win = CartridgesWindow(application=self)
|
||||||
|
|
||||||
win.present()
|
# Save window geometry
|
||||||
|
state_settings = Gio.Settings(schema_id="hu.kramo.Cartridge.State")
|
||||||
|
state_settings.bind(
|
||||||
|
"width", self.win, "default-width", Gio.SettingsBindFlags.DEFAULT
|
||||||
|
)
|
||||||
|
state_settings.bind(
|
||||||
|
"height", self.win, "default-height", Gio.SettingsBindFlags.DEFAULT
|
||||||
|
)
|
||||||
|
state_settings.bind(
|
||||||
|
"is-maximized", self.win, "maximized", Gio.SettingsBindFlags.DEFAULT
|
||||||
|
)
|
||||||
|
|
||||||
|
self.win.present()
|
||||||
|
|
||||||
# Create actions for the main window
|
# Create actions for the main window
|
||||||
self.create_action("show_hidden", win.on_show_hidden_action, None, win)
|
self.create_action(
|
||||||
self.create_action("go_back", win.on_go_back_action, ["<alt>Left"], win)
|
"show_hidden", self.win.on_show_hidden_action, ["<primary>h"], self.win
|
||||||
self.create_action("go_to_parent", win.on_go_to_parent_action, ["<alt>Up"], win)
|
)
|
||||||
self.create_action("toggle_search", win.on_toggle_search_action, ["<primary>f"], win)
|
self.create_action(
|
||||||
self.create_action("escape", win.on_escape_action, ["Escape"], win)
|
"go_back", self.win.on_go_back_action, ["<alt>Left"], self.win
|
||||||
self.create_action("undo_remove", win.on_undo_remove_action, ["<primary>z"], win)
|
)
|
||||||
win.sort = Gio.SimpleAction.new_stateful("sort_by", GLib.VariantType.new("s"), GLib.Variant("s", "a-z"))
|
self.create_action(
|
||||||
win.add_action(win.sort)
|
"go_to_parent", self.win.on_go_to_parent_action, ["<alt>Up"], self.win
|
||||||
win.sort.connect("activate", win.on_sort_action)
|
)
|
||||||
win.on_sort_action(win.sort, win.schema.get_value("sort-mode"))
|
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")
|
||||||
|
)
|
||||||
|
self.win.add_action(self.win.sort)
|
||||||
|
self.win.sort.connect("activate", self.win.on_sort_action)
|
||||||
|
self.win.on_sort_action(self.win.sort, state_settings.get_value("sort-mode"))
|
||||||
|
|
||||||
def on_about_action(self, widget, callback=None):
|
def on_about_action(self, _widget, _callback=None):
|
||||||
about = Adw.AboutWindow(transient_for=self.props.active_window,
|
about = Adw.AboutWindow(
|
||||||
application_name="Game Shelf",
|
transient_for=self.win,
|
||||||
application_icon="hu.kramo.GameShelf",
|
application_name=_("Cartridges"),
|
||||||
developer_name="kramo",
|
application_icon="hu.kramo.Cartridges",
|
||||||
version="0.1.1",
|
developer_name="kramo",
|
||||||
developers=["kramo"],
|
version="0.1.4",
|
||||||
copyright="© 2022 kramo",
|
developers=[
|
||||||
license_type=Gtk.License.GPL_3_0)
|
"kramo https://kramo.hu",
|
||||||
|
"Paweł Lidwin https://github.com/imLinguin",
|
||||||
|
],
|
||||||
|
designers=["kramo https://kramo.hu"],
|
||||||
|
copyright="© 2022-2023 kramo",
|
||||||
|
license_type=Gtk.License.GPL_3_0,
|
||||||
|
issue_url="https://github.com/kra-mo/cartridges/issues/new",
|
||||||
|
website="https://github.com/kra-mo/cartridges",
|
||||||
|
# Translators: Replace this with your name for it to show up in the about window
|
||||||
|
translator_credits=_("translator_credits"),
|
||||||
|
)
|
||||||
about.present()
|
about.present()
|
||||||
|
|
||||||
def on_preferences_action(self, widget, callback=None):
|
def on_preferences_action(self, _widget, _callback=None):
|
||||||
PreferencesWindow(self.props.active_window).present()
|
PreferencesWindow(self.win).present()
|
||||||
|
|
||||||
def on_steam_import_action(self, widget, callback=None):
|
def on_steam_import_action(self, _widget, _callback=None):
|
||||||
games = steam_parser(self.props.active_window, self.on_steam_import_action)
|
# 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):
|
||||||
|
games = heroic_parser(self.win, self.on_heroic_import_action)
|
||||||
save_games(games)
|
save_games(games)
|
||||||
self.props.active_window.update_games(games.keys())
|
self.win.update_games(games.keys())
|
||||||
|
|
||||||
def on_heroic_import_action(self, widget, callback=None):
|
def on_bottles_import_action(self, _widget, _callback=None):
|
||||||
games = heroic_parser(self.props.active_window, self.on_heroic_import_action)
|
games = bottles_parser(self.win, self.on_bottles_import_action)
|
||||||
save_games(games)
|
save_games(games)
|
||||||
self.props.active_window.update_games(games.keys())
|
self.win.update_games(games.keys())
|
||||||
|
|
||||||
def on_launch_game_action(self, widget, callback=None):
|
def on_launch_game_action(self, _widget, _callback=None):
|
||||||
|
|
||||||
# Launch the game and update the last played value
|
# Launch the game and update the last played value
|
||||||
self.props.active_window.games[self.props.active_window.active_game_id]["last_played"] = int(time.time())
|
|
||||||
save_games({self.props.active_window.active_game_id : self.props.active_window.games[self.props.active_window.active_game_id]})
|
|
||||||
self.props.active_window.update_games([self.props.active_window.active_game_id])
|
|
||||||
run_command(self.props.active_window, self.props.active_window.games[self.props.active_window.active_game_id]["executable"])
|
|
||||||
|
|
||||||
if self.props.active_window.stack.get_visible_child() == self.props.active_window.overview:
|
game_id = self.win.active_game_id
|
||||||
self.props.active_window.show_overview(None, self.props.active_window.active_game_id)
|
|
||||||
|
|
||||||
def on_hide_game_action(self, widget, callback=None):
|
data = get_games([game_id])[game_id]
|
||||||
if self.props.active_window.stack.get_visible_child() == self.props.active_window.overview:
|
data["last_played"] = int(time.time())
|
||||||
self.props.active_window.on_go_back_action(None, None)
|
save_games({game_id: data})
|
||||||
toggle_hidden(self.props.active_window.active_game_id)
|
|
||||||
self.props.active_window.update_games([self.props.active_window.active_game_id])
|
|
||||||
|
|
||||||
def on_edit_details_action(self, widget, callback=None):
|
run_command(self.win.games[self.win.active_game_id].executable)
|
||||||
create_details_window(self.props.active_window, self.props.active_window.active_game_id)
|
|
||||||
|
|
||||||
def on_add_game_action(self, widget, callback=None):
|
self.win.update_games([game_id])
|
||||||
create_details_window(self.props.active_window)
|
|
||||||
|
|
||||||
def on_remove_game_action(self, widget, callback=None):
|
if self.win.stack.get_visible_child() == self.win.overview:
|
||||||
|
self.win.show_overview(None, self.win.active_game_id)
|
||||||
|
|
||||||
|
def on_hide_game_action(self, _widget, _callback=None):
|
||||||
|
if self.win.stack.get_visible_child() == self.win.overview:
|
||||||
|
self.win.on_go_back_action(None, None)
|
||||||
|
toggle_hidden(self.win.active_game_id)
|
||||||
|
self.win.update_games([self.win.active_game_id])
|
||||||
|
|
||||||
|
def on_edit_details_action(self, _widget, _callback=None):
|
||||||
|
create_details_window(self.win, self.win.active_game_id)
|
||||||
|
|
||||||
|
def on_add_game_action(self, _widget, _callback=None):
|
||||||
|
create_details_window(self.win)
|
||||||
|
|
||||||
|
def on_remove_game_action(self, _widget, _callback=None):
|
||||||
|
|
||||||
# Add "removed=True" to the game properties so it can be deleted on next init
|
# Add "removed=True" to the game properties so it can be deleted on next init
|
||||||
game_id = self.props.active_window.active_game_id
|
game_id = self.win.active_game_id
|
||||||
open_file = open(os.path.join(os.path.join(os.environ.get("XDG_DATA_HOME"), "games", game_id + ".json")), "r")
|
|
||||||
data = json.loads(open_file.read())
|
data = get_games([game_id])[game_id]
|
||||||
open_file.close()
|
|
||||||
data["removed"] = True
|
data["removed"] = True
|
||||||
save_games({game_id : data})
|
save_games({game_id: data})
|
||||||
|
|
||||||
self.props.active_window.update_games([game_id])
|
self.win.update_games([game_id])
|
||||||
if self.props.active_window.stack.get_visible_child() == self.props.active_window.overview:
|
if self.win.stack.get_visible_child() == self.win.overview:
|
||||||
self.props.active_window.on_go_back_action(None, None)
|
self.win.on_go_back_action(None, None)
|
||||||
|
|
||||||
# Create toast for undoing the remove action
|
# The variable is the title of the game
|
||||||
toast = Adw.Toast.new(self.props.active_window.games[game_id]["name"] + " " + (_("removed")))
|
title = self.win.games[game_id].name
|
||||||
|
toast = Adw.Toast.new(_(f"{title} removed"))
|
||||||
toast.set_button_label(_("Undo"))
|
toast.set_button_label(_("Undo"))
|
||||||
toast.connect("button-clicked", self.props.active_window.on_undo_remove_action, game_id)
|
toast.connect("button-clicked", self.win.on_undo_remove_action, game_id)
|
||||||
toast.set_priority(Adw.ToastPriority.HIGH)
|
toast.set_priority(Adw.ToastPriority.HIGH)
|
||||||
self.props.active_window.toasts[game_id] = toast
|
self.win.toasts[game_id] = toast
|
||||||
self.props.active_window.toast_overlay.add_toast(toast)
|
self.win.toast_overlay.add_toast(toast)
|
||||||
|
|
||||||
def on_quit_action(self, widget, callback=None):
|
def on_quit_action(self, _widget, _callback=None):
|
||||||
self.quit()
|
self.quit()
|
||||||
|
|
||||||
def create_action(self, name, callback, shortcuts=None, win=None):
|
def create_action(self, name, callback, shortcuts=None, win=None):
|
||||||
@@ -152,7 +214,7 @@ class GameShelfApplication(Adw.Application):
|
|||||||
if shortcuts:
|
if shortcuts:
|
||||||
self.set_accels_for_action(f"win.{name}", shortcuts)
|
self.set_accels_for_action(f"win.{name}", shortcuts)
|
||||||
|
|
||||||
def main(version):
|
|
||||||
app = GameShelfApplication()
|
|
||||||
return app.run(sys.argv)
|
|
||||||
|
|
||||||
|
def main(version):
|
||||||
|
app = CartridgesApplication()
|
||||||
|
return app.run(sys.argv)
|
||||||
|
|||||||
@@ -1,25 +1,4 @@
|
|||||||
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
|
moduledir = join_paths(pkgdatadir, 'cartridges')
|
||||||
moduledir = join_paths(pkgdatadir, 'gameshelf')
|
|
||||||
gnome = import('gnome')
|
|
||||||
|
|
||||||
blueprints = custom_target('blueprints',
|
|
||||||
input: files(
|
|
||||||
'gtk/help-overlay.blp',
|
|
||||||
'window.blp',
|
|
||||||
'gtk/game.blp',
|
|
||||||
'gtk/preferences.blp'
|
|
||||||
),
|
|
||||||
output: '.',
|
|
||||||
command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
|
|
||||||
)
|
|
||||||
|
|
||||||
gnome.compile_resources('gameshelf',
|
|
||||||
'gameshelf.gresource.xml',
|
|
||||||
gresource_bundle: true,
|
|
||||||
install: true,
|
|
||||||
install_dir: pkgdatadir,
|
|
||||||
dependencies: blueprints,
|
|
||||||
)
|
|
||||||
|
|
||||||
python = import('python')
|
python = import('python')
|
||||||
|
|
||||||
@@ -30,14 +9,14 @@ conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir')))
|
|||||||
conf.set('pkgdatadir', pkgdatadir)
|
conf.set('pkgdatadir', pkgdatadir)
|
||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
input: 'gameshelf.in',
|
input: 'cartridges.in',
|
||||||
output: 'gameshelf',
|
output: 'cartridges',
|
||||||
configuration: conf,
|
configuration: conf,
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: get_option('bindir')
|
install_dir: get_option('bindir')
|
||||||
)
|
)
|
||||||
|
|
||||||
gameshelf_sources = [
|
cartridges_sources = [
|
||||||
'__init__.py',
|
'__init__.py',
|
||||||
'main.py',
|
'main.py',
|
||||||
'window.py',
|
'window.py',
|
||||||
@@ -45,6 +24,7 @@ gameshelf_sources = [
|
|||||||
'game.py',
|
'game.py',
|
||||||
'utils/steam_parser.py',
|
'utils/steam_parser.py',
|
||||||
'utils/heroic_parser.py',
|
'utils/heroic_parser.py',
|
||||||
|
'utils/bottles_parser.py',
|
||||||
'utils/run_command.py',
|
'utils/run_command.py',
|
||||||
'utils/get_games.py',
|
'utils/get_games.py',
|
||||||
'utils/get_cover.py',
|
'utils/get_cover.py',
|
||||||
@@ -55,4 +35,4 @@ gameshelf_sources = [
|
|||||||
'utils/create_details_window.py'
|
'utils/create_details_window.py'
|
||||||
]
|
]
|
||||||
|
|
||||||
install_data(gameshelf_sources, install_dir: moduledir)
|
install_data(cartridges_sources, install_dir: moduledir)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# preferences.py
|
# preferences.py
|
||||||
#
|
#
|
||||||
# Copyright 2022 kramo
|
# Copyright 2022-2023 kramo
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -17,11 +17,17 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
from gi.repository import Adw, Gtk, Gio, GLib
|
import os
|
||||||
|
|
||||||
@Gtk.Template(resource_path='/hu/kramo/GameShelf/gtk/preferences.ui')
|
from gi.repository import Adw, Gio, GLib, Gtk
|
||||||
|
|
||||||
|
|
||||||
|
@Gtk.Template(resource_path="/hu/kramo/Cartridges/gtk/preferences.ui")
|
||||||
class PreferencesWindow(Adw.PreferencesWindow):
|
class PreferencesWindow(Adw.PreferencesWindow):
|
||||||
__gtype_name__ = 'PreferencesWindow'
|
__gtype_name__ = "PreferencesWindow"
|
||||||
|
|
||||||
|
page = Gtk.Template.Child()
|
||||||
|
bottles_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()
|
import_epic_games_switch = Gtk.Template.Child()
|
||||||
@@ -29,34 +35,106 @@ class PreferencesWindow(Adw.PreferencesWindow):
|
|||||||
import_sideload_games_switch = Gtk.Template.Child()
|
import_sideload_games_switch = Gtk.Template.Child()
|
||||||
|
|
||||||
steam_file_chooser_button = Gtk.Template.Child()
|
steam_file_chooser_button = Gtk.Template.Child()
|
||||||
|
steam_extra_file_chooser_button = Gtk.Template.Child()
|
||||||
|
steam_clear_button = Gtk.Template.Child()
|
||||||
|
steam_clear_button_revealer = Gtk.Template.Child()
|
||||||
heroic_file_chooser_button = Gtk.Template.Child()
|
heroic_file_chooser_button = Gtk.Template.Child()
|
||||||
|
bottles_file_chooser_button = Gtk.Template.Child()
|
||||||
|
|
||||||
def __init__(self, parent_widget, **kwargs):
|
def __init__(self, parent_widget, **kwargs):
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
|
|
||||||
self.set_transient_for(parent_widget)
|
self.set_transient_for(parent_widget)
|
||||||
schema = parent_widget.schema
|
schema = parent_widget.schema
|
||||||
schema.bind("exit-after-launch", self.exit_after_launch_switch, "active", Gio.SettingsBindFlags.DEFAULT)
|
schema.bind(
|
||||||
schema.bind("heroic-import-epic", self.import_epic_games_switch, "active", Gio.SettingsBindFlags.DEFAULT)
|
"exit-after-launch",
|
||||||
schema.bind("heroic-import-gog", self.import_gog_games_switch, "active", Gio.SettingsBindFlags.DEFAULT)
|
self.exit_after_launch_switch,
|
||||||
schema.bind("heroic-import-sideload", self.import_sideload_games_switch, "active", Gio.SettingsBindFlags.DEFAULT)
|
"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()
|
filechooser = Gtk.FileDialog()
|
||||||
|
|
||||||
def set_steam_dir(source, result, user_data):
|
def update_revealer():
|
||||||
|
if schema.get_strv("steam-extra-dirs"):
|
||||||
|
self.steam_clear_button_revealer.set_reveal_child(True)
|
||||||
|
else:
|
||||||
|
self.steam_clear_button_revealer.set_reveal_child(False)
|
||||||
|
|
||||||
|
def set_steam_dir(_source, result, _unused):
|
||||||
try:
|
try:
|
||||||
schema.set_string("steam-location", filechooser.select_folder_finish(result).get_path())
|
schema.set_string(
|
||||||
|
"steam-location",
|
||||||
|
filechooser.select_folder_finish(result).get_path(),
|
||||||
|
)
|
||||||
except GLib.GError:
|
except GLib.GError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def set_heroic_dir(source, result, user_data):
|
def add_steam_dir(_source, result, _unused):
|
||||||
try:
|
try:
|
||||||
schema.set_string("heroic-location", filechooser.select_folder_finish(result).get_path())
|
value = schema.get_strv("steam-extra-dirs")
|
||||||
|
value.append(filechooser.select_folder_finish(result).get_path())
|
||||||
|
schema.set_strv("steam-extra-dirs", value)
|
||||||
|
except GLib.GError:
|
||||||
|
pass
|
||||||
|
update_revealer()
|
||||||
|
|
||||||
|
def clear_steam_dirs(*_unused):
|
||||||
|
schema.set_strv("steam-extra-dirs", [])
|
||||||
|
update_revealer()
|
||||||
|
|
||||||
|
def set_heroic_dir(_source, result, _unused):
|
||||||
|
try:
|
||||||
|
schema.set_string(
|
||||||
|
"heroic-location",
|
||||||
|
filechooser.select_folder_finish(result).get_path(),
|
||||||
|
)
|
||||||
except GLib.GError:
|
except GLib.GError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def choose_folder(widget, function):
|
def set_bottles_dir(_source, result, _unused):
|
||||||
|
try:
|
||||||
|
schema.set_string(
|
||||||
|
"bottles-location",
|
||||||
|
filechooser.select_folder_finish(result).get_path(),
|
||||||
|
)
|
||||||
|
except GLib.GError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
def choose_folder(_widget, function):
|
||||||
filechooser.select_folder(parent_widget, None, function, None)
|
filechooser.select_folder(parent_widget, None, function, None)
|
||||||
|
|
||||||
|
update_revealer()
|
||||||
|
|
||||||
self.steam_file_chooser_button.connect("clicked", choose_folder, set_steam_dir)
|
self.steam_file_chooser_button.connect("clicked", choose_folder, set_steam_dir)
|
||||||
self.heroic_file_chooser_button.connect("clicked", choose_folder, set_heroic_dir)
|
self.steam_extra_file_chooser_button.connect(
|
||||||
|
"clicked", choose_folder, add_steam_dir
|
||||||
|
)
|
||||||
|
self.steam_clear_button.connect("clicked", clear_steam_dirs)
|
||||||
|
self.heroic_file_chooser_button.connect(
|
||||||
|
"clicked", choose_folder, set_heroic_dir
|
||||||
|
)
|
||||||
|
self.bottles_file_chooser_button.connect(
|
||||||
|
"clicked", choose_folder, set_bottles_dir
|
||||||
|
)
|
||||||
|
|
||||||
|
if os.name == "nt":
|
||||||
|
self.page.remove(self.bottles_group)
|
||||||
|
|||||||
0
src/utils/__init__.py
Normal file
159
src/utils/bottles_parser.py
Normal file
@@ -0,0 +1,159 @@
|
|||||||
|
# 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 os.path.isfile(os.path.join(bottles_dir, "library.yml")):
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
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()
|
||||||
|
open_file.close()
|
||||||
|
|
||||||
|
library = yaml.load(data, Loader=yaml.Loader)
|
||||||
|
|
||||||
|
for game in library:
|
||||||
|
game = library[game]
|
||||||
|
values = {}
|
||||||
|
|
||||||
|
values["game_id"] = "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 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 len(bottles_games) == 0:
|
||||||
|
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,6 +1,6 @@
|
|||||||
# create_details_window.py
|
# create_details_window.py
|
||||||
#
|
#
|
||||||
# Copyright 2022 kramo
|
# Copyright 2022-2023 kramo
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -17,39 +17,46 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
def create_details_window(parent_widget, game_id = None):
|
import json
|
||||||
import os, json, time
|
import os
|
||||||
from gi.repository import Adw, Gtk, Gio, GLib, GdkPixbuf
|
import time
|
||||||
from .create_dialog import create_dialog
|
|
||||||
from .save_games import save_games
|
|
||||||
from .save_cover import save_cover
|
|
||||||
|
|
||||||
|
from gi.repository import Adw, GdkPixbuf, Gio, GLib, GObject, Gtk
|
||||||
|
|
||||||
|
from .create_dialog import create_dialog
|
||||||
|
from .get_cover import get_cover
|
||||||
|
from .save_cover import save_cover
|
||||||
|
from .save_games import save_games
|
||||||
|
|
||||||
|
|
||||||
|
def create_details_window(parent_widget, game_id=None):
|
||||||
window = Adw.Window(
|
window = Adw.Window(
|
||||||
modal = True,
|
modal=True, default_width=500, default_height=750, transient_for=parent_widget
|
||||||
default_width = 450,
|
|
||||||
default_height = 650,
|
|
||||||
transient_for = parent_widget
|
|
||||||
)
|
)
|
||||||
|
|
||||||
games = parent_widget.games
|
games = parent_widget.games
|
||||||
pixbuf = None
|
pixbuf = None
|
||||||
|
|
||||||
if game_id == None:
|
if game_id is None:
|
||||||
window.set_title(_("Add New Game"))
|
window.set_title(_("Add New Game"))
|
||||||
cover = Gtk.Picture.new_for_pixbuf(parent_widget.placeholder_pixbuf)
|
cover = Gtk.Picture.new_for_pixbuf(parent_widget.placeholder_pixbuf)
|
||||||
name = Gtk.Entry()
|
name = Gtk.Entry()
|
||||||
|
developer = Gtk.Entry()
|
||||||
executable = Gtk.Entry()
|
executable = Gtk.Entry()
|
||||||
apply_button = Gtk.Button.new_with_label(_("Confirm"))
|
apply_button = Gtk.Button.new_with_label(_("Confirm"))
|
||||||
else:
|
else:
|
||||||
window.set_title(_("Edit Game Details"))
|
window.set_title(_("Edit Game Details"))
|
||||||
cover = Gtk.Picture.new_for_pixbuf((parent_widget.visible_widgets | parent_widget.hidden_widgets)[game_id].pixbuf)
|
cover = Gtk.Picture.new_for_pixbuf(get_cover(game_id, parent_widget))
|
||||||
name = Gtk.Entry.new_with_buffer(Gtk.EntryBuffer.new(games[game_id]["name"], -1))
|
developer = Gtk.Entry.new_with_buffer(
|
||||||
executable = Gtk.Entry.new_with_buffer(Gtk.EntryBuffer.new((games[game_id]["executable"]), -1))
|
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((games[game_id].executable), -1)
|
||||||
|
)
|
||||||
apply_button = Gtk.Button.new_with_label(_("Apply"))
|
apply_button = Gtk.Button.new_with_label(_("Apply"))
|
||||||
|
|
||||||
image_filter = Gtk.FileFilter(
|
image_filter = Gtk.FileFilter(name=_("Images"))
|
||||||
name= _("Images")
|
|
||||||
)
|
|
||||||
image_filter.add_pixbuf_formats()
|
image_filter.add_pixbuf_formats()
|
||||||
file_filters = Gio.ListStore.new(Gtk.FileFilter)
|
file_filters = Gio.ListStore.new(Gtk.FileFilter)
|
||||||
file_filters.append(image_filter)
|
file_filters.append(image_filter)
|
||||||
@@ -60,39 +67,96 @@ def create_details_window(parent_widget, game_id = None):
|
|||||||
cover.set_size_request(200, 300)
|
cover.set_size_request(200, 300)
|
||||||
|
|
||||||
cover_button = Gtk.Button(
|
cover_button = Gtk.Button(
|
||||||
icon_name = "document-edit-symbolic",
|
icon_name="document-edit-symbolic",
|
||||||
halign = Gtk.Align.END,
|
halign=Gtk.Align.END,
|
||||||
valign = Gtk.Align.END,
|
valign=Gtk.Align.END,
|
||||||
margin_bottom = 6,
|
margin_bottom=6,
|
||||||
margin_end = 6,
|
margin_end=6,
|
||||||
css_classes = ["circular", "osd"],
|
css_classes=["circular", "osd"],
|
||||||
)
|
)
|
||||||
|
|
||||||
cover_overlay = Gtk.Overlay(
|
cover_overlay = Gtk.Overlay(
|
||||||
child = cover,
|
child=cover,
|
||||||
halign = Gtk.Align.CENTER,
|
halign=Gtk.Align.CENTER,
|
||||||
valign = Gtk.Align.CENTER,
|
valign=Gtk.Align.CENTER,
|
||||||
)
|
)
|
||||||
cover_overlay.add_overlay(cover_button)
|
cover_overlay.add_overlay(cover_button)
|
||||||
|
|
||||||
|
cover_clamp = Adw.Clamp(
|
||||||
|
maximum_size=200,
|
||||||
|
child=cover_overlay,
|
||||||
|
)
|
||||||
|
|
||||||
cover_group = Adw.PreferencesGroup()
|
cover_group = Adw.PreferencesGroup()
|
||||||
cover_group.add(cover_overlay)
|
cover_group.add(cover_clamp)
|
||||||
|
|
||||||
title_group = Adw.PreferencesGroup(
|
title_group = Adw.PreferencesGroup(
|
||||||
title = _("Title"),
|
title=_("Title"),
|
||||||
description = _("The title of the game"),
|
description=_("The title of the game"),
|
||||||
)
|
)
|
||||||
title_group.add(name)
|
title_group.add(name)
|
||||||
|
|
||||||
exec_group = Adw.PreferencesGroup(
|
developer_group = Adw.PreferencesGroup(
|
||||||
title = _("Executable"),
|
title=_("Developer"),
|
||||||
description = _("File to open or command to run when launching the game"),
|
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)
|
exec_group.add(executable)
|
||||||
|
|
||||||
general_page = Adw.PreferencesPage()
|
general_page = Adw.PreferencesPage()
|
||||||
general_page.add(cover_group)
|
general_page.add(cover_group)
|
||||||
general_page.add(title_group)
|
general_page.add(title_group)
|
||||||
|
general_page.add(developer_group)
|
||||||
general_page.add(exec_group)
|
general_page.add(exec_group)
|
||||||
|
|
||||||
cancel_button = Gtk.Button.new_with_label(_("Cancel"))
|
cancel_button = Gtk.Button.new_with_label(_("Cancel"))
|
||||||
@@ -100,8 +164,8 @@ def create_details_window(parent_widget, game_id = None):
|
|||||||
apply_button.add_css_class("suggested-action")
|
apply_button.add_css_class("suggested-action")
|
||||||
|
|
||||||
header_bar = Adw.HeaderBar(
|
header_bar = Adw.HeaderBar(
|
||||||
show_start_title_buttons = False,
|
show_start_title_buttons=False,
|
||||||
show_end_title_buttons = False,
|
show_end_title_buttons=False,
|
||||||
)
|
)
|
||||||
header_bar.pack_start(cancel_button)
|
header_bar.pack_start(cancel_button)
|
||||||
header_bar.pack_end(apply_button)
|
header_bar.pack_end(apply_button)
|
||||||
@@ -111,49 +175,55 @@ def create_details_window(parent_widget, game_id = None):
|
|||||||
main_box.append(general_page)
|
main_box.append(general_page)
|
||||||
window.set_content(main_box)
|
window.set_content(main_box)
|
||||||
|
|
||||||
def choose_cover(widget):
|
def choose_cover(_widget):
|
||||||
filechooser.open(window, None, set_cover, None)
|
filechooser.open(window, None, set_cover, None)
|
||||||
|
|
||||||
def set_cover(source, result, _):
|
def set_cover(_source, result, _unused):
|
||||||
nonlocal pixbuf
|
nonlocal pixbuf
|
||||||
try:
|
try:
|
||||||
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(filechooser.open_finish(result).get_path(), 200, 300, False)
|
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(
|
||||||
|
filechooser.open_finish(result).get_path(), 200, 300, False
|
||||||
|
)
|
||||||
cover.set_pixbuf(pixbuf)
|
cover.set_pixbuf(pixbuf)
|
||||||
except GLib.GError:
|
except GLib.GError:
|
||||||
return
|
return
|
||||||
|
|
||||||
def close_window(widget, callback=None):
|
def close_window(_widget, _callback=None):
|
||||||
window.close()
|
window.close()
|
||||||
|
|
||||||
def apply_preferences(widget, callback=None):
|
def apply_preferences(_widget, _callback=None):
|
||||||
nonlocal pixbuf
|
nonlocal pixbuf
|
||||||
nonlocal game_id
|
nonlocal game_id
|
||||||
|
|
||||||
values = {}
|
values = {}
|
||||||
|
|
||||||
games_dir = os.path.join(os.environ.get("XDG_DATA_HOME"), "games")
|
|
||||||
final_name = name.get_buffer().get_text()
|
final_name = name.get_buffer().get_text()
|
||||||
|
final_developer = developer.get_buffer().get_text()
|
||||||
final_executable = executable.get_buffer().get_text()
|
final_executable = executable.get_buffer().get_text()
|
||||||
|
|
||||||
if game_id == None:
|
if game_id is None:
|
||||||
|
|
||||||
if final_name == "":
|
if final_name == "":
|
||||||
create_dialog(window, _("Couldn't Add Game"), _("Game title cannot be empty."))
|
create_dialog(
|
||||||
|
window, _("Couldn't Add Game"), _("Game title cannot be empty.")
|
||||||
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
if final_executable == "":
|
if final_executable == "":
|
||||||
create_dialog(window, _("Couldn't Add Game"), _("Executable cannot be empty."))
|
create_dialog(
|
||||||
|
window, _("Couldn't Add Game"), _("Executable cannot be empty.")
|
||||||
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# Increment the number after the game id (eg. imported_1, imported_2)
|
||||||
|
|
||||||
numbers = [0]
|
numbers = [0]
|
||||||
|
|
||||||
for game in games:
|
for game in games:
|
||||||
if "imported_" in game:
|
if "imported_" in game:
|
||||||
numbers.append(int(game.replace("imported_", "")))
|
numbers.append(int(game.replace("imported_", "")))
|
||||||
|
|
||||||
game_id = "imported_" + str(max(numbers)+1)
|
game_id = "imported_" + str(max(numbers) + 1)
|
||||||
|
|
||||||
games[game_id] = {}
|
|
||||||
|
|
||||||
values["game_id"] = game_id
|
values["game_id"] = game_id
|
||||||
values["hidden"] = False
|
values["hidden"] = False
|
||||||
@@ -163,28 +233,54 @@ def create_details_window(parent_widget, game_id = None):
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
if final_name == "":
|
if final_name == "":
|
||||||
create_dialog(window, _("Couldn't Apply Preferences"), _("Game title cannot be empty."))
|
create_dialog(
|
||||||
|
window,
|
||||||
|
_("Couldn't Apply Preferences"),
|
||||||
|
_("Game title cannot be empty."),
|
||||||
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
if final_executable == "":
|
if final_executable == "":
|
||||||
create_dialog(window, _("Couldn't Apply Preferences"), _("Executable cannot be empty."))
|
create_dialog(
|
||||||
|
window,
|
||||||
|
_("Couldn't Apply Preferences"),
|
||||||
|
_("Executable cannot be empty."),
|
||||||
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
if pixbuf != None:
|
if pixbuf is not None:
|
||||||
values["pixbuf_options"] = save_cover(None, parent_widget, None, pixbuf, game_id)
|
save_cover(None, parent_widget, None, pixbuf, game_id)
|
||||||
|
|
||||||
values["name"] = final_name
|
values["name"] = final_name
|
||||||
|
values["developer"] = final_developer if final_developer else None
|
||||||
values["executable"] = final_executable
|
values["executable"] = final_executable
|
||||||
|
|
||||||
games[game_id].update(values)
|
path = os.path.join(
|
||||||
save_games(games)
|
os.path.join(
|
||||||
|
os.getenv("XDG_DATA_HOME")
|
||||||
|
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
||||||
|
"cartridges",
|
||||||
|
"games",
|
||||||
|
game_id + ".json",
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
if os.path.exists(path):
|
||||||
|
with open(path, "r") as open_file:
|
||||||
|
data = json.loads(open_file.read())
|
||||||
|
open_file.close()
|
||||||
|
data.update(values)
|
||||||
|
save_games({game_id: data})
|
||||||
|
else:
|
||||||
|
save_games({game_id: values})
|
||||||
|
|
||||||
parent_widget.update_games([game_id])
|
parent_widget.update_games([game_id])
|
||||||
if parent_widget.stack.get_visible_child() == parent_widget.overview:
|
if parent_widget.stack.get_visible_child() == parent_widget.overview:
|
||||||
parent_widget.show_overview(None, game_id)
|
parent_widget.show_overview(None, game_id)
|
||||||
window.close()
|
window.close()
|
||||||
parent_widget.show_overview(None, game_id)
|
parent_widget.show_overview(None, game_id)
|
||||||
|
|
||||||
def focus_executable(widget):
|
def focus_executable(_widget):
|
||||||
window.set_focus(executable)
|
window.set_focus(executable)
|
||||||
|
|
||||||
cover_button.connect("clicked", choose_cover)
|
cover_button.connect("clicked", choose_cover)
|
||||||
@@ -194,9 +290,13 @@ def create_details_window(parent_widget, game_id = None):
|
|||||||
executable.connect("activate", apply_preferences)
|
executable.connect("activate", apply_preferences)
|
||||||
|
|
||||||
shortcut_controller = Gtk.ShortcutController()
|
shortcut_controller = Gtk.ShortcutController()
|
||||||
shortcut_controller.add_shortcut(Gtk.Shortcut.new(Gtk.ShortcutTrigger.parse_string('Escape'), Gtk.CallbackAction.new(close_window)))
|
shortcut_controller.add_shortcut(
|
||||||
|
Gtk.Shortcut.new(
|
||||||
|
Gtk.ShortcutTrigger.parse_string("Escape"),
|
||||||
|
Gtk.CallbackAction.new(close_window),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
window.add_controller(shortcut_controller)
|
window.add_controller(shortcut_controller)
|
||||||
window.set_focus(name)
|
window.set_focus(name)
|
||||||
window.present()
|
window.present()
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# create_dialog.py
|
# create_dialog.py
|
||||||
#
|
#
|
||||||
# Copyright 2022 kramo
|
# Copyright 2022-2023 kramo
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -17,11 +17,12 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
def create_dialog(parent_widget, heading, body, extra_option=None, extra_label=None):
|
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):
|
||||||
dialog = Adw.MessageDialog.new(parent_widget, _(heading), body)
|
dialog = Adw.MessageDialog.new(parent_widget, _(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))
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# get_cover.py
|
# get_cover.py
|
||||||
#
|
#
|
||||||
# Copyright 2022 kramo
|
# Copyright 2022-2023 kramo
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -17,19 +17,24 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
def get_cover(game, parent_widget):
|
import os
|
||||||
from gi.repository import GdkPixbuf
|
|
||||||
import os
|
|
||||||
|
|
||||||
cover_path = os.path.join(os.environ.get("XDG_DATA_HOME"), "covers", game["game_id"] + ".dat")
|
from gi.repository import GdkPixbuf
|
||||||
|
|
||||||
if os.path.isfile(cover_path) == False:
|
|
||||||
|
def get_cover(game_id, parent_widget):
|
||||||
|
if game_id in parent_widget.pixbufs.keys():
|
||||||
|
return parent_widget.pixbufs[game_id]
|
||||||
|
|
||||||
|
cover_path = os.path.join(
|
||||||
|
os.getenv("XDG_DATA_HOME")
|
||||||
|
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
||||||
|
"cartridges",
|
||||||
|
"covers",
|
||||||
|
game_id + ".tiff",
|
||||||
|
)
|
||||||
|
|
||||||
|
if not os.path.isfile(cover_path):
|
||||||
return parent_widget.placeholder_pixbuf
|
return parent_widget.placeholder_pixbuf
|
||||||
|
|
||||||
open_file = open((cover_path), "rb")
|
return GdkPixbuf.Pixbuf.new_from_file(cover_path)
|
||||||
data = open_file.read()
|
|
||||||
open_file.close()
|
|
||||||
try:
|
|
||||||
return GdkPixbuf.Pixbuf.new_from_data(data, *parent_widget.games[game["game_id"]]["pixbuf_options"])
|
|
||||||
except KeyError:
|
|
||||||
return parent_widget.placeholder_pixbuf
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# get_games.py
|
# get_games.py
|
||||||
#
|
#
|
||||||
# Copyright 2022 kramo
|
# Copyright 2022-2023 kramo
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -17,18 +17,32 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
def get_games():
|
import json
|
||||||
import os, json
|
import os
|
||||||
|
|
||||||
games_dir = os.path.join(os.environ.get("XDG_DATA_HOME"), "games")
|
|
||||||
|
def get_games(game_ids=None):
|
||||||
|
games_dir = os.path.join(
|
||||||
|
os.getenv("XDG_DATA_HOME")
|
||||||
|
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
||||||
|
"cartridges",
|
||||||
|
"games",
|
||||||
|
)
|
||||||
games = {}
|
games = {}
|
||||||
|
|
||||||
if os.path.exists(games_dir) == False:
|
if not os.path.exists(games_dir):
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
for game in os.listdir(games_dir):
|
if not game_ids:
|
||||||
open_file = open(os.path.join(games_dir, game), "r")
|
game_files = os.listdir(games_dir)
|
||||||
data = json.loads(open_file.read())
|
else:
|
||||||
open_file.close()
|
game_files = []
|
||||||
|
for game_id in game_ids:
|
||||||
|
game_files.append(game_id + ".json")
|
||||||
|
|
||||||
|
for game in game_files:
|
||||||
|
with open(os.path.join(games_dir, game), "r") as open_file:
|
||||||
|
data = json.loads(open_file.read())
|
||||||
|
open_file.close()
|
||||||
games[data["game_id"]] = data
|
games[data["game_id"]] = data
|
||||||
return games
|
return games
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# heroic_parser.py
|
# heroic_parser.py
|
||||||
#
|
#
|
||||||
# Copyright 2022 kramo
|
# Copyright 2022-2023 kramo
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -17,82 +17,149 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
import hashlib
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
import time
|
||||||
|
|
||||||
|
from gi.repository import GLib, Gtk
|
||||||
|
|
||||||
|
from .create_dialog import create_dialog
|
||||||
|
from .save_cover import save_cover
|
||||||
|
|
||||||
|
|
||||||
def heroic_parser(parent_widget, action):
|
def heroic_parser(parent_widget, action):
|
||||||
import os, json, time
|
|
||||||
|
|
||||||
from gi.repository import Gtk, GLib
|
|
||||||
|
|
||||||
from .create_dialog import create_dialog
|
|
||||||
from .save_cover import save_cover
|
|
||||||
|
|
||||||
schema = parent_widget.schema
|
schema = parent_widget.schema
|
||||||
heroic_dir = os.path.expanduser(os.path.join(schema.get_string("heroic-location")))
|
heroic_dir = os.path.expanduser(schema.get_string("heroic-location"))
|
||||||
|
|
||||||
def heroic_not_found():
|
def heroic_not_found():
|
||||||
filechooser = Gtk.FileDialog.new()
|
if os.path.exists(
|
||||||
|
os.path.expanduser("~/.var/app/com.heroicgameslauncher.hgl/config/heroic/")
|
||||||
|
):
|
||||||
|
schema.set_string(
|
||||||
|
"heroic-location",
|
||||||
|
"~/.var/app/com.heroicgameslauncher.hgl/config/heroic/",
|
||||||
|
)
|
||||||
|
action(None, None)
|
||||||
|
elif os.path.exists(
|
||||||
|
os.path.join(
|
||||||
|
os.getenv("XDG_CONFIG_HOME")
|
||||||
|
or os.path.expanduser(os.path.join("~", ".config")),
|
||||||
|
"heroic",
|
||||||
|
)
|
||||||
|
):
|
||||||
|
schema.set_string(
|
||||||
|
"heroic-location",
|
||||||
|
os.path.join(
|
||||||
|
os.getenv("XDG_CONFIG_HOME")
|
||||||
|
or os.path.expanduser(os.path.join("~", ".config")),
|
||||||
|
"heroic",
|
||||||
|
),
|
||||||
|
)
|
||||||
|
action(None, None)
|
||||||
|
elif os.path.exists(os.path.join(os.getenv("appdata"), "heroic")):
|
||||||
|
schema.set_string(
|
||||||
|
"heroic-location", os.path.join(os.getenv("appdata"), "heroic")
|
||||||
|
)
|
||||||
|
action(None, None)
|
||||||
|
else:
|
||||||
|
filechooser = Gtk.FileDialog.new()
|
||||||
|
|
||||||
def set_heroic_dir(source, result, _):
|
def set_heroic_dir(_source, result, _unused):
|
||||||
try:
|
try:
|
||||||
schema.set_string("heroic-location", filechooser.select_folder_finish(result).get_path())
|
schema.set_string(
|
||||||
heroic_dir = heroic_dir = os.path.join(schema.get_string("heroic-location"))
|
"heroic-location",
|
||||||
action(None, None)
|
filechooser.select_folder_finish(result).get_path(),
|
||||||
except GLib.GError:
|
)
|
||||||
return
|
action(None, None)
|
||||||
|
except GLib.GError:
|
||||||
|
return
|
||||||
|
|
||||||
def choose_folder(widget):
|
def choose_folder(_widget):
|
||||||
filechooser.select_folder(parent_widget, None, set_heroic_dir, None)
|
filechooser.select_folder(parent_widget, None, set_heroic_dir, None)
|
||||||
|
|
||||||
def response(widget, response):
|
def response(widget, response):
|
||||||
if response == "choose_folder":
|
if response == "choose_folder":
|
||||||
choose_folder(widget)
|
choose_folder(widget)
|
||||||
|
|
||||||
create_dialog(parent_widget, _("Couldn't Import Games"), _("Heroic directory cannot be found."), "choose_folder", _("Set Heroic Location")).connect("response", response)
|
create_dialog(
|
||||||
|
parent_widget,
|
||||||
|
_("Couldn't Import Games"),
|
||||||
|
_("The Heroic directory cannot be found."),
|
||||||
|
"choose_folder",
|
||||||
|
_("Set Heroic Location"),
|
||||||
|
).connect("response", response)
|
||||||
|
|
||||||
if os.path.exists(os.path.join(heroic_dir, "config.json")) == True:
|
if os.path.exists(os.path.join(heroic_dir, "config.json")):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
heroic_not_found()
|
heroic_not_found()
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
|
heroic_dir = os.path.expanduser(schema.get_string("heroic-location"))
|
||||||
|
|
||||||
heroic_games = {}
|
heroic_games = {}
|
||||||
current_time = int(time.time())
|
current_time = int(time.time())
|
||||||
|
|
||||||
# Import Epic games
|
# Import Epic games
|
||||||
if schema.get_boolean("heroic-import-epic") == False:
|
if not schema.get_boolean("heroic-import-epic"):
|
||||||
pass
|
pass
|
||||||
elif os.path.exists(os.path.join(heroic_dir, "lib-cache", "installInfo.json")) == True:
|
elif os.path.exists(os.path.join(heroic_dir, "lib-cache", "library.json")):
|
||||||
open_file = open(os.path.join(heroic_dir, "lib-cache", "installInfo.json"), "r")
|
with open(
|
||||||
data = open_file.read()
|
os.path.join(heroic_dir, "lib-cache", "library.json"), "r"
|
||||||
open_file.close()
|
) as open_file:
|
||||||
installInfo = json.loads(data)
|
data = open_file.read()
|
||||||
for item in installInfo:
|
open_file.close()
|
||||||
if installInfo[item]["install"] != None:
|
library = json.loads(data)
|
||||||
values = {}
|
|
||||||
app_name = installInfo[item]["game"]["app_name"]
|
|
||||||
|
|
||||||
values["game_id"] = "heroic_epic_" + app_name
|
for game in library["library"]:
|
||||||
|
if not game["is_installed"]:
|
||||||
|
continue
|
||||||
|
|
||||||
if values["game_id"] in parent_widget.games and "removed" not in parent_widget.games[values["game_id"]].keys():
|
values = {}
|
||||||
continue
|
|
||||||
|
|
||||||
values["name"] = installInfo[item]["game"]["title"]
|
app_name = game["app_name"]
|
||||||
values["executable"] = "xdg-open heroic://launch/" + app_name
|
values["game_id"] = "heroic_epic_" + app_name
|
||||||
values["hidden"] = False
|
|
||||||
values["source"] = "heroic_epic"
|
|
||||||
values["added"] = current_time
|
|
||||||
values["last_played"] = 0
|
|
||||||
if os.path.isfile(os.path.join(heroic_dir, "icons", app_name + ".jpg")) == True:
|
|
||||||
values["pixbuf_options"] = save_cover(values, parent_widget, os.path.join(os.path.join(heroic_dir, "icons", app_name + ".jpg")))
|
|
||||||
|
|
||||||
heroic_games[values["game_id"]] = values
|
if (
|
||||||
|
values["game_id"] in parent_widget.games
|
||||||
|
and not parent_widget.games[values["game_id"]].removed
|
||||||
|
):
|
||||||
|
continue
|
||||||
|
|
||||||
|
values["name"] = game["title"]
|
||||||
|
values["developer"] = game["developer"]
|
||||||
|
values["executable"] = (
|
||||||
|
"start heroic://launch/" + app_name
|
||||||
|
if os.name == "nt"
|
||||||
|
else "xdg-open heroic://launch/" + app_name
|
||||||
|
)
|
||||||
|
values["hidden"] = False
|
||||||
|
values["source"] = "heroic_epic"
|
||||||
|
values["added"] = current_time
|
||||||
|
values["last_played"] = 0
|
||||||
|
|
||||||
|
image_path = os.path.join(
|
||||||
|
heroic_dir,
|
||||||
|
"images-cache",
|
||||||
|
hashlib.sha256(
|
||||||
|
(game["art_square"] + "?h=400&resize=1&w=300").encode()
|
||||||
|
).hexdigest(),
|
||||||
|
)
|
||||||
|
if os.path.exists(image_path):
|
||||||
|
save_cover(values, parent_widget, image_path)
|
||||||
|
|
||||||
|
heroic_games[values["game_id"]] = values
|
||||||
|
|
||||||
# Import GOG games
|
# Import GOG games
|
||||||
if schema.get_boolean("heroic-import-gog") == False:
|
if not schema.get_boolean("heroic-import-gog"):
|
||||||
pass
|
pass
|
||||||
elif os.path.exists(os.path.join(heroic_dir, "gog_store", "installed.json")) == True:
|
elif os.path.exists(os.path.join(heroic_dir, "gog_store", "installed.json")):
|
||||||
open_file = open(os.path.join(heroic_dir, "gog_store", "installed.json"), "r")
|
with open(
|
||||||
data = open_file.read()
|
os.path.join(heroic_dir, "gog_store", "installed.json"), "r"
|
||||||
open_file.close()
|
) as open_file:
|
||||||
|
data = open_file.read()
|
||||||
|
open_file.close()
|
||||||
installed = json.loads(data)
|
installed = json.loads(data)
|
||||||
for item in installed["installed"]:
|
for item in installed["installed"]:
|
||||||
values = {}
|
values = {}
|
||||||
@@ -100,35 +167,53 @@ def heroic_parser(parent_widget, action):
|
|||||||
|
|
||||||
values["game_id"] = "heroic_gog_" + app_name
|
values["game_id"] = "heroic_gog_" + app_name
|
||||||
|
|
||||||
if values["game_id"] in parent_widget.games and "removed" not in parent_widget.games[values["game_id"]].keys():
|
if (
|
||||||
continue
|
values["game_id"] in parent_widget.games
|
||||||
|
and not parent_widget.games[values["game_id"]].removed
|
||||||
|
):
|
||||||
|
continue
|
||||||
|
|
||||||
# Get game title from library.json as it's not present in installed.json
|
# Get game title and developer from library.json as they are not present in installed.json
|
||||||
open_file = open(os.path.join(heroic_dir, "gog_store", "library.json"), "r")
|
with open(
|
||||||
data = open_file.read()
|
os.path.join(heroic_dir, "gog_store", "library.json"), "r"
|
||||||
open_file.close()
|
) as open_file:
|
||||||
|
data = open_file.read()
|
||||||
|
open_file.close()
|
||||||
library = json.loads(data)
|
library = json.loads(data)
|
||||||
for game in library["games"]:
|
for game in library["games"]:
|
||||||
if game["app_name"] == app_name:
|
if game["app_name"] == app_name:
|
||||||
|
values["developer"] = game["developer"]
|
||||||
values["name"] = game["title"]
|
values["name"] = game["title"]
|
||||||
|
image_path = os.path.join(
|
||||||
|
heroic_dir,
|
||||||
|
"images-cache",
|
||||||
|
hashlib.sha256(game["art_square"].encode()).hexdigest(),
|
||||||
|
)
|
||||||
|
if os.path.exists(image_path):
|
||||||
|
save_cover(values, parent_widget, image_path)
|
||||||
break
|
break
|
||||||
|
|
||||||
values["executable"] = "xdg-open heroic://launch/" + app_name
|
values["executable"] = (
|
||||||
|
"start heroic://launch/" + app_name
|
||||||
|
if os.name == "nt"
|
||||||
|
else "xdg-open heroic://launch/" + app_name
|
||||||
|
)
|
||||||
values["hidden"] = False
|
values["hidden"] = False
|
||||||
values["source"] = "heroic_gog"
|
values["source"] = "heroic_gog"
|
||||||
values["added"] = current_time
|
values["added"] = current_time
|
||||||
values["last_played"] = 0
|
values["last_played"] = 0
|
||||||
if os.path.isfile(os.path.join(heroic_dir, "icons", app_name + ".jpg")) == True:
|
|
||||||
values["pixbuf_options"] = save_cover(values, parent_widget, os.path.join(os.path.join(heroic_dir, "icons", app_name + ".jpg")))
|
|
||||||
heroic_games[values["game_id"]] = values
|
heroic_games[values["game_id"]] = values
|
||||||
|
|
||||||
# Import sideloaded games
|
# Import sideloaded games
|
||||||
if schema.get_boolean("heroic-import-sideload") == False:
|
if not schema.get_boolean("heroic-import-sideload"):
|
||||||
pass
|
pass
|
||||||
elif os.path.exists(os.path.join(heroic_dir, "sideload_apps", "library.json")) == True:
|
elif os.path.exists(os.path.join(heroic_dir, "sideload_apps", "library.json")):
|
||||||
open_file = open(os.path.join(heroic_dir, "sideload_apps", "library.json"), "r")
|
with open(
|
||||||
data = open_file.read()
|
os.path.join(heroic_dir, "sideload_apps", "library.json"), "r"
|
||||||
open_file.close()
|
) as open_file:
|
||||||
|
data = open_file.read()
|
||||||
|
open_file.close()
|
||||||
library = json.loads(data)
|
library = json.loads(data)
|
||||||
for item in library["games"]:
|
for item in library["games"]:
|
||||||
values = {}
|
values = {}
|
||||||
@@ -136,23 +221,50 @@ def heroic_parser(parent_widget, action):
|
|||||||
|
|
||||||
values["game_id"] = "heroic_sideload_" + app_name
|
values["game_id"] = "heroic_sideload_" + app_name
|
||||||
|
|
||||||
if values["game_id"] in parent_widget.games and "removed" not in parent_widget.games[values["game_id"]].keys():
|
if (
|
||||||
|
values["game_id"] in parent_widget.games
|
||||||
|
and not parent_widget.games[values["game_id"]].removed
|
||||||
|
):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
values["name"] = item["title"]
|
values["name"] = item["title"]
|
||||||
values["executable"] = "xdg-open heroic://launch/" + app_name
|
values["executable"] = (
|
||||||
|
"start heroic://launch/" + app_name
|
||||||
|
if os.name == "nt"
|
||||||
|
else "xdg-open heroic://launch/" + app_name
|
||||||
|
)
|
||||||
values["hidden"] = False
|
values["hidden"] = False
|
||||||
values["source"] = "heroic_sideload"
|
values["source"] = "heroic_sideload"
|
||||||
values["added"] = current_time
|
values["added"] = current_time
|
||||||
values["last_played"] = 0
|
values["last_played"] = 0
|
||||||
if os.path.isfile(os.path.join(heroic_dir, "icons", app_name + ".jpg")) == True:
|
image_path = os.path.join(
|
||||||
values["pixbuf_options"] = save_cover(values, parent_widget, os.path.join(os.path.join(heroic_dir, "icons", app_name + ".jpg")))
|
heroic_dir,
|
||||||
|
"images-cache",
|
||||||
|
hashlib.sha256(item["art_square"].encode()).hexdigest(),
|
||||||
|
)
|
||||||
|
if os.path.exists(image_path):
|
||||||
|
save_cover(values, parent_widget, image_path)
|
||||||
|
|
||||||
heroic_games[values["game_id"]] = values
|
heroic_games[values["game_id"]] = values
|
||||||
|
|
||||||
if len(heroic_games) == 0:
|
if len(heroic_games) == 0:
|
||||||
create_dialog(parent_widget, _("No Games Found"), _("No new games found in Heroic library."))
|
create_dialog(
|
||||||
|
parent_widget,
|
||||||
|
_("No Games Found"),
|
||||||
|
_("No new games were found in the Heroic library."),
|
||||||
|
)
|
||||||
elif len(heroic_games) == 1:
|
elif len(heroic_games) == 1:
|
||||||
create_dialog(parent_widget, _("Heroic Games Imported"), _("Successfully imported 1 game."))
|
create_dialog(
|
||||||
|
parent_widget,
|
||||||
|
_("Heroic Games Imported"),
|
||||||
|
_("Successfully imported 1 game."),
|
||||||
|
)
|
||||||
elif len(heroic_games) > 1:
|
elif len(heroic_games) > 1:
|
||||||
create_dialog(parent_widget, _("Heroic Games Imported"), _("Successfully imported") + " " + str(len(heroic_games)) + " " + _("games."))
|
games_no = str(len(heroic_games))
|
||||||
|
create_dialog(
|
||||||
|
parent_widget,
|
||||||
|
_("Heroic Games Imported"),
|
||||||
|
# The variable is the number of games
|
||||||
|
_(f"Successfully imported {games_no} games."),
|
||||||
|
)
|
||||||
return heroic_games
|
return heroic_games
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# run_command.py
|
# run_command.py
|
||||||
#
|
#
|
||||||
# Copyright 2022 kramo
|
# Copyright 2022-2023 kramo
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -17,12 +17,23 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
def run_command(parent_widget, executable):
|
import os
|
||||||
import subprocess, sys
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
from gi.repository import Gio
|
from gi.repository import Gio
|
||||||
|
|
||||||
subprocess.Popen(["flatpak-spawn --host " + executable], shell=True, start_new_session=True)
|
|
||||||
|
|
||||||
if Gio.Settings.new("hu.kramo.GameShelf").get_boolean("exit-after-launch") == True:
|
def run_command(executable):
|
||||||
|
subprocess.Popen(
|
||||||
|
["flatpak-spawn --host " + executable]
|
||||||
|
if os.getenv("FLATPAK_ID") == "hu.kramo.Cartridges"
|
||||||
|
else executable.split()
|
||||||
|
if os.name == "nt"
|
||||||
|
else [executable],
|
||||||
|
shell=True,
|
||||||
|
start_new_session=True,
|
||||||
|
creationflags=subprocess.CREATE_NEW_PROCESS_GROUP if os.name == "nt" else 0,
|
||||||
|
)
|
||||||
|
if Gio.Settings.new("hu.kramo.Cartridges").get_boolean("exit-after-launch"):
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# save_cover.py
|
# save_cover.py
|
||||||
#
|
#
|
||||||
# Copyright 2022 kramo
|
# Copyright 2022-2023 kramo
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -17,23 +17,36 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
def save_cover(game, parent_widget, file_path, pixbuf = None, game_id = None):
|
import os
|
||||||
from gi.repository import GdkPixbuf
|
|
||||||
import os
|
|
||||||
|
|
||||||
covers_dir = os.path.join(os.environ.get("XDG_DATA_HOME"), "covers")
|
from gi.repository import GdkPixbuf, Gio
|
||||||
if os.path.exists(covers_dir) == False:
|
|
||||||
|
|
||||||
|
def save_cover(game, parent_widget, file_path, pixbuf=None, game_id=None):
|
||||||
|
covers_dir = os.path.join(
|
||||||
|
os.getenv("XDG_DATA_HOME")
|
||||||
|
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
||||||
|
"cartridges",
|
||||||
|
"covers",
|
||||||
|
)
|
||||||
|
if not os.path.exists(covers_dir):
|
||||||
os.makedirs(covers_dir)
|
os.makedirs(covers_dir)
|
||||||
|
|
||||||
if game_id == None:
|
if game_id is None:
|
||||||
game_id = game["game_id"]
|
game_id = game["game_id"]
|
||||||
|
|
||||||
cover_path = os.path.join(covers_dir, game_id + ".dat")
|
if pixbuf is None:
|
||||||
|
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(file_path, 600, 900, False)
|
||||||
|
|
||||||
if pixbuf == None:
|
def cover_callback(*_unused):
|
||||||
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(file_path, 200, 300, False)
|
pass
|
||||||
|
|
||||||
open_file = open((cover_path), "wb")
|
open_file = Gio.File.new_for_path(os.path.join(covers_dir, game_id + ".tiff"))
|
||||||
open_file.write(bytes(pixbuf.get_pixels()))
|
parent_widget.pixbufs[game_id] = pixbuf
|
||||||
open_file.close()
|
pixbuf.save_to_streamv_async(
|
||||||
return [pixbuf.get_colorspace(), pixbuf.get_has_alpha(), pixbuf.get_bits_per_sample(), pixbuf.get_width(), pixbuf.get_height(), pixbuf.get_rowstride()]
|
open_file.replace(None, False, Gio.FileCreateFlags.NONE),
|
||||||
|
"tiff",
|
||||||
|
["compression"],
|
||||||
|
["7"],
|
||||||
|
callback=cover_callback,
|
||||||
|
)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# save_games.py
|
# save_games.py
|
||||||
#
|
#
|
||||||
# Copyright 2022 kramo
|
# Copyright 2022-2023 kramo
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -17,15 +17,22 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
def save_games(games):
|
import json
|
||||||
import os, json
|
import os
|
||||||
games_dir = os.path.join(os.environ.get("XDG_DATA_HOME"), "games")
|
|
||||||
existing = []
|
|
||||||
|
|
||||||
if os.path.exists(games_dir) == False:
|
|
||||||
|
def save_games(games):
|
||||||
|
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):
|
||||||
os.makedirs(games_dir)
|
os.makedirs(games_dir)
|
||||||
|
|
||||||
for game in games:
|
for game in games:
|
||||||
open_file = open(os.path.join(games_dir, game + ".json"), "w")
|
with open(os.path.join(games_dir, game + ".json"), "w") as open_file:
|
||||||
open_file.write(json.dumps(games[game], indent=4))
|
open_file.write(json.dumps(games[game], indent=4, sort_keys=True))
|
||||||
open_file.close()
|
open_file.close()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# steam_parser.py
|
# steam_parser.py
|
||||||
#
|
#
|
||||||
# Copyright 2022 kramo
|
# Copyright 2022-2023 kramo
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -17,87 +17,267 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
import time
|
||||||
|
import urllib.request
|
||||||
|
|
||||||
|
from gi.repository import Adw, Gio, GLib, Gtk
|
||||||
|
|
||||||
|
from .create_dialog import create_dialog
|
||||||
|
from .save_cover import save_cover
|
||||||
|
from .save_games import save_games
|
||||||
|
|
||||||
|
|
||||||
|
def upadte_values_from_data(content, values):
|
||||||
|
basic_data = json.loads(content)[values["appid"]]
|
||||||
|
if not basic_data["success"]:
|
||||||
|
values["blacklisted"] = True
|
||||||
|
else:
|
||||||
|
data = basic_data["data"]
|
||||||
|
values["developer"] = ", ".join(data["developers"])
|
||||||
|
|
||||||
|
if data["type"] != "game":
|
||||||
|
values["blacklisted"] = True
|
||||||
|
|
||||||
|
return values
|
||||||
|
|
||||||
|
|
||||||
|
def get_game(task, datatypes, current_time, parent_widget, appmanifest, steam_dir):
|
||||||
|
values = {}
|
||||||
|
|
||||||
|
with open(appmanifest, "r") as open_file:
|
||||||
|
data = open_file.read()
|
||||||
|
open_file.close()
|
||||||
|
for datatype in datatypes:
|
||||||
|
value = re.findall('"' + datatype + '"\t\t"(.*)"\n', data)
|
||||||
|
values[datatype] = value[0]
|
||||||
|
|
||||||
|
values["game_id"] = "steam_" + values["appid"]
|
||||||
|
|
||||||
|
if (
|
||||||
|
values["game_id"] in parent_widget.games
|
||||||
|
and not parent_widget.games[values["game_id"]].removed
|
||||||
|
):
|
||||||
|
task.return_value(None)
|
||||||
|
return
|
||||||
|
|
||||||
|
values["executable"] = (
|
||||||
|
"start steam://rungameid/" + values["appid"]
|
||||||
|
if os.name == "nt"
|
||||||
|
else "xdg-open steam://rungameid/" + values["appid"]
|
||||||
|
)
|
||||||
|
values["hidden"] = False
|
||||||
|
values["source"] = "steam"
|
||||||
|
values["added"] = current_time
|
||||||
|
values["last_played"] = 0
|
||||||
|
|
||||||
|
url = "https://store.steampowered.com/api/appdetails?appids=" + values["appid"]
|
||||||
|
|
||||||
|
# On Linux the request is made through gvfs so the app can run without network permissions
|
||||||
|
if os.name == "nt":
|
||||||
|
try:
|
||||||
|
with urllib.request.urlopen(url, timeout=10) as open_file:
|
||||||
|
content = open_file.read().decode("utf-8")
|
||||||
|
except urllib.error.URLError:
|
||||||
|
content = None
|
||||||
|
else:
|
||||||
|
open_file = Gio.File.new_for_uri(url)
|
||||||
|
try:
|
||||||
|
content = open_file.load_contents()[1]
|
||||||
|
except GLib.GError:
|
||||||
|
content = None
|
||||||
|
|
||||||
|
if content:
|
||||||
|
values = upadte_values_from_data(content, values)
|
||||||
|
|
||||||
|
if os.path.isfile(
|
||||||
|
os.path.join(
|
||||||
|
steam_dir,
|
||||||
|
"appcache",
|
||||||
|
"librarycache",
|
||||||
|
values["appid"] + "_library_600x900.jpg",
|
||||||
|
)
|
||||||
|
):
|
||||||
|
save_cover(
|
||||||
|
values,
|
||||||
|
parent_widget,
|
||||||
|
os.path.join(
|
||||||
|
steam_dir,
|
||||||
|
"appcache",
|
||||||
|
"librarycache",
|
||||||
|
values["appid"] + "_library_600x900.jpg",
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
task.return_value(values)
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
|
def get_games_async(parent_widget, appmanifests, steam_dir, import_dialog):
|
||||||
|
datatypes = ["appid", "name"]
|
||||||
|
current_time = int(time.time())
|
||||||
|
|
||||||
|
steam_games = {}
|
||||||
|
queue = 0
|
||||||
|
|
||||||
|
# Wrap the function in another one as Gio.Task.run_in_thread does not allow for passing args
|
||||||
|
def create_func(datatypes, current_time, parent_widget, appmanifest, steam_dir):
|
||||||
|
def wrapper(task, *_unused):
|
||||||
|
get_game(
|
||||||
|
task, datatypes, current_time, parent_widget, appmanifest, steam_dir
|
||||||
|
)
|
||||||
|
|
||||||
|
return wrapper
|
||||||
|
|
||||||
|
def update_games(_task, result, parent_widget):
|
||||||
|
nonlocal queue
|
||||||
|
nonlocal import_dialog
|
||||||
|
|
||||||
|
queue -= 1
|
||||||
|
|
||||||
|
try:
|
||||||
|
final_values = result.propagate_value()[1]
|
||||||
|
steam_games[final_values["game_id"]] = final_values
|
||||||
|
except (TypeError, GLib.GError):
|
||||||
|
pass
|
||||||
|
|
||||||
|
if queue == 0:
|
||||||
|
save_games(steam_games)
|
||||||
|
parent_widget.update_games(steam_games)
|
||||||
|
import_dialog.close()
|
||||||
|
games_no = len(
|
||||||
|
{
|
||||||
|
game_id: final_values
|
||||||
|
for game_id, final_values in steam_games.items()
|
||||||
|
if "blacklisted" not in final_values.keys()
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
if games_no == 0:
|
||||||
|
create_dialog(
|
||||||
|
parent_widget,
|
||||||
|
_("No Games Found"),
|
||||||
|
_("No new games were found in the Steam library."),
|
||||||
|
)
|
||||||
|
elif games_no == 1:
|
||||||
|
create_dialog(
|
||||||
|
parent_widget,
|
||||||
|
_("Steam Games Imported"),
|
||||||
|
_("Successfully imported 1 game."),
|
||||||
|
)
|
||||||
|
elif games_no > 1:
|
||||||
|
games_no = str(games_no)
|
||||||
|
create_dialog(
|
||||||
|
parent_widget,
|
||||||
|
_("Steam Games Imported"),
|
||||||
|
# The variable is the number of games
|
||||||
|
_(f"Successfully imported {games_no} games."),
|
||||||
|
)
|
||||||
|
|
||||||
|
for appmanifest in appmanifests:
|
||||||
|
queue += 1
|
||||||
|
|
||||||
|
cancellable = Gio.Cancellable.new()
|
||||||
|
GLib.timeout_add_seconds(5, cancellable.cancel)
|
||||||
|
|
||||||
|
task = Gio.Task.new(None, cancellable, update_games, parent_widget)
|
||||||
|
task.set_return_on_cancel(True)
|
||||||
|
task.run_in_thread(
|
||||||
|
create_func(datatypes, current_time, parent_widget, appmanifest, steam_dir)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def steam_parser(parent_widget, action):
|
def steam_parser(parent_widget, action):
|
||||||
import os, re, time
|
|
||||||
|
|
||||||
from gi.repository import Gtk, GLib
|
|
||||||
|
|
||||||
from .create_dialog import create_dialog
|
|
||||||
from .save_cover import save_cover
|
|
||||||
|
|
||||||
schema = parent_widget.schema
|
schema = parent_widget.schema
|
||||||
steam_dir = os.path.expanduser(os.path.join(schema.get_string("steam-location")))
|
steam_dir = os.path.expanduser(schema.get_string("steam-location"))
|
||||||
|
|
||||||
def steam_not_found():
|
def steam_not_found():
|
||||||
filechooser = Gtk.FileDialog.new()
|
if os.path.exists(
|
||||||
|
os.path.expanduser("~/.var/app/com.valvesoftware.Steam/data/Steam/")
|
||||||
|
):
|
||||||
|
schema.set_string(
|
||||||
|
"steam-location", "~/.var/app/com.valvesoftware.Steam/data/Steam/"
|
||||||
|
)
|
||||||
|
action(None, None)
|
||||||
|
elif os.path.exists(os.path.expanduser("~/.steam/steam/")):
|
||||||
|
schema.set_string("steam-location", "~/.steam/steam/")
|
||||||
|
action(None, None)
|
||||||
|
elif os.path.exists(os.path.join(os.getenv("programfiles(x86)"), "Steam")):
|
||||||
|
schema.set_string(
|
||||||
|
"steam-location", os.path.join(os.getenv("programfiles(x86)"), "Steam")
|
||||||
|
)
|
||||||
|
action(None, None)
|
||||||
|
else:
|
||||||
|
filechooser = Gtk.FileDialog.new()
|
||||||
|
|
||||||
def set_steam_dir(source, result, _):
|
def set_steam_dir(_source, result, _unused):
|
||||||
try:
|
try:
|
||||||
schema.set_string("steam-location", filechooser.select_folder_finish(result).get_path())
|
schema.set_string(
|
||||||
steam_dir = steam_dir = os.path.join(schema.get_string("steam-location"))
|
"steam-location",
|
||||||
action(None, None)
|
filechooser.select_folder_finish(result).get_path(),
|
||||||
except GLib.GError:
|
)
|
||||||
return
|
action(None, None)
|
||||||
|
except GLib.GError:
|
||||||
|
return
|
||||||
|
|
||||||
def choose_folder(widget):
|
def choose_folder(_widget):
|
||||||
filechooser.select_folder(parent_widget, None, set_steam_dir, None)
|
filechooser.select_folder(parent_widget, None, set_steam_dir, None)
|
||||||
|
|
||||||
def response(widget, response):
|
def response(widget, response):
|
||||||
if response == "choose_folder":
|
if response == "choose_folder":
|
||||||
choose_folder(widget)
|
choose_folder(widget)
|
||||||
|
|
||||||
create_dialog(parent_widget, _("Couldn't Import Games"), _("Steam directory cannot be found."), "choose_folder", _("Set Steam Location")).connect("response", response)
|
create_dialog(
|
||||||
|
parent_widget,
|
||||||
|
_("Couldn't Import Games"),
|
||||||
|
_("The Steam directory cannot be found."),
|
||||||
|
"choose_folder",
|
||||||
|
_("Set Steam Location"),
|
||||||
|
).connect("response", response)
|
||||||
|
|
||||||
if os.path.exists(os.path.join(steam_dir, "steamapps")) == True:
|
if os.path.exists(os.path.join(steam_dir, "steamapps")):
|
||||||
pass
|
pass
|
||||||
elif os.path.exists(os.path.join(steam_dir, "steam", "steamapps")) == True:
|
elif os.path.exists(os.path.join(steam_dir, "steam", "steamapps")):
|
||||||
schema.set_string("steam-location", os.path.join(steam_dir, "steam"))
|
schema.set_string("steam-location", os.path.join(steam_dir, "steam"))
|
||||||
elif os.path.exists(os.path.join(steam_dir, "Steam", "steamapps")) == True:
|
elif os.path.exists(os.path.join(steam_dir, "Steam", "steamapps")):
|
||||||
schema.set_string("steam-location", os.path.join(steam_dir, "Steam"))
|
schema.set_string("steam-location", os.path.join(steam_dir, "Steam"))
|
||||||
else:
|
else:
|
||||||
steam_not_found()
|
steam_not_found()
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
steam_dir = schema.get_string("steam-location")
|
steam_dir = os.path.expanduser(schema.get_string("steam-location"))
|
||||||
|
|
||||||
|
import_statuspage = Adw.StatusPage(
|
||||||
|
title=_("Importing Games…"),
|
||||||
|
description=_("Talking to Steam"),
|
||||||
|
)
|
||||||
|
|
||||||
|
import_dialog = Adw.Window(
|
||||||
|
content=import_statuspage,
|
||||||
|
modal=True,
|
||||||
|
default_width=350,
|
||||||
|
default_height=200,
|
||||||
|
transient_for=parent_widget,
|
||||||
|
deletable=False,
|
||||||
|
)
|
||||||
|
|
||||||
|
import_dialog.present()
|
||||||
|
|
||||||
appmanifests = []
|
appmanifests = []
|
||||||
datatypes = ["appid", "name"]
|
|
||||||
steam_games = {}
|
|
||||||
current_time = int(time.time())
|
|
||||||
|
|
||||||
for open_file in os.listdir(os.path.join(steam_dir, "steamapps")):
|
steam_dirs = schema.get_strv("steam-extra-dirs")
|
||||||
path = os.path.join(steam_dir, "steamapps", open_file)
|
steam_dirs.append(steam_dir)
|
||||||
if os.path.isfile(path) and "appmanifest" in open_file:
|
|
||||||
appmanifests.append(path)
|
|
||||||
|
|
||||||
for appmanifest in appmanifests:
|
for directory in steam_dirs:
|
||||||
values = {}
|
if not os.path.exists(os.path.join(directory, "steamapps")):
|
||||||
open_file = open(appmanifest, "r")
|
steam_dirs.remove(directory)
|
||||||
data = open_file.read()
|
|
||||||
open_file.close()
|
|
||||||
for datatype in datatypes:
|
|
||||||
value = re.findall("\"" + datatype + "\"\t\t\"(.*)\"\n", data)
|
|
||||||
values [datatype] = value[0]
|
|
||||||
|
|
||||||
values["game_id"] = "steam_" + values["appid"]
|
for directory in steam_dirs:
|
||||||
|
for open_file in os.listdir(os.path.join(directory, "steamapps")):
|
||||||
|
path = os.path.join(directory, "steamapps", open_file)
|
||||||
|
if os.path.isfile(path) and "appmanifest" in open_file:
|
||||||
|
appmanifests.append(path)
|
||||||
|
|
||||||
if values["game_id"] in parent_widget.games and "removed" not in parent_widget.games[values["game_id"]].keys():
|
get_games_async(parent_widget, appmanifests, directory, import_dialog)
|
||||||
continue
|
|
||||||
|
|
||||||
values["executable"] = "xdg-open steam://rungameid/" + values["appid"]
|
|
||||||
values["hidden"] = False
|
|
||||||
values["source"] = "steam"
|
|
||||||
values["added"] = current_time
|
|
||||||
values["last_played"] = 0
|
|
||||||
|
|
||||||
if os.path.isfile(os.path.join(steam_dir, "appcache", "librarycache", values["appid"] + "_library_600x900.jpg")) == True:
|
|
||||||
values["pixbuf_options"] = save_cover(values, parent_widget, os.path.join(steam_dir, "appcache", "librarycache", values["appid"] + "_library_600x900.jpg"))
|
|
||||||
steam_games[values["game_id"]] = values
|
|
||||||
|
|
||||||
if len(steam_games) == 0:
|
|
||||||
create_dialog(parent_widget, _("No Games Found"), _("No new games found in Steam library."))
|
|
||||||
elif len(steam_games) == 1:
|
|
||||||
create_dialog(parent_widget, _("Steam Games Imported"), _("Successfully imported 1 game."))
|
|
||||||
elif len(steam_games) > 1:
|
|
||||||
create_dialog(parent_widget, _("Steam Games Imported"), _("Successfully imported") + " " + str(len(steam_games)) + " " + _("games."))
|
|
||||||
return steam_games
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# toggle_hidden.py
|
# toggle_hidden.py
|
||||||
#
|
#
|
||||||
# Copyright 2022 kramo
|
# Copyright 2022-2023 kramo
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -17,17 +17,27 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
def toggle_hidden(game):
|
import json
|
||||||
import os, json
|
import os
|
||||||
games_dir = os.path.join(os.environ.get("XDG_DATA_HOME"), "games")
|
|
||||||
|
|
||||||
if os.path.exists(games_dir) == False:
|
|
||||||
|
def toggle_hidden(game):
|
||||||
|
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):
|
||||||
return
|
return
|
||||||
|
|
||||||
file = open(os.path.join(games_dir, game + ".json"), "r")
|
with open(os.path.join(games_dir, game + ".json"), "r") as open_file:
|
||||||
data = json.loads(file.read())
|
data = json.loads(open_file.read())
|
||||||
file.close()
|
open_file.close()
|
||||||
file = open(os.path.join(games_dir, game + ".json"), "w")
|
|
||||||
data["hidden"] = not data["hidden"]
|
data["hidden"] = not data["hidden"]
|
||||||
file.write(json.dumps(data, indent=4))
|
|
||||||
file.close()
|
with open(os.path.join(games_dir, game + ".json"), "w") as open_file:
|
||||||
|
open_file.write(json.dumps(data, indent=4))
|
||||||
|
open_file.close()
|
||||||
|
|||||||
233
src/window.py
@@ -1,6 +1,6 @@
|
|||||||
# window.py
|
# window.py
|
||||||
#
|
#
|
||||||
# Copyright 2022 kramo
|
# Copyright 2022-2023 kramo
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -17,20 +17,23 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
from gi.repository import Gio, GLib, Adw, GdkPixbuf, Gtk
|
import datetime
|
||||||
|
import os
|
||||||
|
|
||||||
import os, json, time, datetime
|
from gi.repository import Adw, GdkPixbuf, Gio, GLib, Gtk
|
||||||
|
|
||||||
from .game import game
|
from .game import game
|
||||||
from .get_cover import get_cover
|
from .get_cover import get_cover
|
||||||
from .get_games import get_games
|
from .get_games import get_games
|
||||||
from .save_games import save_games
|
from .save_games import save_games
|
||||||
|
|
||||||
@Gtk.Template(resource_path="/hu/kramo/GameShelf/window.ui")
|
|
||||||
class GameShelfWindow(Adw.ApplicationWindow):
|
@Gtk.Template(resource_path="/hu/kramo/Cartridges/gtk/window.ui")
|
||||||
__gtype_name__ = "GameShelfWindow"
|
class CartridgesWindow(Adw.ApplicationWindow):
|
||||||
|
__gtype_name__ = "CartridgesWindow"
|
||||||
|
|
||||||
toast_overlay = Gtk.Template.Child()
|
toast_overlay = Gtk.Template.Child()
|
||||||
|
primary_menu_button = Gtk.Template.Child()
|
||||||
stack = Gtk.Template.Child()
|
stack = Gtk.Template.Child()
|
||||||
overview = Gtk.Template.Child()
|
overview = Gtk.Template.Child()
|
||||||
library_view = Gtk.Template.Child()
|
library_view = Gtk.Template.Child()
|
||||||
@@ -51,6 +54,7 @@ class GameShelfWindow(Adw.ApplicationWindow):
|
|||||||
overview_launch = Gtk.Template.Child()
|
overview_launch = Gtk.Template.Child()
|
||||||
overview_blurred_cover = Gtk.Template.Child()
|
overview_blurred_cover = Gtk.Template.Child()
|
||||||
overview_menu_button = Gtk.Template.Child()
|
overview_menu_button = Gtk.Template.Child()
|
||||||
|
overview_developer = Gtk.Template.Child()
|
||||||
overview_added = Gtk.Template.Child()
|
overview_added = Gtk.Template.Child()
|
||||||
overview_last_played = Gtk.Template.Child()
|
overview_last_played = Gtk.Template.Child()
|
||||||
|
|
||||||
@@ -67,24 +71,45 @@ class GameShelfWindow(Adw.ApplicationWindow):
|
|||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
|
|
||||||
|
self.games = {}
|
||||||
self.visible_widgets = {}
|
self.visible_widgets = {}
|
||||||
self.hidden_widgets = {}
|
self.hidden_widgets = {}
|
||||||
self.filtered = {}
|
self.filtered = {}
|
||||||
self.hidden_filtered = {}
|
self.hidden_filtered = {}
|
||||||
self.previous_page = self.library_view
|
self.previous_page = self.library_view
|
||||||
self.toasts = {}
|
self.toasts = {}
|
||||||
|
self.pixbufs = {}
|
||||||
|
self.active_game_id = None
|
||||||
|
|
||||||
self.overview.set_measure_overlay(self.overview_box, True)
|
self.overview.set_measure_overlay(self.overview_box, True)
|
||||||
self.overview.set_clip_overlay(self.overview_box, False)
|
self.overview.set_clip_overlay(self.overview_box, False)
|
||||||
|
|
||||||
self.schema = Gio.Settings.new("hu.kramo.GameShelf")
|
self.schema = Gio.Settings.new("hu.kramo.Cartridges")
|
||||||
self.placeholder_pixbuf = GdkPixbuf.Pixbuf.new_from_resource_at_scale("/hu/kramo/GameShelf/assets/library_placeholder.svg", 200, 300, False)
|
self.placeholder_pixbuf = GdkPixbuf.Pixbuf.new_from_resource_at_scale(
|
||||||
games = get_games()
|
"/hu/kramo/Cartridges/library_placeholder.svg", 200, 300, False
|
||||||
for game in games:
|
)
|
||||||
if "removed" in games[game].keys():
|
current_games = get_games()
|
||||||
os.remove(os.path.join(os.environ.get("XDG_DATA_HOME"), "games", game + ".json"))
|
for current_game in current_games:
|
||||||
|
if "removed" in current_games[current_game].keys():
|
||||||
|
os.remove(
|
||||||
|
os.path.join(
|
||||||
|
os.getenv("XDG_DATA_HOME")
|
||||||
|
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
||||||
|
"cartridges",
|
||||||
|
"games",
|
||||||
|
current_game + ".json",
|
||||||
|
)
|
||||||
|
)
|
||||||
try:
|
try:
|
||||||
os.remove(os.path.join(os.environ.get("XDG_DATA_HOME"), "covers", game + ".dat"))
|
os.remove(
|
||||||
|
os.path.join(
|
||||||
|
os.getenv("XDG_DATA_HOME")
|
||||||
|
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
||||||
|
"cartridges",
|
||||||
|
"covers",
|
||||||
|
current_game + ".dat",
|
||||||
|
)
|
||||||
|
)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -97,9 +122,12 @@ class GameShelfWindow(Adw.ApplicationWindow):
|
|||||||
self.search_entry.connect("search-changed", self.search_changed, False)
|
self.search_entry.connect("search-changed", self.search_changed, False)
|
||||||
self.hidden_search_entry.connect("search-changed", self.search_changed, True)
|
self.hidden_search_entry.connect("search-changed", self.search_changed, True)
|
||||||
|
|
||||||
|
back_mouse_button = Gtk.GestureClick(button=8)
|
||||||
|
back_mouse_button.connect("pressed", self.on_go_back_action)
|
||||||
|
self.add_controller(back_mouse_button)
|
||||||
|
|
||||||
def update_games(self, games):
|
def update_games(self, games):
|
||||||
# Update the displayed games and the self.games instance variable to reference later
|
current_games = get_games()
|
||||||
self.games = get_games()
|
|
||||||
|
|
||||||
for game_id in games:
|
for game_id in games:
|
||||||
if game_id in self.visible_widgets:
|
if game_id in self.visible_widgets:
|
||||||
@@ -110,31 +138,37 @@ class GameShelfWindow(Adw.ApplicationWindow):
|
|||||||
self.hidden_library.remove(self.hidden_widgets[game_id])
|
self.hidden_library.remove(self.hidden_widgets[game_id])
|
||||||
self.hidden_filtered.pop(self.hidden_widgets[game_id])
|
self.hidden_filtered.pop(self.hidden_widgets[game_id])
|
||||||
self.hidden_widgets.pop(game_id)
|
self.hidden_widgets.pop(game_id)
|
||||||
if game_id in self.games:
|
|
||||||
current_game = self.games[game_id]
|
|
||||||
|
|
||||||
if "removed" in current_game.keys():
|
current_game = current_games[game_id]
|
||||||
continue
|
|
||||||
|
|
||||||
entry = game(current_game["name"], get_cover(current_game, self), game_id)
|
entry = game(self, current_game)
|
||||||
|
self.games[current_game["game_id"]] = entry
|
||||||
|
|
||||||
if self.games[game_id]["hidden"] == False:
|
if entry.removed:
|
||||||
self.visible_widgets[game_id] = entry
|
continue
|
||||||
self.library.append(entry)
|
if entry.blacklisted:
|
||||||
else:
|
continue
|
||||||
self.hidden_widgets[game_id] = entry
|
|
||||||
entry.menu_button.set_menu_model(entry.hidden_game_options)
|
|
||||||
self.hidden_library.append(entry)
|
|
||||||
|
|
||||||
entry.cover_button.connect("clicked", self.show_overview, game_id)
|
if not self.games[game_id].hidden:
|
||||||
entry.menu_button.get_popover().connect("notify::visible", self.set_active_game, game_id)
|
self.visible_widgets[game_id] = entry
|
||||||
|
self.library.append(entry)
|
||||||
|
else:
|
||||||
|
self.hidden_widgets[game_id] = entry
|
||||||
|
entry.menu_button.set_menu_model(entry.hidden_game_options)
|
||||||
|
self.hidden_library.append(entry)
|
||||||
|
|
||||||
if self.visible_widgets == {}:
|
entry.cover_button.connect("clicked", self.show_overview, game_id)
|
||||||
|
entry.menu_button.get_popover().connect(
|
||||||
|
"notify::visible", self.set_active_game, game_id
|
||||||
|
)
|
||||||
|
entry.get_parent().set_focusable(False)
|
||||||
|
|
||||||
|
if not self.visible_widgets:
|
||||||
self.library_bin.set_child(self.notice_empty)
|
self.library_bin.set_child(self.notice_empty)
|
||||||
else:
|
else:
|
||||||
self.library_bin.set_child(self.scrolledwindow)
|
self.library_bin.set_child(self.scrolledwindow)
|
||||||
|
|
||||||
if self.hidden_widgets == {}:
|
if not self.hidden_widgets:
|
||||||
self.hidden_library_bin.set_child(self.hidden_notice_empty)
|
self.hidden_library_bin.set_child(self.hidden_notice_empty)
|
||||||
else:
|
else:
|
||||||
self.hidden_library_bin.set_child(self.hidden_scrolledwindow)
|
self.hidden_library_bin.set_child(self.hidden_scrolledwindow)
|
||||||
@@ -142,9 +176,9 @@ class GameShelfWindow(Adw.ApplicationWindow):
|
|||||||
self.library.invalidate_filter()
|
self.library.invalidate_filter()
|
||||||
self.hidden_library.invalidate_filter()
|
self.hidden_library.invalidate_filter()
|
||||||
|
|
||||||
def search_changed(self, widget, hidden):
|
def search_changed(self, _widget, hidden):
|
||||||
# Refresh search filter on keystroke in search box
|
# Refresh search filter on keystroke in search box
|
||||||
if hidden == False:
|
if not hidden:
|
||||||
self.library.invalidate_filter()
|
self.library.invalidate_filter()
|
||||||
else:
|
else:
|
||||||
self.hidden_library.invalidate_filter()
|
self.hidden_library.invalidate_filter()
|
||||||
@@ -185,25 +219,30 @@ class GameShelfWindow(Adw.ApplicationWindow):
|
|||||||
self.hidden_library_bin.set_child(self.hidden_scrolledwindow)
|
self.hidden_library_bin.set_child(self.hidden_scrolledwindow)
|
||||||
return filtered
|
return filtered
|
||||||
|
|
||||||
def set_active_game(self, widget, _, game):
|
def set_active_game(self, _widget, _unused, game_id):
|
||||||
self.active_game_id = game
|
self.active_game_id = game_id
|
||||||
|
|
||||||
def get_time(self, timestamp):
|
def get_time(self, timestamp):
|
||||||
date = datetime.datetime.fromtimestamp(timestamp)
|
date = datetime.datetime.fromtimestamp(timestamp)
|
||||||
|
|
||||||
if (datetime.datetime.today() - date).days == 0:
|
if (datetime.datetime.today() - date).days == 0:
|
||||||
return _("Today")
|
return _("Today")
|
||||||
elif (datetime.datetime.today() - date).days == 1:
|
if (datetime.datetime.today() - date).days == 1:
|
||||||
return _("Yesterday")
|
return _("Yesterday")
|
||||||
elif (datetime.datetime.today() - date).days < 8:
|
if (datetime.datetime.today() - date).days < 8:
|
||||||
return GLib.DateTime.new_from_unix_utc(timestamp).format("%A")
|
return GLib.DateTime.new_from_unix_utc(timestamp).format("%A")
|
||||||
|
return GLib.DateTime.new_from_unix_utc(timestamp).format("%x")
|
||||||
|
|
||||||
|
def show_overview(self, _widget, game_id):
|
||||||
|
current_game = self.games[game_id]
|
||||||
|
|
||||||
|
if current_game.developer:
|
||||||
|
self.overview_developer.set_label(current_game.developer)
|
||||||
|
self.overview_developer.set_visible(True)
|
||||||
else:
|
else:
|
||||||
return GLib.DateTime.new_from_unix_utc(timestamp).format("%x")
|
self.overview_developer.set_visible(False)
|
||||||
|
|
||||||
def show_overview(self, widget, game_id):
|
if not current_game.hidden:
|
||||||
game = self.games[game_id]
|
|
||||||
|
|
||||||
if game["hidden"] == False:
|
|
||||||
self.overview_menu_button.set_menu_model(self.game_options)
|
self.overview_menu_button.set_menu_model(self.game_options)
|
||||||
else:
|
else:
|
||||||
self.overview_menu_button.set_menu_model(self.hidden_game_options)
|
self.overview_menu_button.set_menu_model(self.hidden_game_options)
|
||||||
@@ -213,87 +252,95 @@ class GameShelfWindow(Adw.ApplicationWindow):
|
|||||||
self.stack.set_visible_child(self.overview)
|
self.stack.set_visible_child(self.overview)
|
||||||
|
|
||||||
self.active_game_id = game_id
|
self.active_game_id = game_id
|
||||||
pixbuf = (self.visible_widgets | self.hidden_widgets)[self.active_game_id].pixbuf
|
pixbuf = get_cover(self.active_game_id, self)
|
||||||
self.overview_cover.set_pixbuf(pixbuf)
|
self.overview_cover.set_pixbuf(pixbuf)
|
||||||
self.overview_blurred_cover.set_pixbuf(pixbuf.scale_simple(2, 3, GdkPixbuf.InterpType.BILINEAR))
|
self.overview_blurred_cover.set_pixbuf(
|
||||||
self.overview_title.set_label(game["name"])
|
pixbuf.scale_simple(2, 3, GdkPixbuf.InterpType.BILINEAR)
|
||||||
self.overview_header_bar_title.set_title(game["name"])
|
)
|
||||||
self.overview_added.set_label(_("Added: ") + self.get_time(game["added"]))
|
self.overview_title.set_label(current_game.name)
|
||||||
self.overview_last_played.set_label(_("Last played: ") + self.get_time(game["last_played"]) if game["last_played"] != 0 else _("Last played: Never"))
|
self.overview_header_bar_title.set_title(current_game.name)
|
||||||
|
date = self.get_time(current_game.added)
|
||||||
|
self.overview_added.set_label(
|
||||||
|
# The variable is the date when the game was added
|
||||||
|
_(f"Added: {date}")
|
||||||
|
)
|
||||||
|
last_played_date = (
|
||||||
|
self.get_time(current_game.last_played)
|
||||||
|
if current_game.last_played != 0
|
||||||
|
else _("Never")
|
||||||
|
)
|
||||||
|
self.overview_last_played.set_label(
|
||||||
|
# The variable is the date when the game was last played
|
||||||
|
_(f"Last played: {last_played_date}")
|
||||||
|
)
|
||||||
|
|
||||||
def a_z_sort(self, child1, child2):
|
def a_z_sort(self, child1, child2):
|
||||||
name1 = child1.get_first_child().name.lower()
|
name1 = child1.get_first_child().name.lower()
|
||||||
name2 = child2.get_first_child().name.lower()
|
name2 = child2.get_first_child().name.lower()
|
||||||
if name1 > name2:
|
if name1 > name2:
|
||||||
return 1
|
return 1
|
||||||
elif name1 < name2:
|
if name1 < name2:
|
||||||
return -1
|
return -1
|
||||||
else:
|
if child1.get_first_child().game_id > child2.get_first_child().game_id:
|
||||||
if child1.get_first_child().game_id > child2.get_first_child().game_id:
|
return 1
|
||||||
return 1
|
return -1
|
||||||
else:
|
|
||||||
return -1
|
|
||||||
|
|
||||||
def z_a_sort(self, child1, child2):
|
def z_a_sort(self, child1, child2):
|
||||||
name1 = child1.get_first_child().name.lower()
|
name1 = child1.get_first_child().name.lower()
|
||||||
name2 = child2.get_first_child().name.lower()
|
name2 = child2.get_first_child().name.lower()
|
||||||
if name1 > name2:
|
if name1 > name2:
|
||||||
return -1
|
return -1
|
||||||
elif name1 < name2:
|
if name1 < name2:
|
||||||
return 1
|
return 1
|
||||||
else:
|
return self.a_z_sort(child1, child2)
|
||||||
return self.a_z_sort(child1, child2)
|
|
||||||
|
|
||||||
def newest_sort(self, child1, child2):
|
def newest_sort(self, child1, child2):
|
||||||
time1 = self.games[child1.get_first_child().game_id]["added"]
|
time1 = self.games[child1.get_first_child().game_id].added
|
||||||
time2 = self.games[child2.get_first_child().game_id]["added"]
|
time2 = self.games[child2.get_first_child().game_id].added
|
||||||
if time1 > time2:
|
if time1 > time2:
|
||||||
return -1
|
return -1
|
||||||
elif time1 < time2:
|
if time1 < time2:
|
||||||
return 1
|
return 1
|
||||||
else:
|
return self.a_z_sort(child1, child2)
|
||||||
return self.a_z_sort(child1, child2)
|
|
||||||
|
|
||||||
def oldest_sort(self, child1, child2):
|
def oldest_sort(self, child1, child2):
|
||||||
time1 = self.games[child1.get_first_child().game_id]["added"]
|
time1 = self.games[child1.get_first_child().game_id].added
|
||||||
time2 = self.games[child2.get_first_child().game_id]["added"]
|
time2 = self.games[child2.get_first_child().game_id].added
|
||||||
if time1 > time2:
|
if time1 > time2:
|
||||||
return 1
|
return 1
|
||||||
elif time1 < time2:
|
if time1 < time2:
|
||||||
return -1
|
return -1
|
||||||
else:
|
return self.a_z_sort(child1, child2)
|
||||||
return self.a_z_sort(child1, child2)
|
|
||||||
|
|
||||||
def last_played_sort(self, child1, child2):
|
def last_played_sort(self, child1, child2):
|
||||||
time1 = self.games[child1.get_first_child().game_id]["last_played"]
|
time1 = self.games[child1.get_first_child().game_id].last_played
|
||||||
time2 = self.games[child2.get_first_child().game_id]["last_played"]
|
time2 = self.games[child2.get_first_child().game_id].last_played
|
||||||
if time1 > time2:
|
if time1 > time2:
|
||||||
return -1
|
return -1
|
||||||
elif time1 < time2:
|
if time1 < time2:
|
||||||
return 1
|
return 1
|
||||||
else:
|
return self.a_z_sort(child1, child2)
|
||||||
return self.a_z_sort(child1, child2)
|
|
||||||
|
|
||||||
def on_go_back_action(self, widget, _):
|
def on_go_back_action(self, _widget, _unused, _x=None, _y=None):
|
||||||
if self.stack.get_visible_child() == self.hidden_library_view:
|
if self.stack.get_visible_child() == self.hidden_library_view:
|
||||||
self.on_show_library_action(None, None)
|
self.on_show_library_action(None, None)
|
||||||
elif self.stack.get_visible_child() == self.overview:
|
elif self.stack.get_visible_child() == self.overview:
|
||||||
self.on_go_to_parent_action(None, None)
|
self.on_go_to_parent_action(None, None)
|
||||||
|
|
||||||
def on_go_to_parent_action(self, widget, _):
|
def on_go_to_parent_action(self, _widget, _unused):
|
||||||
if self.stack.get_visible_child() == self.overview:
|
if self.stack.get_visible_child() == self.overview:
|
||||||
if self.previous_page == self.library_view:
|
if self.previous_page == self.library_view:
|
||||||
self.on_show_library_action(None, None)
|
self.on_show_library_action(None, None)
|
||||||
else:
|
else:
|
||||||
self.on_show_hidden_action(None, None)
|
self.on_show_hidden_action(None, None)
|
||||||
|
|
||||||
def on_show_library_action(self, widget, _):
|
def on_show_library_action(self, _widget, _unused):
|
||||||
self.stack.set_transition_type(Gtk.StackTransitionType.UNDER_RIGHT)
|
self.stack.set_transition_type(Gtk.StackTransitionType.UNDER_RIGHT)
|
||||||
self.stack.set_visible_child(self.library_view)
|
self.stack.set_visible_child(self.library_view)
|
||||||
self.lookup_action("show_hidden").set_enabled(True)
|
self.lookup_action("show_hidden").set_enabled(True)
|
||||||
self.previous_page = self.library_view
|
self.previous_page = self.library_view
|
||||||
|
|
||||||
def on_show_hidden_action(self, widget, _):
|
def on_show_hidden_action(self, _widget, _unused):
|
||||||
if self.stack.get_visible_child() == self.library_view:
|
if self.stack.get_visible_child() == self.library_view:
|
||||||
self.stack.set_transition_type(Gtk.StackTransitionType.OVER_LEFT)
|
self.stack.set_transition_type(Gtk.StackTransitionType.OVER_LEFT)
|
||||||
else:
|
else:
|
||||||
@@ -304,7 +351,7 @@ class GameShelfWindow(Adw.ApplicationWindow):
|
|||||||
|
|
||||||
def on_sort_action(self, action, state):
|
def on_sort_action(self, action, state):
|
||||||
action.set_state(state)
|
action.set_state(state)
|
||||||
state = str(state).strip("\'")
|
state = str(state).strip("'")
|
||||||
|
|
||||||
if state == "a-z":
|
if state == "a-z":
|
||||||
sort_func = self.a_z_sort
|
sort_func = self.a_z_sort
|
||||||
@@ -318,14 +365,16 @@ class GameShelfWindow(Adw.ApplicationWindow):
|
|||||||
elif state == "oldest":
|
elif state == "oldest":
|
||||||
sort_func = self.oldest_sort
|
sort_func = self.oldest_sort
|
||||||
|
|
||||||
elif state == "last_played":
|
else:
|
||||||
sort_func = self.last_played_sort
|
sort_func = self.last_played_sort
|
||||||
|
|
||||||
self.schema.set_string("sort-mode", state)
|
Gio.Settings(schema_id="hu.kramo.Cartridge.State").set_string(
|
||||||
|
"sort-mode", state
|
||||||
|
)
|
||||||
self.library.set_sort_func(sort_func)
|
self.library.set_sort_func(sort_func)
|
||||||
self.hidden_library.set_sort_func(sort_func)
|
self.hidden_library.set_sort_func(sort_func)
|
||||||
|
|
||||||
def on_toggle_search_action(self, widget, _):
|
def on_toggle_search_action(self, _widget, _unused):
|
||||||
if self.stack.get_visible_child() == self.library_view:
|
if self.stack.get_visible_child() == self.library_view:
|
||||||
search_bar = self.search_bar
|
search_bar = self.search_bar
|
||||||
search_entry = self.search_entry
|
search_entry = self.search_entry
|
||||||
@@ -341,16 +390,16 @@ class GameShelfWindow(Adw.ApplicationWindow):
|
|||||||
search_bar.set_search_mode(not search_mode)
|
search_bar.set_search_mode(not search_mode)
|
||||||
search_button.set_active(not search_button.get_active())
|
search_button.set_active(not search_button.get_active())
|
||||||
|
|
||||||
if search_mode == False:
|
if not search_mode:
|
||||||
self.set_focus(search_entry)
|
self.set_focus(search_entry)
|
||||||
else:
|
else:
|
||||||
search_entry.set_text("")
|
search_entry.set_text("")
|
||||||
|
|
||||||
def on_escape_action(self, widget, _):
|
def on_escape_action(self, _widget, _unused):
|
||||||
if self.stack.get_visible_child() == self.overview:
|
if self.stack.get_visible_child() == self.overview:
|
||||||
self.on_go_back_action(None, None)
|
self.on_go_back_action(None, None)
|
||||||
return
|
return
|
||||||
elif self.stack.get_visible_child() == self.library_view:
|
if self.stack.get_visible_child() == self.library_view:
|
||||||
search_bar = self.search_bar
|
search_bar = self.search_bar
|
||||||
search_entry = self.search_entry
|
search_entry = self.search_entry
|
||||||
search_button = self.search_button
|
search_button = self.search_button
|
||||||
@@ -366,19 +415,23 @@ class GameShelfWindow(Adw.ApplicationWindow):
|
|||||||
search_button.set_active(False)
|
search_button.set_active(False)
|
||||||
search_entry.set_text("")
|
search_entry.set_text("")
|
||||||
|
|
||||||
def on_undo_remove_action(self, widget, game_id=None):
|
def on_undo_remove_action(self, _widget, game_id=None):
|
||||||
# Remove the "removed=True" property from the game and dismiss the toast
|
# Remove the "removed=True" property from the game and dismiss the toast
|
||||||
|
|
||||||
if not game_id:
|
if not game_id:
|
||||||
try:
|
try:
|
||||||
game_id = list(self.toasts)[-1]
|
game_id = list(self.toasts)[-1]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
return
|
return
|
||||||
open_file = open(os.path.join(os.path.join(os.environ.get("XDG_DATA_HOME"), "games", game_id + ".json")), "r")
|
data = get_games([game_id])[game_id]
|
||||||
data = json.loads(open_file.read())
|
|
||||||
open_file.close()
|
|
||||||
data.pop("removed")
|
data.pop("removed")
|
||||||
save_games({game_id : data})
|
save_games({game_id: data})
|
||||||
self.update_games({game_id : self.games[game_id]})
|
self.update_games([game_id])
|
||||||
self.toasts[game_id].dismiss()
|
self.toasts[game_id].dismiss()
|
||||||
self.toasts.pop(game_id)
|
self.toasts.pop(game_id)
|
||||||
|
|
||||||
|
def on_open_menu_action(self, _widget, _unused):
|
||||||
|
if self.stack.get_visible_child() != self.overview:
|
||||||
|
self.primary_menu_button.set_active(True)
|
||||||
|
else:
|
||||||
|
self.overview_menu_button.set_active(True)
|
||||||
|
|||||||