Compare commits

..

2 Commits
v2.5 ... v1.4.1

Author SHA1 Message Date
kramo
8378c72250 v1.4.1 2023-05-05 14:43:43 +02:00
kramo
beef0223c3 Update Heroic GOG path 2023-05-05 14:41:06 +02:00
128 changed files with 8604 additions and 19606 deletions

1
.github/FUNDING.yml vendored
View File

@@ -1 +0,0 @@
github: [kra-mo, GeoffreyCoulaud]

View File

@@ -23,13 +23,9 @@ A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Logs**
If applicable, attatch your logs from `Main Menu > About Cartridges > Troubleshooting > Debugging Information` to the issue.
**System (please complete the following information):**
- OS: [e.g. Fedora Linux]
- Installation method [e.g. Flatpak]
- Cartridges version [e.g. 1.5.4]
**Additional context**
Add any other context about the problem here.

19
.github/workflows/flatpak-builder.yml vendored Normal file
View 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-44
options: --privileged
steps:
- uses: actions/checkout@v3
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: hu.kramo.Cartridges.flatpak
manifest-path: hu.kramo.Cartridges.json
cache-key: flatpak-builder-${{ github.sha }}

View File

@@ -1,45 +0,0 @@
on:
push:
tags:
"*"
name: Publish Release
concurrency:
group: release-${{ github.sha }}
jobs:
publish-release:
name: Publish Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download workflow artifact
uses: dawidd6/action-download-artifact@v2.27.0
with:
workflow: ci.yml
commit: ${{ github.sha }}
- name: Get release notes
shell: python
run: |
import re, textwrap
open_file = open("./data/hu.kramo.Cartridges.metainfo.xml.in", "r", encoding="utf-8")
string = open_file.read()
open_file.close()
string = re.findall("<release.*>\s*<description.*>\n([\s\S]*?)\s*</description>\s*<\/release>", string)[0]
string = textwrap.dedent(string)
open_file = open("release_notes", "w", encoding="utf-8")
open_file.write(string)
open_file.close()
- name: Get tag name
id: get_tag_name
run: echo tag_name=${GITHUB_REF#refs/tags/} >> $GITHUB_OUTPUT
- name: Publish release
uses: softprops/action-gh-release@v0.1.15
with:
files: Windows Installer/Cartridges Setup.exe
fail_on_unmatched_files: true
tag_name: ${{ steps.get_tag_name.outputs.tag_name }}
body_path: release_notes

View File

@@ -2,40 +2,20 @@ on:
push:
branches: [main]
pull_request:
name: CI
concurrency:
group: release-${{ github.sha }}
name: "Build for Windows"
jobs:
flatpak:
name: Flatpak
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-44
options: --privileged
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Flatpak Builder
uses: flatpak/flatpak-github-actions/flatpak-builder@v6.1
with:
bundle: hu.kramo.Cartridges.Devel.flatpak
manifest-path: flatpak/hu.kramo.Cartridges.Devel.json
windows:
name: Windows
name: "Build"
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup MSYS2
- 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-python-requests mingw-w64-ucrt-x86_64-python-pillow mingw-w64-ucrt-x86_64-desktop-file-utils mingw-w64-ucrt-x86_64-ca-certificates mingw-w64-ucrt-x86_64-meson git
- name: Compile
shell: msys2 {0}
run: |
@@ -43,18 +23,10 @@ jobs:
ninja -C _build install
pacman --noconfirm -Rs mingw-w64-ucrt-x86_64-desktop-file-utils mingw-w64-ucrt-x86_64-meson git
find /ucrt64/share/locale/ -type f ! -name "*cartridges.mo" -delete
- name: Test
shell: msys2 {0}
run: |
set +e
timeout 2 cartridges; [ "$?" -eq "124" ]
- name: Inno Setup
run: iscc ".\_build\windows\Cartridges.iss"
- name: Upload Artifact
- name: "Inno Setup"
run: iscc ".\.windows\Cartridges.iss"
- name: "Upload Artifact"
uses: actions/upload-artifact@v3
with:
name: Windows Installer
path: _build/windows/Output/Cartridges Setup.exe
name: "Installer"
path: ".windows/Output/Cartridges Setup.exe"

View File

@@ -1,32 +0,0 @@
[MAIN]
ignore=importers
[MESSAGES CONTROL]
disable=raw-checker-failed,
bad-inline-option,
locally-disabled,
file-ignored,
suppressed-message,
useless-suppression,
deprecated-pragma,
use-symbolic-message-instead,
too-few-public-methods,
missing-function-docstring,
missing-class-docstring,
missing-module-docstring,
relative-beyond-top-level,
import-error,
no-name-in-module
[TYPECHECK]
ignored-classes=Child
[VARIABLES]
additional-builtins=_

View File

@@ -1,5 +1,5 @@
#define MyAppName "Cartridges"
#define MyAppVersion "@VERSION@"
#define MyAppVersion "1.4.1"
#define MyAppPublisher "kramo"
#define MyAppURL "https://github.com/kra-mo/cartridges"
#define MyAppExeName "pythonw.exe"
@@ -15,10 +15,10 @@ AppSupportURL=https://github.com/kra-mo/cartridges/issues
AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf64}\{#MyAppName}
DisableProgramGroupPage=yes
LicenseFile=..\..\LICENSE
LicenseFile=..\LICENSE
PrivilegesRequiredOverridesAllowed=dialog
OutputBaseFilename=Cartridges Setup
SetupIconFile=..\..\windows\icon.ico
SetupIconFile=icon.ico
Compression=lzma
SolidCompression=yes
WizardStyle=modern
@@ -42,7 +42,7 @@ Source: "D:\a\_temp\msys64\ucrt64\etc\ssl\*"; DestDir: "{app}\etc\ssl"; Flags: r
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\python@PYTHON_VERSION@\*"; DestDir: "{app}\lib\python@PYTHON_VERSION@"; Excludes: "__pycache__"; Flags: recursesubdirs ignoreversion
Source: "D:\a\_temp\msys64\ucrt64\lib\python3.10\*"; DestDir: "{app}\lib\python3.10"; Excludes: "__pycache__"; Flags: recursesubdirs ignoreversion
Source: "D:\a\_temp\msys64\ucrt64\share\cartridges\*"; DestDir: "{app}\share\cartridges"; Excludes: "__pycache__"; Flags: recursesubdirs ignoreversion
Source: "D:\a\_temp\msys64\ucrt64\share\icons\*"; DestDir: "{app}\share\icons"; Excludes: "*.png,cursors\*"; Flags: recursesubdirs ignoreversion
@@ -50,7 +50,7 @@ Source: "D:\a\_temp\msys64\ucrt64\share\glib-2.0\*"; DestDir: "{app}\share\glib-
Source: "D:\a\_temp\msys64\ucrt64\share\gtk-4.0\*"; DestDir: "{app}\share\gtk-4.0"; Flags: recursesubdirs ignoreversion
Source: "D:\a\_temp\msys64\ucrt64\share\locale\*"; DestDir: "{app}\share\locale"; Flags: recursesubdirs ignoreversion
Source: "..\..\windows\icon.ico"; DestDir: "{app}"; 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"

View File

Before

Width:  |  Height:  |  Size: 169 KiB

After

Width:  |  Height:  |  Size: 169 KiB

View File

@@ -1,3 +1,128 @@
The project follows the [GNOME Code of Conduct](https://wiki.gnome.org/Foundation/CodeOfConduct).
# Contributor Covenant Code of Conduct
If you believe that someone is violating the Code of Conduct, or have any other concerns, please contact us via [cartridges-community@kramo.hu](mailto:cartridges-community@kramo.hu).
## 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.

View File

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

View File

@@ -1,104 +1,72 @@
[circle-url]: https://circle.gnome.org
[circle-image]: https://circle.gnome.org/assets/button/badge.svg
[weblate-url]: https://hosted.weblate.org/engage/cartridges/
[weblate-image]: https://hosted.weblate.org/widgets/cartridges/-/cartridges/svg-badge.svg
[discord-url]: https://discord.gg/4KSFh3AmQR
[discord-image]: https://img.shields.io/discord/1088155799299313754?color=%235865F2&label=discord&logo=discord&logoColor=%23FFFFFF&style=for-the-badge
[matrix-url]: https://matrix.to/#/#cartridges:matrix.org
[matrix-image]: https://img.shields.io/matrix/cartridges:matrix.org?label=Matrix&logo=matrix&color=%230dbd8b&style=for-the-badge
[flathub-url]: https://flathub.org/apps/hu.kramo.Cartridges
[flathub-image]: https://img.shields.io/flathub/v/hu.kramo.Cartridges?logo=flathub&style=for-the-badge
[installs-image]: https://img.shields.io/flathub/downloads/hu.kramo.Cartridges?style=for-the-badge
<div align="center">
<img src="data/icons/hicolor/scalable/apps/hu.kramo.Cartridges.svg" width="128" height="128">
# Cartridges
# Cartridges
A GTK4 + Libadwaita game launcher
A GTK4 + Libadwaita game launcher
[![GNOME Circle][circle-image]][circle-url]
[![Translation Status][weblate-image]][weblate-url]
[![Flathub][flathub-image]][flathub-url]
[![Discord][discord-image]][discord-url]
[![Matrix][matrix-image]][matrix-url]
[![Installs][installs-image]][flathub-url]
[![Flathub][flathub-image]][flathub-url]
[![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]
[![Discord Chatroom][discord-image]][discord-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
[discord-url]: https://discord.gg/4KSFh3AmQR
[discord-image]: https://img.shields.io/discord/1088155799299313754?color=%235865F2&label=discord&logo=discord&logoColor=%23FFFFFF
[flathub-url]: https://flathub.org/apps/details/hu.kramo.Cartridges
[flathub-image]: https://img.shields.io/flathub/v/hu.kramo.Cartridges
<img src="data/screenshots/1.png">
</div>
# The Project
Cartridges is a simple game launcher written in Python using GTK4 and Libadwaita.
## Features
- Manually adding and editing games
- Importing games from various sources:
- Steam
- Lutris
- Heroic
- Bottles
- itch
- Legendary
- RetroArch
- Flatpak
- Desktop Entries
- Filtering games by source
- Searching and sorting by title, date added and last played
- Importing games from Steam, Lutris, Heroic, Bottles and itch
- Support for multiple Steam install locations
- Hiding games
- Searching and sorting by title, date added and last played
- Automatically downloading cover art from [SteamGridDB](https://www.steamgriddb.com/)
- Searching for games on various databases
- Animated covers
For updates and questions, join our [Discord server][discord-url] (bridged to [Matrix](https://matrix.to/#/#cartridges:matrix.org))!
## Donations
We accept donations through GitHub Sponsors to our main contributors:
[Sponsor kramo](https://github.com/sponsors/kra-mo)
[Sponsor Geoffrey Coulaud](https://github.com/sponsors/geoffreycoulaud)
Thank you for your generosity! 💜
For updates and questions, join our [Discord server][discord-url]!
# Installation
## Linux
### Flathub
### Flathub (Recommended)
The app is available on Flathub.
<a href=https://flathub.org/apps/details/hu.kramo.Cartridges><img width='240' alt='Download on Flathub' src='https://dl.flathub.org/assets/badges/flathub-badge-en.png'/></a>
<a href=https://flathub.org/apps/hu.kramo.Cartridges><img width='240' alt='Download on Flathub' src='https://dl.flathub.org/assets/badges/flathub-badge-en.png'/></a>
### From Releases
1. Download the latest release from [Releases](https://github.com/kra-mo/cartridges/releases).
2. Install the downloaded file via GNOME Software or `flatpak install hu.kramo.Cartridges.flatpak`.
## Windows
### From Releases
1. Download the latest release from [Releases](https://github.com/kra-mo/cartridges/releases).
2. Run the downloaded installer.
Note: Windows might present you with a warning when trying to install the app. This is expected, just ignore the warning.
### Winget
Install the latest release with the command: `winget install cartridges`.
## Building manually
See [Building](https://github.com/kra-mo/cartridges/blob/main/CONTRIBUTING.md#building).
# Contributing
See [CONTRIBUTING.md](https://github.com/kra-mo/cartridges/blob/main/CONTRIBUTING.md).
See [CONTRIBUTING](https://github.com/kra-mo/cartridges/blob/main/CONTRIBUTING.md).
Thanks to [Weblate](https://weblate.org/) for hosting our translations!
# Code of Conduct
The project follows the [GNOME Code of Conduct](https://wiki.gnome.org/Foundation/CodeOfConduct).
See [CODE_OF_CONDUCT.md](https://github.com/kra-mo/cartridges/blob/main/CODE_OF_CONDUCT.md).

View File

@@ -1,59 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Project xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:gnome="http://api.gnome.org/doap-extensions#"
xmlns="http://usefulinc.com/ns/doap#">
<name>Cartridges</name>
<shortdesc xml:lang="en">Launch all your games</shortdesc>
<description xml:lang="en">
Cartridges is a simple game launcher for all of your games. It has support for importing games from Steam, Lutris, Heroic and more with no login necessary. You can sort and hide games or download cover art from SteamGridDB.
</description>
<homepage rdf:resource="https://github.com/kra-mo/cartridges" />
<download-page rdf:resource="https://github.com/kra-mo/cartridges" />
<bug-database rdf:resource="https://github.com/kra-mo/cartridges/issues" />
<programming-language>Python</programming-language>
<platform>GTK 4</platform>
<platform>Libadwaita</platform>
<maintainer>
<foaf:Person>
<foaf:name>kramo</foaf:name>
<foaf:mbox rdf:resource="mailto:contact@kramo.hu" />
<foaf:account>
<foaf:OnlineAccount>
<foaf:accountServiceHomepage rdf:resource="https://github.com"/>
<foaf:accountName>kra-mo</foaf:accountName>
</foaf:OnlineAccount>
</foaf:account>
<foaf:account>
<foaf:OnlineAccount>
<foaf:accountServiceHomepage rdf:resource="https://gitlab.gnome.org"/>
<foaf:accountName>kramo</foaf:accountName>
</foaf:OnlineAccount>
</foaf:account>
</foaf:Person>
</maintainer>
<maintainer>
<foaf:Person>
<foaf:name>Geoffrey Coulaud</foaf:name>
<foaf:mbox rdf:resource="mailto:geoffrey.coulaud@gmail.com" />
<foaf:account>
<foaf:OnlineAccount>
<foaf:accountServiceHomepage rdf:resource="https://github.com"/>
<foaf:accountName>GeoffreyCoulaud</foaf:accountName>
</foaf:OnlineAccount>
</foaf:account>
<foaf:account>
<foaf:OnlineAccount>
<foaf:accountServiceHomepage rdf:resource="https://gitlab.gnome.org"/>
<foaf:accountName>GeoffreyCoulaud</foaf:accountName>
</foaf:OnlineAccount>
</foaf:account>
</foaf:Person>
</maintainer>
</Project>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/hu/kramo/Cartridges">
<file preprocess="xml-stripblanks">gtk/window.ui</file>
<file preprocess="xml-stripblanks">gtk/help-overlay.ui</file>
<file preprocess="xml-stripblanks">gtk/game.ui</file>
<file preprocess="xml-stripblanks">gtk/preferences.ui</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>
</gresources>

View File

@@ -1,25 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="@PREFIX@">
<file preprocess="xml-stripblanks">@APP_ID@.metainfo.xml</file>
<file preprocess="xml-stripblanks">gtk/window.ui</file>
<file preprocess="xml-stripblanks">gtk/help-overlay.ui</file>
<file preprocess="xml-stripblanks">gtk/game.ui</file>
<file preprocess="xml-stripblanks">gtk/preferences.ui</file>
<file preprocess="xml-stripblanks">gtk/details-window.ui</file>
<file alias="style.css">gtk/style.css</file>
<file alias="style-dark.css">gtk/style-dark.css</file>
<file>library_placeholder.svg</file>
<file>library_placeholder_small.svg</file>
</gresource>
<gresource prefix="@PREFIX@/icons/scalable/categories/">
<file alias="bottles-source-symbolic.svg">icons/sources/bottles-source-symbolic.svg</file>
<file alias="flatpak-source-symbolic.svg">icons/sources/flatpak-source-symbolic.svg</file>
<file alias="heroic-source-symbolic.svg">icons/sources/heroic-source-symbolic.svg</file>
<file alias="itch-source-symbolic.svg">icons/sources/itch-source-symbolic.svg</file>
<file alias="legendary-source-symbolic.svg">icons/sources/legendary-source-symbolic.svg</file>
<file alias="lutris-source-symbolic.svg">icons/sources/lutris-source-symbolic.svg</file>
<file alias="retroarch-source-symbolic.svg">icons/sources/retroarch-source-symbolic.svg</file>
<file alias="steam-source-symbolic.svg">icons/sources/steam-source-symbolic.svg</file>
</gresource>
</gresources>

View File

@@ -1,152 +0,0 @@
using Gtk 4.0;
using Adw 1;
template $DetailsWindow : Adw.Window {
default-width: 480; // Same as Nautilus' properties window
default-height: -1;
modal: true;
ShortcutController {
Shortcut {
trigger: "Escape";
action: "action(window.close)";
}
}
Adw.ToolbarView {
[top]
Adw.HeaderBar HeaderBar {
show-start-title-buttons: false;
show-end-title-buttons: false;
[start]
Button cancel_button {
label: _("Cancel");
action-name: "window.close";
}
[end]
Button apply_button {
styles [
"suggested-action"
]
}
}
Adw.PreferencesPage {
Adw.PreferencesGroup cover_group {
Adw.Clamp cover_clamp {
maximum-size: 200;
Overlay {
[overlay]
Spinner spinner {
margin-start: 72;
margin-end: 72;
}
Overlay cover_overlay {
halign: center;
valign: center;
[overlay]
Button cover_button_edit {
icon-name: "document-edit-symbolic";
tooltip-text: _("New Cover");
halign: end;
valign: end;
margin-bottom: 6;
margin-end: 6;
styles [
"circular", "osd"
]
}
[overlay]
Revealer cover_button_delete_revealer {
transition-type: crossfade;
margin-end: 40;
Button cover_button_delete {
icon-name: "user-trash-symbolic";
tooltip-text: _("Delete Cover");
halign: end;
valign: end;
margin-bottom: 6;
margin-end: 6;
styles [
"circular", "osd"
]
}
}
Picture cover {
width-request: 200;
height-request: 300;
styles [
"card"
]
}
}
}
}
}
Adw.PreferencesGroup {
Adw.EntryRow name {
title: _("Title");
}
Adw.EntryRow developer {
title: _("Developer (optional)");
}
}
Adw.PreferencesGroup {
Adw.EntryRow executable {
title: _("Executable");
[suffix]
Button file_chooser_button {
valign: center;
icon-name: "document-open-symbolic";
tooltip-text: _("Select File");
styles [
"flat",
]
}
[suffix]
MenuButton exec_info_button {
valign: center;
icon-name: "help-about-symbolic";
tooltip-text: _("More Info");
popover: Popover exec_info_popover {
focusable: true;
Label exec_info_label {
use-markup: true;
wrap: true;
max-width-chars: 50;
halign: center;
valign: center;
margin-top: 6;
margin-bottom: 6;
margin-start: 6;
margin-end: 6;
}
};
styles [
"flat"
]
}
}
}
}
}
}

View File

@@ -1,100 +1,86 @@
using Gtk 4.0;
using Adw 1;
template $Game : Box {
template Game : Box {
orientation: vertical;
halign: center;
valign: start;
Adw.Clamp {
maximum-size: 200;
unit: px;
Overlay {
[overlay]
Revealer play_revealer {
transition-type: crossfade;
valign: start;
halign: start;
Button play_button {
icon-name: "media-playback-start-symbolic";
margin-start: 6;
margin-end: 3;
margin-top: 6;
margin-bottom: 3;
styles [
"circular",
"osd",
]
}
}
[overlay]
Revealer menu_revealer {
transition-type: crossfade;
valign: start;
halign: end;
MenuButton menu_button {
icon-name: "view-more-symbolic";
margin-start: 3;
margin-end: 6;
margin-top: 6;
margin-bottom: 3;
styles [
"circular",
"osd",
]
}
}
Box {
orientation: vertical;
Button cover_button {
name: "cover_button";
overflow: hidden;
accessibility {
labelled-by: title;
}
Box {
orientation: vertical;
Overlay {
[overlay]
Spinner spinner {
margin-start: 72;
margin-end: 72;
}
Picture cover {
width-request: 200;
height-request: 300;
hexpand: true;
vexpand: true;
}
Overlay {
[overlay]
Spinner spinner {
margin-start: 72;
margin-end: 72;
}
Label title {
label: _("Title");
ellipsize: end;
Picture cover {
width-request: 200;
height-request: 300;
hexpand: true;
halign: start;
margin-top: 15;
margin-bottom: 15;
margin-start: 12;
margin-end: 12;
vexpand: true;
}
}
styles [
"card",
"flat",
]
}
Overlay overlay {
[overlay]
Revealer play_revealer {
reveal-child: false;
transition-type: crossfade;
Box {
Button play_button {
halign: start;
margin-start: 6;
margin-end: 6;
margin-top: 6;
margin-bottom: 6;
}
MenuButton menu_button {
icon-name: "view-more-symbolic";
margin-top: 6;
margin-bottom: 6;
margin-end: 6;
margin-start: 6;
hexpand: true;
halign: end;
styles [
"flat",
]
}
}
}
Revealer title_revealer {
transition-type: slide_down;
reveal-child: true;
valign: start;
Label title {
label: _("Title");
ellipsize: end;
hexpand: true;
halign: start;
margin-top: 14;
margin-bottom: 14;
margin-start: 12;
margin-end: 12;
}
}
}
}
}
styles [
"card",
]
}
menu game_options {

View File

@@ -10,18 +10,23 @@ ShortcutsWindow help_overlay {
ShortcutsGroup {
title: _("General");
ShortcutsShortcut {
title: _("Quit");
action-name: "app.quit";
}
ShortcutsShortcut {
title: _("Search");
action-name: "win.toggle_search";
}
ShortcutsShortcut {
title: _("Preferences");
title: _("Show preferences");
action-name: "app.preferences";
}
ShortcutsShortcut {
title: _("Keyboard Shortcuts");
title: _("Shortcuts");
action-name: "win.show-help-overlay";
}
@@ -31,17 +36,7 @@ ShortcutsWindow help_overlay {
}
ShortcutsShortcut {
title: _("Quit");
action-name: "app.quit";
}
ShortcutsShortcut {
title: _("Toggle Sidebar");
action-name: "win.show_sidebar";
}
ShortcutsShortcut {
title: _("Main Menu");
title: _("Open menu");
action-name: "win.open_menu";
}
}
@@ -50,22 +45,22 @@ ShortcutsWindow help_overlay {
title: _("Games");
ShortcutsShortcut {
title: _("Add Game");
title: _("Add new game");
action-name: "app.add_game";
}
ShortcutsShortcut {
title: _("Import");
title: _("Import games");
action-name: "app.import";
}
ShortcutsShortcut {
title: _("Show Hidden Games");
title: _("Show hidden games");
action-name: "win.show_hidden";
}
ShortcutsShortcut {
title: _("Remove Game");
title: _("Remove game");
action-name: "app.remove_game_details_view";
}
}

View File

@@ -1,7 +1,8 @@
using Gtk 4.0;
using Adw 1;
template $PreferencesWindow : Adw.PreferencesWindow {
template PreferencesWindow : Adw.PreferencesWindow {
default-height: 500;
Adw.PreferencesPage general_page {
name: "general";
@@ -11,22 +12,37 @@ template $PreferencesWindow : Adw.PreferencesWindow {
Adw.PreferencesGroup behavior_group {
title: _("Behavior");
Adw.SwitchRow exit_after_launch_switch {
Adw.ActionRow {
title: _("Exit After Launching Games");
activatable-widget: exit_after_launch_switch;
Switch exit_after_launch_switch {
valign: center;
}
}
Adw.SwitchRow cover_launches_game_switch {
Adw.ActionRow {
title: _("Cover Image Launches Game");
subtitle: _("Swaps the behavior of the cover image and the play button");
activatable-widget: cover_launches_game_switch;
Switch cover_launches_game_switch {
valign: center;
}
}
}
Adw.PreferencesGroup images_group {
title: _("Images");
Adw.SwitchRow high_quality_images_switch {
Adw.ActionRow {
title: _("High Quality Images");
subtitle: _("Save game covers losslessly at the cost of storage");
activatable-widget: high_quality_images_switch;
Switch high_quality_images_switch {
valign: center;
}
}
}
@@ -45,21 +61,6 @@ template $PreferencesWindow : Adw.PreferencesWindow {
]
}
}
Adw.ActionRow reset_action_row {
title: "Reset App";
subtitle: "Completely resets and quits Cartridges";
visible: false;
Button reset_button {
label: "Reset";
valign: center;
styles [
"destructive-action",
]
}
}
}
}
@@ -68,14 +69,6 @@ template $PreferencesWindow : Adw.PreferencesWindow {
title: _("Import");
icon-name: "document-save-symbolic";
Adw.PreferencesGroup import_behavior_group {
title: _("Behavior");
Adw.SwitchRow remove_missing_switch {
title: _("Remove Uninstalled Games");
}
}
Adw.PreferencesGroup sources_group {
title: _("Sources");
@@ -83,15 +76,36 @@ template $PreferencesWindow : Adw.PreferencesWindow {
title: _("Steam");
show-enable-switch: true;
Adw.ActionRow steam_data_action_row {
title: _("Install Location");
Adw.ActionRow {
title: _("Steam Install Location");
subtitle: _("Directory to use when importing games");
Button steam_data_file_chooser_button {
Button steam_file_chooser_button {
icon-name: "folder-symbolic";
valign: center;
styles [
"flat"
]
}
}
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;
}
}
}
@@ -100,36 +114,33 @@ template $PreferencesWindow : Adw.PreferencesWindow {
title: _("Lutris");
show-enable-switch: true;
Adw.ActionRow lutris_data_action_row {
title: _("Install Location");
Adw.ActionRow {
title: _("Lutris Install Location");
subtitle: _("Directory to use when importing games");
Button lutris_data_file_chooser_button {
Button lutris_file_chooser_button {
icon-name: "folder-symbolic";
valign: center;
styles [
"flat"
]
}
}
Adw.ActionRow lutris_cache_action_row {
title: _("Cache Location");
Adw.ActionRow {
title: _("Lutris Cache Location");
subtitle: _("Directory to use when importing game covers");
Button lutris_cache_file_chooser_button {
icon-name: "folder-symbolic";
valign: center;
styles [
"flat"
]
}
}
Adw.SwitchRow lutris_import_steam_switch {
Adw.ActionRow {
title: _("Import Steam Games");
}
activatable-widget: lutris_steam_switch;
Adw.SwitchRow lutris_import_flatpak_switch {
title: _("Import Flatpak Games");
Switch lutris_steam_switch {
valign: center;
}
}
}
@@ -137,32 +148,41 @@ template $PreferencesWindow : Adw.PreferencesWindow {
title: _("Heroic");
show-enable-switch: true;
Adw.ActionRow heroic_config_action_row {
title: _("Install Location");
Adw.ActionRow {
title: _("Heroic Install Location");
subtitle: _("Directory to use when importing games");
Button heroic_config_file_chooser_button {
Button heroic_file_chooser_button {
icon-name: "folder-symbolic";
valign: center;
styles [
"flat"
]
}
}
Adw.SwitchRow heroic_import_epic_switch {
Adw.ActionRow {
title: _("Import Epic Games");
activatable-widget: heroic_epic_switch;
Switch heroic_epic_switch {
valign: center;
}
}
Adw.SwitchRow heroic_import_gog_switch {
Adw.ActionRow {
title: _("Import GOG Games");
activatable-widget: heroic_gog_switch;
Switch heroic_gog_switch {
valign: center;
}
}
Adw.SwitchRow heroic_import_amazon_switch {
title: _("Import Amazon Games");
}
Adw.SwitchRow heroic_import_sideload_switch {
Adw.ActionRow {
title: _("Import Sideloaded Games");
activatable-widget: heroic_sideloaded_switch;
Switch heroic_sideloaded_switch {
valign: center;
}
}
}
@@ -170,15 +190,13 @@ template $PreferencesWindow : Adw.PreferencesWindow {
title: _("Bottles");
show-enable-switch: true;
Adw.ActionRow bottles_data_action_row {
title: _("Install Location");
Adw.ActionRow {
title: _("Bottles Install Location");
subtitle: _("Directory to use when importing games");
Button bottles_data_file_chooser_button {
Button bottles_file_chooser_button {
icon-name: "folder-symbolic";
valign: center;
styles [
"flat"
]
}
}
}
@@ -187,77 +205,16 @@ template $PreferencesWindow : Adw.PreferencesWindow {
title: _("itch");
show-enable-switch: true;
Adw.ActionRow itch_config_action_row {
title: _("Install Location");
Adw.ActionRow {
title: _("itch Install Location");
subtitle: _("Directory to use when importing games");
Button itch_config_file_chooser_button {
Button itch_file_chooser_button {
icon-name: "folder-symbolic";
valign: center;
styles [
"flat"
]
}
}
}
Adw.ExpanderRow legendary_expander_row {
title: _("Legendary");
show-enable-switch: true;
Adw.ActionRow legendary_config_action_row {
title: _("Install Location");
Button legendary_config_file_chooser_button {
icon-name: "folder-symbolic";
valign: center;
styles [
"flat"
]
}
}
}
Adw.ExpanderRow retroarch_expander_row {
title: _("RetroArch");
show-enable-switch: true;
Adw.ActionRow retroarch_config_action_row {
title: _("Install Location");
Button retroarch_config_file_chooser_button {
icon-name: "folder-symbolic";
valign: center;
styles [
"flat"
]
}
}
}
Adw.ExpanderRow flatpak_expander_row {
title: _("Flatpak");
show-enable-switch: true;
Adw.ActionRow flatpak_data_action_row {
title: _("Install Location");
Button flatpak_data_file_chooser_button {
icon-name: "folder-symbolic";
valign: center;
styles [
"flat"
]
}
}
Adw.SwitchRow flatpak_import_launchers_switch {
title: _("Import Game Launchers");
}
}
Adw.SwitchRow desktop_switch {
title: _("Desktop Entries");
}
}
}
@@ -277,28 +234,30 @@ template $PreferencesWindow : Adw.PreferencesWindow {
Adw.PreferencesGroup sgdb_behavior_group {
title: _("Behavior");
Adw.SwitchRow sgdb_switch {
Adw.ActionRow {
title: _("Use SteamGridDB");
subtitle: _("Download images when adding or importing games");
activatable-widget: sgdb_download_switch;
Switch sgdb_download_switch {
valign: center;
}
}
Adw.SwitchRow sgdb_prefer_switch {
title: _("Prefer Over Official Images");
}
Adw.SwitchRow sgdb_animated_switch {
title: _("Prefer Animated Images");
}
}
Adw.PreferencesGroup {
Adw.ActionRow {
title: _("Update Covers");
subtitle: _("Fetch covers for games already in your library");
sensitive: bind sgdb_switch.active;
title: _("Prefer Over Official Images");
activatable-widget: sgdb_prefer_switch;
Button sgdb_fetch_button {
label: _("Update");
Switch sgdb_prefer_switch {
valign: center;
}
}
Adw.ActionRow {
title: _("Prefer Animated Images");
activatable-widget: sgdb_animated_switch;
Switch sgdb_animated_switch {
valign: center;
}
}

View File

@@ -6,6 +6,6 @@
}
#details_view_play_button {
color: rgba(0, 0, 0, .8);
background-color: white;
color: @dark_5;
background-color: @light_1;
}

View File

@@ -6,6 +6,7 @@
}
#details_view_play_button {
color: white;
background-color: rgba(0, 0, 0, .8);
color: @light_1;
background-color: @dark_5;
opacity: 0.8;
}

View File

@@ -9,30 +9,12 @@ Adw.StatusPage notice_no_results {
valign: center;
}
Adw.StatusPage hidden_notice_no_results {
icon-name: "system-search-symbolic";
title: _("No Games Found");
description: _("Try a different search.");
vexpand: true;
valign: center;
}
Adw.StatusPage notice_empty {
icon-name: "applications-games-symbolic";
title: _("No Games");
description: _("Use the + button to add games.");
vexpand: true;
valign: center;
Button {
label: _("Import");
halign: center;
action-name: "app.import";
styles [
"pill",
"suggested-action",
]
}
}
Adw.StatusPage hidden_notice_empty {
@@ -43,426 +25,328 @@ Adw.StatusPage hidden_notice_empty {
valign: center;
}
template $CartridgesWindow : Adw.ApplicationWindow {
template CartridgesWindow : Adw.ApplicationWindow {
title: _("Cartridges");
width-request: 281;
height-request: 100;
Adw.Breakpoint {
condition ("max-width: 564px")
setters {
overlay_split_view.collapsed: true;
details_view_box.orientation: vertical;
details_view_box.margin-top: 12;
details_view_box.margin-start: 12;
details_view_box.margin-end: 12;
details_view_details_box.margin-start: 0;
details_view_details_box.margin-end: 0;
details_view_title.margin-top: 30;
details_view_title.halign: center;
details_view_developer.halign: center;
details_view_date_box.halign: center;
details_view_toolbar.halign: center;
details_view_toolbar.orientation: vertical;
details_view_play_button.halign: center;
details_view_toolbar_buttons.margin-start: 0;
}
}
Adw.ToastOverlay toast_overlay {
Adw.NavigationView navigation_view {
Adw.NavigationPage library_page {
title: _("All Games");
Stack stack {
visible-child: library_view;
transition-type: over_left;
Adw.OverlaySplitView overlay_split_view {
[sidebar]
Adw.NavigationPage {
title: _("Cartridges");
Adw.ToolbarView {
[top]
Adw.HeaderBar {
[start]
Button {
icon-name: "sidebar-show-symbolic";
action-name: "win.show_sidebar";
tooltip-text: _("Toggle Sidebar");
}
}
Overlay details_view {
name: "details_view";
ScrolledWindow {
ListBox sidebar {
Box all_games_row_box {
margin-top: 12;
margin-bottom: 12;
margin-start: 6;
margin-end: 6;
spacing: 12;
Image {
icon-name: "view-grid-symbolic";
}
Label {
halign: start;
label: _("All Games");
}
Label all_games_no_label {
hexpand: true;
halign: end;
styles ["dim-label"]
}
}
Box added_row_box {
margin-top: 12;
margin-bottom: 12;
margin-start: 6;
spacing: 12;
Image {
icon-name: "list-add-symbolic";
}
Label {
halign: start;
label: _("Added");
margin-end: 6;
}
Label added_games_no_label {
hexpand: true;
halign: end;
margin-end: 6;
styles ["dim-label"]
}
}
ListBoxRow {
selectable: false;
activatable: false;
Label {
label: _("Imported");
styles ["heading"]
halign: start;
}
}
styles ["navigation-sidebar"]
}
}
}
}
Adw.ToolbarView library_view {
[top]
Adw.HeaderBar header_bar {
[start]
Revealer {
transition-type: slide_right;
reveal-child: bind overlay_split_view.show-sidebar inverted;
Button show_sidebar_button {
icon-name: "sidebar-show-symbolic";
action-name: "win.show_sidebar";
tooltip-text: _("Toggle Sidebar");
}
}
[start]
MenuButton {
tooltip-text: _("Add Game");
icon-name: "list-add-symbolic";
menu-model: add_games;
}
[end]
MenuButton primary_menu_button {
tooltip-text: _("Main Menu");
icon-name: "open-menu-symbolic";
menu-model: primary_menu;
}
[end]
ToggleButton search_button {
tooltip-text: _("Search");
icon-name: "system-search-symbolic";
action-name: "win.toggle_search";
}
}
[top]
SearchBar search_bar {
search-mode-enabled: bind search_button.active bidirectional;
key-capture-widget: navigation_view;
Adw.Clamp {
maximum-size: 500;
tightening-threshold: 500;
SearchEntry search_entry {
hexpand: true;
}
}
}
Overlay library_overlay {
ScrolledWindow scrolledwindow {
FlowBox library {
homogeneous: true;
halign: center;
valign: start;
column-spacing: 12;
row-spacing: 12;
margin-top: 15;
margin-bottom: 15;
margin-start: 15;
margin-end: 15;
selection-mode: none;
}
}
}
}
}
}
}
}
}
Adw.NavigationPage hidden_library_page {
title: _("Hidden Games");
Adw.ToolbarView hidden_library_view {
[top]
Adw.HeaderBar hidden_header_bar {
[end]
MenuButton hidden_primary_menu_button {
tooltip-text: _("Main Menu");
icon-name: "open-menu-symbolic";
menu-model: primary_menu;
}
[end]
ToggleButton hidden_search_button {
tooltip-text: _("Search");
icon-name: "system-search-symbolic";
action-name: "win.toggle_search";
}
}
[top]
SearchBar hidden_search_bar {
search-mode-enabled: bind hidden_search_button.active bidirectional;
key-capture-widget: hidden_library_view;
Adw.Clamp {
maximum-size: 500;
tightening-threshold: 500;
SearchEntry hidden_search_entry {
hexpand: true;
}
}
}
Overlay hidden_library_overlay {
ScrolledWindow hidden_scrolledwindow {
FlowBox hidden_library {
homogeneous: true;
halign: center;
valign: start;
column-spacing: 12;
row-spacing: 12;
margin-top: 15;
margin-bottom: 15;
margin-start: 15;
margin-end: 15;
selection-mode: none;
}
}
}
styles [
"background",
]
}
}
Adw.NavigationPage details_page {
title: _("Game Details");
Overlay details_view {
name: "details_view";
[overlay]
Adw.ToolbarView details_view_toolbar_view {
[top]
Adw.HeaderBar {
}
ScrolledWindow {
[overlay]
Box details_view_box {
halign: center;
valign: center;
margin-start: 24;
margin-end: 24;
margin-top: 24;
margin-bottom: 24;
orientation: vertical;
Adw.Clamp {
maximum-size: 200;
Overlay {
[overlay]
Spinner details_view_spinner {
margin-start: 72;
margin-end: 72;
}
Picture details_view_cover {
halign: end;
valign: start;
width-request: 200;
height-request: 300;
styles [
"card",
]
}
Adw.HeaderBar {
[start]
Button back_button {
tooltip-text: _("Back");
action-name: "win.go_back";
icon-name: "go-previous-symbolic";
}
[title]
Adw.WindowTitle details_view_header_bar_title {
title: _("Game Details");
}
styles [
"flat",
]
}
Box details_view_details_box {
orientation: vertical;
margin-start: 48;
Adw.Bin {
hexpand: true;
vexpand: true;
valign: center;
Label details_view_title {
label: _("Game Title");
hexpand: true;
halign: start;
max-width-chars: 24;
wrap: true;
wrap-mode: word_char;
natural-wrap-mode: word;
styles [
"title-1",
]
}
Label details_view_developer {
margin-top: 6;
hexpand: true;
halign: start;
max-width-chars: 36;
wrap: true;
wrap-mode: word_char;
natural-wrap-mode: word;
styles [
"heading",
]
}
Box details_view_date_box {
orientation: horizontal;
margin-top: 15;
hexpand: true;
halign: start;
Label details_view_added {
wrap: true;
wrap-mode: word_char;
natural-wrap-mode: word;
justify: center;
}
Label details_view_last_played {
margin-start: 12;
wrap: true;
wrap-mode: word_char;
natural-wrap-mode: word;
justify: center;
}
}
Box details_view_toolbar {
hexpand: true;
vexpand: true;
Box {
halign: center;
valign: center;
margin-start: 24;
margin-end: 24;
margin-top: 24;
margin-bottom: 24;
Button details_view_play_button {
name: "details_view_play_button";
action-name: "app.launch_game";
label: _("Play");
halign: start;
margin-top: 24;
Adw.Clamp {
maximum-size: 200;
Overlay {
[overlay]
Spinner details_view_spinner {
margin-start: 72;
margin-end: 72;
}
styles [
"opaque",
"pill",
]
Picture details_view_cover {
halign: end;
valign: start;
width-request: 200;
height-request: 300;
styles [
"card",
]
}
}
}
Box details_view_toolbar_buttons {
halign: start;
Box {
orientation: vertical;
margin-start: 48;
vexpand: true;
valign: center;
margin-top: 24;
margin-start: 9;
Button {
icon-name: "document-edit-symbolic";
action-name: "app.edit_game";
tooltip-text: _("Edit");
Label details_view_title {
label: _("Game Title");
hexpand: true;
halign: start;
max-width-chars: 24;
wrap: true;
wrap-mode: word_char;
natural-wrap-mode: word;
styles [
"raised",
"circular",
"title-1",
]
}
Button details_view_hide_button {
action-name: "app.hide_game";
Label details_view_developer {
margin-top: 3;
hexpand: true;
halign: start;
max-width-chars: 36;
wrap: true;
wrap-mode: word_char;
natural-wrap-mode: word;
styles [
"raised",
"circular",
"heading"
]
}
Button {
icon-name: "user-trash-symbolic";
action-name: "app.remove_game";
tooltip-text: _("Remove");
Box {
orientation: horizontal;
margin-top: 12;
hexpand: true;
halign: start;
styles [
"raised",
"circular",
]
Label details_view_added {
wrap: true;
wrap-mode: word_char;
natural-wrap-mode: word;
}
Label details_view_last_played {
margin-start: 12;
wrap: true;
wrap-mode: word_char;
natural-wrap-mode: word;
}
}
Box {
hexpand: true;
vexpand: true;
valign: center;
MenuButton {
icon-name: "system-search-symbolic";
menu-model: search;
tooltip-text: _("Search");
Button details_view_play_button {
name: "details_view_play_button";
action-name: "app.launch_game";
label: _("Play");
halign: start;
margin-top: 24;
styles [
"raised",
"circular",
]
styles [
"opaque",
"pill",
]
}
Box {
halign: start;
valign: center;
margin-top: 24;
margin-start: 12;
Button {
icon-name: "document-edit-symbolic";
action-name: "app.edit_game";
tooltip-text: _("Edit");
styles [
"circular",
]
}
Button details_view_hide_button {
action-name: "app.hide_game";
styles [
"circular",
]
}
Button {
icon-name: "user-trash-symbolic";
action-name: "app.remove_game";
tooltip-text: _("Remove");
styles [
"circular",
]
}
styles [
"linked",
]
}
MenuButton {
halign: start;
valign: center;
margin-top: 24;
margin-start: 12;
icon-name: "system-search-symbolic";
menu-model: search;
tooltip-text: _("Search");
styles [
"circular",
]
}
}
styles [
"toolbar",
]
}
}
}
}
}
}
Picture details_view_blurred_cover {
keep-aspect-ratio: false;
Picture details_view_blurred_cover {
keep-aspect-ratio: false;
}
}
Box library_view {
orientation: vertical;
Adw.HeaderBar header_bar {
[start]
MenuButton {
tooltip-text: _("Add Game");
icon-name: "list-add-symbolic";
menu-model: add_games;
}
[end]
MenuButton primary_menu_button {
tooltip-text: _("Main Menu");
icon-name: "open-menu-symbolic";
menu-model: primary_menu;
}
[end]
ToggleButton search_button {
tooltip-text: _("Search");
icon-name: "system-search-symbolic";
action-name: "win.toggle_search";
}
}
SearchBar search_bar {
Adw.Clamp {
maximum-size: 500;
tightening-threshold: 500;
SearchEntry search_entry {
hexpand: true;
}
}
}
Adw.Bin library_bin {
ScrolledWindow scrolledwindow {
hexpand: true;
vexpand: true;
FlowBox library {
homogeneous: true;
halign: center;
valign: start;
column-spacing: 12;
row-spacing: 12;
margin-top: 16;
margin-bottom: 16;
margin-start: 16;
margin-end: 16;
selection-mode: none;
}
}
}
}
Box hidden_library_view {
orientation: vertical;
Adw.HeaderBar hidden_header_bar {
[start]
Button hidden_back_button {
tooltip-text: _("Back");
action-name: "win.go_back";
icon-name: "go-previous-symbolic";
}
[title]
Adw.WindowTitle {
title: _("Hidden Games");
}
[end]
MenuButton {
tooltip-text: _("Main Menu");
icon-name: "open-menu-symbolic";
menu-model: primary_menu;
}
[end]
ToggleButton hidden_search_button {
tooltip-text: _("Search");
icon-name: "system-search-symbolic";
action-name: "win.toggle_search";
}
}
SearchBar hidden_search_bar {
Adw.Clamp {
maximum-size: 500;
tightening-threshold: 500;
SearchEntry hidden_search_entry {
hexpand: true;
}
}
}
Adw.Bin hidden_library_bin {
ScrolledWindow hidden_scrolledwindow {
hexpand: true;
vexpand: true;
FlowBox hidden_library {
homogeneous: true;
halign: center;
valign: start;
column-spacing: 12;
row-spacing: 12;
margin-top: 16;
margin-bottom: 16;
margin-start: 16;
margin-end: 16;
selection-mode: none;
}
}
}
styles [
"background",
]
}
}
}
}
@@ -535,7 +419,6 @@ menu add_games {
action: "app.add_game";
}
}
section {
item {
label: _("Import");
@@ -547,30 +430,25 @@ menu add_games {
menu search {
section {
label: "Search on…";
item {
label: "IGDB";
action: "app.igdb_search";
}
item {
label: "SteamGridDB";
action: "app.sgdb_search";
}
item {
label: "ProtonDB";
action: "app.protondb_search";
}
item {
label: "Lutris";
action: "app.lutris_search";
}
item {
label: "HowLongToBeat";
action: "app.hltb_search";
}
}
}
}

View File

@@ -3,9 +3,8 @@ Name=Cartridges
GenericName=Game Launcher
Comment=Launch all your games
Exec=cartridges
Icon=@APP_ID@
Icon=hu.kramo.Cartridges
Terminal=false
Type=Application
Categories=GNOME;GTK;Game;
Keywords=gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;
StartupNotify=true

View File

@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="cartridges">
<schema id="hu.kramo.Cartridges" path="/hu/kramo/Cartridges/">
<key name="exit-after-launch" type="b">
<default>false</default>
</key>
<key name="cover-launches-game" type="b">
<default>false</default>
</key>
<key name="high-quality-images" type="b">
<default>false</default>
</key>
<key name="steam" type="b">
<default>true</default>
</key>
<key name="steam-location" type="s">
<default>"~/.steam/"</default>
</key>
<key name="steam-extra-dirs" type="as">
<default>[]</default>
</key>
<key name="steam-extra-dirs-hint" type="b">
<default>true</default>
</key>
<key name="lutris" type="b">
<default>true</default>
</key>
<key name="lutris-location" type="s">
<default>"~/.var/app/net.lutris.Lutris/data/lutris/"</default>
</key>
<key name="lutris-cache-location" type="s">
<default>"~/.var/app/net.lutris.Lutris/cache/lutris"</default>
</key>
<key name="lutris-import-steam" type="b">
<default>false</default>
</key>
<key name="heroic" type="b">
<default>true</default>
</key>
<key name="heroic-location" type="s">
<default>"~/.var/app/com.heroicgameslauncher.hgl/config/heroic/"</default>
</key>
<key name="heroic-import-epic" type="b">
<default>true</default>
</key>
<key name="heroic-import-gog" type="b">
<default>true</default>
</key>
<key name="heroic-import-sideload" type="b">
<default>true</default>
</key>
<key name="bottles" type="b">
<default>true</default>
</key>
<key name="bottles-location" type="s">
<default>"~/.var/app/com.usebottles.bottles/data/bottles/"</default>
</key>
<key name="itch" type="b">
<default>true</default>
</key>
<key name="itch-location" type="s">
<default>"~/.var/app/io.itch.itch/config/itch/"</default>
</key>
<key name="sgdb-key" type="s">
<default>""</default>
</key>
<key name="sgdb" type="b">
<default>false</default>
</key>
<key name="sgdb-prefer" type="b">
<default>false</default>
</key>
<key name="sgdb-animated" type="b">
<default>false</default>
</key>
</schema>
<schema id="hu.kramo.Cartridge.State" path="/hu/kramo/Cartridges/State/">
<key name="width" type="i">
<default>1110</default>
</key>
<key name="height" type="i">
<default>820</default>
</key>
<key name="is-maximized" type="b">
<default>false</default>
</key>
<key name="sort-mode" type="s">
<choices>
<choice value="a-z"/>
<choice value="z-a"/>
<choice value="newest"/>
<choice value="oldest"/>
<choice value="last_played"/>
</choices>
<default>"a-z"</default>
</key>
</schema>
</schemalist>

View File

@@ -1,136 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="cartridges">
<schema id="@APP_ID@" path="@PREFIX@/">
<key name="exit-after-launch" type="b">
<default>false</default>
</key>
<key name="cover-launches-game" type="b">
<default>false</default>
</key>
<key name="high-quality-images" type="b">
<default>false</default>
</key>
<key name="remove-missing" type="b">
<default>true</default>
</key>
<key name="steam" type="b">
<default>true</default>
</key>
<key name="steam-location" type="s">
<default>"~/.steam/steam"</default>
</key>
<key name="lutris" type="b">
<default>true</default>
</key>
<key name="lutris-location" type="s">
<default>"~/.var/app/net.lutris.Lutris/data/lutris/"</default>
</key>
<key name="lutris-cache-location" type="s">
<default>"~/.var/app/net.lutris.Lutris/cache/lutris"</default>
</key>
<key name="lutris-import-steam" type="b">
<default>false</default>
</key>
<key name="lutris-import-flatpak" type="b">
<default>false</default>
</key>
<key name="heroic" type="b">
<default>true</default>
</key>
<key name="heroic-location" type="s">
<default>"~/.config/heroic/"</default>
</key>
<key name="heroic-import-epic" type="b">
<default>true</default>
</key>
<key name="heroic-import-gog" type="b">
<default>true</default>
</key>
<key name="heroic-import-amazon" type="b">
<default>true</default>
</key>
<key name="heroic-import-sideload" type="b">
<default>true</default>
</key>
<key name="bottles" type="b">
<default>true</default>
</key>
<key name="bottles-location" type="s">
<default>"~/.var/app/com.usebottles.bottles/data/bottles/"</default>
</key>
<key name="itch" type="b">
<default>true</default>
</key>
<key name="itch-location" type="s">
<default>"~/.var/app/io.itch.itch/config/itch/"</default>
</key>
<key name="legendary" type="b">
<default>true</default>
</key>
<key name="legendary-location" type="s">
<default>"~/.config/legendary/"</default>
</key>
<key name="retroarch" type="b">
<default>true</default>
</key>
<key name="retroarch-location" type="s">
<default>"~/.var/app/org.libretro.RetroArch/config/retroarch/"</default>
</key>
<key name="desktop" type="b">
<default>true</default>
</key>
<key name="flatpak" type="b">
<default>true</default>
</key>
<key name="flatpak-location" type="s">
<default>"/var/lib/flatpak/"</default>
</key>
<key name="flatpak-import-launchers" type="b">
<default>false</default>
</key>
<key name="sgdb-key" type="s">
<default>""</default>
</key>
<key name="sgdb" type="b">
<default>false</default>
</key>
<key name="sgdb-prefer" type="b">
<default>false</default>
</key>
<key name="sgdb-animated" type="b">
<default>false</default>
</key>
<key name="library-rows" type="u">
<default>0</default>
</key>
</schema>
<schema id="@APP_ID@.State" path="@PREFIX@/State/">
<key name="width" type="i">
<default>1170</default>
</key>
<key name="height" type="i">
<default>795</default>
</key>
<key name="is-maximized" type="b">
<default>false</default>
</key>
<key name="sort-mode" type="s">
<choices>
<choice value="a-z" />
<choice value="z-a" />
<choice value="newest" />
<choice value="oldest" />
<choice value="last_played" />
</choices>
<default>"a-z"</default>
</key>
<key name="show-sidebar" type="b">
<default>false</default>
</key>
<key name="steam-limiter-tokens-history" type="s">
<default>"[]"</default>
</key>
</schema>
</schemalist>

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>@APP_ID@</id>
<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>
@@ -15,27 +15,19 @@
<url type="vcs-browser">https://github.com/kra-mo/cartridges</url>
<url type="contribute">https://github.com/kra-mo/cartridges/blob/main/CONTRIBUTING.md</url>
<developer_name translatable="no">kramo</developer_name>
<launchable type="desktop-id">@APP_ID@.desktop</launchable>
<supports>
<control>pointing</control>
<control>keyboard</control>
<control>touch</control>
</supports>
<recommends>
<display_length compare="gt">280</display_length>
</recommends>
<launchable type="desktop-id">hu.kramo.Cartridges.desktop</launchable>
<screenshots>
<screenshot type="default">
<image>https://raw.githubusercontent.com/kra-mo/cartridges/main/data/screenshots/1.png</image>
<caption>Cartridges</caption>
<caption>Library</caption>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/kra-mo/cartridges/main/data/screenshots/2.png</image>
<caption>Game Details</caption>
<caption>Edit Game Details</caption>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/kra-mo/cartridges/main/data/screenshots/3.png</image>
<caption>Edit Game Details</caption>
<caption>Game Details</caption>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/kra-mo/cartridges/main/data/screenshots/4.png</image>
@@ -44,77 +36,10 @@
</screenshots>
<content_rating type="oars-1.1" />
<releases>
<release version="2.5" date="2023-10-06">
<release version="1.4.1" date="2023-05-05">
<description translatable="no">
<ul>
<li>Added the ability to refetch covers from SteamGridDB</li>
<li>Fixed an issue with fractional scaling</li>
<li>Translations since 2.4</li>
</ul>
<p>The project now accepts donations. Thank you so much if you decide to donate! 💜</p>
</description>
</release>
<release version="2.4" date="2023-09-21">
<description translatable="no">
<ul>
<li>Cartridges now adapts to smaller screen sizes</li>
<li>You can now filter games by import source</li>
<li>Ported to Libadwaita 1.4</li>
<li>Translations since 2.3</li>
</ul>
</description>
</release>
<release version="2.3" date="2023-08-29">
<description translatable="no">
<ul>
<li>New import source: desktop entries</li>
<li>Added the ability to pick executables via the file picker</li>
<li>Manually added covers are now padded if they are too short</li>
<li>Translations since 2.2</li>
</ul>
</description>
</release>
<release version="2.2" date="2023-08-17">
<description translatable="no">
<ul>
<li>New import source: RetroArch</li>
<li>Added the option to automatically remove uninstalled games on import</li>
<li>Added the ability to undo an import</li>
<li>Various UX improvements</li>
<li>Translations since 2.1</li>
</ul>
</description>
</release>
<release version="2.1" date="2023-07-25">
<description translatable="no">
<ul>
<li>Added support for Amazon Games in the Heroic importer</li>
<li>Translations since 2.0</li>
</ul>
</description>
</release>
<release version="2.0" date="2023-07-05">
<description translatable="no">
<p>After months of work, Cartridges 2.0 is here:</p>
<ul>
<li>New import source: Legendary</li>
<li>New import source: Flatpak</li>
<li>Importing games should be much quicker</li>
<li>Error handling has been improved</li>
<li>Various UX improvements</li>
<li>Translations since 1.5</li>
</ul>
<p>Thanks to the new import backend, adding new sources is much easier and a lot more are coming soon!</p>
</description>
</release>
<release version="1.5" date="2023-05-23">
<description translatable="no">
<ul>
<li>Cartridges is now part of GNOME Circle!</li>
<li>Extra Steam libraries are now detected automatically</li>
<li>Executables are now passed directly to the shell</li>
<li>Various UX improvements</li>
<li>Translations since 1.4</li>
<li>Updates the Heroic GOG path</li>
</ul>
</description>
</release>

View File

@@ -1,85 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg height="128px" viewBox="0 0 128 128" width="128px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<linearGradient id="a" gradientUnits="userSpaceOnUse" x1="9" x2="119" y1="115" y2="115">
<stop offset="0" stop-color="#613583"/>
<stop offset="0.05" stop-color="#9141ac"/>
<stop offset="0.22" stop-color="#613583"/>
<stop offset="0.78" stop-color="#613583"/>
<stop offset="0.95" stop-color="#9141ac"/>
<stop offset="1" stop-color="#613583"/>
</linearGradient>
<linearGradient id="b" gradientUnits="userSpaceOnUse" x1="45" x2="45" y1="50" y2="82">
<stop offset="0" stop-color="#bdd0d5"/>
<stop offset="1" stop-color="#305749"/>
</linearGradient>
<clipPath id="c">
<rect height="128" width="128"/>
</clipPath>
<clipPath id="d">
<rect height="128" width="128"/>
</clipPath>
<filter id="e" height="100%" width="100%" x="0%" y="0%">
<feColorMatrix in="SourceGraphic" type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/>
</filter>
<mask id="f">
<g clip-path="url(#d)" filter="url(#e)">
<g clip-path="url(#c)">
<path d="m 111 29 h -94 c -4.417969 0 -8 3.582031 -8 8 v 70 c 0 4.417969 3.582031 8 8 8 h 94 c 4.417969 0 8 -3.582031 8 -8 v -70 c 0 -4.417969 -3.582031 -8 -8 -8 z m 0 0" fill="url(#a)"/>
<path d="m 111 29 h -94 c -4.417969 0 -8 3.679688 -8 8.222656 v 57.554688 c 0 4.539062 3.582031 8.222656 8 8.222656 h 94 c 4.417969 0 8 -3.679688 8 -8.222656 v -57.554688 c 0 -4.539062 -3.582031 -8.222656 -8 -8.222656 z m 0 0" fill="#c061cb"/>
<path d="m 84 42 h -40 c -2.210938 0 -4 1.789062 -4 4 v 40 c 0 2.210938 1.789062 4 4 4 h 40 c 2.210938 0 4 -1.789062 4 -4 v -40 c 0 -2.210938 -1.789062 -4 -4 -4 z m 0 0"/>
<path d="m 81 50 h -34 c -1.105469 0 -2 0.894531 -2 2 v 28 c 0 1.105469 0.894531 2 2 2 h 34 c 1.105469 0 2 -0.894531 2 -2 v -28 c 0 -1.105469 -0.894531 -2 -2 -2 z m 0 0" fill="url(#b)"/>
<path d="m 102 61 v -1 c 0 -2.761719 -2.238281 -5 -5 -5 s -5 2.238281 -5 5 v 1 c 0 2.761719 2.238281 5 5 5 s 5 -2.238281 5 -5 z m 12 -6 v -1 c 0 -2.761719 -2.238281 -5 -5 -5 s -5 2.238281 -5 5 v 1 c 0 2.761719 2.238281 5 5 5 s 5 -2.238281 5 -5 z m 0 0"/>
<path d="m 97 64 c 2.761719 0 5 -2.015625 5 -4.5 s -2.238281 -4.5 -5 -4.5 s -5 2.015625 -5 4.5 s 2.238281 4.5 5 4.5 z m 12 -6 c 2.761719 0 5 -2.015625 5 -4.5 s -2.238281 -4.5 -5 -4.5 s -5 2.015625 -5 4.5 s 2.238281 4.5 5 4.5 z m 0 0" fill="#3d3846"/>
<path d="m 29 56.5 c 0 -1.933594 -1.566406 -3.5 -3.5 -3.5 s -3.5 1.566406 -3.5 3.5 v 13 c 0 1.933594 1.566406 3.5 3.5 3.5 s 3.5 -1.566406 3.5 -3.5 z m 0 0"/>
<path d="m 33 58 h -15 c -1.65625 0 -3 1.34375 -3 3 v 2 c 0 1.65625 1.34375 3 3 3 h 15 c 1.65625 0 3 -1.34375 3 -3 v -2 c 0 -1.65625 -1.34375 -3 -3 -3 z m 0 0"/>
<path d="m 29 54.5 c 0 -1.933594 -1.566406 -3.5 -3.5 -3.5 s -3.5 1.566406 -3.5 3.5 v 13 c 0 1.933594 1.566406 3.5 3.5 3.5 s 3.5 -1.566406 3.5 -3.5 z m 0 0" fill="#3d3846"/>
<path d="m 33 58 h -15 c -1.65625 0 -3 1.34375 -3 3 s 1.34375 3 3 3 h 15 c 1.65625 0 3 -1.34375 3 -3 s -1.34375 -3 -3 -3 z m 0 0" fill="#3d3846"/>
<path d="m 71 109 c 0 -1.105469 0.894531 -2 2 -2 s 2 0.894531 2 2 s -0.894531 2 -2 2 s -2 -0.894531 -2 -2 z m 0 0"/>
<path d="m 71.0625 108.5 c 0.226562 0.882812 1.023438 1.503906 1.9375 1.503906 s 1.710938 -0.621094 1.9375 -1.503906 c 0.195312 0.757812 -0.066406 1.558594 -0.671875 2.050781 c -0.605469 0.492188 -1.445313 0.585938 -2.144531 0.242188 c -0.855469 -0.414063 -1.296875 -1.375 -1.058594 -2.292969 z m 0 0" fill="#9141ac"/>
<path d="m 66 107 h -10 c -1.105469 0 -2 0.894531 -2 2 s 0.894531 2 2 2 h 10 c 1.105469 0 2 -0.894531 2 -2 s -0.894531 -2 -2 -2 z m 0 0"/>
<path d="m 54.0625 108.5 c -0.152344 0.597656 -0.023438 1.234375 0.355469 1.726562 c 0.378906 0.488282 0.964843 0.773438 1.582031 0.773438 h 10 c 0.617188 0 1.203125 -0.285156 1.582031 -0.773438 c 0.378907 -0.492187 0.511719 -1.128906 0.355469 -1.726562 c -0.226562 0.882812 -1.023438 1.5 -1.9375 1.5 h -10 c -0.914062 0 -1.710938 -0.617188 -1.9375 -1.5 z m 0 0" fill="#9141ac"/>
<path d="m 110 74 h -14 c -0.550781 0 -1 0.449219 -1 1 s 0.449219 1 1 1 h 14 c 0.550781 0 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 z m 0 5 h -14 c -0.550781 0 -1 0.449219 -1 1 s 0.449219 1 1 1 h 14 c 0.550781 0 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 z m 0 5 h -14 c -0.550781 0 -1 0.449219 -1 1 s 0.449219 1 1 1 h 14 c 0.550781 0 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 z m 0 0" fill="#613583"/>
<path d="m 21.5 79 h -3 c -1.378906 0 -2.5 1.121094 -2.5 2.5 s 1.121094 2.5 2.5 2.5 h 3 c 1.378906 0 2.5 -1.121094 2.5 -2.5 s -1.121094 -2.5 -2.5 -2.5 z m 11 0 h -3 c -1.378906 0 -2.5 1.121094 -2.5 2.5 s 1.121094 2.5 2.5 2.5 h 3 c 1.378906 0 2.5 -1.121094 2.5 -2.5 s -1.121094 -2.5 -2.5 -2.5 z m 0 0"/>
<path d="m 22 79 h -4 c -1.105469 0 -2 0.894531 -2 2 s 0.894531 2 2 2 h 4 c 1.105469 0 2 -0.894531 2 -2 s -0.894531 -2 -2 -2 z m 11 0 h -4 c -1.105469 0 -2 0.894531 -2 2 s 0.894531 2 2 2 h 4 c 1.105469 0 2 -0.894531 2 -2 s -0.894531 -2 -2 -2 z m 0 0" fill="#3d3846"/>
</g>
</g>
</mask>
<mask id="g">
<g filter="url(#e)">
<rect fill-opacity="0.8" height="128" width="128"/>
</g>
</mask>
<linearGradient id="h" gradientTransform="matrix(0 0.37 -0.98462 0 295.38501 -30.360001)" gradientUnits="userSpaceOnUse" x1="300" x2="428" y1="235" y2="235">
<stop offset="0" stop-color="#f9f06b"/>
<stop offset="1" stop-color="#f5c211"/>
</linearGradient>
<clipPath id="i">
<rect height="128" width="128"/>
</clipPath>
<clipPath id="j">
<rect height="128" width="128"/>
</clipPath>
<path d="m 111 29 h -94 c -4.417969 0 -8 3.582031 -8 8 v 70 c 0 4.417969 3.582031 8 8 8 h 94 c 4.417969 0 8 -3.582031 8 -8 v -70 c 0 -4.417969 -3.582031 -8 -8 -8 z m 0 0" fill="url(#a)"/>
<path d="m 111 29 h -94 c -4.417969 0 -8 3.679688 -8 8.222656 v 57.554688 c 0 4.539062 3.582031 8.222656 8 8.222656 h 94 c 4.417969 0 8 -3.679688 8 -8.222656 v -57.554688 c 0 -4.539062 -3.582031 -8.222656 -8 -8.222656 z m 0 0" fill="#c061cb"/>
<path d="m 84 42 h -40 c -2.210938 0 -4 1.789062 -4 4 v 40 c 0 2.210938 1.789062 4 4 4 h 40 c 2.210938 0 4 -1.789062 4 -4 v -40 c 0 -2.210938 -1.789062 -4 -4 -4 z m 0 0"/>
<path d="m 81 50 h -34 c -1.105469 0 -2 0.894531 -2 2 v 28 c 0 1.105469 0.894531 2 2 2 h 34 c 1.105469 0 2 -0.894531 2 -2 v -28 c 0 -1.105469 -0.894531 -2 -2 -2 z m 0 0" fill="url(#b)"/>
<path d="m 102 61 v -1 c 0 -2.761719 -2.238281 -5 -5 -5 s -5 2.238281 -5 5 v 1 c 0 2.761719 2.238281 5 5 5 s 5 -2.238281 5 -5 z m 12 -6 v -1 c 0 -2.761719 -2.238281 -5 -5 -5 s -5 2.238281 -5 5 v 1 c 0 2.761719 2.238281 5 5 5 s 5 -2.238281 5 -5 z m 0 0"/>
<path d="m 97 64 c 2.761719 0 5 -2.015625 5 -4.5 s -2.238281 -4.5 -5 -4.5 s -5 2.015625 -5 4.5 s 2.238281 4.5 5 4.5 z m 12 -6 c 2.761719 0 5 -2.015625 5 -4.5 s -2.238281 -4.5 -5 -4.5 s -5 2.015625 -5 4.5 s 2.238281 4.5 5 4.5 z m 0 0" fill="#3d3846"/>
<path d="m 29 56.5 c 0 -1.933594 -1.566406 -3.5 -3.5 -3.5 s -3.5 1.566406 -3.5 3.5 v 13 c 0 1.933594 1.566406 3.5 3.5 3.5 s 3.5 -1.566406 3.5 -3.5 z m 0 0"/>
<path d="m 33 58 h -15 c -1.65625 0 -3 1.34375 -3 3 v 2 c 0 1.65625 1.34375 3 3 3 h 15 c 1.65625 0 3 -1.34375 3 -3 v -2 c 0 -1.65625 -1.34375 -3 -3 -3 z m 0 0"/>
<path d="m 29 54.5 c 0 -1.933594 -1.566406 -3.5 -3.5 -3.5 s -3.5 1.566406 -3.5 3.5 v 13 c 0 1.933594 1.566406 3.5 3.5 3.5 s 3.5 -1.566406 3.5 -3.5 z m 0 0" fill="#3d3846"/>
<path d="m 33 58 h -15 c -1.65625 0 -3 1.34375 -3 3 s 1.34375 3 3 3 h 15 c 1.65625 0 3 -1.34375 3 -3 s -1.34375 -3 -3 -3 z m 0 0" fill="#3d3846"/>
<path d="m 71 109 c 0 -1.105469 0.894531 -2 2 -2 s 2 0.894531 2 2 s -0.894531 2 -2 2 s -2 -0.894531 -2 -2 z m 0 0"/>
<path d="m 71.0625 108.5 c 0.226562 0.882812 1.023438 1.503906 1.9375 1.503906 s 1.710938 -0.621094 1.9375 -1.503906 c 0.195312 0.757812 -0.066406 1.558594 -0.671875 2.050781 c -0.605469 0.492188 -1.445313 0.585938 -2.144531 0.242188 c -0.855469 -0.414063 -1.296875 -1.375 -1.058594 -2.292969 z m 0 0" fill="#9141ac"/>
<path d="m 66 107 h -10 c -1.105469 0 -2 0.894531 -2 2 s 0.894531 2 2 2 h 10 c 1.105469 0 2 -0.894531 2 -2 s -0.894531 -2 -2 -2 z m 0 0"/>
<path d="m 54.0625 108.5 c -0.152344 0.597656 -0.023438 1.234375 0.355469 1.726562 c 0.378906 0.488282 0.964843 0.773438 1.582031 0.773438 h 10 c 0.617188 0 1.203125 -0.285156 1.582031 -0.773438 c 0.378907 -0.492187 0.511719 -1.128906 0.355469 -1.726562 c -0.226562 0.882812 -1.023438 1.5 -1.9375 1.5 h -10 c -0.914062 0 -1.710938 -0.617188 -1.9375 -1.5 z m 0 0" fill="#9141ac"/>
<path d="m 110 74 h -14 c -0.550781 0 -1 0.449219 -1 1 s 0.449219 1 1 1 h 14 c 0.550781 0 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 z m 0 5 h -14 c -0.550781 0 -1 0.449219 -1 1 s 0.449219 1 1 1 h 14 c 0.550781 0 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 z m 0 5 h -14 c -0.550781 0 -1 0.449219 -1 1 s 0.449219 1 1 1 h 14 c 0.550781 0 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 z m 0 0" fill="#613583"/>
<path d="m 21.5 79 h -3 c -1.378906 0 -2.5 1.121094 -2.5 2.5 s 1.121094 2.5 2.5 2.5 h 3 c 1.378906 0 2.5 -1.121094 2.5 -2.5 s -1.121094 -2.5 -2.5 -2.5 z m 11 0 h -3 c -1.378906 0 -2.5 1.121094 -2.5 2.5 s 1.121094 2.5 2.5 2.5 h 3 c 1.378906 0 2.5 -1.121094 2.5 -2.5 s -1.121094 -2.5 -2.5 -2.5 z m 0 0"/>
<path d="m 22 79 h -4 c -1.105469 0 -2 0.894531 -2 2 s 0.894531 2 2 2 h 4 c 1.105469 0 2 -0.894531 2 -2 s -0.894531 -2 -2 -2 z m 11 0 h -4 c -1.105469 0 -2 0.894531 -2 2 s 0.894531 2 2 2 h 4 c 1.105469 0 2 -0.894531 2 -2 s -0.894531 -2 -2 -2 z m 0 0" fill="#3d3846"/>
<g clip-path="url(#j)" mask="url(#f)">
<g clip-path="url(#i)" mask="url(#g)">
<path d="m 128 80.640625 v 47.359375 h -128 v -47.359375 z m 0 0" fill="url(#h)"/>
<path d="m 13.308594 80.640625 l 47.355468 47.359375 h 21.214844 l -47.359375 -47.359375 z m 42.421875 0 l 47.363281 47.359375 h 21.214844 l -47.363282 -47.359375 z m 42.429687 0 l 29.839844 29.839844 v -21.210938 l -8.628906 -8.628906 z m -98.160156 7.90625 v 21.214844 l 18.238281 18.238281 h 21.214844 z m 0 0"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -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 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>

Before

Width:  |  Height:  |  Size: 618 B

View File

@@ -1,11 +1,13 @@
application_id = 'hu.kramo.Cartridges'
scalable_dir = join_paths('hicolor', 'scalable', 'apps')
install_data(
join_paths(scalable_dir, ('@0@.svg').format(app_id)),
join_paths(scalable_dir, ('@0@.svg').format(application_id)),
install_dir: join_paths(get_option('datadir'), 'icons', scalable_dir)
)
symbolic_dir = join_paths('hicolor', 'symbolic', 'apps')
install_data(
join_paths(symbolic_dir, ('@0@-symbolic.svg').format(app_id)),
join_paths(symbolic_dir, ('@0@-symbolic.svg').format(application_id)),
install_dir: join_paths(get_option('datadir'), 'icons', symbolic_dir)
)

View File

@@ -1 +0,0 @@
<svg width="16" height="16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.847 0v.616c0 .371-.17.786-.405 1.239C1.812 2.95 1.163 4.02 1.01 5.288L1 16h2l.01-10.712c.153-1.267.802-2.337 1.432-3.433.235-.453.405-.868.405-1.24V0h-2Zm4 0v.616c0 .371-.17.786-.404 1.239C5.812 2.95 5.163 4.02 5.01 5.288L5 16h2.001l.01-10.712c.153-1.267.801-2.337 1.432-3.433.235-.453.405-.868.405-1.24V0h-2Zm4.001 0v.616c-.315 1.678-1.632 3.165-1.837 4.672L9.001 16h5.693l-.008-10.7c-.32-1.815-1.385-3.08-1.838-4.684V0h-2Z" fill="#000"/></svg>

Before

Width:  |  Height:  |  Size: 532 B

View File

@@ -1 +0,0 @@
<svg width="16" height="16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.805.02a.971.971 0 0 0-.36.148l-6 4A.998.998 0 0 0 1 5v6a1 1 0 0 0 .445.833l6 4c.337.223.774.223 1.11 0l6-4a.998.998 0 0 0 .446-.832V5a.998.998 0 0 0-.445-.832l-6-4a.994.994 0 0 0-.75-.149Zm.196 2.179V9l5-3.332v4.797l-5 3.337V9L3 5.668v-.133L8 2.2Z" fill="#000"/></svg>

Before

Width:  |  Height:  |  Size: 355 B

View File

@@ -1 +0,0 @@
<svg width="16" height="16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="m7.872 16-3.817-3.083L2 2.79 7.872 0l5.871 2.789-2.055 10.128L7.872 16Zm0-4.257-.294-.293-.88-7.927 1.1-1.908 1.174 1.908-.807 7.927-.293.293Zm-.294.367-.147.367-1.761.294-.294-.66.294-.662 1.761.294.147.367Zm-.073.734-.22 1.541.587.294.587-.294-.22-1.541-.367-.22-.367.22Zm.807-.367-.147-.367.147-.367 1.761-.293.294.66-.294.66-1.761-.293Z" fill="#000"/></svg>

Before

Width:  |  Height:  |  Size: 485 B

View File

@@ -1 +0,0 @@
<svg width="16" height="16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.965 1.992C1.43 2.08 1 2.58 1 3.115V15.18c0 .534.43.894.965.806l12.066-1.979c.534-.088.964-.588.964-1.122V.82c0-.535-.43-.894-.964-.807L1.964 1.992Zm3.41 3.33c.555-.091.95.204 1.09.722l3.068-.503c.14-.564.532-.988 1.087-1.08.882-.144 1.851.602 2.154 1.659l.723 2.523c.302 1.056-.172 2.04-1.054 2.184-.774.127-1.615-.432-2.014-1.286l-4.863.798c-.399.984-1.24 1.82-2.014 1.946-.882.145-1.356-.683-1.054-1.838l.723-2.76c.303-1.157 1.272-2.22 2.154-2.365ZM7.282 6.58v.986l-.791.13L7.997 9.36 9.505 7.2l-.743.122v-.985l-1.48.243Z" fill="#000"/></svg>

Before

Width:  |  Height:  |  Size: 631 B

View File

@@ -1 +0,0 @@
<svg width="16" height="16" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 6.355V1a1 1 0 0 1 1-1h2.893a1 1 0 0 1 .708.293l.645.645a1 1 0 0 0 .707.293h4.094a1 1 0 0 0 .707-.293L11.4.293A1 1 0 0 1 12.107 0H15a1 1 0 0 1 1 1v5.355a1 1 0 0 1-.293.707l-.23.23a1 1 0 0 0 0 1.415l.23.23a1 1 0 0 1 .293.708V15a1 1 0 0 1-1 1h-2.893a1 1 0 0 1-.708-.293l-.645-.645a1 1 0 0 0-.707-.293H5.953a1 1 0 0 0-.707.293l-.645.645a1 1 0 0 1-.708.293H1a1 1 0 0 1-1-1V9.645a1 1 0 0 1 .293-.707l.23-.23a1 1 0 0 0 0-1.415l-.23-.23A1 1 0 0 1 0 6.354ZM8 5a1 1 0 0 0-2 0v5.5a1 1 0 0 0 1 1h3a1 1 0 1 0 0-2H8V5Z" fill="#000"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>

Before

Width:  |  Height:  |  Size: 757 B

View File

@@ -1 +0,0 @@
<svg width="16" height="16" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 7.937C0 3.554 3.518 0 7.857 0c1.196 0 2.33.27 3.344.753.055-.118.181-.363.301-.371.158-.012.248.09.35.203l.001.002c.102.115.306.287.306.287s.929-.32 1.97.251c1.043.572 1.19.744 1.394 1.144.144.284.14.87.126 1.19a.248.248 0 0 0-.039-.004c-.17 0-.308.174-.308.387 0 .214.138.387.308.387a.256.256 0 0 0 .133-.039c.153.292.233.562.255.806-.05-.348-.544-.586-.544-.586s-.077.135-.243.215c-.025.012-.056.01-.091.006-.063-.007-.138-.014-.21.06-.239.484.345.888.617.877.265-.011.476-.276.475-.512.047.92-.74 1.461-1.495 1.374-.493-.058-.907-.249-1.383-.469a10.262 10.262 0 0 0-1.187-.483c-.951-.307-1.569-.47-2.322-.585-1.486-.227-2.557.12-3.061.424a5.84 5.84 0 0 0-.427.284c.772.15 1.236 1.329 1.25 1.65l.002.013v.007l.001.033c-.021.484-.247.845-.725.83a.823.823 0 0 1-.713-.426c-.014-.024-.028-.049-.044-.072a1.92 1.92 0 0 0-.965-.795c-.46.705-.715 1.548-.715 2.53 0 2.897 2.345 5.052 5.213 5.052.907 0 2.817-.309 4-1.28.226-.207.485-.438.725-.55-.862 2.161-3.479 3.488-6.299 3.403C3.534 15.996 0 12.321 0 7.937ZM13.415 4.02a.596.596 0 0 0 .593-.6.596.596 0 0 0-.593-.599.597.597 0 0 0-.594.6c0 .33.266.6.594.6Z" fill="#000"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -1 +0,0 @@
<svg width="16" height="16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.56 4 5.6 5.28H3.52L3.04 7.2H1.76l.48-1.92H.96L0 9.12h2.56l-.32 1.28h2.24L2.8 12.32h1.88l1.56-1.92h3.52l1.56 1.92h1.88l-1.68-1.92h2.24l-.32-1.28H16l-.96-3.84h-1.28l.48 1.92h-1.28l-.48-1.92H10.4L11.44 4h-1.36L8.96 5.28H7.04L5.92 4H4.56Zm.16 2.56H6v1.28H4.72V6.56Zm5.283 0h1.28v1.28h-1.28V6.56Z" fill="#000"/></svg>

Before

Width:  |  Height:  |  Size: 399 B

View File

@@ -1 +0,0 @@
<svg width="16" height="16" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.352 5.1a1.509 1.509 0 1 0 2.51 1.675A1.509 1.509 0 0 0 9.352 5.1Zm2.923-.277a2.009 2.009 0 1 1-3.34 2.231 2.009 2.009 0 0 1 3.34-2.23ZM5.01 12.131l-.983-.407a1.7 1.7 0 0 0 3.108-.103 1.696 1.696 0 0 0-1.213-2.29 1.699 1.699 0 0 0-.966.07l1.015.421a1.249 1.249 0 0 1-.96 2.307v.002ZM2.546 2.121A7.996 7.996 0 0 1 7.966 0l.003.013a7.988 7.988 0 0 1 7.159 4.432 7.996 7.996 0 0 1-4.277 11.018 7.99 7.99 0 0 1-8.274-1.558A7.989 7.989 0 0 1 .279 10.18l3.064 1.267A2.264 2.264 0 0 0 7.823 11v-.107l2.718-1.938h.063A3.016 3.016 0 1 0 7.589 5.94v.031l-1.906 2.76h-.126c-.454 0-.898.138-1.273.395L0 7.354A7.995 7.995 0 0 1 2.546 2.12Z" fill="#000"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>

Before

Width:  |  Height:  |  Size: 878 B

View File

@@ -1 +1,15 @@
<svg width="200" height="300" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="url(#a)" d="M0 0h200v300H0z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M63.125 113.125c-8.146 0-14.75 6.604-14.75 14.75v44.25c0 8.146 6.604 14.75 14.75 14.75h73.75c8.146 0 14.75-6.604 14.75-14.75v-44.25c0-8.146-6.604-14.75-14.75-14.75h-73.75Zm22.125 14.75a7.375 7.375 0 0 0-7.375 7.375v29.5a7.375 7.375 0 0 0 7.375 7.375h29.5a7.375 7.375 0 0 0 7.375-7.375v-29.5a7.375 7.375 0 0 0-7.375-7.375h-29.5ZM129.5 150a7.375 7.375 0 1 1 14.75 0 7.375 7.375 0 0 1-14.75 0Zm-66.375-7.375a7.375 7.375 0 1 0 0 14.75 7.375 7.375 0 0 0 0-14.75Z" fill="#fff"/><defs><linearGradient id="a" x1="100" y1="0" x2="100" y2="300" gradientUnits="userSpaceOnUse"><stop stop-color="#9A9996"/><stop offset="1" stop-color="#5E5C64"/></linearGradient></defs></svg>
<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>

Before

Width:  |  Height:  |  Size: 831 B

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@@ -1 +0,0 @@
<svg width="2" height="2" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="url(#a)" d="M0 0h2v2H0z"/><defs><linearGradient id="a" x1="1" y1="0" x2="1" y2="2" gradientUnits="userSpaceOnUse"><stop stop-color="#9A9996"/><stop offset="1" stop-color="#5E5C64"/></linearGradient></defs></svg>

Before

Width:  |  Height:  |  Size: 296 B

View File

@@ -3,19 +3,14 @@ blueprints = custom_target('blueprints',
'gtk/help-overlay.blp',
'gtk/window.blp',
'gtk/game.blp',
'gtk/preferences.blp',
'gtk/details-window.blp'
'gtk/preferences.blp'
),
output: '.',
command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
)
gnome.compile_resources('cartridges',
configure_file(
input: 'cartridges.gresource.xml.in',
output: 'cartridges.gresource.xml',
configuration: conf
),
'cartridges.gresource.xml',
gresource_bundle: true,
install: true,
install_dir: pkgdatadir,
@@ -23,12 +18,8 @@ gnome.compile_resources('cartridges',
)
desktop_file = i18n.merge_file(
input: configure_file(
input: 'hu.kramo.Cartridges.desktop.in',
output: app_id + '.desktop.in',
configuration: conf
),
output: app_id + '.desktop',
input: 'hu.kramo.Cartridges.desktop.in',
output: 'hu.kramo.Cartridges.desktop',
type: 'desktop',
po_dir: '../po',
install: true,
@@ -41,12 +32,8 @@ if desktop_utils.found()
endif
appstream_file = i18n.merge_file(
input: configure_file(
input: 'hu.kramo.Cartridges.metainfo.xml.in',
output: app_id + '.metainfo.xml.in',
configuration: conf
),
output: app_id + '.metainfo.xml',
input: 'hu.kramo.Cartridges.metainfo.xml.in',
output: 'hu.kramo.Cartridges.metainfo.xml',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'metainfo')
@@ -57,12 +44,7 @@ if appstream_util.found()
test('Validate appstream file', appstream_util, args: ['validate', appstream_file])
endif
install_data(
configure_file(
input: 'hu.kramo.Cartridges.gschema.xml.in',
output: app_id + '.gschema.xml',
configuration: conf
),
install_data('hu.kramo.Cartridges.gschema.xml',
install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas')
)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 452 KiB

After

Width:  |  Height:  |  Size: 710 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 247 KiB

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 135 KiB

After

Width:  |  Height:  |  Size: 204 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View File

@@ -1,116 +0,0 @@
# [game_id].json specification
#### Version 2.0
Games are saved to disk in the form of [game_id].json files. These files contain all information about a game excluding its cover, which is handled separately.
## Location
The standard location for these files is `/cartridges/games/` under the data directory of the user (`XDG_DATA_HOME` on Linux).
## Contents
The following attributes are saved:
- [added](#added)
- [executable](#executable)
- [game_id](#game_id)
- [source](#source)
- [hidden](#hidden)
- [last_played](#last_played)
- [name](#name)
- [developer](#developer)
- [removed](#removed)
- [blacklisted](#blacklisted)
- [version](#version)
### added
The date at which the game was added.
Cartridges will set the value for itself. Don't touch it.
Stored as a Unix time stamp.
### executable
The executable to run when launching a game.
If the source has a URL handler, using that is preferred. In that case, the value should be `"xdg-open url://example/url"` for Linux and `"start url://example/url"` for Windows.
Stored as either a string (preferred) or an argument vector to be passed to the shell through [subprocess.Popen](https://docs.python.org/3/library/subprocess.html#popen-constructor).
### game_id
The unique ID of the game, prefixed with [`[source]_`](#source) to avoid clashes.
If the game's source uses a consistent internal ID system, use the ID from there. If not, use a hash function that always returns the same hash for the same game, even if some of its attributes change inside of the source.
Stored as a string.
### source
A unique ID for the source of the game in lowercase, without spaces or underscores.
If a source provides multiple internal sources, these should be separately labeled, but share a common prefix. eg. `heoic_gog`, `heroic_epic`. This is the only place you should use an underscore.
Stored as a string.
### hidden
Whether or not a game is hidden.
If the source provides a way of hiding games, take the value from there. Otherwise it should be set to false by default.
Stored as a boolean.
### last_played
The date at which the game was last launched from Cartridges.
Cartridges will set the value for itself. Don't touch it.
Stored as a Unix time stamp. 0 if the game hasn't been played yet.
### name
The title of the game.
Stored as a string.
### developer
The developer or publisher of the game.
If there are multiple developers or publishers, they should be joined with a comma and a space (`, `) into one string.
This is an optional attribute. If it can't be retrieved from the source, don't touch it.
Stored as a string.
### removed
Whether or not a game has been removed.
Cartridges will set the value for itself. Don't touch it.
Stored as a boolean.
### blacklisted
Whether or not a game is blacklisted. Blacklisting a game means it is going to still be imported, but not displayed to the user.
You should only blacklist a game based on information you pull from the web. This is to ensure that games which you would skip based on information online are still skipped even if the user loses their internet connection. If an entry is broken locally, just skip it.
The only reason to blacklist a game is if you find out that the locally cached entry is not actually a game (eg. Proton) or is otherwise invalid.
Unless the above criteria is met, don't touch the attribute.
Stored as a boolean.
### version
The version number of the [game_id].json specification.
Cartridges will set the value for itself. Don't touch it.
Stored as a number.

View File

@@ -1,7 +1,7 @@
{
"id" : "hu.kramo.Cartridges.Devel",
"id" : "hu.kramo.Cartridges",
"runtime" : "org.gnome.Platform",
"runtime-version" : "45",
"runtime-version" : "44",
"sdk" : "org.gnome.Sdk",
"command" : "cartridges",
"finish-args" : [
@@ -11,15 +11,17 @@
"--device=dri",
"--socket=wayland",
"--talk-name=org.freedesktop.Flatpak",
"--filesystem=host",
"--filesystem=~/.steam/steam/:ro",
"--filesystem=xdg-data/lutris/:ro",
"--filesystem=xdg-cache/lutris/:ro",
"--filesystem=xdg-config/heroic/:ro",
"--filesystem=xdg-data/bottles/:ro",
"--filesystem=xdg-config/itch/:ro",
"--filesystem=~/.var/app/com.valvesoftware.Steam/data/Steam/:ro",
"--filesystem=~/.var/app/net.lutris.Lutris/:ro",
"--filesystem=~/.var/app/com.heroicgameslauncher.hgl/config/heroic/:ro",
"--filesystem=~/.var/app/com.heroicgameslauncher.hgl/config/legendary/:ro",
"--filesystem=~/.var/app/com.usebottles.bottles/data/bottles/:ro",
"--filesystem=~/.var/app/io.itch.itch/config/itch/:ro",
"--filesystem=~/.var/app/org.libretro.RetroArch/config/retroarch/:ro",
"--filesystem=/var/lib/flatpak:ro"
"--filesystem=~/.var/app/io.itch.itch/config/itch/:ro"
],
"cleanup" : [
"/include",
@@ -109,7 +111,7 @@
{
"type" : "git",
"url" : "https://gitlab.gnome.org/jwestman/blueprint-compiler",
"tag" : "v0.10.0"
"tag" : "v0.6.0"
}
],
"cleanup" : [
@@ -120,13 +122,10 @@
"name" : "cartridges",
"builddir" : true,
"buildsystem" : "meson",
"config-opts": [
"-Dprofile=development"
],
"sources" : [
{
"type" : "dir",
"path" : ".."
"path" : "."
}
]
}

View File

@@ -1,42 +1,18 @@
project('cartridges',
version: '2.5',
version: '1.4.1',
meson_version: '>= 0.59.0',
default_options: [ 'warning_level=2', 'werror=false', ],
)
i18n = import('i18n')
gnome = import('gnome')
python = import('python')
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
profile = get_option('profile')
if profile == 'development'
app_id = 'hu.kramo.Cartridges.Devel'
prefix = '/hu/kramo/Cartridges/Devel'
elif profile == 'release'
app_id = 'hu.kramo.Cartridges'
prefix = '/hu/kramo/Cartridges'
endif
conf = configuration_data()
conf.set('PYTHON', python.find_installation('python3').full_path())
conf.set('PYTHON_VERSION', python.find_installation('python3').language_version())
conf.set('APP_ID', app_id)
conf.set('PREFIX', prefix)
conf.set('VERSION', meson.project_version())
conf.set('PROFILE', profile)
conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir')))
conf.set('pkgdatadir', pkgdatadir)
subdir('data')
subdir('src')
subdir('po')
if host_machine.system() == 'windows'
subdir('windows')
endif
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,

View File

@@ -1,9 +0,0 @@
option(
'profile',
type: 'combo',
choices: [
'release',
'development',
],
value: 'release'
)

View File

@@ -13,10 +13,3 @@ ru
ko
de
ro
pt_BR
fa
pl
sv
tr
el
cs

View File

@@ -1,8 +1,7 @@
data/hu.kramo.Cartridges.desktop.in
data/hu.kramo.Cartridges.gschema.xml.in
data/hu.kramo.Cartridges.gschema.xml
data/hu.kramo.Cartridges.metainfo.xml.in
data/gtk/details-window.blp
data/gtk/game.blp
data/gtk/help-overlay.blp
data/gtk/preferences.blp
@@ -10,23 +9,10 @@ data/gtk/window.blp
src/main.py
src/window.py
src/details_window.py
src/game.py
src/preferences.py
src/utils/create_details_window.py
src/utils/create_dialog.py
src/importer/importer.py
src/importer/sources/source.py
src/importer/sources/location.py
src/importer/sources/location.py
src/store/managers/sgdb_manager.py
src/importer/sources/bottles_source.py
src/importer/sources/desktop_source.py
src/importer/sources/flatpak_source.py
src/importer/sources/heroic_source.py
src/importer/sources/itch_source.py
src/importer/sources/legendary_source.py
src/importer/sources/lutris_source.py
src/importer/sources/retroarch_source.py
src/importer/sources/steam_source.py
src/utils/importer.py
src/utils/steamgriddb.py

766
po/ar.po

File diff suppressed because it is too large Load Diff

View File

@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Cartridges\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-26 13:51+0200\n"
"POT-Creation-Date: 2023-04-11 23:33+0200\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"
@@ -18,9 +18,8 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
#: data/hu.kramo.Cartridges.desktop.in:3
#: data/hu.kramo.Cartridges.metainfo.xml.in:6
#: data/hu.kramo.Cartridges.metainfo.xml.in:30 data/gtk/window.blp:47
#: data/gtk/window.blp:80
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:29
#: src/main.py:119
msgid "Cartridges"
msgstr ""
@@ -33,11 +32,6 @@ msgstr ""
msgid "Launch all your games"
msgstr ""
#: data/hu.kramo.Cartridges.desktop.in:11
msgid ""
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
msgstr ""
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
msgid ""
"Cartridges is a simple game launcher for all of your games. It has support "
@@ -46,417 +40,467 @@ msgid ""
"SteamGridDB."
msgstr ""
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:288
#: src/details_window.py:71
msgid "Game Details"
#: data/hu.kramo.Cartridges.metainfo.xml.in:22
msgid "Library"
msgstr ""
#: data/hu.kramo.Cartridges.metainfo.xml.in:38
#: data/hu.kramo.Cartridges.metainfo.xml.in:26
#: src/utils/create_details_window.py:87
msgid "Edit Game Details"
msgstr ""
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/help-overlay.blp:19
#: data/gtk/window.blp:515 src/details_window.py:271
#: src/importer/importer.py:319 src/importer/importer.py:370
#: data/hu.kramo.Cartridges.metainfo.xml.in:30 data/gtk/window.blp:51
msgid "Game Details"
msgstr ""
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:402
#: src/utils/importer.py:94 src/utils/importer.py:123 src/utils/importer.py:148
#: src/utils/steamgriddb.py:116
msgid "Preferences"
msgstr ""
#: data/gtk/details-window.blp:25
msgid "Cancel"
msgstr ""
#: data/gtk/details-window.blp:55
msgid "New Cover"
msgstr ""
#: data/gtk/details-window.blp:73
msgid "Delete Cover"
msgstr ""
#: data/gtk/details-window.blp:100 data/gtk/game.blp:80
#: data/gtk/game.blp:67 src/utils/create_details_window.py:129
msgid "Title"
msgstr ""
#: data/gtk/details-window.blp:103
msgid "Developer (optional)"
msgstr ""
#: data/gtk/details-window.blp:108
msgid "Executable"
msgstr ""
#: data/gtk/details-window.blp:114
msgid "Select File"
msgstr ""
#: data/gtk/details-window.blp:125
msgid "More Info"
msgstr ""
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:415
#: data/gtk/game.blp:89 data/gtk/game.blp:108 data/gtk/window.blp:170
msgid "Edit"
msgstr ""
#: data/gtk/game.blp:107 src/window.py:350
#: data/gtk/game.blp:94 src/window.py:286
msgid "Hide"
msgstr ""
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:40
#: data/gtk/window.blp:435
#: data/gtk/game.blp:99 data/gtk/game.blp:118 data/gtk/preferences.blp:56
#: data/gtk/window.blp:186
msgid "Remove"
msgstr ""
#: data/gtk/game.blp:126 src/window.py:352
#: data/gtk/game.blp:113 src/window.py:283
msgid "Unhide"
msgstr ""
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:8
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
msgid "General"
msgstr ""
#: data/gtk/help-overlay.blp:14 data/gtk/window.blp:184 data/gtk/window.blp:243
#: data/gtk/window.blp:446
msgid "Search"
msgstr ""
#: data/gtk/help-overlay.blp:24 data/gtk/window.blp:520
msgid "Keyboard Shortcuts"
msgstr ""
#: data/gtk/help-overlay.blp:29 src/game.py:105 src/preferences.py:125
#: src/importer/importer.py:394
msgid "Undo"
msgstr ""
#: data/gtk/help-overlay.blp:34
#: data/gtk/help-overlay.blp:14
msgid "Quit"
msgstr ""
#: data/gtk/help-overlay.blp:39 data/gtk/window.blp:88 data/gtk/window.blp:164
msgid "Toggle Sidebar"
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:205 data/gtk/window.blp:249
#: data/gtk/window.blp:312
msgid "Search"
msgstr ""
#: data/gtk/help-overlay.blp:44 data/gtk/window.blp:177 data/gtk/window.blp:236
msgid "Main Menu"
#: data/gtk/help-overlay.blp:24
msgid "Show preferences"
msgstr ""
#: data/gtk/help-overlay.blp:50
#: data/gtk/help-overlay.blp:29
msgid "Shortcuts"
msgstr ""
#: data/gtk/help-overlay.blp:34 src/main.py:186 src/main.py:242
#: src/preferences.py:133
msgid "Undo"
msgstr ""
#: data/gtk/help-overlay.blp:39
msgid "Open menu"
msgstr ""
#: data/gtk/help-overlay.blp:45
msgid "Games"
msgstr ""
#: data/gtk/help-overlay.blp:53 data/gtk/window.blp:170 data/gtk/window.blp:534
msgid "Add Game"
#: data/gtk/help-overlay.blp:48
msgid "Add new game"
msgstr ""
#: data/gtk/help-overlay.blp:58 data/gtk/preferences.blp:68
#: data/gtk/window.blp:27 data/gtk/window.blp:541
msgid "Import"
#: data/gtk/help-overlay.blp:53
msgid "Import games"
msgstr ""
#: data/gtk/help-overlay.blp:58
msgid "Show hidden games"
msgstr ""
#: data/gtk/help-overlay.blp:63
msgid "Show Hidden Games"
msgid "Remove game"
msgstr ""
#: data/gtk/help-overlay.blp:68
msgid "Remove Game"
msgstr ""
#: data/gtk/preferences.blp:12 data/gtk/preferences.blp:72
#: data/gtk/preferences.blp:278
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:235
msgid "Behavior"
msgstr ""
#: data/gtk/preferences.blp:15
#: data/gtk/preferences.blp:16
msgid "Exit After Launching Games"
msgstr ""
#: data/gtk/preferences.blp:19
#: data/gtk/preferences.blp:25
msgid "Cover Image Launches Game"
msgstr ""
#: data/gtk/preferences.blp:20
#: data/gtk/preferences.blp:26
msgid "Swaps the behavior of the cover image and the play button"
msgstr ""
#: data/gtk/preferences.blp:25 src/details_window.py:85
#: data/gtk/preferences.blp:36 src/utils/create_details_window.py:101
msgid "Images"
msgstr ""
#: data/gtk/preferences.blp:28
#: data/gtk/preferences.blp:39
msgid "High Quality Images"
msgstr ""
#: data/gtk/preferences.blp:29
#: data/gtk/preferences.blp:40
msgid "Save game covers losslessly at the cost of storage"
msgstr ""
#: data/gtk/preferences.blp:34
#: data/gtk/preferences.blp:50
msgid "Danger Zone"
msgstr ""
#: data/gtk/preferences.blp:37
#: data/gtk/preferences.blp:53
msgid "Remove All Games"
msgstr ""
#: data/gtk/preferences.blp:75
msgid "Remove Uninstalled Games"
#: data/gtk/preferences.blp:69 data/gtk/window.blp:427
msgid "Import"
msgstr ""
#: data/gtk/preferences.blp:80
#: data/gtk/preferences.blp:73
msgid "Sources"
msgstr ""
#: data/gtk/preferences.blp:83 src/importer/sources/steam_source.py:114
#: data/gtk/preferences.blp:76
msgid "Steam"
msgstr ""
#: data/gtk/preferences.blp:87 data/gtk/preferences.blp:104
#: data/gtk/preferences.blp:141 data/gtk/preferences.blp:174
#: data/gtk/preferences.blp:191 data/gtk/preferences.blp:208
#: data/gtk/preferences.blp:225 data/gtk/preferences.blp:242
msgid "Install Location"
#: data/gtk/preferences.blp:80
msgid "Steam Install Location"
msgstr ""
#: data/gtk/preferences.blp:100 src/importer/sources/lutris_source.py:92
#: data/gtk/preferences.blp:81 data/gtk/preferences.blp:119
#: data/gtk/preferences.blp:153 data/gtk/preferences.blp:195
#: data/gtk/preferences.blp:210
msgid "Directory to use when importing games"
msgstr ""
#: data/gtk/preferences.blp:89 src/utils/importer.py:143
msgid "Extra Steam Libraries"
msgstr ""
#: data/gtk/preferences.blp:90
msgid "Select other directories where you have Steam games installed"
msgstr ""
#: data/gtk/preferences.blp:96
msgid "Clear"
msgstr ""
#: data/gtk/preferences.blp:114
msgid "Lutris"
msgstr ""
#: data/gtk/preferences.blp:116
msgid "Cache Location"
#: data/gtk/preferences.blp:118
msgid "Lutris Install Location"
msgstr ""
#: data/gtk/preferences.blp:128
msgid "Lutris Cache Location"
msgstr ""
#: data/gtk/preferences.blp:129
msgid "Directory to use when importing game covers"
msgstr ""
#: data/gtk/preferences.blp:138
msgid "Import Steam Games"
msgstr ""
#: data/gtk/preferences.blp:132
msgid "Import Flatpak Games"
msgstr ""
#: data/gtk/preferences.blp:137 src/importer/sources/heroic_source.py:355
#: data/gtk/preferences.blp:148
msgid "Heroic"
msgstr ""
#: data/gtk/preferences.blp:153
#: data/gtk/preferences.blp:152
msgid "Heroic Install Location"
msgstr ""
#: data/gtk/preferences.blp:162
msgid "Import Epic Games"
msgstr ""
#: data/gtk/preferences.blp:157
#: data/gtk/preferences.blp:171
msgid "Import GOG Games"
msgstr ""
#: data/gtk/preferences.blp:161
msgid "Import Amazon Games"
msgstr ""
#: data/gtk/preferences.blp:165
#: data/gtk/preferences.blp:180
msgid "Import Sideloaded Games"
msgstr ""
#: data/gtk/preferences.blp:170 src/importer/sources/bottles_source.py:86
#: data/gtk/preferences.blp:190
msgid "Bottles"
msgstr ""
#: data/gtk/preferences.blp:187 src/importer/sources/itch_source.py:81
#: data/gtk/preferences.blp:194
msgid "Bottles Install Location"
msgstr ""
#: data/gtk/preferences.blp:205
msgid "itch"
msgstr ""
#: data/gtk/preferences.blp:204 src/importer/sources/legendary_source.py:97
msgid "Legendary"
#: data/gtk/preferences.blp:209
msgid "itch Install Location"
msgstr ""
#: data/gtk/preferences.blp:221 src/importer/sources/retroarch_source.py:142
msgid "RetroArch"
msgstr ""
#: data/gtk/preferences.blp:238 src/importer/sources/flatpak_source.py:118
msgid "Flatpak"
msgstr ""
#: data/gtk/preferences.blp:254
msgid "Import Game Launchers"
msgstr ""
#: data/gtk/preferences.blp:259 src/importer/sources/desktop_source.py:217
msgid "Desktop Entries"
msgstr ""
#: data/gtk/preferences.blp:266
#: data/gtk/preferences.blp:223
msgid "SteamGridDB"
msgstr ""
#: data/gtk/preferences.blp:270
#: data/gtk/preferences.blp:227
msgid "Authentication"
msgstr ""
#: data/gtk/preferences.blp:273
#: data/gtk/preferences.blp:230
msgid "API Key"
msgstr ""
#: data/gtk/preferences.blp:281
#: data/gtk/preferences.blp:238
msgid "Use SteamGridDB"
msgstr ""
#: data/gtk/preferences.blp:282
#: data/gtk/preferences.blp:239
msgid "Download images when adding or importing games"
msgstr ""
#: data/gtk/preferences.blp:286
#: data/gtk/preferences.blp:248
msgid "Prefer Over Official Images"
msgstr ""
#: data/gtk/preferences.blp:290
#: data/gtk/preferences.blp:257
msgid "Prefer Animated Images"
msgstr ""
#: data/gtk/preferences.blp:296
msgid "Update Covers"
msgstr ""
#: data/gtk/preferences.blp:297
msgid "Fetch covers for games already in your library"
msgstr ""
#: data/gtk/preferences.blp:301
msgid "Update"
msgstr ""
#: data/gtk/window.blp:6 data/gtk/window.blp:14
#: data/gtk/window.blp:6 src/utils/importer.py:91
msgid "No Games Found"
msgstr ""
#: data/gtk/window.blp:7 data/gtk/window.blp:15
#: data/gtk/window.blp:7
msgid "Try a different search."
msgstr ""
#: data/gtk/window.blp:21
#: data/gtk/window.blp:14
msgid "No Games"
msgstr ""
#: data/gtk/window.blp:22
#: data/gtk/window.blp:15
msgid "Use the + button to add games."
msgstr ""
#: data/gtk/window.blp:40
#: data/gtk/window.blp:22
msgid "No Hidden Games"
msgstr ""
#: data/gtk/window.blp:41
#: data/gtk/window.blp:23
msgid "Games you hide will appear here."
msgstr ""
#: data/gtk/window.blp:75 data/gtk/window.blp:106 src/main.py:166
msgid "All Games"
#: data/gtk/window.blp:44 data/gtk/window.blp:293
msgid "Back"
msgstr ""
#: data/gtk/window.blp:126 src/main.py:168
msgid "Added"
msgstr ""
#: data/gtk/window.blp:141
msgid "Imported"
msgstr ""
#: data/gtk/window.blp:229
msgid "Hidden Games"
msgstr ""
#: data/gtk/window.blp:339
#: data/gtk/window.blp:100
msgid "Game Title"
msgstr ""
#: data/gtk/window.blp:396
#: data/gtk/window.blp:151 src/game.py:158
msgid "Play"
msgstr ""
#: data/gtk/window.blp:473
#: data/gtk/window.blp:235 data/gtk/window.blp:421
msgid "Add Game"
msgstr ""
#: data/gtk/window.blp:242 data/gtk/window.blp:305
msgid "Main Menu"
msgstr ""
#: data/gtk/window.blp:300
msgid "Hidden Games"
msgstr ""
#: data/gtk/window.blp:360
msgid "Sort"
msgstr ""
#: data/gtk/window.blp:476
#: data/gtk/window.blp:363
msgid "A-Z"
msgstr ""
#: data/gtk/window.blp:482
#: data/gtk/window.blp:369
msgid "Z-A"
msgstr ""
#: data/gtk/window.blp:488
#: data/gtk/window.blp:375
msgid "Newest"
msgstr ""
#: data/gtk/window.blp:494
#: data/gtk/window.blp:381
msgid "Oldest"
msgstr ""
#: data/gtk/window.blp:500
#: data/gtk/window.blp:387
msgid "Last Played"
msgstr ""
#: data/gtk/window.blp:507
#: data/gtk/window.blp:394
msgid "Show Hidden"
msgstr ""
#: data/gtk/window.blp:525
#: data/gtk/window.blp:407
msgid "Keyboard Shortcuts"
msgstr ""
#: data/gtk/window.blp:412
msgid "About Cartridges"
msgstr ""
#. Translators: Replace this with your name for it to show up in the about window
#: src/main.py:208
#: src/main.py:137
msgid "translator_credits"
msgstr ""
#. The variable is the title of the game
#: src/main.py:164
msgid "{} launched"
msgstr ""
#. The variable is the title of the game
#: src/main.py:182
msgid "{} hidden"
msgstr ""
#. The variable is the title of the game
#: src/main.py:185
msgid "{} unhidden"
msgstr ""
#. The variable is the title of the game
#: src/main.py:241
msgid "{} removed"
msgstr ""
#: src/window.py:262
msgid "Today"
msgstr ""
#: src/window.py:264
msgid "Yesterday"
msgstr ""
#. The variable is the date when the game was added
#: src/window.py:373
#: src/window.py:310
msgid "Added: {}"
msgstr ""
#: src/window.py:376
#: src/window.py:315
msgid "Never"
msgstr ""
#. The variable is the date when the game was last played
#: src/window.py:380
#: src/window.py:319
msgid "Last played: {}"
msgstr ""
#: src/details_window.py:76
msgid "Apply"
#: src/game.py:156
msgid "Details"
msgstr ""
#: src/details_window.py:82
#: src/preferences.py:54
msgid "Installation Not Found"
msgstr ""
#. The variable is the name of the game launcher
#: src/preferences.py:56
msgid "Select the {} configuration directory."
msgstr ""
#. The variable is the name of the game launcher
#: src/preferences.py:59
msgid "Select the {} data directory."
msgstr ""
#: src/preferences.py:61 src/preferences.py:240
msgid "Set Location"
msgstr ""
#: src/preferences.py:132
msgid "All games removed"
msgstr ""
#: src/preferences.py:237
msgid "Cache Not Found"
msgstr ""
#: src/preferences.py:238
msgid "Select the Lutris cache directory."
msgstr ""
#: src/preferences.py:344
msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr ""
#: src/utils/create_details_window.py:81
msgid "Add New Game"
msgstr ""
#: src/details_window.py:83
msgid "Add"
#: src/utils/create_details_window.py:85
msgid "Confirm"
msgstr ""
#: src/details_window.py:93
msgid "Executables"
#: src/utils/create_details_window.py:96
msgid "Apply"
msgstr ""
#: src/utils/create_details_window.py:130
msgid "The title of the game"
msgstr ""
#: src/utils/create_details_window.py:135
msgid "Developer"
msgstr ""
#: src/utils/create_details_window.py:136
msgid "The developer or publisher (optional)"
msgstr ""
#. Translate this string as you would translate "file"
#: src/details_window.py:108
#: src/utils/create_details_window.py:147
msgid "file.txt"
msgstr ""
#. As in software
#: src/details_window.py:110
#: src/utils/create_details_window.py:149
msgid "program"
msgstr ""
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:115 src/details_window.py:117
#: src/utils/create_details_window.py:154
#: src/utils/create_details_window.py:156
msgid "C:\\path\\to\\{}"
msgstr ""
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:121 src/details_window.py:123
#: src/utils/create_details_window.py:160
#: src/utils/create_details_window.py:162
msgid "/path/to/{}"
msgstr ""
#: src/details_window.py:128
#: src/utils/create_details_window.py:166
msgid ""
"To launch the executable \"{}\", use the command:\n"
"\n"
@@ -469,141 +513,79 @@ msgid ""
"If the path contains spaces, make sure to wrap it in double quotes!"
msgstr ""
#: src/details_window.py:171 src/details_window.py:177
#: src/utils/create_details_window.py:189
msgid "Executable"
msgstr ""
#: src/utils/create_details_window.py:190
msgid "File to open or command to run when launching the game"
msgstr ""
#: src/utils/create_details_window.py:202
msgid "Cancel"
msgstr ""
#: src/utils/create_details_window.py:259
#: src/utils/create_details_window.py:269
#: src/utils/create_details_window.py:275
msgid "Couldn't Add Game"
msgstr ""
#: src/details_window.py:171 src/details_window.py:213
msgid "Game title cannot be empty."
msgstr ""
#: src/details_window.py:177 src/details_window.py:221
msgid "Executable cannot be empty."
msgstr ""
#: src/details_window.py:212 src/details_window.py:220
#: src/utils/create_details_window.py:261
#: src/utils/create_details_window.py:299
#: src/utils/create_details_window.py:307
msgid "Couldn't Apply Preferences"
msgstr ""
#. The variable is the title of the game
#: src/game.py:141
msgid "{} launched"
#: src/utils/create_details_window.py:269
#: src/utils/create_details_window.py:300
msgid "Game title cannot be empty."
msgstr ""
#. The variable is the title of the game
#: src/game.py:155
msgid "{} hidden"
#: src/utils/create_details_window.py:275
#: src/utils/create_details_window.py:308
msgid "Executable cannot be empty."
msgstr ""
#: src/game.py:155
msgid "{} unhidden"
msgstr ""
#. The variable is the title of the game
#. The variable is the number of games removed
#: src/game.py:169 src/importer/importer.py:391
msgid "{} removed"
msgstr ""
#: src/preferences.py:124
msgid "All games removed"
msgstr ""
#: src/preferences.py:172
msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr ""
#: src/preferences.py:184
msgid "Downloading covers…"
msgstr ""
#: src/preferences.py:203
msgid "Covers updated"
msgstr ""
#: src/preferences.py:335
msgid "Installation Not Found"
msgstr ""
#: src/preferences.py:336
msgid "Select a valid directory."
msgstr ""
#: src/preferences.py:372 src/importer/importer.py:317
msgid "Warning"
msgstr ""
#: src/preferences.py:406
msgid "Invalid Directory"
msgstr ""
#: src/preferences.py:412
msgid "Set Location"
msgstr ""
#: src/utils/create_dialog.py:33 src/importer/importer.py:318
#: src/utils/create_dialog.py:25
msgid "Dismiss"
msgstr ""
#: src/importer/importer.py:145
#: src/utils/importer.py:42
msgid "Importing Games…"
msgstr ""
#: src/importer/importer.py:338
msgid "The following errors occured during import:"
#: src/utils/importer.py:77
msgid "Importing Covers…"
msgstr ""
#: src/importer/importer.py:367
msgid "No new games found"
#: src/utils/importer.py:92
msgid "No new games were found on your system."
msgstr ""
#: src/importer/importer.py:379
msgid "1 game imported"
#: src/utils/importer.py:100
msgid "Game Imported"
msgstr ""
#: src/utils/importer.py:101
msgid "Successfully imported 1 game."
msgstr ""
#: src/utils/importer.py:107
msgid "Games Imported"
msgstr ""
#. The variable is the number of games
#: src/importer/importer.py:383
msgid "{} games imported"
#: src/utils/importer.py:109
msgid "Successfully imported {} games."
msgstr ""
#. A single game removed
#: src/importer/importer.py:387
msgid "1 removed"
#: src/utils/importer.py:120 src/utils/steamgriddb.py:113
msgid "Couldn't Connect to SteamGridDB"
msgstr ""
#. The variable is the name of the source
#: src/importer/sources/location.py:33
msgid "Select the {} cache directory."
msgstr ""
#. The variable is the name of the source
#: src/importer/sources/location.py:35
msgid "Select the {} configuration directory."
msgstr ""
#. The variable is the name of the source
#: src/importer/sources/location.py:37
msgid "Select the {} data directory."
msgstr ""
#: src/store/managers/sgdb_manager.py:46
msgid "Couldn't Authenticate SteamGridDB"
msgstr ""
#: src/store/managers/sgdb_manager.py:47
msgid "Verify your API key in preferences"
msgstr ""
#: src/importer/sources/retroarch_source.py:129
msgid "No RetroArch Core Selected"
msgstr ""
#. The variable is a newline separated list of playlists
#: src/importer/sources/retroarch_source.py:131
msgid "The following playlists have no default core:"
msgstr ""
#: src/importer/sources/retroarch_source.py:133
msgid "Games with no core selected were not imported"
#: src/utils/importer.py:145
msgid ""
"Looks like you have multiple Steam libraries. Would you like to add them in "
"preferences?"
msgstr ""

670
po/cs.po
View File

@@ -1,670 +0,0 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR kramo
# This file is distributed under the same license as the Cartridges package.
# foo expert <deferred_water346@simplelogin.com>, 2023.
msgid ""
msgstr ""
"Project-Id-Version: Cartridges\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-26 13:51+0200\n"
"PO-Revision-Date: 2023-09-24 16:04+0000\n"
"Last-Translator: foo expert <deferred_water346@simplelogin.com>\n"
"Language-Team: Czech <https://hosted.weblate.org/projects/cartridges/"
"cartridges/cs/>\n"
"Language: cs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
"X-Generator: Weblate 5.1-dev\n"
#: data/hu.kramo.Cartridges.desktop.in:3
#: data/hu.kramo.Cartridges.metainfo.xml.in:6
#: data/hu.kramo.Cartridges.metainfo.xml.in:30 data/gtk/window.blp:47
#: data/gtk/window.blp:80
msgid "Cartridges"
msgstr "Kazety"
#: data/hu.kramo.Cartridges.desktop.in:4
msgid "Game Launcher"
msgstr "Spouštěč her"
#: data/hu.kramo.Cartridges.desktop.in:5
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
msgid "Launch all your games"
msgstr "Spusťte všechny vaše hry"
#: data/hu.kramo.Cartridges.desktop.in:11
msgid ""
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
msgstr ""
"hraní;spouštěč;steam;lutris;heroic;láhve;itch;flatpak;legendary;retroarch;"
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
msgid ""
"Cartridges is a simple game launcher for all of your games. It has support "
"for importing games from Steam, Lutris, Heroic and more with no login "
"necessary. You can sort and hide games or download cover art from "
"SteamGridDB."
msgstr ""
"Kazety jsou jednoduchý spouštěč pro všechny vaše hry. Podporuje importovaní "
"her ze služeb Steam, Lutris, Heroic a dalších bez nutnosti přihlášení. Hry "
"můžete třídit a skrývat nebo stahovat obálky ze služby SteamGridDB."
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:288
#: src/details_window.py:71
msgid "Game Details"
msgstr "Podrobnosti o hře"
#: data/hu.kramo.Cartridges.metainfo.xml.in:38
msgid "Edit Game Details"
msgstr "Upravit podrobnosti o hře"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/help-overlay.blp:19
#: data/gtk/window.blp:515 src/details_window.py:271
#: src/importer/importer.py:319 src/importer/importer.py:370
msgid "Preferences"
msgstr "Předvolby"
#: data/gtk/details-window.blp:25
msgid "Cancel"
msgstr "Zrušit"
#: data/gtk/details-window.blp:55
msgid "New Cover"
msgstr "Nový obal"
#: data/gtk/details-window.blp:73
msgid "Delete Cover"
msgstr "Odstranit obal"
#: data/gtk/details-window.blp:100 data/gtk/game.blp:80
msgid "Title"
msgstr "Název"
#: data/gtk/details-window.blp:103
msgid "Developer (optional)"
msgstr "Vývojář (nepovinné)"
#: data/gtk/details-window.blp:108
msgid "Executable"
msgstr "Spustitelný soubor"
#: data/gtk/details-window.blp:114
msgid "Select File"
msgstr "Vybrat soubor"
#: data/gtk/details-window.blp:125
msgid "More Info"
msgstr "Více informací"
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:415
msgid "Edit"
msgstr "Upravit"
#: data/gtk/game.blp:107 src/window.py:350
msgid "Hide"
msgstr "Skrýt"
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:40
#: data/gtk/window.blp:435
msgid "Remove"
msgstr "Odstranit"
#: data/gtk/game.blp:126 src/window.py:352
msgid "Unhide"
msgstr "Odkrýt"
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:8
msgid "General"
msgstr "Obecné"
#: data/gtk/help-overlay.blp:14 data/gtk/window.blp:184 data/gtk/window.blp:243
#: data/gtk/window.blp:446
msgid "Search"
msgstr "Vyhledávání"
#: data/gtk/help-overlay.blp:24 data/gtk/window.blp:520
msgid "Keyboard Shortcuts"
msgstr "Klávesové zkratky"
#: data/gtk/help-overlay.blp:29 src/game.py:105 src/preferences.py:125
#: src/importer/importer.py:394
msgid "Undo"
msgstr "Zpět"
#: data/gtk/help-overlay.blp:34
msgid "Quit"
msgstr "Ukončit"
#: data/gtk/help-overlay.blp:39 data/gtk/window.blp:88 data/gtk/window.blp:164
msgid "Toggle Sidebar"
msgstr "Přepnout postranní panel"
#: data/gtk/help-overlay.blp:44 data/gtk/window.blp:177 data/gtk/window.blp:236
msgid "Main Menu"
msgstr "Hlavní nabídka"
#: data/gtk/help-overlay.blp:50
msgid "Games"
msgstr "Hry"
#: data/gtk/help-overlay.blp:53 data/gtk/window.blp:170 data/gtk/window.blp:534
msgid "Add Game"
msgstr "Přidat hru"
#: data/gtk/help-overlay.blp:58 data/gtk/preferences.blp:68
#: data/gtk/window.blp:27 data/gtk/window.blp:541
msgid "Import"
msgstr "Import"
#: data/gtk/help-overlay.blp:63
msgid "Show Hidden Games"
msgstr "Zobrazit skryté hry"
#: data/gtk/help-overlay.blp:68
msgid "Remove Game"
msgstr "Odstranit hru"
#: data/gtk/preferences.blp:12 data/gtk/preferences.blp:72
#: data/gtk/preferences.blp:278
msgid "Behavior"
msgstr "Chování"
#: data/gtk/preferences.blp:15
msgid "Exit After Launching Games"
msgstr "Ukončit po spuštění her"
#: data/gtk/preferences.blp:19
msgid "Cover Image Launches Game"
msgstr "Obrázek na obálce spouští hru"
#: data/gtk/preferences.blp:20
msgid "Swaps the behavior of the cover image and the play button"
msgstr "Vymění chování obrázku na obálce a tlačítka pro přehrávání"
#: data/gtk/preferences.blp:25 src/details_window.py:85
msgid "Images"
msgstr "Obrázky"
#: data/gtk/preferences.blp:28
msgid "High Quality Images"
msgstr "Vysoce kvalitní obrázky"
#: data/gtk/preferences.blp:29
msgid "Save game covers losslessly at the cost of storage"
msgstr "Ukládat obaly her bezztrátově na úkor většího místa na disku"
#: data/gtk/preferences.blp:34
msgid "Danger Zone"
msgstr "Nebezpečná zóna"
#: data/gtk/preferences.blp:37
msgid "Remove All Games"
msgstr "Odstranit všechny hry"
#: data/gtk/preferences.blp:75
msgid "Remove Uninstalled Games"
msgstr "Odstranit odinstalované hry"
#: data/gtk/preferences.blp:80
msgid "Sources"
msgstr "Zdroje"
#: data/gtk/preferences.blp:83 src/importer/sources/steam_source.py:114
msgid "Steam"
msgstr "Steam"
#: data/gtk/preferences.blp:87 data/gtk/preferences.blp:104
#: data/gtk/preferences.blp:141 data/gtk/preferences.blp:174
#: data/gtk/preferences.blp:191 data/gtk/preferences.blp:208
#: data/gtk/preferences.blp:225 data/gtk/preferences.blp:242
msgid "Install Location"
msgstr "Umístění instalace"
#: data/gtk/preferences.blp:100 src/importer/sources/lutris_source.py:92
msgid "Lutris"
msgstr "Lutris"
#: data/gtk/preferences.blp:116
msgid "Cache Location"
msgstr "Umístění dočasných souborů"
#: data/gtk/preferences.blp:128
msgid "Import Steam Games"
msgstr "Importovat Steam hry"
#: data/gtk/preferences.blp:132
msgid "Import Flatpak Games"
msgstr "Importovat Flatpak hry"
#: data/gtk/preferences.blp:137 src/importer/sources/heroic_source.py:355
msgid "Heroic"
msgstr "Heroic"
#: data/gtk/preferences.blp:153
msgid "Import Epic Games"
msgstr "Importovat Epic Games hry"
#: data/gtk/preferences.blp:157
msgid "Import GOG Games"
msgstr "Importovat GOG hry"
#: data/gtk/preferences.blp:161
msgid "Import Amazon Games"
msgstr "Importovat Amazon hry"
#: data/gtk/preferences.blp:165
msgid "Import Sideloaded Games"
msgstr "Importovat ručně načtené hry"
#: data/gtk/preferences.blp:170 src/importer/sources/bottles_source.py:86
msgid "Bottles"
msgstr "Láhve"
#: data/gtk/preferences.blp:187 src/importer/sources/itch_source.py:81
msgid "itch"
msgstr "itch"
#: data/gtk/preferences.blp:204 src/importer/sources/legendary_source.py:97
msgid "Legendary"
msgstr "Legendary"
#: data/gtk/preferences.blp:221 src/importer/sources/retroarch_source.py:142
msgid "RetroArch"
msgstr "RetroArch"
#: data/gtk/preferences.blp:238 src/importer/sources/flatpak_source.py:118
msgid "Flatpak"
msgstr "Flatpak"
#: data/gtk/preferences.blp:254
msgid "Import Game Launchers"
msgstr "Importovat spouštěče her"
#: data/gtk/preferences.blp:259 src/importer/sources/desktop_source.py:217
msgid "Desktop Entries"
msgstr "Položky na ploše"
#: data/gtk/preferences.blp:266
msgid "SteamGridDB"
msgstr "SteamGridDB"
#: data/gtk/preferences.blp:270
msgid "Authentication"
msgstr "Ověření"
#: data/gtk/preferences.blp:273
msgid "API Key"
msgstr "Klíč API"
#: data/gtk/preferences.blp:281
msgid "Use SteamGridDB"
msgstr "Používat SteamGridDB"
#: data/gtk/preferences.blp:282
msgid "Download images when adding or importing games"
msgstr "Stahovat obrázky při přidávání nebo importování her"
#: data/gtk/preferences.blp:286
msgid "Prefer Over Official Images"
msgstr "Upřednostnit před oficiálními obrázky"
#: data/gtk/preferences.blp:290
msgid "Prefer Animated Images"
msgstr "Upřednostnit animované obrázky"
#: data/gtk/preferences.blp:296
#, fuzzy
#| msgid "Delete Cover"
msgid "Update Covers"
msgstr "Odstranit obal"
#: data/gtk/preferences.blp:297
msgid "Fetch covers for games already in your library"
msgstr ""
#: data/gtk/preferences.blp:301
msgid "Update"
msgstr ""
#: data/gtk/window.blp:6 data/gtk/window.blp:14
msgid "No Games Found"
msgstr "Nebyly nalezeny žádné hry"
#: data/gtk/window.blp:7 data/gtk/window.blp:15
msgid "Try a different search."
msgstr "Zkuste hledat něco jiného."
#: data/gtk/window.blp:21
msgid "No Games"
msgstr "Žádné hry"
#: data/gtk/window.blp:22
msgid "Use the + button to add games."
msgstr "Tlačítkem + můžete přidávat hry."
#: data/gtk/window.blp:40
msgid "No Hidden Games"
msgstr "Žádné skryté hry"
#: data/gtk/window.blp:41
msgid "Games you hide will appear here."
msgstr "Hry, které skryjete, se zobrazí zde."
#: data/gtk/window.blp:75 data/gtk/window.blp:106 src/main.py:166
msgid "All Games"
msgstr "Všechny hry"
#: data/gtk/window.blp:126 src/main.py:168
msgid "Added"
msgstr "Přidané"
#: data/gtk/window.blp:141
msgid "Imported"
msgstr "Importované"
#: data/gtk/window.blp:229
msgid "Hidden Games"
msgstr "Skryté hry"
#: data/gtk/window.blp:339
msgid "Game Title"
msgstr "Název hry"
#: data/gtk/window.blp:396
msgid "Play"
msgstr "Hrát"
#: data/gtk/window.blp:473
msgid "Sort"
msgstr "Třídit"
#: data/gtk/window.blp:476
msgid "A-Z"
msgstr "A-Ž"
#: data/gtk/window.blp:482
msgid "Z-A"
msgstr "Ž-A"
#: data/gtk/window.blp:488
msgid "Newest"
msgstr "Nejnovější"
#: data/gtk/window.blp:494
msgid "Oldest"
msgstr "Nejstarší"
#: data/gtk/window.blp:500
msgid "Last Played"
msgstr "Naposledy hráno"
#: data/gtk/window.blp:507
msgid "Show Hidden"
msgstr "Zobrazit Skryté"
#: data/gtk/window.blp:525
msgid "About Cartridges"
msgstr "O Kazetách"
#. Translators: Replace this with your name for it to show up in the about window
#: src/main.py:208
msgid "translator_credits"
msgstr "ooo.i.love.foo"
#. The variable is the date when the game was added
#: src/window.py:373
msgid "Added: {}"
msgstr "Přidáno: {}"
#: src/window.py:376
msgid "Never"
msgstr "Nikdy"
#. The variable is the date when the game was last played
#: src/window.py:380
msgid "Last played: {}"
msgstr "Naposledy hráno: {}"
#: src/details_window.py:76
msgid "Apply"
msgstr "Použít"
#: src/details_window.py:82
msgid "Add New Game"
msgstr "Přidat novou hru"
#: src/details_window.py:83
msgid "Add"
msgstr "Přidat"
#: src/details_window.py:93
msgid "Executables"
msgstr "Spustitelné soubory"
#. Translate this string as you would translate "file"
#: src/details_window.py:108
msgid "file.txt"
msgstr "soubor.txt"
#. As in software
#: src/details_window.py:110
msgid "program"
msgstr "program"
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:115 src/details_window.py:117
msgid "C:\\path\\to\\{}"
msgstr "C:\\cesta\\k\\{}"
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:121 src/details_window.py:123
msgid "/path/to/{}"
msgstr "/cesta/k/{}"
#: src/details_window.py:128
msgid ""
"To launch the executable \"{}\", use the command:\n"
"\n"
"<tt>\"{}\"</tt>\n"
"\n"
"To open the file \"{}\" with the default application, use:\n"
"\n"
"<tt>{} \"{}\"</tt>\n"
"\n"
"If the path contains spaces, make sure to wrap it in double quotes!"
msgstr ""
"Chcete-li spustit spustitelný soubor \"{}\", použijte příkaz:\n"
"\n"
"<tt>\"{}\"</tt>\n"
"\n"
"Chcete-li otevřít soubor \"{}\" pomocí výchozí aplikace, použijte příkaz:\n"
"\n"
"<tt>{} \"{}\"</tt>\n"
"\n"
"Pokud cesta obsahuje mezery, nezapomeňte ji zabalit do dvojitých uvozovek!"
#: src/details_window.py:171 src/details_window.py:177
msgid "Couldn't Add Game"
msgstr "Nelze přidat hru"
#: src/details_window.py:171 src/details_window.py:213
msgid "Game title cannot be empty."
msgstr "Název hry nemůže být prázdný."
#: src/details_window.py:177 src/details_window.py:221
msgid "Executable cannot be empty."
msgstr "Spustitelný soubor nemůže být prázdný."
#: src/details_window.py:212 src/details_window.py:220
msgid "Couldn't Apply Preferences"
msgstr "Nelze použít předvolby"
#. The variable is the title of the game
#: src/game.py:141
msgid "{} launched"
msgstr "{} spuštěno"
#. The variable is the title of the game
#: src/game.py:155
msgid "{} hidden"
msgstr "{} skryto"
#: src/game.py:155
msgid "{} unhidden"
msgstr "{} odkryto"
#. The variable is the title of the game
#. The variable is the number of games removed
#: src/game.py:169 src/importer/importer.py:391
msgid "{} removed"
msgstr "{} odstraněno"
#: src/preferences.py:124
msgid "All games removed"
msgstr "Všechny hry odstraněny"
#: src/preferences.py:172
msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr ""
"K používání služby SteamGridDB je vyžadován klíč API. Můžete si ho "
"vygenerovat {}zde{}."
#: src/preferences.py:184
msgid "Downloading covers…"
msgstr ""
#: src/preferences.py:203
msgid "Covers updated"
msgstr ""
#: src/preferences.py:335
msgid "Installation Not Found"
msgstr "Instalace nebyla nalezena"
#: src/preferences.py:336
msgid "Select a valid directory."
msgstr "Vyberte platný adresář."
#: src/preferences.py:372 src/importer/importer.py:317
msgid "Warning"
msgstr "Pozor"
#: src/preferences.py:406
msgid "Invalid Directory"
msgstr "Neplatný adresář"
#: src/preferences.py:412
msgid "Set Location"
msgstr "Nastavit umístění"
#: src/utils/create_dialog.py:33 src/importer/importer.py:318
msgid "Dismiss"
msgstr "Zahodit"
#: src/importer/importer.py:145
msgid "Importing Games…"
msgstr "Přidávání her…"
#: src/importer/importer.py:338
msgid "The following errors occured during import:"
msgstr "Tyto chyby se vyskytly při importu:"
#: src/importer/importer.py:367
msgid "No new games found"
msgstr "Nebyly nalezeny žádné nové hry"
#: src/importer/importer.py:379
msgid "1 game imported"
msgstr "Přidána 1 hra"
#. The variable is the number of games
#: src/importer/importer.py:383
msgid "{} games imported"
msgstr "Přidány {} hry"
#. A single game removed
#: src/importer/importer.py:387
msgid "1 removed"
msgstr "1 odstraněna"
#. The variable is the name of the source
#: src/importer/sources/location.py:33
msgid "Select the {} cache directory."
msgstr "Vyberte adresář {} mezipaměti."
#. The variable is the name of the source
#: src/importer/sources/location.py:35
msgid "Select the {} configuration directory."
msgstr "Vyberte konfigurační adresář {}."
#. The variable is the name of the source
#: src/importer/sources/location.py:37
msgid "Select the {} data directory."
msgstr "Vyberte datový adresář {}."
#: src/store/managers/sgdb_manager.py:46
msgid "Couldn't Authenticate SteamGridDB"
msgstr "Nelze ověřit SteamGridDB"
#: src/store/managers/sgdb_manager.py:47
msgid "Verify your API key in preferences"
msgstr "Ověřte váš klíč API v předvolbách"
#: src/importer/sources/retroarch_source.py:129
msgid "No RetroArch Core Selected"
msgstr "Žádné RetroArch jádro nevybráno"
#. The variable is a newline separated list of playlists
#: src/importer/sources/retroarch_source.py:131
msgid "The following playlists have no default core:"
msgstr "Tyto seznamy her nemají výchozí jádra:"
#: src/importer/sources/retroarch_source.py:133
msgid "Games with no core selected were not imported"
msgstr "Hry bez vybraného jádra nebyly přidány"
#~ msgid "Library"
#~ msgstr "Knihovna"
#~ msgid "Show preferences"
#~ msgstr "Zobrazit předvolby"
#~ msgid "Shortcuts"
#~ msgstr "Zkratky"
#~ msgid "Open menu"
#~ msgstr "Otevřít nabídku"
#~ msgid "Add new game"
#~ msgstr "Přidat novou hru"
#~ msgid "Import games"
#~ msgstr "Importovat hry"
#~ msgid "Back"
#~ msgstr "Zpět"
#, fuzzy
#~| msgid "Search"
#~ msgid "Search games"
#~ msgstr "Vyhledávání"
#, fuzzy
#~| msgid "Show hidden games"
#~ msgid "Search hidden games"
#~ msgstr "Zobrazit skryté hry"
#~ msgid "The title of the game"
#~ msgstr "Název hry"
#~ msgid "Developer"
#~ msgstr "Vývojář"
#~ msgid "File to open or command to run when launching the game"
#~ msgstr "Soubor nebo příkaz pro spuštění hry"
#~ msgid "Confirm"
#~ msgstr "Potvrdit"

799
po/de.po

File diff suppressed because it is too large Load Diff

717
po/el.po
View File

@@ -1,717 +0,0 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR kramo
# This file is distributed under the same license as the Cartridges package.
# yiannis ioannides <sub@wai.ai>, 2023.
msgid ""
msgstr ""
"Project-Id-Version: Cartridges\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-26 13:51+0200\n"
"PO-Revision-Date: 2023-09-01 19:55+0000\n"
"Last-Translator: yiannis ioannides <sub@wai.ai>\n"
"Language-Team: Greek <https://hosted.weblate.org/projects/cartridges/"
"cartridges/el/>\n"
"Language: el\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.0.1-dev\n"
#: data/hu.kramo.Cartridges.desktop.in:3
#: data/hu.kramo.Cartridges.metainfo.xml.in:6
#: data/hu.kramo.Cartridges.metainfo.xml.in:30 data/gtk/window.blp:47
#: data/gtk/window.blp:80
msgid "Cartridges"
msgstr "Κασέτες"
#: data/hu.kramo.Cartridges.desktop.in:4
msgid "Game Launcher"
msgstr "Πρόγραμμα Εκκίνησης Παιχνιδιών"
#: data/hu.kramo.Cartridges.desktop.in:5
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
msgid "Launch all your games"
msgstr "Εκκινήστε όλα σας τα παιχνίδια"
#: data/hu.kramo.Cartridges.desktop.in:11
msgid ""
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
msgstr ""
"gaming;εκκινητής;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
"retroarch;"
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
msgid ""
"Cartridges is a simple game launcher for all of your games. It has support "
"for importing games from Steam, Lutris, Heroic and more with no login "
"necessary. You can sort and hide games or download cover art from "
"SteamGridDB."
msgstr ""
"Οι Κασέτες είναι ένας απλός εκκινητής παιχνιδιών για όλα σας τα παιχνίδια. "
"Υποστηρίζει την εισαγωγή παιχνιδιών από το Steam, Heroic και άλλες "
"πλατφόρμες χωρίς σύνδεση να είναι απαραίτητη. Μπορείτε να ταξινομήσετε και "
"να κρύψετε τα παιχνίδια σας, καθώς και να κατεβάσετε τα εξώφυλλα τους από το "
"SteamGridDB."
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:288
#: src/details_window.py:71
msgid "Game Details"
msgstr "Λεπτομέρειες Παιχνιδιού"
#: data/hu.kramo.Cartridges.metainfo.xml.in:38
msgid "Edit Game Details"
msgstr "Επεξεργασία Λεπτομερειών Παιχνιδιού"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/help-overlay.blp:19
#: data/gtk/window.blp:515 src/details_window.py:271
#: src/importer/importer.py:319 src/importer/importer.py:370
msgid "Preferences"
msgstr "Προτιμήσεις"
#: data/gtk/details-window.blp:25
msgid "Cancel"
msgstr "Ακύρωση"
#: data/gtk/details-window.blp:55
msgid "New Cover"
msgstr "Νέο Εξώφυλλο"
#: data/gtk/details-window.blp:73
msgid "Delete Cover"
msgstr "Διαγραφή Εξώφυλλου"
#: data/gtk/details-window.blp:100 data/gtk/game.blp:80
msgid "Title"
msgstr "Τίτλος"
#: data/gtk/details-window.blp:103
msgid "Developer (optional)"
msgstr "Προγραμματιστής (προαιρετικό)"
#: data/gtk/details-window.blp:108
msgid "Executable"
msgstr "Εκτελέσιμο αρχείο"
#: data/gtk/details-window.blp:114
msgid "Select File"
msgstr "Επιλογή αρχείου"
#: data/gtk/details-window.blp:125
msgid "More Info"
msgstr "Περισσότερες Πληροφορίες"
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:415
msgid "Edit"
msgstr "Επεξεργασία"
#: data/gtk/game.blp:107 src/window.py:350
msgid "Hide"
msgstr "Απόκρυψη"
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:40
#: data/gtk/window.blp:435
msgid "Remove"
msgstr "Αφαίρεση"
#: data/gtk/game.blp:126 src/window.py:352
msgid "Unhide"
msgstr "Φανέρωση"
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:8
msgid "General"
msgstr "Γενικά"
#: data/gtk/help-overlay.blp:14 data/gtk/window.blp:184 data/gtk/window.blp:243
#: data/gtk/window.blp:446
msgid "Search"
msgstr "Αναζήτηση"
#: data/gtk/help-overlay.blp:24 data/gtk/window.blp:520
msgid "Keyboard Shortcuts"
msgstr "Συντομεύσεις Πληκτρολογίου"
#: data/gtk/help-overlay.blp:29 src/game.py:105 src/preferences.py:125
#: src/importer/importer.py:394
msgid "Undo"
msgstr "Αναίρεση"
#: data/gtk/help-overlay.blp:34
msgid "Quit"
msgstr "Κλείσιμο"
#: data/gtk/help-overlay.blp:39 data/gtk/window.blp:88 data/gtk/window.blp:164
msgid "Toggle Sidebar"
msgstr ""
#: data/gtk/help-overlay.blp:44 data/gtk/window.blp:177 data/gtk/window.blp:236
msgid "Main Menu"
msgstr "Κύριο μενού"
#: data/gtk/help-overlay.blp:50
msgid "Games"
msgstr "Παιχνίδια"
#: data/gtk/help-overlay.blp:53 data/gtk/window.blp:170 data/gtk/window.blp:534
msgid "Add Game"
msgstr "Προσθήκη παιχνιδιού"
#: data/gtk/help-overlay.blp:58 data/gtk/preferences.blp:68
#: data/gtk/window.blp:27 data/gtk/window.blp:541
msgid "Import"
msgstr "Εισαγωγή"
#: data/gtk/help-overlay.blp:63
#, fuzzy
#| msgid "Show hidden games"
msgid "Show Hidden Games"
msgstr "Εμφάνιση κρυμμένων παιχνιδιών"
#: data/gtk/help-overlay.blp:68
#, fuzzy
#| msgid "Remove game"
msgid "Remove Game"
msgstr "Αφαίρεση παιχνιδιού"
#: data/gtk/preferences.blp:12 data/gtk/preferences.blp:72
#: data/gtk/preferences.blp:278
msgid "Behavior"
msgstr "Συμπεριφορά"
#: data/gtk/preferences.blp:15
msgid "Exit After Launching Games"
msgstr "Έξοδος μετά την εκκίνηση παιχνιδιών"
#: data/gtk/preferences.blp:19
msgid "Cover Image Launches Game"
msgstr "Εξώφυλλο εκκινεί το παιχνίδι"
#: data/gtk/preferences.blp:20
msgid "Swaps the behavior of the cover image and the play button"
msgstr "Αντικατάσταση συμπεριφοράς εξωφύλλου και του κουμπιού αναπαραγωγής"
#: data/gtk/preferences.blp:25 src/details_window.py:85
msgid "Images"
msgstr "Εικόνες"
#: data/gtk/preferences.blp:28
msgid "High Quality Images"
msgstr "Εικόνες Υψηλής Ποιότητας"
#: data/gtk/preferences.blp:29
msgid "Save game covers losslessly at the cost of storage"
msgstr ""
"Αποθήκευση εξωφύλλου παιχνιδιού σε υψηλή ευκρίνεια, με κόστος τη χωρητικότητα"
#: data/gtk/preferences.blp:34
msgid "Danger Zone"
msgstr "Επικίνδυνη Ζώνη"
#: data/gtk/preferences.blp:37
msgid "Remove All Games"
msgstr "Αφαίρεση Όλων Των Παιχνιδιών"
#: data/gtk/preferences.blp:75
msgid "Remove Uninstalled Games"
msgstr "Αφαίρεση απεγκατεστημένων παιχνιδιών"
#: data/gtk/preferences.blp:80
msgid "Sources"
msgstr "Πηγές"
#: data/gtk/preferences.blp:83 src/importer/sources/steam_source.py:114
msgid "Steam"
msgstr "Steam"
#: data/gtk/preferences.blp:87 data/gtk/preferences.blp:104
#: data/gtk/preferences.blp:141 data/gtk/preferences.blp:174
#: data/gtk/preferences.blp:191 data/gtk/preferences.blp:208
#: data/gtk/preferences.blp:225 data/gtk/preferences.blp:242
msgid "Install Location"
msgstr "Τοποθεσία εγκατάστασης"
#: data/gtk/preferences.blp:100 src/importer/sources/lutris_source.py:92
msgid "Lutris"
msgstr "Lutris"
#: data/gtk/preferences.blp:116
msgid "Cache Location"
msgstr "Τοποθεσία cache"
#: data/gtk/preferences.blp:128
msgid "Import Steam Games"
msgstr "Εισαγωγή παιχνιδιών Steam"
#: data/gtk/preferences.blp:132
msgid "Import Flatpak Games"
msgstr "Εισαγωγή παιχνιδιών Flatpak"
#: data/gtk/preferences.blp:137 src/importer/sources/heroic_source.py:355
msgid "Heroic"
msgstr "Heroic"
#: data/gtk/preferences.blp:153
msgid "Import Epic Games"
msgstr "Εισαγωγή παιχνιδιών Epic"
#: data/gtk/preferences.blp:157
msgid "Import GOG Games"
msgstr "Εισαγωγή παιχνιδιών GOG"
#: data/gtk/preferences.blp:161
msgid "Import Amazon Games"
msgstr "Εισαγωγή παιχνιδιών Amazon"
#: data/gtk/preferences.blp:165
msgid "Import Sideloaded Games"
msgstr "Εισαγωγή παιχνιδιών μέσω sideloading"
#: data/gtk/preferences.blp:170 src/importer/sources/bottles_source.py:86
msgid "Bottles"
msgstr "Bottles"
#: data/gtk/preferences.blp:187 src/importer/sources/itch_source.py:81
msgid "itch"
msgstr "itch"
#: data/gtk/preferences.blp:204 src/importer/sources/legendary_source.py:97
msgid "Legendary"
msgstr "Legendary"
#: data/gtk/preferences.blp:221 src/importer/sources/retroarch_source.py:142
msgid "RetroArch"
msgstr "RetroArch"
#: data/gtk/preferences.blp:238 src/importer/sources/flatpak_source.py:118
msgid "Flatpak"
msgstr "Flatpak"
#: data/gtk/preferences.blp:254
msgid "Import Game Launchers"
msgstr "Εισαγωγή εκκινητών παιχνιδιών"
#: data/gtk/preferences.blp:259 src/importer/sources/desktop_source.py:217
msgid "Desktop Entries"
msgstr "Εισαγωγές desktop"
#: data/gtk/preferences.blp:266
msgid "SteamGridDB"
msgstr "SteamGridDB"
#: data/gtk/preferences.blp:270
msgid "Authentication"
msgstr "Επιβεβαίωση"
#: data/gtk/preferences.blp:273
msgid "API Key"
msgstr "Κλειδί API"
#: data/gtk/preferences.blp:281
msgid "Use SteamGridDB"
msgstr "Χρήση SteamGridDB"
#: data/gtk/preferences.blp:282
msgid "Download images when adding or importing games"
msgstr "Λήψη εικόνων κατά τη διάρκεια πρόσθεσης ή εισαγωγής παιχνιδιών"
#: data/gtk/preferences.blp:286
msgid "Prefer Over Official Images"
msgstr "Προτίμηση Επίσημων Εικόνων"
#: data/gtk/preferences.blp:290
msgid "Prefer Animated Images"
msgstr "Προτίμηση Κινούμενων Εικόνων"
#: data/gtk/preferences.blp:296
#, fuzzy
#| msgid "Delete Cover"
msgid "Update Covers"
msgstr "Διαγραφή Εξώφυλλου"
#: data/gtk/preferences.blp:297
msgid "Fetch covers for games already in your library"
msgstr ""
#: data/gtk/preferences.blp:301
msgid "Update"
msgstr ""
#: data/gtk/window.blp:6 data/gtk/window.blp:14
msgid "No Games Found"
msgstr "Δεν Βρέθηκαν Παιχνίδια"
#: data/gtk/window.blp:7 data/gtk/window.blp:15
msgid "Try a different search."
msgstr "Δοκιμάστε μια διαφορετική αναζήτηση."
#: data/gtk/window.blp:21
msgid "No Games"
msgstr "Δίχως Παιχνίδια"
#: data/gtk/window.blp:22
msgid "Use the + button to add games."
msgstr "Χρησιμοποιήστε το κουμπί + για να προσθέσετε παιχνίδια."
#: data/gtk/window.blp:40
msgid "No Hidden Games"
msgstr "Δεν υπάρχουν κρυφά παιχνίδια"
#: data/gtk/window.blp:41
msgid "Games you hide will appear here."
msgstr "Τα παιχνίδια που κρύβετε θα εμφανίζονται εδώ."
#: data/gtk/window.blp:75 data/gtk/window.blp:106 src/main.py:166
#, fuzzy
#| msgid "Remove All Games"
msgid "All Games"
msgstr "Αφαίρεση Όλων Των Παιχνιδιών"
#: data/gtk/window.blp:126 src/main.py:168
#, fuzzy
#| msgid "Added: {}"
msgid "Added"
msgstr "Προστέθηκε: {}"
#: data/gtk/window.blp:141
#, fuzzy
#| msgid "Import"
msgid "Imported"
msgstr "Εισαγωγή"
#: data/gtk/window.blp:229
msgid "Hidden Games"
msgstr "Κρυμμένα παιχνίδια"
#: data/gtk/window.blp:339
msgid "Game Title"
msgstr "Τίτλος παιχνιδιού"
#: data/gtk/window.blp:396
msgid "Play"
msgstr "Παίξτε"
#: data/gtk/window.blp:473
msgid "Sort"
msgstr "Ταξινόμηση"
#: data/gtk/window.blp:476
msgid "A-Z"
msgstr "Α-Ζ"
#: data/gtk/window.blp:482
msgid "Z-A"
msgstr "Ζ-Α"
#: data/gtk/window.blp:488
msgid "Newest"
msgstr "Νεότερο"
#: data/gtk/window.blp:494
msgid "Oldest"
msgstr "Παλαιότερο"
#: data/gtk/window.blp:500
msgid "Last Played"
msgstr "Τελευταία αναπαραγωγή"
#: data/gtk/window.blp:507
msgid "Show Hidden"
msgstr "Εμφάνιση Κρυφών"
#: data/gtk/window.blp:525
msgid "About Cartridges"
msgstr "Σχετικά με τις Κασέτες"
#. Translators: Replace this with your name for it to show up in the about window
#: src/main.py:208
msgid "translator_credits"
msgstr "Yiannis Ioannides"
#. The variable is the date when the game was added
#: src/window.py:373
msgid "Added: {}"
msgstr "Προστέθηκε: {}"
#: src/window.py:376
msgid "Never"
msgstr "Ποτέ"
#. The variable is the date when the game was last played
#: src/window.py:380
msgid "Last played: {}"
msgstr "Τελευταία αναπαραγωγή: {}"
#: src/details_window.py:76
msgid "Apply"
msgstr "Εφαρμογή"
#: src/details_window.py:82
msgid "Add New Game"
msgstr "Προσθήκη νέου παιχνιδιού"
#: src/details_window.py:83
msgid "Add"
msgstr "Προσθήκη"
#: src/details_window.py:93
msgid "Executables"
msgstr "Προγράμματα"
#. Translate this string as you would translate "file"
#: src/details_window.py:108
msgid "file.txt"
msgstr "αρχειο.txt"
#. As in software
#: src/details_window.py:110
msgid "program"
msgstr "πρόγραμμα"
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:115 src/details_window.py:117
msgid "C:\\path\\to\\{}"
msgstr "C:\\προς\\φάκελο\\{}"
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:121 src/details_window.py:123
msgid "/path/to/{}"
msgstr "/προς/φάκελο/{}"
#: src/details_window.py:128
msgid ""
"To launch the executable \"{}\", use the command:\n"
"\n"
"<tt>\"{}\"</tt>\n"
"\n"
"To open the file \"{}\" with the default application, use:\n"
"\n"
"<tt>{} \"{}\"</tt>\n"
"\n"
"If the path contains spaces, make sure to wrap it in double quotes!"
msgstr ""
"Για να εκτελέσετε την εφαρμογή \"{}\", χρησιμοποιήστε την εντολή:\n"
"\n"
"<tt>\"{}\"</tt>\n"
"\n"
"Για να ανοίξετε το αρχείο \"{}\" με την προεπιλεγμένη εφαρμογή, "
"χρησιμοποιήστε:\n"
"\n"
"<tt>{} \"{}\"</tt>\n"
"\n"
"Αν η διεύθυνση φακέλου περιέχει κενά, φροντίστε να την περικλείσετε σε διπλά "
"εισαγωγικά!"
#: src/details_window.py:171 src/details_window.py:177
msgid "Couldn't Add Game"
msgstr "Αδυναμία προσθήκης παιχνιδιού"
#: src/details_window.py:171 src/details_window.py:213
msgid "Game title cannot be empty."
msgstr "Ο τίτλος παιχνιδιού δεν μπορεί να είναι κενός."
#: src/details_window.py:177 src/details_window.py:221
msgid "Executable cannot be empty."
msgstr "Η εφαρμογή δεν μπορεί να είναι κενή."
#: src/details_window.py:212 src/details_window.py:220
msgid "Couldn't Apply Preferences"
msgstr "Αδυναμία Εφαρμογής Προτιμήσεων"
#. The variable is the title of the game
#: src/game.py:141
msgid "{} launched"
msgstr "{} εκκινήθη"
#. The variable is the title of the game
#: src/game.py:155
msgid "{} hidden"
msgstr "{} αποκρύφθηκε"
#: src/game.py:155
msgid "{} unhidden"
msgstr "{} φανερώθηκε"
#. The variable is the title of the game
#. The variable is the number of games removed
#: src/game.py:169 src/importer/importer.py:391
msgid "{} removed"
msgstr "{} αφαιρέθηκε"
#: src/preferences.py:124
msgid "All games removed"
msgstr "Όλα τα παιχνίδια αφαιρέθηκαν"
#: src/preferences.py:172
msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr ""
"Για τη χρήση του SteamGridDB απαιτείται ένα κλειδί API. Μπορείτε να "
"δημιουργήσετε ένα {}εδώ{}."
#: src/preferences.py:184
#, fuzzy
#| msgid "Importing Covers…"
msgid "Downloading covers…"
msgstr "Εισαγωγή εξώφυλλων…"
#: src/preferences.py:203
msgid "Covers updated"
msgstr ""
#: src/preferences.py:335
msgid "Installation Not Found"
msgstr "Η εγκατάσταση δεν βρέθηκε"
#: src/preferences.py:336
msgid "Select a valid directory."
msgstr "Επιλέξτε έναν έγκυρο προορισμό."
#: src/preferences.py:372 src/importer/importer.py:317
msgid "Warning"
msgstr "Προσοχή"
#: src/preferences.py:406
msgid "Invalid Directory"
msgstr "Μη έγκυρος προορισμός"
#: src/preferences.py:412
msgid "Set Location"
msgstr "Ορίστε Τοποθεσία"
#: src/utils/create_dialog.py:33 src/importer/importer.py:318
msgid "Dismiss"
msgstr "Απόρριψη"
#: src/importer/importer.py:145
msgid "Importing Games…"
msgstr "Εισαγωγή παιχνιδιών…"
#: src/importer/importer.py:338
msgid "The following errors occured during import:"
msgstr "Τα παρακάτω σφάλματα παρουσιάστηκαν κατά την εισαγωγή:"
#: src/importer/importer.py:367
msgid "No new games found"
msgstr "Δεν βρέθηκαν νέα παιχνίδια"
#: src/importer/importer.py:379
msgid "1 game imported"
msgstr "1 παιχνίδι εισήχθη"
#. The variable is the number of games
#: src/importer/importer.py:383
msgid "{} games imported"
msgstr "{} παιχνίδια εισήχθησαν"
#. A single game removed
#: src/importer/importer.py:387
msgid "1 removed"
msgstr "1 αφαιρέθηκε"
#. The variable is the name of the source
#: src/importer/sources/location.py:33
msgid "Select the {} cache directory."
msgstr "Επιλέξτε τον προορισμό cache του {}."
#. The variable is the name of the source
#: src/importer/sources/location.py:35
msgid "Select the {} configuration directory."
msgstr "Επιλέξτε τον προορισμό ρυθμίσεων του {}."
#. The variable is the name of the source
#: src/importer/sources/location.py:37
msgid "Select the {} data directory."
msgstr "Επιλέξτε τον προορισμό δεδομένων του {}."
#: src/store/managers/sgdb_manager.py:46
msgid "Couldn't Authenticate SteamGridDB"
msgstr ""
"Η επιβεβαίωση γνησιότητας του SteamGridDB δεν μπόρεσε να πραγματοποιηθεί"
#: src/store/managers/sgdb_manager.py:47
msgid "Verify your API key in preferences"
msgstr "Επιβεβαιώστε το κλειδί API σας στις ρυθμίσεις"
#: src/importer/sources/retroarch_source.py:129
msgid "No RetroArch Core Selected"
msgstr "Δεν υπάρχει επιλεγμένος πυρήνας RetroArch"
#. The variable is a newline separated list of playlists
#: src/importer/sources/retroarch_source.py:131
msgid "The following playlists have no default core:"
msgstr "Οι παρακάτω λίστες δεν έχουν προεπιλεγμένο πυρήνα:"
#: src/importer/sources/retroarch_source.py:133
msgid "Games with no core selected were not imported"
msgstr "Παιχνίδια χωρίς επιλεγμένο πυρήνα δεν εισήχθησαν"
#~ msgid "Library"
#~ msgstr "Βιβλιοθήκη"
#~ msgid "Show preferences"
#~ msgstr "Εμφάνιση προτιμήσεων"
#~ msgid "Shortcuts"
#~ msgstr "Συντομεύσεις"
#~ msgid "Open menu"
#~ msgstr "Άνοιγμα μενού"
#~ msgid "Add new game"
#~ msgstr "Πρόσθεση νέου παιχνιδιού"
#~ msgid "Import games"
#~ msgstr "Εισαγωγή παιχνιδιών"
#~ msgid "Back"
#~ msgstr "Πίσω"
#~ msgid "Search games"
#~ msgstr "Αναζήτηση παιχνιδιών"
#~ msgid "Search hidden games"
#~ msgstr "Αναζήτηση κρυμμένων παιχνιδιών"
#~ msgid "The title of the game"
#~ msgstr "Τίτλος Παιχνιδιού"
#~ msgid "Developer"
#~ msgstr "Προγραμματιστής"
#~ msgid "File to open or command to run when launching the game"
#~ msgstr ""
#~ "Αρχείο προς άνοιγμα ή εντολή προς εκτέλεση κατά την εκκίνηση παιχνιδιού"
#~ msgid "Confirm"
#~ msgstr "Επιβεβαίωση"
#, fuzzy
#~| msgid "Cache Not Found"
#~ msgid "Directory not Valid"
#~ msgstr "Τα cache δεν βρέθηκαν"
#, fuzzy
#~| msgid "Confirm"
#~ msgid "Configuration"
#~ msgstr "Επιβεβαίωση"
#~ msgid "Steam Install Location"
#~ msgstr "Τοποθεσία Εγκατάστασης Steam"
#~ msgid "Lutris Install Location"
#~ msgstr "Τοποθεσία Εγκατάστασης Lutris"
#~ msgid "Heroic Install Location"
#~ msgstr "Τοποθεσία Εγκατάστασης Heroic"
#~ msgid "Bottles Install Location"
#~ msgstr "Τοποθεσία Εγκατάστασης Bottles"
#~ msgid "Today"
#~ msgstr "Σήμερα"
#~ msgid "Yesterday"
#~ msgstr "Χθες"
#~ msgid "Select the Lutris cache directory."
#~ msgstr "Επιλέξτε τη τοποθεσία cache του Lutris."

792
po/es.po

File diff suppressed because it is too large Load Diff

656
po/fa.po
View File

@@ -1,656 +0,0 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR kramo
# This file is distributed under the same license as the Cartridges package.
# سید حسین موسوی فرد <shmf1385@protonmail.com>, 2023.
# Danial Behzadi <dani.behzi@ubuntu.com>, 2023.
msgid ""
msgstr ""
"Project-Id-Version: Cartridges\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-26 13:51+0200\n"
"PO-Revision-Date: 2023-09-24 16:04+0000\n"
"Last-Translator: Danial Behzadi <dani.behzi@ubuntu.com>\n"
"Language-Team: Persian <https://hosted.weblate.org/projects/cartridges/"
"cartridges/fa/>\n"
"Language: fa\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 5.1-dev\n"
#: data/hu.kramo.Cartridges.desktop.in:3
#: data/hu.kramo.Cartridges.metainfo.xml.in:6
#: data/hu.kramo.Cartridges.metainfo.xml.in:30 data/gtk/window.blp:47
#: data/gtk/window.blp:80
msgid "Cartridges"
msgstr "کارتریج‌ها"
#: data/hu.kramo.Cartridges.desktop.in:4
msgid "Game Launcher"
msgstr "اجراگر بازی"
#: data/hu.kramo.Cartridges.desktop.in:5
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
msgid "Launch all your games"
msgstr "اجرای همهٔ بازی‌هایتان"
#: data/hu.kramo.Cartridges.desktop.in:11
msgid ""
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
msgstr ""
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
"بازی;استیم;لوتریس;هروییک;بطری‌ها;باتلز;ایچ;فلت‌پک;لجندری;رتروآرچ;"
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
msgid ""
"Cartridges is a simple game launcher for all of your games. It has support "
"for importing games from Steam, Lutris, Heroic and more with no login "
"necessary. You can sort and hide games or download cover art from "
"SteamGridDB."
msgstr ""
"کارتریج یک اجراگر سادهٔ بازی برای همهٔ بازی‌هایتان است. کارتریج می‌تواند بدون "
"نیاز به ورود، بازی‌هایتان را از استیم، لوتریس، هروییک و… وارد کند. می‌توانید "
"بازی‌هایتان را نهفته یا طرح جلدشان را از SteamGridDB بگیرید."
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:288
#: src/details_window.py:71
msgid "Game Details"
msgstr "جزییات بازی"
#: data/hu.kramo.Cartridges.metainfo.xml.in:38
msgid "Edit Game Details"
msgstr "ویرایش جزییات بازی"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/help-overlay.blp:19
#: data/gtk/window.blp:515 src/details_window.py:271
#: src/importer/importer.py:319 src/importer/importer.py:370
msgid "Preferences"
msgstr "ترجیحات"
#: data/gtk/details-window.blp:25
msgid "Cancel"
msgstr "لغو"
#: data/gtk/details-window.blp:55
msgid "New Cover"
msgstr "طرج جلد جدید"
#: data/gtk/details-window.blp:73
msgid "Delete Cover"
msgstr "حذف طرح جلد"
#: data/gtk/details-window.blp:100 data/gtk/game.blp:80
msgid "Title"
msgstr "عنوان"
#: data/gtk/details-window.blp:103
msgid "Developer (optional)"
msgstr "توسعه‌دهنده (اختیاری)"
#: data/gtk/details-window.blp:108
msgid "Executable"
msgstr "اجرایی"
#: data/gtk/details-window.blp:114
msgid "Select File"
msgstr "گزینش پرونده"
#: data/gtk/details-window.blp:125
msgid "More Info"
msgstr "اطّلاعات بیش‌تر"
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:415
msgid "Edit"
msgstr "ویرایش"
#: data/gtk/game.blp:107 src/window.py:350
msgid "Hide"
msgstr "نهفتن"
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:40
#: data/gtk/window.blp:435
msgid "Remove"
msgstr "برداشتن"
#: data/gtk/game.blp:126 src/window.py:352
msgid "Unhide"
msgstr "نانهفتن"
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:8
msgid "General"
msgstr "عمومی"
#: data/gtk/help-overlay.blp:14 data/gtk/window.blp:184 data/gtk/window.blp:243
#: data/gtk/window.blp:446
msgid "Search"
msgstr "جست‌وجو"
#: data/gtk/help-overlay.blp:24 data/gtk/window.blp:520
msgid "Keyboard Shortcuts"
msgstr "میان‌برهیا صفحه‌کلید"
#: data/gtk/help-overlay.blp:29 src/game.py:105 src/preferences.py:125
#: src/importer/importer.py:394
msgid "Undo"
msgstr "برگردان"
#: data/gtk/help-overlay.blp:34
msgid "Quit"
msgstr "خروج"
#: data/gtk/help-overlay.blp:39 data/gtk/window.blp:88 data/gtk/window.blp:164
msgid "Toggle Sidebar"
msgstr "تغییر وضعیت نوار کناری"
#: data/gtk/help-overlay.blp:44 data/gtk/window.blp:177 data/gtk/window.blp:236
msgid "Main Menu"
msgstr "فهرست اصلی"
#: data/gtk/help-overlay.blp:50
msgid "Games"
msgstr "بازی‌ها"
#: data/gtk/help-overlay.blp:53 data/gtk/window.blp:170 data/gtk/window.blp:534
msgid "Add Game"
msgstr "افزودن بازی"
#: data/gtk/help-overlay.blp:58 data/gtk/preferences.blp:68
#: data/gtk/window.blp:27 data/gtk/window.blp:541
msgid "Import"
msgstr "درون‌ریزی"
#: data/gtk/help-overlay.blp:63
msgid "Show Hidden Games"
msgstr "نمایش بازی‌های نهفته"
#: data/gtk/help-overlay.blp:68
msgid "Remove Game"
msgstr "برداشتن بازی"
#: data/gtk/preferences.blp:12 data/gtk/preferences.blp:72
#: data/gtk/preferences.blp:278
msgid "Behavior"
msgstr "رفتار"
#: data/gtk/preferences.blp:15
msgid "Exit After Launching Games"
msgstr "خروج پس از اجرا کردن بازی"
#: data/gtk/preferences.blp:19
msgid "Cover Image Launches Game"
msgstr "طرح جلد بازی را اجرا می‌کند"
#: data/gtk/preferences.blp:20
msgid "Swaps the behavior of the cover image and the play button"
msgstr "تعویض رفتار تصویر جلد و دکمهٔ بازی کردن"
#: data/gtk/preferences.blp:25 src/details_window.py:85
msgid "Images"
msgstr "عکس‌ها"
#: data/gtk/preferences.blp:28
msgid "High Quality Images"
msgstr "عکس‌های با کیفیت بالا"
#: data/gtk/preferences.blp:29
msgid "Save game covers losslessly at the cost of storage"
msgstr "ذخیرهٔ طرح جلدهای بدون اتلاف به فیمت ذخیره‌سازی"
#: data/gtk/preferences.blp:34
msgid "Danger Zone"
msgstr "منطقهٔ خطر"
#: data/gtk/preferences.blp:37
msgid "Remove All Games"
msgstr "حذف کردن همهٔ بازی‌ها"
#: data/gtk/preferences.blp:75
msgid "Remove Uninstalled Games"
msgstr "برداشن بازی‌های نصب نشده"
#: data/gtk/preferences.blp:80
msgid "Sources"
msgstr "منبع‌ها"
#: data/gtk/preferences.blp:83 src/importer/sources/steam_source.py:114
msgid "Steam"
msgstr "استیم"
#: data/gtk/preferences.blp:87 data/gtk/preferences.blp:104
#: data/gtk/preferences.blp:141 data/gtk/preferences.blp:174
#: data/gtk/preferences.blp:191 data/gtk/preferences.blp:208
#: data/gtk/preferences.blp:225 data/gtk/preferences.blp:242
msgid "Install Location"
msgstr "مکان نصب"
#: data/gtk/preferences.blp:100 src/importer/sources/lutris_source.py:92
msgid "Lutris"
msgstr "لوتریس"
#: data/gtk/preferences.blp:116
msgid "Cache Location"
msgstr "مکان انباره"
#: data/gtk/preferences.blp:128
msgid "Import Steam Games"
msgstr "درون‌ریزی بازی‌های استیم"
#: data/gtk/preferences.blp:132
msgid "Import Flatpak Games"
msgstr "درون‌ریزی بازی‌های فلت‌پک"
#: data/gtk/preferences.blp:137 src/importer/sources/heroic_source.py:355
msgid "Heroic"
msgstr "هروییک"
#: data/gtk/preferences.blp:153
msgid "Import Epic Games"
msgstr "درون‌ریزی بازی‌های اپیک"
#: data/gtk/preferences.blp:157
msgid "Import GOG Games"
msgstr "درون‌ریزی بازی‌های گوگ"
#: data/gtk/preferences.blp:161
msgid "Import Amazon Games"
msgstr "درون‌ریزی بازی‌های آمازون"
#: data/gtk/preferences.blp:165
msgid "Import Sideloaded Games"
msgstr "درون‌ریزی بازی‌های نصب شده"
#: data/gtk/preferences.blp:170 src/importer/sources/bottles_source.py:86
msgid "Bottles"
msgstr "بطری‌ها"
#: data/gtk/preferences.blp:187 src/importer/sources/itch_source.py:81
msgid "itch"
msgstr "ایچ"
#: data/gtk/preferences.blp:204 src/importer/sources/legendary_source.py:97
msgid "Legendary"
msgstr "لجندری"
#: data/gtk/preferences.blp:221 src/importer/sources/retroarch_source.py:142
msgid "RetroArch"
msgstr "رتروآرچ"
#: data/gtk/preferences.blp:238 src/importer/sources/flatpak_source.py:118
msgid "Flatpak"
msgstr "فلت‌پک"
#: data/gtk/preferences.blp:254
msgid "Import Game Launchers"
msgstr "درون‌ریزی اجراگرهای بازی"
#: data/gtk/preferences.blp:259 src/importer/sources/desktop_source.py:217
msgid "Desktop Entries"
msgstr "ورودی‌های میزکار"
#: data/gtk/preferences.blp:266
msgid "SteamGridDB"
msgstr "SteamGridDB"
#: data/gtk/preferences.blp:270
msgid "Authentication"
msgstr "هویت‌سنجی"
#: data/gtk/preferences.blp:273
msgid "API Key"
msgstr "کلید API"
#: data/gtk/preferences.blp:281
msgid "Use SteamGridDB"
msgstr "استفاده از SteamGridDB"
#: data/gtk/preferences.blp:282
msgid "Download images when adding or importing games"
msgstr "بارگیری تصویرها هنگام افزودن یا درون‌ریزی بازی‌ها"
#: data/gtk/preferences.blp:286
msgid "Prefer Over Official Images"
msgstr "ترجیح به تصویرهای رسمی"
#: data/gtk/preferences.blp:290
msgid "Prefer Animated Images"
msgstr "ترچیح تصویرهای پویا"
#: data/gtk/preferences.blp:296
#, fuzzy
#| msgid "Delete Cover"
msgid "Update Covers"
msgstr "حذف طرح جلد"
#: data/gtk/preferences.blp:297
msgid "Fetch covers for games already in your library"
msgstr ""
#: data/gtk/preferences.blp:301
msgid "Update"
msgstr ""
#: data/gtk/window.blp:6 data/gtk/window.blp:14
msgid "No Games Found"
msgstr "هیچ بازی‌ای پیدا نشد"
#: data/gtk/window.blp:7 data/gtk/window.blp:15
msgid "Try a different search."
msgstr "آزمودن جست‌وجویی دیگر."
#: data/gtk/window.blp:21
msgid "No Games"
msgstr "بدون بازی"
#: data/gtk/window.blp:22
msgid "Use the + button to add games."
msgstr "استفاده از دکمهٔ + برای افزودن بازی‌ها."
#: data/gtk/window.blp:40
msgid "No Hidden Games"
msgstr "بدون بازی نهفته"
#: data/gtk/window.blp:41
msgid "Games you hide will appear here."
msgstr "بازی‌هایی که پنهان می‌کنید، این‌جا ظاهر خواهند شد."
#: data/gtk/window.blp:75 data/gtk/window.blp:106 src/main.py:166
msgid "All Games"
msgstr "همهٔ بازی‌ها"
#: data/gtk/window.blp:126 src/main.py:168
msgid "Added"
msgstr "افزوده"
#: data/gtk/window.blp:141
msgid "Imported"
msgstr "درون‌ریخته"
#: data/gtk/window.blp:229
msgid "Hidden Games"
msgstr "بازی‌های نهفته"
#: data/gtk/window.blp:339
msgid "Game Title"
msgstr "عنوان بازی"
#: data/gtk/window.blp:396
msgid "Play"
msgstr "بازی کردن"
#: data/gtk/window.blp:473
msgid "Sort"
msgstr "ترتیب"
#: data/gtk/window.blp:476
msgid "A-Z"
msgstr "آ-ی"
#: data/gtk/window.blp:482
msgid "Z-A"
msgstr "ی-آ"
#: data/gtk/window.blp:488
msgid "Newest"
msgstr "جدیدترین"
#: data/gtk/window.blp:494
msgid "Oldest"
msgstr "قدیمی‌ترین"
#: data/gtk/window.blp:500
msgid "Last Played"
msgstr "آخرین بازی شده"
#: data/gtk/window.blp:507
msgid "Show Hidden"
msgstr "نمایش نهفته"
#: data/gtk/window.blp:525
msgid "About Cartridges"
msgstr "دربارهٔ کارتریج‌ها"
#. Translators: Replace this with your name for it to show up in the about window
#: src/main.py:208
msgid "translator_credits"
msgstr "دانیال بهزادی <dani.behzi@ubuntu.com>"
#. The variable is the date when the game was added
#: src/window.py:373
msgid "Added: {}"
msgstr "افزوده: {}"
#: src/window.py:376
msgid "Never"
msgstr "هرگز"
#. The variable is the date when the game was last played
#: src/window.py:380
msgid "Last played: {}"
msgstr "آخرین بازی شده: {}"
#: src/details_window.py:76
msgid "Apply"
msgstr "اعمال"
#: src/details_window.py:82
msgid "Add New Game"
msgstr "افزودن بازی جدید"
#: src/details_window.py:83
msgid "Add"
msgstr "افزودن"
#: src/details_window.py:93
msgid "Executables"
msgstr "اجرایی‌ها"
#. Translate this string as you would translate "file"
#: src/details_window.py:108
msgid "file.txt"
msgstr "پرونده.txt"
#. As in software
#: src/details_window.py:110
msgid "program"
msgstr "برنامه"
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:115 src/details_window.py:117
msgid "C:\\path\\to\\{}"
msgstr "C:\\Path\\to\\{}"
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:121 src/details_window.py:123
msgid "/path/to/{}"
msgstr "/path/to/{}"
#: src/details_window.py:128
msgid ""
"To launch the executable \"{}\", use the command:\n"
"\n"
"<tt>\"{}\"</tt>\n"
"\n"
"To open the file \"{}\" with the default application, use:\n"
"\n"
"<tt>{} \"{}\"</tt>\n"
"\n"
"If the path contains spaces, make sure to wrap it in double quotes!"
msgstr ""
"استفاده از این دستور برای اجرای پروندهٔ اجرایی {}:\n"
"\n"
"<tt>\"{}\"</tt>\n"
"\n"
"برای گشودن پروندهٔ {}‌با برنامهٔ پیش‌گزیده:\n"
"\n"
"<tt>{} \"{}\"</tt>\n"
"\n"
"اگر مسیر فاصله داشت، مطمئن شوید در نقل‌قول گذاشته‌ایدش!"
#: src/details_window.py:171 src/details_window.py:177
msgid "Couldn't Add Game"
msgstr "نتوانست بازی بیفزاید"
#: src/details_window.py:171 src/details_window.py:213
msgid "Game title cannot be empty."
msgstr "عنوان بازی نمی‌تواند خالی باشد."
#: src/details_window.py:177 src/details_window.py:221
msgid "Executable cannot be empty."
msgstr "اجرایی نمی‌تواند خالی باشد."
#: src/details_window.py:212 src/details_window.py:220
msgid "Couldn't Apply Preferences"
msgstr "نتوانست ترجیحات را اعمال کند"
#. The variable is the title of the game
#: src/game.py:141
msgid "{} launched"
msgstr "{} اجرا شد"
#. The variable is the title of the game
#: src/game.py:155
msgid "{} hidden"
msgstr "{}‌نهفته"
#: src/game.py:155
msgid "{} unhidden"
msgstr "{} نانهفته"
#. The variable is the title of the game
#. The variable is the number of games removed
#: src/game.py:169 src/importer/importer.py:391
msgid "{} removed"
msgstr "{} برداشته"
#: src/preferences.py:124
msgid "All games removed"
msgstr "همهٔ بازی‌ها برداشته شدند"
#: src/preferences.py:172
msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr ""
"برای استفاده از SteamGridDB نیاز به یک کلید API است. می‌توانید {}این‌جا{} یکی "
"بسازید."
#: src/preferences.py:184
msgid "Downloading covers…"
msgstr ""
#: src/preferences.py:203
msgid "Covers updated"
msgstr ""
#: src/preferences.py:335
msgid "Installation Not Found"
msgstr "نصب پیدا نشد"
#: src/preferences.py:336
msgid "Select a valid directory."
msgstr "گزینش شاخه‌ای معتبر."
#: src/preferences.py:372 src/importer/importer.py:317
msgid "Warning"
msgstr "هشدار"
#: src/preferences.py:406
msgid "Invalid Directory"
msgstr "شاخهٔ نامعتبر"
#: src/preferences.py:412
msgid "Set Location"
msgstr "تنظیم مکان"
#: src/utils/create_dialog.py:33 src/importer/importer.py:318
msgid "Dismiss"
msgstr "رد"
#: src/importer/importer.py:145
msgid "Importing Games…"
msgstr "درون‌ریزی بازی‌ها…"
#: src/importer/importer.py:338
msgid "The following errors occured during import:"
msgstr "هنگام درون‌ریزی خطاهای زیر رخ دادند:"
#: src/importer/importer.py:367
msgid "No new games found"
msgstr "هیچ بازی جدیدی پیدا نشد"
#: src/importer/importer.py:379
msgid "1 game imported"
msgstr "۱ بازی درون‌ریخته شد"
#. The variable is the number of games
#: src/importer/importer.py:383
msgid "{} games imported"
msgstr "{} بازی درون‌ریخته شدند"
#. A single game removed
#: src/importer/importer.py:387
msgid "1 removed"
msgstr "یکی برداشته شد"
#. The variable is the name of the source
#: src/importer/sources/location.py:33
msgid "Select the {} cache directory."
msgstr "گزینش شاخهٔ انبارهٔ {}."
#. The variable is the name of the source
#: src/importer/sources/location.py:35
msgid "Select the {} configuration directory."
msgstr "گزینش شاخهٔ پیکربندی {}."
#. The variable is the name of the source
#: src/importer/sources/location.py:37
msgid "Select the {} data directory."
msgstr "گزینش شاخهٔ دادهٔ {}."
#: src/store/managers/sgdb_manager.py:46
msgid "Couldn't Authenticate SteamGridDB"
msgstr "نتوانست در SteamGridDB هویت‌سنجی کند"
#: src/store/managers/sgdb_manager.py:47
msgid "Verify your API key in preferences"
msgstr "کلید APIتان را در ترجیحات تأیید کنید"
#: src/importer/sources/retroarch_source.py:129
msgid "No RetroArch Core Selected"
msgstr "هیچ هستهٔ رتروآرچی گزیده نشده"
#. The variable is a newline separated list of playlists
#: src/importer/sources/retroarch_source.py:131
msgid "The following playlists have no default core:"
msgstr "سیاهه‌های بازی کردن زیر هیچ هستهٔ پیش‌گزیده‌ای ندارند:"
#: src/importer/sources/retroarch_source.py:133
msgid "Games with no core selected were not imported"
msgstr "بازی‌های بدون هسته درون‌ریزی نشدند"
#~ msgid "Library"
#~ msgstr "کتابخانه"
#~ msgid "Show preferences"
#~ msgstr "نمایش ترجیحات"
#~ msgid "Shortcuts"
#~ msgstr "میان‌برها"
#~ msgid "Open menu"
#~ msgstr "گشودن فهرست"
#~ msgid "Add new game"
#~ msgstr "افزودن بازی جدید"
#~ msgid "Import games"
#~ msgstr "درون‌ریزی بازی‌ها"
#~ msgid "Back"
#~ msgstr "بازگشت"
#~ msgid "Search games"
#~ msgstr "جست‌وجوی بازی‌ها"
#~ msgid "Search hidden games"
#~ msgstr "جست‌وجوی بازی‌های نهفته"

805
po/fi.po

File diff suppressed because it is too large Load Diff

821
po/fr.po

File diff suppressed because it is too large Load Diff

781
po/hu.po

File diff suppressed because it is too large Load Diff

777
po/it.po

File diff suppressed because it is too large Load Diff

639
po/ko.po
View File

@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Cartridges\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-26 13:51+0200\n"
"POT-Creation-Date: 2023-04-11 23:33+0200\n"
"PO-Revision-Date: 2023-03-28 22:23+0000\n"
"Last-Translator: MJKim <kmj10727@gmail.com>\n"
"Language-Team: Korean <https://hosted.weblate.org/projects/cartridges/"
@@ -19,9 +19,8 @@ msgstr ""
"X-Generator: Weblate 4.17-dev\n"
#: data/hu.kramo.Cartridges.desktop.in:3
#: data/hu.kramo.Cartridges.metainfo.xml.in:6
#: data/hu.kramo.Cartridges.metainfo.xml.in:30 data/gtk/window.blp:47
#: data/gtk/window.blp:80
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:29
#: src/main.py:119
msgid "Cartridges"
msgstr "카트리지"
@@ -34,11 +33,6 @@ msgstr "게임 런처"
msgid "Launch all your games"
msgstr "모든 게임을 실행합니다"
#: data/hu.kramo.Cartridges.desktop.in:11
msgid ""
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
msgstr ""
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
#, fuzzy
#| msgid ""
@@ -55,433 +49,475 @@ msgstr ""
"별로 게임을 숨기거나 정렬하는 등의 정리 기능을 통해 Steam, Heroic 및 Bottles"
"에서 게임을 가져올 수 있습니다."
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:288
#: src/details_window.py:71
msgid "Game Details"
msgstr ""
#: data/hu.kramo.Cartridges.metainfo.xml.in:22
msgid "Library"
msgstr "라이브러리"
#: data/hu.kramo.Cartridges.metainfo.xml.in:38
#: data/hu.kramo.Cartridges.metainfo.xml.in:26
#: src/utils/create_details_window.py:87
msgid "Edit Game Details"
msgstr ""
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/help-overlay.blp:19
#: data/gtk/window.blp:515 src/details_window.py:271
#: src/importer/importer.py:319 src/importer/importer.py:370
#: data/hu.kramo.Cartridges.metainfo.xml.in:30 data/gtk/window.blp:51
msgid "Game Details"
msgstr ""
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:402
#: src/utils/importer.py:94 src/utils/importer.py:123 src/utils/importer.py:148
#: src/utils/steamgriddb.py:116
msgid "Preferences"
msgstr ""
#: data/gtk/details-window.blp:25
msgid "Cancel"
msgstr ""
#: data/gtk/details-window.blp:55
msgid "New Cover"
msgstr ""
#: data/gtk/details-window.blp:73
msgid "Delete Cover"
msgstr ""
#: data/gtk/details-window.blp:100 data/gtk/game.blp:80
#: data/gtk/game.blp:67 src/utils/create_details_window.py:129
msgid "Title"
msgstr ""
#: data/gtk/details-window.blp:103
msgid "Developer (optional)"
msgstr ""
#: data/gtk/details-window.blp:108
msgid "Executable"
msgstr ""
#: data/gtk/details-window.blp:114
msgid "Select File"
msgstr ""
#: data/gtk/details-window.blp:125
msgid "More Info"
msgstr ""
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:415
#: data/gtk/game.blp:89 data/gtk/game.blp:108 data/gtk/window.blp:170
msgid "Edit"
msgstr ""
#: data/gtk/game.blp:107 src/window.py:350
#: data/gtk/game.blp:94 src/window.py:286
msgid "Hide"
msgstr ""
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:40
#: data/gtk/window.blp:435
#: data/gtk/game.blp:99 data/gtk/game.blp:118 data/gtk/preferences.blp:56
#: data/gtk/window.blp:186
msgid "Remove"
msgstr ""
#: data/gtk/game.blp:126 src/window.py:352
#: data/gtk/game.blp:113 src/window.py:283
msgid "Unhide"
msgstr ""
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:8
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
msgid "General"
msgstr ""
#: data/gtk/help-overlay.blp:14 data/gtk/window.blp:184 data/gtk/window.blp:243
#: data/gtk/window.blp:446
msgid "Search"
msgstr ""
#: data/gtk/help-overlay.blp:24 data/gtk/window.blp:520
msgid "Keyboard Shortcuts"
msgstr ""
#: data/gtk/help-overlay.blp:29 src/game.py:105 src/preferences.py:125
#: src/importer/importer.py:394
msgid "Undo"
msgstr ""
#: data/gtk/help-overlay.blp:34
#: data/gtk/help-overlay.blp:14
msgid "Quit"
msgstr ""
#: data/gtk/help-overlay.blp:39 data/gtk/window.blp:88 data/gtk/window.blp:164
msgid "Toggle Sidebar"
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:205 data/gtk/window.blp:249
#: data/gtk/window.blp:312
msgid "Search"
msgstr ""
#: data/gtk/help-overlay.blp:44 data/gtk/window.blp:177 data/gtk/window.blp:236
msgid "Main Menu"
#: data/gtk/help-overlay.blp:24
msgid "Show preferences"
msgstr ""
#: data/gtk/help-overlay.blp:50
#: data/gtk/help-overlay.blp:29
msgid "Shortcuts"
msgstr ""
#: data/gtk/help-overlay.blp:34 src/main.py:186 src/main.py:242
#: src/preferences.py:133
msgid "Undo"
msgstr ""
#: data/gtk/help-overlay.blp:39
msgid "Open menu"
msgstr ""
#: data/gtk/help-overlay.blp:45
#, fuzzy
#| msgid "No Games"
msgid "Games"
msgstr "게임이 없습니다"
#: data/gtk/help-overlay.blp:53 data/gtk/window.blp:170 data/gtk/window.blp:534
msgid "Add Game"
#: data/gtk/help-overlay.blp:48
msgid "Add new game"
msgstr ""
#: data/gtk/help-overlay.blp:58 data/gtk/preferences.blp:68
#: data/gtk/window.blp:27 data/gtk/window.blp:541
msgid "Import"
#: data/gtk/help-overlay.blp:53
#, fuzzy
#| msgid "No Games"
msgid "Import games"
msgstr "게임이 없습니다"
#: data/gtk/help-overlay.blp:58
msgid "Show hidden games"
msgstr ""
#: data/gtk/help-overlay.blp:63
msgid "Show Hidden Games"
msgstr ""
#: data/gtk/help-overlay.blp:68
#, fuzzy
#| msgid "No Games"
msgid "Remove Game"
msgid "Remove game"
msgstr "게임이 없습니다"
#: data/gtk/preferences.blp:12 data/gtk/preferences.blp:72
#: data/gtk/preferences.blp:278
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:235
msgid "Behavior"
msgstr ""
#: data/gtk/preferences.blp:15
#: data/gtk/preferences.blp:16
msgid "Exit After Launching Games"
msgstr ""
#: data/gtk/preferences.blp:19
#: data/gtk/preferences.blp:25
msgid "Cover Image Launches Game"
msgstr ""
#: data/gtk/preferences.blp:20
#: data/gtk/preferences.blp:26
msgid "Swaps the behavior of the cover image and the play button"
msgstr ""
#: data/gtk/preferences.blp:25 src/details_window.py:85
#: data/gtk/preferences.blp:36 src/utils/create_details_window.py:101
msgid "Images"
msgstr ""
#: data/gtk/preferences.blp:28
#: data/gtk/preferences.blp:39
msgid "High Quality Images"
msgstr ""
#: data/gtk/preferences.blp:29
#: data/gtk/preferences.blp:40
msgid "Save game covers losslessly at the cost of storage"
msgstr ""
#: data/gtk/preferences.blp:34
#: data/gtk/preferences.blp:50
msgid "Danger Zone"
msgstr ""
#: data/gtk/preferences.blp:37
#: data/gtk/preferences.blp:53
msgid "Remove All Games"
msgstr ""
#: data/gtk/preferences.blp:75
msgid "Remove Uninstalled Games"
#: data/gtk/preferences.blp:69 data/gtk/window.blp:427
msgid "Import"
msgstr ""
#: data/gtk/preferences.blp:80
#: data/gtk/preferences.blp:73
msgid "Sources"
msgstr ""
#: data/gtk/preferences.blp:83 src/importer/sources/steam_source.py:114
#: data/gtk/preferences.blp:76
msgid "Steam"
msgstr ""
#: data/gtk/preferences.blp:87 data/gtk/preferences.blp:104
#: data/gtk/preferences.blp:141 data/gtk/preferences.blp:174
#: data/gtk/preferences.blp:191 data/gtk/preferences.blp:208
#: data/gtk/preferences.blp:225 data/gtk/preferences.blp:242
msgid "Install Location"
#: data/gtk/preferences.blp:80
msgid "Steam Install Location"
msgstr ""
#: data/gtk/preferences.blp:100 src/importer/sources/lutris_source.py:92
#: data/gtk/preferences.blp:81 data/gtk/preferences.blp:119
#: data/gtk/preferences.blp:153 data/gtk/preferences.blp:195
#: data/gtk/preferences.blp:210
msgid "Directory to use when importing games"
msgstr ""
#: data/gtk/preferences.blp:89 src/utils/importer.py:143
msgid "Extra Steam Libraries"
msgstr ""
#: data/gtk/preferences.blp:90
msgid "Select other directories where you have Steam games installed"
msgstr ""
#: data/gtk/preferences.blp:96
msgid "Clear"
msgstr ""
#: data/gtk/preferences.blp:114
msgid "Lutris"
msgstr ""
#: data/gtk/preferences.blp:116
msgid "Cache Location"
#: data/gtk/preferences.blp:118
msgid "Lutris Install Location"
msgstr ""
#: data/gtk/preferences.blp:128
msgid "Lutris Cache Location"
msgstr ""
#: data/gtk/preferences.blp:129
msgid "Directory to use when importing game covers"
msgstr ""
#: data/gtk/preferences.blp:138
#, fuzzy
#| msgid "No Games"
msgid "Import Steam Games"
msgstr "게임이 없습니다"
#: data/gtk/preferences.blp:132
#, fuzzy
#| msgid "No Games"
msgid "Import Flatpak Games"
msgstr "게임이 없습니다"
#: data/gtk/preferences.blp:137 src/importer/sources/heroic_source.py:355
#: data/gtk/preferences.blp:148
msgid "Heroic"
msgstr ""
#: data/gtk/preferences.blp:153
#: data/gtk/preferences.blp:152
msgid "Heroic Install Location"
msgstr ""
#: data/gtk/preferences.blp:162
msgid "Import Epic Games"
msgstr ""
#: data/gtk/preferences.blp:157
#: data/gtk/preferences.blp:171
msgid "Import GOG Games"
msgstr ""
#: data/gtk/preferences.blp:161
#, fuzzy
#| msgid "No Games"
msgid "Import Amazon Games"
msgstr "게임이 없습니다"
#: data/gtk/preferences.blp:165
#: data/gtk/preferences.blp:180
msgid "Import Sideloaded Games"
msgstr ""
#: data/gtk/preferences.blp:170 src/importer/sources/bottles_source.py:86
#: data/gtk/preferences.blp:190
msgid "Bottles"
msgstr ""
#: data/gtk/preferences.blp:187 src/importer/sources/itch_source.py:81
#: data/gtk/preferences.blp:194
msgid "Bottles Install Location"
msgstr ""
#: data/gtk/preferences.blp:205
msgid "itch"
msgstr ""
#: data/gtk/preferences.blp:204 src/importer/sources/legendary_source.py:97
msgid "Legendary"
#: data/gtk/preferences.blp:209
msgid "itch Install Location"
msgstr ""
#: data/gtk/preferences.blp:221 src/importer/sources/retroarch_source.py:142
msgid "RetroArch"
msgstr ""
#: data/gtk/preferences.blp:238 src/importer/sources/flatpak_source.py:118
msgid "Flatpak"
msgstr ""
#: data/gtk/preferences.blp:254
#, fuzzy
#| msgid "Game Launcher"
msgid "Import Game Launchers"
msgstr "게임 런처"
#: data/gtk/preferences.blp:259 src/importer/sources/desktop_source.py:217
msgid "Desktop Entries"
msgstr ""
#: data/gtk/preferences.blp:266
#: data/gtk/preferences.blp:223
msgid "SteamGridDB"
msgstr ""
#: data/gtk/preferences.blp:270
#: data/gtk/preferences.blp:227
msgid "Authentication"
msgstr ""
#: data/gtk/preferences.blp:273
#: data/gtk/preferences.blp:230
msgid "API Key"
msgstr ""
#: data/gtk/preferences.blp:281
#: data/gtk/preferences.blp:238
msgid "Use SteamGridDB"
msgstr ""
#: data/gtk/preferences.blp:282
#: data/gtk/preferences.blp:239
msgid "Download images when adding or importing games"
msgstr ""
#: data/gtk/preferences.blp:286
#: data/gtk/preferences.blp:248
msgid "Prefer Over Official Images"
msgstr ""
#: data/gtk/preferences.blp:290
#: data/gtk/preferences.blp:257
msgid "Prefer Animated Images"
msgstr ""
#: data/gtk/preferences.blp:296
msgid "Update Covers"
msgstr ""
#: data/gtk/preferences.blp:297
msgid "Fetch covers for games already in your library"
msgstr ""
#: data/gtk/preferences.blp:301
msgid "Update"
msgstr ""
#: data/gtk/window.blp:6 data/gtk/window.blp:14
#: data/gtk/window.blp:6 src/utils/importer.py:91
msgid "No Games Found"
msgstr ""
#: data/gtk/window.blp:7 data/gtk/window.blp:15
#: data/gtk/window.blp:7
msgid "Try a different search."
msgstr ""
#: data/gtk/window.blp:21
#: data/gtk/window.blp:14
msgid "No Games"
msgstr "게임이 없습니다"
#: data/gtk/window.blp:22
#: data/gtk/window.blp:15
msgid "Use the + button to add games."
msgstr ""
#: data/gtk/window.blp:40
#: data/gtk/window.blp:22
msgid "No Hidden Games"
msgstr ""
#: data/gtk/window.blp:41
#: data/gtk/window.blp:23
msgid "Games you hide will appear here."
msgstr ""
#: data/gtk/window.blp:75 data/gtk/window.blp:106 src/main.py:166
#, fuzzy
#| msgid "No Games"
msgid "All Games"
msgstr "게임이 없습니다"
#: data/gtk/window.blp:44 data/gtk/window.blp:293
msgid "Back"
msgstr "뒤로"
#: data/gtk/window.blp:126 src/main.py:168
msgid "Added"
msgstr ""
#: data/gtk/window.blp:141
#, fuzzy
#| msgid "No Games"
msgid "Imported"
msgstr "게임이 없습니다"
#: data/gtk/window.blp:229
msgid "Hidden Games"
msgstr ""
#: data/gtk/window.blp:339
#: data/gtk/window.blp:100
msgid "Game Title"
msgstr ""
#: data/gtk/window.blp:396
#: data/gtk/window.blp:151 src/game.py:158
msgid "Play"
msgstr ""
#: data/gtk/window.blp:473
#: data/gtk/window.blp:235 data/gtk/window.blp:421
msgid "Add Game"
msgstr ""
#: data/gtk/window.blp:242 data/gtk/window.blp:305
msgid "Main Menu"
msgstr ""
#: data/gtk/window.blp:300
msgid "Hidden Games"
msgstr ""
#: data/gtk/window.blp:360
msgid "Sort"
msgstr "정렬"
#: data/gtk/window.blp:476
#: data/gtk/window.blp:363
msgid "A-Z"
msgstr ""
#: data/gtk/window.blp:482
#: data/gtk/window.blp:369
msgid "Z-A"
msgstr ""
#: data/gtk/window.blp:488
#: data/gtk/window.blp:375
msgid "Newest"
msgstr ""
#: data/gtk/window.blp:494
#: data/gtk/window.blp:381
msgid "Oldest"
msgstr ""
#: data/gtk/window.blp:500
#: data/gtk/window.blp:387
msgid "Last Played"
msgstr ""
#: data/gtk/window.blp:507
#: data/gtk/window.blp:394
msgid "Show Hidden"
msgstr ""
#: data/gtk/window.blp:525
#: data/gtk/window.blp:407
msgid "Keyboard Shortcuts"
msgstr ""
#: data/gtk/window.blp:412
msgid "About Cartridges"
msgstr "카트리지 정보"
#. Translators: Replace this with your name for it to show up in the about window
#: src/main.py:208
#: src/main.py:137
msgid "translator_credits"
msgstr ""
#. The variable is the title of the game
#: src/main.py:164
msgid "{} launched"
msgstr ""
#. The variable is the title of the game
#: src/main.py:182
msgid "{} hidden"
msgstr ""
#. The variable is the title of the game
#: src/main.py:185
msgid "{} unhidden"
msgstr ""
#. The variable is the title of the game
#: src/main.py:241
msgid "{} removed"
msgstr ""
#: src/window.py:262
msgid "Today"
msgstr ""
#: src/window.py:264
msgid "Yesterday"
msgstr ""
#. The variable is the date when the game was added
#: src/window.py:373
#: src/window.py:310
msgid "Added: {}"
msgstr ""
#: src/window.py:376
#: src/window.py:315
msgid "Never"
msgstr ""
#. The variable is the date when the game was last played
#: src/window.py:380
#: src/window.py:319
msgid "Last played: {}"
msgstr ""
#: src/details_window.py:76
msgid "Apply"
#: src/game.py:156
msgid "Details"
msgstr ""
#: src/details_window.py:82
#: src/preferences.py:54
msgid "Installation Not Found"
msgstr ""
#. The variable is the name of the game launcher
#: src/preferences.py:56
msgid "Select the {} configuration directory."
msgstr ""
#. The variable is the name of the game launcher
#: src/preferences.py:59
msgid "Select the {} data directory."
msgstr ""
#: src/preferences.py:61 src/preferences.py:240
msgid "Set Location"
msgstr ""
#: src/preferences.py:132
msgid "All games removed"
msgstr ""
#: src/preferences.py:237
msgid "Cache Not Found"
msgstr ""
#: src/preferences.py:238
msgid "Select the Lutris cache directory."
msgstr ""
#: src/preferences.py:344
msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr ""
#: src/utils/create_details_window.py:81
msgid "Add New Game"
msgstr ""
#: src/details_window.py:83
msgid "Add"
#: src/utils/create_details_window.py:85
msgid "Confirm"
msgstr ""
#: src/details_window.py:93
msgid "Executables"
#: src/utils/create_details_window.py:96
msgid "Apply"
msgstr ""
#: src/utils/create_details_window.py:130
msgid "The title of the game"
msgstr ""
#: src/utils/create_details_window.py:135
msgid "Developer"
msgstr ""
#: src/utils/create_details_window.py:136
msgid "The developer or publisher (optional)"
msgstr ""
#. Translate this string as you would translate "file"
#: src/details_window.py:108
#: src/utils/create_details_window.py:147
msgid "file.txt"
msgstr ""
#. As in software
#: src/details_window.py:110
#: src/utils/create_details_window.py:149
msgid "program"
msgstr ""
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:115 src/details_window.py:117
#: src/utils/create_details_window.py:154
#: src/utils/create_details_window.py:156
msgid "C:\\path\\to\\{}"
msgstr ""
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:121 src/details_window.py:123
#: src/utils/create_details_window.py:160
#: src/utils/create_details_window.py:162
msgid "/path/to/{}"
msgstr ""
#: src/details_window.py:128
#: src/utils/create_details_window.py:166
msgid ""
"To launch the executable \"{}\", use the command:\n"
"\n"
@@ -494,159 +530,82 @@ msgid ""
"If the path contains spaces, make sure to wrap it in double quotes!"
msgstr ""
#: src/details_window.py:171 src/details_window.py:177
#: src/utils/create_details_window.py:189
msgid "Executable"
msgstr ""
#: src/utils/create_details_window.py:190
msgid "File to open or command to run when launching the game"
msgstr ""
#: src/utils/create_details_window.py:202
msgid "Cancel"
msgstr ""
#: src/utils/create_details_window.py:259
#: src/utils/create_details_window.py:269
#: src/utils/create_details_window.py:275
msgid "Couldn't Add Game"
msgstr ""
#: src/details_window.py:171 src/details_window.py:213
msgid "Game title cannot be empty."
msgstr ""
#: src/details_window.py:177 src/details_window.py:221
msgid "Executable cannot be empty."
msgstr ""
#: src/details_window.py:212 src/details_window.py:220
#: src/utils/create_details_window.py:261
#: src/utils/create_details_window.py:299
#: src/utils/create_details_window.py:307
msgid "Couldn't Apply Preferences"
msgstr ""
#. The variable is the title of the game
#: src/game.py:141
msgid "{} launched"
#: src/utils/create_details_window.py:269
#: src/utils/create_details_window.py:300
msgid "Game title cannot be empty."
msgstr ""
#. The variable is the title of the game
#: src/game.py:155
msgid "{} hidden"
#: src/utils/create_details_window.py:275
#: src/utils/create_details_window.py:308
msgid "Executable cannot be empty."
msgstr ""
#: src/game.py:155
msgid "{} unhidden"
msgstr ""
#. The variable is the title of the game
#. The variable is the number of games removed
#: src/game.py:169 src/importer/importer.py:391
msgid "{} removed"
msgstr ""
#: src/preferences.py:124
msgid "All games removed"
msgstr ""
#: src/preferences.py:172
msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr ""
#: src/preferences.py:184
msgid "Downloading covers…"
msgstr ""
#: src/preferences.py:203
msgid "Covers updated"
msgstr ""
#: src/preferences.py:335
msgid "Installation Not Found"
msgstr ""
#: src/preferences.py:336
msgid "Select a valid directory."
msgstr ""
#: src/preferences.py:372 src/importer/importer.py:317
msgid "Warning"
msgstr ""
#: src/preferences.py:406
msgid "Invalid Directory"
msgstr ""
#: src/preferences.py:412
msgid "Set Location"
msgstr ""
#: src/utils/create_dialog.py:33 src/importer/importer.py:318
#: src/utils/create_dialog.py:25
msgid "Dismiss"
msgstr ""
#: src/importer/importer.py:145
#, fuzzy
#| msgid "No Games"
#: src/utils/importer.py:42
msgid "Importing Games…"
msgstr "게임이 없습니다"
#: src/importer/importer.py:338
msgid "The following errors occured during import:"
msgstr ""
#: src/importer/importer.py:367
msgid "No new games found"
#: src/utils/importer.py:77
msgid "Importing Covers…"
msgstr ""
#: src/importer/importer.py:379
msgid "1 game imported"
#: src/utils/importer.py:92
msgid "No new games were found on your system."
msgstr ""
#: src/utils/importer.py:100
msgid "Game Imported"
msgstr ""
#: src/utils/importer.py:101
msgid "Successfully imported 1 game."
msgstr ""
#: src/utils/importer.py:107
msgid "Games Imported"
msgstr ""
#. The variable is the number of games
#: src/importer/importer.py:383
msgid "{} games imported"
#: src/utils/importer.py:109
msgid "Successfully imported {} games."
msgstr ""
#. A single game removed
#: src/importer/importer.py:387
msgid "1 removed"
#: src/utils/importer.py:120 src/utils/steamgriddb.py:113
msgid "Couldn't Connect to SteamGridDB"
msgstr ""
#. The variable is the name of the source
#: src/importer/sources/location.py:33
msgid "Select the {} cache directory."
#: src/utils/importer.py:145
msgid ""
"Looks like you have multiple Steam libraries. Would you like to add them in "
"preferences?"
msgstr ""
#. The variable is the name of the source
#: src/importer/sources/location.py:35
msgid "Select the {} configuration directory."
msgstr ""
#. The variable is the name of the source
#: src/importer/sources/location.py:37
msgid "Select the {} data directory."
msgstr ""
#: src/store/managers/sgdb_manager.py:46
msgid "Couldn't Authenticate SteamGridDB"
msgstr ""
#: src/store/managers/sgdb_manager.py:47
msgid "Verify your API key in preferences"
msgstr ""
#: src/importer/sources/retroarch_source.py:129
msgid "No RetroArch Core Selected"
msgstr ""
#. The variable is a newline separated list of playlists
#: src/importer/sources/retroarch_source.py:131
msgid "The following playlists have no default core:"
msgstr ""
#: src/importer/sources/retroarch_source.py:133
msgid "Games with no core selected were not imported"
msgstr ""
#~ msgid "Library"
#~ msgstr "라이브러리"
#, fuzzy
#~| msgid "No Games"
#~ msgid "Import games"
#~ msgstr "게임이 없습니다"
#~ msgid "Back"
#~ msgstr "뒤로"
#, fuzzy
#~| msgid "Launch your games"
#~ msgid "Search games"
#~ msgid "Launch your games"
#~ msgstr "게임을 실행합니다"

File diff suppressed because it is too large Load Diff

768
po/nl.po

File diff suppressed because it is too large Load Diff

769
po/pl.po
View File

@@ -1,769 +0,0 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR kramo
# This file is distributed under the same license as the Cartridges package.
# Artur Wróblewski <krypalkora1984@gmail.com>, 2023.
# Kshyso <Kshysio@protonmail.com>, 2023.
# Eryk Michalak <gnu.ewm@protonmail.com>, 2023.
# Michaks <fexwex3@gmail.com>, 2023.
msgid ""
msgstr ""
"Project-Id-Version: Cartridges\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-26 13:51+0200\n"
"PO-Revision-Date: 2023-07-24 13:05+0000\n"
"Last-Translator: Michaks <fexwex3@gmail.com>\n"
"Language-Team: Polish <https://hosted.weblate.org/projects/cartridges/"
"cartridges/pl/>\n"
"Language: pl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
"|| n%100>=20) ? 1 : 2;\n"
"X-Generator: Weblate 5.0-dev\n"
#: data/hu.kramo.Cartridges.desktop.in:3
#: data/hu.kramo.Cartridges.metainfo.xml.in:6
#: data/hu.kramo.Cartridges.metainfo.xml.in:30 data/gtk/window.blp:47
#: data/gtk/window.blp:80
msgid "Cartridges"
msgstr "Kartridże"
#: data/hu.kramo.Cartridges.desktop.in:4
msgid "Game Launcher"
msgstr "Launcher Gier"
#: data/hu.kramo.Cartridges.desktop.in:5
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
msgid "Launch all your games"
msgstr "Uruchom wszystkie swoje gry"
#: data/hu.kramo.Cartridges.desktop.in:11
#, fuzzy
#| msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;"
msgid ""
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
msgstr "gry;gaming;launcher;steam;lutris;heroic;bottles;itch;"
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
msgid ""
"Cartridges is a simple game launcher for all of your games. It has support "
"for importing games from Steam, Lutris, Heroic and more with no login "
"necessary. You can sort and hide games or download cover art from "
"SteamGridDB."
msgstr ""
"Cartridges to prosty launcher gier dla wszystkich twoich gier. Posiada "
"wsparcie dla importu gier ze Steam, Lutris, Heroic i innych bez konieczności "
"logowania. Możesz sortować i ukrywać gry lub pobierać okładki ze SteamGridDB."
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:288
#: src/details_window.py:71
msgid "Game Details"
msgstr "Szczegóły gry"
#: data/hu.kramo.Cartridges.metainfo.xml.in:38
msgid "Edit Game Details"
msgstr "Edycja szczegółów gry"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/help-overlay.blp:19
#: data/gtk/window.blp:515 src/details_window.py:271
#: src/importer/importer.py:319 src/importer/importer.py:370
msgid "Preferences"
msgstr "Preferencje"
#: data/gtk/details-window.blp:25
msgid "Cancel"
msgstr "Anuluj"
#: data/gtk/details-window.blp:55
msgid "New Cover"
msgstr "Nowa okładka"
#: data/gtk/details-window.blp:73
msgid "Delete Cover"
msgstr "Usuń osłonę"
#: data/gtk/details-window.blp:100 data/gtk/game.blp:80
msgid "Title"
msgstr "Tytuł"
#: data/gtk/details-window.blp:103
#, fuzzy
#| msgid "The developer or publisher (optional)"
msgid "Developer (optional)"
msgstr "Twórca lub wydawca (opcjonalnie)"
#: data/gtk/details-window.blp:108
msgid "Executable"
msgstr "Wykonywalne"
#: data/gtk/details-window.blp:114
msgid "Select File"
msgstr ""
#: data/gtk/details-window.blp:125
msgid "More Info"
msgstr "Więcej informacji"
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:415
msgid "Edit"
msgstr "Edytuj"
#: data/gtk/game.blp:107 src/window.py:350
msgid "Hide"
msgstr "Ukryj"
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:40
#: data/gtk/window.blp:435
msgid "Remove"
msgstr "Usuń"
#: data/gtk/game.blp:126 src/window.py:352
msgid "Unhide"
msgstr "Odkryj"
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:8
msgid "General"
msgstr "Ogólne"
#: data/gtk/help-overlay.blp:14 data/gtk/window.blp:184 data/gtk/window.blp:243
#: data/gtk/window.blp:446
msgid "Search"
msgstr "Szukaj"
#: data/gtk/help-overlay.blp:24 data/gtk/window.blp:520
msgid "Keyboard Shortcuts"
msgstr "Skróty klawiaturowe"
#: data/gtk/help-overlay.blp:29 src/game.py:105 src/preferences.py:125
#: src/importer/importer.py:394
msgid "Undo"
msgstr "Wróć"
#: data/gtk/help-overlay.blp:34
msgid "Quit"
msgstr "Wyjdź"
#: data/gtk/help-overlay.blp:39 data/gtk/window.blp:88 data/gtk/window.blp:164
msgid "Toggle Sidebar"
msgstr ""
#: data/gtk/help-overlay.blp:44 data/gtk/window.blp:177 data/gtk/window.blp:236
msgid "Main Menu"
msgstr "Menu główne"
#: data/gtk/help-overlay.blp:50
msgid "Games"
msgstr "Gry"
#: data/gtk/help-overlay.blp:53 data/gtk/window.blp:170 data/gtk/window.blp:534
msgid "Add Game"
msgstr "Dodaj grę"
#: data/gtk/help-overlay.blp:58 data/gtk/preferences.blp:68
#: data/gtk/window.blp:27 data/gtk/window.blp:541
msgid "Import"
msgstr "Importuj"
#: data/gtk/help-overlay.blp:63
#, fuzzy
#| msgid "Show hidden games"
msgid "Show Hidden Games"
msgstr "Pokaż ukryte gry"
#: data/gtk/help-overlay.blp:68
#, fuzzy
#| msgid "Remove game"
msgid "Remove Game"
msgstr "Usuń grę"
#: data/gtk/preferences.blp:12 data/gtk/preferences.blp:72
#: data/gtk/preferences.blp:278
msgid "Behavior"
msgstr "Zachowanie"
#: data/gtk/preferences.blp:15
msgid "Exit After Launching Games"
msgstr "Wyjdź po uruchomieniu gry"
#: data/gtk/preferences.blp:19
msgid "Cover Image Launches Game"
msgstr "Obraz okładki uruchamia grę"
#: data/gtk/preferences.blp:20
msgid "Swaps the behavior of the cover image and the play button"
msgstr "Zamienia zachowanie obrazu okładki i przycisku odtwarzania"
#: data/gtk/preferences.blp:25 src/details_window.py:85
msgid "Images"
msgstr "Obrazy"
#: data/gtk/preferences.blp:28
msgid "High Quality Images"
msgstr "Wysokiej jakości obrazy"
#: data/gtk/preferences.blp:29
msgid "Save game covers losslessly at the cost of storage"
msgstr "Zapisywanie okładek gier bezstratnie kosztem pamięci masowej"
#: data/gtk/preferences.blp:34
msgid "Danger Zone"
msgstr "Strefa zagrożenia"
#: data/gtk/preferences.blp:37
msgid "Remove All Games"
msgstr "Usuń wszystkie gry"
#: data/gtk/preferences.blp:75
#, fuzzy
#| msgid "Remove All Games"
msgid "Remove Uninstalled Games"
msgstr "Usuń wszystkie gry"
#: data/gtk/preferences.blp:80
msgid "Sources"
msgstr "Źródła"
#: data/gtk/preferences.blp:83 src/importer/sources/steam_source.py:114
msgid "Steam"
msgstr "Steam"
#: data/gtk/preferences.blp:87 data/gtk/preferences.blp:104
#: data/gtk/preferences.blp:141 data/gtk/preferences.blp:174
#: data/gtk/preferences.blp:191 data/gtk/preferences.blp:208
#: data/gtk/preferences.blp:225 data/gtk/preferences.blp:242
msgid "Install Location"
msgstr "Lokalizacja instalacji"
#: data/gtk/preferences.blp:100 src/importer/sources/lutris_source.py:92
msgid "Lutris"
msgstr "Lutris"
#: data/gtk/preferences.blp:116
msgid "Cache Location"
msgstr "Lokalizacja pamięci podręcznej"
#: data/gtk/preferences.blp:128
msgid "Import Steam Games"
msgstr "Importuj gry Steam"
#: data/gtk/preferences.blp:132
msgid "Import Flatpak Games"
msgstr "Importuj gry Flatpak"
#: data/gtk/preferences.blp:137 src/importer/sources/heroic_source.py:355
msgid "Heroic"
msgstr "Heroic"
#: data/gtk/preferences.blp:153
msgid "Import Epic Games"
msgstr "Zaimportuj Epic Games"
#: data/gtk/preferences.blp:157
msgid "Import GOG Games"
msgstr "Importuj gry z GOG"
#: data/gtk/preferences.blp:161
#, fuzzy
#| msgid "Import Steam Games"
msgid "Import Amazon Games"
msgstr "Importuj gry Steam"
#: data/gtk/preferences.blp:165
msgid "Import Sideloaded Games"
msgstr "Importuj gry w wersji Sideloaded"
#: data/gtk/preferences.blp:170 src/importer/sources/bottles_source.py:86
msgid "Bottles"
msgstr "Butelki"
#: data/gtk/preferences.blp:187 src/importer/sources/itch_source.py:81
msgid "itch"
msgstr "itch"
#: data/gtk/preferences.blp:204 src/importer/sources/legendary_source.py:97
msgid "Legendary"
msgstr "Legendarne"
#: data/gtk/preferences.blp:221 src/importer/sources/retroarch_source.py:142
msgid "RetroArch"
msgstr ""
#: data/gtk/preferences.blp:238 src/importer/sources/flatpak_source.py:118
msgid "Flatpak"
msgstr "Flatpak"
#: data/gtk/preferences.blp:254
msgid "Import Game Launchers"
msgstr "Importuj programy uruchamiające gry"
#: data/gtk/preferences.blp:259 src/importer/sources/desktop_source.py:217
msgid "Desktop Entries"
msgstr ""
#: data/gtk/preferences.blp:266
msgid "SteamGridDB"
msgstr "SteamGridDB"
#: data/gtk/preferences.blp:270
msgid "Authentication"
msgstr "Uwierzytelnianie"
#: data/gtk/preferences.blp:273
msgid "API Key"
msgstr "Klucz API"
#: data/gtk/preferences.blp:281
msgid "Use SteamGridDB"
msgstr "Użyj SteamGridDB"
#: data/gtk/preferences.blp:282
msgid "Download images when adding or importing games"
msgstr "Pobieranie obrazów podczas dodawania lub importowania gier"
#: data/gtk/preferences.blp:286
msgid "Prefer Over Official Images"
msgstr "Preferuj ponad Oficjalne zdjęcia"
#: data/gtk/preferences.blp:290
msgid "Prefer Animated Images"
msgstr "Preferuj animowane obrazy"
#: data/gtk/preferences.blp:296
#, fuzzy
#| msgid "Delete Cover"
msgid "Update Covers"
msgstr "Usuń osłonę"
#: data/gtk/preferences.blp:297
msgid "Fetch covers for games already in your library"
msgstr ""
#: data/gtk/preferences.blp:301
msgid "Update"
msgstr ""
#: data/gtk/window.blp:6 data/gtk/window.blp:14
msgid "No Games Found"
msgstr "Nie znaleziono żadnych gier"
#: data/gtk/window.blp:7 data/gtk/window.blp:15
msgid "Try a different search."
msgstr "Spróbuj innego wyszukiwania."
#: data/gtk/window.blp:21
msgid "No Games"
msgstr "Brak gier"
#: data/gtk/window.blp:22
msgid "Use the + button to add games."
msgstr "Użyj przycisku +, aby dodać gry."
#: data/gtk/window.blp:40
msgid "No Hidden Games"
msgstr "Brak ukrytych gier"
#: data/gtk/window.blp:41
msgid "Games you hide will appear here."
msgstr "Gry, które ukryjesz, pojawią się tutaj."
#: data/gtk/window.blp:75 data/gtk/window.blp:106 src/main.py:166
#, fuzzy
#| msgid "Remove All Games"
msgid "All Games"
msgstr "Usuń wszystkie gry"
#: data/gtk/window.blp:126 src/main.py:168
#, fuzzy
#| msgid "Added: {}"
msgid "Added"
msgstr "Dodano: {}"
#: data/gtk/window.blp:141
#, fuzzy
#| msgid "Import"
msgid "Imported"
msgstr "Importuj"
#: data/gtk/window.blp:229
msgid "Hidden Games"
msgstr "Ukryte gry"
#: data/gtk/window.blp:339
msgid "Game Title"
msgstr "Tytuł gry"
#: data/gtk/window.blp:396
msgid "Play"
msgstr "Graj"
#: data/gtk/window.blp:473
msgid "Sort"
msgstr "Sortuj"
#: data/gtk/window.blp:476
msgid "A-Z"
msgstr "A-Z"
#: data/gtk/window.blp:482
msgid "Z-A"
msgstr "Z-A"
#: data/gtk/window.blp:488
msgid "Newest"
msgstr "Najnowsza"
#: data/gtk/window.blp:494
msgid "Oldest"
msgstr "Najstarszy"
#: data/gtk/window.blp:500
msgid "Last Played"
msgstr "Ostatnio odtwarzane"
#: data/gtk/window.blp:507
msgid "Show Hidden"
msgstr "Pokaż ukryte"
#: data/gtk/window.blp:525
msgid "About Cartridges"
msgstr "O Kartridżach"
#. Translators: Replace this with your name for it to show up in the about window
#: src/main.py:208
msgid "translator_credits"
msgstr "kredyty tłumacza"
#. The variable is the date when the game was added
#: src/window.py:373
msgid "Added: {}"
msgstr "Dodano: {}"
#: src/window.py:376
msgid "Never"
msgstr "Nigdy"
#. The variable is the date when the game was last played
#: src/window.py:380
msgid "Last played: {}"
msgstr "Ostatnio grane: {}"
#: src/details_window.py:76
msgid "Apply"
msgstr "Zastosuj"
#: src/details_window.py:82
msgid "Add New Game"
msgstr "Dodaj nową Grę"
#: src/details_window.py:83
msgid "Add"
msgstr ""
#: src/details_window.py:93
#, fuzzy
#| msgid "Executable"
msgid "Executables"
msgstr "Wykonywalne"
#. Translate this string as you would translate "file"
#: src/details_window.py:108
msgid "file.txt"
msgstr "plik.txt"
#. As in software
#: src/details_window.py:110
msgid "program"
msgstr "program"
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:115 src/details_window.py:117
msgid "C:\\path\\to\\{}"
msgstr "C:\\scieżka\\do\\{}"
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:121 src/details_window.py:123
msgid "/path/to/{}"
msgstr "/ścieżka/do/{}"
#: src/details_window.py:128
msgid ""
"To launch the executable \"{}\", use the command:\n"
"\n"
"<tt>\"{}\"</tt>\n"
"\n"
"To open the file \"{}\" with the default application, use:\n"
"\n"
"<tt>{} \"{}\"</tt>\n"
"\n"
"If the path contains spaces, make sure to wrap it in double quotes!"
msgstr ""
"Aby uruchomić plik wykonywalny \"{}\", należy użyć polecenia:\n"
"\n"
"<tt>\"{}\"</tt>\n"
"\n"
"Aby otworzyć plik \"{}\" za pomocą domyślnej aplikacji, użyj:\n"
"\n"
"<tt>{} \"{}\"</tt>\n"
"\n"
"Jeśli ścieżka zawiera spacje, pamiętaj, aby zawinąć ją w podwójne cudzysłowy!"
#: src/details_window.py:171 src/details_window.py:177
msgid "Couldn't Add Game"
msgstr "Nie można było dodać gry"
#: src/details_window.py:171 src/details_window.py:213
msgid "Game title cannot be empty."
msgstr "Tytuł gry nie może być pusty."
#: src/details_window.py:177 src/details_window.py:221
msgid "Executable cannot be empty."
msgstr "Plik wykonywalny nie może być pusty."
#: src/details_window.py:212 src/details_window.py:220
msgid "Couldn't Apply Preferences"
msgstr "Nie można zastosować preferencji"
#. The variable is the title of the game
#: src/game.py:141
msgid "{} launched"
msgstr "{} uruchomiony"
#. The variable is the title of the game
#: src/game.py:155
msgid "{} hidden"
msgstr "{} ukryte"
#: src/game.py:155
msgid "{} unhidden"
msgstr "{} nieukryty"
#. The variable is the title of the game
#. The variable is the number of games removed
#: src/game.py:169 src/importer/importer.py:391
msgid "{} removed"
msgstr "{} usunięty"
#: src/preferences.py:124
msgid "All games removed"
msgstr "Wszystkie gry usunięte"
#: src/preferences.py:172
msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr ""
"Do korzystania z SteamGridDB wymagany jest klucz API. Możesz go wygenerować "
"{} tutaj{}."
#: src/preferences.py:184
#, fuzzy
#| msgid "Importing Covers…"
msgid "Downloading covers…"
msgstr "Importowanie okładek…"
#: src/preferences.py:203
msgid "Covers updated"
msgstr ""
#: src/preferences.py:335
msgid "Installation Not Found"
msgstr "Nie znaleziono instalacji"
#: src/preferences.py:336
msgid "Select a valid directory."
msgstr "Wybierz prawidłowy katalog."
#: src/preferences.py:372 src/importer/importer.py:317
msgid "Warning"
msgstr ""
#: src/preferences.py:406
msgid "Invalid Directory"
msgstr "Nieprawidłowy katalog"
#: src/preferences.py:412
msgid "Set Location"
msgstr "Ustaw położenie"
#: src/utils/create_dialog.py:33 src/importer/importer.py:318
msgid "Dismiss"
msgstr "Odrzucić"
#: src/importer/importer.py:145
msgid "Importing Games…"
msgstr "Importowanie gier…"
#: src/importer/importer.py:338
msgid "The following errors occured during import:"
msgstr ""
#: src/importer/importer.py:367
#, fuzzy
#| msgid "No Games Found"
msgid "No new games found"
msgstr "Nie znaleziono żadnych gier"
#: src/importer/importer.py:379
#, fuzzy
#| msgid "Game Imported"
msgid "1 game imported"
msgstr "Gra Importowana"
#. The variable is the number of games
#: src/importer/importer.py:383
#, fuzzy
#| msgid "Games Imported"
msgid "{} games imported"
msgstr "Gry Przywiezione"
#. A single game removed
#: src/importer/importer.py:387
#, fuzzy
#| msgid "{} removed"
msgid "1 removed"
msgstr "{} usunięty"
#. The variable is the name of the source
#: src/importer/sources/location.py:33
msgid "Select the {} cache directory."
msgstr "Wybierz katalog pamięci podręcznej {}."
#. The variable is the name of the source
#: src/importer/sources/location.py:35
msgid "Select the {} configuration directory."
msgstr "Wybierz katalog konfiguracyjny {}."
#. The variable is the name of the source
#: src/importer/sources/location.py:37
msgid "Select the {} data directory."
msgstr "Wybierz katalog z danymi {}."
#: src/store/managers/sgdb_manager.py:46
msgid "Couldn't Authenticate SteamGridDB"
msgstr "Nie można uwierzytelnić SteamGridDB"
#: src/store/managers/sgdb_manager.py:47
msgid "Verify your API key in preferences"
msgstr "Zweryfikuj swój klucz API w preferencjach"
#: src/importer/sources/retroarch_source.py:129
msgid "No RetroArch Core Selected"
msgstr ""
#. The variable is a newline separated list of playlists
#: src/importer/sources/retroarch_source.py:131
msgid "The following playlists have no default core:"
msgstr ""
#: src/importer/sources/retroarch_source.py:133
msgid "Games with no core selected were not imported"
msgstr ""
#~ msgid "Library"
#~ msgstr "Biblioteka"
#~ msgid "Show preferences"
#~ msgstr "Pokaż preferencje"
#~ msgid "Shortcuts"
#~ msgstr "Skróty"
#~ msgid "Open menu"
#~ msgstr "Otwórz menu"
#~ msgid "Add new game"
#~ msgstr "Dodaj nową gre"
#~ msgid "Import games"
#~ msgstr "Importuj gry"
#~ msgid "Back"
#~ msgstr "Powrót"
#, fuzzy
#~| msgid "Search"
#~ msgid "Search games"
#~ msgstr "Szukaj"
#, fuzzy
#~| msgid "Show hidden games"
#~ msgid "Search hidden games"
#~ msgstr "Pokaż ukryte gry"
#~ msgid "The title of the game"
#~ msgstr "Tytuł Gry"
#~ msgid "Developer"
#~ msgstr "Deweloper"
#~ msgid "File to open or command to run when launching the game"
#~ msgstr ""
#~ "Plik do otwarcia lub polecenie do uruchomienia podczas uruchamiania gry"
#~ msgid "Confirm"
#~ msgstr "Potwierdź"
#, fuzzy
#~| msgid "Cache Not Found"
#~ msgid "Directory not Valid"
#~ msgstr "Nie znaleziono pamięci podręcznej"
#, fuzzy
#~| msgid "Confirm"
#~ msgid "Configuration"
#~ msgstr "Potwierdź"
#~ msgid "Steam Install Location"
#~ msgstr "Lokalizacja instalacji Steam"
#~ msgid "Lutris Install Location"
#~ msgstr "Lokalizacja instalacji Lutris"
#~ msgid "Heroic Install Location"
#~ msgstr "Lokalizacja instalacji Heroic"
#~ msgid "Bottles Install Location"
#~ msgstr "Butelki Miejsce montażu"
#~ msgid "Today"
#~ msgstr "Dzisiaj"
#~ msgid "Yesterday"
#~ msgstr "Wczoraj"
#~ msgid "Select the Lutris cache directory."
#~ msgstr "Wybierz katalog pamięci podręcznej Lutris."
#~ msgid "Directory to use when importing games"
#~ msgstr "Katalog używany podczas importowania gier"
#~ msgid "Extra Steam Libraries"
#~ msgstr "Dodatkowe biblioteki Steam"
#~ msgid "Select other directories where you have Steam games installed"
#~ msgstr "Wybierz inne katalogi, w których masz zainstalowane gry Steam"
#~ msgid "Clear"
#~ msgstr "Wyczyść"
#~ msgid "Directory to use when importing game covers"
#~ msgstr "Katalog do użycia podczas importowania okładek gier"
#~ msgid "Details"
#~ msgstr "Szczegóły"
#~ msgid "No new games were found on your system."
#~ msgstr "W systemie nie znaleziono żadnych nowych gier."
#~ msgid "Successfully imported 1 game."
#~ msgstr "Udało się zaimportować 1 grę."
#~ msgid "Successfully imported {} games."
#~ msgstr "Udało się zaimportować {} gier."
#~ msgid ""
#~ "Looks like you have multiple Steam libraries. Would you like to add them "
#~ "in preferences?"
#~ msgstr ""
#~ "Wygląda na to, że masz wiele bibliotek Steam. Czy chciałbyś dodać je w "
#~ "preferencjach?"

833
po/pt.po

File diff suppressed because it is too large Load Diff

View File

@@ -1,738 +0,0 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR kramo
# This file is distributed under the same license as the Cartridges package.
# Henrique Machado <henriquecamposrj@gmail.com>, 2023.
# Vinícius Gama Santos <vinny.stalck@protonmail.com>, 2023.
# Vítor Fernandes Almado <vfalmado@gmail.com>, 2023.
# Rafael Fontenelle <rafaelff@gnome.org>, 2023.
msgid ""
msgstr ""
"Project-Id-Version: Cartridges\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-26 13:51+0200\n"
"PO-Revision-Date: 2023-09-26 07:17+0000\n"
"Last-Translator: Rafael Fontenelle <rafaelff@gnome.org>\n"
"Language-Team: Portuguese (Brazil) <https://hosted.weblate.org/projects/"
"cartridges/cartridges/pt_BR/>\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 5.1-dev\n"
#: data/hu.kramo.Cartridges.desktop.in:3
#: data/hu.kramo.Cartridges.metainfo.xml.in:6
#: data/hu.kramo.Cartridges.metainfo.xml.in:30 data/gtk/window.blp:47
#: data/gtk/window.blp:80
msgid "Cartridges"
msgstr "Cartuchos"
#: data/hu.kramo.Cartridges.desktop.in:4
msgid "Game Launcher"
msgstr "Iniciador de jogos"
#: data/hu.kramo.Cartridges.desktop.in:5
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
msgid "Launch all your games"
msgstr "Inicie todos os seus jogos"
#: data/hu.kramo.Cartridges.desktop.in:11
msgid ""
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
msgstr ""
"Jogos;lançador;gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;"
"legendary;"
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
msgid ""
"Cartridges is a simple game launcher for all of your games. It has support "
"for importing games from Steam, Lutris, Heroic and more with no login "
"necessary. You can sort and hide games or download cover art from "
"SteamGridDB."
msgstr ""
"Cartuchos é um simples iniciador de jogos para todos os seus jogos. Ele tem "
"suporte para importar jogos do Steam, Lutris, Heroic e outros, sem "
"necessidade de login. Você pode ordenar e esconder jogos ou baixar arte de "
"capa do SteamGridDB."
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:288
#: src/details_window.py:71
msgid "Game Details"
msgstr "Detalhes do jogo"
#: data/hu.kramo.Cartridges.metainfo.xml.in:38
msgid "Edit Game Details"
msgstr "Editar detalhes do jogo"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/help-overlay.blp:19
#: data/gtk/window.blp:515 src/details_window.py:271
#: src/importer/importer.py:319 src/importer/importer.py:370
msgid "Preferences"
msgstr "Preferências"
#: data/gtk/details-window.blp:25
msgid "Cancel"
msgstr "Cancelar"
#: data/gtk/details-window.blp:55
msgid "New Cover"
msgstr "Nova capa"
#: data/gtk/details-window.blp:73
msgid "Delete Cover"
msgstr "Excluir capa"
#: data/gtk/details-window.blp:100 data/gtk/game.blp:80
msgid "Title"
msgstr "Título"
#: data/gtk/details-window.blp:103
msgid "Developer (optional)"
msgstr "Desenvolvedor (opcional)"
#: data/gtk/details-window.blp:108
msgid "Executable"
msgstr "Executável"
#: data/gtk/details-window.blp:114
msgid "Select File"
msgstr "Selecionar arquivo"
#: data/gtk/details-window.blp:125
msgid "More Info"
msgstr "Mais informações"
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:415
msgid "Edit"
msgstr "Editar"
#: data/gtk/game.blp:107 src/window.py:350
msgid "Hide"
msgstr "Esconder"
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:40
#: data/gtk/window.blp:435
msgid "Remove"
msgstr "Remover"
#: data/gtk/game.blp:126 src/window.py:352
msgid "Unhide"
msgstr "Exibir"
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:8
msgid "General"
msgstr "Geral"
#: data/gtk/help-overlay.blp:14 data/gtk/window.blp:184 data/gtk/window.blp:243
#: data/gtk/window.blp:446
msgid "Search"
msgstr "Buscar"
#: data/gtk/help-overlay.blp:24 data/gtk/window.blp:520
msgid "Keyboard Shortcuts"
msgstr "Atalhos de teclado"
#: data/gtk/help-overlay.blp:29 src/game.py:105 src/preferences.py:125
#: src/importer/importer.py:394
msgid "Undo"
msgstr "Desfazer"
#: data/gtk/help-overlay.blp:34
msgid "Quit"
msgstr "Sair"
#: data/gtk/help-overlay.blp:39 data/gtk/window.blp:88 data/gtk/window.blp:164
msgid "Toggle Sidebar"
msgstr "Alternar barra lateral"
#: data/gtk/help-overlay.blp:44 data/gtk/window.blp:177 data/gtk/window.blp:236
msgid "Main Menu"
msgstr "Menu Principal"
#: data/gtk/help-overlay.blp:50
msgid "Games"
msgstr "Jogos"
#: data/gtk/help-overlay.blp:53 data/gtk/window.blp:170 data/gtk/window.blp:534
msgid "Add Game"
msgstr "Adicionar jogo"
#: data/gtk/help-overlay.blp:58 data/gtk/preferences.blp:68
#: data/gtk/window.blp:27 data/gtk/window.blp:541
msgid "Import"
msgstr "Importar"
#: data/gtk/help-overlay.blp:63
msgid "Show Hidden Games"
msgstr "Exibir jogos ocultos"
#: data/gtk/help-overlay.blp:68
msgid "Remove Game"
msgstr "Remover jogo"
#: data/gtk/preferences.blp:12 data/gtk/preferences.blp:72
#: data/gtk/preferences.blp:278
msgid "Behavior"
msgstr "Comportamento"
#: data/gtk/preferences.blp:15
msgid "Exit After Launching Games"
msgstr "Fechar ao iniciar jogos"
#: data/gtk/preferences.blp:19
msgid "Cover Image Launches Game"
msgstr "Imagem da capa inicia o jogo"
#: data/gtk/preferences.blp:20
msgid "Swaps the behavior of the cover image and the play button"
msgstr "Troca o comportamento da imagem da capa e do botão jogar"
#: data/gtk/preferences.blp:25 src/details_window.py:85
msgid "Images"
msgstr "Imagens"
#: data/gtk/preferences.blp:28
msgid "High Quality Images"
msgstr "Imagens de alta qualidade"
#: data/gtk/preferences.blp:29
msgid "Save game covers losslessly at the cost of storage"
msgstr "Salva capas de jogos sem perdas, consumindo mais armazenamento"
#: data/gtk/preferences.blp:34
msgid "Danger Zone"
msgstr "Zona de Perigo"
#: data/gtk/preferences.blp:37
msgid "Remove All Games"
msgstr "Remover todos os jogos"
#: data/gtk/preferences.blp:75
msgid "Remove Uninstalled Games"
msgstr "Remover jogos desinstalados"
#: data/gtk/preferences.blp:80
msgid "Sources"
msgstr "Fontes"
#: data/gtk/preferences.blp:83 src/importer/sources/steam_source.py:114
msgid "Steam"
msgstr "Steam"
#: data/gtk/preferences.blp:87 data/gtk/preferences.blp:104
#: data/gtk/preferences.blp:141 data/gtk/preferences.blp:174
#: data/gtk/preferences.blp:191 data/gtk/preferences.blp:208
#: data/gtk/preferences.blp:225 data/gtk/preferences.blp:242
msgid "Install Location"
msgstr "Local de instalação"
#: data/gtk/preferences.blp:100 src/importer/sources/lutris_source.py:92
msgid "Lutris"
msgstr "Lutris"
#: data/gtk/preferences.blp:116
msgid "Cache Location"
msgstr "Local do cache"
#: data/gtk/preferences.blp:128
msgid "Import Steam Games"
msgstr "Importar jogos do Steam"
#: data/gtk/preferences.blp:132
msgid "Import Flatpak Games"
msgstr "Importar jogos do Flatpak"
#: data/gtk/preferences.blp:137 src/importer/sources/heroic_source.py:355
msgid "Heroic"
msgstr "Heroic"
#: data/gtk/preferences.blp:153
msgid "Import Epic Games"
msgstr "Importar jogos da Epic Games"
#: data/gtk/preferences.blp:157
msgid "Import GOG Games"
msgstr "Importar jogos do GOG"
#: data/gtk/preferences.blp:161
msgid "Import Amazon Games"
msgstr "Importar jogos da Amazon"
#: data/gtk/preferences.blp:165
msgid "Import Sideloaded Games"
msgstr "Importar jogos adicionados manualmente"
#: data/gtk/preferences.blp:170 src/importer/sources/bottles_source.py:86
msgid "Bottles"
msgstr "Garrafas"
#: data/gtk/preferences.blp:187 src/importer/sources/itch_source.py:81
msgid "itch"
msgstr "itch"
#: data/gtk/preferences.blp:204 src/importer/sources/legendary_source.py:97
msgid "Legendary"
msgstr "Lendário"
#: data/gtk/preferences.blp:221 src/importer/sources/retroarch_source.py:142
msgid "RetroArch"
msgstr "RetroArch"
#: data/gtk/preferences.blp:238 src/importer/sources/flatpak_source.py:118
msgid "Flatpak"
msgstr "Flatpak"
#: data/gtk/preferences.blp:254
msgid "Import Game Launchers"
msgstr "Importar iniciadores de jogos"
#: data/gtk/preferences.blp:259 src/importer/sources/desktop_source.py:217
msgid "Desktop Entries"
msgstr "Entradas desktop"
#: data/gtk/preferences.blp:266
msgid "SteamGridDB"
msgstr "SteamGridDB"
#: data/gtk/preferences.blp:270
msgid "Authentication"
msgstr "Autenticação"
#: data/gtk/preferences.blp:273
msgid "API Key"
msgstr "Chave da API"
#: data/gtk/preferences.blp:281
msgid "Use SteamGridDB"
msgstr "Usar SteamGridDB"
#: data/gtk/preferences.blp:282
msgid "Download images when adding or importing games"
msgstr "Baixar imagens ao adicionar ou importar jogos"
#: data/gtk/preferences.blp:286
msgid "Prefer Over Official Images"
msgstr "Preferir mais que as imagens oficiais"
#: data/gtk/preferences.blp:290
msgid "Prefer Animated Images"
msgstr "Preferir imagens animadas"
#: data/gtk/preferences.blp:296
#, fuzzy
#| msgid "Delete Cover"
msgid "Update Covers"
msgstr "Excluir capa"
#: data/gtk/preferences.blp:297
msgid "Fetch covers for games already in your library"
msgstr ""
#: data/gtk/preferences.blp:301
msgid "Update"
msgstr ""
#: data/gtk/window.blp:6 data/gtk/window.blp:14
msgid "No Games Found"
msgstr "Nenhum jogo encontrado"
#: data/gtk/window.blp:7 data/gtk/window.blp:15
msgid "Try a different search."
msgstr "Tente uma busca diferente."
#: data/gtk/window.blp:21
msgid "No Games"
msgstr "Sem jogos"
#: data/gtk/window.blp:22
msgid "Use the + button to add games."
msgstr "Use o botão + para adicionar jogos."
#: data/gtk/window.blp:40
msgid "No Hidden Games"
msgstr "Sem jogos ocultos"
#: data/gtk/window.blp:41
msgid "Games you hide will appear here."
msgstr "Os jogos ocultos aparecerão aqui."
#: data/gtk/window.blp:75 data/gtk/window.blp:106 src/main.py:166
msgid "All Games"
msgstr "Todos os jogos"
#: data/gtk/window.blp:126 src/main.py:168
msgid "Added"
msgstr "Adicionado"
#: data/gtk/window.blp:141
msgid "Imported"
msgstr "Importado"
#: data/gtk/window.blp:229
msgid "Hidden Games"
msgstr "Jogos ocultos"
#: data/gtk/window.blp:339
msgid "Game Title"
msgstr "Título do jogo"
#: data/gtk/window.blp:396
msgid "Play"
msgstr "Jogar"
#: data/gtk/window.blp:473
msgid "Sort"
msgstr "Ordenar"
#: data/gtk/window.blp:476
msgid "A-Z"
msgstr "A-Z"
#: data/gtk/window.blp:482
msgid "Z-A"
msgstr "Z-A"
#: data/gtk/window.blp:488
msgid "Newest"
msgstr "Mais novo"
#: data/gtk/window.blp:494
msgid "Oldest"
msgstr "Mais antigo"
#: data/gtk/window.blp:500
msgid "Last Played"
msgstr "Última vez jogado"
#: data/gtk/window.blp:507
msgid "Show Hidden"
msgstr "Mostrar ocultados"
#: data/gtk/window.blp:525
msgid "About Cartridges"
msgstr "Sobre o Cartuchos"
#. Translators: Replace this with your name for it to show up in the about window
#: src/main.py:208
msgid "translator_credits"
msgstr "Pedro Sader Azevedo, Vinícius \"Stalck\""
#. The variable is the date when the game was added
#: src/window.py:373
msgid "Added: {}"
msgstr "Adicionado: {}"
#: src/window.py:376
msgid "Never"
msgstr "Nunca"
#. The variable is the date when the game was last played
#: src/window.py:380
msgid "Last played: {}"
msgstr "Jogado pela última vez: {}"
#: src/details_window.py:76
msgid "Apply"
msgstr "Aplicar"
#: src/details_window.py:82
msgid "Add New Game"
msgstr "Adicionar novo jogo"
#: src/details_window.py:83
msgid "Add"
msgstr "Adicionar"
#: src/details_window.py:93
msgid "Executables"
msgstr "Executáveis"
#. Translate this string as you would translate "file"
#: src/details_window.py:108
msgid "file.txt"
msgstr "arquivo.txt"
#. As in software
#: src/details_window.py:110
msgid "program"
msgstr "programa"
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:115 src/details_window.py:117
msgid "C:\\path\\to\\{}"
msgstr "C:\\caminho\\para\\{}"
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:121 src/details_window.py:123
msgid "/path/to/{}"
msgstr "/caminho/para/{}"
#: src/details_window.py:128
msgid ""
"To launch the executable \"{}\", use the command:\n"
"\n"
"<tt>\"{}\"</tt>\n"
"\n"
"To open the file \"{}\" with the default application, use:\n"
"\n"
"<tt>{} \"{}\"</tt>\n"
"\n"
"If the path contains spaces, make sure to wrap it in double quotes!"
msgstr ""
"Para iniciar o executável \"{}\", use o comando:\n"
"\n"
"<tt>\"{}\"</tt>\n"
"\n"
"Para abrir o arquivo \"{}\" com o aplicativo padrão, use:\n"
"\n"
"<tt>{} \"{}\"</tt>\n"
"\n"
"Se o caminho contiver espaços, certifique-se de colocá-lo entre aspas duplas!"
#: src/details_window.py:171 src/details_window.py:177
msgid "Couldn't Add Game"
msgstr "Não foi possível adicionar o jogo"
#: src/details_window.py:171 src/details_window.py:213
msgid "Game title cannot be empty."
msgstr "O título do jogo não pode estar vazio."
#: src/details_window.py:177 src/details_window.py:221
msgid "Executable cannot be empty."
msgstr "O executável não pode estar vazio."
#: src/details_window.py:212 src/details_window.py:220
msgid "Couldn't Apply Preferences"
msgstr "Não foi possível aplicar as preferências"
#. The variable is the title of the game
#: src/game.py:141
msgid "{} launched"
msgstr "{} iniciado"
#. The variable is the title of the game
#: src/game.py:155
msgid "{} hidden"
msgstr "{} ocultado"
#: src/game.py:155
msgid "{} unhidden"
msgstr "{} exibido"
#. The variable is the title of the game
#. The variable is the number of games removed
#: src/game.py:169 src/importer/importer.py:391
msgid "{} removed"
msgstr "{} removido"
#: src/preferences.py:124
msgid "All games removed"
msgstr "Todos os jogos foram removidos"
#: src/preferences.py:172
msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr ""
"Uma chave de API é necessária para utilizar o SteamGridDB. Você pode gerar "
"uma {}aqui{}."
#: src/preferences.py:184
#, fuzzy
#| msgid "Importing Covers…"
msgid "Downloading covers…"
msgstr "Importando capas…"
#: src/preferences.py:203
msgid "Covers updated"
msgstr ""
#: src/preferences.py:335
msgid "Installation Not Found"
msgstr "Instalação não encontrada"
#: src/preferences.py:336
msgid "Select a valid directory."
msgstr "Selecione um diretório válido."
#: src/preferences.py:372 src/importer/importer.py:317
msgid "Warning"
msgstr "Atenção"
#: src/preferences.py:406
msgid "Invalid Directory"
msgstr "Diretório inválido"
#: src/preferences.py:412
msgid "Set Location"
msgstr "Definir local"
#: src/utils/create_dialog.py:33 src/importer/importer.py:318
msgid "Dismiss"
msgstr "Dispensar"
#: src/importer/importer.py:145
msgid "Importing Games…"
msgstr "Importando jogos…"
#: src/importer/importer.py:338
msgid "The following errors occured during import:"
msgstr "Ocorreram os seguintes erros durante a importação:"
#: src/importer/importer.py:367
msgid "No new games found"
msgstr "Nenhum jogo novo encontrado"
#: src/importer/importer.py:379
msgid "1 game imported"
msgstr "1 jogo importado"
#. The variable is the number of games
#: src/importer/importer.py:383
msgid "{} games imported"
msgstr "{} jogos importados"
#. A single game removed
#: src/importer/importer.py:387
msgid "1 removed"
msgstr "1 removido"
#. The variable is the name of the source
#: src/importer/sources/location.py:33
msgid "Select the {} cache directory."
msgstr "Selecione o diretório de cache {}."
#. The variable is the name of the source
#: src/importer/sources/location.py:35
msgid "Select the {} configuration directory."
msgstr "Selecione o diretório de configuração do(a) {}."
#. The variable is the name of the source
#: src/importer/sources/location.py:37
msgid "Select the {} data directory."
msgstr "Selecione o diretório de dados do(a) {}."
#: src/store/managers/sgdb_manager.py:46
msgid "Couldn't Authenticate SteamGridDB"
msgstr "Não foi possível autenticar no SteamGridDB"
#: src/store/managers/sgdb_manager.py:47
msgid "Verify your API key in preferences"
msgstr "Verifique sua chave de API nas preferências"
#: src/importer/sources/retroarch_source.py:129
msgid "No RetroArch Core Selected"
msgstr "Nenhum núcleo RetroArch selecionado"
#. The variable is a newline separated list of playlists
#: src/importer/sources/retroarch_source.py:131
msgid "The following playlists have no default core:"
msgstr "As seguintes listas de jogos não têm núcleo padrão:"
#: src/importer/sources/retroarch_source.py:133
msgid "Games with no core selected were not imported"
msgstr "Jogos sem núcleo selecionado não foram importados"
#~ msgid "Library"
#~ msgstr "Biblioteca"
#~ msgid "Show preferences"
#~ msgstr "Mostrar preferências"
#~ msgid "Shortcuts"
#~ msgstr "Atalhos"
#~ msgid "Open menu"
#~ msgstr "Abrir menu"
#~ msgid "Add new game"
#~ msgstr "Adicionar novo jogo"
#~ msgid "Import games"
#~ msgstr "Importar jogos"
#~ msgid "Back"
#~ msgstr "Voltar"
#~ msgid "Search games"
#~ msgstr "Buscar jogos"
#~ msgid "Search hidden games"
#~ msgstr "Buscar jogos ocultos"
#~ msgid "The title of the game"
#~ msgstr "O título do jogo"
#~ msgid "Developer"
#~ msgstr "Desenvolvedor"
#~ msgid "File to open or command to run when launching the game"
#~ msgstr "Arquivo a ser aberto ou comando a ser executado ao iniciar o jogo"
#~ msgid "Confirm"
#~ msgstr "Confirmar"
#, fuzzy
#~| msgid "Cache Not Found"
#~ msgid "Directory not Valid"
#~ msgstr "Cache não encontrado"
#, fuzzy
#~| msgid "Confirm"
#~ msgid "Configuration"
#~ msgstr "Confirmar"
#~ msgid "Steam Install Location"
#~ msgstr "Local de instalação do Steam"
#~ msgid "Lutris Install Location"
#~ msgstr "Local de instalação do Lutris"
#~ msgid "Heroic Install Location"
#~ msgstr "Local de instalação do Heroic"
#~ msgid "Bottles Install Location"
#~ msgstr "Local de instalação do Garrafas"
#~ msgid "Today"
#~ msgstr "Hoje"
#~ msgid "Yesterday"
#~ msgstr "Ontem"
#~ msgid "Select the Lutris cache directory."
#~ msgstr "Selecione o diretório de cache do Lutris."
#~ msgid "Directory to use when importing games"
#~ msgstr "Diretório para usar ao importar jogos"
#~ msgid "Extra Steam Libraries"
#~ msgstr "Bibliotecas adicionais da Steam"
#~ msgid "Select other directories where you have Steam games installed"
#~ msgstr "Selecione outros diretórios onde você tem jogos da Steam instalados"
#~ msgid "Clear"
#~ msgstr "Limpar"
#~ msgid "Directory to use when importing game covers"
#~ msgstr "Diretório para usar ao importar imagens das capas dos jogos"
#~ msgid "Details"
#~ msgstr "Detalhes"
#~ msgid "No new games were found on your system."
#~ msgstr "Nenhum jogo novo foi encontrado no seu sistema."
#~ msgid "Successfully imported 1 game."
#~ msgstr "1 jogo foi importado com sucesso."
#~ msgid "Successfully imported {} games."
#~ msgstr "{} jogos foram importados com sucesso."
#~ msgid ""
#~ "Looks like you have multiple Steam libraries. Would you like to add them "
#~ "in preferences?"
#~ msgstr ""
#~ "Parece que você tem múltiplas bibliotecas Steam. Gostaria de adicioná-las "
#~ "nas preferências?"

648
po/ro.po
View File

@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Cartridges\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-26 13:51+0200\n"
"POT-Creation-Date: 2023-04-11 23:33+0200\n"
"PO-Revision-Date: 2023-04-04 17:12+0000\n"
"Last-Translator: Matt C <matei.gurzu@gmail.com>\n"
"Language-Team: Romanian <https://hosted.weblate.org/projects/cartridges/"
@@ -20,9 +20,8 @@ msgstr ""
"X-Generator: Weblate 4.17-dev\n"
#: data/hu.kramo.Cartridges.desktop.in:3
#: data/hu.kramo.Cartridges.metainfo.xml.in:6
#: data/hu.kramo.Cartridges.metainfo.xml.in:30 data/gtk/window.blp:47
#: data/gtk/window.blp:80
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:29
#: src/main.py:119
msgid "Cartridges"
msgstr "Cartușe"
@@ -35,11 +34,6 @@ msgstr "Lansator de jocuri"
msgid "Launch all your games"
msgstr "Lansați toate jocurile dvs"
#: data/hu.kramo.Cartridges.desktop.in:11
msgid ""
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
msgstr ""
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
#, fuzzy
#| msgid ""
@@ -56,427 +50,467 @@ msgstr ""
"jocurilor dvs. din Steam, Heroic și Bottles cu funcții de organizare, cum ar "
"fi ascunderea și sortarea după data adăugată sau ultima dată jucată."
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:288
#: src/details_window.py:71
msgid "Game Details"
msgstr "Detalii joc"
#: data/hu.kramo.Cartridges.metainfo.xml.in:22
msgid "Library"
msgstr "Bibliotecă"
#: data/hu.kramo.Cartridges.metainfo.xml.in:38
#: data/hu.kramo.Cartridges.metainfo.xml.in:26
#: src/utils/create_details_window.py:87
msgid "Edit Game Details"
msgstr "Editați detaliile jocului"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/help-overlay.blp:19
#: data/gtk/window.blp:515 src/details_window.py:271
#: src/importer/importer.py:319 src/importer/importer.py:370
#: data/hu.kramo.Cartridges.metainfo.xml.in:30 data/gtk/window.blp:51
msgid "Game Details"
msgstr "Detalii joc"
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:402
#: src/utils/importer.py:94 src/utils/importer.py:123 src/utils/importer.py:148
#: src/utils/steamgriddb.py:116
msgid "Preferences"
msgstr "Preferințe"
#: data/gtk/details-window.blp:25
msgid "Cancel"
msgstr ""
#: data/gtk/details-window.blp:55
msgid "New Cover"
msgstr ""
#: data/gtk/details-window.blp:73
msgid "Delete Cover"
msgstr ""
#: data/gtk/details-window.blp:100 data/gtk/game.blp:80
#: data/gtk/game.blp:67 src/utils/create_details_window.py:129
msgid "Title"
msgstr ""
#: data/gtk/details-window.blp:103
msgid "Developer (optional)"
msgstr ""
#: data/gtk/details-window.blp:108
msgid "Executable"
msgstr ""
#: data/gtk/details-window.blp:114
msgid "Select File"
msgstr ""
#: data/gtk/details-window.blp:125
msgid "More Info"
msgstr ""
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:415
#: data/gtk/game.blp:89 data/gtk/game.blp:108 data/gtk/window.blp:170
msgid "Edit"
msgstr ""
#: data/gtk/game.blp:107 src/window.py:350
#: data/gtk/game.blp:94 src/window.py:286
msgid "Hide"
msgstr ""
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:40
#: data/gtk/window.blp:435
#: data/gtk/game.blp:99 data/gtk/game.blp:118 data/gtk/preferences.blp:56
#: data/gtk/window.blp:186
msgid "Remove"
msgstr ""
#: data/gtk/game.blp:126 src/window.py:352
#: data/gtk/game.blp:113 src/window.py:283
msgid "Unhide"
msgstr ""
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:8
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:9
msgid "General"
msgstr ""
#: data/gtk/help-overlay.blp:14 data/gtk/window.blp:184 data/gtk/window.blp:243
#: data/gtk/window.blp:446
msgid "Search"
msgstr "Căutare"
#: data/gtk/help-overlay.blp:24 data/gtk/window.blp:520
msgid "Keyboard Shortcuts"
msgstr ""
#: data/gtk/help-overlay.blp:29 src/game.py:105 src/preferences.py:125
#: src/importer/importer.py:394
msgid "Undo"
msgstr ""
#: data/gtk/help-overlay.blp:34
#: data/gtk/help-overlay.blp:14
msgid "Quit"
msgstr ""
#: data/gtk/help-overlay.blp:39 data/gtk/window.blp:88 data/gtk/window.blp:164
msgid "Toggle Sidebar"
#: data/gtk/help-overlay.blp:19 data/gtk/window.blp:205 data/gtk/window.blp:249
#: data/gtk/window.blp:312
msgid "Search"
msgstr "Căutare"
#: data/gtk/help-overlay.blp:24
msgid "Show preferences"
msgstr ""
#: data/gtk/help-overlay.blp:44 data/gtk/window.blp:177 data/gtk/window.blp:236
msgid "Main Menu"
msgstr "Meniu principal"
#: data/gtk/help-overlay.blp:29
msgid "Shortcuts"
msgstr ""
#: data/gtk/help-overlay.blp:50
#: data/gtk/help-overlay.blp:34 src/main.py:186 src/main.py:242
#: src/preferences.py:133
msgid "Undo"
msgstr ""
#: data/gtk/help-overlay.blp:39
msgid "Open menu"
msgstr ""
#: data/gtk/help-overlay.blp:45
msgid "Games"
msgstr ""
#: data/gtk/help-overlay.blp:53 data/gtk/window.blp:170 data/gtk/window.blp:534
msgid "Add Game"
msgstr "Adăugați joc"
#: data/gtk/help-overlay.blp:48
msgid "Add new game"
msgstr ""
#: data/gtk/help-overlay.blp:58 data/gtk/preferences.blp:68
#: data/gtk/window.blp:27 data/gtk/window.blp:541
msgid "Import"
#: data/gtk/help-overlay.blp:53
msgid "Import games"
msgstr ""
#: data/gtk/help-overlay.blp:58
msgid "Show hidden games"
msgstr ""
#: data/gtk/help-overlay.blp:63
#, fuzzy
#| msgid "No Hidden Games"
msgid "Show Hidden Games"
msgstr "Fără jocuri ascunse"
msgid "Remove game"
msgstr ""
#: data/gtk/help-overlay.blp:68
#, fuzzy
#| msgid "No Games"
msgid "Remove Game"
msgstr "Fără jocuri"
#: data/gtk/preferences.blp:12 data/gtk/preferences.blp:72
#: data/gtk/preferences.blp:278
#: data/gtk/preferences.blp:13 data/gtk/preferences.blp:235
msgid "Behavior"
msgstr ""
#: data/gtk/preferences.blp:15
#: data/gtk/preferences.blp:16
msgid "Exit After Launching Games"
msgstr ""
#: data/gtk/preferences.blp:19
#: data/gtk/preferences.blp:25
msgid "Cover Image Launches Game"
msgstr ""
#: data/gtk/preferences.blp:20
#: data/gtk/preferences.blp:26
msgid "Swaps the behavior of the cover image and the play button"
msgstr ""
#: data/gtk/preferences.blp:25 src/details_window.py:85
#: data/gtk/preferences.blp:36 src/utils/create_details_window.py:101
msgid "Images"
msgstr ""
#: data/gtk/preferences.blp:28
#: data/gtk/preferences.blp:39
msgid "High Quality Images"
msgstr ""
#: data/gtk/preferences.blp:29
#: data/gtk/preferences.blp:40
msgid "Save game covers losslessly at the cost of storage"
msgstr ""
#: data/gtk/preferences.blp:34
#: data/gtk/preferences.blp:50
msgid "Danger Zone"
msgstr ""
#: data/gtk/preferences.blp:37
#: data/gtk/preferences.blp:53
msgid "Remove All Games"
msgstr ""
#: data/gtk/preferences.blp:75
msgid "Remove Uninstalled Games"
#: data/gtk/preferences.blp:69 data/gtk/window.blp:427
msgid "Import"
msgstr ""
#: data/gtk/preferences.blp:80
#: data/gtk/preferences.blp:73
msgid "Sources"
msgstr ""
#: data/gtk/preferences.blp:83 src/importer/sources/steam_source.py:114
#: data/gtk/preferences.blp:76
msgid "Steam"
msgstr ""
#: data/gtk/preferences.blp:87 data/gtk/preferences.blp:104
#: data/gtk/preferences.blp:141 data/gtk/preferences.blp:174
#: data/gtk/preferences.blp:191 data/gtk/preferences.blp:208
#: data/gtk/preferences.blp:225 data/gtk/preferences.blp:242
msgid "Install Location"
#: data/gtk/preferences.blp:80
msgid "Steam Install Location"
msgstr ""
#: data/gtk/preferences.blp:100 src/importer/sources/lutris_source.py:92
#: data/gtk/preferences.blp:81 data/gtk/preferences.blp:119
#: data/gtk/preferences.blp:153 data/gtk/preferences.blp:195
#: data/gtk/preferences.blp:210
msgid "Directory to use when importing games"
msgstr ""
#: data/gtk/preferences.blp:89 src/utils/importer.py:143
msgid "Extra Steam Libraries"
msgstr ""
#: data/gtk/preferences.blp:90
msgid "Select other directories where you have Steam games installed"
msgstr ""
#: data/gtk/preferences.blp:96
msgid "Clear"
msgstr ""
#: data/gtk/preferences.blp:114
msgid "Lutris"
msgstr ""
#: data/gtk/preferences.blp:116
msgid "Cache Location"
#: data/gtk/preferences.blp:118
msgid "Lutris Install Location"
msgstr ""
#: data/gtk/preferences.blp:128
msgid "Lutris Cache Location"
msgstr ""
#: data/gtk/preferences.blp:129
msgid "Directory to use when importing game covers"
msgstr ""
#: data/gtk/preferences.blp:138
msgid "Import Steam Games"
msgstr ""
#: data/gtk/preferences.blp:132
msgid "Import Flatpak Games"
msgstr ""
#: data/gtk/preferences.blp:137 src/importer/sources/heroic_source.py:355
#: data/gtk/preferences.blp:148
msgid "Heroic"
msgstr ""
#: data/gtk/preferences.blp:153
#: data/gtk/preferences.blp:152
msgid "Heroic Install Location"
msgstr ""
#: data/gtk/preferences.blp:162
msgid "Import Epic Games"
msgstr ""
#: data/gtk/preferences.blp:157
#: data/gtk/preferences.blp:171
msgid "Import GOG Games"
msgstr ""
#: data/gtk/preferences.blp:161
#, fuzzy
#| msgid "Game Launcher"
msgid "Import Amazon Games"
msgstr "Lansator de jocuri"
#: data/gtk/preferences.blp:165
#: data/gtk/preferences.blp:180
msgid "Import Sideloaded Games"
msgstr ""
#: data/gtk/preferences.blp:170 src/importer/sources/bottles_source.py:86
#: data/gtk/preferences.blp:190
msgid "Bottles"
msgstr ""
#: data/gtk/preferences.blp:187 src/importer/sources/itch_source.py:81
#: data/gtk/preferences.blp:194
msgid "Bottles Install Location"
msgstr ""
#: data/gtk/preferences.blp:205
msgid "itch"
msgstr ""
#: data/gtk/preferences.blp:204 src/importer/sources/legendary_source.py:97
msgid "Legendary"
#: data/gtk/preferences.blp:209
msgid "itch Install Location"
msgstr ""
#: data/gtk/preferences.blp:221 src/importer/sources/retroarch_source.py:142
msgid "RetroArch"
msgstr ""
#: data/gtk/preferences.blp:238 src/importer/sources/flatpak_source.py:118
msgid "Flatpak"
msgstr ""
#: data/gtk/preferences.blp:254
#, fuzzy
#| msgid "Game Launcher"
msgid "Import Game Launchers"
msgstr "Lansator de jocuri"
#: data/gtk/preferences.blp:259 src/importer/sources/desktop_source.py:217
msgid "Desktop Entries"
msgstr ""
#: data/gtk/preferences.blp:266
#: data/gtk/preferences.blp:223
msgid "SteamGridDB"
msgstr ""
#: data/gtk/preferences.blp:270
#: data/gtk/preferences.blp:227
msgid "Authentication"
msgstr ""
#: data/gtk/preferences.blp:273
#: data/gtk/preferences.blp:230
msgid "API Key"
msgstr ""
#: data/gtk/preferences.blp:281
#: data/gtk/preferences.blp:238
msgid "Use SteamGridDB"
msgstr ""
#: data/gtk/preferences.blp:282
#: data/gtk/preferences.blp:239
msgid "Download images when adding or importing games"
msgstr ""
#: data/gtk/preferences.blp:286
#: data/gtk/preferences.blp:248
msgid "Prefer Over Official Images"
msgstr ""
#: data/gtk/preferences.blp:290
#: data/gtk/preferences.blp:257
msgid "Prefer Animated Images"
msgstr ""
#: data/gtk/preferences.blp:296
msgid "Update Covers"
msgstr ""
#: data/gtk/preferences.blp:297
msgid "Fetch covers for games already in your library"
msgstr ""
#: data/gtk/preferences.blp:301
msgid "Update"
msgstr ""
#: data/gtk/window.blp:6 data/gtk/window.blp:14
#: data/gtk/window.blp:6 src/utils/importer.py:91
msgid "No Games Found"
msgstr "Nu s-au găsit jocuri"
#: data/gtk/window.blp:7 data/gtk/window.blp:15
#: data/gtk/window.blp:7
msgid "Try a different search."
msgstr "Încercați o altă căutare."
#: data/gtk/window.blp:21
#: data/gtk/window.blp:14
msgid "No Games"
msgstr "Fără jocuri"
#: data/gtk/window.blp:22
#: data/gtk/window.blp:15
msgid "Use the + button to add games."
msgstr "Folosiți butonul + pentru a adăuga jocuri."
#: data/gtk/window.blp:40
#: data/gtk/window.blp:22
msgid "No Hidden Games"
msgstr "Fără jocuri ascunse"
#: data/gtk/window.blp:41
#: data/gtk/window.blp:23
msgid "Games you hide will appear here."
msgstr "Jocurile pe care le ascundeți vor apărea aici."
#: data/gtk/window.blp:75 data/gtk/window.blp:106 src/main.py:166
#, fuzzy
#| msgid "No Games"
msgid "All Games"
msgstr "Fără jocuri"
#: data/gtk/window.blp:44 data/gtk/window.blp:293
msgid "Back"
msgstr "Înapoi"
#: data/gtk/window.blp:126 src/main.py:168
msgid "Added"
msgstr ""
#: data/gtk/window.blp:141
msgid "Imported"
msgstr ""
#: data/gtk/window.blp:229
msgid "Hidden Games"
msgstr "Jocuri ascunse"
#: data/gtk/window.blp:339
#: data/gtk/window.blp:100
msgid "Game Title"
msgstr "Titlul jocului"
#: data/gtk/window.blp:396
#: data/gtk/window.blp:151 src/game.py:158
msgid "Play"
msgstr "Joacă"
#: data/gtk/window.blp:473
#: data/gtk/window.blp:235 data/gtk/window.blp:421
msgid "Add Game"
msgstr "Adăugați joc"
#: data/gtk/window.blp:242 data/gtk/window.blp:305
msgid "Main Menu"
msgstr "Meniu principal"
#: data/gtk/window.blp:300
msgid "Hidden Games"
msgstr "Jocuri ascunse"
#: data/gtk/window.blp:360
msgid "Sort"
msgstr ""
#: data/gtk/window.blp:476
#: data/gtk/window.blp:363
msgid "A-Z"
msgstr ""
#: data/gtk/window.blp:482
#: data/gtk/window.blp:369
msgid "Z-A"
msgstr ""
#: data/gtk/window.blp:488
#: data/gtk/window.blp:375
msgid "Newest"
msgstr ""
#: data/gtk/window.blp:494
#: data/gtk/window.blp:381
msgid "Oldest"
msgstr ""
#: data/gtk/window.blp:500
#: data/gtk/window.blp:387
msgid "Last Played"
msgstr ""
#: data/gtk/window.blp:507
#: data/gtk/window.blp:394
msgid "Show Hidden"
msgstr ""
#: data/gtk/window.blp:525
#: data/gtk/window.blp:407
msgid "Keyboard Shortcuts"
msgstr ""
#: data/gtk/window.blp:412
msgid "About Cartridges"
msgstr ""
#. Translators: Replace this with your name for it to show up in the about window
#: src/main.py:208
#: src/main.py:137
msgid "translator_credits"
msgstr ""
#. The variable is the title of the game
#: src/main.py:164
msgid "{} launched"
msgstr ""
#. The variable is the title of the game
#: src/main.py:182
msgid "{} hidden"
msgstr ""
#. The variable is the title of the game
#: src/main.py:185
msgid "{} unhidden"
msgstr ""
#. The variable is the title of the game
#: src/main.py:241
msgid "{} removed"
msgstr ""
#: src/window.py:262
msgid "Today"
msgstr ""
#: src/window.py:264
msgid "Yesterday"
msgstr ""
#. The variable is the date when the game was added
#: src/window.py:373
#: src/window.py:310
msgid "Added: {}"
msgstr ""
#: src/window.py:376
#: src/window.py:315
msgid "Never"
msgstr ""
#. The variable is the date when the game was last played
#: src/window.py:380
#: src/window.py:319
msgid "Last played: {}"
msgstr ""
#: src/details_window.py:76
msgid "Apply"
#: src/game.py:156
msgid "Details"
msgstr ""
#: src/details_window.py:82
#: src/preferences.py:54
msgid "Installation Not Found"
msgstr ""
#. The variable is the name of the game launcher
#: src/preferences.py:56
msgid "Select the {} configuration directory."
msgstr ""
#. The variable is the name of the game launcher
#: src/preferences.py:59
msgid "Select the {} data directory."
msgstr ""
#: src/preferences.py:61 src/preferences.py:240
msgid "Set Location"
msgstr ""
#: src/preferences.py:132
msgid "All games removed"
msgstr ""
#: src/preferences.py:237
msgid "Cache Not Found"
msgstr ""
#: src/preferences.py:238
msgid "Select the Lutris cache directory."
msgstr ""
#: src/preferences.py:344
msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr ""
#: src/utils/create_details_window.py:81
msgid "Add New Game"
msgstr ""
#: src/details_window.py:83
msgid "Add"
#: src/utils/create_details_window.py:85
msgid "Confirm"
msgstr ""
#: src/details_window.py:93
msgid "Executables"
#: src/utils/create_details_window.py:96
msgid "Apply"
msgstr ""
#: src/utils/create_details_window.py:130
msgid "The title of the game"
msgstr ""
#: src/utils/create_details_window.py:135
msgid "Developer"
msgstr ""
#: src/utils/create_details_window.py:136
msgid "The developer or publisher (optional)"
msgstr ""
#. Translate this string as you would translate "file"
#: src/details_window.py:108
#: src/utils/create_details_window.py:147
msgid "file.txt"
msgstr ""
#. As in software
#: src/details_window.py:110
#: src/utils/create_details_window.py:149
msgid "program"
msgstr ""
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:115 src/details_window.py:117
#: src/utils/create_details_window.py:154
#: src/utils/create_details_window.py:156
msgid "C:\\path\\to\\{}"
msgstr ""
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:121 src/details_window.py:123
#: src/utils/create_details_window.py:160
#: src/utils/create_details_window.py:162
msgid "/path/to/{}"
msgstr ""
#: src/details_window.py:128
#: src/utils/create_details_window.py:166
msgid ""
"To launch the executable \"{}\", use the command:\n"
"\n"
@@ -489,164 +523,82 @@ msgid ""
"If the path contains spaces, make sure to wrap it in double quotes!"
msgstr ""
#: src/details_window.py:171 src/details_window.py:177
#: src/utils/create_details_window.py:189
msgid "Executable"
msgstr ""
#: src/utils/create_details_window.py:190
msgid "File to open or command to run when launching the game"
msgstr ""
#: src/utils/create_details_window.py:202
msgid "Cancel"
msgstr ""
#: src/utils/create_details_window.py:259
#: src/utils/create_details_window.py:269
#: src/utils/create_details_window.py:275
msgid "Couldn't Add Game"
msgstr ""
#: src/details_window.py:171 src/details_window.py:213
msgid "Game title cannot be empty."
msgstr ""
#: src/details_window.py:177 src/details_window.py:221
msgid "Executable cannot be empty."
msgstr ""
#: src/details_window.py:212 src/details_window.py:220
#: src/utils/create_details_window.py:261
#: src/utils/create_details_window.py:299
#: src/utils/create_details_window.py:307
msgid "Couldn't Apply Preferences"
msgstr ""
#. The variable is the title of the game
#: src/game.py:141
msgid "{} launched"
#: src/utils/create_details_window.py:269
#: src/utils/create_details_window.py:300
msgid "Game title cannot be empty."
msgstr ""
#. The variable is the title of the game
#: src/game.py:155
msgid "{} hidden"
#: src/utils/create_details_window.py:275
#: src/utils/create_details_window.py:308
msgid "Executable cannot be empty."
msgstr ""
#: src/game.py:155
msgid "{} unhidden"
msgstr ""
#. The variable is the title of the game
#. The variable is the number of games removed
#: src/game.py:169 src/importer/importer.py:391
msgid "{} removed"
msgstr ""
#: src/preferences.py:124
msgid "All games removed"
msgstr ""
#: src/preferences.py:172
msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr ""
#: src/preferences.py:184
msgid "Downloading covers…"
msgstr ""
#: src/preferences.py:203
msgid "Covers updated"
msgstr ""
#: src/preferences.py:335
msgid "Installation Not Found"
msgstr ""
#: src/preferences.py:336
msgid "Select a valid directory."
msgstr ""
#: src/preferences.py:372 src/importer/importer.py:317
msgid "Warning"
msgstr ""
#: src/preferences.py:406
msgid "Invalid Directory"
msgstr ""
#: src/preferences.py:412
msgid "Set Location"
msgstr ""
#: src/utils/create_dialog.py:33 src/importer/importer.py:318
#: src/utils/create_dialog.py:25
msgid "Dismiss"
msgstr ""
#: src/importer/importer.py:145
#, fuzzy
#| msgid "Game Launcher"
#: src/utils/importer.py:42
msgid "Importing Games…"
msgstr "Lansator de jocuri"
#: src/importer/importer.py:338
msgid "The following errors occured during import:"
msgstr ""
#: src/importer/importer.py:367
#, fuzzy
#| msgid "No Games Found"
msgid "No new games found"
msgstr "Nu s-au găsit jocuri"
#: src/utils/importer.py:77
msgid "Importing Covers…"
msgstr ""
#: src/importer/importer.py:379
msgid "1 game imported"
#: src/utils/importer.py:92
msgid "No new games were found on your system."
msgstr ""
#: src/utils/importer.py:100
msgid "Game Imported"
msgstr ""
#: src/utils/importer.py:101
msgid "Successfully imported 1 game."
msgstr ""
#: src/utils/importer.py:107
msgid "Games Imported"
msgstr ""
#. The variable is the number of games
#: src/importer/importer.py:383
msgid "{} games imported"
#: src/utils/importer.py:109
msgid "Successfully imported {} games."
msgstr ""
#. A single game removed
#: src/importer/importer.py:387
msgid "1 removed"
#: src/utils/importer.py:120 src/utils/steamgriddb.py:113
msgid "Couldn't Connect to SteamGridDB"
msgstr ""
#. The variable is the name of the source
#: src/importer/sources/location.py:33
msgid "Select the {} cache directory."
#: src/utils/importer.py:145
msgid ""
"Looks like you have multiple Steam libraries. Would you like to add them in "
"preferences?"
msgstr ""
#. The variable is the name of the source
#: src/importer/sources/location.py:35
msgid "Select the {} configuration directory."
msgstr ""
#. The variable is the name of the source
#: src/importer/sources/location.py:37
msgid "Select the {} data directory."
msgstr ""
#: src/store/managers/sgdb_manager.py:46
msgid "Couldn't Authenticate SteamGridDB"
msgstr ""
#: src/store/managers/sgdb_manager.py:47
msgid "Verify your API key in preferences"
msgstr ""
#: src/importer/sources/retroarch_source.py:129
msgid "No RetroArch Core Selected"
msgstr ""
#. The variable is a newline separated list of playlists
#: src/importer/sources/retroarch_source.py:131
msgid "The following playlists have no default core:"
msgstr ""
#: src/importer/sources/retroarch_source.py:133
msgid "Games with no core selected were not imported"
msgstr ""
#~ msgid "Library"
#~ msgstr "Bibliotecă"
#~ msgid "Back"
#~ msgstr "Înapoi"
#, fuzzy
#~| msgid "Search"
#~ msgid "Search games"
#~ msgstr "Căutare"
#, fuzzy
#~| msgid "No Hidden Games"
#~ msgid "Search hidden games"
#~ msgstr "Fără jocuri ascunse"
#~ msgid "Launch your games"
#~ msgstr "Lansați-vă jocurile"

787
po/ru.po

File diff suppressed because it is too large Load Diff

748
po/sv.po
View File

@@ -1,748 +0,0 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR kramo
# This file is distributed under the same license as the Cartridges package.
# micke <mikanybe@gmail.com>, 2023.
# micke <micke@users.noreply.hosted.weblate.org>, 2023.
# Luna Jernberg <droidbittin@gmail.com>, 2023.
msgid ""
msgstr ""
"Project-Id-Version: Cartridges\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-26 13:51+0200\n"
"PO-Revision-Date: 2023-09-06 03:24+0000\n"
"Last-Translator: Luna Jernberg <droidbittin@gmail.com>\n"
"Language-Team: Swedish <https://hosted.weblate.org/projects/cartridges/"
"cartridges/sv/>\n"
"Language: sv\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.0.1-dev\n"
#: data/hu.kramo.Cartridges.desktop.in:3
#: data/hu.kramo.Cartridges.metainfo.xml.in:6
#: data/hu.kramo.Cartridges.metainfo.xml.in:30 data/gtk/window.blp:47
#: data/gtk/window.blp:80
msgid "Cartridges"
msgstr "Cartridges"
#: data/hu.kramo.Cartridges.desktop.in:4
msgid "Game Launcher"
msgstr "Spelstartare"
#: data/hu.kramo.Cartridges.desktop.in:5
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
msgid "Launch all your games"
msgstr "Starta alla dina spel"
#: data/hu.kramo.Cartridges.desktop.in:11
msgid ""
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
msgstr ""
"gaming;spelstartare;steam;lutris;heroic;bottles;itch;flatpak;legendary;"
"retroarch;"
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
msgid ""
"Cartridges is a simple game launcher for all of your games. It has support "
"for importing games from Steam, Lutris, Heroic and more with no login "
"necessary. You can sort and hide games or download cover art from "
"SteamGridDB."
msgstr ""
"Cartridges är en enkel spelstartare för alla dina spel. Det har stöd för att "
"importera spel från Steam, Lutris, Heroic och fler utan inloggning. Du kan "
"sortera och dölja spel eller ladda ner omslagsbilder från SteamGridDB."
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:288
#: src/details_window.py:71
msgid "Game Details"
msgstr "Speldetaljer"
#: data/hu.kramo.Cartridges.metainfo.xml.in:38
msgid "Edit Game Details"
msgstr "Redigera speldetaljer"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/help-overlay.blp:19
#: data/gtk/window.blp:515 src/details_window.py:271
#: src/importer/importer.py:319 src/importer/importer.py:370
msgid "Preferences"
msgstr "Inställningar"
#: data/gtk/details-window.blp:25
msgid "Cancel"
msgstr "Avbryt"
#: data/gtk/details-window.blp:55
msgid "New Cover"
msgstr "Nytt omslag"
#: data/gtk/details-window.blp:73
msgid "Delete Cover"
msgstr "Ta bort omslag"
#: data/gtk/details-window.blp:100 data/gtk/game.blp:80
msgid "Title"
msgstr "Titel"
#: data/gtk/details-window.blp:103
msgid "Developer (optional)"
msgstr "Utvecklare (valfritt)"
#: data/gtk/details-window.blp:108
msgid "Executable"
msgstr "Körbar"
#: data/gtk/details-window.blp:114
msgid "Select File"
msgstr "Välj fil"
#: data/gtk/details-window.blp:125
msgid "More Info"
msgstr "Mer info"
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:415
msgid "Edit"
msgstr "Redigera"
#: data/gtk/game.blp:107 src/window.py:350
msgid "Hide"
msgstr "Dölj"
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:40
#: data/gtk/window.blp:435
msgid "Remove"
msgstr "Ta bort"
#: data/gtk/game.blp:126 src/window.py:352
msgid "Unhide"
msgstr "Visa"
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:8
msgid "General"
msgstr "Allmänt"
#: data/gtk/help-overlay.blp:14 data/gtk/window.blp:184 data/gtk/window.blp:243
#: data/gtk/window.blp:446
msgid "Search"
msgstr "Sök"
#: data/gtk/help-overlay.blp:24 data/gtk/window.blp:520
msgid "Keyboard Shortcuts"
msgstr "Tangentbordsgenvägar"
#: data/gtk/help-overlay.blp:29 src/game.py:105 src/preferences.py:125
#: src/importer/importer.py:394
msgid "Undo"
msgstr "Ångra"
#: data/gtk/help-overlay.blp:34
msgid "Quit"
msgstr "Avsluta"
#: data/gtk/help-overlay.blp:39 data/gtk/window.blp:88 data/gtk/window.blp:164
msgid "Toggle Sidebar"
msgstr ""
#: data/gtk/help-overlay.blp:44 data/gtk/window.blp:177 data/gtk/window.blp:236
msgid "Main Menu"
msgstr "Huvudmeny"
#: data/gtk/help-overlay.blp:50
msgid "Games"
msgstr "Spel"
#: data/gtk/help-overlay.blp:53 data/gtk/window.blp:170 data/gtk/window.blp:534
msgid "Add Game"
msgstr "Lägg till spel"
#: data/gtk/help-overlay.blp:58 data/gtk/preferences.blp:68
#: data/gtk/window.blp:27 data/gtk/window.blp:541
msgid "Import"
msgstr "Importera"
#: data/gtk/help-overlay.blp:63
#, fuzzy
#| msgid "Show hidden games"
msgid "Show Hidden Games"
msgstr "Visa dolda spel"
#: data/gtk/help-overlay.blp:68
#, fuzzy
#| msgid "Remove game"
msgid "Remove Game"
msgstr "Ta bort spel"
#: data/gtk/preferences.blp:12 data/gtk/preferences.blp:72
#: data/gtk/preferences.blp:278
msgid "Behavior"
msgstr "Beteende"
#: data/gtk/preferences.blp:15
msgid "Exit After Launching Games"
msgstr "Avsluta efter start av spel"
#: data/gtk/preferences.blp:19
msgid "Cover Image Launches Game"
msgstr "Omslagsbild startar spel"
#: data/gtk/preferences.blp:20
msgid "Swaps the behavior of the cover image and the play button"
msgstr "Byt beteende för omslagsbilden och Spela-knappen"
#: data/gtk/preferences.blp:25 src/details_window.py:85
msgid "Images"
msgstr "Bilder"
#: data/gtk/preferences.blp:28
msgid "High Quality Images"
msgstr "Bilder av hög kvalitet"
#: data/gtk/preferences.blp:29
msgid "Save game covers losslessly at the cost of storage"
msgstr ""
"Spara omslagsbilder utan kvalitetsförlust på bekostnad av lagringsplats"
#: data/gtk/preferences.blp:34
msgid "Danger Zone"
msgstr "Farozon"
#: data/gtk/preferences.blp:37
msgid "Remove All Games"
msgstr "Ta bort alla spel"
#: data/gtk/preferences.blp:75
msgid "Remove Uninstalled Games"
msgstr "Ta bort avinstallerade spel"
#: data/gtk/preferences.blp:80
msgid "Sources"
msgstr "Källor"
#: data/gtk/preferences.blp:83 src/importer/sources/steam_source.py:114
msgid "Steam"
msgstr "Steam"
#: data/gtk/preferences.blp:87 data/gtk/preferences.blp:104
#: data/gtk/preferences.blp:141 data/gtk/preferences.blp:174
#: data/gtk/preferences.blp:191 data/gtk/preferences.blp:208
#: data/gtk/preferences.blp:225 data/gtk/preferences.blp:242
msgid "Install Location"
msgstr "Plats för installation"
#: data/gtk/preferences.blp:100 src/importer/sources/lutris_source.py:92
msgid "Lutris"
msgstr "Lutris"
#: data/gtk/preferences.blp:116
msgid "Cache Location"
msgstr "Plats för cacheminne"
#: data/gtk/preferences.blp:128
msgid "Import Steam Games"
msgstr "Importera Steam-spel"
#: data/gtk/preferences.blp:132
msgid "Import Flatpak Games"
msgstr "Importera Flatpak-spel"
#: data/gtk/preferences.blp:137 src/importer/sources/heroic_source.py:355
msgid "Heroic"
msgstr "Heroic"
#: data/gtk/preferences.blp:153
msgid "Import Epic Games"
msgstr "Importera Epic Games"
#: data/gtk/preferences.blp:157
msgid "Import GOG Games"
msgstr "Importera GOG-spel"
#: data/gtk/preferences.blp:161
msgid "Import Amazon Games"
msgstr "Importera Amazon-spel"
#: data/gtk/preferences.blp:165
msgid "Import Sideloaded Games"
msgstr "Importera sidoladdade spel"
#: data/gtk/preferences.blp:170 src/importer/sources/bottles_source.py:86
msgid "Bottles"
msgstr "Bottles"
#: data/gtk/preferences.blp:187 src/importer/sources/itch_source.py:81
msgid "itch"
msgstr "itch"
#: data/gtk/preferences.blp:204 src/importer/sources/legendary_source.py:97
msgid "Legendary"
msgstr "Legendary"
#: data/gtk/preferences.blp:221 src/importer/sources/retroarch_source.py:142
msgid "RetroArch"
msgstr "RetroArch"
#: data/gtk/preferences.blp:238 src/importer/sources/flatpak_source.py:118
msgid "Flatpak"
msgstr "Flatpak"
#: data/gtk/preferences.blp:254
msgid "Import Game Launchers"
msgstr "Importera spelstartare"
#: data/gtk/preferences.blp:259 src/importer/sources/desktop_source.py:217
msgid "Desktop Entries"
msgstr "Skrivbordsposter"
#: data/gtk/preferences.blp:266
msgid "SteamGridDB"
msgstr "SteamGridDB"
#: data/gtk/preferences.blp:270
msgid "Authentication"
msgstr "Autentisering"
#: data/gtk/preferences.blp:273
msgid "API Key"
msgstr "API-nyckel"
#: data/gtk/preferences.blp:281
msgid "Use SteamGridDB"
msgstr "Använd SteamGridDB"
#: data/gtk/preferences.blp:282
msgid "Download images when adding or importing games"
msgstr "Ladda ner bilder när spel läggs till eller importeras"
#: data/gtk/preferences.blp:286
msgid "Prefer Over Official Images"
msgstr "Föredra framför officiella bilder"
#: data/gtk/preferences.blp:290
msgid "Prefer Animated Images"
msgstr "Föredra animerade bilder"
#: data/gtk/preferences.blp:296
#, fuzzy
#| msgid "Delete Cover"
msgid "Update Covers"
msgstr "Ta bort omslag"
#: data/gtk/preferences.blp:297
msgid "Fetch covers for games already in your library"
msgstr ""
#: data/gtk/preferences.blp:301
msgid "Update"
msgstr ""
#: data/gtk/window.blp:6 data/gtk/window.blp:14
msgid "No Games Found"
msgstr "Inga spel hittades"
#: data/gtk/window.blp:7 data/gtk/window.blp:15
msgid "Try a different search."
msgstr "Försök med en annan sökning."
#: data/gtk/window.blp:21
msgid "No Games"
msgstr "Inga spel"
#: data/gtk/window.blp:22
msgid "Use the + button to add games."
msgstr "Använd +-knappen för att lägga till spel."
#: data/gtk/window.blp:40
msgid "No Hidden Games"
msgstr "Inga dolda spel"
#: data/gtk/window.blp:41
msgid "Games you hide will appear here."
msgstr "Spel som du döljer kommer visas här."
#: data/gtk/window.blp:75 data/gtk/window.blp:106 src/main.py:166
#, fuzzy
#| msgid "Remove All Games"
msgid "All Games"
msgstr "Ta bort alla spel"
#: data/gtk/window.blp:126 src/main.py:168
#, fuzzy
#| msgid "Added: {}"
msgid "Added"
msgstr "Tillagt: {}"
#: data/gtk/window.blp:141
#, fuzzy
#| msgid "Import"
msgid "Imported"
msgstr "Importera"
#: data/gtk/window.blp:229
msgid "Hidden Games"
msgstr "Dolda spel"
#: data/gtk/window.blp:339
msgid "Game Title"
msgstr "Speltitel"
#: data/gtk/window.blp:396
msgid "Play"
msgstr "Spela"
#: data/gtk/window.blp:473
msgid "Sort"
msgstr "Sortering"
#: data/gtk/window.blp:476
msgid "A-Z"
msgstr "A-Ö"
#: data/gtk/window.blp:482
msgid "Z-A"
msgstr "Ö-A"
#: data/gtk/window.blp:488
msgid "Newest"
msgstr "Nyaste"
#: data/gtk/window.blp:494
msgid "Oldest"
msgstr "Äldsta"
#: data/gtk/window.blp:500
msgid "Last Played"
msgstr "Senast spelad"
#: data/gtk/window.blp:507
msgid "Show Hidden"
msgstr "Visa dolda"
#: data/gtk/window.blp:525
msgid "About Cartridges"
msgstr "Om Cartridges"
#. Translators: Replace this with your name for it to show up in the about window
#: src/main.py:208
msgid "translator_credits"
msgstr "Micke"
#. The variable is the date when the game was added
#: src/window.py:373
msgid "Added: {}"
msgstr "Tillagt: {}"
#: src/window.py:376
msgid "Never"
msgstr "Aldrig"
#. The variable is the date when the game was last played
#: src/window.py:380
msgid "Last played: {}"
msgstr "Senast spelat: {}"
#: src/details_window.py:76
msgid "Apply"
msgstr "Tillämpa"
#: src/details_window.py:82
msgid "Add New Game"
msgstr "Lägg till nytt spel"
#: src/details_window.py:83
msgid "Add"
msgstr "Lägg till"
#: src/details_window.py:93
msgid "Executables"
msgstr "Körbara filer"
#. Translate this string as you would translate "file"
#: src/details_window.py:108
msgid "file.txt"
msgstr "fil.txt"
#. As in software
#: src/details_window.py:110
msgid "program"
msgstr "program"
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:115 src/details_window.py:117
msgid "C:\\path\\to\\{}"
msgstr "C:\\sökväg\\till\\{}"
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:121 src/details_window.py:123
msgid "/path/to/{}"
msgstr "/sökväg/till/{}"
#: src/details_window.py:128
msgid ""
"To launch the executable \"{}\", use the command:\n"
"\n"
"<tt>\"{}\"</tt>\n"
"\n"
"To open the file \"{}\" with the default application, use:\n"
"\n"
"<tt>{} \"{}\"</tt>\n"
"\n"
"If the path contains spaces, make sure to wrap it in double quotes!"
msgstr ""
"Använd kommandot för att starta den körbara filen \"{}\":\n"
"\n"
"<tt>\"{}\"</tt>\n"
"\n"
"För att öppna filen \"{}\" med standardprogrammet använder du:\n"
"\n"
"<tt>{} \"{}\"</tt>\n"
"\n"
"Om sökvägen innehåller mellanslag, se till att den omsluts av dubbla "
"citationstecken!"
#: src/details_window.py:171 src/details_window.py:177
msgid "Couldn't Add Game"
msgstr "Kunde inte lägga till spelet"
#: src/details_window.py:171 src/details_window.py:213
msgid "Game title cannot be empty."
msgstr "Spelets titel kan inte vara tom."
#: src/details_window.py:177 src/details_window.py:221
msgid "Executable cannot be empty."
msgstr "Den körbara filen kan inte vara tom."
#: src/details_window.py:212 src/details_window.py:220
msgid "Couldn't Apply Preferences"
msgstr "Kunde inte tillämpa inställningar"
#. The variable is the title of the game
#: src/game.py:141
msgid "{} launched"
msgstr "{} startat"
#. The variable is the title of the game
#: src/game.py:155
msgid "{} hidden"
msgstr "{} dolt"
#: src/game.py:155
msgid "{} unhidden"
msgstr "{} synlig"
#. The variable is the title of the game
#. The variable is the number of games removed
#: src/game.py:169 src/importer/importer.py:391
msgid "{} removed"
msgstr "{} borttaget"
#: src/preferences.py:124
msgid "All games removed"
msgstr "Alla spel togs bort"
#: src/preferences.py:172
msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr ""
"En API-nyckel krävs för att använda SteamGridDB. Du kan generera en {}här{}."
#: src/preferences.py:184
#, fuzzy
#| msgid "Importing Covers…"
msgid "Downloading covers…"
msgstr "Importerar omslagsbilder…"
#: src/preferences.py:203
msgid "Covers updated"
msgstr ""
#: src/preferences.py:335
msgid "Installation Not Found"
msgstr "Installation hittades inte"
#: src/preferences.py:336
msgid "Select a valid directory."
msgstr "Välj en giltig katalog."
#: src/preferences.py:372 src/importer/importer.py:317
msgid "Warning"
msgstr "Varning"
#: src/preferences.py:406
msgid "Invalid Directory"
msgstr "Ogiltig katalog"
#: src/preferences.py:412
msgid "Set Location"
msgstr "Ange plats"
#: src/utils/create_dialog.py:33 src/importer/importer.py:318
msgid "Dismiss"
msgstr "Avvisa"
#: src/importer/importer.py:145
msgid "Importing Games…"
msgstr "Importerar spel…"
#: src/importer/importer.py:338
msgid "The following errors occured during import:"
msgstr "Följande fel uppstod under importeringen:"
#: src/importer/importer.py:367
msgid "No new games found"
msgstr "Inga nya spel hittades"
#: src/importer/importer.py:379
msgid "1 game imported"
msgstr "1 spel Importerat"
#. The variable is the number of games
#: src/importer/importer.py:383
msgid "{} games imported"
msgstr "{} spel importerade"
#. A single game removed
#: src/importer/importer.py:387
msgid "1 removed"
msgstr "1 borttagen"
#. The variable is the name of the source
#: src/importer/sources/location.py:33
msgid "Select the {} cache directory."
msgstr "Välj {} cachekatalog."
#. The variable is the name of the source
#: src/importer/sources/location.py:35
msgid "Select the {} configuration directory."
msgstr "Välj {} konfigurationskatalog."
#. The variable is the name of the source
#: src/importer/sources/location.py:37
msgid "Select the {} data directory."
msgstr "Välj {} datakatalog."
#: src/store/managers/sgdb_manager.py:46
msgid "Couldn't Authenticate SteamGridDB"
msgstr "Kunde inte autentisera SteamGridDB"
#: src/store/managers/sgdb_manager.py:47
msgid "Verify your API key in preferences"
msgstr "Verifiera din API-nyckel i inställningar"
#: src/importer/sources/retroarch_source.py:129
msgid "No RetroArch Core Selected"
msgstr "Ingen RetroArch-kärna har valts"
#. The variable is a newline separated list of playlists
#: src/importer/sources/retroarch_source.py:131
msgid "The following playlists have no default core:"
msgstr "Följande spellistor har ingen standardkärna:"
#: src/importer/sources/retroarch_source.py:133
msgid "Games with no core selected were not imported"
msgstr "Spel med ingen kärna vald importerades inte"
#~ msgid "Library"
#~ msgstr "Bibliotek"
#~ msgid "Show preferences"
#~ msgstr "Visa inställningar"
#~ msgid "Shortcuts"
#~ msgstr "Genvägar"
#~ msgid "Open menu"
#~ msgstr "Öppna meny"
#~ msgid "Add new game"
#~ msgstr "Lägg till nytt spel"
#~ msgid "Import games"
#~ msgstr "Importera spel"
#~ msgid "Back"
#~ msgstr "Bakåt"
#~ msgid "Search games"
#~ msgstr "Sök spel"
#~ msgid "Search hidden games"
#~ msgstr "Sök dolda spel"
#~ msgid "The title of the game"
#~ msgstr "Spelets titel"
#~ msgid "Developer"
#~ msgstr "Utvecklare"
#~ msgid "File to open or command to run when launching the game"
#~ msgstr "Fil som ska öppnas eller kommando som ska köras när spelet startas"
#~ msgid "Confirm"
#~ msgstr "Bekräfta"
#, fuzzy
#~ msgid "Directory not Valid"
#~ msgstr "Cache inte hittad"
#, fuzzy
#~ msgid "Configuration"
#~ msgstr "Bekräfta"
#~ msgid "Steam Install Location"
#~ msgstr "Steam-installationsplats"
#~ msgid "Lutris Install Location"
#~ msgstr "Lutris-installationsplats"
#~ msgid "Heroic Install Location"
#~ msgstr "Heroic-installationsplats"
#~ msgid "Bottles Install Location"
#~ msgstr "Bottles-installationsplats"
#~ msgid "Today"
#~ msgstr "Idag"
#~ msgid "Yesterday"
#~ msgstr "Igår"
#~ msgid "Select the Lutris cache directory."
#~ msgstr "Välj Lutris cache-mapp."
#~ msgid "Directory to use when importing games"
#~ msgstr "Mapp att använda för importering av spel"
#~ msgid "Extra Steam Libraries"
#~ msgstr "Extra Steam-bibliotek"
#~ msgid "Select other directories where you have Steam games installed"
#~ msgstr "Välj andra mappar där du har Steam-spel installerade"
#~ msgid "Clear"
#~ msgstr "Rensa"
#~ msgid "Directory to use when importing game covers"
#~ msgstr "Mapp att använda för import av omslagsbilder"
#~ msgid "Details"
#~ msgstr "Detaljer"
#~ msgid "No new games were found on your system."
#~ msgstr "Inga nya spel hittades på ditt system."
#~ msgid "Successfully imported 1 game."
#~ msgstr "Importerade 1 spel."
#~ msgid "Successfully imported {} games."
#~ msgstr "Importerade {} spel."
#~ msgid ""
#~ "Looks like you have multiple Steam libraries. Would you like to add them "
#~ "in preferences?"
#~ msgstr ""
#~ "Du verkar ha flera Steam-bibliotek. Vill du lägga till dem i "
#~ "inställningar?"
#~ msgid "gaming;launcher;steam;lutris;heroic;bottles;itch;"
#~ msgstr "gaming;spelstartare;steam;lutris;heroic;bottles;itch;"

789
po/ta.po

File diff suppressed because it is too large Load Diff

699
po/tr.po
View File

@@ -1,699 +0,0 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR kramo
# This file is distributed under the same license as the Cartridges package.
# Sabri Ünal <libreajans@gmail.com>, 2023.
msgid ""
msgstr ""
"Project-Id-Version: Cartridges\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-26 13:51+0200\n"
"PO-Revision-Date: 2023-10-03 16:11+0000\n"
"Last-Translator: Sabri Ünal <libreajans@gmail.com>\n"
"Language-Team: Turkish <https://hosted.weblate.org/projects/cartridges/"
"cartridges/tr/>\n"
"Language: tr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.1-dev\n"
#: data/hu.kramo.Cartridges.desktop.in:3
#: data/hu.kramo.Cartridges.metainfo.xml.in:6
#: data/hu.kramo.Cartridges.metainfo.xml.in:30 data/gtk/window.blp:47
#: data/gtk/window.blp:80
msgid "Cartridges"
msgstr "Kartuşlar"
#: data/hu.kramo.Cartridges.desktop.in:4
msgid "Game Launcher"
msgstr "Oyun Başlatıcı"
#: data/hu.kramo.Cartridges.desktop.in:5
#: data/hu.kramo.Cartridges.metainfo.xml.in:7
msgid "Launch all your games"
msgstr "Tüm oyunlarınızı başlatın"
#: data/hu.kramo.Cartridges.desktop.in:11
msgid ""
"gaming;launcher;steam;lutris;heroic;bottles;itch;flatpak;legendary;retroarch;"
msgstr ""
"gaming;oyun;launcher;başlatıcı;steam;lutris;heroic;bottles;itch;flatpak;"
"legendary;retroarch;"
#: data/hu.kramo.Cartridges.metainfo.xml.in:9
msgid ""
"Cartridges is a simple game launcher for all of your games. It has support "
"for importing games from Steam, Lutris, Heroic and more with no login "
"necessary. You can sort and hide games or download cover art from "
"SteamGridDB."
msgstr ""
"Kartuşlar, tüm oyunlarınız için basit bir oyun başlatıcıdır. Oturum açmaya "
"gerek kalmadan Steam, Lutris, Heroic ve daha fazla sağlayıcıdan oyun içe "
"aktarma desteğine sahiptir. Oyunları sıralayabilir, gizleyebilir veya "
"SteamGridDB'den kapak resmi indirebilirsiniz."
#: data/hu.kramo.Cartridges.metainfo.xml.in:34 data/gtk/window.blp:288
#: src/details_window.py:71
msgid "Game Details"
msgstr "Oyun Ayrıntıları"
#: data/hu.kramo.Cartridges.metainfo.xml.in:38
msgid "Edit Game Details"
msgstr "Oyun Ayrıntılarını Düzenle"
#: data/hu.kramo.Cartridges.metainfo.xml.in:42 data/gtk/help-overlay.blp:19
#: data/gtk/window.blp:515 src/details_window.py:271
#: src/importer/importer.py:319 src/importer/importer.py:370
msgid "Preferences"
msgstr "Tercihler"
#: data/gtk/details-window.blp:25
msgid "Cancel"
msgstr "İptal"
#: data/gtk/details-window.blp:55
msgid "New Cover"
msgstr "Yeni Kapak"
#: data/gtk/details-window.blp:73
msgid "Delete Cover"
msgstr "Kapağı Sil"
#: data/gtk/details-window.blp:100 data/gtk/game.blp:80
msgid "Title"
msgstr "Başlık"
#: data/gtk/details-window.blp:103
msgid "Developer (optional)"
msgstr "Geliştirici (isteğe bağlı)"
#: data/gtk/details-window.blp:108
msgid "Executable"
msgstr "Yürütülebilir"
#: data/gtk/details-window.blp:114
msgid "Select File"
msgstr "Dosya Seç"
#: data/gtk/details-window.blp:125
msgid "More Info"
msgstr "Daha Fazla Bilgi"
#: data/gtk/game.blp:102 data/gtk/game.blp:121 data/gtk/window.blp:415
msgid "Edit"
msgstr "Düzenle"
#: data/gtk/game.blp:107 src/window.py:350
msgid "Hide"
msgstr "Gizle"
#: data/gtk/game.blp:112 data/gtk/game.blp:131 data/gtk/preferences.blp:40
#: data/gtk/window.blp:435
msgid "Remove"
msgstr "Kaldır"
#: data/gtk/game.blp:126 src/window.py:352
msgid "Unhide"
msgstr "Göster"
#: data/gtk/help-overlay.blp:11 data/gtk/preferences.blp:8
msgid "General"
msgstr "Genel"
#: data/gtk/help-overlay.blp:14 data/gtk/window.blp:184 data/gtk/window.blp:243
#: data/gtk/window.blp:446
msgid "Search"
msgstr "Ara"
#: data/gtk/help-overlay.blp:24 data/gtk/window.blp:520
msgid "Keyboard Shortcuts"
msgstr "Klavye Kısayolları"
#: data/gtk/help-overlay.blp:29 src/game.py:105 src/preferences.py:125
#: src/importer/importer.py:394
msgid "Undo"
msgstr "Geri Al"
#: data/gtk/help-overlay.blp:34
msgid "Quit"
msgstr "Çık"
#: data/gtk/help-overlay.blp:39 data/gtk/window.blp:88 data/gtk/window.blp:164
msgid "Toggle Sidebar"
msgstr "Kenar Çubuğunu Aç/Kapat"
#: data/gtk/help-overlay.blp:44 data/gtk/window.blp:177 data/gtk/window.blp:236
msgid "Main Menu"
msgstr "Ana Menü"
#: data/gtk/help-overlay.blp:50
msgid "Games"
msgstr "Oyunlar"
#: data/gtk/help-overlay.blp:53 data/gtk/window.blp:170 data/gtk/window.blp:534
msgid "Add Game"
msgstr "Oyun Ekle"
#: data/gtk/help-overlay.blp:58 data/gtk/preferences.blp:68
#: data/gtk/window.blp:27 data/gtk/window.blp:541
msgid "Import"
msgstr "İçe Aktar"
#: data/gtk/help-overlay.blp:63
msgid "Show Hidden Games"
msgstr "Gizli Oyunları Göster"
#: data/gtk/help-overlay.blp:68
msgid "Remove Game"
msgstr "Oyunu Kaldır"
#: data/gtk/preferences.blp:12 data/gtk/preferences.blp:72
#: data/gtk/preferences.blp:278
msgid "Behavior"
msgstr "Davranış"
#: data/gtk/preferences.blp:15
msgid "Exit After Launching Games"
msgstr "Oyunu Başlatıldıktan Sonra Çık"
#: data/gtk/preferences.blp:19
msgid "Cover Image Launches Game"
msgstr "Kapak Görüntüsü Oyunu Başlatır"
#: data/gtk/preferences.blp:20
msgid "Swaps the behavior of the cover image and the play button"
msgstr "Kapak görüntüsünün ve oyna düğmesinin davranışını değiştirir"
#: data/gtk/preferences.blp:25 src/details_window.py:85
msgid "Images"
msgstr "Görüntüler"
#: data/gtk/preferences.blp:28
msgid "High Quality Images"
msgstr "Yüksek Kaliteli Görüntüler"
#: data/gtk/preferences.blp:29
msgid "Save game covers losslessly at the cost of storage"
msgstr ""
"Oyun kapaklarını, daha çok depolama alanı gerektirmesine rağmen, kayıpsız "
"kaydet"
#: data/gtk/preferences.blp:34
msgid "Danger Zone"
msgstr "Tehlikeli Bölge"
#: data/gtk/preferences.blp:37
msgid "Remove All Games"
msgstr "Tüm Oyunları Kaldır"
#: data/gtk/preferences.blp:75
msgid "Remove Uninstalled Games"
msgstr "Kaldırılmış Oyunları Sil"
#: data/gtk/preferences.blp:80
msgid "Sources"
msgstr "Kaynaklar"
#: data/gtk/preferences.blp:83 src/importer/sources/steam_source.py:114
msgid "Steam"
msgstr "Steam"
#: data/gtk/preferences.blp:87 data/gtk/preferences.blp:104
#: data/gtk/preferences.blp:141 data/gtk/preferences.blp:174
#: data/gtk/preferences.blp:191 data/gtk/preferences.blp:208
#: data/gtk/preferences.blp:225 data/gtk/preferences.blp:242
msgid "Install Location"
msgstr "Kurulu Konumu"
#: data/gtk/preferences.blp:100 src/importer/sources/lutris_source.py:92
msgid "Lutris"
msgstr "Lutris"
#: data/gtk/preferences.blp:116
msgid "Cache Location"
msgstr "Önbellek Konumu"
#: data/gtk/preferences.blp:128
msgid "Import Steam Games"
msgstr "Steam Oyunlarını İçe Aktar"
#: data/gtk/preferences.blp:132
msgid "Import Flatpak Games"
msgstr "Flatpak Oyunlarını İçe Aktarın"
#: data/gtk/preferences.blp:137 src/importer/sources/heroic_source.py:355
msgid "Heroic"
msgstr "Heroic"
#: data/gtk/preferences.blp:153
msgid "Import Epic Games"
msgstr "Epic Oyunlarını İçe Aktar"
#: data/gtk/preferences.blp:157
msgid "Import GOG Games"
msgstr "GOG Oyunlarını İçe Aktar"
#: data/gtk/preferences.blp:161
msgid "Import Amazon Games"
msgstr "Amazon Oyunlarını İçe Aktar"
#: data/gtk/preferences.blp:165
msgid "Import Sideloaded Games"
msgstr "Yandan Yüklenmiş Oyunları İçe Aktar"
#: data/gtk/preferences.blp:170 src/importer/sources/bottles_source.py:86
msgid "Bottles"
msgstr "Şişeler"
#: data/gtk/preferences.blp:187 src/importer/sources/itch_source.py:81
msgid "itch"
msgstr "itch"
#: data/gtk/preferences.blp:204 src/importer/sources/legendary_source.py:97
msgid "Legendary"
msgstr "Legendary"
#: data/gtk/preferences.blp:221 src/importer/sources/retroarch_source.py:142
msgid "RetroArch"
msgstr "RetroArch"
#: data/gtk/preferences.blp:238 src/importer/sources/flatpak_source.py:118
msgid "Flatpak"
msgstr "Flatpak"
#: data/gtk/preferences.blp:254
msgid "Import Game Launchers"
msgstr "Oyun Başlatıcıları İçe Aktar"
#: data/gtk/preferences.blp:259 src/importer/sources/desktop_source.py:217
msgid "Desktop Entries"
msgstr "Masaüstü Girdileri"
#: data/gtk/preferences.blp:266
msgid "SteamGridDB"
msgstr "SteamGridDB"
#: data/gtk/preferences.blp:270
msgid "Authentication"
msgstr "Kimlik Doğrulaması"
#: data/gtk/preferences.blp:273
msgid "API Key"
msgstr "API anahtarı"
#: data/gtk/preferences.blp:281
msgid "Use SteamGridDB"
msgstr "SteamGridDB Kullan"
#: data/gtk/preferences.blp:282
msgid "Download images when adding or importing games"
msgstr "Oyun eklerken veya içe aktarırken görüntüleri indir"
#: data/gtk/preferences.blp:286
msgid "Prefer Over Official Images"
msgstr "Resmî Görsellere Yeğle"
#: data/gtk/preferences.blp:290
msgid "Prefer Animated Images"
msgstr "Hareketli Görselleri Yeğle"
#: data/gtk/preferences.blp:296
msgid "Update Covers"
msgstr "Kapakları Güncelle"
#: data/gtk/preferences.blp:297
msgid "Fetch covers for games already in your library"
msgstr "Zaten kitaplığınızda bulunan oyunların kapaklarını getir"
#: data/gtk/preferences.blp:301
msgid "Update"
msgstr "Güncelle"
#: data/gtk/window.blp:6 data/gtk/window.blp:14
msgid "No Games Found"
msgstr "Hiçbir Oyun Bulunamadı"
#: data/gtk/window.blp:7 data/gtk/window.blp:15
msgid "Try a different search."
msgstr "Başka arama dene."
#: data/gtk/window.blp:21
msgid "No Games"
msgstr "Oyun Yok"
#: data/gtk/window.blp:22
msgid "Use the + button to add games."
msgstr "Oyun eklemek için + düğmesini kullanın."
#: data/gtk/window.blp:40
msgid "No Hidden Games"
msgstr "Gizli Oyun Yok"
#: data/gtk/window.blp:41
msgid "Games you hide will appear here."
msgstr "Gizlediğiniz oyunlar burada belirecek."
#: data/gtk/window.blp:75 data/gtk/window.blp:106 src/main.py:166
msgid "All Games"
msgstr "Tüm Oyunlar"
#: data/gtk/window.blp:126 src/main.py:168
msgid "Added"
msgstr "Eklendi"
#: data/gtk/window.blp:141
msgid "Imported"
msgstr "İçe aktarıldı"
#: data/gtk/window.blp:229
msgid "Hidden Games"
msgstr "Gizli Oyunlar"
#: data/gtk/window.blp:339
msgid "Game Title"
msgstr "Oyun Başlığı"
#: data/gtk/window.blp:396
msgid "Play"
msgstr "Oyna"
#: data/gtk/window.blp:473
msgid "Sort"
msgstr "Sırala"
#: data/gtk/window.blp:476
msgid "A-Z"
msgstr "A-Z"
#: data/gtk/window.blp:482
msgid "Z-A"
msgstr "Z-A"
#: data/gtk/window.blp:488
msgid "Newest"
msgstr "En Yeni"
#: data/gtk/window.blp:494
msgid "Oldest"
msgstr "En Eski"
#: data/gtk/window.blp:500
msgid "Last Played"
msgstr "Son Oynanan"
#: data/gtk/window.blp:507
msgid "Show Hidden"
msgstr "Gizlileri Göster"
#: data/gtk/window.blp:525
msgid "About Cartridges"
msgstr "Kartuşlar Hakkında"
#. Translators: Replace this with your name for it to show up in the about window
#: src/main.py:208
msgid "translator_credits"
msgstr "Sabri Ünal <libreajans@gmail.com>"
#. The variable is the date when the game was added
#: src/window.py:373
msgid "Added: {}"
msgstr "Eklendi: {}"
#: src/window.py:376
msgid "Never"
msgstr "Asla"
#. The variable is the date when the game was last played
#: src/window.py:380
msgid "Last played: {}"
msgstr "Son oynanma: {}"
#: src/details_window.py:76
msgid "Apply"
msgstr "Uygula"
#: src/details_window.py:82
msgid "Add New Game"
msgstr "Yeni Oyun Ekle"
#: src/details_window.py:83
msgid "Add"
msgstr "Ekle"
#: src/details_window.py:93
msgid "Executables"
msgstr "Yürütülebilirler"
#. Translate this string as you would translate "file"
#: src/details_window.py:108
msgid "file.txt"
msgstr "dosya.txt"
#. As in software
#: src/details_window.py:110
msgid "program"
msgstr "program"
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:115 src/details_window.py:117
msgid "C:\\path\\to\\{}"
msgstr "C:\\yol\\klasör\\{}"
#. Translate this string as you would translate "path to {}"
#: src/details_window.py:121 src/details_window.py:123
msgid "/path/to/{}"
msgstr "/yol/klasör/{}"
#: src/details_window.py:128
msgid ""
"To launch the executable \"{}\", use the command:\n"
"\n"
"<tt>\"{}\"</tt>\n"
"\n"
"To open the file \"{}\" with the default application, use:\n"
"\n"
"<tt>{} \"{}\"</tt>\n"
"\n"
"If the path contains spaces, make sure to wrap it in double quotes!"
msgstr ""
"\"{}\" yürütülebilirini başlatmak için şu komutu kullanın:\n"
"\n"
"<tt>\"{}\"</tt>\n"
"\n"
"\"{}\" dosyasını öntanımlı uygulamayla açmak için şunu kullanın:\n"
"\n"
"<tt>\"{}\"</tt>\n"
"\n"
"Yol boşluk içeriyorsa, çift tırnak içine aldığınızdan emin olun!"
#: src/details_window.py:171 src/details_window.py:177
msgid "Couldn't Add Game"
msgstr "Oyun Eklenemedi"
#: src/details_window.py:171 src/details_window.py:213
msgid "Game title cannot be empty."
msgstr "Oyun başlığı boş olamaz."
#: src/details_window.py:177 src/details_window.py:221
msgid "Executable cannot be empty."
msgstr "Çalıştırılabilir boş olamaz."
#: src/details_window.py:212 src/details_window.py:220
msgid "Couldn't Apply Preferences"
msgstr "Tercihler Uygulanamadı"
#. The variable is the title of the game
#: src/game.py:141
msgid "{} launched"
msgstr "{} başlatıldı"
#. The variable is the title of the game
#: src/game.py:155
msgid "{} hidden"
msgstr "{} gizli"
#: src/game.py:155
msgid "{} unhidden"
msgstr "{} görünür"
#. The variable is the title of the game
#. The variable is the number of games removed
#: src/game.py:169 src/importer/importer.py:391
msgid "{} removed"
msgstr "{} kaldırıldı"
#: src/preferences.py:124
msgid "All games removed"
msgstr "Tüm oyunlar kaldırıldı"
#: src/preferences.py:172
msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr ""
"SteamGridDBʼyi kullanmak için API anahtarı gereklidir. {}Buradan{} bir tane "
"oluşturabilirsiniz."
#: src/preferences.py:184
msgid "Downloading covers…"
msgstr "Kapaklar indiriliyor…"
#: src/preferences.py:203
msgid "Covers updated"
msgstr "Kapaklar güncellendi"
#: src/preferences.py:335
msgid "Installation Not Found"
msgstr "Kurulum Bulunamadı"
#: src/preferences.py:336
msgid "Select a valid directory."
msgstr "Geçerli bir dizin seçin."
#: src/preferences.py:372 src/importer/importer.py:317
msgid "Warning"
msgstr "Uyarı"
#: src/preferences.py:406
msgid "Invalid Directory"
msgstr "Geçersiz Dizin"
#: src/preferences.py:412
msgid "Set Location"
msgstr "Konum Ayarla"
#: src/utils/create_dialog.py:33 src/importer/importer.py:318
msgid "Dismiss"
msgstr "Vazgeç"
#: src/importer/importer.py:145
msgid "Importing Games…"
msgstr "Oyunlar İçe Aktarılıyor…"
#: src/importer/importer.py:338
msgid "The following errors occured during import:"
msgstr "İçe aktarılırken şu hatalar oluştu:"
#: src/importer/importer.py:367
msgid "No new games found"
msgstr "Yeni oyun bulunamadı"
#: src/importer/importer.py:379
msgid "1 game imported"
msgstr "1 oyun içe aktarıldı"
#. The variable is the number of games
#: src/importer/importer.py:383
msgid "{} games imported"
msgstr "{} oyun içe aktarıldı"
#. A single game removed
#: src/importer/importer.py:387
msgid "1 removed"
msgstr "1 kaldırıldı"
#. The variable is the name of the source
#: src/importer/sources/location.py:33
msgid "Select the {} cache directory."
msgstr "{} önbellek dizinini seç."
#. The variable is the name of the source
#: src/importer/sources/location.py:35
msgid "Select the {} configuration directory."
msgstr "{} yapılandırma dizinini seç."
#. The variable is the name of the source
#: src/importer/sources/location.py:37
msgid "Select the {} data directory."
msgstr "{} veri dizinini seç."
#: src/store/managers/sgdb_manager.py:46
msgid "Couldn't Authenticate SteamGridDB"
msgstr "SteamGridDB Kimlik Doğrulaması Yapılamadı"
#: src/store/managers/sgdb_manager.py:47
msgid "Verify your API key in preferences"
msgstr "Tercihlerde API anahtarınızı doğrulayın"
#: src/importer/sources/retroarch_source.py:129
msgid "No RetroArch Core Selected"
msgstr "RetroArch Çekirdeği Seçilmedi"
#. The variable is a newline separated list of playlists
#: src/importer/sources/retroarch_source.py:131
msgid "The following playlists have no default core:"
msgstr "Aşağıdaki oynatma listelerinin öntanımlı çekirdeği yok:"
#: src/importer/sources/retroarch_source.py:133
msgid "Games with no core selected were not imported"
msgstr "Çekirdek seçilmeyen oyunlar içe aktarılmadı"
#~ msgid "Library"
#~ msgstr "Kütüphane"
#~ msgid "Show preferences"
#~ msgstr "Tercihleri Göster"
#~ msgid "Shortcuts"
#~ msgstr "Kısayollar"
#~ msgid "Open menu"
#~ msgstr "Menüyü Aç"
#~ msgid "Add new game"
#~ msgstr "Yeni Oyun Ekle"
#~ msgid "Import games"
#~ msgstr "Oyunları İçe Aktar"
#~ msgid "Back"
#~ msgstr "Geri"
#~ msgid "Search games"
#~ msgstr "Oyun ara"
#~ msgid "Search hidden games"
#~ msgstr "Gizli oyunları ara"
#~ msgid "The title of the game"
#~ msgstr "Oyunun başlığı"
#~ msgid "Developer"
#~ msgstr "Geliştirici"
#~ msgid "File to open or command to run when launching the game"
#~ msgstr "Oyun başlatılırken açılacak dosya veya çalıştırılacak komut"
#~ msgid "Confirm"
#~ msgstr "Doğrula"
#, fuzzy
#~| msgid "Cache Not Found"
#~ msgid "Directory not Valid"
#~ msgstr "Önbellek Bulunamadı"
#, fuzzy
#~| msgid "Confirm"
#~ msgid "Configuration"
#~ msgstr "Doğrula"
#~ msgid "Steam Install Location"
#~ msgstr "Steam Kurulu Konumu"
#~ msgid "Lutris Install Location"
#~ msgstr "Lutris Kurulu Konumu"
#~ msgid "Heroic Install Location"
#~ msgstr "Heroic Kurulu Konumu"
#~ msgid "Bottles Install Location"
#~ msgstr "Şişeler Kurulu Konumu"
#~ msgid "Today"
#~ msgstr "Bugün"
#~ msgid "Yesterday"
#~ msgstr "Dün"
#~ msgid "Select the Lutris cache directory."
#~ msgstr "Lutris önbellek dizinini seç."

788
po/uk.po

File diff suppressed because it is too large Load Diff

View File

@@ -1 +0,0 @@
def _(_msg: str, /) -> str: ...

0
src/__init__.py Normal file
View File

View File

@@ -55,6 +55,6 @@ if __name__ == "__main__":
resource = Gio.Resource.load(os.path.join(pkgdatadir, "cartridges.gresource"))
resource._register()
from src import main
from cartridges import main
sys.exit(main.main(VERSION))

View File

@@ -1,331 +0,0 @@
# details_window.py
#
# Copyright 2022-2023 kramo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
import os
import shlex
from pathlib import Path
from time import time
from typing import Any, Optional
from gi.repository import Adw, Gio, GLib, Gtk
from PIL import Image, UnidentifiedImageError
from src import shared
from src.errors.friendly_error import FriendlyError
from src.game import Game
from src.game_cover import GameCover
from src.store.managers.cover_manager import CoverManager
from src.store.managers.sgdb_manager import SgdbManager
from src.utils.create_dialog import create_dialog
from src.utils.save_cover import convert_cover, save_cover
@Gtk.Template(resource_path=shared.PREFIX + "/gtk/details-window.ui")
class DetailsWindow(Adw.Window):
__gtype_name__ = "DetailsWindow"
cover_overlay = Gtk.Template.Child()
cover = Gtk.Template.Child()
cover_button_edit = Gtk.Template.Child()
cover_button_delete_revealer = Gtk.Template.Child()
cover_button_delete = Gtk.Template.Child()
spinner = Gtk.Template.Child()
name = Gtk.Template.Child()
developer = Gtk.Template.Child()
executable = Gtk.Template.Child()
exec_info_label = Gtk.Template.Child()
exec_info_popover = Gtk.Template.Child()
file_chooser_button = Gtk.Template.Child()
apply_button = Gtk.Template.Child()
cover_changed: bool = False
def __init__(self, game: Optional[Game] = None, **kwargs: Any):
super().__init__(**kwargs)
self.game: Game = game
self.game_cover: GameCover = GameCover({self.cover})
self.set_transient_for(shared.win)
if self.game:
self.set_title(_("Game Details"))
self.name.set_text(self.game.name)
if self.game.developer:
self.developer.set_text(self.game.developer)
self.executable.set_text(self.game.executable)
self.apply_button.set_label(_("Apply"))
self.game_cover.new_cover(self.game.get_cover_path())
if self.game_cover.get_texture():
self.cover_button_delete_revealer.set_reveal_child(True)
else:
self.set_title(_("Add New Game"))
self.apply_button.set_label(_("Add"))
image_filter = Gtk.FileFilter(name=_("Images"))
for extension in Image.registered_extensions():
image_filter.add_suffix(extension[1:])
image_filter.add_suffix("svg") # Gdk.Texture supports .svg but PIL doesn't
image_filters = Gio.ListStore.new(Gtk.FileFilter)
image_filters.append(image_filter)
exec_filter = Gtk.FileFilter(name=_("Executables"))
exec_filter.add_mime_type("application/x-executable")
exec_filters = Gio.ListStore.new(Gtk.FileFilter)
exec_filters.append(exec_filter)
self.image_file_dialog = Gtk.FileDialog()
self.image_file_dialog.set_filters(image_filters)
self.image_file_dialog.set_default_filter(image_filter)
self.exec_file_dialog = Gtk.FileDialog()
self.exec_file_dialog.set_filters(exec_filters)
self.exec_file_dialog.set_default_filter(exec_filter)
# Translate this string as you would translate "file"
file_name = _("file.txt")
# As in software
exe_name = _("program")
if os.name == "nt":
exe_name += ".exe"
# Translate this string as you would translate "path to {}"
exe_path = _("C:\\path\\to\\{}").format(exe_name)
# Translate this string as you would translate "path to {}"
file_path = _("C:\\path\\to\\{}").format(file_name)
command = "start"
else:
# Translate this string as you would translate "path to {}"
exe_path = _("/path/to/{}").format(exe_name)
# Translate this string as you would translate "path to {}"
file_path = _("/path/to/{}").format(file_name)
command = "xdg-open"
# pylint: disable=line-too-long
exec_info_text = _(
'To launch the executable "{}", use the command:\n\n<tt>"{}"</tt>\n\nTo open the file "{}" with the default application, use:\n\n<tt>{} "{}"</tt>\n\nIf the path contains spaces, make sure to wrap it in double quotes!'
).format(exe_name, exe_path, file_name, command, file_path)
self.exec_info_label.set_label(exec_info_text)
self.exec_info_popover.update_property(
(Gtk.AccessibleProperty.LABEL,),
(
exec_info_text.replace("<tt>", "").replace("</tt>", ""),
), # Remove formatting, else the screen reader reads it
)
def set_exec_info_a11y_label(*_args: Any) -> None:
self.set_focus(self.exec_info_popover)
self.exec_info_popover.connect("show", set_exec_info_a11y_label)
self.cover_button_delete.connect("clicked", self.delete_pixbuf)
self.cover_button_edit.connect("clicked", self.choose_cover)
self.file_chooser_button.connect("clicked", self.choose_executable)
self.apply_button.connect("clicked", self.apply_preferences)
self.name.connect("entry-activated", self.focus_executable)
self.developer.connect("entry-activated", self.focus_executable)
self.executable.connect("entry-activated", self.apply_preferences)
self.set_focus(self.name)
self.present()
def delete_pixbuf(self, *_args: Any) -> None:
self.game_cover.new_cover()
self.cover_button_delete_revealer.set_reveal_child(False)
self.cover_changed = True
def apply_preferences(self, *_args: Any) -> None:
final_name = self.name.get_text()
final_developer = self.developer.get_text()
final_executable = self.executable.get_text()
if not self.game:
if final_name == "":
create_dialog(
self, _("Couldn't Add Game"), _("Game title cannot be empty.")
)
return
if final_executable == "":
create_dialog(
self, _("Couldn't Add Game"), _("Executable cannot be empty.")
)
return
# Increment the number after the game id (eg. imported_1, imported_2)
source_id = "imported"
numbers = [0]
game_id: str
for game_id in shared.store.source_games.get(source_id, set()):
prefix = "imported_"
if not game_id.startswith(prefix):
continue
numbers.append(int(game_id.replace(prefix, "", 1)))
game_number = max(numbers) + 1
self.game = Game(
{
"game_id": f"imported_{game_number}",
"hidden": False,
"source": source_id,
"added": int(time()),
}
)
if shared.win.sidebar.get_selected_row().get_child() not in (
shared.win.all_games_row_box,
shared.win.added_row_box,
):
shared.win.sidebar.select_row(shared.win.added_row_box.get_parent())
else:
if final_name == "":
create_dialog(
self,
_("Couldn't Apply Preferences"),
_("Game title cannot be empty."),
)
return
if final_executable == "":
create_dialog(
self,
_("Couldn't Apply Preferences"),
_("Executable cannot be empty."),
)
return
self.game.name = final_name
self.game.developer = final_developer or None
self.game.executable = final_executable
if self.game.game_id in shared.win.game_covers.keys():
shared.win.game_covers[self.game.game_id].animation = None
shared.win.game_covers[self.game.game_id] = self.game_cover
if self.cover_changed:
save_cover(
self.game.game_id,
self.game_cover.path,
)
shared.store.add_game(self.game, {}, run_pipeline=False)
self.game.save()
self.game.update()
# TODO: this is fucked up (less than before)
# Get a cover from SGDB if none is present
if not self.game_cover.get_texture():
self.game.set_loading(1)
sgdb_manager = shared.store.managers[SgdbManager]
sgdb_manager.reset_cancellable()
sgdb_manager.process_game(self.game, {}, self.update_cover_callback)
self.game_cover.pictures.remove(self.cover)
self.close()
shared.win.show_details_page(self.game)
def update_cover_callback(self, manager: SgdbManager) -> None:
# Set the game as not loading
self.game.set_loading(-1)
self.game.update()
# Handle errors that occured
for error in manager.collect_errors():
# On auth error, inform the user
if isinstance(error, FriendlyError):
create_dialog(
shared.win,
error.title,
error.subtitle,
"open_preferences",
_("Preferences"),
).connect("response", self.update_cover_error_response)
def update_cover_error_response(self, _widget: Any, response: str) -> None:
if response == "open_preferences":
shared.win.get_application().on_preferences_action(page_name="sgdb")
def focus_executable(self, *_args: Any) -> None:
self.set_focus(self.executable)
def toggle_loading(self) -> None:
self.apply_button.set_sensitive(not self.apply_button.get_sensitive())
self.spinner.set_spinning(not self.spinner.get_spinning())
self.cover_overlay.set_opacity(not self.cover_overlay.get_opacity())
def set_cover(self, _source: Any, result: Gio.Task, *_args: Any) -> None:
try:
path = self.image_file_dialog.open_finish(result).get_path()
except GLib.GError:
return
def thread_func() -> None:
new_path = None
try:
with Image.open(path) as image:
if getattr(image, "is_animated", False):
new_path = convert_cover(path)
except UnidentifiedImageError:
pass
if not new_path:
new_path = convert_cover(
pixbuf=shared.store.managers[CoverManager].composite_cover(
Path(path)
)
)
if new_path:
self.game_cover.new_cover(new_path)
self.cover_button_delete_revealer.set_reveal_child(True)
self.cover_changed = True
self.toggle_loading()
self.toggle_loading()
GLib.Thread.new(None, thread_func)
def set_executable(self, _source: Any, result: Gio.Task, *_args: Any) -> None:
try:
path = self.exec_file_dialog.open_finish(result).get_path()
except GLib.GError:
return
self.executable.set_text(shlex.quote(path))
def choose_executable(self, *_args: Any) -> None:
self.exec_file_dialog.open(self, None, self.set_executable)
def choose_cover(self, *_args: Any) -> None:
self.image_file_dialog.open(self, None, self.set_cover)

View File

@@ -1,28 +0,0 @@
from threading import Lock
class ErrorProducer:
"""
A mixin for objects that produce errors.
Specifies the report_error and collect_errors methods in a thread-safe manner.
"""
errors: list[Exception]
errors_lock: Lock
def __init__(self) -> None:
self.errors = []
self.errors_lock = Lock()
def report_error(self, error: Exception) -> None:
"""Report an error"""
with self.errors_lock:
self.errors.append(error)
def collect_errors(self) -> list[Exception]:
"""Collect and remove the errors produced by the object"""
with self.errors_lock:
errors = self.errors.copy()
self.errors.clear()
return errors

View File

@@ -1,47 +0,0 @@
from typing import Iterable, Optional
class FriendlyError(Exception):
"""
An error that is supposed to be shown to the user in a nice format
Use `raise ... from ...` to preserve context.
"""
title_format: str
title_args: Iterable[str]
subtitle_format: str
subtitle_args: Iterable[str]
@property
def title(self) -> str:
"""Get the gettext translated error title"""
return self.title_format.format(self.title_args)
@property
def subtitle(self) -> str:
"""Get the gettext translated error subtitle"""
return self.subtitle_format.format(self.subtitle_args)
def __init__(
self,
title: str,
subtitle: str,
title_args: Optional[Iterable[str]] = None,
subtitle_args: Optional[Iterable[str]] = None,
) -> None:
"""Create a friendly error
:param str title: The error's title, translatable with gettext
:param str subtitle: The error's subtitle, translatable with gettext
"""
super().__init__()
if title is not None:
self.title_format = title
if subtitle is not None:
self.subtitle_format = subtitle
self.title_args = title_args if title_args else ()
self.subtitle_args = subtitle_args if subtitle_args else ()
def __str__(self) -> str:
return f"{self.title} - {self.subtitle}"

View File

@@ -17,25 +17,23 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
import logging
import json
import os
import shlex
import shlex # pylint: disable=unused-import
import subprocess
from pathlib import Path
from time import time
from typing import Any, Optional
import sys
from gi.repository import Adw, GObject, Gtk
from gi.repository import Gio, Gtk
from src import shared
from src.game_cover import GameCover
from .game_cover import GameCover
from .save_game import save_game
# pylint: disable=too-many-instance-attributes
@Gtk.Template(resource_path=shared.PREFIX + "/gtk/game.ui")
@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()
play_button = Gtk.Template.Child()
cover = Gtk.Template.Child()
@@ -43,177 +41,131 @@ class Game(Gtk.Box):
cover_button = Gtk.Template.Child()
menu_button = Gtk.Template.Child()
play_revealer = Gtk.Template.Child()
menu_revealer = Gtk.Template.Child()
title_revealer = Gtk.Template.Child()
game_options = Gtk.Template.Child()
hidden_game_options = Gtk.Template.Child()
loading: int = 0
filtered: bool = False
added: int
executable: str
game_id: str
source: str
hidden: bool = False
last_played: int = 0
name: str
developer: Optional[str] = None
removed: bool = False
blacklisted: bool = False
game_cover: GameCover = None
version: int = 0
def __init__(self, data: dict[str, Any], **kwargs: Any) -> None:
def __init__(self, win, data, **kwargs):
super().__init__(**kwargs)
self.app = shared.win.get_application()
self.version = shared.SPEC_VERSION
self.win = win
self.added = data["added"]
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 else None
self.removed = "removed" in data
self.blacklisted = "blacklisted" in data
self.update_values(data)
self.base_source = self.source.split("_")[0]
self.loading = 0
self.title.set_label(self.name)
self.set_play_icon()
if self.game_id in self.win.game_covers:
self.win.game_covers[self.game_id].add_picture(self.cover)
else:
game_cover = GameCover({self.cover}, self.get_cover_path())
self.win.game_covers[self.game_id] = game_cover
self.event_contoller_motion = Gtk.EventControllerMotion.new()
self.add_controller(self.event_contoller_motion)
self.event_contoller_motion.connect("enter", self.toggle_play, False)
self.event_contoller_motion.connect("leave", self.toggle_play, None, None)
self.cover_button.connect("clicked", self.main_button_clicked, False)
self.play_button.connect("clicked", self.main_button_clicked, True)
self.overlay.set_measure_overlay(self.play_revealer, True)
shared.schema.connect("changed", self.schema_changed)
self.set_play_label()
def update_values(self, data: dict[str, Any]) -> None:
for key, value in data.items():
# Convert executables to strings
if key == "executable" and isinstance(value, list):
value = shlex.join(value)
setattr(self, key, value)
self.cover_button.connect("clicked", self.cover_button_clicked)
self.play_button.connect("clicked", self.play_button_clicked)
def update(self) -> None:
self.emit("update-ready", {})
self.event_contoller_motion.connect("enter", self.show_play)
self.event_contoller_motion.connect("leave", self.hide_play)
def save(self) -> None:
self.emit("save-ready", {})
self.win.schema.connect("changed", self.schema_changed)
def create_toast(self, title: str, action: Optional[str] = None) -> None:
toast = Adw.Toast.new(title.format(self.name))
toast.set_priority(Adw.ToastPriority.HIGH)
toast.set_use_markup(False)
if action:
toast.set_button_label(_("Undo"))
toast.connect("button-clicked", shared.win.on_undo_action, self, action)
if (self, action) in shared.win.toasts.keys():
# Dismiss the toast if there already is one
shared.win.toasts[(self, action)].dismiss()
shared.win.toasts[(self, action)] = toast
shared.win.toast_overlay.add_toast(toast)
def launch(self) -> None:
self.last_played = int(time())
self.save()
self.update()
if self.hidden:
self.menu_button.set_menu_model(self.hidden_game_options)
else:
self.menu_button.set_menu_model(self.game_options)
self.menu_button.get_popover().connect("notify::visible", self.hide_play)
def launch(self):
# Generate launch arguments, either list (no shell) or a string (for shell).
args = (
"flatpak-spawn --host /bin/sh -c " + shlex.quote(self.executable) # Flatpak
if os.getenv("FLATPAK_ID") == shared.APP_ID
else self.executable # Others
["flatpak-spawn", "--host", *self.executable] # Flatpak
if os.getenv("FLATPAK_ID") == "hu.kramo.Cartridges"
else shlex.join(
self.executable
) # Windows (We need shell to support its "open" built-in).
if os.name == "nt"
else self.executable # Linux/Others
)
logging.info("Starting %s: %s", self.name, str(args))
# pylint: disable=consider-using-with
# The host environment vars are automatically passed through by Popen.
subprocess.Popen(
args,
cwd=shared.home,
shell=True,
shell=isinstance(args, str),
start_new_session=True,
creationflags=subprocess.CREATE_NEW_PROCESS_GROUP if os.name == "nt" else 0, # type: ignore
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()
def toggle_hidden(self):
data = json.loads(
(self.win.games_dir / f"{self.game_id}.json").read_text("utf-8")
)
if shared.schema.get_boolean("exit-after-launch"):
self.app.quit()
data["hidden"] = not data["hidden"]
# The variable is the title of the game
self.create_toast(_("{} launched"))
save_game(self.win, data)
def toggle_hidden(self, toast: bool = True) -> None:
self.hidden = not self.hidden
self.save()
def get_cover_path(self):
cover_path = self.win.covers_dir / f"{self.game_id}.gif"
if cover_path.is_file():
return cover_path
if shared.win.navigation_view.get_visible_page() == shared.win.details_page:
shared.win.navigation_view.pop()
cover_path = self.win.covers_dir / f"{self.game_id}.tiff"
if cover_path.is_file():
return cover_path
self.update()
def show_play(self, _widget, *_unused):
self.play_revealer.set_reveal_child(True)
self.title_revealer.set_reveal_child(False)
if toast:
self.create_toast(
# The variable is the title of the game
(_("{} hidden") if self.hidden else _("{} unhidden")).format(self.name),
"hide",
)
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 remove_game(self) -> None:
# Add "removed=True" to the game properties so it can be deleted on next init
self.removed = True
self.save()
self.update()
def launch_game(self, _widget, *_unused):
self.win.set_active_game(None, None, self.game_id)
self.win.get_application().on_launch_game_action(None)
if shared.win.navigation_view.get_visible_page() == shared.win.details_page:
shared.win.navigation_view.pop()
def cover_button_clicked(self, _widget):
if self.win.schema.get_boolean("cover-launches-game"):
self.launch_game(None)
else:
self.win.show_details_view(None, self.game_id)
# The variable is the title of the game
self.create_toast(_("{} removed").format(self.name), "remove")
def play_button_clicked(self, _widget):
if self.win.schema.get_boolean("cover-launches-game"):
self.win.show_details_view(None, self.game_id)
else:
self.launch_game(None)
def set_loading(self, state: int) -> None:
def set_play_label(self):
if self.win.schema.get_boolean("cover-launches-game"):
self.play_button.set_label(_("Details"))
else:
self.play_button.set_label(_("Play"))
def schema_changed(self, _settings, key):
if key == "cover-launches-game":
self.set_play_label()
def set_loading(self, state):
self.loading += state
loading = self.loading > 0
self.cover.set_opacity(int(not loading))
self.spinner.set_spinning(loading)
def get_cover_path(self) -> Optional[Path]:
cover_path = shared.covers_dir / f"{self.game_id}.gif"
if cover_path.is_file():
return cover_path # type: ignore
cover_path = shared.covers_dir / f"{self.game_id}.tiff"
if cover_path.is_file():
return cover_path # type: ignore
return None
def toggle_play(
self, _widget: Any, _prop1: Any, _prop2: Any, state: bool = True
) -> None:
if not self.menu_button.get_active():
self.play_revealer.set_reveal_child(not state)
self.menu_revealer.set_reveal_child(not state)
def main_button_clicked(self, _widget: Any, button: bool) -> None:
if shared.schema.get_boolean("cover-launches-game") ^ button:
self.launch()
else:
shared.win.show_details_page(self)
def set_play_icon(self) -> None:
self.play_button.set_icon_name(
"help-about-symbolic"
if shared.schema.get_boolean("cover-launches-game")
else "media-playback-start-symbolic"
)
def schema_changed(self, _settings: Any, key: str) -> None:
if key == "cover-launches-game":
self.set_play_icon()
@GObject.Signal(name="update-ready", arg_types=[object])
def update_ready(self, _additional_data): # type: ignore
"""Signal emitted when the game needs updating"""
@GObject.Signal(name="save-ready", arg_types=[object])
def save_ready(self, _additional_data): # type: ignore
"""Signal emitted when the game needs saving"""

View File

@@ -17,98 +17,62 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
from pathlib import Path
from typing import Optional
from gi.repository import Gdk, GdkPixbuf, Gio, GLib, Gtk
from PIL import Image, ImageFilter, ImageStat
from src import shared
from gi.repository import GdkPixbuf, Gio, GLib
class GameCover:
texture: Optional[Gdk.Texture]
blurred: Optional[Gdk.Texture]
luminance: Optional[tuple[float, float]]
path: Optional[Path]
animation: Optional[GdkPixbuf.PixbufAnimation]
anim_iter: Optional[GdkPixbuf.PixbufAnimationIter]
pixbuf = None
path = None
animation = None
anim_iter = None
placeholder = Gdk.Texture.new_from_resource(
shared.PREFIX + "/library_placeholder.svg"
)
placeholder_small = Gdk.Texture.new_from_resource(
shared.PREFIX + "/library_placeholder_small.svg"
placeholder_pixbuf = GdkPixbuf.Pixbuf.new_from_resource_at_scale(
"/hu/kramo/Cartridges/library_placeholder.svg", 400, 600, False
)
def __init__(self, pictures: set[Gtk.Picture], path: Optional[Path] = None) -> None:
def __init__(self, pictures, path=None):
self.pictures = pictures
self.new_cover(path)
self.new_pixbuf(path)
def new_cover(self, path: Optional[Path] = None) -> None:
# Wrap the function in another one as Gio.Task.run_in_thread does not allow for passing args
def create_func(self, path):
self.animation = GdkPixbuf.PixbufAnimation.new_from_file(str(path))
self.anim_iter = self.animation.get_iter()
def wrapper(task, *_unused):
self.update_animation((task, self.animation))
return wrapper
def new_pixbuf(self, path=None):
self.animation = None
self.texture = None
self.blurred = None
self.luminance = None
self.pixbuf = None
self.path = path
if path:
if path.suffix == ".gif":
self.animation = GdkPixbuf.PixbufAnimation.new_from_file(str(path))
self.anim_iter = self.animation.get_iter()
self.task = Gio.Task.new()
self.task.run_in_thread(
lambda *_: self.update_animation((self.task, self.animation))
)
if str(path).rsplit(".", maxsplit=1)[-1] == "gif":
task = Gio.Task.new()
task.run_in_thread(self.create_func(self.path))
else:
self.texture = Gdk.Texture.new_from_filename(str(path))
self.pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(
str(path), 200, 300, False
)
if not self.animation:
self.set_texture(self.texture)
self.set_pixbuf(self.pixbuf)
def get_texture(self) -> Gdk.Texture:
return (
Gdk.Texture.new_for_pixbuf(self.animation.get_static_image())
if self.animation
else self.texture
)
def get_pixbuf(self):
return self.animation.get_static_image() if self.animation else self.pixbuf
def get_blurred(self) -> Gdk.Texture:
if not self.blurred:
if self.path:
with Image.open(self.path) as image:
image = (
image.convert("RGB")
.resize((100, 150))
.filter(ImageFilter.GaussianBlur(20))
)
def get_animation(self):
return self.path if self.animation else None
tmp_path = Gio.File.new_tmp(None)[0].get_path()
image.save(tmp_path, "tiff", compression=None)
self.blurred = Gdk.Texture.new_from_filename(tmp_path)
stat = ImageStat.Stat(image.convert("L"))
# Luminance values for light and dark mode
self.luminance = (
min((stat.mean[0] + stat.extrema[0][0]) / 510, 0.7),
max((stat.mean[0] + stat.extrema[0][1]) / 510, 0.3),
)
else:
self.blurred = self.placeholder_small
self.luminance = (0.3, 0.5)
return self.blurred
def add_picture(self, picture: Gtk.Picture) -> None:
def add_picture(self, picture):
self.pictures.add(picture)
if not self.animation:
self.set_texture(self.texture)
else:
self.update_animation((self.task, self.animation))
self.set_pixbuf(self.pixbuf)
def set_texture(self, texture: Gdk.Texture) -> None:
def set_pixbuf(self, pixbuf):
self.pictures.discard(
picture for picture in self.pictures if not picture.is_visible()
)
@@ -116,17 +80,21 @@ class GameCover:
self.animation = None
else:
for picture in self.pictures:
picture.set_paintable(texture or self.placeholder)
if not pixbuf:
pixbuf = self.placeholder_pixbuf
picture.set_pixbuf(pixbuf)
def update_animation(self, data: GdkPixbuf.PixbufAnimation) -> None:
def update_animation(self, data):
if self.animation == data[1]:
self.anim_iter.advance() # type: ignore
self.anim_iter.advance()
self.set_texture(Gdk.Texture.new_for_pixbuf(self.anim_iter.get_pixbuf())) # type: ignore
self.set_pixbuf(self.anim_iter.get_pixbuf())
delay_time = self.anim_iter.get_delay_time() # type: ignore
delay_time = self.anim_iter.get_delay_time()
GLib.timeout_add(
20 if delay_time < 20 else delay_time,
self.update_animation,
data,
)
else:
data[0].return_value(False)

View File

@@ -1,109 +0,0 @@
# bottles_source.py
#
# Copyright 2022-2023 kramo
# Copyright 2023 Geoffrey Coulaud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
from pathlib import Path
from typing import NamedTuple
import yaml
from src import shared
from src.game import Game
from src.importer.location import Location, LocationSubPath
from src.importer.source import SourceIterable, URLExecutableSource
class BottlesSourceIterable(SourceIterable):
source: "BottlesSource"
def __iter__(self):
"""Generator method producing games"""
data = self.source.locations.data["library.yml"].read_text("utf-8")
library: dict = yaml.safe_load(data)
for entry in library.values():
# Build game
values = {
"source": self.source.source_id,
"added": shared.import_time,
"name": entry["name"],
"game_id": self.source.game_id_format.format(game_id=entry["id"]),
"executable": self.source.make_executable(
bottle_name=entry["bottle"]["name"],
game_name=entry["name"],
),
}
game = Game(values)
# Get official cover path
try:
# This will not work if both Cartridges and Bottles are installed via Flatpak
# as Cartridges can't access directories picked via Bottles' file picker portal
bottles_location = Path(
yaml.safe_load(
self.source.locations.data["data.yml"].read_text("utf-8")
)["custom_bottles_path"]
)
except (FileNotFoundError, KeyError):
bottles_location = self.source.locations.data.root / "bottles"
bottle_path = entry["bottle"]["path"]
additional_data = {}
if entry["thumbnail"]:
image_name = entry["thumbnail"].split(":")[1]
image_path = bottles_location / bottle_path / "grids" / image_name
additional_data = {"local_image_path": image_path}
yield (game, additional_data)
class BottlesLocations(NamedTuple):
data: Location
class BottlesSource(URLExecutableSource):
"""Generic Bottles source"""
source_id = "bottles"
name = _("Bottles")
iterable_class = BottlesSourceIterable
url_format = 'bottles:run/"{bottle_name}"/"{game_name}"'
available_on = {"linux"}
locations: BottlesLocations
def __init__(self) -> None:
super().__init__()
self.locations = BottlesLocations(
Location(
schema_key="bottles-location",
candidates=(
shared.flatpak_dir / "com.usebottles.bottles" / "data" / "bottles",
shared.data_dir / "bottles/",
shared.home / ".local" / "share" / "bottles",
),
paths={
"library.yml": LocationSubPath("library.yml"),
"data.yml": LocationSubPath("data.yml"),
},
invalid_subtitle=Location.DATA_INVALID_SUBTITLE,
)
)

View File

@@ -1,223 +0,0 @@
# desktop_source.py
#
# Copyright 2023 kramo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
import os
import shlex
import subprocess
from pathlib import Path
from typing import NamedTuple
from gi.repository import GLib, Gtk
from src import shared
from src.game import Game
from src.importer.source import Source, SourceIterable
class DesktopSourceIterable(SourceIterable):
source: "DesktopSource"
def __iter__(self):
"""Generator method producing games"""
icon_theme = Gtk.IconTheme.new()
search_paths = [
shared.home / ".local" / "share",
"/run/host/usr/local/share",
"/run/host/usr/share",
"/run/host/usr/share/pixmaps",
"/usr/share/pixmaps",
] + GLib.get_system_data_dirs()
for search_path in search_paths:
path = Path(search_path)
if not str(search_path).endswith("/pixmaps"):
path = path / "icons"
if not path.is_dir():
continue
if str(path).startswith("/app/"):
continue
icon_theme.add_search_path(str(path))
launch_command, full_path = self.check_launch_commands()
for path in search_paths:
if str(path).startswith("/app/"):
continue
path = Path(path) / "applications"
if not path.is_dir():
continue
for entry in path.iterdir():
if entry.suffix != ".desktop":
continue
# Skip Lutris games
if str(entry.name).startswith("net.lutris."):
continue
keyfile = GLib.KeyFile.new()
try:
keyfile.load_from_file(str(entry), 0)
if "Game" not in keyfile.get_string_list(
"Desktop Entry", "Categories"
):
continue
name = keyfile.get_string("Desktop Entry", "Name")
executable = keyfile.get_string("Desktop Entry", "Exec").split(
" %"
)[0]
except GLib.GError:
continue
try:
try_exec = "which " + keyfile.get_string("Desktop Entry", "TryExec")
if not self.check_command(try_exec):
continue
except GLib.GError:
pass
# Skip Steam games
if "steam://rungameid/" in executable:
continue
# Skip Heroic games
if "heroic://launch/" in executable:
continue
# Skip Bottles games
if "bottles-cli " in executable:
continue
try:
if keyfile.get_boolean("Desktop Entry", "NoDisplay"):
continue
except GLib.GError:
pass
try:
if keyfile.get_boolean("Desktop Entry", "Hidden"):
continue
except GLib.GError:
pass
# Strip /run/host from Flatpak paths
if entry.is_relative_to(prefix := "/run/host"):
entry = Path("/") / entry.relative_to(prefix)
launch_arg = shlex.quote(str(entry if full_path else entry.stem))
values = {
"source": self.source.source_id,
"added": shared.import_time,
"name": name,
"game_id": f"desktop_{entry.stem}",
"executable": f"{launch_command} {launch_arg}",
}
game = Game(values)
additional_data = {}
try:
icon_str = keyfile.get_string("Desktop Entry", "Icon")
except GLib.GError:
yield game
continue
else:
if "/" in icon_str:
additional_data = {"local_icon_path": Path(icon_str)}
yield (game, additional_data)
continue
try:
if (
icon_path := icon_theme.lookup_icon(
icon_str,
None,
512,
1,
shared.win.get_direction(),
0,
)
.get_file()
.get_path()
):
additional_data = {"local_icon_path": Path(icon_path)}
except GLib.GError:
pass
yield (game, additional_data)
def check_command(self, command) -> bool:
flatpak_str = "flatpak-spawn --host /bin/sh -c "
if os.getenv("FLATPAK_ID") == shared.APP_ID:
command = flatpak_str + shlex.quote(command)
try:
subprocess.run(command, shell=True, check=True)
except subprocess.CalledProcessError:
return False
return True
def check_launch_commands(self) -> (str, bool):
"""Check whether `gio launch` `gtk4-launch` or `gtk-launch` are available on the system"""
commands = (("gio launch", True), ("gtk4-launch", False), ("gtk-launch", False))
for command, full_path in commands:
# Even if `gio` is available, `gio launch` is only available on GLib >= 2.67.2
command_to_check = (
"gio help launch" if command == "gio launch" else f"which {command}"
)
if self.check_command(command_to_check):
return command, full_path
return commands[2]
class DesktopLocations(NamedTuple):
pass
class DesktopSource(Source):
"""Generic Flatpak source"""
source_id = "desktop"
name = _("Desktop Entries")
iterable_class = DesktopSourceIterable
available_on = {"linux"}
locations: DesktopLocations
def __init__(self) -> None:
super().__init__()
self.locations = DesktopLocations()

View File

@@ -1,140 +0,0 @@
# flatpak_source.py
#
# Copyright 2022-2023 kramo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
from pathlib import Path
from typing import NamedTuple
from gi.repository import GLib, Gtk
from src import shared
from src.game import Game
from src.importer.location import Location, LocationSubPath
from src.importer.source import ExecutableFormatSource, SourceIterable
class FlatpakSourceIterable(SourceIterable):
source: "FlatpakSource"
def __iter__(self):
"""Generator method producing games"""
icon_theme = Gtk.IconTheme.new()
icon_theme.add_search_path(str(self.source.locations.data["icons"]))
blacklist = (
{"hu.kramo.Cartridges", "hu.kramo.Cartridges.Devel"}
if shared.schema.get_boolean("flatpak-import-launchers")
else {
"hu.kramo.Cartridges",
"hu.kramo.Cartridges.Devel",
"com.valvesoftware.Steam",
"net.lutris.Lutris",
"com.heroicgameslauncher.hgl",
"com.usebottles.Bottles",
"io.itch.itch",
"org.libretro.RetroArch",
}
)
for entry in (self.source.locations.data["applications"]).iterdir():
if entry.suffix != ".desktop":
continue
keyfile = GLib.KeyFile.new()
try:
keyfile.load_from_file(str(entry), 0)
if "Game" not in keyfile.get_string_list("Desktop Entry", "Categories"):
continue
if (
flatpak_id := keyfile.get_string("Desktop Entry", "X-Flatpak")
) in blacklist or flatpak_id != entry.stem:
continue
name = keyfile.get_string("Desktop Entry", "Name")
except GLib.GError:
continue
values = {
"source": self.source.source_id,
"added": shared.import_time,
"name": name,
"game_id": self.source.game_id_format.format(game_id=flatpak_id),
"executable": self.source.make_executable(flatpak_id=flatpak_id),
}
game = Game(values)
additional_data = {}
try:
if (
icon_path := icon_theme.lookup_icon(
keyfile.get_string("Desktop Entry", "Icon"),
None,
512,
1,
shared.win.get_direction(),
0,
)
.get_file()
.get_path()
):
additional_data = {"local_icon_path": Path(icon_path)}
else:
pass
except GLib.GError:
pass
yield (game, additional_data)
class FlatpakLocations(NamedTuple):
data: Location
class FlatpakSource(ExecutableFormatSource):
"""Generic Flatpak source"""
source_id = "flatpak"
name = _("Flatpak")
iterable_class = FlatpakSourceIterable
executable_format = "flatpak run {flatpak_id}"
available_on = {"linux"}
locations: FlatpakLocations
def __init__(self) -> None:
super().__init__()
self.locations = FlatpakLocations(
Location(
schema_key="flatpak-location",
candidates=(
"/var/lib/flatpak/",
shared.data_dir / "flatpak",
),
paths={
"applications": LocationSubPath("exports/share/applications", True),
"icons": LocationSubPath("exports/share/icons", True),
},
invalid_subtitle=Location.DATA_INVALID_SUBTITLE,
)
)

View File

@@ -1,387 +0,0 @@
# heroic_source.py
#
# Copyright 2022-2023 kramo
# Copyright 2023 Geoffrey Coulaud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
import json
import logging
from abc import abstractmethod
from functools import cached_property
from hashlib import sha256
from json import JSONDecodeError
from pathlib import Path
from typing import Iterable, NamedTuple, Optional, TypedDict
from src import shared
from src.game import Game
from src.importer.location import Location, LocationSubPath
from src.importer.source import (
SourceIterable,
SourceIterationResult,
URLExecutableSource,
)
def path_json_load(path: Path):
"""
Load JSON from the file at the given path
:raises OSError: if the file can't be opened
:raises JSONDecodeError: if the file isn't valid JSON
"""
with path.open("r", encoding="utf-8") as open_file:
return json.load(open_file)
class InvalidLibraryFileError(Exception):
pass
class InvalidInstalledFileError(Exception):
pass
class InvalidStoreFileError(Exception):
pass
class HeroicLibraryEntry(TypedDict):
app_name: str
installed: Optional[bool]
runner: str
title: str
developer: str
art_square: str
class SubSourceIterable(Iterable):
"""Class representing a Heroic sub-source"""
source: "HeroicSource"
source_iterable: "HeroicSourceIterable"
name: str
service: str
image_uri_params: str = ""
relative_library_path: Path
library_json_entries_key: str = "library"
def __init__(self, source, source_iterable) -> None:
self.source = source
self.source_iterable = source_iterable
@cached_property
def library_path(self) -> Path:
path = self.source.locations.config.root / self.relative_library_path
logging.debug("Using Heroic %s library.json path %s", self.name, path)
return path
def process_library_entry(self, entry: HeroicLibraryEntry) -> SourceIterationResult:
"""Build a Game from a Heroic library entry"""
app_name = entry["app_name"]
runner = entry["runner"]
# Build game
values = {
"source": f"{self.source.source_id}_{self.service}",
"added": shared.import_time,
"name": entry["title"],
"developer": entry.get("developer", None),
"game_id": self.source.game_id_format.format(
service=self.service, game_id=app_name
),
"executable": self.source.make_executable(runner=runner, app_name=app_name),
"hidden": self.source_iterable.is_hidden(app_name),
}
game = Game(values)
# Get the image path from the Heroic cache
# Filenames are derived from the URL that Heroic used to get the file
uri: str = entry["art_square"] + self.image_uri_params
digest = sha256(uri.encode()).hexdigest()
image_path = self.source.locations.config.root / "images-cache" / digest
additional_data = {"local_image_path": image_path}
return (game, additional_data)
def __iter__(self):
"""
Iterate through the games with a generator
:raises InvalidLibraryFileError: on initial call if the library file is bad
"""
try:
iterator = iter(
path_json_load(self.library_path)[self.library_json_entries_key]
)
except (OSError, JSONDecodeError, TypeError, KeyError) as error:
raise InvalidLibraryFileError(
f"Invalid {self.library_path.name}"
) from error
for entry in iterator:
try:
yield self.process_library_entry(entry)
except KeyError as error:
logging.warning(
"Skipped invalid %s game %s",
self.name,
entry.get("app_name", "UNKNOWN"),
exc_info=error,
)
continue
class StoreSubSourceIterable(SubSourceIterable):
"""
Class representing a "store" sub source.
Games can be installed or not, this class does the check accordingly.
"""
relative_installed_path: Path
installed_app_names: set[str]
@cached_property
def installed_path(self) -> Path:
path = self.source.locations.config.root / self.relative_installed_path
logging.debug("Using Heroic %s installed.json path %s", self.name, path)
return path
@abstractmethod
def get_installed_app_names(self) -> set[str]:
"""
Get the sub source's installed app names as a set.
:raises InvalidInstalledFileError: if the installed file data cannot be read
Whenever possible, `__cause__` is set with the original exception
"""
def is_installed(self, app_name: str) -> bool:
return app_name in self.installed_app_names
def process_library_entry(self, entry):
# Skip games that are not installed
app_name = entry["app_name"]
if not self.is_installed(app_name):
logging.warning(
"Skipped %s game %s (%s): not installed",
self.service,
entry["title"],
app_name,
)
return None
# Process entry as normal
return super().process_library_entry(entry)
def __iter__(self):
"""
Iterate through the installed games with a generator
:raises InvalidLibraryFileError: on initial call if the library file is bad
:raises InvalidInstalledFileError: on initial call if the installed file is bad
"""
self.installed_app_names = self.get_installed_app_names()
yield from super().__iter__()
class SideloadIterable(SubSourceIterable):
name = "sideload"
service = "sideload"
relative_library_path = Path("sideload_apps") / "library.json"
library_json_entries_key = "games"
class LegendaryIterable(StoreSubSourceIterable):
name = "legendary"
service = "epic"
image_uri_params = "?h=400&resize=1&w=300"
relative_library_path = Path("store_cache") / "legendary_library.json"
# relative_installed_path = (
# Path("legendary") / "legendaryConfig" / "legendary" / "installed.json"
# )
@cached_property
def installed_path(self) -> Path:
"""Get the right path depending on the Heroic version"""
# TODO after Heroic 2.9 has been out for a while
# We should use the commented out relative_installed_path
# and remove this property override.
heroic_config_path = self.source.locations.config.root
# Heroic >= 2.9
if (path := heroic_config_path / "legendaryConfig").is_dir():
logging.debug("Using Heroic >= 2.9 legendary file")
# Heroic <= 2.8
elif heroic_config_path.is_relative_to(shared.flatpak_dir):
# Heroic flatpak
path = shared.flatpak_dir / "com.heroicgameslauncher.hgl" / "config"
logging.debug("Using Heroic flatpak <= 2.8 legendary file")
else:
# Heroic native
logging.debug("Using Heroic native <= 2.8 legendary file")
path = shared.home / ".config"
path = path / "legendary" / "installed.json"
logging.debug("Using Heroic %s installed.json path %s", self.name, path)
return path
def get_installed_app_names(self):
try:
return set(path_json_load(self.installed_path).keys())
except (OSError, JSONDecodeError, AttributeError) as error:
raise InvalidInstalledFileError(
f"Invalid {self.installed_path.name}"
) from error
class GogIterable(StoreSubSourceIterable):
name = "gog"
service = "gog"
library_json_entries_key = "games"
relative_library_path = Path("store_cache") / "gog_library.json"
relative_installed_path = Path("gog_store") / "installed.json"
def get_installed_app_names(self):
try:
return {
app_name
for entry in path_json_load(self.installed_path)["installed"]
if (app_name := entry.get("appName")) is not None
}
except (OSError, JSONDecodeError, KeyError, AttributeError) as error:
raise InvalidInstalledFileError(
f"Invalid {self.installed_path.name}"
) from error
class NileIterable(StoreSubSourceIterable):
name = "nile"
service = "amazon"
relative_library_path = Path("store_cache") / "nile_library.json"
relative_installed_path = Path("nile_config") / "nile" / "installed.json"
def get_installed_app_names(self):
try:
installed_json = path_json_load(self.installed_path)
return {
app_name
for entry in installed_json
if (app_name := entry.get("id")) is not None
}
except (OSError, JSONDecodeError, AttributeError) as error:
raise InvalidInstalledFileError(
f"Invalid {self.installed_path.name}"
) from error
class HeroicSourceIterable(SourceIterable):
source: "HeroicSource"
hidden_app_names: set[str] = set()
def is_hidden(self, app_name: str) -> bool:
return app_name in self.hidden_app_names
def get_hidden_app_names(self) -> set[str]:
"""Get the hidden app names from store/config.json
:raises InvalidStoreFileError: if the store is invalid for some reason
"""
try:
store = path_json_load(self.source.locations.config["store_config.json"])
self.hidden_app_names = {
app_name
for game in store["games"]["hidden"]
if (app_name := game.get("appName")) is not None
}
except KeyError:
logging.warning('No ["games"]["hidden"] key in Heroic store file')
except (OSError, JSONDecodeError, TypeError) as error:
logging.error("Invalid Heroic store file", exc_info=error)
raise InvalidStoreFileError() from error
def __iter__(self):
"""Generator method producing games from all the Heroic sub-sources"""
self.get_hidden_app_names()
# Get games from the sub sources
for sub_source_class in (
SideloadIterable,
LegendaryIterable,
GogIterable,
NileIterable,
):
sub_source = sub_source_class(self.source, self)
if not shared.schema.get_boolean("heroic-import-" + sub_source.service):
logging.debug("Skipping Heroic %s: disabled", sub_source.service)
continue
try:
sub_source_iterable = iter(sub_source)
yield from sub_source_iterable
except (InvalidLibraryFileError, InvalidInstalledFileError) as error:
logging.error(
"Skipping bad Heroic sub-source %s",
sub_source.service,
exc_info=error,
)
continue
class HeroicLocations(NamedTuple):
config: Location
class HeroicSource(URLExecutableSource):
"""Generic Heroic Games Launcher source"""
source_id = "heroic"
name = _("Heroic")
iterable_class = HeroicSourceIterable
url_format = "heroic://launch/{runner}/{app_name}"
available_on = {"linux", "win32"}
locations: HeroicLocations
@property
def game_id_format(self) -> str:
"""The string format used to construct game IDs"""
return self.source_id + "_{service}_{game_id}"
def __init__(self) -> None:
super().__init__()
self.locations = HeroicLocations(
Location(
schema_key="heroic-location",
candidates=(
shared.config_dir / "heroic",
shared.home / ".config" / "heroic",
shared.flatpak_dir
/ "com.heroicgameslauncher.hgl"
/ "config"
/ "heroic",
shared.appdata_dir / "heroic",
),
paths={
"config.json": LocationSubPath("config.json"),
"store_config.json": LocationSubPath("store/config.json"),
},
invalid_subtitle=Location.CONFIG_INVALID_SUBTITLE,
)
)

View File

@@ -1,424 +0,0 @@
# importer.py
#
# Copyright 2022-2023 kramo
# Copyright 2023 Geoffrey Coulaud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
import logging
from time import time
from typing import Any, Optional
from gi.repository import Adw, Gio, GLib, Gtk
from src import shared
from src.errors.error_producer import ErrorProducer
from src.errors.friendly_error import FriendlyError
from src.game import Game
from src.importer.location import UnresolvableLocationError
from src.importer.source import Source
from src.store.managers.async_manager import AsyncManager
from src.store.pipeline import Pipeline
# pylint: disable=too-many-instance-attributes
class Importer(ErrorProducer):
"""A class in charge of scanning sources for games"""
progressbar: Gtk.ProgressBar
import_statuspage: Adw.StatusPage
import_dialog: Adw.MessageDialog
summary_toast: Optional[Adw.Toast] = None
sources: set[Source]
n_source_tasks_created: int = 0
n_source_tasks_done: int = 0
n_pipelines_done: int = 0
game_pipelines: set[Pipeline]
removed_game_ids: set[str]
imported_game_ids: set[str]
close_req_id: int
def __init__(self) -> None:
super().__init__()
shared.import_time = int(time())
# TODO: make this stateful
shared.store.new_game_ids = set()
shared.store.duplicate_game_ids = set()
self.removed_game_ids = set()
self.imported_game_ids = set()
self.game_pipelines = set()
self.sources = set()
@property
def n_games_added(self) -> int:
return sum(
1 if not (pipeline.game.blacklisted or pipeline.game.removed) else 0
for pipeline in self.game_pipelines
)
@property
def pipelines_progress(self) -> float:
progress = sum(pipeline.progress for pipeline in self.game_pipelines)
try:
progress = progress / len(self.game_pipelines)
except ZeroDivisionError:
progress = 0
return progress # type: ignore
@property
def sources_progress(self) -> float:
try:
progress = self.n_source_tasks_done / self.n_source_tasks_created
except ZeroDivisionError:
progress = 0
return progress
@property
def finished(self) -> bool:
return (
self.n_source_tasks_created == self.n_source_tasks_done
and len(self.game_pipelines) == self.n_pipelines_done
)
def add_source(self, source: Source) -> None:
self.sources.add(source)
def run(self) -> None:
"""Use several Gio.Task to import games from added sources"""
shared.win.get_application().state = shared.AppState.IMPORT
if self.__class__.summary_toast:
self.__class__.summary_toast.dismiss()
shared.win.get_application().lookup_action("import").set_enabled(False)
shared.win.get_application().lookup_action("add_game").set_enabled(False)
self.create_dialog()
# Collect all errors and reset the cancellables for the managers
# - Only one importer exists at any given time
# - Every import starts fresh
self.collect_errors()
for manager in shared.store.managers.values():
manager.collect_errors()
if isinstance(manager, AsyncManager):
manager.reset_cancellable()
for source in self.sources:
logging.debug("Importing games from source %s", source.source_id)
task = Gio.Task.new(None, None, self.source_callback, (source,))
self.n_source_tasks_created += 1
task.run_in_thread(
lambda _task, _obj, _data, _cancellable, src=source: self.source_task_thread_func(
(src,)
)
)
self.progress_changed_callback()
def create_dialog(self) -> None:
"""Create the import dialog"""
self.progressbar = Gtk.ProgressBar(margin_start=12, margin_end=12)
self.import_statuspage = Adw.StatusPage(
title=_("Importing Games…"),
child=self.progressbar,
)
self.import_dialog = Adw.Window(
content=self.import_statuspage,
modal=True,
default_width=350,
default_height=-1,
transient_for=shared.win,
deletable=False,
)
self.close_req_id = self.import_dialog.connect(
"close-request", lambda *_: shared.win.close()
)
self.import_dialog.present()
def source_task_thread_func(self, data: tuple) -> None:
"""Source import task code"""
source: Source
source, *_rest = data
# Early exit if not available or not installed
if not source.is_available:
logging.info("Source %s skipped, not available", source.source_id)
return
try:
iterator = iter(source)
except UnresolvableLocationError:
logging.info("Source %s skipped, bad location", source.source_id)
return
# Get games from source
logging.info("Scanning source %s", source.source_id)
while True:
# Handle exceptions raised when iterating
try:
iteration_result = next(iterator)
except StopIteration:
break
except Exception as error: # pylint: disable=broad-exception-caught
logging.exception("%s in %s", type(error).__name__, source.source_id)
self.report_error(error)
continue
# Handle the result depending on its type
if isinstance(iteration_result, Game):
game = iteration_result
additional_data = {}
elif isinstance(iteration_result, tuple):
game, additional_data = iteration_result
elif iteration_result is None:
continue
else:
# Warn source implementers that an invalid type was produced
# Should not happen on production code
logging.warning(
"%s produced an invalid iteration return type %s",
source.source_id,
type(iteration_result),
)
continue
# Register game
pipeline: Pipeline = shared.store.add_game(game, additional_data)
if pipeline is not None:
logging.info("Imported %s (%s)", game.name, game.game_id)
pipeline.connect("advanced", self.pipeline_advanced_callback)
self.game_pipelines.add(pipeline)
def update_progressbar(self) -> None:
"""Update the progressbar to show the overall import progress"""
# Reserve 10% for the sources discovery, the rest is the pipelines
self.progressbar.set_fraction(
(0.1 * self.sources_progress) + (0.9 * self.pipelines_progress)
)
def source_callback(self, _obj: Any, _result: Any, data: tuple) -> None:
"""Callback executed when a source is fully scanned"""
source, *_rest = data
logging.debug("Import done for source %s", source.source_id)
self.n_source_tasks_done += 1
self.progress_changed_callback()
def pipeline_advanced_callback(self, pipeline: Pipeline) -> None:
"""Callback called when a pipeline for a game has advanced"""
if pipeline.is_done:
self.n_pipelines_done += 1
self.progress_changed_callback()
def progress_changed_callback(self) -> None:
"""
Callback called when the import process has progressed
Triggered when:
* All sources have been started
* A source finishes
* A pipeline finishes
"""
self.update_progressbar()
if self.finished:
self.import_callback()
def remove_games(self) -> None:
"""Set removed to True for missing games"""
if not shared.schema.get_boolean("remove-missing"):
return
for game in shared.store:
if game.removed:
continue
if game.source == "imported":
continue
if not shared.schema.get_boolean(game.base_source):
continue
if game.game_id in shared.store.duplicate_game_ids:
continue
if game.game_id in shared.store.new_game_ids:
continue
logging.debug("Removing missing game %s (%s)", game.name, game.game_id)
game.removed = True
game.save()
game.update()
self.removed_game_ids.add(game.game_id)
def import_callback(self) -> None:
"""Callback called when importing has finished"""
logging.info("Import done")
self.remove_games()
self.imported_game_ids = shared.store.new_game_ids
shared.store.new_game_ids = set()
shared.store.duplicate_game_ids = set()
# Disconnect the close-request signal that closes the main window
self.import_dialog.disconnect(self.close_req_id)
self.import_dialog.close()
self.__class__.summary_toast = self.create_summary_toast()
self.create_error_dialog()
shared.win.get_application().lookup_action("import").set_enabled(True)
shared.win.get_application().lookup_action("add_game").set_enabled(True)
shared.win.get_application().state = shared.AppState.DEFAULT
shared.win.create_source_rows()
def create_error_dialog(self) -> None:
"""Dialog containing all errors raised by importers"""
# Collect all errors that happened in the importer and the managers
errors = []
errors.extend(self.collect_errors())
for manager in shared.store.managers.values():
errors.extend(manager.collect_errors())
# Filter out non friendly errors
errors = set(
tuple(
(error.title, error.subtitle)
for error in (
filter(lambda error: isinstance(error, FriendlyError), errors)
)
)
)
# No error to display
if not errors:
self.timeout_toast()
return
# Create error dialog
dialog = Adw.MessageDialog()
dialog.set_heading(_("Warning"))
dialog.add_response("close", _("Dismiss"))
dialog.add_response("open_preferences_import", _("Preferences"))
dialog.set_default_response("open_preferences_import")
dialog.connect("response", self.dialog_response_callback)
dialog.set_transient_for(shared.win)
if len(errors) == 1:
dialog.set_heading((error := next(iter(errors)))[0])
dialog.set_body(error[1])
else:
# Display the errors in a list
list_box = Gtk.ListBox()
list_box.set_selection_mode(Gtk.SelectionMode.NONE)
list_box.set_css_classes(["boxed-list"])
list_box.set_margin_top(9)
for error in errors:
row = Adw.ActionRow.new()
row.set_title(error[0])
row.set_subtitle(error[1])
list_box.append(row)
dialog.set_body(_("The following errors occured during import:"))
dialog.set_extra_child(list_box)
dialog.present()
def undo_import(self, *_args: Any) -> None:
for game_id in self.imported_game_ids:
shared.store[game_id].removed = True
shared.store[game_id].update()
shared.store[game_id].save()
for game_id in self.removed_game_ids:
shared.store[game_id].removed = False
shared.store[game_id].update()
shared.store[game_id].save()
self.imported_game_ids = set()
self.removed_game_ids = set()
if self.__class__.summary_toast:
self.__class__.summary_toast.dismiss()
logging.info("Import undone")
def create_summary_toast(self) -> Adw.Toast:
"""N games imported, removed toast"""
toast = Adw.Toast(timeout=0, priority=Adw.ToastPriority.HIGH)
if not self.n_games_added:
toast_title = _("No new games found")
if not self.removed_game_ids:
toast.set_button_label(_("Preferences"))
toast.connect(
"button-clicked",
self.dialog_response_callback,
"open_preferences",
"import",
)
elif self.n_games_added == 1:
toast_title = _("1 game imported")
elif self.n_games_added > 1:
# The variable is the number of games
toast_title = _("{} games imported").format(self.n_games_added)
if (removed_length := len(self.removed_game_ids)) == 1:
# A single game removed
toast_title += ", " + _("1 removed")
elif removed_length > 1:
# The variable is the number of games removed
toast_title += ", " + _("{} removed").format(removed_length)
if self.n_games_added or self.removed_game_ids:
toast.set_button_label(_("Undo"))
toast.connect("button-clicked", self.undo_import)
toast.set_title(toast_title)
shared.win.toast_overlay.add_toast(toast)
return toast
def open_preferences(
self,
page_name: Optional[str] = None,
expander_row: Optional[Adw.ExpanderRow] = None,
) -> Adw.PreferencesWindow:
return shared.win.get_application().on_preferences_action(
page_name=page_name, expander_row=expander_row
)
def timeout_toast(self, *_args: Any) -> None:
"""Manually timeout the toast after the user has dismissed all warnings"""
if self.__class__.summary_toast:
GLib.timeout_add_seconds(5, self.__class__.summary_toast.dismiss)
def dialog_response_callback(self, _widget: Any, response: str, *args: Any) -> None:
"""Handle after-import dialogs callback"""
logging.debug("After-import dialog response: %s (%s)", response, str(args))
if response == "open_preferences":
self.open_preferences(*args)
elif response == "open_preferences_import":
self.open_preferences(*args).connect("close-request", self.timeout_toast)
else:
self.timeout_toast()

View File

@@ -1,104 +0,0 @@
# itch_source.py
#
# Copyright 2022-2023 kramo
# Copyright 2023 Geoffrey Coulaud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
from shutil import rmtree
from sqlite3 import connect
from typing import NamedTuple
from src import shared
from src.game import Game
from src.importer.location import Location, LocationSubPath
from src.importer.source import SourceIterable, URLExecutableSource
from src.utils.sqlite import copy_db
class ItchSourceIterable(SourceIterable):
source: "ItchSource"
def __iter__(self):
"""Generator method producing games"""
# Query the database
db_request = """
SELECT
games.id,
games.title,
games.cover_url,
games.still_cover_url,
caves.id
FROM
'caves'
INNER JOIN
'games'
ON
caves.game_id = games.id
;
"""
db_path = copy_db(self.source.locations.config["butler.db"])
connection = connect(db_path)
cursor = connection.execute(db_request)
# Create games from the db results
for row in cursor:
values = {
"added": shared.import_time,
"source": self.source.source_id,
"name": row[1],
"game_id": self.source.game_id_format.format(game_id=row[0]),
"executable": self.source.make_executable(cave_id=row[4]),
}
additional_data = {"online_cover_url": row[3] or row[2]}
game = Game(values)
yield (game, additional_data)
# Cleanup
rmtree(str(db_path.parent))
class ItchLocations(NamedTuple):
config: Location
class ItchSource(URLExecutableSource):
source_id = "itch"
name = _("itch")
iterable_class = ItchSourceIterable
url_format = "itch://caves/{cave_id}/launch"
available_on = {"linux", "win32"}
locations: ItchLocations
def __init__(self) -> None:
super().__init__()
self.locations = ItchLocations(
Location(
schema_key="itch-location",
candidates=(
shared.flatpak_dir / "io.itch.itch" / "config" / "itch",
shared.config_dir / "itch",
shared.home / ".config" / "itch",
shared.appdata_dir / "itch",
),
paths={
"butler.db": LocationSubPath("db/butler.db"),
},
invalid_subtitle=Location.CONFIG_INVALID_SUBTITLE,
)
)

View File

@@ -1,119 +0,0 @@
# legendary_source.py
#
# Copyright 2023 Geoffrey Coulaud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
import json
import logging
from json import JSONDecodeError
from typing import NamedTuple
from src import shared
from src.game import Game
from src.importer.location import Location, LocationSubPath
from src.importer.source import (
ExecutableFormatSource,
SourceIterable,
SourceIterationResult,
)
class LegendarySourceIterable(SourceIterable):
source: "LegendarySource"
def game_from_library_entry(self, entry: dict) -> SourceIterationResult:
# Skip non-games
if entry["is_dlc"]:
return None
# Build game
app_name = entry["app_name"]
values = {
"added": shared.import_time,
"source": self.source.source_id,
"name": entry["title"],
"game_id": self.source.game_id_format.format(game_id=app_name),
"executable": self.source.make_executable(app_name=app_name),
}
data = {}
# Get additional metadata from file (optional)
metadata_file = self.source.locations.config["metadata"] / f"{app_name}.json"
try:
metadata = json.load(metadata_file.open())
values["developer"] = metadata["metadata"]["developer"]
for image_entry in metadata["metadata"]["keyImages"]:
if image_entry["type"] == "DieselGameBoxTall":
data["online_cover_url"] = image_entry["url"]
break
except (JSONDecodeError, OSError, KeyError):
pass
game = Game(values)
return (game, data)
def __iter__(self):
# Open library
file = self.source.locations.config["installed.json"]
try:
library: dict = json.load(file.open())
except (JSONDecodeError, OSError):
logging.warning("Couldn't open Legendary file: %s", str(file))
return
# Generate games from library
for entry in library.values():
try:
result = self.game_from_library_entry(entry)
except KeyError as error:
# Skip invalid games
logging.warning(
"Invalid Legendary game skipped in %s", str(file), exc_info=error
)
continue
yield result
class LegendaryLocations(NamedTuple):
config: Location
class LegendarySource(ExecutableFormatSource):
source_id = "legendary"
name = _("Legendary")
executable_format = "legendary launch {app_name}"
available_on = {"linux"}
iterable_class = LegendarySourceIterable
locations: LegendaryLocations
def __init__(self) -> None:
super().__init__()
self.locations = LegendaryLocations(
Location(
schema_key="legendary-location",
candidates=(
shared.config_dir / "legendary",
shared.home / ".config" / "legendary",
),
paths={
"installed.json": LocationSubPath("installed.json"),
"metadata": LocationSubPath("metadata", True),
},
invalid_subtitle=Location.CONFIG_INVALID_SUBTITLE,
)
)

View File

@@ -1,102 +0,0 @@
import logging
from os import PathLike
from pathlib import Path
from typing import Iterable, Mapping, NamedTuple, Optional
from src import shared
PathSegment = str | PathLike | Path
PathSegments = Iterable[PathSegment]
Candidate = PathSegments
class LocationSubPath(NamedTuple):
segment: PathSegment
is_directory: bool = False
class UnresolvableLocationError(Exception):
pass
class Location:
"""
Class representing a filesystem location
* A location may have multiple candidate roots
* The path in the schema is always favored
* From the candidate root, multiple subpaths should exist for it to be valid
* When resolved, the schema is updated with the picked chosen
"""
# The variable is the name of the source
CACHE_INVALID_SUBTITLE = _("Select the {} cache directory.")
# The variable is the name of the source
CONFIG_INVALID_SUBTITLE = _("Select the {} configuration directory.")
# The variable is the name of the source
DATA_INVALID_SUBTITLE = _("Select the {} data directory.")
schema_key: str
candidates: Iterable[Candidate]
paths: Mapping[str, LocationSubPath]
invalid_subtitle: str
root: Optional[Path] = None
def __init__(
self,
schema_key: str,
candidates: Iterable[Candidate],
paths: Mapping[str, LocationSubPath],
invalid_subtitle: str,
) -> None:
super().__init__()
self.schema_key = schema_key
self.candidates = candidates
self.paths = paths
self.invalid_subtitle = invalid_subtitle
def check_candidate(self, candidate: Path) -> bool:
"""Check if a candidate root has the necessary files and directories"""
for segment, is_directory in self.paths.values():
path = Path(candidate) / segment
if is_directory:
if not path.is_dir():
return False
else:
if not path.is_file():
return False
return True
def resolve(self) -> None:
"""Choose a root path from the candidates for the location.
If none fits, raise an UnresolvableLocationError"""
if self.root is not None:
return
# Get the schema candidate
schema_candidate = shared.schema.get_string(self.schema_key)
# Find the first matching candidate
for candidate in (schema_candidate, *self.candidates):
candidate = Path(candidate).expanduser()
if not self.check_candidate(candidate):
continue
self.root = candidate
break
else:
# No good candidate found
raise UnresolvableLocationError()
# Update the schema with the found candidate
value = str(candidate)
shared.schema.set_string(self.schema_key, value)
logging.debug("Resolved value for schema key %s: %s", self.schema_key, value)
def __getitem__(self, key: str) -> Optional[Path]:
"""Get the computed path from its key for the location"""
self.resolve()
if self.root:
return self.root / self.paths[key].segment
return None

View File

@@ -1,132 +0,0 @@
# lutris_source.py
#
# Copyright 2022-2023 kramo
# Copyright 2023 Geoffrey Coulaud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
from shutil import rmtree
from sqlite3 import connect
from typing import NamedTuple
from src import shared
from src.game import Game
from src.importer.location import Location, LocationSubPath
from src.importer.source import SourceIterable, URLExecutableSource
from src.utils.sqlite import copy_db
class LutrisSourceIterable(SourceIterable):
source: "LutrisSource"
def __iter__(self):
"""Generator method producing games"""
# Query the database
request = """
SELECT id, name, slug, runner, hidden
FROM 'games'
WHERE
name IS NOT NULL
AND slug IS NOT NULL
AND configPath IS NOT NULL
AND installed
AND (runner IS NOT "steam" OR :import_steam)
AND (runner IS NOT "flatpak" OR :import_flatpak)
;
"""
params = {
"import_steam": shared.schema.get_boolean("lutris-import-steam"),
"import_flatpak": shared.schema.get_boolean("lutris-import-flatpak"),
}
db_path = copy_db(self.source.locations.config["pga.db"])
connection = connect(db_path)
cursor = connection.execute(request, params)
# Create games from the DB results
for row in cursor:
# Create game
values = {
"added": shared.import_time,
"hidden": row[4],
"name": row[1],
"source": f"{self.source.source_id}_{row[3]}",
"game_id": self.source.game_id_format.format(
runner=row[3], game_id=row[0]
),
"executable": self.source.make_executable(game_id=row[0]),
}
game = Game(values)
# Get official image path
image_path = self.source.locations.cache["coverart"] / f"{row[2]}.jpg"
additional_data = {"local_image_path": image_path}
yield (game, additional_data)
# Cleanup
rmtree(str(db_path.parent))
class LutrisLocations(NamedTuple):
config: Location
cache: Location
class LutrisSource(URLExecutableSource):
"""Generic Lutris source"""
source_id = "lutris"
name = _("Lutris")
iterable_class = LutrisSourceIterable
url_format = "lutris:rungameid/{game_id}"
available_on = {"linux"}
# FIXME possible bug: config picks ~/.var... and cache picks ~/.local...
locations: LutrisLocations
@property
def game_id_format(self):
return self.source_id + "_{runner}_{game_id}"
def __init__(self) -> None:
super().__init__()
self.locations = LutrisLocations(
Location(
schema_key="lutris-location",
candidates=(
shared.flatpak_dir / "net.lutris.Lutris" / "data" / "lutris",
shared.data_dir / "lutris",
shared.home / ".local" / "share" / "lutris",
),
paths={
"pga.db": LocationSubPath("pga.db"),
},
invalid_subtitle=Location.DATA_INVALID_SUBTITLE,
),
Location(
schema_key="lutris-cache-location",
candidates=(
shared.flatpak_dir / "net.lutris.Lutris" / "cache" / "lutris",
shared.cache_dir / "lutris",
shared.home / ".cache" / "lutris",
),
paths={
"coverart": LocationSubPath("coverart", True),
},
invalid_subtitle=Location.CACHE_INVALID_SUBTITLE,
),
)

View File

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

View File

@@ -1,126 +0,0 @@
# source.py
#
# Copyright 2023 Geoffrey Coulaud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
import sys
from abc import abstractmethod
from collections.abc import Iterable
from typing import Any, Collection, Generator, Optional
from src.game import Game
from src.importer.location import Location
# Type of the data returned by iterating on a Source
SourceIterationResult = Optional[Game | tuple[Game, tuple[Any]]]
class SourceIterable(Iterable):
"""Data producer for a source of games"""
source: "Source"
def __init__(self, source: "Source") -> None:
self.source = source
@abstractmethod
def __iter__(self) -> Generator[SourceIterationResult, None, None]:
"""
Method that returns a generator that produces games
* Should be implemented as a generator method
* May yield `None` when an iteration hasn't produced a game
* In charge of handling per-game errors
* Returns when exhausted
"""
class Source(Iterable):
"""Source of games. E.g an installed app with a config file that lists game directories"""
source_id: str
name: str
variant: Optional[str] = None
available_on: set[str] = set()
iterable_class: type[SourceIterable]
# NOTE: Locations must be set at __init__ time, not in the class definition.
# They must not be shared between source instances.
locations: Collection[Location]
@property
def full_name(self) -> str:
"""The source's full name"""
full_name_ = self.name
if self.variant:
full_name_ += f" ({self.variant})"
return full_name_
@property
def game_id_format(self) -> str:
"""The string format used to construct game IDs"""
return self.source_id + "_{game_id}"
@property
def is_available(self) -> bool:
return sys.platform in self.available_on
def make_executable(self, *args, **kwargs) -> str:
"""
Create a game executable command.
Should be implemented by child classes.
"""
def __iter__(self) -> Generator[SourceIterationResult, None, None]:
"""
Get an iterator for the source
:raises UnresolvableLocationError: Not iterable if any of the locations are unresolvable
"""
for location in self.locations:
location.resolve()
return iter(self.iterable_class(self))
class ExecutableFormatSource(Source):
"""Source class that uses a simple executable format to start games"""
@property
@abstractmethod
def executable_format(self) -> str:
"""The executable format used to construct game executables"""
def make_executable(self, *args, **kwargs) -> str:
"""Use the executable format to"""
return self.executable_format.format(*args, **kwargs)
# pylint: disable=abstract-method
class URLExecutableSource(ExecutableFormatSource):
"""Source class that use custom URLs to start games"""
url_format: str
@property
def executable_format(self) -> str:
match sys.platform:
case "win32":
return "start " + self.url_format
case "linux":
return "xdg-open " + self.url_format
case other:
raise NotImplementedError(
f"No URL handler command available for {other}"
)

View File

@@ -1,140 +0,0 @@
# steam_source.py
#
# Copyright 2022-2023 kramo
# Copyright 2023 Geoffrey Coulaud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
import logging
import re
from pathlib import Path
from typing import Iterable, NamedTuple
from src import shared
from src.game import Game
from src.importer.location import Location, LocationSubPath
from src.importer.source import SourceIterable, URLExecutableSource
from src.utils.steam import SteamFileHelper, SteamInvalidManifestError
class SteamSourceIterable(SourceIterable):
source: "SteamSource"
def get_manifest_dirs(self) -> Iterable[Path]:
"""Get dirs that contain Steam app manifests"""
libraryfolders_path = self.source.locations.data["libraryfolders.vdf"]
with open(libraryfolders_path, "r", encoding="utf-8") as file:
contents = file.read()
return [
Path(path) / "steamapps"
for path in re.findall('"path"\\s+"(.*)"\n', contents, re.IGNORECASE)
]
def get_manifests(self) -> Iterable[Path]:
"""Get app manifests"""
manifests = set()
for steamapps_dir in self.get_manifest_dirs():
if not steamapps_dir.is_dir():
continue
manifests.update(
[
manifest
for manifest in steamapps_dir.glob("appmanifest_*.acf")
if manifest.is_file()
]
)
return manifests
def __iter__(self):
"""Generator method producing games"""
appid_cache = set()
manifests = self.get_manifests()
for manifest in manifests:
# Get metadata from manifest
steam = SteamFileHelper()
try:
local_data = steam.get_manifest_data(manifest)
except (OSError, SteamInvalidManifestError) as error:
logging.debug("Couldn't load appmanifest %s", manifest, exc_info=error)
continue
# Skip non installed games
installed_mask = 4
if not int(local_data["stateflags"]) & installed_mask:
logging.debug("Skipped %s: not installed", manifest)
continue
# Skip duplicate appids
appid = local_data["appid"]
if appid in appid_cache:
logging.debug("Skipped %s: appid already seen during import", manifest)
continue
appid_cache.add(appid)
# Build game from local data
values = {
"added": shared.import_time,
"name": local_data["name"],
"source": self.source.source_id,
"game_id": self.source.game_id_format.format(game_id=appid),
"executable": self.source.make_executable(game_id=appid),
}
game = Game(values)
# Add official cover image
image_path = (
self.source.locations.data["librarycache"]
/ f"{appid}_library_600x900.jpg"
)
additional_data = {"local_image_path": image_path, "steam_appid": appid}
yield (game, additional_data)
class SteamLocations(NamedTuple):
data: Location
class SteamSource(URLExecutableSource):
source_id = "steam"
name = _("Steam")
available_on = {"linux", "win32"}
iterable_class = SteamSourceIterable
url_format = "steam://rungameid/{game_id}"
locations: SteamLocations
def __init__(self) -> None:
super().__init__()
self.locations = SteamLocations(
Location(
schema_key="steam-location",
candidates=(
shared.home / ".steam" / "steam",
shared.data_dir / "Steam",
shared.flatpak_dir / "com.valvesoftware.Steam" / "data" / "Steam",
shared.programfiles32_dir / "Steam",
),
paths={
"libraryfolders.vdf": LocationSubPath(
"steamapps/libraryfolders.vdf"
),
"librarycache": LocationSubPath("appcache/librarycache", True),
},
invalid_subtitle=Location.DATA_INVALID_SUBTITLE,
)
)

View File

@@ -0,0 +1,96 @@
# bottles_importer.py
#
# Copyright 2022-2023 kramo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
from pathlib import Path
from time import time
import yaml
from .check_install import check_install
def bottles_installed(win, path=None):
location_key = "bottles-location"
bottles_dir = (
path if path else Path(win.schema.get_string(location_key)).expanduser()
)
check = "library.yml"
if not (bottles_dir / check).is_file():
locations = (
(Path(),)
if path
else (
Path.home() / ".var/app/com.usebottles.bottles/data/bottles",
win.data_dir / "bottles",
)
)
bottles_dir = check_install(check, locations, (win.schema, location_key))
return bottles_dir
def bottles_importer(win):
bottles_dir = bottles_installed(win)
if not bottles_dir:
return
current_time = int(time())
data = (bottles_dir / "library.yml").read_text("utf-8")
library = yaml.load(data, Loader=yaml.Loader)
importer = win.importer
importer.total_queue += len(library)
importer.queue += len(library)
for game in library:
game = library[game]
values = {}
values["game_id"] = f'bottles_{game["id"]}'
if values["game_id"] in win.games and not win.games[values["game_id"]].removed:
importer.save_game()
continue
values["name"] = game["name"]
values["executable"] = [
"xdg-open",
f'bottles:run/{game["bottle"]["name"]}/{game["name"]}',
]
values["hidden"] = False
values["source"] = "bottles"
values["added"] = current_time
values["last_played"] = 0
importer.save_game(
values,
(
bottles_dir
/ "bottles"
/ game["bottle"]["path"]
/ "grids"
/ game["thumbnail"].split(":")[1]
)
if game["thumbnail"]
else None,
)

View File

@@ -0,0 +1,205 @@
# heroic_importer.py
#
# Copyright 2022-2023 kramo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
import hashlib
import json
import os
from pathlib import Path
from time import time
from .check_install import check_install
def heroic_installed(win, path=None):
location_key = "heroic-location"
heroic_dir = (
path if path else Path(win.schema.get_string(location_key)).expanduser()
)
check = "config.json"
if not (heroic_dir / check).is_file():
locations = (
(Path(),)
if path
else (
Path.home() / ".var/app/com.heroicgameslauncher.hgl/config/heroic",
win.config_dir / "heroic",
)
)
if os.name == "nt" and not path:
locations += (Path(os.getenv("appdata")) / "heroic",)
heroic_dir = check_install(check, locations, (win.schema, location_key))
return heroic_dir
def heroic_importer(win):
heroic_dir = heroic_installed(win)
if not heroic_dir:
return
current_time = int(time())
importer = win.importer
# Import Epic games
if not win.schema.get_boolean("heroic-import-epic"):
pass
elif (heroic_dir / "store_cache" / "legendary_library.json").exists():
data = (heroic_dir / "store_cache" / "legendary_library.json").read_text(
"utf-8"
)
library = json.loads(data)
try:
for game in library["library"]:
if not game["is_installed"]:
continue
importer.total_queue += 1
importer.queue += 1
values = {}
app_name = game["app_name"]
values["game_id"] = f"heroic_epic_{app_name}"
if (
values["game_id"] in win.games
and not win.games[values["game_id"]].removed
):
importer.save_game()
continue
values["name"] = game["title"]
values["developer"] = game["developer"]
values["executable"] = (
["start", f"heroic://launch/{app_name}"]
if os.name == "nt"
else ["xdg-open", f"heroic://launch/{app_name}"]
)
values["hidden"] = False
values["source"] = "heroic_epic"
values["added"] = current_time
values["last_played"] = 0
image_path = (
heroic_dir
/ "images-cache"
/ hashlib.sha256(
(f'{game["art_square"]}?h=400&resize=1&w=300').encode()
).hexdigest()
)
importer.save_game(values, image_path if image_path.exists() else None)
except KeyError:
pass
# Import GOG games
if not win.schema.get_boolean("heroic-import-gog"):
pass
elif (heroic_dir / "gog_store" / "installed.json").exists() and (
heroic_dir / "store_cache" / "gog_library.json"
).exists():
data = (heroic_dir / "gog_store" / "installed.json").read_text("utf-8")
installed = json.loads(data)
importer.total_queue += len(installed["installed"])
importer.queue += len(installed["installed"])
for item in installed["installed"]:
values = {}
app_name = item["appName"]
values["game_id"] = f"heroic_gog_{app_name}"
if (
values["game_id"] in win.games
and not win.games[values["game_id"]].removed
):
importer.save_game()
continue
# Get game title and developer from gog_library.json as they are not present in installed.json
data = (heroic_dir / "store_cache" / "gog_library.json").read_text("utf-8")
library = json.loads(data)
for game in library["games"]:
if game["app_name"] == app_name:
values["developer"] = game["developer"]
values["name"] = game["title"]
image_path = (
heroic_dir
/ "images-cache"
/ hashlib.sha256(game["art_square"].encode()).hexdigest()
)
values["executable"] = (
["start", f"heroic://launch/{app_name}"]
if os.name == "nt"
else ["xdg-open", f"heroic://launch/{app_name}"]
)
values["hidden"] = False
values["source"] = "heroic_gog"
values["added"] = current_time
values["last_played"] = 0
importer.save_game(values, image_path if image_path.exists() else None)
# Import sideloaded games
if not win.schema.get_boolean("heroic-import-sideload"):
pass
elif (heroic_dir / "sideload_apps" / "library.json").exists():
data = (heroic_dir / "sideload_apps" / "library.json").read_text("utf-8")
library = json.loads(data)
importer.total_queue += len(library["games"])
importer.queue += len(library["games"])
for item in library["games"]:
values = {}
app_name = item["app_name"]
values["game_id"] = f"heroic_sideload_{app_name}"
if (
values["game_id"] in win.games
and not win.games[values["game_id"]].removed
):
importer.save_game()
continue
values["name"] = item["title"]
values["executable"] = (
["start", f"heroic://launch/{app_name}"]
if os.name == "nt"
else ["xdg-open", f"heroic://launch/{app_name}"]
)
values["hidden"] = False
values["source"] = "heroic_sideload"
values["added"] = current_time
values["last_played"] = 0
image_path = (
heroic_dir
/ "images-cache"
/ hashlib.sha256(item["art_square"].encode()).hexdigest()
)
importer.save_game(values, image_path if image_path.exists() else None)

View File

@@ -0,0 +1,182 @@
# itch_importer.py
#
# Copyright 2022-2023 kramo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
import os
from pathlib import Path
from shutil import copyfile
from sqlite3 import connect
from time import time
import requests
from gi.repository import GdkPixbuf, Gio
from .check_install import check_install
def get_game(task, current_time, win, row):
values = {}
values["game_id"] = f"itch_{row[0]}"
if values["game_id"] in win.games and not win.games[values["game_id"]].removed:
task.return_value((None, None))
return
values["added"] = current_time
values["executable"] = (
["start", f"itch://caves/{row[4]}/launch"]
if os.name == "nt"
else ["xdg-open", f"itch://caves/{row[4]}/launch"]
)
values["hidden"] = False
values["last_played"] = 0
values["name"] = row[1]
values["source"] = "itch"
if row[3] or row[2]:
tmp_file = Gio.File.new_tmp(None)[0]
try:
with requests.get(row[3] or row[2], timeout=5) as cover:
cover.raise_for_status()
Path(tmp_file.get_path()).write_bytes(cover.content)
except requests.exceptions.RequestException:
task.return_value((values, None))
return
game_cover = GdkPixbuf.Pixbuf.new_from_stream_at_scale(
tmp_file.read(), 2, 2, False
).scale_simple(*win.image_size, GdkPixbuf.InterpType.BILINEAR)
itch_pixbuf = GdkPixbuf.Pixbuf.new_from_stream(tmp_file.read())
itch_pixbuf = itch_pixbuf.scale_simple(
win.image_size[0],
itch_pixbuf.get_height() * (win.image_size[0] / itch_pixbuf.get_width()),
GdkPixbuf.InterpType.BILINEAR,
)
itch_pixbuf.composite(
game_cover,
0,
(win.image_size[1] - itch_pixbuf.get_height()) / 2,
itch_pixbuf.get_width(),
itch_pixbuf.get_height(),
0,
(win.image_size[1] - itch_pixbuf.get_height()) / 2,
1.0,
1.0,
GdkPixbuf.InterpType.BILINEAR,
255,
)
else:
game_cover = None
task.return_value((values, game_cover))
def get_games_async(win, rows, importer):
current_time = int(time())
# Wrap the function in another one as Gio.Task.run_in_thread does not allow for passing args
def create_func(current_time, win, row):
def wrapper(task, *_unused):
get_game(
task,
current_time,
win,
row,
)
return wrapper
def update_games(_task, result):
final_values = result.propagate_value()[1]
# No need for an if statement as final_value would be None for games we don't want to save
importer.save_game(final_values[0], pixbuf=final_values[1])
for row in rows:
task = Gio.Task.new(None, None, update_games)
task.run_in_thread(create_func(current_time, win, row))
def itch_installed(win, path=None):
location_key = "itch-location"
itch_dir = path if path else Path(win.schema.get_string(location_key)).expanduser()
check = Path("db") / "butler.db"
if not (itch_dir / check).is_file():
locations = (
(Path(),)
if path
else (
Path.home() / ".var/app/io.itch.itch/config/itch",
win.config_dir / "itch",
)
)
if os.name == "nt" and not path:
locations += (Path(os.getenv("appdata")) / "itch",)
itch_dir = check_install(check, locations, (win.schema, location_key))
return itch_dir
def itch_importer(win):
itch_dir = itch_installed(win)
if not itch_dir:
return
database_path = (itch_dir / "db").expanduser()
db_cache_dir = win.cache_dir / "cartridges" / "itch"
db_cache_dir.mkdir(parents=True, exist_ok=True)
# Copy the file because sqlite3 doesn't like databases in /run/user/
database_tmp_path = db_cache_dir / "butler.db"
for db_file in database_path.glob("butler.db*"):
copyfile(db_file, (db_cache_dir / db_file.name))
db_request = """
SELECT
games.id,
games.title,
games.cover_url,
games.still_cover_url,
caves.id
FROM
'caves'
INNER JOIN
'games'
ON
caves.game_id = games.id
;
"""
connection = connect(database_tmp_path)
cursor = connection.execute(db_request)
rows = cursor.fetchall()
connection.close()
# No need to unlink temp files as they disappear when the connection is closed
database_tmp_path.unlink(missing_ok=True)
importer = win.importer
importer.total_queue += len(rows)
importer.queue += len(rows)
get_games_async(win, rows, importer)

View File

@@ -0,0 +1,134 @@
# lutris_importer.py
#
# Copyright 2022-2023 kramo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
from pathlib import Path
from shutil import copyfile
from sqlite3 import connect
from time import time
from .check_install import check_install
def lutris_installed(win, path=None):
location_key = "lutris-location"
lutris_dir = (
path if path else Path(win.schema.get_string(location_key)).expanduser()
)
check = "pga.db"
if not (lutris_dir / check).is_file():
locations = (
(Path(),)
if path
else (
Path.home() / ".var/app/net.lutris.Lutris/data/lutris",
win.data_dir / "lutris",
)
)
lutris_dir = check_install(check, locations, (win.schema, location_key))
return lutris_dir
def lutris_cache_exists(win, path=None):
cache_key = "lutris-cache-location"
cache_dir = path if path else Path(win.schema.get_string(cache_key)).expanduser()
cache_check = "coverart"
if not (cache_dir / cache_check).exists():
cache_locations = (
(Path(),)
if path
else (
Path.home() / ".var" / "app" / "net.lutris.Lutris" / "cache" / "lutris",
win.cache_dir / "lutris",
)
)
cache_dir = check_install(cache_check, cache_locations, (win.schema, cache_key))
return cache_dir
def lutris_importer(win):
lutris_dir = lutris_installed(win)
if not lutris_dir:
return
cache_dir = lutris_cache_exists(win)
if not cache_dir:
return
db_cache_dir = win.cache_dir / "cartridges" / "lutris"
db_cache_dir.mkdir(parents=True, exist_ok=True)
# Copy the file because sqlite3 doesn't like databases in /run/user/
database_tmp_path = db_cache_dir / "pga.db"
for db_file in lutris_dir.glob("pga.db*"):
copyfile(db_file, (db_cache_dir / db_file.name))
db_request = """
SELECT
id, name, slug, runner, hidden
FROM
'games'
WHERE
name IS NOT NULL
AND slug IS NOT NULL
AND configPath IS NOT NULL
AND installed IS TRUE
;
"""
connection = connect(database_tmp_path)
cursor = connection.execute(db_request)
rows = cursor.fetchall()
connection.close()
# No need to unlink temp files as they disappear when the connection is closed
database_tmp_path.unlink(missing_ok=True)
if not win.schema.get_boolean("lutris-import-steam"):
rows = [row for row in rows if not row[3] == "steam"]
current_time = int(time())
importer = win.importer
importer.total_queue += len(rows)
importer.queue += len(rows)
for row in rows:
values = {}
values["game_id"] = f"lutris_{row[3]}_{row[0]}"
if values["game_id"] in win.games and not win.games[values["game_id"]].removed:
importer.save_game()
continue
values["added"] = current_time
values["executable"] = ["xdg-open", f"lutris:rungameid/{row[0]}"]
values["hidden"] = row[4] == 1
values["last_played"] = 0
values["name"] = row[1]
values["source"] = f"lutris_{row[3]}"
image_path = cache_dir / "coverart" / f"{row[2]}.jpg"
importer.save_game(values, image_path if image_path.exists() else None)

View File

@@ -0,0 +1,176 @@
# steam_importer.py
#
# Copyright 2022-2023 kramo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
import os
import re
from pathlib import Path
from time import time
import requests
from gi.repository import Gio
from .check_install import check_install
def update_values_from_data(content, values):
basic_data = content[values["appid"]]
if not basic_data["success"]:
values["blacklisted"] = True
else:
data = basic_data["data"]
values["developer"] = ", ".join(data["developers"])
if data["type"] != "game":
values["blacklisted"] = True
return values
def get_game(task, datatypes, current_time, win, appmanifest, steam_dir):
values = {}
data = appmanifest.read_text("utf-8")
for datatype in datatypes:
value = re.findall(f'"{datatype}"\t\t"(.*)"\n', data, re.IGNORECASE)
try:
values[datatype] = value[0]
except IndexError:
task.return_value((None, None))
return
values["game_id"] = f'steam_{values["appid"]}'
if values["game_id"] in win.games and not win.games[values["game_id"]].removed:
task.return_value((None, None))
return
values["executable"] = (
["start", f'steam://rungameid/{values["appid"]}']
if os.name == "nt"
else ["xdg-open", f'steam://rungameid/{values["appid"]}']
)
values["hidden"] = False
values["source"] = "steam"
values["added"] = current_time
values["last_played"] = 0
image_path = (
steam_dir
/ "appcache"
/ "librarycache"
/ f'{values["appid"]}_library_600x900.jpg'
)
try:
with requests.get(
f'https://store.steampowered.com/api/appdetails?appids={values["appid"]}',
timeout=5,
) as open_file:
open_file.raise_for_status()
content = open_file.json()
except requests.exceptions.RequestException:
task.return_value((values, image_path if image_path.exists() else None))
return
values = update_values_from_data(content, values)
task.return_value((values, image_path if image_path.exists() else None))
def get_games_async(win, appmanifests, steam_dir, importer):
datatypes = ["appid", "name"]
current_time = int(time())
# Wrap the function in another one as Gio.Task.run_in_thread does not allow for passing args
def create_func(datatypes, current_time, win, appmanifest, steam_dir):
def wrapper(task, *_unused):
get_game(
task,
datatypes,
current_time,
win,
appmanifest,
steam_dir,
)
return wrapper
def update_games(_task, result):
final_values = result.propagate_value()[1]
# No need for an if statement as final_value would be None for games we don't want to save
importer.save_game(final_values[0], final_values[1])
for appmanifest in appmanifests:
task = Gio.Task.new(None, None, update_games)
task.run_in_thread(
create_func(datatypes, current_time, win, appmanifest, steam_dir)
)
def steam_installed(win, path=None):
location_key = "steam-location"
steam_dir = Path(win.schema.get_string(location_key)).expanduser()
check = "steamapps"
if not (steam_dir / check).is_file():
subdirs = ("steam", "Steam")
locations = (
(path,)
if path
else (
steam_dir,
Path.home() / ".steam",
win.data_dir / "Steam",
Path.home() / ".var/app/com.valvesoftware.Steam/data/Steam",
)
)
if os.name == "nt":
locations += (Path(os.getenv("programfiles(x86)")) / "Steam",)
steam_dir = check_install(check, locations, (win.schema, location_key), subdirs)
return steam_dir
def steam_importer(win):
steam_dir = steam_installed(win)
if not steam_dir:
return
appmanifests = []
steam_dirs = [
Path(directory) for directory in win.schema.get_strv("steam-extra-dirs")
]
steam_dirs.append(steam_dir)
for directory in steam_dirs:
if not (directory / "steamapps").exists():
steam_dirs.remove(directory)
for directory in steam_dirs:
for open_file in (directory / "steamapps").iterdir():
if open_file.is_file() and "appmanifest" in open_file.name:
appmanifests.append(open_file)
importer = win.importer
importer.total_queue += len(appmanifests)
importer.queue += len(appmanifests)
get_games_async(win, appmanifests, directory, importer)

View File

@@ -1,44 +0,0 @@
# color_log_formatter.py
#
# Copyright 2023 Geoffrey Coulaud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
from logging import Formatter, LogRecord
class ColorLogFormatter(Formatter):
"""Formatter that outputs logs in a colored format"""
RESET = "\033[0m"
DIM = "\033[2m"
BOLD = "\033[1m"
RED = "\033[31m"
YELLOW = "\033[33m"
def format(self, record: LogRecord) -> str:
super_format = super().format(record)
match record.levelname:
case "CRITICAL":
return self.BOLD + self.RED + super_format + self.RESET
case "ERROR":
return self.RED + super_format + self.RESET
case "WARNING":
return self.YELLOW + super_format + self.RESET
case "DEBUG":
return self.DIM + super_format + self.RESET
case _other:
return super_format

View File

@@ -1,140 +0,0 @@
# session_file_handler.py
#
# Copyright 2023 Geoffrey Coulaud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
import lzma
from io import TextIOWrapper
from logging import StreamHandler
from lzma import FORMAT_XZ, PRESET_DEFAULT
from os import PathLike
from pathlib import Path
from typing import Optional
from src import shared
class SessionFileHandler(StreamHandler):
"""
A logging handler that writes to a new file on every app restart.
The files are compressed and older sessions logs are kept up to a small limit.
"""
NUMBER_SUFFIX_POSITION = 1
backup_count: int
filename: Path
log_file: Optional[TextIOWrapper] = None
def create_dir(self) -> None:
"""Create the log dir if needed"""
self.filename.parent.mkdir(exist_ok=True, parents=True)
def path_is_logfile(self, path: Path) -> bool:
return path.is_file() and path.name.startswith(self.filename.stem)
def path_has_number(self, path: Path) -> bool:
try:
int(path.suffixes[self.NUMBER_SUFFIX_POSITION][1:])
except (ValueError, IndexError):
return False
return True
def get_path_number(self, path: Path) -> int:
"""Get the number extension in the filename as an int"""
suffixes = path.suffixes
number = (
0
if not self.path_has_number(path)
else int(suffixes[self.NUMBER_SUFFIX_POSITION][1:])
)
return number
def set_path_number(self, path: Path, number: int) -> str:
"""Set or add the number extension in the filename"""
suffixes = path.suffixes
if self.path_has_number(path):
suffixes.pop(self.NUMBER_SUFFIX_POSITION)
suffixes.insert(self.NUMBER_SUFFIX_POSITION, f".{number}")
stem = path.name.split(".", maxsplit=1)[0]
new_name = stem + "".join(suffixes)
return new_name
def file_sort_key(self, path: Path) -> int:
"""Key function used to sort files"""
return self.get_path_number(path) if self.path_has_number(path) else 0
def get_logfiles(self) -> list[Path]:
"""Get the log files"""
logfiles = list(filter(self.path_is_logfile, self.filename.parent.iterdir()))
logfiles.sort(key=self.file_sort_key, reverse=True)
return logfiles
def rotate_file(self, path: Path) -> None:
"""Rotate a file's number suffix and remove it if it's too old"""
# If uncompressed, compress
if not path.name.endswith(".xz"):
try:
with open(path, "r", encoding="utf-8") as original_file:
original_data = original_file.read()
except UnicodeDecodeError:
# If the file is corrupted, throw it away
path.unlink()
return
# Compress the file
compressed_path = path.with_suffix(path.suffix + ".xz")
with lzma.open(
compressed_path,
"wt",
format=FORMAT_XZ,
preset=PRESET_DEFAULT,
encoding="utf-8",
) as lzma_file:
lzma_file.write(original_data)
path.unlink()
path = compressed_path
# Rename with new number suffix
new_number = self.get_path_number(path) + 1
new_path_name = self.set_path_number(path, new_number)
path = path.rename(path.with_name(new_path_name))
# Remove older files
if new_number > self.backup_count:
path.unlink()
return
def rotate(self) -> None:
"""Rotate the numbered suffix on the log files and remove old ones"""
for path in self.get_logfiles():
self.rotate_file(path)
def __init__(self, filename: PathLike, backup_count: int = 2) -> None:
self.filename = Path(filename)
self.backup_count = backup_count
self.create_dir()
self.rotate()
self.log_file = open(self.filename, "w", encoding="utf-8")
shared.log_files = self.get_logfiles()
super().__init__(self.log_file)
def close(self) -> None:
if self.log_file:
self.log_file.close()
super().close()

View File

@@ -1,109 +0,0 @@
# setup.py
#
# Copyright 2023 Geoffrey Coulaud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
import logging
import logging.config as logging_dot_config
import os
import platform
import subprocess
import sys
from src import shared
def setup_logging() -> None:
"""Intitate the app's logging"""
is_dev = shared.PROFILE == "development"
profile_app_log_level = "DEBUG" if is_dev else "INFO"
profile_lib_log_level = "INFO" if is_dev else "WARNING"
app_log_level = os.environ.get("LOGLEVEL", profile_app_log_level).upper()
lib_log_level = os.environ.get("LIBLOGLEVEL", profile_lib_log_level).upper()
log_filename = shared.cache_dir / "cartridges" / "logs" / "cartridges.log"
config = {
"version": 1,
"formatters": {
"file_formatter": {
"format": "%(asctime)s - %(levelname)s: %(message)s",
"datefmt": "%M:%S",
},
"console_formatter": {
"format": "%(name)s %(levelname)s - %(message)s",
"class": "src.logging.color_log_formatter.ColorLogFormatter",
},
},
"handlers": {
"file_handler": {
"class": "src.logging.session_file_handler.SessionFileHandler",
"formatter": "file_formatter",
"level": "DEBUG",
"filename": log_filename,
"backup_count": 2,
},
"app_console_handler": {
"class": "logging.StreamHandler",
"formatter": "console_formatter",
"level": app_log_level,
},
"lib_console_handler": {
"class": "logging.StreamHandler",
"formatter": "console_formatter",
"level": lib_log_level,
},
},
"loggers": {
"PIL": {
"handlers": ["lib_console_handler", "file_handler"],
"propagate": False,
"level": "WARNING",
},
"urllib3": {
"handlers": ["lib_console_handler", "file_handler"],
"propagate": False,
"level": "NOTSET",
},
},
"root": {
"level": "NOTSET",
"handlers": ["app_console_handler", "file_handler"],
},
}
logging_dot_config.dictConfig(config)
def log_system_info() -> None:
"""Log system debug information"""
logging.debug("Starting %s v%s (%s)", shared.APP_ID, shared.VERSION, shared.PROFILE)
logging.debug("Python version: %s", sys.version)
if os.getenv("FLATPAK_ID") == shared.APP_ID:
process = subprocess.run(
("flatpak-spawn", "--host", "flatpak", "--version"),
capture_output=True,
encoding="utf-8",
check=False,
)
logging.debug("Flatpak version: %s", process.stdout.rstrip())
logging.debug("Platform: %s", platform.platform())
if os.name == "posix":
for key, value in platform.uname()._asdict().items():
logging.debug("\t%s: %s", key.title(), value)
logging.debug("" * 37)

Some files were not shown because too many files have changed in this diff Show More