Compare commits
118 Commits
Author | SHA1 | Date |
---|---|---|
Hericium VEVO | fe14efe9fb | 1 year ago |
Phoenix | fd20c98f35 | 1 year ago |
Michal S | f6384e6a20 | 2 years ago |
Michal S | 972912d1b6 | 2 years ago |
Anonymous | 6505f67e6f | 2 years ago |
Danie | be06962491 | 2 years ago |
Mehrab Poladov | 2aa8ef3734 | 2 years ago |
Ben Schenk | 6094078a18 | 2 years ago |
cosita3cz | f62ccb4791 | 2 years ago |
Tuhana GAYRETLİ | b2da98ff9c | 2 years ago |
guineu | c66305ac4a | 2 years ago |
trivernis | 182daa2493 | 2 years ago |
Jess Moran | d2008a5a89 | 2 years ago |
Weblate | 34fdf87061 | 2 years ago |
guineu | 3c85a58b3c | 2 years ago |
guineu | 603b1a782e | 2 years ago |
guineu | f19fecebbb | 2 years ago |
guineu | 2be02f8709 | 2 years ago |
Jatin Garg | d53384adbf | 2 years ago |
Py | a52530d548 | 2 years ago |
Hericium VEVO | fe7b0f6c18 | 2 years ago |
wowishere | 50bf1ce18a | 2 years ago |
Yousif Gad | e7667bd98d | 2 years ago |
Weblate | b73f1092e1 | 2 years ago |
Yousif Gad | 1f0194cc10 | 2 years ago |
K.B.Dharun Krishna | 4a9f106c1d | 2 years ago |
marshmallow | 5b8120a38f | 2 years ago |
marshmallow | 38f8037908 | 2 years ago |
marshmallow | 84f0d84413 | 2 years ago |
Stefan Yohansson da Silva Areeira Pinto | ba57008295 | 2 years ago |
Antiz (Robin C.) | decd25b047 | 2 years ago |
Antiz (Robin C.) | 601ca3c4b7 | 2 years ago |
Antiz (Robin C.) | bc9960ccd9 | 2 years ago |
Antiz (Robin C.) | 552ff89021 | 2 years ago |
Antiz (Robin C.) | 3b07754a43 | 2 years ago |
Antiz (Robin C.) | aacae4c590 | 2 years ago |
Antiz (Robin C.) | 92680427f3 | 2 years ago |
Antiz (Robin C.) | d8f504faa5 | 2 years ago |
Antiz (Robin C.) | 01a0a4a6c6 | 2 years ago |
trivernis | 969ee8feb7 | 2 years ago |
trivernis | 9fb253348a | 2 years ago |
trivernis | 3805aec589 | 2 years ago |
trivernis | 68089575dc | 2 years ago |
trivernis | 36c5f28b1c | 2 years ago |
trivernis | 4e37078758 | 2 years ago |
trivernis | 6840689d77 | 2 years ago |
seshotake | beff1005a5 | 2 years ago |
Fries | 51f5d28d50 | 2 years ago |
Fries | b0c1bd3a7b | 2 years ago |
Fries | ea26257b67 | 2 years ago |
Weblate | 1526f04d93 | 2 years ago |
Sergio Varela | 2f7be57847 | 2 years ago |
Stefan Yohansson da Silva Areeira Pinto | e4f7ed5a46 | 2 years ago |
Fries | b4d02e8ab1 | 2 years ago |
seshotake | 9f103984fe | 2 years ago |
seshotake | df05c65a68 | 2 years ago |
Nick Pryshchepa | e13de26109 | 2 years ago |
Luna Jernberg | 603efc8bb4 | 2 years ago |
Jan Fooken | b49c854bc9 | 2 years ago |
Ben Schenk | a220cfe867 | 2 years ago |
Michal S | 5f64a81dea | 2 years ago |
jasio hericium | a0534b117d | 2 years ago |
Matt Compton | b2d3ae0d12 | 2 years ago |
jasio hericium | fe37832922 | 2 years ago |
jasio hericium | 459de74541 | 2 years ago |
Luna Jernberg | adf710826c | 2 years ago |
jasio hericium | 622e54071b | 2 years ago |
Fries | f87cef3388 | 2 years ago |
Ben Schenk | 9d86acc7a6 | 2 years ago |
0xMRTT | 07d122292e | 2 years ago |
0xMRTT | 26ef660351 | 2 years ago |
Weblate Admin | e935b3149d | 2 years ago |
Michal S | 18363f6866 | 2 years ago |
Michal S | fa09199606 | 2 years ago |
Michal S | 8ee7c35b7d | 2 years ago |
Michal Stopyra | 9112ece292 | 2 years ago |
Jan Fooken | 81a4a648bb | 2 years ago |
Jan Fooken | 4bed3d5574 | 2 years ago |
Fries | 5315b76ee8 | 2 years ago |
Fries | f7297130e7 | 2 years ago |
Fries | 70965bb124 | 2 years ago |
Michal S | 2185b1a449 | 2 years ago |
Robin Candau | a6585add66 | 2 years ago |
Fries | 7b5a939574 | 2 years ago |
Fries | 05a078042d | 2 years ago |
Fries | 1d5b2a491b | 2 years ago |
Fries | 3c2f0ed89c | 2 years ago |
trivernis | ca46b81399 | 2 years ago |
trivernis | 3b605e3944 | 2 years ago |
trivernis | fb22b4b264 | 2 years ago |
trivernis | 0a0268c19a | 2 years ago |
trivernis | c858313fa3 | 2 years ago |
Fries | 7ca52c0ed8 | 2 years ago |
bittin | a5392d4dbb | 2 years ago |
Mattia B | 1b2a6e0e7b | 2 years ago |
mrshmllow | f100b13e28 | 2 years ago |
trivernis | 0863b39991 | 2 years ago |
trivernis | c6a1c4fa17 | 2 years ago |
Fries | 315b873826 | 2 years ago |
Fries | 023edeb786 | 2 years ago |
axtloss | f4f41804e3 | 2 years ago |
Fries | 42e5cf8bc2 | 2 years ago |
Fries | b3710431f8 | 2 years ago |
Fries | 60db2c444d | 2 years ago |
Fries | 73387e35d3 | 2 years ago |
Fries | 8f9ce37a78 | 2 years ago |
Fries | bbc2ac7991 | 2 years ago |
Fries | 6147d0d065 | 2 years ago |
Fries | 37f58858a5 | 2 years ago |
Fries | bf34b975d2 | 2 years ago |
Michal S | 48ee44531f | 2 years ago |
Fries | 2bc764e4c5 | 2 years ago |
Michal S | 64b7ea72bc | 2 years ago |
Fries | 3690ad1562 | 2 years ago |
Fries | 16e9cbc937 | 2 years ago |
Fries | 8be997002e | 2 years ago |
mrshmllow | 875a7da0b2 | 2 years ago |
mrshmllow | 0cab1b6630 | 2 years ago |
@ -1,34 +0,0 @@
|
||||
name: Lint Code
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
env:
|
||||
AMETHYST_CODENAME: "Clippedy Clip"
|
||||
|
||||
jobs:
|
||||
formatting:
|
||||
name: cargo fmt
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
components: rustfmt
|
||||
- name: Format
|
||||
uses: actions-rust-lang/rustfmt@v1.0.0
|
||||
clippy:
|
||||
name: cargo clippy
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/crystal-linux/crystal:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- run: |
|
||||
sudo pacman -Syu --needed --noconfirm
|
||||
sudo pacman -S --noconfirm rust
|
||||
- uses: actions-rs/clippy-check@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
@ -0,0 +1,19 @@
|
||||
image: "archlinux:latest"
|
||||
|
||||
cargo:version:
|
||||
before_script:
|
||||
- pacman -Sy rust base-devel openssl-1.1 --noconfirm
|
||||
script:
|
||||
- rustc --version && cargo --version
|
||||
|
||||
cargo:clippy:
|
||||
before_script:
|
||||
- pacman -Sy rust base-devel openssl-1.1 --noconfirm
|
||||
script:
|
||||
- cargo clippy --no-deps -- -D clippy::all
|
||||
|
||||
cargo:fmt:
|
||||
before_script:
|
||||
- pacman -Sy rust base-devel openssl-1.1 --noconfirm
|
||||
script:
|
||||
- cargo fmt --check
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"editor.tabCompletion": "on",
|
||||
"diffEditor.codeLens": true
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,20 @@
|
||||
use serde::Deserialize;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use cargo_toml::Manifest;
|
||||
|
||||
#[derive(Clone, Debug, Deserialize)]
|
||||
struct Metadata {
|
||||
codename: String,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let manifest = Manifest::<Metadata>::from_path_with_metadata(PathBuf::from("Cargo.toml"))
|
||||
.expect("Failed to read manifest (Cargo.toml)");
|
||||
|
||||
if let Some(package) = manifest.package {
|
||||
if let Some(metadata) = package.metadata {
|
||||
println!("cargo:rustc-env=AMETHYST_CODENAME={}", metadata.codename);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
# Config Keys
|
||||
|
||||
## [base]
|
||||
| Key | Description | Default |
|
||||
| --- | --- | --- |
|
||||
| `pacdiff_warn` | Whether to warn the user about `vimdiff` for `pacdiff` | `true` |
|
||||
|
||||
## [extra]
|
||||
| Key | Description | Default |
|
||||
| --- | --- | --- |
|
||||
| `uwu` | Makes Amethyst's output... "cuter" | `false` |
|
||||
| `uwu_debug` | Makes debug and traces `uwu`ed. Please never send us debug logs with this enabled. | `false` |
|
||||
|
||||
## [bin]
|
||||
| Key | Description | Default |
|
||||
| --- | --- | --- |
|
||||
| `sudo` | The path to use for `sudo` (or any `sudo`-likes) | `'sudo'` |
|
@ -0,0 +1,4 @@
|
||||
fallback_language = "en"
|
||||
|
||||
[fluent]
|
||||
assets_dir = "i18n"
|
@ -0,0 +1,9 @@
|
||||
# used across files
|
||||
exiting = الخروج
|
||||
continue = إكمال؟
|
||||
system-upgrade = نقوم بترقية النظام
|
||||
missing-deps = التبعيات مفقودة
|
||||
are-you-sure = هل أنت متأكد أنك تريد الإكمال؟
|
||||
no-results = لم يتم العثور علي نتائج
|
||||
results = النتائج:
|
||||
installed-packages = الحزم المثبتة:
|
@ -0,0 +1,169 @@
|
||||
# used across files
|
||||
exiting = Schließt...
|
||||
packages =
|
||||
{ $pkgNum ->
|
||||
[one] Paket
|
||||
*[other] Pakete
|
||||
}
|
||||
missing-deps = Fehlende Paketabhängigkeiten
|
||||
continue = Wollen Sie fortfahren?
|
||||
# main
|
||||
run-as-root = Amethyst mit root Berechtigungen auszuführen ist nicht erlaubt und kann zu korrupten Systemen führen. Amethyst wird nach root Berechtigungen fragen, wenn diese nötig sein sollten.
|
||||
following-packages = Folgende Pakete wurden in dem AUR gefunden:
|
||||
aur-warning =
|
||||
Die AUR ist eine Plattform, welche von der Community verwaltete Pakete zur Verfügung stellt und die Sicherheit eines Paketes nicht gewährleisten kann.
|
||||
Es wird empfohlen, die PKGBUILD-Dateien der Pakete zu überprüfen, bevor Sie diese Pakete installieren, da manche PKGBUILD-Dateien gefährlich sein könnten.
|
||||
Diese Warnung kann in der Konfigurationsdatei dekativiert werden.
|
||||
are-you-sure = Sie sich sicher, dass Sie fortfahren möchten?
|
||||
uninstalling-packages = Folgende Pakete werden deinstalliert: { $packages }
|
||||
system-upgrade = Führe Systemaktualisierung durch
|
||||
removing-orphans = Deinstalliere nicht benötigte Pakete
|
||||
couldnt-find-packages = Folgende Pakete wurden nicht in den Pacman-Paketquellen oder der AUR gefunden: { $packages }
|
||||
searching-repos = Durchsuche Paketquellen nach { $query }
|
||||
searching-aur = Durchsuche AUR nach { $query }
|
||||
no-results = Keine Ergebnisse gefunden
|
||||
results = Ergebnisse:
|
||||
installed-repo-packages = Aus den Pacman-Paketquellen installierte Pakete:
|
||||
installed-aur-packages = Aus der AUR installierte Pakete:
|
||||
installed-packages = Installierte Pakete:
|
||||
invalid-shell = Nicht unterstützte Shell: { $shell }
|
||||
zsh-error = ZSH shell Vervollständigung werden zurzeit nicht vom clap_completion crate unterstützt
|
||||
# operations::clean
|
||||
no-orphans = Keine nicht benötigten Pakete gefunden
|
||||
removing-orphans-would =
|
||||
Das entfernen von nicht benötigten Paketen wird folgende Pakete entfernen:
|
||||
{ $packages }
|
||||
failed-remove-orphans = Nicht benötigte Pakete konnten nicht entfernt werden
|
||||
success-remove-orphans = Nicht benötigte Pakete wurden erfolgreich entfernt
|
||||
clear-pkgbuild-cache = Amethysts internen Paketcache leeren?
|
||||
clear-pacman-cache = Pacmans Paketcache leeren?
|
||||
failed-clear-cache = Paketcache konnte nicht geleert werden, { $error }
|
||||
success-clear-cache = Paketcache wurde erfolgreich geleert
|
||||
# operations::install
|
||||
installing-packages-from-repos = Die Pakete { $packages } werden von den Paketquellen installiert
|
||||
error-install = Während der Paketinstallation ist ein Fehler aufgetreten: { $error }. Die Installation wird abgebrochen
|
||||
# operations::search
|
||||
out-of-date = veraltet: since
|
||||
installed = installiert
|
||||
# operations::uninstall
|
||||
failed-remove-pkgs = Pakete konnten nicht deinstalliert werden
|
||||
# operations::upgrade
|
||||
failed-upgrade-repo-pkgs = Pakete aus Pacman-Paketquellen konnten nicht aktualisiert werden
|
||||
success-upgrade-repo-pkgs = Pakete aus Pacman-Paketquellen wurden erfolgreich aktualisiert
|
||||
couldnt-find-remote-pkg = Remotepaket für { $pkg } konnte nicht gefunden werden
|
||||
no-upgrades-aur-package = Keine Aktualisierungen für AUR Pakete gefunden
|
||||
scanning-for-pacnew = Scanne für .pacnew Dateien nach Aktualisierung
|
||||
# logging::output
|
||||
repo-dependencies = Paketabhängigkeiten aus den Pacman-Paketquellen
|
||||
aur-dependencies = Paketabhängigkeiten aus der AUR
|
||||
repo-make-dependencies = Paketabhängigkeiten zum Bauen der Pakete aus den Pacman-Paketquellen
|
||||
aur-make-dependencies = Paketabhängigkeiten zum Bauen der Pakete aus der AUR
|
||||
version = Version
|
||||
votes = Votes
|
||||
capital-installed = Installiert
|
||||
# operations::aur_install::aur_fetch
|
||||
fetching-pkg-info = Rufe Paketinformationen ab
|
||||
couldnt-find-all-pkgs = Konnte nicht alle Pakete finden
|
||||
all-pkgs-found = Alle Pakete wurden gefunden
|
||||
some-pkgs-already-installed = Einige Pakete sind bereits installiert. Trotzdem fortfahren?
|
||||
do-you-want-to-install = Möchten Sie diese Pakete inklusive deren Abhängigkeiten installieren?
|
||||
# operations::aur_install::common
|
||||
downloading-sources = Lädt Quelldateien herunter
|
||||
pulling-latest-changes = Lädt letzte Änderungen herunter
|
||||
cloning-aur-repo = Lädt AUR-Repository herunter
|
||||
down-and-ext-files = Lädt Dateien herunter und extrahiert diese
|
||||
downloaded = Heruntergeladen!
|
||||
dependency-cycle = Abhängigkeitskreis erkannt! Die Installation wird abgebrochen.
|
||||
building-packages = Baue Pakete
|
||||
built = Gebaut
|
||||
installing-packages = Installiere Pakete
|
||||
building-package = Baue Paket
|
||||
build-failed = Erstellen des Pakets fehlgeschlagen!
|
||||
couldnt-find-pkg-produced = Konnte das Paket { $pkg } nicht in den erstellten Paketen finden
|
||||
review-build-log = Möchten Sie sich die Logdatei über die Paketerstellung anschauen?
|
||||
# operations::aur_install::aur_review
|
||||
select-pkgs-review = Wählen Sie die Pakete aus, die Sie überprüfen möchten
|
||||
do-you-still-want-to-install = Möchten Sie die Pakete weiterhin installieren?
|
||||
reviewing = Überprüfen
|
||||
select-file-review = Wählen Sie eine Datei zum Überprüfen aus
|
||||
done-reviewing-pkg = Überprüfung von { $pkg } abgeschlossen
|
||||
# operations::aur_install::aur_download
|
||||
all-sources-ready = Alle Quellen sind bereit.
|
||||
# interact::theme
|
||||
no-selections = Keine Auswahl
|
||||
# operations::aur_install::repo_dependency_installation
|
||||
installing-repo-deps = Installiere Pacman-Abhängigkeiten
|
||||
# operations::aur_install::aur_dependency_installation
|
||||
installing-from-aur = Installiere { $amountOfPkgs } aus der AUR
|
||||
# operations::aur_install::make_dependency_removal
|
||||
remove-installed-make-deps = Möchten Sie die ausschließlich zum Bauen verwendeten Abhängigkeiten entfernen?
|
||||
done = Fertig!
|
||||
# operations::aur_install
|
||||
aur-rpc-crash = AUR RPC Aufruf ist fehlgeschlagen: { $error }
|
||||
failed-to-build = Konnte nicht gebaut werden
|
||||
makepkg-failed = makepkg ist fehlgeschlagen
|
||||
unknown-error = Unbekannter Fehler
|
||||
# internal::error
|
||||
non-zero-exit = Ist mit einem Fehlercode beendet worden
|
||||
build-step-violation = AUR build violated build steps
|
||||
build-error = Paket konnte nicht gebaut werden
|
||||
user-cancel = Abbruch durch den Benutzer
|
||||
makepkg-err = makepkg konnte nicht ausgeführt werden
|
||||
error-occurred = Ein Fehler ist aufgetreten
|
||||
# internal::detect
|
||||
sudo-prompt-failed = Sudo Abfrage ist fehlgeschlagen
|
||||
scanning-pacnew-files = Suche nach .pacnew Dateien
|
||||
no-pacnew-found = Keine .pacnew Dateien gefunden
|
||||
pacnew-found = .pacnew Dateien gefunden
|
||||
pacnew-warning =
|
||||
Einige von dir installierten oder aktualisierten Pakete haben eine .pacnew Datei hinterlassen.
|
||||
Diese Dateien werden erstellt, wenn sich die Konfiguration eines Programmes geändert hat und nicht automatisch
|
||||
mit der vorhandenden Konfiguration zusammengeführt werden konnte. Sie können diese Konflikte lösen,
|
||||
indem Sie folgendes ausführen:
|
||||
run-pacdiff-now = Möchten Sie pacdiff nun ausführen?
|
||||
pacdiff-warning =
|
||||
Pacdiff nutzt standardmäßig vimdiff um Dateien zusammenzuführen. Sie können Bereiche fokussieren, indem Sie die Maus
|
||||
über diese bewegen und die linke Maustaste drücken.
|
||||
Zum Beenden von vimdiff können Sie folgende Tastenkombination ausführen: ESC, :qa!, ENTER
|
||||
Diese Warnung kann in der Konfigurationdatei ~/.config/ame/config.toml unter der Einstellung `pacdiff_warn` ausgeschaltet werden, indem diese auf false gesetzt wird.
|
||||
# internal::config
|
||||
config-docs = # See https://getcryst.al/docs/amethyst/config for more information on config keys
|
||||
# internal::paging
|
||||
quit = Beenden
|
||||
search = Suche
|
||||
next-result = Nächstes Ergebnis
|
||||
previous-result = Vorheriges Ergebnis
|
||||
# --help
|
||||
verbose = Setzt das Ausgabelevel
|
||||
no-confirm = Führt alle Vorgänge durch, ohne dass eine Benutzereingabe notwendig ist
|
||||
quiet = Sorgt dafür, dass einige Befehle weniger in die Konsole schreiben (nur clean, upgrade und install werden unterstützt)
|
||||
sudoloop = Lässt die Sudo-Abfrage im Hintergrund laufen, um weitere Eingaben zu vermeiden
|
||||
cachedir = Setzt ein benutzerdefiniertes AUR clone und build Verzeichnis für den jeweiligen Vorgang
|
||||
install = Installiert oder sucht nach Paketen die entweder aus der AUR oder Pacman-Paketquellen stammen
|
||||
remove = Entfernt ein installiertes Paket
|
||||
search = Sucht nach einem Paket, welches einem bestimmten Muster entspricht (in der AUR und Pacman-Repos) [aliases: -Ss]
|
||||
query = Durchsucht installierte Pakete
|
||||
upgrade = Aktualisiert lokale Pakete auf deren neuste Version (Standardwert)
|
||||
gencomp = Generiert Shell-Vervollständigungen für unterstützte Shells (bash, fish, elvish, pwsh)
|
||||
clean = Entfernt nicht verwendete Pakete
|
||||
diff = Führt pacdiff aus
|
||||
install-packages = Namen der Pakete die installiert oder gesucht werden sollen
|
||||
install-aur = Betrachtet nur Paekte aus der AUR
|
||||
install-repo = Betrachtet nur Pakete aus den Pacman-Paketquellen
|
||||
install-search = Sucht nach Paketen die einem bestimmten Muster entsprechen, anstatt zu installieren
|
||||
install-by = Sucht nach dem Wert eines bestimmten Feldes
|
||||
remove-packages = Die Namen der Pakete, die entfernt werden sollen
|
||||
query-aur = Listet AUR und Pacman-fremde Pakete auf [-Qa, -Qm]
|
||||
query-repo = Listet Pakete aus den Pacman-Paketquellen auf [-Qr, -Qn]
|
||||
query-explicit = Listet Pakete auf, die explizit installiert wurden [-Qe]
|
||||
query-info = Gibt Informationen über ein bestimmtes Paket aus
|
||||
upgrade-repo = Aktualisiert nur Pakete aus Pacman-Paketquellen
|
||||
upgrade-aur = Aktualisiert nur AUR-Pakete
|
||||
gencomp-shell = Die Shell für die Auto-Vervollständigungen generiert werden soll (bash, fish, elvish, pwsh, fig)
|
||||
review = { $pkg } überprüfen?
|
||||
description = Ein schneller und effizienter AUR-Helfer
|
||||
checkupdates = Fragt nach verfügbaren Paketaktualisierungen und gibt sie aus
|
||||
repo-check-dependencies = Repo-Abhängigkeiten prüfen
|
||||
search-paging = Suche
|
||||
aur-check-dependencies = AUR-Abhängigkeiten prüfen
|
||||
query-owns = Informationen darüber erhalten, welches Paket eine Datei besitzt
|
@ -0,0 +1,185 @@
|
||||
# used across files
|
||||
exiting = Exiting
|
||||
packages = { $pkgNum ->
|
||||
[one] package
|
||||
*[other] packages
|
||||
}
|
||||
missing-deps = Missing dependencies
|
||||
continue = Continue?
|
||||
|
||||
# main
|
||||
run-as-root = Running Amethyst as root is disallowed as it can lead to system breakage. Instead, Amethyst will prompt you when it needs superuser permissions.
|
||||
following-packages = The following packages were found in the AUR:
|
||||
aur-warning =
|
||||
The AUR is a source of user-submitted packages/scripts and isn't always safe to use.
|
||||
Please make sure to review the PKGBUILD of anything you download from the AUR before installing it, as some PKGBUILDs may potentially be malicious.
|
||||
This warning can be toggled in the configuration file.
|
||||
are-you-sure = Are you sure that you want to continue?
|
||||
uninstalling-packages = Uninstalling packages: {$packages}
|
||||
system-upgrade = Performing system upgrade
|
||||
removing-orphans = Removing orphaned packages
|
||||
couldnt-find-packages = Couldn't find packages: {$packages} in repos or the AUR
|
||||
searching-repos = Searching repos for {$query}
|
||||
searching-aur = Searching AUR for {$query}
|
||||
no-results = No results found
|
||||
results = Results:
|
||||
installed-repo-packages = Installed Repo Packages:
|
||||
installed-aur-packages = Installed AUR Packages:
|
||||
installed-packages = Installed Packages:
|
||||
invalid-shell = Invalid shell, {$shell}
|
||||
zsh-error = Zsh shell completions are currently unsupported due to a bug in the clap_completion crate
|
||||
|
||||
# operations::clean
|
||||
no-orphans = No orphaned packages found
|
||||
removing-orphans-would =
|
||||
Removing orphans would uninstall the following packages:
|
||||
{$packages}
|
||||
failed-remove-orphans = Failed to remove orphans
|
||||
success-remove-orphans = Successfully removed orphans
|
||||
clear-pkgbuild-cache = Clear Amethyst's internal PKGBUILD cache?
|
||||
clear-pacman-cache = Also clear Pacman's package cache?
|
||||
failed-clear-cache = Failed to clear package cache, {$error}
|
||||
success-clear-cache = Successfully cleared package cache
|
||||
|
||||
# operations::install
|
||||
installing-packages-from-repos = Installing packages {$packages} from repos
|
||||
error-install = An error occured while installing packages: {$error}, aborting
|
||||
|
||||
# operations::search
|
||||
out-of-date = out of date: since
|
||||
installed = installed
|
||||
|
||||
# operations::uninstall
|
||||
failed-remove-pkgs = Failed to remove packages
|
||||
|
||||
# operations::upgrade
|
||||
failed-upgrade-repo-pkgs = Failed to upgrade repo packages
|
||||
success-upgrade-repo-pkgs = Successfully upgraded repo packages
|
||||
couldnt-find-remote-pkg = Could not find the remote package for {$pkg}
|
||||
no-upgrades-aur-package = No upgrades available for installed AUR packages
|
||||
scanning-for-pacnew = Scanning for .pacnew files post-upgrade
|
||||
|
||||
# logging::output
|
||||
repo-dependencies = Repo dependencies
|
||||
aur-dependencies = AUR dependencies
|
||||
repo-make-dependencies = Repo make dependencies
|
||||
aur-make-dependencies = AUR make dependencies
|
||||
repo-check-dependencies = Repo check dependencies
|
||||
aur-check-dependencies = AUR check dependencies
|
||||
version = version
|
||||
votes = votes
|
||||
capital-installed = Installed
|
||||
|
||||
# operations::aur_install::aur_fetch
|
||||
fetching-pkg-info = Fetching package information
|
||||
couldnt-find-all-pkgs = Couldn't find all packages
|
||||
all-pkgs-found = All packages found
|
||||
some-pkgs-already-installed = Some packages are already installed. Continue anyway?
|
||||
do-you-want-to-install = Do you want to install these packages and package dependencies?
|
||||
|
||||
# operations::aur_install::common
|
||||
downloading-sources = Downloading sources
|
||||
pulling-latest-changes = Pulling latest changes
|
||||
cloning-aur-repo = Cloning aur repository
|
||||
down-and-ext-files = Downloading and extracting files
|
||||
downloaded = Downloaded!
|
||||
dependency-cycle = Dependency cycle detected. Aborting installation.
|
||||
building-packages = Building packages
|
||||
built = Built
|
||||
installing-packages = Installing packages
|
||||
building-package = Building Package
|
||||
build-failed = Build failed!
|
||||
couldnt-find-pkg-produced = Could not find package {$pkg} in produced packages
|
||||
review-build-log = Do you want to review the build log?
|
||||
|
||||
# operations::aur_install::aur_review
|
||||
select-pkgs-review = Select packages to review
|
||||
do-you-still-want-to-install = Do you still want to install those packages?
|
||||
reviewing = Reviewing
|
||||
select-file-review = Select a file to review
|
||||
done-reviewing-pkg = Done reviewing {$pkg}
|
||||
review = Review {$pkg}?
|
||||
|
||||
# operations::aur_install::aur_download
|
||||
all-sources-ready = All sources are ready.
|
||||
|
||||
# interact::theme
|
||||
no-selections = No selections
|
||||
|
||||
# operations::aur_install::repo_dependency_installation
|
||||
installing-repo-deps = Installing repo dependencies
|
||||
|
||||
# operations::aur_install::aur_dependency_installation
|
||||
installing-from-aur = Installing {$amountOfPkgs} from the AUR
|
||||
|
||||
# operations::aur_install::make_dependency_removal
|
||||
remove-installed-make-deps = Do you want to remove the installed make dependencies?
|
||||
done = Done!
|
||||
|
||||
# operations::aur_install
|
||||
aur-rpc-crash = AUR RPC Call failed with: {$error}
|
||||
failed-to-build = Failed to build
|
||||
makepkg-failed = makepkg failed
|
||||
unknown-error = Unknown error
|
||||
|
||||
# internal::error
|
||||
non-zero-exit = Exited with non zero code
|
||||
build-step-violation = AUR build violated build steps
|
||||
build-error = Failed to build package
|
||||
user-cancel = Cancelled by user
|
||||
makepkg-err = Failed to run makepkg
|
||||
error-occurred = An error occurred
|
||||
|
||||
# internal::detect
|
||||
sudo-prompt-failed = Sudo prompt failed
|
||||
scanning-pacnew-files = Scanning for pacnew files
|
||||
no-pacnew-found = No .pacnew files found
|
||||
pacnew-found = pacnew files found
|
||||
pacnew-warning =
|
||||
It appears that at least one program you have installed / upgraded has installed a .pacnew config file.
|
||||
These are created when you have modified a program's configuration, and a package upgrade could not automatically merge the new file.
|
||||
You can deal with those files by running
|
||||
run-pacdiff-now = Would you like to run pacdiff now?
|
||||
pacdiff-warning =
|
||||
Pacdiff uses vimdiff by default to edit files for merging. You can focus panes by mousing over them and pressing left click, and scroll up and down using your mouse's scroll wheel (or the arrow keys). To exit vimdiff, press the following key combination: ESC, :qa!, ENTER
|
||||
You can suppress this warning in the future by setting `pacdiff_warn` to "false" in ~/.config/ame/config.toml
|
||||
|
||||
# internal::config
|
||||
config-docs = # See https://getcryst.al/docs/amethyst/config for more information on config keys
|
||||
|
||||
# internal::paging
|
||||
quit = quit
|
||||
search-paging = search
|
||||
next-result = next result
|
||||
previous-result = previous result
|
||||
|
||||
# --help
|
||||
verbose = Sets the level of verbosity
|
||||
no-confirm = Complete operation without prompting user
|
||||
quiet = Make some commands have less output (only clean, upgrade, and install are supported)
|
||||
sudoloop = Loops sudo in the background to ensure it doesn't time out during long builds
|
||||
cachedir = Sets a custom AUR clone and build directory for the specified operation
|
||||
install = Installs or searches for a package in either the AUR or the Pacman-defined repositories
|
||||
remove = Removes a previously installed package
|
||||
search = Searches for packages matching a provided pattern in the AUR/repos [aliases: -Ss]
|
||||
query = Queries installed packages
|
||||
upgrade = Upgrades locally installed packages to their latest versions (Default)
|
||||
gencomp = Generates shell completions for supported shells (bash, fish, elvish, pwsh)
|
||||
clean = Removes all orphaned packages
|
||||
checkupdates = Queries for and returns available package updates
|
||||
diff = Runs pacdiff
|
||||
install-packages = The name of the package(s) to install or search for
|
||||
install-aur = Operate only on AUR packages
|
||||
install-repo = Operate only on repo packages
|
||||
install-search = Search packages for a given pattern instead of installing
|
||||
install-by = Searches by a specific field
|
||||
remove-packages = The name of the package(s) to remove
|
||||
query-aur = Lists AUR/foreign packages [-Qa, -Qm]
|
||||
query-repo = Lists repo/native packages [-Qr, -Qn]
|
||||
query-explicit = Lists explicitly installed packages [-Qe]
|
||||
query-info = Get information about a specific package
|
||||
query-owns = Get information about which package owns a file
|
||||
upgrade-repo = Upgrades only repo/native packages
|
||||
upgrade-aur = Upgrades only from the AUR
|
||||
gencomp-shell = The shell to generate completions for (bash, fish, elvish, pwsh, fig)
|
||||
description = A fast and efficient AUR helper
|
@ -0,0 +1,164 @@
|
||||
# used across files
|
||||
exiting = Saliendo
|
||||
packages =
|
||||
{ $pkgNum ->
|
||||
[one] paquete
|
||||
*[other] paquetes
|
||||
}
|
||||
# main
|
||||
run-as-root = Ejecutar Amethyst como root no está permitido ya que puede llevar a la ruptura del sistema. En su lugar, Amethyst le avisará cuando necesite permisos de superusuario.
|
||||
aur-warning =
|
||||
El AUR es una fuente de paquetes/scripts enviados por los usuarios y no siempre es segura.
|
||||
Por favor, asegúrese de revisar el PKGBUILD de cualquier cosa que descargue del AUR antes de instalarlo, ya que algunos PKGBUILDs pueden ser potencialmente maliciosos.
|
||||
Esta advertencia puede activarse en el archivo de configuración.
|
||||
clear-pkgbuild-cache = ¿Limpiar la caché interna de PKGBUILD de Amethyst?
|
||||
missing-deps = Dependencias que faltan
|
||||
continue = ¿Continuar?
|
||||
following-packages = Se han encontrado los siguientes paquetes en el AUR:
|
||||
are-you-sure = ¿Está seguro de que quiere continuar?
|
||||
uninstalling-packages = Desinstalando paquetes: { $packages }
|
||||
system-upgrade = Realizando la actualización del sistema
|
||||
removing-orphans = Eliminación de paquetes huérfanos
|
||||
couldnt-find-packages = No se han podido encontrar los paquetes { $packages } en los repos o en el AUR
|
||||
searching-repos = Buscando repos para { $query }
|
||||
searching-aur = Búsqueda en AUR de { $query }
|
||||
no-results = No se han encontrado resultados
|
||||
results = Resultados:
|
||||
installed-repo-packages = Paquetes del repositorio instalados:
|
||||
installed-aur-packages = Paquetes AUR instalados:
|
||||
installed-packages = Paquetes instalados:
|
||||
invalid-shell = Shell no válido, { $shell }
|
||||
zsh-error = Las terminaciones del shell de ZSH no se soportan actualmente debido a un error en la crate 'clap_completion'
|
||||
# operations::clean
|
||||
no-orphans = No se han encontrado paquetes huérfanos
|
||||
removing-orphans-would =
|
||||
La eliminación de los paquetes huérfanos desinstalaría los siguientes paquetes:
|
||||
{ $packages }
|
||||
failed-remove-orphans = No se han podido eliminar los paquetes huérfanos
|
||||
success-remove-orphans = Paquetes huérfanos removidos con éxito
|
||||
clear-pacman-cache = ¿Borrar también la caché de paquetes de Pacman?
|
||||
failed-clear-cache = Fallo al borrar la caché del paquete, { $error }
|
||||
aur-make-dependencies = Dependencias de compilación de AUR
|
||||
aur-check-dependencies = Dependencias de verificación de AUR
|
||||
some-pkgs-already-installed = Algunos paquetes ya han sido instalados. ¿Continuar igualmente?
|
||||
dependency-cycle = Ciclo de dependencias detectado. Abortando instalación.
|
||||
couldnt-find-pkg-produced = No se ha podido encontrar el paquete { $pkg } en los paquetes generados
|
||||
# operations::aur_install::aur_download
|
||||
all-sources-ready = Todas las fuentes están listas.
|
||||
# operations::aur_install::make_dependency_removal
|
||||
remove-installed-make-deps = ¿Quieres remover las dependencias de compilación instaladas?
|
||||
makepkg-err = Error al iniciar makepkg
|
||||
pacnew-warning =
|
||||
Parece que al menos un programa que has instalado o actualizado ha creado un archivo .pacnew.
|
||||
Esto pasa cuando has modificado la configuración de un paquete, y la actualización no ha podido actualizar la configuración automáticamente.
|
||||
Puedes solucionar esto ejecutando
|
||||
pacdiff-warning =
|
||||
Pacdiff usa vimdiff por defecto para editar archivos cuando se fusionan. Puedes moverte por los paneles moviendo el ratón y pulsando botón derecho, y moverte arriba o abajo usando la rueda del ratón (o las flechas del teclado). Para salir de vimdiff, pulsa la siguiente configuración: ESC, :qa!, ENTER
|
||||
Puedes esconder esta advertencia en el futuro cambiado la opción 'pacdiff_warn' a 'falso' en ~/.config/ame/config.toml
|
||||
upgrade = Actualiza los paquetes instalados localmente a las últimas versiones (Por defecto)
|
||||
install-packages = El nombre del/los paquete(s) que quieres instalar o buscar
|
||||
query-repo = Lista paquetes nativos/del repositorio [-Qr, -Qn]
|
||||
query-owns = Conseguir información sobre que paquete es propietario de un archivo
|
||||
# operations::aur_install::common
|
||||
downloading-sources = Descargando fuentes
|
||||
query-aur = Lista paquetes del AUR o fuera de repositorio [-Qa, -Qm]
|
||||
aur-dependencies = Dependencias de AUR
|
||||
repo-make-dependencies = Dependencias de compilación de repositorio
|
||||
success-clear-cache = Caché de paquetes limpiada con éxito
|
||||
error-install = Un error ha ocurrido mientras se instalaban los paquetes: { $error }, abortando
|
||||
# operations::search
|
||||
out-of-date = Desactualizado desde
|
||||
installed = instalado
|
||||
# operations::uninstall
|
||||
failed-remove-pkgs = Error al remover los paquetes
|
||||
# operations::upgrade
|
||||
failed-upgrade-repo-pkgs = Error al actualizar los paquetes del repositorio
|
||||
success-upgrade-repo-pkgs = Paquetes del repositorio actualizados con éxito
|
||||
couldnt-find-remote-pkg = No se ha encontrado un paquete remoto para { $pkg }
|
||||
no-upgrades-aur-package = No hay actualizaciones para los paquetes de AUR
|
||||
scanning-for-pacnew = Buscando archivos .pacnew después de actualizar
|
||||
# logging::output
|
||||
repo-dependencies = Dependencias de repositorio
|
||||
# operations::install
|
||||
installing-packages-from-repos = Instalando { $packages } de los repositorios
|
||||
repo-check-dependencies = Dependencias de verificación de repositorio
|
||||
version = versión
|
||||
votes = votos
|
||||
capital-installed = Instalado
|
||||
# operations::aur_install::aur_fetch
|
||||
fetching-pkg-info = Obteniendo información del paquete
|
||||
couldnt-find-all-pkgs = No se han encontrado todos los paquetes
|
||||
all-pkgs-found = Todos los paquetes han sido encontrados
|
||||
# internal::detect
|
||||
sudo-prompt-failed = La petición de contraseña ha fallado
|
||||
pulling-latest-changes = Descargando los últimos cambios
|
||||
cloning-aur-repo = Clonando el repositorio AUR
|
||||
down-and-ext-files = Descargando y extrayendo archivos
|
||||
building-packages = Compilando paquetes
|
||||
built = Compilado
|
||||
installing-packages = Instalando paquetes
|
||||
building-package = Compilando paquete
|
||||
build-failed = Compilación fallida!
|
||||
# operations::aur_install::aur_review
|
||||
select-pkgs-review = Selecciona los paquetes que quieres revisar
|
||||
do-you-still-want-to-install = ¿Aún quieres instalar estos paquetes?
|
||||
review-build-log = ¿Quieres revisar el registro de compilación?
|
||||
do-you-want-to-install = ¿Quieres instalar estos paquetes y sus dependencias?
|
||||
downloaded = ¡Descargado!
|
||||
reviewing = Revisando
|
||||
select-file-review = Selecciona un fichero para revisarlo
|
||||
done-reviewing-pkg = Revisión finalizada para { $pkg }
|
||||
review = ¿Revisar { $pkg }?
|
||||
# interact::theme
|
||||
no-selections = Sin selecciones
|
||||
# operations::aur_install::repo_dependency_installation
|
||||
installing-repo-deps = Instalando las dependencias del repositorio
|
||||
# operations::aur_install::aur_dependency_installation
|
||||
installing-from-aur = Instalando { $amountOfPkgs } del AUR
|
||||
done = ¡Completado!
|
||||
# operations::aur_install
|
||||
aur-rpc-crash = La llamada RPC al AUR ha fallado con el error: { $error }
|
||||
failed-to-build = Error al compilar
|
||||
makepkg-failed = makepkg ha fallado
|
||||
unknown-error = Error desconocido
|
||||
# internal::error
|
||||
non-zero-exit = Finalizado con un código que no es 0
|
||||
build-step-violation = La compilación del AUR ha violado los pasos de compilación
|
||||
build-error = Error al compilar el paquete
|
||||
user-cancel = Cancelado por el usuario
|
||||
error-occurred = Un error ha ocurrido
|
||||
scanning-pacnew-files = Buscando archivos pacnew
|
||||
no-pacnew-found = No se han encontrado archivos .pacnew
|
||||
pacnew-found = Se han encontrado archivos pacnew
|
||||
run-pacdiff-now = ¿Quieres ejecutar pacdiff ahora?
|
||||
# internal::config
|
||||
config-docs = # Entra en https://getcryst.al/docs/amethyst/config para más información sobre las opciones
|
||||
# internal::paging
|
||||
quit = salir
|
||||
search-paging = buscar
|
||||
next-result = siguiente resultado
|
||||
previous-result = anterior resultado
|
||||
# --help
|
||||
verbose = Elegir el nivel de verbosidad
|
||||
no-confirm = Completar la operación sin preguntar al usuario
|
||||
quiet = Hacer que algunos comandos tengan menos verbosidad (solo clean, upgrade y install están soportados)
|
||||
sudoloop = Pone sudo en un bucle de fondo para asegurarse de que no se cierra por inactividad durante compilaciones largas
|
||||
cachedir = Establece un directorio personalizado para la clonación y compilación de paquetes del AUR
|
||||
install = Instala o busca los paquetes tanto en el AUR como en los repositorios de Pacman
|
||||
remove = Desinstala un paquete previamente instalado
|
||||
query = Busca todos los paquetes instalados
|
||||
gencomp = Genera auto-completación para las shell soportadas (bash, fish, elvish, pwsh)
|
||||
clean = Desinstala todos los paquetes huérfanos
|
||||
checkupdates = Busca y muestra todos los paquetes que tienen actualizaciones
|
||||
diff = Ejecuta pacdiff
|
||||
install-aur = Operar solo con los paquetes del AUR
|
||||
install-repo = Operar solo con los paquetes de repositorios
|
||||
install-search = Buscar los paquetes con el patrón proporcionado en vez de instalar
|
||||
install-by = Buscar por un campo específico
|
||||
remove-packages = El nombre del/los paquete(s) a desinstalar
|
||||
query-explicit = Lista paquetes instalados explícitamente [-Qe]
|
||||
query-info = Conseguir información sobre un paquete especifico
|
||||
upgrade-repo = Actualiza solo paquetes del nativos/de los repositorios
|
||||
upgrade-aur = Actualiza solo paquetes del AUR
|
||||
gencomp-shell = La shell para la que quieres generar la auto-completación (bash, fish, elvish, pwsh, fig)
|
||||
description = Un ayudante de AUR rápido y eficiente
|
@ -0,0 +1,6 @@
|
||||
missing-deps = Dépendances manquantes
|
||||
continue = Continuer ?
|
||||
# used across files
|
||||
exiting = Quitter
|
||||
# main
|
||||
run-as-root = Exécuter Gradience en tant que super utilisateur est désactivé car cela peut créer des problèmes. A la place, Amethyst va vous demander quand il a besoin des permissions super utilisateur.
|
@ -0,0 +1,179 @@
|
||||
# used across files
|
||||
exiting = Esco
|
||||
packages = { $pkgNum ->
|
||||
[one] pacchetto
|
||||
*[other] pacchetti
|
||||
}
|
||||
missing-deps = Dipendenze mancanti
|
||||
continue = Continuare?
|
||||
|
||||
# main
|
||||
run-as-root = Non è consentito usare Amethyst come super utente poiché potrebbe danneggiare il sistema. Amethyst chiederà l'autenticazione quando necessario.
|
||||
following-packages = I seguenti pacchetti non sono stati trovati in AUR:
|
||||
aur-warning =
|
||||
L'AUR è una fonte di pacchetti creati da utenti e non sempre è sicura.
|
||||
È consigliato esaminare il PKGBUILD di qualsiasi pacchetto AUR prima di installarlo poiché alcuni potrebbero essere dannosi.
|
||||
Questo avviso può essere disattivato nel file di configurazione.
|
||||
are-you-sure = Continuare?
|
||||
uninstalling-packages = Disinstallazione dei pacchetti: {$packages}
|
||||
system-upgrade = Aggiornamento del sistema
|
||||
removing-orphans = Rimozione dei pacchetti orfani
|
||||
couldnt-find-packages = Impossibile trovare i pacchetti: {$packages} nei repository o in AUR
|
||||
searching-repos = Ricerca di {$query} nei repository
|
||||
searching-aur = Ricerca di {$query} in AUR
|
||||
no-results = Nessun risultato
|
||||
results = Risultati:
|
||||
installed-repo-packages = Pacchetti repository installati:
|
||||
installed-aur-packages = Pacchetti AUR installati:
|
||||
installed-packages = Pacchetti installati:
|
||||
invalid-shell = La shell {$shell} non è supportata
|
||||
zsh-error = L'autocompletamento Zsh non è supportato a causa di un bug nel crate clap_completion
|
||||
|
||||
# operations::clean
|
||||
no-orphans = Nessun pacchetto orfano trovato
|
||||
removing-orphans-would =
|
||||
I seguenti pacchetti orfani saranno rimossi:
|
||||
{$packages}
|
||||
failed-remove-orphans = Impossibile rimuovere i pacchetti orfani
|
||||
success-remove-orphans = I pacchetti orfani sono stati rimossi
|
||||
clear-pkgbuild-cache = Pulire la cache interna dei PKGBUILD di Amethyst?
|
||||
clear-pacman-cache = Pulire anche la cache dei pacchetti di Pacman?
|
||||
failed-clear-cache = Impossibile pulire la cache dei pacchetti: {$error}
|
||||
success-clear-cache = La cache dei pacchetti è stata pulita
|
||||
|
||||
# operations::install
|
||||
installing-packages-from-repos = Installazione di {$packages} dai repository
|
||||
error-install = Si è verificato un errore durante l'installazione: {$error}, interrompo
|
||||
|
||||
# operations::search
|
||||
out-of-date = obsoleto: dal
|
||||
installed = installato
|
||||
|
||||
# operations::uninstall
|
||||
failed-remove-pkgs = Impossibile installare i pacchetti
|
||||
|
||||
# operations::upgrade
|
||||
failed-upgrade-repo-pkgs = Impossibile aggiornare i pacchetti repository
|
||||
success-upgrade-repo-pkgs = I pacchetti repository sono stati aggiornati
|
||||
couldnt-find-remote-pkg = Impossibile trovare il pacchetto {$pkg}
|
||||
no-upgrades-aur-package = Nessun aggiornamento disponibile per i pacchetti AUR
|
||||
scanning-for-pacnew = Ricerca di file .pacnew post-aggiornamento
|
||||
|
||||
# logging::output
|
||||
repo-dependencies = Dipendenze repository
|
||||
aur-dependencies = Dipendenze AUR
|
||||
repo-make-dependencies = Dipendenze repository per la compilazione
|
||||
aur-make-dependencies = Dipendenze AUR per la compilazione
|
||||
version = versione
|
||||
votes = voti
|
||||
capital-installed = Installato
|
||||
|
||||
# operations::aur_install::aur_fetch
|
||||
fetching-pkg-info = Raccoglimento delle informazioni dei pacchetti
|
||||
couldnt-find-all-pkgs = Alcuni pacchetti non sono stati trovati
|
||||
all-pkgs-found = Tutti i pacchetti sono stati trovati
|
||||
some-pkgs-already-installed = Alcuni pacchetti sono già installati. Continuare comunque?
|
||||
do-you-want-to-install = Vuoi installare questi pacchetti e dipendenze?
|
||||
|
||||
# operations::aur_install::common
|
||||
downloading-sources = Scaricamento delle sorgenti
|
||||
pulling-latest-changes = Recupero dei cambiamenti più recenti
|
||||
cloning-aur-repo = Clonazione del repository AUR
|
||||
down-and-ext-files = Scaricamento e estrazione dei file
|
||||
downloaded = Scaricato!
|
||||
dependency-cycle = È stato rilevato un ciclo di dipendenze. L'installazione è stata interrotta.
|
||||
building-packages = Compilazione dei pacchetti
|
||||
built = Compilato
|
||||
installing-packages = Installazione dei pacchetti
|
||||
building-package = Compilazione del pacchetti
|
||||
build-failed = La compilazione non è riuscita!
|
||||
couldnt-find-pkg-produced = Impossibile trovare {$pkg} nei pacchetti compilati
|
||||
review-build-log = Vuoi esaminare il registro di compilazione?
|
||||
|
||||
# operations::aur_install::aur_review
|
||||
select-pkgs-review = Seleziona pacchetti da esaminare
|
||||
do-you-still-want-to-install = Vuoi ancora installare i pacchetti?
|
||||
reviewing = Esaminazione
|
||||
select-file-review = Selezionare un file da esaminare
|
||||
done-reviewing-pkg = Esaminazione di {$pkg} conclusa
|
||||
review = Esaminare {$pkg}?
|
||||
|
||||
# operations::aur_install::aur_download
|
||||
all-sources-ready = Le sorgenti sono pronte.
|
||||
|
||||
# interact::theme
|
||||
no-selections = La selezione è vuota
|
||||
|
||||
# operations::aur_install::repo_dependency_installation
|
||||
installing-repo-deps = Installazione delle dipendenze repository
|
||||
|
||||
# operations::aur_install::aur_dependency_installation
|
||||
installing-from-aur = Installazione di {$amountOfPkgs} pacchetti AUR
|
||||
|
||||
# operations::aur_install::make_dependency_removal
|
||||
remove-installed-make-deps = Rimuovere le dipendenze di compilazione?
|
||||
done = Fatto!
|
||||
|
||||
# operations::aur_install
|
||||
aur-rpc-crash = La chiamata RCP a AUR non è riuscita: {$error}
|
||||
failed-to-build = Errore di compilazione
|
||||
makepkg-failed = Errore di makepkg
|
||||
unknown-error = Errore sconosciuto
|
||||
|
||||
# internal::error
|
||||
non-zero-exit = Codice di uscita diverso da zero
|
||||
build-step-violation = La compilazione AUR ha violato le fasi di compilazione
|
||||
build-error = Errore nella compilazione del pacchetto
|
||||
user-cancel = Annullato dall'utente
|
||||
makepkg-err = Impossibile eseguire makepkg
|
||||
error-occurred = Si è verificato un errore
|
||||
|
||||
# internal::detect
|
||||
sudo-prompt-failed = Errore nella richiesta di sudo
|
||||
scanning-pacnew-files = Ricerca di file pacnew
|
||||
no-pacnew-found = Nessun file .pacnew trovato
|
||||
pacnew-found = file pacnew trovati
|
||||
pacnew-warning =
|
||||
Uno o più programmi installati / aggiornati hanno installato un file di configurazione .pacnew.
|
||||
I file .pacnew vengono creati quando la configurazione di un programma è stata modificata e non è possibile unire automaticamente il file di configurazione aggiornato.
|
||||
Puoi gestire questi file con
|
||||
run-pacdiff-now = Eseguire pacdiff adesso?
|
||||
pacdiff-warning =
|
||||
Pacdiff usa vimdiff di default per modificare e unire i file. Puoi focalizzare i pannelli puntandoli e con un click sinistro e scorrere con la rotella del mouse (o le frecce). Per uscire da vimdiff, usare la seguente combinazione di tasti: ESC, :qa!, INVIO
|
||||
Puoi disattivare questo avviso impostando `pacdiff_warn` a "false" in ~/.config/ame/config.toml
|
||||
|
||||
# internal::config
|
||||
config-docs = # Visitare https://getcryst.al/docs/amethyst/config Per ulteriori informazioni sulla configurazione di amethyst
|
||||
|
||||
# internal::paging
|
||||
quit = esci
|
||||
search = cerca
|
||||
next-result = risultato successivo
|
||||
previous-result = risultato precedente
|
||||
|
||||
# --help
|
||||
verbose = Mostra più informazioni
|
||||
no-confirm = Completa l'operazione senza chiedere conferme
|
||||
quiet = Mostra meno informazioni (solo per clean, upgrade e install)
|
||||
sudoloop = Mantiene sudo in esecuzione per evitare che scada durante lunghe compilazioni
|
||||
cachedir = Imposta un percorso di clonazione e compilazione AUR alternativo per l'operazione specificata
|
||||
install = Installa o cerca un pacchetto in AUR o nei repository di Pacman
|
||||
remove = Rimuove un pacchetto installato
|
||||
search = Cerca in AUR e nei repository pacchetti che corrispondono a un termine di ricerca [alias: -Ss]
|
||||
query = Elenca i pacchetti installati
|
||||
upgrade = Aggiorna i pacchetti installati alla versione più recente (predefinito)
|
||||
gencomp = Genera completamenti per le shell supportate (bash, fish, elvish, pwsh)
|
||||
clean = Rimuove tutti i pacchetti orfani
|
||||
diff = Esegue pacdiff
|
||||
install-packages = Il nome dei pacchetti da installare o cercare
|
||||
install-aur = Opera solo sui pacchetti AUR
|
||||
install-repo = Opera solo sui pacchetti repository
|
||||
install-search = Cerca pacchetti che corrispondono a un termine di ricerca anziché installarli
|
||||
install-by = Cerca in base a un campo specifico
|
||||
remove-packages = Il nome dei pacchetti da rimuovere
|
||||
query-aur = Elenca i pacchetti AUR [-Qa, -Qm]
|
||||
query-repo = Elenca i pacchetti repository [-Qr, -Qn]
|
||||
query-info = Ottieni informazioni su un pacchetto
|
||||
upgrade-repo = Aggiorna solo i pacchetti repository
|
||||
upgrade-aur = Aggiorna solo i pacchetti aur
|
||||
gencomp-shell = La shell per cui generare i completamenti (bash, fish, elvish, pwsh, fig)
|
@ -0,0 +1,135 @@
|
||||
installed = zainstalowano
|
||||
# operations::uninstall
|
||||
failed-remove-pkgs = Nie udało się usunąć pakietów
|
||||
# operations::upgrade
|
||||
failed-upgrade-repo-pkgs = Nie udało się zaktualizować pakietów z repozytoriów
|
||||
success-upgrade-repo-pkgs = Pomyślnie zaktualizowano pakiety z repozytoriów
|
||||
couldnt-find-remote-pkg = Nie można znaleźć pakietu zdalnego dla { $pkg }
|
||||
no-upgrades-aur-package = Brak dostępnych aktualizacji dla zainstalowanych pakietów AUR
|
||||
scanning-for-pacnew = Skanowanie w poszukiwaniu plików .pacnew po aktualizacji
|
||||
# logging::output
|
||||
repo-dependencies = Zależności repozytorium
|
||||
aur-dependencies = Zależności AUR
|
||||
repo-make-dependencies = Zależności do kompilowania pakietów z repozytoriów
|
||||
missing-deps = Brakujące zależności
|
||||
continue = Kontynuować?
|
||||
# main
|
||||
run-as-root = Uruchamianie Amethyst jako root jest niedozwolone, ponieważ może prowadzić do awarii systemu. Zamiast tego Amethyst wyświetli komunikat, gdy będzie potrzebować uprawnień administratora.
|
||||
following-packages = Następujące pakiety zostały znalezione w AUR:
|
||||
are-you-sure = Jesteś pewien że chcesz kontynuować?
|
||||
uninstalling-packages = Odinstalowywanie następujących pakietów: { $packages }
|
||||
system-upgrade = Aktualizowanie wszystkich zainstalowanych pakietów
|
||||
removing-orphans = Usuwanie niepotrzebnych pakietów
|
||||
couldnt-find-packages = Nie odnaleziono : { $packages } w repozytoriach lub AUR
|
||||
searching-repos = Szukanie { $query } w repozytoriach
|
||||
searching-aur = Szukanie { $query } w AUR
|
||||
results = Wyniki:
|
||||
no-results = Niczego nie znaleziono
|
||||
installed-aur-packages = Zainstalowane pakiety AUR:
|
||||
installed-repo-packages = Zainstalowane pakiety z repozytoriów:
|
||||
installed-packages = Zainstalowane pakiety:
|
||||
# operations::clean
|
||||
no-orphans = Nie znaleziono niepotrzebnych pakietów
|
||||
failed-remove-orphans = Nie udało się usunąć niepotrzebnych pakietów
|
||||
removing-orphans-would =
|
||||
Usuwanie niepotrzebnych pakietów usunie:
|
||||
{ $packages }
|
||||
clear-pacman-cache = Wyczyścić także pamięć podręczną pakietów Pacmana?
|
||||
success-clear-cache = Pomyślnie wyczyszczono pamięć podręczną pakietów
|
||||
success-remove-orphans = Pomyślnie usunięto niepotrzebne pakiety
|
||||
error-install = Wystąpił błąd podczas instalacji pakietów: { $error }, przerywanie
|
||||
failed-clear-cache = Nie udało się wyczyścić pamięci podręcznej pakietów, { $error }
|
||||
version = wersja
|
||||
votes = głosy
|
||||
capital-installed = Zainstalowane
|
||||
aur-make-dependencies = Zależności do kompilowania pakietów AUR
|
||||
aur-warning = AUR jest źródłem pakietów/skryptów przesłanych przez użytkowników i nie zawsze jest bezpieczny w użyciu.
|
||||
clear-pkgbuild-cache = Wyczyścić wewnętrzną pamięć podręczną PKGBUILD?
|
||||
# operations::install
|
||||
installing-packages-from-repos = Instalowanie { $packages } z repozytoriów
|
||||
zsh-error = Uzupełnienia powłoki Zsh są obecnie nieobsługiwane z powodu błędu w clap_completion
|
||||
build-failed = Błąd podczas kompilacji!
|
||||
do-you-still-want-to-install = Na pewno chcesz zainstalować te pakiety?
|
||||
# operations::aur_install::make_dependency_removal
|
||||
remove-installed-make-deps = Chcesz odinstalować zależności potrzebne do kompilacji?
|
||||
invalid-shell = Nieprawidłowa powłoka, { $shell }
|
||||
# operations::aur_install::aur_fetch
|
||||
fetching-pkg-info = Pobieranie informacji o pakiecie
|
||||
couldnt-find-all-pkgs = Nie odnaleziono wszystkich pakietów
|
||||
all-pkgs-found = Odnaleziono wszystkie pakiety
|
||||
some-pkgs-already-installed = Niektóre pakiety są już zainstalowane, kontynuować?
|
||||
do-you-want-to-install = Chcesz zainstalować te pakiety i ich zależności?
|
||||
# operations::aur_install::common
|
||||
downloading-sources = Pobieranie źródeł
|
||||
pulling-latest-changes = Pobieranie najnowszych zmian
|
||||
cloning-aur-repo = Pobieranie pakiety z AUR
|
||||
down-and-ext-files = Pobieranie i rozpakowywanie plików
|
||||
downloaded = Pobrano!
|
||||
dependency-cycle = Wykryto problem z zależnościami. Przerywanie instalacji.
|
||||
building-packages = Kompilowanie pakietów
|
||||
built = Skompilowano
|
||||
installing-packages = Instalowanie pakietów
|
||||
building-package = Kompilowanie pakietów
|
||||
couldnt-find-pkg-produced = Nie odnaleziono pakietu { $pkg } w zbudowanych pakietach
|
||||
review-build-log = Czy chcesz zobaczyć wynik kompilacji?
|
||||
# operations::aur_install::aur_download
|
||||
all-sources-ready = Wszystkie źródła są gotowe.
|
||||
# interact::theme
|
||||
no-selections = Nic nie zaznaczono
|
||||
# operations::aur_install::repo_dependency_installation
|
||||
installing-repo-deps = Instalowanie zależności repozytorium
|
||||
# operations::aur_install::aur_dependency_installation
|
||||
installing-from-aur = Instalowanie { $amountOfPkgs } z AUR
|
||||
done = Gotowe!
|
||||
failed-to-build = Kompilacja się nie powiodła
|
||||
unknown-error = Nieznany błąd
|
||||
# internal::error
|
||||
non-zero-exit = Przerwano z kodem innym niż 0
|
||||
build-error = Kompilacja paczki nie powiodła się
|
||||
user-cancel = Przerwano przez użytkownika
|
||||
error-occurred = Wystąpił problem
|
||||
no-pacnew-found = Nie odnaleziono plików .pacnew
|
||||
pacnew-found = Odnaleziono pliki .pacnew
|
||||
pacnew-warning =
|
||||
Wygląda na to, że co najmniej jeden zainstalowany/zaktualizowany program zainstalował plik konfiguracyjny .pacnew.
|
||||
Są one tworzone, gdy zmodyfikowałeś konfigurację programu, a aktualizacja pakietu nie mogła automatycznie scalić nowego pliku.
|
||||
Możesz poradzić sobie z tymi plikami, uruchamiając
|
||||
# internal::config
|
||||
config-docs = # Po więcej informacji na temat konfiguracji Amethystu zobacz https://getcryst.al/docs/amethyst/config
|
||||
# internal::paging
|
||||
quit = wyjdź
|
||||
search = wyszukaj
|
||||
next-result = następny wynik
|
||||
previous-result = poprzedni wynik
|
||||
# --help
|
||||
verbose = Ustawia poziom czegośtam
|
||||
no-confirm = coś bez aktywności użytkownika
|
||||
quiet = Spraw, aby niektóre polecenia miały mniejszą wydajność (tylko clean, upgrade i install są obsługiwane)
|
||||
install = Instaluje lub wyszukuje pakiet w AUR lub repozytoriach zdefiniowanych przez Pacmana
|
||||
remove = Usuwa zainstalowany pakiet
|
||||
query = Wyszukuje wśród zainstalowanych pakietów
|
||||
scanning-pacnew-files = Wyszukiwanie plików .pacnew
|
||||
upgrade = Uaktualnia lokalnie zainstalowane pakiety do ich najnowszych wersji (domyślnie)
|
||||
gencomp = Generuje uzupełnienia powłoki dla obsługiwanych powłok (bash, fish, elvish, pwsh)
|
||||
clean = Usuwa wszystkie niepotrzebne pakiety
|
||||
install-packages = Nazwa pakietu(ów) do zainstalowania lub wyszukania
|
||||
install-aur = Działaj tylko na pakietach AUR
|
||||
install-repo = Działaj tylko na pakietach z repozytoriów
|
||||
remove-packages = Nazwy pakietu(ów) do usunięcia
|
||||
query-aur = Wyświetla listę pakietów z AUR lub nieznanych źródeł [-Qa, -Qm]
|
||||
query-repo = Wyświetla listę pakietów z repozytoriów [-Qa, -Qm]
|
||||
query-info = Wyświetl informacje na temat danej paczki
|
||||
upgrade-repo = Aktualizuje tylko natywne/pakiety z repozytoriów
|
||||
query-owns = Uzyskaj informacje o tym, który pakiet posiada plik
|
||||
description = Szybki i wydajny pomocnik AUR
|
||||
# operations::search
|
||||
out-of-date = nieaktualny: od
|
||||
# used across files
|
||||
exiting = Opuszczanie
|
||||
packages =
|
||||
{ $pkgNum ->
|
||||
[one] pakiet
|
||||
*[other] pakietów
|
||||
}
|
||||
upgrade-aur = Aktualizuje pakiety tylko z AUR
|
||||
gencomp-shell = Powłoka do wygenerowania uzupełnień (bash, fish, elvish, pwsh, fig)
|
@ -0,0 +1,164 @@
|
||||
continue = Continuar?
|
||||
following-packages = Os seguintes pacotes foram encontrados no AUR:
|
||||
removing-orphans = Removendo pacotes órfãos
|
||||
success-remove-orphans = Pacotes órfãos removidos com sucesso
|
||||
clear-pacman-cache = Também gostaria de limpar o cache de pacotes do Pacman?
|
||||
are-you-sure = Tem certeza que deseja continuar?
|
||||
no-results = Sem resultados encontrados
|
||||
results = Resultados:
|
||||
searching-aur = Buscando { $query } no AUR
|
||||
searching-repos = Buscando { $query } nos repositórios
|
||||
installed-packages = Pacotes Instalados:
|
||||
system-upgrade = Executando atualização do sistema
|
||||
couldnt-find-packages = Não foi possível encontrar os pacotes: { $packages } nos repositórios ou no AUR
|
||||
invalid-shell = Shell inválido, { $shell }
|
||||
# operations::clean
|
||||
no-orphans = Nenhum pacote orfão encontrado
|
||||
failed-remove-orphans = Falha ao remover pacotes órfãos
|
||||
clear-pkgbuild-cache = Limpar o cache interno PKGBUILD do Amethyst?
|
||||
failed-clear-cache = Falha ao limpar o cache de pacote, { $error }
|
||||
installed = instalado
|
||||
# operations::uninstall
|
||||
failed-remove-pkgs = Falha ao remover pacotes
|
||||
# operations::upgrade
|
||||
failed-upgrade-repo-pkgs = Falha ao atualizar os repositórios
|
||||
# main
|
||||
run-as-root = Executar Amethyst como root não é permitido pois pode acarretar em falhas no sistema. Ao invés disso, Amethyst irá pedir quando necessitar de permissões de superusuário.
|
||||
# used across files
|
||||
exiting = Saindo
|
||||
missing-deps = Dependências faltando
|
||||
uninstalling-packages = Desinstalando pacotes: { $packages }
|
||||
installed-repo-packages = Pacotes Repo instalados:
|
||||
installed-aur-packages = Pacotes instalados do AUR:
|
||||
zsh-error = Completações do shell Zsh não é suportada atualmente devido a um bug no clap_completion
|
||||
removing-orphans-would =
|
||||
Remover pacotes órfãos removerá os seguintes pacotes:
|
||||
{ $packages }
|
||||
success-clear-cache = Cache de pacotes limpo com sucesso
|
||||
# operations::install
|
||||
installing-packages-from-repos = Instalado pacotes { $packages } dos repositórios
|
||||
error-install = Um erro ocorreu ao instalador pacotes: { $error }, encerrando
|
||||
# operations::search
|
||||
out-of-date = desatualizado: desde
|
||||
success-upgrade-repo-pkgs = Pacotes do repositório atualizados com sucesso
|
||||
couldnt-find-remote-pkg = Não foi possível encontrar pacote remoto para { $pkg }
|
||||
no-upgrades-aur-package = Não há atualizações para os pacotes do AUR instalados
|
||||
packages =
|
||||
{ $pkgNum ->
|
||||
[one] pacote
|
||||
*[other] pacotes
|
||||
}
|
||||
scanning-for-pacnew = Escaneando para novos arquivos .pacnew após atualização
|
||||
# logging::output
|
||||
repo-dependencies = Dependências de repositório
|
||||
aur-dependencies = Dependências do AUR
|
||||
repo-make-dependencies = Dependências make do repositório
|
||||
aur-make-dependencies = Dependências make do AUR
|
||||
repo-check-dependencies = Conferindo dependências dos repositórios
|
||||
aur-check-dependencies = Conferindo dependências do AUR
|
||||
version = versão
|
||||
votes = votos
|
||||
# operations::aur_install::aur_fetch
|
||||
fetching-pkg-info = Obtendo informações do pacote
|
||||
couldnt-find-all-pkgs = Não foi possível encontrar todos os pacotes
|
||||
all-pkgs-found = Todos os pacotes encontrados
|
||||
do-you-want-to-install = Você quer instalar estes pacotes e suas dependências?
|
||||
# operations::aur_install::common
|
||||
downloading-sources = Baixando fontes
|
||||
pulling-latest-changes = Obtendo mudanças recentes
|
||||
cloning-aur-repo = Clonando repositório aur
|
||||
down-and-ext-files = Baixando e extraindo arquivos
|
||||
downloaded = Baixou!
|
||||
building-packages = Construindo pacotes
|
||||
built = Construído
|
||||
installing-packages = Instalando pacotes
|
||||
building-package = Construindo Pacote
|
||||
build-failed = Construção falhou!
|
||||
review-build-log = Deseja revisar o log de construção?
|
||||
# operations::aur_install::aur_review
|
||||
select-pkgs-review = Selecione os pacotes para revisar
|
||||
do-you-still-want-to-install = Ainda deseja instalar estes pacotes?
|
||||
reviewing = Revisando
|
||||
select-file-review = Selecione um arquivo para revisar
|
||||
done-reviewing-pkg = Terminou de revisar { $pkg }
|
||||
review = Revisar { $pkg }?
|
||||
# interact::theme
|
||||
no-selections = Não há seleções
|
||||
# operations::aur_install::repo_dependency_installation
|
||||
installing-repo-deps = Instalando dependências do repositório
|
||||
# operations::aur_install::aur_dependency_installation
|
||||
installing-from-aur = Instalando { $amountOfPkgs } do AUR
|
||||
done = Terminou!
|
||||
# operations::aur_install
|
||||
aur-rpc-crash = AUR RPC Call falhou: { $error }
|
||||
failed-to-build = Falha ao construir
|
||||
makepkg-failed = makepkg falhou
|
||||
unknown-error = Erro desconhecido
|
||||
# internal::error
|
||||
non-zero-exit = Encerrado com código de erro non zero
|
||||
build-step-violation = Construção AUR violou passos de construção
|
||||
build-error = Falha ao construir pacote
|
||||
user-cancel = Cancelado pelo usuário
|
||||
makepkg-err = Falha ao executar makepkg
|
||||
error-occurred = Um erro ocorreu
|
||||
# internal::detect
|
||||
sudo-prompt-failed = Pedido de sudo falhou
|
||||
scanning-pacnew-files = Escaneando para pacotes pacnew
|
||||
pacnew-found = Arquivos pacnew encontrados
|
||||
run-pacdiff-now = Deseja executar pacdiff agora?
|
||||
# internal::config
|
||||
config-docs = # Veja https://getcryst.al/docs/amethyst/config para mais informações sobre teclas de configuração
|
||||
# internal::paging
|
||||
quit = sair
|
||||
search-paging = buscar
|
||||
next-result = próximo resultado
|
||||
previous-result = resultado anterior
|
||||
# --help
|
||||
verbose = Define o nível de verbosidade
|
||||
no-confirm = Completa operação sem perguntar ao usuário
|
||||
quiet = Faz com que certos comandos tenham menos saída (somente clean, upgrade, e install são suportados)
|
||||
sudoloop = Repete sudo no background para garantir que ele expire durante construções grandes
|
||||
cachedir = Define um clone personalizado e diretório de construção para a operação especificada
|
||||
install = Instala ou busca por um pacote tanto no AUR quanto nos repositórios definidos pelo Pacman
|
||||
remove = Remove um pacote instalado anteriormente
|
||||
query = Consulta pacotes instalados
|
||||
upgrade = Atualiza pacotes instalados localmente para suas versões mais recentes (Padrão)
|
||||
gencomp = Gera completações para shells suportadas (bash, fish, elvish, pwsh)
|
||||
clean = Remove todos os pacotes órfãos
|
||||
diff = Executa pacdiff
|
||||
install-packages = O nome do(s) pacote(s) para instalar ou buscar
|
||||
install-aur = Opera somente com pacotes AUR
|
||||
install-repo = Opera somente com pacotes do repositório
|
||||
install-search = Busca pacotes para padrão dado invés de instalar
|
||||
install-by = Busca por um campo específico
|
||||
query-aur = Lista pacotes AUR/exteros [-Qa, -Qm]
|
||||
query-repo = Lista pacotes repo/nativos [-Qr, -Qn]
|
||||
query-explicit = Lista pacotes instalados explicitamente [-Qe]
|
||||
aur-warning =
|
||||
O AUR é um fonte de pacotes enviadas por usuários e nem sempre é segura para o uso.
|
||||
Por favor tenha certeza de revisar o PKGBUILD de tudo que baixar do AUR antes de instalar, pois alguns PKGBUILDs podem ser potencialmente maliciosos.
|
||||
Este aviso pode ser alternado no arquivo de configuração.
|
||||
query-info = Obtém informação de um pacote específico
|
||||
query-owns = Obtém informação sobre qual pacote é dono de um arquivo
|
||||
upgrade-repo = Atualiza somente pacotes repo/nativos
|
||||
upgrade-aur = Atualiza somente pacotes AUR
|
||||
description = Um helper AUR rápido e eficiente
|
||||
capital-installed = Instalado
|
||||
some-pkgs-already-installed = Alguns pacotes já estão instados. Continuar mesmo assim?
|
||||
dependency-cycle = Ciclo de dependência detectado. Encerrando instalação.
|
||||
couldnt-find-pkg-produced = Não foi possível encontrar o pacote { $pkg } nos pacotes produzidos
|
||||
# operations::aur_install::aur_download
|
||||
all-sources-ready = Todas as fontes estão prontas.
|
||||
# operations::aur_install::make_dependency_removal
|
||||
remove-installed-make-deps = Deseja remover as dependências make instaladas?
|
||||
no-pacnew-found = Não foram encontrados arquivos .pacnew
|
||||
pacnew-warning =
|
||||
Parece que pelo menos um dos programas que você instalou / atualizou também instalou um arquivo de configuração .pacnew.
|
||||
Esses são criados quando você modificou a configuração do programa e a atualização de pacote não consegue mesclar automaticamente o novo arquivo.
|
||||
Você pode lidar com esses arquivos executando
|
||||
pacdiff-warning =
|
||||
Pacdiff utiliza vimdiff por padrão para editar arquivos para mesclar. Você pode focar os painéis ao passar o mouse sobre eles e pressionando o clique esquerdo, rolar o scroll para cima e para baixo (ou as teclas de seta). Para sair do vimdiff, pressione a combinação de teclas a seguir: ESC, :qa!, ENTER
|
||||
Vocẽ pode suprimir este aviso no futuro mudando a configuração `pacdiff_warn` para "false" em ~/.config/ame/config.toml
|
||||
checkupdates = Consulta por e retorna atualizações disponíveis de pacotes
|
||||
remove-packages = O nome do(s) pacote(s) para remover
|
||||
gencomp-shell = O shell para gerar completações (bash, fish, elvish, pwsh, fig)
|
@ -0,0 +1,166 @@
|
||||
# used across files
|
||||
exiting = Avslutar
|
||||
packages =
|
||||
{ $pkgNum ->
|
||||
[ett] paket
|
||||
*[annat] paket
|
||||
}
|
||||
missing-deps = Saknade beroenden
|
||||
continue = Fortsätt?
|
||||
# main
|
||||
run-as-root = Att köra Amethyst som root är inte tillåtet eftersom det kan leda till att systemet går sönder. Istället, så kommer Amethyst att fråga dig när det behöver superanvändarbehörigheter.
|
||||
following-packages = Följande paket hittades i AUR:
|
||||
aur-warning =
|
||||
AUR är en källa för användaruppladdade paket/skript och är inte alltid säkert att använda.
|
||||
Se till att granska PKGBUILDs för allt du laddar ner från AUR innan du installerar det, eftersom vissa PKGBUILDs kan vara skadliga.
|
||||
Denna varning kan växlas till av/på i konfigurationsfilen.
|
||||
are-you-sure = Är du säker att du vill fortsätta?
|
||||
uninstalling-packages = Avinstallerar paket: { $packages }
|
||||
system-upgrade = Utför systemuppgradering
|
||||
removing-orphans = Ta bort föräldralösa paket
|
||||
couldnt-find-packages = Kunde inte hitta paket: { $packages } i förråd eller på AUR
|
||||
searching-repos = Söker förråd efter { $query }
|
||||
searching-aur = Söker AUR efter { $query }
|
||||
no-results = Inga resultat funna
|
||||
results = Resultat:
|
||||
installed-repo-packages = Installerade paket från förråd:
|
||||
installed-aur-packages = Installerade AUR paket:
|
||||
installed-packages = Installerade paket:
|
||||
invalid-shell = Ogiltigt skal, { $shell }
|
||||
zsh-error = Zsh-skalkompletteringar stöds för närvarande inte på grund av en bugg i clap_completion-lådan
|
||||
# operations::clean
|
||||
no-orphans = Inga föräldralösa paket hittades
|
||||
removing-orphans-would =
|
||||
Att ta bort föräldralösa paket skulle avinstallera följande paket:
|
||||
{ $packages }
|
||||
failed-remove-orphans = Det gick inte att ta bort föräldralösa paket
|
||||
success-remove-orphans = Föräldralösa paket har tagits bort
|
||||
clear-pkgbuild-cache = Rensa Amethysts interna PKGBUILD-cache?
|
||||
clear-pacman-cache = Rensa också Pacmans paketcache?
|
||||
failed-clear-cache = Misslyckades med att rensa paketcache, { $error }
|
||||
success-clear-cache = Framgångsrikt rensade paketcache
|
||||
# operations::install
|
||||
installing-packages-from-repos = Installerar paket { $packages } från förråd
|
||||
error-install = Ett fel inträffade när paket installerades: { $error }, avbryter
|
||||
# operations::search
|
||||
out-of-date = inaktuell: sedan
|
||||
installed = installerades
|
||||
# operations::uninstall
|
||||
failed-remove-pkgs = Misslyckades att ta bort paket
|
||||
# operations::upgrade
|
||||
failed-upgrade-repo-pkgs = Misslyckades att uppdatera förråd paket
|
||||
success-upgrade-repo-pkgs = Lyckades att uppgradera förråd paket
|
||||
couldnt-find-remote-pkg = Kunde inte hitta fjärrpaket för { $pkg }
|
||||
no-upgrades-aur-package = Inga uppgraderingar tillgängliga för installerade AUR-paket
|
||||
scanning-for-pacnew = Söker efter .pacnew-filer efter uppgradering
|
||||
# logging::output
|
||||
repo-dependencies = Förråd beroenden
|
||||
aur-dependencies = AUR beroenden
|
||||
repo-make-dependencies = Förråd byggberoenden
|
||||
aur-make-dependencies = AUR byggberoenden
|
||||
version = version
|
||||
votes = röster
|
||||
capital-installed = Installerad
|
||||
# operations::aur_install::aur_fetch
|
||||
fetching-pkg-info = Hämtar paketinformation
|
||||
couldnt-find-all-pkgs = Kunde inte hitta alla paket
|
||||
all-pkgs-found = Alla paket hittades
|
||||
some-pkgs-already-installed = Vissa paket är redan installerade. Fortsätt ändå?
|
||||
do-you-want-to-install = Vill du installera dessa paket och paketberoenden?
|
||||
# operations::aur_install::common
|
||||
downloading-sources = Laddar ner källkod
|
||||
pulling-latest-changes = Hämtar de senaste ändringarna
|
||||
cloning-aur-repo = Klonar aur förråd
|
||||
down-and-ext-files = Laddar ner och extraherar filer
|
||||
downloaded = Nedladdat!
|
||||
dependency-cycle = Beroendecykel upptäckt. Avbryter installationen.
|
||||
building-packages = Bygger paket
|
||||
built = Byggd
|
||||
installing-packages = Installerar paket
|
||||
building-package = Bygger paket
|
||||
build-failed = Bygget misslyckades!
|
||||
couldnt-find-pkg-produced = Det gick inte att hitta paketet { $pkg } i producerade paket
|
||||
review-build-log = Vill du granska byggloggen?
|
||||
# operations::aur_install::aur_review
|
||||
select-pkgs-review = Valda paket att granska
|
||||
do-you-still-want-to-install = Vill du fortfarande installera dessa paket?
|
||||
reviewing = Granskar
|
||||
select-file-review = Välj en fil att granska
|
||||
done-reviewing-pkg = Klar med granskning { $pkg }
|
||||
review = Granska { $pkg }?
|
||||
# operations::aur_install::aur_download
|
||||
all-sources-ready = Alla källor är redo.
|
||||
# interact::theme
|
||||
no-selections = Inga val
|
||||
# operations::aur_install::repo_dependency_installation
|
||||
installing-repo-deps = Installerar förråd beroenden
|
||||
# operations::aur_install::aur_dependency_installation
|
||||
installing-from-aur = Installerar { $amountOfPkgs } från AUR
|
||||
# operations::aur_install::make_dependency_removal
|
||||
remove-installed-make-deps = Vill du ta bort de installerade byggberoendena?
|
||||
done = Klart!
|
||||
# operations::aur_install
|
||||
aur-rpc-crash = AUR RPC-anrop misslyckades med: { $error }
|
||||
failed-to-build = Misslyckades att bygga
|
||||
makepkg-failed = makepkg misslyckades
|
||||
unknown-error = Okänt fel
|
||||
# internal::error
|
||||
non-zero-exit = Avslutade med annan kod än noll
|
||||
build-step-violation = AUR-bygget bröt mot byggstegen
|
||||
build-error = Misslyckades att bygga paket
|
||||
user-cancel = Avbruten av användaren
|
||||
makepkg-err = Misslyckades att köra makepkg
|
||||
error-occurred = Ett fel inträffade
|
||||
# internal::detect
|
||||
sudo-prompt-failed = Sudo prompt misslyckades
|
||||
scanning-pacnew-files = Letar efter nya pacnew filer
|
||||
no-pacnew-found = Inga .pacnew filer hittades
|
||||
pacnew-found = pacnew filer hittades
|
||||
pacnew-warning =
|
||||
Det verkar som om minst ett program du har installerat/uppgraderat har installerat en .pacnew-konfigurationsfil.
|
||||
Dessa skapas när du har ändrat ett programs konfiguration, och en paketuppgradering kunde inte automatiskt slå samman den nya filen.
|
||||
Du kan hantera dessa filer genom att köra
|
||||
run-pacdiff-now = Vill du köra pacdiff nu?
|
||||
pacdiff-warning =
|
||||
Pacdiff använder vimdiff som standard för att redigera filer för sammanslagning. Du kan fokusera paneler genom att föra musen över dem och trycka på vänsterklick, och rulla upp och ner med musens rullningshjul (eller piltangenterna). För att avsluta vimdiff, tryck på följande tangentkombination: ESC, :qa!, ENTER
|
||||
Du kan få tyst på denna varning i framtiden genom att ställa in `pacdiff_warn` till "false" i ~/.config/ame/config.toml
|
||||
# internal::config
|
||||
config-docs = # Se https://getcryst.al/docs/amethyst/config för mer information om konfigurationsnycklar
|
||||
# internal::paging
|
||||
quit = avsluta
|
||||
search = sök
|
||||
next-result = nästa resultat
|
||||
previous-result = föregående resultat
|
||||
# --help
|
||||
verbose = Ställer in graden av detaljerad information
|
||||
no-confirm = Slutför operationen utan att uppmana användaren
|
||||
quiet = Gör att vissa kommandon får mindre utdata (endast rensa, uppgradera och installera stöds)
|
||||
sudoloop = Slingar sudo i bakgrunden för att säkerställa att det inte tar timeout under långa byggen
|
||||
cachedir = Ställer in en anpassad AUR-klon och byggkatalog för den angivna operationen
|
||||
install = Installerar eller söker efter ett paket i antingen AUR eller Pacman-definierade förråd
|
||||
remove = Tar bort ett tidigare installerat paket
|
||||
search = Söker efter paket som matchar ett angett mönster i AUR/repos [alias: -Ss]
|
||||
query = Söker efter installerade paket
|
||||
upgrade = Uppgraderar lokalt installerade paket till deras senaste versioner (standard)
|
||||
gencomp = Genererar skalkompletteringar för skal som stöds (bash, fish, elvish, pwsh)
|
||||
clean = Tar bort alla föräldralösa paket
|
||||
diff = Kör pacdiff
|
||||
install-packages = Namnet på paketet/paketen som ska installeras eller sökas efter
|
||||
install-aur = Operera endast på AUR-paket
|
||||
install-repo = Operera endast på förrådpaket
|
||||
install-search = Sök paket efter ett givet mönster istället för att installera
|
||||
install-by = Söker efter ett specifikt fält
|
||||
remove-packages = Namnet på paketet/paketen som ska tas bort
|
||||
query-aur = Listar AUR/främmande paket [-Qa, -Qm]
|
||||
query-repo = Listar förråd/infödda paket [-Qr, -Qn]
|
||||
query-info = Få information om ett specifikt paket
|
||||
upgrade-repo = Uppgraderar endast förråd/infödda-paket
|
||||
upgrade-aur = Uppgraderar endast från AUR
|
||||
gencomp-shell = Skal att generera kompletteringar för (bash, fish, elvish, pwsh, fig)
|
||||
repo-check-dependencies = Repokontroll beroenden
|
||||
aur-check-dependencies = AUR kontroll beroenden
|
||||
query-owns = Få information om vilket paket som äger en fil
|
||||
description = En snabb och effektiv AUR hjälpare
|
||||
search-paging = sök
|
||||
checkupdates = Söker efter och returnerar tillgängliga paketuppdateringar
|
||||
query-explicit = Listar uttryckligen installerade paket [-Qe]
|
Binary file not shown.
After Width: | Height: | Size: 68 KiB |
@ -0,0 +1,75 @@
|
||||
use std::fmt::Debug;
|
||||
|
||||
use crate::internal::exit_code::AppExitCode;
|
||||
use crate::{fl, fl_crash};
|
||||
use thiserror::Error;
|
||||
|
||||
pub type AppResult<T> = Result<T, AppError>;
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
#[allow(clippy::module_name_repetitions)]
|
||||
pub enum AppError {
|
||||
#[error("IoError: {0}")]
|
||||
Io(#[from] std::io::Error),
|
||||
|
||||
#[error("AUR RPC call failed {0}")]
|
||||
Rpc(#[from] aur_rpc::error::RPCError),
|
||||
|
||||
#[error("{}", fl!("build-step-violation"))]
|
||||
BuildStepViolation,
|
||||
|
||||
#[error("{} {pkg_name}", fl!("build-error"))]
|
||||
BuildError { pkg_name: String },
|
||||
|
||||
#[error("{}", fl!("user-cancel"))]
|
||||
UserCancellation,
|
||||
|
||||
#[error("{} {}",fl!("missing-deps"), _0.join(", ") )]
|
||||
MissingDependencies(Vec<String>),
|
||||
|
||||
#[error("{} {0}", fl!("makepkg-err"))]
|
||||
MakePkg(String),
|
||||
|
||||
#[error(transparent)]
|
||||
MinusError(#[from] minus::MinusError),
|
||||
|
||||
#[error(transparent)]
|
||||
FmtError(#[from] std::fmt::Error),
|
||||
|
||||
#[error(transparent)]
|
||||
AlpmError(#[from] crate::internal::alpm::Error),
|
||||
|
||||
#[error("{}", fl!("non-zero-exit"))]
|
||||
NonZeroExit,
|
||||
|
||||
#[error("{0}")]
|
||||
Other(String),
|
||||
}
|
||||
|
||||
impl From<String> for AppError {
|
||||
fn from(string: String) -> Self {
|
||||
Self::Other(string)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<&str> for AppError {
|
||||
fn from(string: &str) -> Self {
|
||||
Self::from(string.to_string())
|
||||
}
|
||||
}
|
||||
|
||||
pub trait SilentUnwrap<T> {
|
||||
fn silent_unwrap(self, error_code: AppExitCode) -> T;
|
||||
}
|
||||
|
||||
impl<T> SilentUnwrap<T> for AppResult<T> {
|
||||
fn silent_unwrap(self, exit_code: AppExitCode) -> T {
|
||||
match self {
|
||||
Ok(val) => val,
|
||||
Err(e) => {
|
||||
tracing::debug!("{e}");
|
||||
fl_crash!(exit_code, "error-occurred")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,106 +0,0 @@
|
||||
use std::error::Error;
|
||||
use std::fmt::{Debug, Display, Formatter};
|
||||
use std::io;
|
||||
|
||||
use crate::crash;
|
||||
use crate::internal::exit_code::AppExitCode;
|
||||
|
||||
pub type AppResult<T> = Result<T, AppError>;
|
||||
|
||||
#[derive(Debug)]
|
||||
#[allow(clippy::module_name_repetitions)]
|
||||
pub enum AppError {
|
||||
Io(std::io::Error),
|
||||
Other(String),
|
||||
Rpc(aur_rpc::error::RPCError),
|
||||
NonZeroExit,
|
||||
BuildStepViolation,
|
||||
BuildError { pkg_name: String },
|
||||
UserCancellation,
|
||||
MissingDependencies(Vec<String>),
|
||||
MakePkg(String),
|
||||
MinusError(minus::MinusError),
|
||||
FmtError(std::fmt::Error),
|
||||
AlpmError(crate::internal::alpm::Error),
|
||||
}
|
||||
|
||||
impl Display for AppError {
|
||||
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
|
||||
match self {
|
||||
AppError::Io(io) => Display::fmt(io, f),
|
||||
AppError::Rpc(e) => Display::fmt(e, f),
|
||||
AppError::Other(s) => Display::fmt(s, f),
|
||||
AppError::NonZeroExit => Display::fmt("exited with non zero code", f),
|
||||
AppError::BuildStepViolation => Display::fmt("AUR build violated build steps", f),
|
||||
AppError::BuildError { pkg_name } => write!(f, "Failed to build package {pkg_name}"),
|
||||
AppError::UserCancellation => write!(f, "Cancelled by user"),
|
||||
AppError::MissingDependencies(deps) => {
|
||||
write!(f, "Missing dependencies {}", deps.join(", "))
|
||||
}
|
||||
AppError::MakePkg(msg) => write!(f, "Failed to run makepkg {msg}"),
|
||||
AppError::MinusError(e) => Display::fmt(e, f),
|
||||
AppError::FmtError(e) => Display::fmt(e, f),
|
||||
AppError::AlpmError(e) => Display::fmt(e, f),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Error for AppError {}
|
||||
|
||||
impl From<io::Error> for AppError {
|
||||
fn from(e: io::Error) -> Self {
|
||||
Self::Io(e)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<aur_rpc::error::RPCError> for AppError {
|
||||
fn from(e: aur_rpc::error::RPCError) -> Self {
|
||||
Self::Rpc(e)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<String> for AppError {
|
||||
fn from(string: String) -> Self {
|
||||
Self::Other(string)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<&str> for AppError {
|
||||
fn from(string: &str) -> Self {
|
||||
Self::from(string.to_string())
|
||||
}
|
||||
}
|
||||
|
||||
impl From<minus::MinusError> for AppError {
|
||||
fn from(e: minus::MinusError) -> Self {
|
||||
Self::MinusError(e)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<std::fmt::Error> for AppError {
|
||||
fn from(e: std::fmt::Error) -> Self {
|
||||
Self::FmtError(e)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<crate::internal::alpm::Error> for AppError {
|
||||
fn from(e: crate::internal::alpm::Error) -> Self {
|
||||
Self::AlpmError(e)
|
||||
}
|
||||
}
|
||||
|
||||
pub trait SilentUnwrap<T> {
|
||||
fn silent_unwrap(self, error_code: AppExitCode) -> T;
|
||||
}
|
||||
|
||||
impl<T> SilentUnwrap<T> for AppResult<T> {
|
||||
fn silent_unwrap(self, exit_code: AppExitCode) -> T {
|
||||
match self {
|
||||
Ok(val) => val,
|
||||
Err(e) => {
|
||||
tracing::debug!("{e}");
|
||||
crash!(exit_code, "An error occurred")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
use std::{
|
||||
collections::VecDeque,
|
||||
path::{Path, PathBuf},
|
||||
};
|
||||
|
||||
use futures::future;
|
||||
use tokio::fs;
|
||||
|
||||
#[tracing::instrument(level = "trace")]
|
||||
pub async fn rmdir_recursive(path: &Path) -> std::io::Result<()> {
|
||||
let mut files: Vec<PathBuf> = Vec::new();
|
||||
let mut folders: Vec<PathBuf> = Vec::new();
|
||||
|
||||
if path.is_dir() {
|
||||
folders.push(path.into());
|
||||
} else {
|
||||
files.push(path.into());
|
||||
}
|
||||
|
||||
let mut folders_to_scan: VecDeque<_> = folders.clone().into();
|
||||
|
||||
while let Some(path) = folders_to_scan.pop_front() {
|
||||
let mut dir_content = fs::read_dir(&path).await?;
|
||||
|
||||
while let Some(entry) = dir_content.next_entry().await? {
|
||||
let entry = entry.path();
|
||||
|
||||
if entry.is_dir() {
|
||||
folders_to_scan.push_back(entry.clone());
|
||||
folders.push(entry);
|
||||
} else {
|
||||
files.push(entry);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tracing::debug!("Deleting {} files", files.len());
|
||||
future::try_join_all(files.into_iter().map(fs::remove_file)).await?;
|
||||
|
||||
tracing::debug!("Deleting {} folders", folders.len());
|
||||
|
||||
folders.reverse();
|
||||
for folder in folders {
|
||||
tracing::trace!("Deleting {folder:?}");
|
||||
fs::remove_dir(folder).await?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
@ -0,0 +1,87 @@
|
||||
use i18n_embed::{
|
||||
fluent::{fluent_language_loader, FluentLanguageLoader},
|
||||
DesktopLanguageRequester,
|
||||
};
|
||||
use lazy_static::lazy_static;
|
||||
use rust_embed::RustEmbed;
|
||||
|
||||
#[derive(RustEmbed)]
|
||||
#[folder = "i18n"]
|
||||
struct Localizations;
|
||||
|
||||
fn read() -> FluentLanguageLoader {
|
||||
let loader: FluentLanguageLoader = fluent_language_loader!();
|
||||
let req_langs = DesktopLanguageRequester::requested_languages();
|
||||
i18n_embed::select(&loader, &Localizations, &req_langs).unwrap();
|
||||
loader
|
||||
}
|
||||
|
||||
lazy_static! {
|
||||
pub static ref LANG_LOADER: FluentLanguageLoader = read();
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! fl {
|
||||
($message_id:literal) => {{
|
||||
i18n_embed_fl::fl!($crate::internal::i18n::LANG_LOADER, $message_id)
|
||||
}};
|
||||
|
||||
($message_id:literal, $($args:expr),*) => {{
|
||||
i18n_embed_fl::fl!($crate::internal::i18n::LANG_LOADER, $message_id, $($args), *)
|
||||
}};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! fl_debug {
|
||||
($message_id:literal) => {
|
||||
tracing::debug!("{}", $crate::fl!($message_id))
|
||||
};
|
||||
|
||||
($message_id:literal, $($arg:tt)*) => {
|
||||
tracing::debug!("{}", $crate::fl!($message_id, $($args)*))
|
||||
};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! fl_trace {
|
||||
($message_id:literal) => {
|
||||
tracing::trace!("{}", $crate::fl!($message_id))
|
||||
};
|
||||
|
||||
($message_id:literal, $($arg:tt)*) => {
|
||||
tracing::trace!("{}", $crate::fl!($message_id, $($args)*))
|
||||
};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! fl_info {
|
||||
($message_id:literal) => {
|
||||
tracing::info!("{}", $crate::fl!($message_id))
|
||||
};
|
||||
|
||||
($message_id:literal, $($arg:tt)*) => {
|
||||
tracing::info!("{}", $crate::fl!($message_id, $($arg)*))
|
||||
};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! fl_warn {
|
||||
($message_id:literal) => {
|
||||
tracing::warn!("{}", $crate::fl!($message_id))
|
||||
};
|
||||
|
||||
($message_id:literal, $($arg:tt)*) => {
|
||||
tracing::warn!("{}", $crate::fl!($message_id, $($arg)*))
|
||||
};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! fl_error {
|
||||
($message_id:literal) => {
|
||||
tracing::error!("{}", $crate::fl!($message_id))
|
||||
};
|
||||
|
||||
($message_id:literal, $($arg:tt)*) => {
|
||||
tracing::error!("{}", $crate::fl!($message_id, $($args)*))
|
||||
};
|
||||
}
|
@ -0,0 +1,124 @@
|
||||
use std::{borrow::Cow, fmt::Display};
|
||||
|
||||
use colored::{ColoredString, Colorize};
|
||||
|
||||
pub struct FmtBuilder<'a> {
|
||||
options: FmtOptions,
|
||||
parts: Vec<Part<'a>>,
|
||||
}
|
||||
|
||||
pub enum Part<'a> {
|
||||
Borrowed(&'a str),
|
||||
Owned(String),
|
||||
Colored(ColoredString),
|
||||
Empty,
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct FmtOptions {
|
||||
pub colored: bool,
|
||||
}
|
||||
|
||||
impl<'a> FmtBuilder<'a> {
|
||||
/// Creates a new builder
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
options: FmtOptions::default(),
|
||||
parts: Vec::new(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn options(&mut self, options: FmtOptions) -> &mut Self {
|
||||
self.options = options;
|
||||
|
||||
self
|
||||
}
|
||||
|
||||
pub fn append<S: Into<Part<'a>>>(&mut self, part: S) -> &mut Self {
|
||||
self.parts.push(part.into());
|
||||
|
||||
self
|
||||
}
|
||||
|
||||
pub fn append_if<F, S>(&mut self, condition: bool, string_fn: F) -> &mut Self
|
||||
where
|
||||
F: Fn() -> S,
|
||||
S: Into<Part<'a>>,
|
||||
{
|
||||
if condition {
|
||||
self.append(string_fn());
|
||||
}
|
||||
self
|
||||
}
|
||||
|
||||
/// Builds a string representation.
|
||||
pub fn build(&self) -> String {
|
||||
let string_parts = self
|
||||
.parts
|
||||
.iter()
|
||||
.filter_map(|c| c.fmt_string(&self.options))
|
||||
.collect::<Vec<_>>();
|
||||
let cap = string_parts.iter().map(|c| c.len()).sum();
|
||||
string_parts
|
||||
.into_iter()
|
||||
.fold(String::with_capacity(cap), |mut acc, e| {
|
||||
acc.push_str(e.as_ref());
|
||||
acc
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Display for FmtBuilder<'a> {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
self.build().fmt(f)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Part<'a> {
|
||||
fn fmt_string(&self, opts: &FmtOptions) -> Option<Cow<'_, str>> {
|
||||
match &self {
|
||||
Part::Borrowed(b) => Some(Cow::Borrowed(b)),
|
||||
Part::Owned(o) => Some(Cow::Borrowed(o)),
|
||||
Part::Colored(c) => Some(Cow::Owned(Self::fmt_colored(c, opts))),
|
||||
Part::Empty => None,
|
||||
}
|
||||
}
|
||||
|
||||
fn fmt_colored(c: &ColoredString, opts: &FmtOptions) -> String {
|
||||
if opts.colored {
|
||||
c.to_string()
|
||||
} else {
|
||||
c.clone().clear().to_string()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> From<String> for Part<'a> {
|
||||
fn from(val: String) -> Self {
|
||||
Part::Owned(val)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> From<&'a str> for Part<'a> {
|
||||
fn from(val: &'a str) -> Self {
|
||||
Part::Borrowed(val)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> From<&'a String> for Part<'a> {
|
||||
fn from(val: &'a String) -> Self {
|
||||
Part::Borrowed(val)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> From<ColoredString> for Part<'a> {
|
||||
fn from(val: ColoredString) -> Self {
|
||||
Part::Colored(val)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, P: Into<Part<'a>>> From<Option<P>> for Part<'a> {
|
||||
fn from(val: Option<P>) -> Self {
|
||||
val.map(P::into).unwrap_or(Part::Empty)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue