diff --git a/DEVELOPING.md b/DEVELOPING.md new file mode 100644 index 0000000..fd7956f --- /dev/null +++ b/DEVELOPING.md @@ -0,0 +1,4 @@ +# Developing + +## i18n +Run `xnutext rhino-pkg **/*.nu -o po/rhino-pkg.pot` after adding new translatable text. diff --git a/Makefile b/Makefile index 696538a..e291a26 100644 --- a/Makefile +++ b/Makefile @@ -4,4 +4,6 @@ all: install install: mapfile -t linguas +USAGE: rhino-pkg [function] {flag} functions: - install: Install package(s) - Prompts user to respond with + install: Install package(s) - Prompts user to respond with the number(s) associated with the desired package(s). - + remove: Uninstall package(s) - Prompts user to respond with the number(s) associated with the desired package(s). - + search: Search for package(s) - Does not have a second prompt. - + update: Updates all packages accessible to the wrapper - does - not accept , instead use install to update + not accept , instead use install to update individual packages. Has a confirmation prompt. cleanup: Attempts to repair broken dependencies and remove any - unused packages. Does not accept , but has + unused packages. Does not accept , but has a confirmation prompt. -flags: +flags: --help/-h: Display this page - - --description/-d: By default, rhino-pkg will only display packages - that contain within their name. Use this flag to increase + + --description/-d: By default, rhino-pkg will only display packages + that contain within their name. Use this flag to increase range and display packages with in their description. -y: Makes functions with confirmation prompts run promptless. - -input: + +input: Provide a package name or description. Example execution: diff --git a/docs/adding_new_plug.md b/docs/adding_new_plug.md new file mode 100644 index 0000000..21d0a2c --- /dev/null +++ b/docs/adding_new_plug.md @@ -0,0 +1,5 @@ +# Adding new package manager plug + +1. Add a color to `modules/lib/cmd.nu`. +2. Add an entry to `modules/pluggables/mod.nu`. +2. Copy one of the files from `modules/pluggables/` and add it. diff --git a/modules/lib/cmd.nu b/modules/lib/cmd.nu new file mode 100644 index 0000000..523673d --- /dev/null +++ b/modules/lib/cmd.nu @@ -0,0 +1,135 @@ +export def exists [cmd: string] : nothing -> bool { + ((which $cmd | length) > 0) +} + +# Return color based off of package manager +export def print-color [type: string] { + match $type { + "pacstall" => (ansi yellow_bold) + "apt" => (ansi green_bold) + "flatpak" => (ansi cyan_bold) + "snap" => (ansi red_bold) + _ => (ansi grey_bold) + } +} + +export def prompt [ask: string, pkgs: list] : nothing -> table { + let input = (input $"($ask) [0-(($pkgs | length) - 1)]: ") + if ($input | is-empty) { + [] + } else { + let parsed = ($input + | split row ' ' + | find --regex "[0-9]+" --regex "^[0-9]+" + | into int + | filter {|key| $key in 0..<($pkgs | length)} + ) + if ($parsed | is-empty) { + tprint -e "No valid inputs given" + exit 1 + } + $pkgs + | enumerate + | where index in $parsed + | flatten + } +} + +export def install-pkg [ + pkg: record, + promptless: bool + ] { + match $pkg.provider { + "pacstall" => { + if $promptless { + ^pacstall -PI $"($pkg.pkg)@($pkg.repo)" + } else { + ^pacstall -I $"($pkg.pkg)@($pkg.repo)" + } + } + "apt" => { + if $promptless { + ^sudo apt-get install $pkg.pkg -y + } else { + ^sudo apt-get install $pkg.pkg + } + } + "flatpak" => { + if $promptless { + ^flatpak install $pkg.remote $pkg.pkg -y + } else { + ^flatpak install $pkg.remote $pkg.pkg + } + } + # So snap is weird because some packages need classic installation + # ref: [https://github.com/rhino-linux/rhino-pkg/issues/46]. + # But on the plus side it doesn't have the ability for -y. + "snap" => { + if ($pkg.Notes == "classic") { + ^sudo snap install --classic $pkg.pkg + } else { + ^sudo snap install $pkg.pkg + } + } + } +} + +export def remove-pkg [ + pkg: record, + promptless: bool + ] { + match $pkg.provider { + "pacstall" => { + if $promptless { + ^pacstall -PR $pkg.pkg + } else { + ^pacstall -R $pkg.pkg + } + } + "apt" => { + if $promptless { + ^sudo apt-get remove $pkg.pkg -y + } else { + ^sudo apt-get remove $pkg.pkg + } + } + "flatpak" => { + if $promptless { + ^flatpak remove $pkg.pkg -y + } else { + ^flatpak remove $pkg.pkg + } + } + "snap" => { + ^sudo snap remove $pkg.pkg --purge + } + } +} + +export def cleanup-pkg [promptless: bool] { + if $promptless { + if (exists "apt") { + ^sudo apt-get --fix-broken install + ^sudo apt-get autoremove -y + } + if (exists "flatpak") { + ^sudo flatpak repair + ^sudo flatpak uninstall --unused -y + } + } else { + if (exists "apt") { + ^sudo apt-get --fix-broken install + ^sudo apt-get autoremove + } + if (exists "flatpak") { + ^sudo flatpak repair + ^sudo flatpak uninstall --unused + } + } + if (exists "snap") { + ^snap list --all + | detect columns + | where Notes =~ "disabled" + | each {|pkg| ^sudo snap remove $pkg.Name --revision=($pkg.Version)} + } +} diff --git a/modules/lib/mod.nu b/modules/lib/mod.nu new file mode 100644 index 0000000..1a57a71 --- /dev/null +++ b/modules/lib/mod.nu @@ -0,0 +1,3 @@ +export module screen.nu +export module cmd.nu +export module search.nu diff --git a/modules/lib/screen.nu b/modules/lib/screen.nu new file mode 100644 index 0000000..9396e56 --- /dev/null +++ b/modules/lib/screen.nu @@ -0,0 +1,5 @@ +# Clear screen with tput +export def clearscr [] { + ^tput cuu 1 + ^tput el +} diff --git a/modules/lib/search.nu b/modules/lib/search.nu new file mode 100644 index 0000000..38f64e7 --- /dev/null +++ b/modules/lib/search.nu @@ -0,0 +1,53 @@ +use "/usr/share/rhino-pkg/modules/lib/screen.nu" [clearscr] +use "/usr/share/rhino-pkg/modules/lib/cmd.nu" [print-color] + +export def search-pkgs [ + description: bool + rest: string +] : nothing -> table { + use "/usr/share/rhino-pkg/modules/pluggables/" [pacstall flatpak apt snap] + tprint "Searching Pacstall…" + let pac_results = (pacstall search $rest $description) + clearscr + tprint "Searching flatpak…" + let flatpak_results = (flatpak search $rest $description) + clearscr + tprint "Searching apt…" + let apt_results = (apt search $rest $description) + tprint "Searching snap…" + let snap_results = (snap search $rest $description) + clearscr + let total = $snap_results | append $flatpak_results | append $apt_results | append $pac_results + mut idx = 0 + for bla in $total { + let le_color = (print-color $bla.provider) + print $"[($le_color)($idx)(ansi reset)]: ($bla.pkg) \(($le_color)($bla.provider)(ansi reset)\)" + $idx += 1 + } + # Just because someone else might need the table. + return $total +} + +export def search-local-pkgs [search: string] : nothing -> table { + use "/usr/share/rhino-pkg/modules/pluggables/" [pacstall flatpak apt snap] + tprint "Searching Pacstall…" + let pac_results = (pacstall list-installed $search) + clearscr + print "Searching flatpak…" + let flatpak_results = (flatpak list-installed $search) + clearscr + tprint "Searching apt…" + let apt_results = (apt list-installed $search) + tprint "Searching snap…" + let snap_results = (snap list-installed $search) + clearscr + let total = $snap_results | append $flatpak_results | append $apt_results | append $pac_results + mut idx = 0 + for bla in $total { + let le_color = (print-color $bla.provider) + print $"[($le_color)($idx)(ansi reset)]: ($bla.pkg) ~ (ansi defb)($bla.version)(ansi reset) \(($le_color)($bla.provider)(ansi reset)\)" + $idx += 1 + } + # Just because someone else might need the table. + return $total +} diff --git a/modules/pluggables/apt.nu b/modules/pluggables/apt.nu new file mode 100644 index 0000000..a1abb59 --- /dev/null +++ b/modules/pluggables/apt.nu @@ -0,0 +1,43 @@ +use "/usr/share/rhino-pkg/modules/lib/cmd.nu" [exists] + +export def list-installed [search: string] { + if (exists "aptitude") { + ^aptitude search $"~i($search) !?section\(Pacstall\)" -F '%p|%v' + | lines + | parse "{pkg}|{version}" + | insert provider "apt" + } +} + +export def search [input: string, description: bool] : nothing -> table { + if (exists "aptitude") { + if $description { + # We are searching for something in description + ^aptitude search --quiet --disable-columns $"?name\(($input)\) | ?description\(($input)\) ?architecture\(native\) !?section\(Pacstall\)" -F "%p|%d" + | lines + | parse "{pkg}|{desc}" + | insert provider 'apt' + } else { + ^aptitude search --quiet --disable-columns $"?name\(($input)\) ?architecture\(native\) !?section\(Pacstall\)" -F "%p" + | lines + | parse "{pkg}" + | insert desc '' + | insert provider 'apt' + } + } else { + error make -u { msg: (_ "`aptitude` not installed.") } + exit 1 + } +} + +export def upgrade [promptless: bool] { + if (exists "apt") { + if $promptless { + ^sudo apt update -y + ^sudo apt upgrade -y + } else { + ^sudo apt update + ^sudo apt upgrade + } + } +} diff --git a/modules/pluggables/flatpak.nu b/modules/pluggables/flatpak.nu new file mode 100644 index 0000000..b2c9163 --- /dev/null +++ b/modules/pluggables/flatpak.nu @@ -0,0 +1,39 @@ +use "/usr/share/rhino-pkg/modules/lib/cmd.nu" [exists] + +export def list-installed [search: string] { + if (exists "flatpak") { + ^flatpak list --columns=application:f,version:f --app + | lines + | uniq + | parse "{pkg}\t{version}" + | where pkg =~ $search + | insert provider "flatpak" + } +} + +export def search [input: string, description: bool] : nothing -> table { + # Description here is a dummy flag, because flatpak searches by both name and description with no way + # to change that afaik. + if (exists "flatpak") { + ^flatpak search $input --columns=application:f,remotes:f + | lines + | parse -r '^([\w.-]+)\s+(\w+)$' + | rename pkg remote + | insert provider 'flatpak' + | merge (^flatpak search $input --columns=description:f + | lines + | wrap 'desc') + } else { + [] + } +} + +export def upgrade [promptless: bool] { + if (exists "flatpak") { + if $promptless { + ^flatpak update -y + } else { + ^flatpak update + } + } +} diff --git a/modules/pluggables/mod.nu b/modules/pluggables/mod.nu new file mode 100644 index 0000000..5d2a33a --- /dev/null +++ b/modules/pluggables/mod.nu @@ -0,0 +1,5 @@ +# Apparently this is how it works +export module pacstall.nu +export module flatpak.nu +export module apt.nu +export module snap.nu diff --git a/modules/pluggables/pacstall.nu b/modules/pluggables/pacstall.nu new file mode 100644 index 0000000..4480968 --- /dev/null +++ b/modules/pluggables/pacstall.nu @@ -0,0 +1,50 @@ +use "/usr/share/rhino-pkg/modules/lib/cmd.nu" [exists] + +export def list-installed [search: string] { + # I'm using par-each because it's wayyy quicker and I can just sort the stuff afterwards + if (exists "pacstall") { + ^pacstall -L + | lines + | par-each { + |pkg| { + "pkg": $pkg, + "version": (^pacstall -Ci $pkg version) + } + } | sort-by pkg + | where pkg =~ $search + | insert provider "pacstall" + } +} + +export def search [input: string, description: bool] : nothing -> table { + if (exists "pacstall") { + if $description { + # We are searching for something in description + ^pacstall -Sd $input + | ansi strip + | lines + | parse "{pkg} - {desc} @ {repo}" + | insert provider 'pacstall' + } else { + # Searching by name + ^pacstall -S $input + | ansi strip + | lines + | parse "{pkg} @ {repo}" + | insert desc '' + | insert provider 'pacstall' + } + } else { + [] + } +} + +export def upgrade [promptless: bool] { + if (exists "pacstall") { + if $promptless { + ^pacstall -PUp + } else { + ^pacstall -Up + } + } +} diff --git a/modules/pluggables/snap.nu b/modules/pluggables/snap.nu new file mode 100644 index 0000000..a75c7d0 --- /dev/null +++ b/modules/pluggables/snap.nu @@ -0,0 +1,32 @@ +use "/usr/share/rhino-pkg/modules/lib/cmd.nu" [exists] + +export def list-installed [search: string] { + if (exists "snap") { + ^snap list + | detect columns + | reject Rev Tracking Publisher Notes + | rename --column { Name: pkg } + | rename --column { Version: version } + | where pkg =~ $search + | insert provider "snap" + } +} + +export def search [input: string, description: bool] : nothing -> table { + if (exists "snap") { + ^snap search $input + | detect columns --guess + | reject Publisher Version + | rename --column { Name: pkg } + | rename --column { Summary: desc } + | insert provider 'snap' + } else { + [] + } +} + +export def upgrade [promptless: bool] { + if (exists "snap") { + ^sudo snap refresh + } +} diff --git a/po/ar.po b/po/ar.po index e252fd8..d03079f 100644 --- a/po/ar.po +++ b/po/ar.po @@ -5,8 +5,8 @@ msgstr "" "POT-Creation-Date: 2024-01-25 23:52+0200\n" "PO-Revision-Date: 2024-02-08 13:02+0000\n" "Last-Translator: 7A9Oo \n" -"Language-Team: Arabic \n" +"Language-Team: Arabic \n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -15,56 +15,80 @@ msgstr "" "&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n" "X-Generator: Weblate 5.4-dev\n" -#: rhino-pkg:186 -msgid "Are you sure you want to update all packages? (${BGreen}y${NC}/${BRed}N${NC}) " -msgstr "هل أنت متأكد من تحديث كل الحزم؟ (${BGreen}y${NC}/${BRed}N${NC}). " - -#: rhino-pkg:218 -msgid "Searching Pacstall…" -msgstr "جار البحث عن Pacstall…" - -#: rhino-pkg:222 -msgid "Searching apt…" -msgstr "جار البحث عن apt…" - -#: rhino-pkg:226 -msgid "Searching flatpak…" -msgstr "جار البحث عن flatpak…" +#: rhino-pkg:83 +#, python-brace-format +msgid "" +"Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." +msgstr "" -#: rhino-pkg:231 -msgid "Searching snap…" -msgstr "جار البحث عن snap…" +#: rhino-pkg:84 +#, python-brace-format +msgid "No valid subcommand passed" +msgstr "" -#: rhino-pkg:237 -msgid "No packages found matching '$*'!" -msgstr "لا يوجد حزمة مطابقة '$*'!" +#: rhino-pkg:84 +#, python-brace-format +msgid "Failed here" +msgstr "" -#: rhino-pkg:241 -msgid "Found packages matching '${BPurple}$*${NC}':" -msgstr "حزم متوفرة مطابقة '${BPurple}$*${NC}':" +#: rhino-pkg:105 rhino-pkg:128 +#, python-brace-format +msgid "No packages found matching '{rest}'" +msgstr "" -#: rhino-pkg:286 +#: rhino-pkg:108 +#, python-brace-format msgid "Select which package to install" msgstr "إختر الحزمة المراد تنصيبها" -#: rhino-pkg:292 +#: rhino-pkg:109 +#, python-brace-format +msgid "Selecting '{pkg}' from package manager '{provider}'" +msgstr "" + +#: rhino-pkg:115 +#, python-brace-format +msgid "Failed to install '{pkg}'." +msgstr "" + +#: rhino-pkg:131 +#, python-brace-format msgid "Select which package to remove" msgstr "إختر الحزمة المراد حذفها" -#: rhino-pkg:298 -msgid "'${entered_input[*]}' is not a valid number" -msgstr "'${entered_input[*]}' رقم غير مطابق" +#: rhino-pkg:133 +#, python-brace-format +msgid "Removing '{part}' from '{provider}'" +msgstr "" -#: rhino-pkg:303 -msgid "Selecting '${BPurple}${pkgs[i]}${NC}' from package manager '${BPurple}${pkgrepo[i]}${NC}'" +#: rhino-pkg:142 +#, python-brace-format +msgid "" +"Attempting to repair dependencies and remove unused packages. Continue? ({y}/" +"{n}) " msgstr "" -"إختيار '${BPurple}${pkgs[i]}${NC}' من مدير الحزم " -"'${BPurple}${pkgrepo[i]}${NC}'" -#: rhino-pkg:306 -msgid "Are you sure? (${BGreen}y${NC}/${BRed}N${NC}) " -msgstr "هل أنت متأكد ؟ (${BGreen}y${NC}/${BRed}N${NC}). " +#: cmd.nu:28 +#, python-brace-format +msgid "No valid inputs given" +msgstr "" + +#: search.nu:9 search.nu:33 +#, python-brace-format +msgid "Searching Pacstall…" +msgstr "جار البحث عن Pacstall…" -#: rhino-pkg:341 -msgid "Invalid repository name!" -msgstr "اسم المستودع خاطئ !" +#: search.nu:12 +#, python-brace-format +msgid "Searching flatpak…" +msgstr "جار البحث عن flatpak…" + +#: search.nu:15 search.nu:39 +#, python-brace-format +msgid "Searching apt…" +msgstr "جار البحث عن apt…" + +#: search.nu:17 search.nu:41 +#, python-brace-format +msgid "Searching snap…" +msgstr "جار البحث عن snap…" diff --git a/po/bn.po b/po/bn.po index 586d47b..006734d 100644 --- a/po/bn.po +++ b/po/bn.po @@ -14,48 +14,80 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n > 1;\n" "X-Generator: Weblate 4.15.2\n" -#: rhino-pkg:73 -msgid "No input given!" -msgstr "কোনো ইনপুট দেওয়া হয়নি!" +#: rhino-pkg:83 +#, python-brace-format +msgid "" +"Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." +msgstr "" -#: rhino-pkg:77 -msgid "Searching Pacstall…" -msgstr "Pacstall-এ খোঁজ করা হচ্ছে…" +#: rhino-pkg:84 +#, python-brace-format +msgid "No valid subcommand passed" +msgstr "" -#: rhino-pkg:81 -msgid "Searching apt…" -msgstr "apt-এ খোঁজ করা হচ্ছে…" +#: rhino-pkg:84 +#, python-brace-format +msgid "Failed here" +msgstr "" -#: rhino-pkg:85 -msgid "Searching flatpak…" -msgstr "flatpak-এ খোঁজ করা হচ্ছে…" +#: rhino-pkg:105 rhino-pkg:128 +#, python-brace-format +msgid "No packages found matching '{rest}'" +msgstr "" -#: rhino-pkg:90 -msgid "Searching snap…" -msgstr "snap-এ খোঁজ করা হচ্ছে…" +#: rhino-pkg:108 +#, python-brace-format +msgid "Select which package to install" +msgstr "কোন প্যাকেজ ইনস্টল করতে হবে তা নির্বাচন করুন" -#: rhino-pkg:96 -msgid "No packages found matching '$*'!" -msgstr "'$*' এর সাথে মিলিত কোনো প্যাকেজ পাওয়া যায়নি!" +#: rhino-pkg:109 +#, python-brace-format +msgid "Selecting '{pkg}' from package manager '{provider}'" +msgstr "" -#: rhino-pkg:99 -msgid "Found packages matching '${BPurple}$*${NC}':" -msgstr "'${BPurple}$*${NC}' এর সাথে মিলিত প্যাকেজগুলি পাওয়া গেছে:" +#: rhino-pkg:115 +#, python-brace-format +msgid "Failed to install '{pkg}'." +msgstr "" -#: rhino-pkg:135 -msgid "Select which package to install" -msgstr "কোন প্যাকেজ ইনস্টল করতে হবে তা নির্বাচন করুন" +#: rhino-pkg:131 +#, python-brace-format +msgid "Select which package to remove" +msgstr "" -#: rhino-pkg:139 -msgid "'$entered_input' is not a valid number" -msgstr "'$entered_input' একটি বৈধ সংখ্যা নয়" +#: rhino-pkg:133 +#, python-brace-format +msgid "Removing '{part}' from '{provider}'" +msgstr "" -#: rhino-pkg:143 -msgid "Selecting '${BPurple}${pkgs[i]}${NC}' from package manager '${BPurple}${pkgrepo[i]}${NC}'" +#: rhino-pkg:142 +#, python-brace-format +msgid "" +"Attempting to repair dependencies and remove unused packages. Continue? ({y}/" +"{n}) " msgstr "" -"প্যাকেজ ম্যানেজার '${BPurple}${pkgs[i]}${NC}' থেকে " -"'${BPurple}${pkgrepo[i]}${NC}' নির্বাচন করা হচ্ছে" -#: rhino-pkg:168 -msgid "Invalid repository name!" -msgstr "অবৈধ সংগ্রহস্থলের নাম!" +#: cmd.nu:28 +#, python-brace-format +msgid "No valid inputs given" +msgstr "" + +#: search.nu:9 search.nu:33 +#, python-brace-format +msgid "Searching Pacstall…" +msgstr "Pacstall-এ খোঁজ করা হচ্ছে…" + +#: search.nu:12 +#, python-brace-format +msgid "Searching flatpak…" +msgstr "flatpak-এ খোঁজ করা হচ্ছে…" + +#: search.nu:15 search.nu:39 +#, python-brace-format +msgid "Searching apt…" +msgstr "apt-এ খোঁজ করা হচ্ছে…" + +#: search.nu:17 search.nu:41 +#, python-brace-format +msgid "Searching snap…" +msgstr "snap-এ খোঁজ করা হচ্ছে…" diff --git a/po/de.po b/po/de.po index 39857a6..b934d6f 100644 --- a/po/de.po +++ b/po/de.po @@ -6,8 +6,8 @@ msgstr "" "POT-Creation-Date: 2024-01-09 14:06+0200\n" "PO-Revision-Date: 2024-01-09 13:06+0000\n" "Last-Translator: Oliver Schantz \n" -"Language-Team: German \n" +"Language-Team: German \n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -15,54 +15,80 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 5.4-dev\n" -#: rhino-pkg:186 -msgid "Are you sure you want to update all packages? (${BGreen}y${NC}/${BRed}N${NC}) " -msgstr "Sind Sie sicher, dass sie alle Pakete aktualisieren möchten? (${BGreen}y${NC}/${BRed}N${NC}) " - -#: rhino-pkg:218 -msgid "Searching Pacstall…" -msgstr "Suche in Pacstall…" - -#: rhino-pkg:222 -msgid "Searching apt…" -msgstr "Suche in APT…" - -#: rhino-pkg:226 -msgid "Searching flatpak…" -msgstr "Suche in Flatpak…" +#: rhino-pkg:83 +#, python-brace-format +msgid "" +"Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." +msgstr "" -#: rhino-pkg:231 -msgid "Searching snap…" -msgstr "Suche in Snap…" +#: rhino-pkg:84 +#, python-brace-format +msgid "No valid subcommand passed" +msgstr "" -#: rhino-pkg:237 -msgid "No packages found matching '$*'!" -msgstr "Keine passenden Pakete zu '$*' gefunden!" +#: rhino-pkg:84 +#, python-brace-format +msgid "Failed here" +msgstr "" -#: rhino-pkg:241 -msgid "Found packages matching '${BPurple}$*${NC}':" -msgstr "Pakete passend zu '${BPurple}$*${NC}' gefunden:" +#: rhino-pkg:105 rhino-pkg:128 +#, python-brace-format +msgid "No packages found matching '{rest}'" +msgstr "" -#: rhino-pkg:286 +#: rhino-pkg:108 +#, python-brace-format msgid "Select which package to install" msgstr "Wählen Sie Pakete aus, welche Installiert werden sollen" -#: rhino-pkg:292 +#: rhino-pkg:109 +#, python-brace-format +msgid "Selecting '{pkg}' from package manager '{provider}'" +msgstr "" + +#: rhino-pkg:115 +#, python-brace-format +msgid "Failed to install '{pkg}'." +msgstr "" + +#: rhino-pkg:131 +#, python-brace-format msgid "Select which package to remove" msgstr "Wählen Sie die Pakete aus, welche Sie löschen möchten." -#: rhino-pkg:298 -msgid "'${entered_input[*]}' is not a valid number" -msgstr "'${entered_input[*]}' ist keine gültige Zahl" +#: rhino-pkg:133 +#, python-brace-format +msgid "Removing '{part}' from '{provider}'" +msgstr "" -#: rhino-pkg:303 -msgid "Selecting '${BPurple}${pkgs[i]}${NC}' from package manager '${BPurple}${pkgrepo[i]}${NC}'" -msgstr "'${BPurple}${pkgs[i]}${NC}' von Paketmanager '${BPurple}${pkgrepo[i]}${NC}' wird gewählt" +#: rhino-pkg:142 +#, python-brace-format +msgid "" +"Attempting to repair dependencies and remove unused packages. Continue? ({y}/" +"{n}) " +msgstr "" -#: rhino-pkg:306 -msgid "Are you sure? (${BGreen}y${NC}/${BRed}N${NC}) " -msgstr "Sind Sie sich sicher? (${BGreen}y${NC}/${BRed}N${NC}) " +#: cmd.nu:28 +#, python-brace-format +msgid "No valid inputs given" +msgstr "" + +#: search.nu:9 search.nu:33 +#, python-brace-format +msgid "Searching Pacstall…" +msgstr "Suche in Pacstall…" -#: rhino-pkg:341 -msgid "Invalid repository name!" -msgstr "Ungültiger Repository Name!" +#: search.nu:12 +#, python-brace-format +msgid "Searching flatpak…" +msgstr "Suche in Flatpak…" + +#: search.nu:15 search.nu:39 +#, python-brace-format +msgid "Searching apt…" +msgstr "Suche in APT…" + +#: search.nu:17 search.nu:41 +#, python-brace-format +msgid "Searching snap…" +msgstr "Suche in Snap…" diff --git a/po/enm.po b/po/enm.po index d3f7437..9374e61 100644 --- a/po/enm.po +++ b/po/enm.po @@ -5,8 +5,8 @@ msgstr "" "POT-Creation-Date: 2023-02-06 08:38-0500\n" "PO-Revision-Date: 2023-02-06 14:38+0000\n" "Last-Translator: Twilight is-the-best \n" -"Language-Team: English (Middle) \n" +"Language-Team: English (Middle) \n" "Language: enm\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -14,46 +14,80 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.15.2\n" -#: rhino-pkg:85 -msgid "No input given!" -msgstr "Input hath not been given!" +#: rhino-pkg:83 +#, python-brace-format +msgid "" +"Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." +msgstr "" -#: rhino-pkg:95 -msgid "Searching Pacstall…" -msgstr "Doth searching Pacstall…" +#: rhino-pkg:84 +#, python-brace-format +msgid "No valid subcommand passed" +msgstr "" -#: rhino-pkg:99 -msgid "Searching apt…" -msgstr "Doth searching apt…" +#: rhino-pkg:84 +#, python-brace-format +msgid "Failed here" +msgstr "" -#: rhino-pkg:103 -msgid "Searching flatpak…" -msgstr "Doth searching flatpak…" +#: rhino-pkg:105 rhino-pkg:128 +#, python-brace-format +msgid "No packages found matching '{rest}'" +msgstr "" #: rhino-pkg:108 -msgid "Searching snap…" -msgstr "Doth searching snap…" +#, python-brace-format +msgid "Select which package to install" +msgstr "Select doth packages to which to install" -#: rhino-pkg:114 -msgid "No packages found matching '$*'!" -msgstr "No packages found matching doth name '$*'!" +#: rhino-pkg:109 +#, python-brace-format +msgid "Selecting '{pkg}' from package manager '{provider}'" +msgstr "" -#: rhino-pkg:117 -msgid "Found packages matching '${BPurple}$*${NC}':" -msgstr "Found packages doth matching '${BPurple}$*${NC}':" +#: rhino-pkg:115 +#, python-brace-format +msgid "Failed to install '{pkg}'." +msgstr "" -#: rhino-pkg:153 -msgid "Select which package to install" -msgstr "Select doth packages to which to install" +#: rhino-pkg:131 +#, python-brace-format +msgid "Select which package to remove" +msgstr "" + +#: rhino-pkg:133 +#, python-brace-format +msgid "Removing '{part}' from '{provider}'" +msgstr "" + +#: rhino-pkg:142 +#, python-brace-format +msgid "" +"Attempting to repair dependencies and remove unused packages. Continue? ({y}/" +"{n}) " +msgstr "" + +#: cmd.nu:28 +#, python-brace-format +msgid "No valid inputs given" +msgstr "" -#: rhino-pkg:157 -msgid "'$entered_input' is not a valid number" -msgstr "'$entered_input' is not a proper number" +#: search.nu:9 search.nu:33 +#, python-brace-format +msgid "Searching Pacstall…" +msgstr "Doth searching Pacstall…" -#: rhino-pkg:161 -msgid "Selecting '${BPurple}${pkgs[i]}${NC}' from package manager '${BPurple}${pkgrepo[i]}${NC}'" -msgstr "Selecting '${BPurple}${pkgs[i]}${NC}' from thine package manager '${BPurple}${pkgrepo[i]}${NC}'" +#: search.nu:12 +#, python-brace-format +msgid "Searching flatpak…" +msgstr "Doth searching flatpak…" -#: rhino-pkg:186 -msgid "Invalid repository name!" -msgstr "Thou hast supplied an improper repository name!" +#: search.nu:15 search.nu:39 +#, python-brace-format +msgid "Searching apt…" +msgstr "Doth searching apt…" + +#: search.nu:17 search.nu:41 +#, python-brace-format +msgid "Searching snap…" +msgstr "Doth searching snap…" diff --git a/po/es.po b/po/es.po index 0296690..7872c5a 100644 --- a/po/es.po +++ b/po/es.po @@ -15,50 +15,80 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 5.7-dev\n" -#: rhino-pkg:73 -msgid "No input given!" -msgstr "¡Ninguna entrada dada!" +#: rhino-pkg:83 +#, python-brace-format +msgid "" +"Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." +msgstr "" -#: rhino-pkg:77 -msgid "Searching Pacstall…" -msgstr "Buscando Pacstall…" +#: rhino-pkg:84 +#, python-brace-format +msgid "No valid subcommand passed" +msgstr "" -#: rhino-pkg:81 -msgid "Searching apt…" -msgstr "Buscando apt…" +#: rhino-pkg:84 +#, python-brace-format +msgid "Failed here" +msgstr "" -#: rhino-pkg:85 -msgid "Searching flatpak…" -msgstr "Buscando flatpak…" +#: rhino-pkg:105 rhino-pkg:128 +#, python-brace-format +msgid "No packages found matching '{rest}'" +msgstr "" -#: rhino-pkg:90 -msgid "Searching snap…" -msgstr "Buscando snap…" +#: rhino-pkg:108 +#, python-brace-format +msgid "Select which package to install" +msgstr "Seleccione el paquete que desea instalar" -#: rhino-pkg:96 -msgid "No packages found matching '$*'!" -msgstr "¡Fueron encontrados paquetes que coinciden con '$*'!" +#: rhino-pkg:109 +#, python-brace-format +msgid "Selecting '{pkg}' from package manager '{provider}'" +msgstr "" -#: rhino-pkg:99 -msgid "Found packages matching '${BPurple}$*${NC}':" -msgstr "Paquetes encontrados que coinciden con '${BPurple}$*${NC}':" +#: rhino-pkg:115 +#, python-brace-format +msgid "Failed to install '{pkg}'." +msgstr "" -#: rhino-pkg:135 -msgid "Select which package to install" -msgstr "Seleccione el paquete que desea instalar" +#: rhino-pkg:131 +#, python-brace-format +msgid "Select which package to remove" +msgstr "" -#: rhino-pkg:139 -msgid "'$entered_input' is not a valid number" -msgstr "'$entered_input' no es un número válido" +#: rhino-pkg:133 +#, python-brace-format +msgid "Removing '{part}' from '{provider}'" +msgstr "" -#: rhino-pkg:143 -msgid "Selecting '${BPurple}${pkgs[i]}${NC}' from package manager '${BPurple}${pkgrepo[i]}${NC}'" -msgstr "Seleccionando '${BPurple}${pkgs[i]}${NC}' del gestor de paquetes '${BPurple}${pkgrepo[i]}${NC}'" +#: rhino-pkg:142 +#, python-brace-format +msgid "" +"Attempting to repair dependencies and remove unused packages. Continue? ({y}/" +"{n}) " +msgstr "" -#: rhino-pkg:168 -msgid "Invalid repository name!" -msgstr "¡Nombre de repositorio inválido!" +#: cmd.nu:28 +#, python-brace-format +msgid "No valid inputs given" +msgstr "" + +#: search.nu:9 search.nu:33 +#, python-brace-format +msgid "Searching Pacstall…" +msgstr "Buscando Pacstall…" -#: rhino-pkg:253 -msgid "Are you sure? (${BGreen}y${NC}/${BRed}N${NC}) " -msgstr "¿Estás seguro? (${BGreen}y${NC}/${BRed}N${NC}) " +#: search.nu:12 +#, python-brace-format +msgid "Searching flatpak…" +msgstr "Buscando flatpak…" + +#: search.nu:15 search.nu:39 +#, python-brace-format +msgid "Searching apt…" +msgstr "Buscando apt…" + +#: search.nu:17 search.nu:41 +#, python-brace-format +msgid "Searching snap…" +msgstr "Buscando snap…" diff --git a/po/fr.po b/po/fr.po index 9d71523..599cfae 100644 --- a/po/fr.po +++ b/po/fr.po @@ -6,8 +6,8 @@ msgstr "" "POT-Creation-Date: 2024-07-14 00:43+0200\n" "PO-Revision-Date: 2024-07-13 22:43+0000\n" "Last-Translator: Oren Klopfer \n" -"Language-Team: French \n" +"Language-Team: French \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -15,46 +15,80 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n > 1;\n" "X-Generator: Weblate 5.7-dev\n" -#: rhino-pkg:73 -msgid "No input given!" -msgstr "Aucune entrée n'a été donnée !" +#: rhino-pkg:83 +#, python-brace-format +msgid "" +"Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." +msgstr "" -#: rhino-pkg:77 -msgid "Searching Pacstall…" -msgstr "Recherche de Pacstall…" +#: rhino-pkg:84 +#, python-brace-format +msgid "No valid subcommand passed" +msgstr "" -#: rhino-pkg:81 -msgid "Searching apt…" -msgstr "Recherche de l'apt…" +#: rhino-pkg:84 +#, python-brace-format +msgid "Failed here" +msgstr "" -#: rhino-pkg:85 -msgid "Searching flatpak…" -msgstr "Recherche de flatpak…" +#: rhino-pkg:105 rhino-pkg:128 +#, python-brace-format +msgid "No packages found matching '{rest}'" +msgstr "" -#: rhino-pkg:90 -msgid "Searching snap…" -msgstr "Recherche de snap…" +#: rhino-pkg:108 +#, python-brace-format +msgid "Select which package to install" +msgstr "Sélectionnez le paquet à installer" -#: rhino-pkg:96 -msgid "No packages found matching '$*'!" -msgstr "Aucun paquet trouvé correspondant à '$*' !" +#: rhino-pkg:109 +#, python-brace-format +msgid "Selecting '{pkg}' from package manager '{provider}'" +msgstr "" -#: rhino-pkg:99 -msgid "Found packages matching '${BPurple}$*${NC}':" -msgstr "Paquets trouvés correspondant à '${BPurple}$*${NC}':" +#: rhino-pkg:115 +#, python-brace-format +msgid "Failed to install '{pkg}'." +msgstr "" -#: rhino-pkg:135 -msgid "Select which package to install" -msgstr "Sélectionnez le paquet à installer" +#: rhino-pkg:131 +#, python-brace-format +msgid "Select which package to remove" +msgstr "" + +#: rhino-pkg:133 +#, python-brace-format +msgid "Removing '{part}' from '{provider}'" +msgstr "" + +#: rhino-pkg:142 +#, python-brace-format +msgid "" +"Attempting to repair dependencies and remove unused packages. Continue? ({y}/" +"{n}) " +msgstr "" + +#: cmd.nu:28 +#, python-brace-format +msgid "No valid inputs given" +msgstr "" -#: rhino-pkg:139 -msgid "'$entered_input' is not a valid number" -msgstr "'$entered_input' n'est pas un nombre valide" +#: search.nu:9 search.nu:33 +#, python-brace-format +msgid "Searching Pacstall…" +msgstr "Recherche de Pacstall…" -#: rhino-pkg:143 -msgid "Selecting '${BPurple}${pkgs[i]}${NC}' from package manager '${BPurple}${pkgrepo[i]}${NC}'" -msgstr "Sélection de '${BPurple}${pkgs[i]}${NC}' dans le gestionnaire de paquets '${BPurple}${pkgrepo[i]}${NC}'" +#: search.nu:12 +#, python-brace-format +msgid "Searching flatpak…" +msgstr "Recherche de flatpak…" -#: rhino-pkg:168 -msgid "Invalid repository name!" -msgstr "Nom de dépôt non valide !" +#: search.nu:15 search.nu:39 +#, python-brace-format +msgid "Searching apt…" +msgstr "Recherche de l'apt…" + +#: search.nu:17 search.nu:41 +#, python-brace-format +msgid "Searching snap…" +msgstr "Recherche de snap…" diff --git a/po/hi.po b/po/hi.po index ef08704..9803e62 100644 --- a/po/hi.po +++ b/po/hi.po @@ -5,8 +5,8 @@ msgstr "" "POT-Creation-Date: 2023-02-06 11:11-0500\n" "PO-Revision-Date: 2023-02-06 20:02+0000\n" "Last-Translator: Sourajyoti Basak \n" -"Language-Team: Hindi \n" +"Language-Team: Hindi \n" "Language: hi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -14,48 +14,80 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n > 1;\n" "X-Generator: Weblate 4.15.2\n" -#: rhino-pkg:97 -msgid "No input given!" -msgstr "कोई इनपुट नहीं दिया!" +#: rhino-pkg:83 +#, python-brace-format +msgid "" +"Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." +msgstr "" -#: rhino-pkg:110 -msgid "Searching Pacstall…" -msgstr "Pacstall में खोजा जा रहा है…" +#: rhino-pkg:84 +#, python-brace-format +msgid "No valid subcommand passed" +msgstr "" -#: rhino-pkg:114 -msgid "Searching apt…" -msgstr "APT में खोजा जा रहा है…" +#: rhino-pkg:84 +#, python-brace-format +msgid "Failed here" +msgstr "" -#: rhino-pkg:118 -msgid "Searching flatpak…" -msgstr "फ्लैटपैक में खोजा जा रहा है…" +#: rhino-pkg:105 rhino-pkg:128 +#, python-brace-format +msgid "No packages found matching '{rest}'" +msgstr "" -#: rhino-pkg:123 -msgid "Searching snap…" -msgstr "स्नैप में खोजा जा रहा है…" +#: rhino-pkg:108 +#, python-brace-format +msgid "Select which package to install" +msgstr "इनस्टॉल करने के लिए एक पैकेज चुनें" -#: rhino-pkg:129 -msgid "No packages found matching '$*'!" -msgstr "'$*' से मेल खाता कोई पैकेज नहीं मिला!" +#: rhino-pkg:109 +#, python-brace-format +msgid "Selecting '{pkg}' from package manager '{provider}'" +msgstr "" -#: rhino-pkg:132 -msgid "Found packages matching '${BPurple}$*${NC}':" -msgstr "'${Bpurple}$*${NC}' से मेल खाने वाले पैकेज मिले:" +#: rhino-pkg:115 +#, python-brace-format +msgid "Failed to install '{pkg}'." +msgstr "" -#: rhino-pkg:168 -msgid "Select which package to install" -msgstr "इनस्टॉल करने के लिए एक पैकेज चुनें" +#: rhino-pkg:131 +#, python-brace-format +msgid "Select which package to remove" +msgstr "" -#: rhino-pkg:172 -msgid "'$entered_input' is not a valid number" -msgstr "'$entered_input' वैध संख्या नहीं है" +#: rhino-pkg:133 +#, python-brace-format +msgid "Removing '{part}' from '{provider}'" +msgstr "" -#: rhino-pkg:176 -msgid "Selecting '${BPurple}${pkgs[i]}${NC}' from package manager '${BPurple}${pkgrepo[i]}${NC}'" +#: rhino-pkg:142 +#, python-brace-format +msgid "" +"Attempting to repair dependencies and remove unused packages. Continue? ({y}/" +"{n}) " msgstr "" -"पैकेज मैनेजर '${Bpurple}${pkgs[i]}${NC}' से " -"'${Bpurple}${pkgrepo[i]}${NC}' चुने गए हैं" -#: rhino-pkg:201 -msgid "Invalid repository name!" -msgstr "अवैध भंडार का नाम!" +#: cmd.nu:28 +#, python-brace-format +msgid "No valid inputs given" +msgstr "" + +#: search.nu:9 search.nu:33 +#, python-brace-format +msgid "Searching Pacstall…" +msgstr "Pacstall में खोजा जा रहा है…" + +#: search.nu:12 +#, python-brace-format +msgid "Searching flatpak…" +msgstr "फ्लैटपैक में खोजा जा रहा है…" + +#: search.nu:15 search.nu:39 +#, python-brace-format +msgid "Searching apt…" +msgstr "APT में खोजा जा रहा है…" + +#: search.nu:17 search.nu:41 +#, python-brace-format +msgid "Searching snap…" +msgstr "स्नैप में खोजा जा रहा है…" diff --git a/po/id.po b/po/id.po index 5882c6e..5dcd1dc 100644 --- a/po/id.po +++ b/po/id.po @@ -12,50 +12,80 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 3.2.2\n" -#: rhino-pkg:97 -msgid "No input given!" -msgstr "Tidak ada masukan!" +#: rhino-pkg:83 +#, python-brace-format +msgid "" +"Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." +msgstr "" -#: rhino-pkg:110 -msgid "Searching Pacstall…" -msgstr "Mencari Pacstall…" +#: rhino-pkg:84 +#, python-brace-format +msgid "No valid subcommand passed" +msgstr "" -#: rhino-pkg:114 -msgid "Searching apt…" -msgstr "Mencari apt…" +#: rhino-pkg:84 +#, python-brace-format +msgid "Failed here" +msgstr "" -#: rhino-pkg:118 -msgid "Searching flatpak…" -msgstr "Mencari flatpak…" +#: rhino-pkg:105 rhino-pkg:128 +#, python-brace-format +msgid "No packages found matching '{rest}'" +msgstr "" -#: rhino-pkg:123 -msgid "Searching snap…" -msgstr "Mencari snap…" +#: rhino-pkg:108 +#, python-brace-format +msgid "Select which package to install" +msgstr "Memilih paket yang akan dipasang" -#: rhino-pkg:129 -msgid "No packages found matching '$*'!" -msgstr "Tidak menemukan paket yang cocok '$*'!" +#: rhino-pkg:109 +#, python-brace-format +msgid "Selecting '{pkg}' from package manager '{provider}'" +msgstr "" -#: rhino-pkg:132 -msgid "Found packages matching '${BPurple}$*${NC}':" -msgstr "Menemukan paket yang sesuai '${BPurple}$*${NC}':" +#: rhino-pkg:115 +#, python-brace-format +msgid "Failed to install '{pkg}'." +msgstr "" -#: rhino-pkg:168 -msgid "Select which package to install" -msgstr "Memilih paket yang akan dipasang" +#: rhino-pkg:131 +#, python-brace-format +msgid "Select which package to remove" +msgstr "" -#: rhino-pkg:172 -msgid "'$entered_input' is not a valid number" -msgstr "'$entered_input' bukan angka yang sah" +#: rhino-pkg:133 +#, python-brace-format +msgid "Removing '{part}' from '{provider}'" +msgstr "" -#: rhino-pkg:176 +#: rhino-pkg:142 +#, python-brace-format msgid "" -"Selecting '${BPurple}${pkgs[i]}${NC}' from package manager " -"'${BPurple}${pkgrepo[i]}${NC}'" +"Attempting to repair dependencies and remove unused packages. Continue? ({y}/" +"{n}) " msgstr "" -"Memilih'${BPurple}${pkgs[i]}${NC}' dari manajemen paket " -"'${BPurple}${pkgrepo[i]}${NC}'" -#: rhino-pkg:201 -msgid "Invalid repository name!" -msgstr "Nama repositori yang tidak sah!" +#: cmd.nu:28 +#, python-brace-format +msgid "No valid inputs given" +msgstr "" + +#: search.nu:9 search.nu:33 +#, python-brace-format +msgid "Searching Pacstall…" +msgstr "Mencari Pacstall…" + +#: search.nu:12 +#, python-brace-format +msgid "Searching flatpak…" +msgstr "Mencari flatpak…" + +#: search.nu:15 search.nu:39 +#, python-brace-format +msgid "Searching apt…" +msgstr "Mencari apt…" + +#: search.nu:17 search.nu:41 +#, python-brace-format +msgid "Searching snap…" +msgstr "Mencari snap…" diff --git a/po/ie.po b/po/ie.po index c857101..b7759ac 100644 --- a/po/ie.po +++ b/po/ie.po @@ -14,57 +14,80 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 5.0-dev\n" -#: rhino-pkg:186 -msgid "Are you sure you want to update all packages? (${BGreen}y${NC}/${BRed}N${NC}) " +#: rhino-pkg:83 +#, python-brace-format +msgid "" +"Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." msgstr "" -"Esque vu vole actualisar omni paccages? (${BGreen}y${NC}/${BRed}N${NC}) " -#: rhino-pkg:218 -msgid "Searching Pacstall…" -msgstr "Serchante Pacstall…" - -#: rhino-pkg:222 -msgid "Searching apt…" -msgstr "Serchante apt…" - -#: rhino-pkg:226 -msgid "Searching flatpak…" -msgstr "Serchante flatpak…" - -#: rhino-pkg:231 -msgid "Searching snap…" -msgstr "Serchante snap…" +#: rhino-pkg:84 +#, python-brace-format +msgid "No valid subcommand passed" +msgstr "" -#: rhino-pkg:237 -msgid "No packages found matching '$*'!" -msgstr "Null paccages trovat quel corresponde a '$*'!" +#: rhino-pkg:84 +#, python-brace-format +msgid "Failed here" +msgstr "" -#: rhino-pkg:241 -msgid "Found packages matching '${BPurple}$*${NC}':" -msgstr "Trovat paccages correspondente a '${BPurple}$*${NC}':" +#: rhino-pkg:105 rhino-pkg:128 +#, python-brace-format +msgid "No packages found matching '{rest}'" +msgstr "" -#: rhino-pkg:286 +#: rhino-pkg:108 +#, python-brace-format msgid "Select which package to install" msgstr "Selecter un paccage a installar" -#: rhino-pkg:292 +#: rhino-pkg:109 +#, python-brace-format +msgid "Selecting '{pkg}' from package manager '{provider}'" +msgstr "" + +#: rhino-pkg:115 +#, python-brace-format +msgid "Failed to install '{pkg}'." +msgstr "" + +#: rhino-pkg:131 +#, python-brace-format msgid "Select which package to remove" msgstr "Selecter un paccage a remover" -#: rhino-pkg:298 -msgid "'${entered_input[*]}' is not a valid number" -msgstr "'${entered_input[*]}' ne es un valid númere" +#: rhino-pkg:133 +#, python-brace-format +msgid "Removing '{part}' from '{provider}'" +msgstr "" + +#: rhino-pkg:142 +#, python-brace-format +msgid "" +"Attempting to repair dependencies and remove unused packages. Continue? ({y}/" +"{n}) " +msgstr "" -#: rhino-pkg:303 -msgid "Selecting '${BPurple}${pkgs[i]}${NC}' from package manager '${BPurple}${pkgrepo[i]}${NC}'" +#: cmd.nu:28 +#, python-brace-format +msgid "No valid inputs given" msgstr "" -"Selecte '${BPurple}${pkgs[i]}${NC}' del gerente de paccages " -"'${BPurple}${pkgrepo[i]}${NC}'" -#: rhino-pkg:306 -msgid "Are you sure? (${BGreen}y${NC}/${BRed}N${NC}) " -msgstr "Esque vu es cert? (${BGreen}y${NC}/${BRed}N${NC}) " +#: search.nu:9 search.nu:33 +#, python-brace-format +msgid "Searching Pacstall…" +msgstr "Serchante Pacstall…" + +#: search.nu:12 +#, python-brace-format +msgid "Searching flatpak…" +msgstr "Serchante flatpak…" + +#: search.nu:15 search.nu:39 +#, python-brace-format +msgid "Searching apt…" +msgstr "Serchante apt…" -#: rhino-pkg:341 -msgid "Invalid repository name!" -msgstr "Ínvalid nómine de un repositoria!" +#: search.nu:17 search.nu:41 +#, python-brace-format +msgid "Searching snap…" +msgstr "Serchante snap…" diff --git a/po/it.po b/po/it.po index e978940..6ac090a 100644 --- a/po/it.po +++ b/po/it.po @@ -14,48 +14,80 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 5.6-dev\n" -#: rhino-pkg:73 -msgid "No input given!" -msgstr "Nessun input fornito!" +#: rhino-pkg:83 +#, python-brace-format +msgid "" +"Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." +msgstr "" -#: rhino-pkg:77 -msgid "Searching Pacstall…" -msgstr "Cerco su Pacstall…" +#: rhino-pkg:84 +#, python-brace-format +msgid "No valid subcommand passed" +msgstr "" -#: rhino-pkg:81 -msgid "Searching apt…" -msgstr "Cerco su apt…" +#: rhino-pkg:84 +#, python-brace-format +msgid "Failed here" +msgstr "" -#: rhino-pkg:85 -msgid "Searching flatpak…" -msgstr "Cerco su flatpak…" +#: rhino-pkg:105 rhino-pkg:128 +#, python-brace-format +msgid "No packages found matching '{rest}'" +msgstr "" -#: rhino-pkg:90 -msgid "Searching snap…" -msgstr "Cerco su snap…" +#: rhino-pkg:108 +#, python-brace-format +msgid "Select which package to install" +msgstr "Seleziona il pacchetto da installare" -#: rhino-pkg:96 -msgid "No packages found matching '$*'!" -msgstr "Nessun pacchetto corrisponde a '$*'!" +#: rhino-pkg:109 +#, python-brace-format +msgid "Selecting '{pkg}' from package manager '{provider}'" +msgstr "" -#: rhino-pkg:99 -msgid "Found packages matching '${BPurple}$*${NC}':" -msgstr "Trovati pacchetti corrispondenti a '${BPurple}$*${NC}':" +#: rhino-pkg:115 +#, python-brace-format +msgid "Failed to install '{pkg}'." +msgstr "" -#: rhino-pkg:135 -msgid "Select which package to install" -msgstr "Seleziona il pacchetto da installare" +#: rhino-pkg:131 +#, python-brace-format +msgid "Select which package to remove" +msgstr "" -#: rhino-pkg:139 -msgid "'$entered_input' is not a valid number" -msgstr "'$entered_input' non è un numero valido" +#: rhino-pkg:133 +#, python-brace-format +msgid "Removing '{part}' from '{provider}'" +msgstr "" -#: rhino-pkg:143 -msgid "Selecting '${BPurple}${pkgs[i]}${NC}' from package manager '${BPurple}${pkgrepo[i]}${NC}'" +#: rhino-pkg:142 +#, python-brace-format +msgid "" +"Attempting to repair dependencies and remove unused packages. Continue? ({y}/" +"{n}) " msgstr "" -"Seleziono '${BPurple}${pkgs[i]}${NC}' dal gestore di pacchetti " -"'${BPurple}${pkgrepo[i]}${NC}'" -#: rhino-pkg:168 -msgid "Invalid repository name!" -msgstr "Nome repository errato!" +#: cmd.nu:28 +#, python-brace-format +msgid "No valid inputs given" +msgstr "" + +#: search.nu:9 search.nu:33 +#, python-brace-format +msgid "Searching Pacstall…" +msgstr "Cerco su Pacstall…" + +#: search.nu:12 +#, python-brace-format +msgid "Searching flatpak…" +msgstr "Cerco su flatpak…" + +#: search.nu:15 search.nu:39 +#, python-brace-format +msgid "Searching apt…" +msgstr "Cerco su apt…" + +#: search.nu:17 search.nu:41 +#, python-brace-format +msgid "Searching snap…" +msgstr "Cerco su snap…" diff --git a/po/ka.po b/po/ka.po index e2cc61b..e1f6f58 100644 --- a/po/ka.po +++ b/po/ka.po @@ -14,61 +14,80 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 5.4-dev\n" -#: rhino-pkg:186 +#: rhino-pkg:83 +#, python-brace-format msgid "" -"Are you sure you want to update all packages? (${BGreen}y${NC}/${BRed}" -"N${NC}) " +"Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." msgstr "" -"მართლა გნებავთ ყველა პაკეტის განახლება? (${BGreen}y${NC}/${BRed}N${NC}) " -#: rhino-pkg:218 -msgid "Searching Pacstall…" -msgstr "ძებნა Pacstall-ში…" - -#: rhino-pkg:222 -msgid "Searching apt…" -msgstr "ძებნა apt-ში…" - -#: rhino-pkg:226 -msgid "Searching flatpak…" -msgstr "ძებნა flatpak-ში…" - -#: rhino-pkg:231 -msgid "Searching snap…" -msgstr "ძებნა snap-ში…" +#: rhino-pkg:84 +#, python-brace-format +msgid "No valid subcommand passed" +msgstr "" -#: rhino-pkg:237 -msgid "No packages found matching '$*'!" -msgstr "ვერ ვიპოვე პაკეტი, რომელიც ემთხვევა სტრიქონს '$*'!" +#: rhino-pkg:84 +#, python-brace-format +msgid "Failed here" +msgstr "" -#: rhino-pkg:241 -msgid "Found packages matching '${BPurple}$*${NC}':" -msgstr "ნაპოვნი პაკეტები, რომლებიც ემთხვევა სტრიქონს '${BPurple}$*${NC}':" +#: rhino-pkg:105 rhino-pkg:128 +#, python-brace-format +msgid "No packages found matching '{rest}'" +msgstr "" -#: rhino-pkg:286 +#: rhino-pkg:108 +#, python-brace-format msgid "Select which package to install" msgstr "აირჩიეთ, რომელი პაკეტი დავაყენო" -#: rhino-pkg:292 +#: rhino-pkg:109 +#, python-brace-format +msgid "Selecting '{pkg}' from package manager '{provider}'" +msgstr "" + +#: rhino-pkg:115 +#, python-brace-format +msgid "Failed to install '{pkg}'." +msgstr "" + +#: rhino-pkg:131 +#, python-brace-format msgid "Select which package to remove" msgstr "აირჩიეთ, რომელი პაკეტი წავშალო" -#: rhino-pkg:298 -msgid "'${entered_input[*]}' is not a valid number" -msgstr "'${entered_input[*]}' სწორი რიცხვი არაა" +#: rhino-pkg:133 +#, python-brace-format +msgid "Removing '{part}' from '{provider}'" +msgstr "" -#: rhino-pkg:303 +#: rhino-pkg:142 +#, python-brace-format msgid "" -"Selecting '${BPurple}${pkgs[i]}${NC}' from package manager " -"'${BPurple}${pkgrepo[i]}${NC}'" +"Attempting to repair dependencies and remove unused packages. Continue? ({y}/" +"{n}) " +msgstr "" + +#: cmd.nu:28 +#, python-brace-format +msgid "No valid inputs given" msgstr "" -"ავირჩიე '${BPurple}${pkgs[i]}${NC}' პაკეტების მმართველიდან " -"'${BPurple}${pkgrepo[i]}${NC}'" -#: rhino-pkg:306 -msgid "Are you sure? (${BGreen}y${NC}/${BRed}N${NC}) " -msgstr "დარწმუნებულ ბრძანდებით? (${BGreen}y${NC}/${BRed}N${NC}) " +#: search.nu:9 search.nu:33 +#, python-brace-format +msgid "Searching Pacstall…" +msgstr "ძებნა Pacstall-ში…" -#: rhino-pkg:341 -msgid "Invalid repository name!" -msgstr "არასწორი რეპოზიტორიის სახელი!" +#: search.nu:12 +#, python-brace-format +msgid "Searching flatpak…" +msgstr "ძებნა flatpak-ში…" + +#: search.nu:15 search.nu:39 +#, python-brace-format +msgid "Searching apt…" +msgstr "ძებნა apt-ში…" + +#: search.nu:17 search.nu:41 +#, python-brace-format +msgid "Searching snap…" +msgstr "ძებნა snap-ში…" diff --git a/po/ko.po b/po/ko.po index 129c2c3..9ed9763 100644 --- a/po/ko.po +++ b/po/ko.po @@ -15,50 +15,80 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Weblate 4.15.2\n" -#: rhino-pkg:97 -msgid "No input given!" -msgstr "주어진 입력 값이 없습니다!" +#: rhino-pkg:83 +#, python-brace-format +msgid "" +"Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." +msgstr "" -#: rhino-pkg:110 -msgid "Searching Pacstall…" -msgstr "Pacstall 검색 중…" +#: rhino-pkg:84 +#, python-brace-format +msgid "No valid subcommand passed" +msgstr "" -#: rhino-pkg:114 -msgid "Searching apt…" -msgstr "APT 검색 중…" +#: rhino-pkg:84 +#, python-brace-format +msgid "Failed here" +msgstr "" -#: rhino-pkg:118 -msgid "Searching flatpak…" -msgstr "Flatpak 검색 중…" +#: rhino-pkg:105 rhino-pkg:128 +#, python-brace-format +msgid "No packages found matching '{rest}'" +msgstr "" -#: rhino-pkg:123 -msgid "Searching snap…" -msgstr "Snap 검색 중…" +#: rhino-pkg:108 +#, python-brace-format +msgid "Select which package to install" +msgstr "설치할 패키지를 선택해주세요" -#: rhino-pkg:129 -msgid "No packages found matching '$*'!" -msgstr "'$*'와 일치하는 패키지를 찾을 수 없습니다!" +#: rhino-pkg:109 +#, python-brace-format +msgid "Selecting '{pkg}' from package manager '{provider}'" +msgstr "" -#: rhino-pkg:132 -msgid "Found packages matching '${BPurple}$*${NC}':" -msgstr "'${BPurple}$*${NC}'와 일치하는 패키지를 찾았습니다:" +#: rhino-pkg:115 +#, python-brace-format +msgid "Failed to install '{pkg}'." +msgstr "" -#: rhino-pkg:168 -msgid "Select which package to install" -msgstr "설치할 패키지를 선택해주세요" +#: rhino-pkg:131 +#, python-brace-format +msgid "Select which package to remove" +msgstr "" -#: rhino-pkg:172 -msgid "'$entered_input' is not a valid number" -msgstr "'$entered_input'은 유효한 번호가 아닙니다" +#: rhino-pkg:133 +#, python-brace-format +msgid "Removing '{part}' from '{provider}'" +msgstr "" -#: rhino-pkg:176 +#: rhino-pkg:142 +#, python-brace-format msgid "" -"Selecting '${BPurple}${pkgs[i]}${NC}' from package manager" -" '${BPurple}${pkgrepo[i]}${NC}'" +"Attempting to repair dependencies and remove unused packages. Continue? ({y}/" +"{n}) " msgstr "" -"패키지 관리자 '${BPurple}${pkgrepo[i]}${NC}'에서 Selecting " -"'${BPurple}${pkgs[i]}${NC}'를 선택했습니다" -#: rhino-pkg:201 -msgid "Invalid repository name!" -msgstr "저장소 이름이 잘못되었습니다!" +#: cmd.nu:28 +#, python-brace-format +msgid "No valid inputs given" +msgstr "" + +#: search.nu:9 search.nu:33 +#, python-brace-format +msgid "Searching Pacstall…" +msgstr "Pacstall 검색 중…" + +#: search.nu:12 +#, python-brace-format +msgid "Searching flatpak…" +msgstr "Flatpak 검색 중…" + +#: search.nu:15 search.nu:39 +#, python-brace-format +msgid "Searching apt…" +msgstr "APT 검색 중…" + +#: search.nu:17 search.nu:41 +#, python-brace-format +msgid "Searching snap…" +msgstr "Snap 검색 중…" diff --git a/po/nl.po b/po/nl.po index 369bf06..e788eb9 100644 --- a/po/nl.po +++ b/po/nl.po @@ -5,8 +5,8 @@ msgstr "" "POT-Creation-Date: 2023-02-26 07:06-0500\n" "PO-Revision-Date: 2023-02-26 15:03+0000\n" "Last-Translator: Heimen Stoffels \n" -"Language-Team: Dutch \n" +"Language-Team: Dutch \n" "Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -14,58 +14,80 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.15.2\n" -#: rhino-pkg:186 -msgid "Are you sure you want to update all packages? (${BGreen}y${NC}/${BRed}N${NC}) " +#: rhino-pkg:83 +#, python-brace-format +msgid "" +"Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." msgstr "" -"Weet u zeker dat u alle pakketten wilt bijwerken? " -"(${BGreen}y${NC}/${BRed}N${NC}) " -#: rhino-pkg:218 -msgid "Searching Pacstall…" -msgstr "Bezig met doorzoeken van Pacstall…" - -#: rhino-pkg:222 -msgid "Searching apt…" -msgstr "Bezig met doorzoeken van apt…" - -#: rhino-pkg:226 -msgid "Searching flatpak…" -msgstr "Bezig met doorzoeken van Flatpak…" - -#: rhino-pkg:231 -msgid "Searching snap…" -msgstr "Bezig met doorzoeken van Snap…" +#: rhino-pkg:84 +#, python-brace-format +msgid "No valid subcommand passed" +msgstr "" -#: rhino-pkg:237 -msgid "No packages found matching '$*'!" -msgstr "Er zijn geen pakketten gevonden die overeenkomen met '$*'!" +#: rhino-pkg:84 +#, python-brace-format +msgid "Failed here" +msgstr "" -#: rhino-pkg:241 -msgid "Found packages matching '${BPurple}$*${NC}':" -msgstr "Pakketten die overeenkomen met '${BPurple}$*${NC}':" +#: rhino-pkg:105 rhino-pkg:128 +#, python-brace-format +msgid "No packages found matching '{rest}'" +msgstr "" -#: rhino-pkg:286 +#: rhino-pkg:108 +#, python-brace-format msgid "Select which package to install" msgstr "Kies de te installeren pakketten" -#: rhino-pkg:292 +#: rhino-pkg:109 +#, python-brace-format +msgid "Selecting '{pkg}' from package manager '{provider}'" +msgstr "" + +#: rhino-pkg:115 +#, python-brace-format +msgid "Failed to install '{pkg}'." +msgstr "" + +#: rhino-pkg:131 +#, python-brace-format msgid "Select which package to remove" msgstr "Kies de te verwijderen pakketten" -#: rhino-pkg:298 -msgid "'${entered_input[*]}' is not a valid number" -msgstr "'${entered_input[*]}' is geen geldig getal" +#: rhino-pkg:133 +#, python-brace-format +msgid "Removing '{part}' from '{provider}'" +msgstr "" + +#: rhino-pkg:142 +#, python-brace-format +msgid "" +"Attempting to repair dependencies and remove unused packages. Continue? ({y}/" +"{n}) " +msgstr "" -#: rhino-pkg:303 -msgid "Selecting '${BPurple}${pkgs[i]}${NC}' from package manager '${BPurple}${pkgrepo[i]}${NC}'" +#: cmd.nu:28 +#, python-brace-format +msgid "No valid inputs given" msgstr "" -"Keuzes: '${BPurple}${pkgs[i]}${NC}' met behulp van pakketbeheerder " -"'${BPurple}${pkgrepo[i]}${NC}'" -#: rhino-pkg:306 -msgid "Are you sure? (${BGreen}y${NC}/${BRed}N${NC}) " -msgstr "Weet u het zeker? (${BGreen}y${NC}/${BRed}N${NC}) " +#: search.nu:9 search.nu:33 +#, python-brace-format +msgid "Searching Pacstall…" +msgstr "Bezig met doorzoeken van Pacstall…" + +#: search.nu:12 +#, python-brace-format +msgid "Searching flatpak…" +msgstr "Bezig met doorzoeken van Flatpak…" + +#: search.nu:15 search.nu:39 +#, python-brace-format +msgid "Searching apt…" +msgstr "Bezig met doorzoeken van apt…" -#: rhino-pkg:341 -msgid "Invalid repository name!" -msgstr "De pakketbronnaam is ongeldig!" +#: search.nu:17 search.nu:41 +#, python-brace-format +msgid "Searching snap…" +msgstr "Bezig met doorzoeken van Snap…" diff --git a/po/pt_BR.po b/po/pt_BR.po index 98ecf47..7588bfd 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -14,58 +14,80 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n > 1;\n" "X-Generator: Weblate 4.17\n" -#: rhino-pkg:186 -msgid "Are you sure you want to update all packages? (${BGreen}y${NC}/${BRed}N${NC}) " +#: rhino-pkg:83 +#, python-brace-format +msgid "" +"Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." msgstr "" -"Tem certeza de que deseja atualizar todos os pacotes? " -"(${BGreen}y${NC}/${BRed}N${NC}) " -#: rhino-pkg:218 -msgid "Searching Pacstall…" -msgstr "Procurando Pacstall…" - -#: rhino-pkg:222 -msgid "Searching apt…" -msgstr "Procurando apt…" - -#: rhino-pkg:226 -msgid "Searching flatpak…" -msgstr "Procurando flatpak…" - -#: rhino-pkg:231 -msgid "Searching snap…" -msgstr "Procurando snap…" +#: rhino-pkg:84 +#, python-brace-format +msgid "No valid subcommand passed" +msgstr "" -#: rhino-pkg:237 -msgid "No packages found matching '$*'!" -msgstr "Nenhum pacote encontrado correspondente a '$*'!" +#: rhino-pkg:84 +#, python-brace-format +msgid "Failed here" +msgstr "" -#: rhino-pkg:241 -msgid "Found packages matching '${BPurple}$*${NC}':" -msgstr "Pacotes encontrados correspondentes a '${BPurple}$*${NC}':" +#: rhino-pkg:105 rhino-pkg:128 +#, python-brace-format +msgid "No packages found matching '{rest}'" +msgstr "" -#: rhino-pkg:286 +#: rhino-pkg:108 +#, python-brace-format msgid "Select which package to install" msgstr "Selecione qual pacote instalar" -#: rhino-pkg:292 +#: rhino-pkg:109 +#, python-brace-format +msgid "Selecting '{pkg}' from package manager '{provider}'" +msgstr "" + +#: rhino-pkg:115 +#, python-brace-format +msgid "Failed to install '{pkg}'." +msgstr "" + +#: rhino-pkg:131 +#, python-brace-format msgid "Select which package to remove" msgstr "Selecione qual pacote remover" -#: rhino-pkg:298 -msgid "'${entered_input[*]}' is not a valid number" -msgstr "'${entered_input[*]}' não é um número válido" +#: rhino-pkg:133 +#, python-brace-format +msgid "Removing '{part}' from '{provider}'" +msgstr "" + +#: rhino-pkg:142 +#, python-brace-format +msgid "" +"Attempting to repair dependencies and remove unused packages. Continue? ({y}/" +"{n}) " +msgstr "" -#: rhino-pkg:303 -msgid "Selecting '${BPurple}${pkgs[i]}${NC}' from package manager '${BPurple}${pkgrepo[i]}${NC}'" +#: cmd.nu:28 +#, python-brace-format +msgid "No valid inputs given" msgstr "" -"Selecionando '${BPurple}${pkgs[i]}${NC}' do gerenciador de pacotes " -"'${BPurple}${pkgrepo[i]}${NC}'" -#: rhino-pkg:306 -msgid "Are you sure? (${BGreen}y${NC}/${BRed}N${NC}) " -msgstr "Tem certeza? (${BGreen}y${NC}/${BRed}N${NC}) " +#: search.nu:9 search.nu:33 +#, python-brace-format +msgid "Searching Pacstall…" +msgstr "Procurando Pacstall…" + +#: search.nu:12 +#, python-brace-format +msgid "Searching flatpak…" +msgstr "Procurando flatpak…" + +#: search.nu:15 search.nu:39 +#, python-brace-format +msgid "Searching apt…" +msgstr "Procurando apt…" -#: rhino-pkg:341 -msgid "Invalid repository name!" -msgstr "Nome de repositório inválido!" +#: search.nu:17 search.nu:41 +#, python-brace-format +msgid "Searching snap…" +msgstr "Procurando snap…" diff --git a/po/rhino-pkg.pot b/po/rhino-pkg.pot index 9082b11..ee2c60b 100644 --- a/po/rhino-pkg.pot +++ b/po/rhino-pkg.pot @@ -1,39 +1,89 @@ -#: rhino-pkg:186 -msgid "Are you sure you want to update all packages? (${BGreen}y${NC}/${BRed}N${NC}) " +msgid "" msgstr "" -#: rhino-pkg:218 -msgid "Searching Pacstall…" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: ENCODING\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#: rhino-pkg:80 +#, python-brace-format +msgid "" +"Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." msgstr "" -#: rhino-pkg:222 -msgid "Searching apt…" + +#: rhino-pkg:81 +#, python-brace-format +msgid "No valid subcommand passed" msgstr "" -#: rhino-pkg:226 -msgid "Searching flatpak…" + +#: rhino-pkg:81 +#, python-brace-format +msgid "Failed here" msgstr "" -#: rhino-pkg:231 -msgid "Searching snap…" + +#: rhino-pkg:102 rhino-pkg:125 +#, python-brace-format +msgid "No packages found matching '{rest}'" msgstr "" -#: rhino-pkg:237 -msgid "No packages found matching '$*'!" + +#: rhino-pkg:105 +#, python-brace-format +msgid "Select which package to install" msgstr "" -#: rhino-pkg:241 -msgid "Found packages matching '${BPurple}$*${NC}':" + +#: rhino-pkg:106 +#, python-brace-format +msgid "Selecting '{pkg}' from package manager '{provider}'" msgstr "" -#: rhino-pkg:286 -msgid "Select which package to install" + +#: rhino-pkg:112 +#, python-brace-format +msgid "Failed to install '{pkg}'." msgstr "" -#: rhino-pkg:292 + +#: rhino-pkg:128 +#, python-brace-format msgid "Select which package to remove" msgstr "" -#: rhino-pkg:298 -msgid "'${entered_input[*]}' is not a valid number" + +#: rhino-pkg:130 +#, python-brace-format +msgid "Removing '{part}' from '{provider}'" msgstr "" -#: rhino-pkg:303 -msgid "Selecting '${BPurple}${pkgs[i]}${NC}' from package manager '${BPurple}${pkgrepo[i]}${NC}'" + +#: rhino-pkg:139 +#, python-brace-format +msgid "" +"Attempting to repair dependencies and remove unused packages. Continue? ({y}/" +"{n}) " msgstr "" -#: rhino-pkg:306 -msgid "Are you sure? (${BGreen}y${NC}/${BRed}N${NC}) " + +#: cmd.nu:28 +#, python-brace-format +msgid "No valid inputs given" msgstr "" -#: rhino-pkg:341 -msgid "Invalid repository name!" + +#: search.nu:9 search.nu:33 +#, python-brace-format +msgid "Searching Pacstall…" +msgstr "" + +#: search.nu:12 +#, python-brace-format +msgid "Searching flatpak…" +msgstr "" + +#: search.nu:15 search.nu:39 +#, python-brace-format +msgid "Searching apt…" +msgstr "" + +#: search.nu:17 search.nu:41 +#, python-brace-format +msgid "Searching snap…" msgstr "" + +#: apt.nu:28 +#, python-brace-format +msgid "`aptitude` not installed." +msgstr "" \ No newline at end of file diff --git a/po/ro.po b/po/ro.po index 081fbff..ed45868 100644 --- a/po/ro.po +++ b/po/ro.po @@ -16,46 +16,80 @@ msgstr "" "20)) ? 1 : 2;\n" "X-Generator: Weblate 4.18.1\n" -#: rhino-pkg:73 -msgid "No input given!" -msgstr "Nu am primit termeni de căutare!" +#: rhino-pkg:83 +#, python-brace-format +msgid "" +"Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." +msgstr "" -#: rhino-pkg:77 -msgid "Searching Pacstall…" -msgstr "Căutare în Pacstall…" +#: rhino-pkg:84 +#, python-brace-format +msgid "No valid subcommand passed" +msgstr "" -#: rhino-pkg:81 -msgid "Searching apt…" -msgstr "Căutare în apt…" +#: rhino-pkg:84 +#, python-brace-format +msgid "Failed here" +msgstr "" -#: rhino-pkg:85 -msgid "Searching flatpak…" -msgstr "Căutare în flatpak…" +#: rhino-pkg:105 rhino-pkg:128 +#, python-brace-format +msgid "No packages found matching '{rest}'" +msgstr "" -#: rhino-pkg:90 -msgid "Searching snap…" -msgstr "Căutare în snap…" +#: rhino-pkg:108 +#, python-brace-format +msgid "Select which package to install" +msgstr "Selectează care aplicație să fie instalată" -#: rhino-pkg:96 -msgid "No packages found matching '$*'!" -msgstr "Nu au fost găsite aplicații care să se potrivească cu '$*'!" +#: rhino-pkg:109 +#, python-brace-format +msgid "Selecting '{pkg}' from package manager '{provider}'" +msgstr "" -#: rhino-pkg:99 -msgid "Found packages matching '${BPurple}$*${NC}':" -msgstr "Următoarele aplicații care se potrivesc cu '${BPurple}$*${NC}' au fost găsite:" +#: rhino-pkg:115 +#, python-brace-format +msgid "Failed to install '{pkg}'." +msgstr "" -#: rhino-pkg:135 -msgid "Select which package to install" -msgstr "Selectează care aplicație să fie instalată" +#: rhino-pkg:131 +#, python-brace-format +msgid "Select which package to remove" +msgstr "" + +#: rhino-pkg:133 +#, python-brace-format +msgid "Removing '{part}' from '{provider}'" +msgstr "" + +#: rhino-pkg:142 +#, python-brace-format +msgid "" +"Attempting to repair dependencies and remove unused packages. Continue? ({y}/" +"{n}) " +msgstr "" + +#: cmd.nu:28 +#, python-brace-format +msgid "No valid inputs given" +msgstr "" -#: rhino-pkg:139 -msgid "'$entered_input' is not a valid number" -msgstr "'$entered_input' nu este un număr valid" +#: search.nu:9 search.nu:33 +#, python-brace-format +msgid "Searching Pacstall…" +msgstr "Căutare în Pacstall…" -#: rhino-pkg:143 -msgid "Selecting '${BPurple}${pkgs[i]}${NC}' from package manager '${BPurple}${pkgrepo[i]}${NC}'" -msgstr "Ai selectat '${BPurple}${pkgs[i]}${NC}' din registrul de aplicații '${BPurple}${pkgrepo[i]}${NC}'" +#: search.nu:12 +#, python-brace-format +msgid "Searching flatpak…" +msgstr "Căutare în flatpak…" -#: rhino-pkg:168 -msgid "Invalid repository name!" -msgstr "Acest registru de aplicații nu există!" +#: search.nu:15 search.nu:39 +#, python-brace-format +msgid "Searching apt…" +msgstr "Căutare în apt…" + +#: search.nu:17 search.nu:41 +#, python-brace-format +msgid "Searching snap…" +msgstr "Căutare în snap…" diff --git a/po/ru.po b/po/ru.po index fe6def2..8593813 100644 --- a/po/ru.po +++ b/po/ru.po @@ -15,56 +15,80 @@ msgstr "" "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Generator: Weblate 5.0-dev\n" -#: rhino-pkg:186 -msgid "Are you sure you want to update all packages? (${BGreen}y${NC}/${BRed}N${NC}) " -msgstr "Обновить все пакеты? (${BGreen}y${NC} да/${BRed}N${NC} нет) " - -#: rhino-pkg:218 -msgid "Searching Pacstall…" -msgstr "Поиск в Pacstall…" - -#: rhino-pkg:222 -msgid "Searching apt…" -msgstr "Поиск в apt…" - -#: rhino-pkg:226 -msgid "Searching flatpak…" -msgstr "Поиск во flatpak…" +#: rhino-pkg:83 +#, python-brace-format +msgid "" +"Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." +msgstr "" -#: rhino-pkg:231 -msgid "Searching snap…" -msgstr "Поиск в snap…" +#: rhino-pkg:84 +#, python-brace-format +msgid "No valid subcommand passed" +msgstr "" -#: rhino-pkg:237 -msgid "No packages found matching '$*'!" -msgstr "Не найдены пакеты по шаблону '$*'!" +#: rhino-pkg:84 +#, python-brace-format +msgid "Failed here" +msgstr "" -#: rhino-pkg:241 -msgid "Found packages matching '${BPurple}$*${NC}':" -msgstr "Пакеты по шаблону '${BPurple}$*${NC}':" +#: rhino-pkg:105 rhino-pkg:128 +#, python-brace-format +msgid "No packages found matching '{rest}'" +msgstr "" -#: rhino-pkg:286 +#: rhino-pkg:108 +#, python-brace-format msgid "Select which package to install" msgstr "Выберите устанавливаемый пакет" -#: rhino-pkg:292 +#: rhino-pkg:109 +#, python-brace-format +msgid "Selecting '{pkg}' from package manager '{provider}'" +msgstr "" + +#: rhino-pkg:115 +#, python-brace-format +msgid "Failed to install '{pkg}'." +msgstr "" + +#: rhino-pkg:131 +#, python-brace-format msgid "Select which package to remove" msgstr "Выберите удаляемый пакет" -#: rhino-pkg:298 -msgid "'${entered_input[*]}' is not a valid number" -msgstr "'${entered_input[*]}' не является числом" +#: rhino-pkg:133 +#, python-brace-format +msgid "Removing '{part}' from '{provider}'" +msgstr "" -#: rhino-pkg:303 -msgid "Selecting '${BPurple}${pkgs[i]}${NC}' from package manager '${BPurple}${pkgrepo[i]}${NC}'" +#: rhino-pkg:142 +#, python-brace-format +msgid "" +"Attempting to repair dependencies and remove unused packages. Continue? ({y}/" +"{n}) " msgstr "" -"Выбран '${BPurple}${pkgs[i]}${NC}' из менеджера пакетов " -"'${BPurple}${pkgrepo[i]}${NC}'" -#: rhino-pkg:306 -msgid "Are you sure? (${BGreen}y${NC}/${BRed}N${NC}) " -msgstr "Вы уверены? (${BGreen}y${NC} да/${BRed}N${NC} нет) " +#: cmd.nu:28 +#, python-brace-format +msgid "No valid inputs given" +msgstr "" + +#: search.nu:9 search.nu:33 +#, python-brace-format +msgid "Searching Pacstall…" +msgstr "Поиск в Pacstall…" -#: rhino-pkg:341 -msgid "Invalid repository name!" -msgstr "Неверное имя репозитория!" +#: search.nu:12 +#, python-brace-format +msgid "Searching flatpak…" +msgstr "Поиск во flatpak…" + +#: search.nu:15 search.nu:39 +#, python-brace-format +msgid "Searching apt…" +msgstr "Поиск в apt…" + +#: search.nu:17 search.nu:41 +#, python-brace-format +msgid "Searching snap…" +msgstr "Поиск в snap…" diff --git a/po/sv.po b/po/sv.po index 39ad16a..f12e2c5 100644 --- a/po/sv.po +++ b/po/sv.po @@ -14,46 +14,80 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 5.10-dev\n" -#: rhino-pkg:73 -msgid "No input given!" -msgstr "Ingen input given!" +#: rhino-pkg:83 +#, python-brace-format +msgid "" +"Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." +msgstr "" -#: rhino-pkg:77 -msgid "Searching Pacstall…" -msgstr "Söker i Pacstall…" +#: rhino-pkg:84 +#, python-brace-format +msgid "No valid subcommand passed" +msgstr "" -#: rhino-pkg:81 -msgid "Searching apt…" -msgstr "Söker i apt…" +#: rhino-pkg:84 +#, python-brace-format +msgid "Failed here" +msgstr "" -#: rhino-pkg:85 -msgid "Searching flatpak…" -msgstr "Söker i flatpak…" +#: rhino-pkg:105 rhino-pkg:128 +#, python-brace-format +msgid "No packages found matching '{rest}'" +msgstr "" -#: rhino-pkg:90 -msgid "Searching snap…" -msgstr "Söker i snap…" +#: rhino-pkg:108 +#, python-brace-format +msgid "Select which package to install" +msgstr "Välj vilket paket att installera" -#: rhino-pkg:96 -msgid "No packages found matching '$*'!" -msgstr "Inga paket hittas som liknar '$*'!" +#: rhino-pkg:109 +#, python-brace-format +msgid "Selecting '{pkg}' from package manager '{provider}'" +msgstr "" -#: rhino-pkg:99 -msgid "Found packages matching '${BPurple}$*${NC}':" -msgstr "Hittade paket som liknar '${BPurple}$*${NC}':" +#: rhino-pkg:115 +#, python-brace-format +msgid "Failed to install '{pkg}'." +msgstr "" -#: rhino-pkg:135 -msgid "Select which package to install" -msgstr "Välj vilket paket att installera" +#: rhino-pkg:131 +#, python-brace-format +msgid "Select which package to remove" +msgstr "" + +#: rhino-pkg:133 +#, python-brace-format +msgid "Removing '{part}' from '{provider}'" +msgstr "" + +#: rhino-pkg:142 +#, python-brace-format +msgid "" +"Attempting to repair dependencies and remove unused packages. Continue? ({y}/" +"{n}) " +msgstr "" + +#: cmd.nu:28 +#, python-brace-format +msgid "No valid inputs given" +msgstr "" -#: rhino-pkg:139 -msgid "'$entered_input' is not a valid number" -msgstr "'$entered_input' är inte ett giltigt nummer" +#: search.nu:9 search.nu:33 +#, python-brace-format +msgid "Searching Pacstall…" +msgstr "Söker i Pacstall…" -#: rhino-pkg:143 -msgid "Selecting '${BPurple}${pkgs[i]}${NC}' from package manager '${BPurple}${pkgrepo[i]}${NC}'" -msgstr "Väljer '${BPurple}${pkgs[i]}${NC}' från pakethanterare '${BPurple}${pkgrepo[i]}${NC}'" +#: search.nu:12 +#, python-brace-format +msgid "Searching flatpak…" +msgstr "Söker i flatpak…" -#: rhino-pkg:168 -msgid "Invalid repository name!" -msgstr "Ogiltigt arkivnamn!" +#: search.nu:15 search.nu:39 +#, python-brace-format +msgid "Searching apt…" +msgstr "Söker i apt…" + +#: search.nu:17 search.nu:41 +#, python-brace-format +msgid "Searching snap…" +msgstr "Söker i snap…" diff --git a/po/uk.po b/po/uk.po index 8b85a43..f76a8ee 100644 --- a/po/uk.po +++ b/po/uk.po @@ -11,65 +11,84 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" -"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Generator: Weblate 4.18.1\n" -#: rhino-pkg:186 +#: rhino-pkg:83 +#, python-brace-format msgid "" -"Are you sure you want to update all packages? (${BGreen}y${NC}/${BRed}N" -"${NC}) " +"Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." msgstr "" -"Ви впевнені, що хочете оновити всі пакунки? (${BGreen}y${NC}/${BRed}N${NC}) " -#: rhino-pkg:218 -msgid "Searching Pacstall…" -msgstr "Пошук Pacstall…" - -#: rhino-pkg:222 -msgid "Searching apt…" -msgstr "Пошук apt…" - -#: rhino-pkg:226 -msgid "Searching flatpak…" -msgstr "Пошук flatpak…" - -#: rhino-pkg:231 -msgid "Searching snap…" -msgstr "Пошук snap…" +#: rhino-pkg:84 +#, python-brace-format +msgid "No valid subcommand passed" +msgstr "" -#: rhino-pkg:237 -msgid "No packages found matching '$*'!" -msgstr "Не знайдено пакунків, що відповідають '$*'!" +#: rhino-pkg:84 +#, python-brace-format +msgid "Failed here" +msgstr "" -#: rhino-pkg:241 -msgid "Found packages matching '${BPurple}$*${NC}':" -msgstr "Знайдено пакунки, які відповідають '${BPurple}$*${NC}':" +#: rhino-pkg:105 rhino-pkg:128 +#, python-brace-format +msgid "No packages found matching '{rest}'" +msgstr "" -#: rhino-pkg:286 +#: rhino-pkg:108 +#, python-brace-format msgid "Select which package to install" msgstr "Виберіть, який пакунок встановити" -#: rhino-pkg:292 +#: rhino-pkg:109 +#, python-brace-format +msgid "Selecting '{pkg}' from package manager '{provider}'" +msgstr "" + +#: rhino-pkg:115 +#, python-brace-format +msgid "Failed to install '{pkg}'." +msgstr "" + +#: rhino-pkg:131 +#, python-brace-format msgid "Select which package to remove" msgstr "Виберіть, який пакунок видалити" -#: rhino-pkg:298 -msgid "'${entered_input[*]}' is not a valid number" -msgstr "'${entered_input[*]}' неприпустиме число" +#: rhino-pkg:133 +#, python-brace-format +msgid "Removing '{part}' from '{provider}'" +msgstr "" -#: rhino-pkg:303 +#: rhino-pkg:142 +#, python-brace-format msgid "" -"Selecting '${BPurple}${pkgs[i]}${NC}' from package manager " -"'${BPurple}${pkgrepo[i]}${NC}'" +"Attempting to repair dependencies and remove unused packages. Continue? ({y}/" +"{n}) " +msgstr "" + +#: cmd.nu:28 +#, python-brace-format +msgid "No valid inputs given" msgstr "" -"Вибір '${BPurple}${pkgs[i]}${NC}' з менеджера пакунків " -"'${BPurple}${pkgrepo[i]}${NC}'" -#: rhino-pkg:306 -msgid "Are you sure? (${BGreen}y${NC}/${BRed}N${NC}) " -msgstr "Ви впевнені? (${BGreen}y${NC}/${BRed}N${NC}) " +#: search.nu:9 search.nu:33 +#, python-brace-format +msgid "Searching Pacstall…" +msgstr "Пошук Pacstall…" -#: rhino-pkg:341 -msgid "Invalid repository name!" -msgstr "Неправильна назва сховища!" +#: search.nu:12 +#, python-brace-format +msgid "Searching flatpak…" +msgstr "Пошук flatpak…" + +#: search.nu:15 search.nu:39 +#, python-brace-format +msgid "Searching apt…" +msgstr "Пошук apt…" + +#: search.nu:17 search.nu:41 +#, python-brace-format +msgid "Searching snap…" +msgstr "Пошук snap…" diff --git a/po/ur.po b/po/ur.po index 60d4c45..e6f7e0f 100644 --- a/po/ur.po +++ b/po/ur.po @@ -5,8 +5,8 @@ msgstr "" "POT-Creation-Date: 2023-02-06 11:47-0500\n" "PO-Revision-Date: 2023-02-06 20:02+0000\n" "Last-Translator: Sourajyoti Basak \n" -"Language-Team: Urdu \n" +"Language-Team: Urdu \n" "Language: ur\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -14,48 +14,80 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.15.2\n" -#: rhino-pkg:97 -msgid "No input given!" -msgstr "کوئی ان پٹ نہیں دیا گیا!" +#: rhino-pkg:83 +#, python-brace-format +msgid "" +"Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." +msgstr "" -#: rhino-pkg:110 -msgid "Searching Pacstall…" -msgstr "Pacstall میں تلاش کر رہا ہے…" +#: rhino-pkg:84 +#, python-brace-format +msgid "No valid subcommand passed" +msgstr "" -#: rhino-pkg:114 -msgid "Searching apt…" -msgstr "apt میں تلاش کر رہا ہے…" +#: rhino-pkg:84 +#, python-brace-format +msgid "Failed here" +msgstr "" -#: rhino-pkg:118 -msgid "Searching flatpak…" -msgstr "flatpak میں تلاش کر رہا ہے…" +#: rhino-pkg:105 rhino-pkg:128 +#, python-brace-format +msgid "No packages found matching '{rest}'" +msgstr "" -#: rhino-pkg:123 -msgid "Searching snap…" -msgstr "snap میں تلاش کر رہا ہے…" +#: rhino-pkg:108 +#, python-brace-format +msgid "Select which package to install" +msgstr "منتخب کریں کہ کون سا پیکیج انسٹال کرنا ہے" -#: rhino-pkg:129 -msgid "No packages found matching '$*'!" -msgstr "'$*' سے مماثل کوئی پیکیج نہیں ملا!" +#: rhino-pkg:109 +#, python-brace-format +msgid "Selecting '{pkg}' from package manager '{provider}'" +msgstr "" -#: rhino-pkg:132 -msgid "Found packages matching '${BPurple}$*${NC}':" -msgstr "'${Bpurple}$*${NC}' سے مماثل پیکیجز ملے:" +#: rhino-pkg:115 +#, python-brace-format +msgid "Failed to install '{pkg}'." +msgstr "" -#: rhino-pkg:168 -msgid "Select which package to install" -msgstr "منتخب کریں کہ کون سا پیکیج انسٹال کرنا ہے" +#: rhino-pkg:131 +#, python-brace-format +msgid "Select which package to remove" +msgstr "" -#: rhino-pkg:172 -msgid "'$entered_input' is not a valid number" -msgstr "'$entered_input' درست تعداد نہیں ہے" +#: rhino-pkg:133 +#, python-brace-format +msgid "Removing '{part}' from '{provider}'" +msgstr "" -#: rhino-pkg:176 -msgid "Selecting '${BPurple}${pkgs[i]}${NC}' from package manager '${BPurple}${pkgrepo[i]}${NC}'" +#: rhino-pkg:142 +#, python-brace-format +msgid "" +"Attempting to repair dependencies and remove unused packages. Continue? ({y}/" +"{n}) " msgstr "" -"پیکیج مینیجر سے '${BPurple}${pkgs[i]}${NC}' کو منتخب کیا گیا " -"'${BPurple}${pkgrepo[i]}${NC}'" -#: rhino-pkg:201 -msgid "Invalid repository name!" +#: cmd.nu:28 +#, python-brace-format +msgid "No valid inputs given" msgstr "" + +#: search.nu:9 search.nu:33 +#, python-brace-format +msgid "Searching Pacstall…" +msgstr "Pacstall میں تلاش کر رہا ہے…" + +#: search.nu:12 +#, python-brace-format +msgid "Searching flatpak…" +msgstr "flatpak میں تلاش کر رہا ہے…" + +#: search.nu:15 search.nu:39 +#, python-brace-format +msgid "Searching apt…" +msgstr "apt میں تلاش کر رہا ہے…" + +#: search.nu:17 search.nu:41 +#, python-brace-format +msgid "Searching snap…" +msgstr "snap میں تلاش کر رہا ہے…" diff --git a/po/zh_CN.po b/po/zh_CN.po index b49ec25..f68075a 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -15,55 +15,80 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Weblate 5.7-dev\n" -#: rhino-pkg:186 -msgid "Are you sure you want to update all packages? (${BGreen}y${NC}/${BRed}N${NC}) " -msgstr "确定更新全部软件包? (${BGreen}y${NC}/${BRed}N${NC}) " - -#: rhino-pkg:218 -msgid "Searching Pacstall…" -msgstr "正在检索Pacstall…" - -#: rhino-pkg:222 -msgid "Searching apt…" -msgstr "正在检索apt…" - -#: rhino-pkg:226 -msgid "Searching flatpak…" -msgstr "正在检索flatpak…" +#: rhino-pkg:83 +#, python-brace-format +msgid "" +"Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." +msgstr "" -#: rhino-pkg:231 -msgid "Searching snap…" -msgstr "正在检索snap…" +#: rhino-pkg:84 +#, python-brace-format +msgid "No valid subcommand passed" +msgstr "" -#: rhino-pkg:237 -msgid "No packages found matching '$*'!" -msgstr "未找到匹配 '$*' 的软件包!" +#: rhino-pkg:84 +#, python-brace-format +msgid "Failed here" +msgstr "" -#: rhino-pkg:241 -msgid "Found packages matching '${BPurple}$*${NC}':" -msgstr "找到匹配 '${BPurple}$*${NC}' 的软件包:" +#: rhino-pkg:105 rhino-pkg:128 +#, python-brace-format +msgid "No packages found matching '{rest}'" +msgstr "" -#: rhino-pkg:286 +#: rhino-pkg:108 +#, python-brace-format msgid "Select which package to install" msgstr "选择要安装的软件包" -#: rhino-pkg:292 +#: rhino-pkg:109 +#, python-brace-format +msgid "Selecting '{pkg}' from package manager '{provider}'" +msgstr "" + +#: rhino-pkg:115 +#, python-brace-format +msgid "Failed to install '{pkg}'." +msgstr "" + +#: rhino-pkg:131 +#, python-brace-format msgid "Select which package to remove" msgstr "选择要移除的软件包" -#: rhino-pkg:298 -msgid "'${entered_input[*]}' is not a valid number" -msgstr "'${entered_input[*]}' 不是一个有效数字" +#: rhino-pkg:133 +#, python-brace-format +msgid "Removing '{part}' from '{provider}'" +msgstr "" -#: rhino-pkg:303 -msgid "Selecting '${BPurple}${pkgs[i]}${NC}' from package manager '${BPurple}${pkgrepo[i]}${NC}'" -msgstr "从软件包管理器 '${BPurple}${pkgrepo[i]}${NC}' 中选择 " -"'${BPurple}${pkgs[i]}${NC}'" +#: rhino-pkg:142 +#, python-brace-format +msgid "" +"Attempting to repair dependencies and remove unused packages. Continue? ({y}/" +"{n}) " +msgstr "" -#: rhino-pkg:306 -msgid "Are you sure? (${BGreen}y${NC}/${BRed}N${NC}) " -msgstr "是否确定? (${BGreen}y${NC}/${BRed}N${NC}) " +#: cmd.nu:28 +#, python-brace-format +msgid "No valid inputs given" +msgstr "" + +#: search.nu:9 search.nu:33 +#, python-brace-format +msgid "Searching Pacstall…" +msgstr "正在检索Pacstall…" -#: rhino-pkg:341 -msgid "Invalid repository name!" -msgstr "无效仓库名称!" +#: search.nu:12 +#, python-brace-format +msgid "Searching flatpak…" +msgstr "正在检索flatpak…" + +#: search.nu:15 search.nu:39 +#, python-brace-format +msgid "Searching apt…" +msgstr "正在检索apt…" + +#: search.nu:17 search.nu:41 +#, python-brace-format +msgid "Searching snap…" +msgstr "正在检索snap…" diff --git a/rhino-pkg b/rhino-pkg index 7344c08..a90d6c5 100755 --- a/rhino-pkg +++ b/rhino-pkg @@ -1,439 +1,156 @@ -#!/bin/bash - -tabs -4 - -export TEXTDOMAIN=rhino-pkg -if [[ -n $RHINOPKG_DEBUG ]]; then - export TEXTDOMAINDIR="${PWD}/locale" -else - export TEXTDOMAINDIR=/usr/share/locale -fi - -# Colors -if [[ -z $NO_COLOR ]]; then - export NC=$'\033[0m' - export BGreen=$'\033[1;32m' - export BCyan=$'\033[1;36m' - export BYellow=$'\033[1;33m' - export BPurple=$'\033[1;35m' - export BRed=$'\033[1;31m' - export BWhite=$'\033[1;37m' - export c1=$'\u001b[38;5;104m' # light purple - export c2=$'\u001b[0m' # white/reset - export c3=$'\u001b[38;5;55m' # dark purple - export c4=$'\u001b[38;5;98m' # medium purple -fi - -help_flag="USAGE: $(basename $0) [function] {flag} - -functions: - install: Install package(s) - Prompts user to respond with - the number(s) associated with the desired package(s). - - remove: Uninstall package(s) - Prompts user to respond with - the number(s) associated with the desired package(s). - - search: Search for package(s) - Does not have a second prompt. - - update: Updates all packages accessible to the wrapper - does - not accept , instead use install to update - individual packages. Has a confirmation prompt. - - cleanup: Attempts to repair broken dependencies and remove any - unused packages. Does not accept , but has - a confirmation prompt. - -flags: - --help/-h: Display this page - - --description/-d: By default, $(basename $0) will only display packages - that contain within their name. Use this flag to increase - range and display packages with in their description. - - -y: Makes functions with confirmation prompts run promptless. - -input: - Provide a package name or description. - -Example execution: - \$ $(basename $0) install foobar - Found packages matching '${BPurple}foobar${NC}': - - [${BGreen}0${NC}]: pyfoobar (${BGreen}apt${NC}) - [${BGreen}1${NC}]: foobarshell (${BGreen}apt${NC}) - [${BCyan}2${NC}]: foobar (${BCyan}flatpak${NC}) - [${BRed}3${NC}]: foobar-web (${BRed}snap${NC}) - [${BYellow}4${NC}]: foobar-bin (${BYellow}pacstall${NC}) - [${BYellow}5${NC}]: foobar-theme (${BYellow}pacstall${NC}) - - Select which package to install [0-5]: 3 4 5 - Selecting '${BPurple}foobar-web${NC}' from package manager '${BPurple}snap${NC}' - Selecting '${BPurple}foobar-bin${NC}' from package manager '${BPurple}pacstall${NC}' - Selecting '${BPurple}foobar-theme${NC}' from package manager '${BPurple}pacstall${NC}' - Are you sure? (${BGreen}y${NC}/${BRed}N${NC}) - [...] - -${c1} .;:;,. .: -${c1} 'coooooooo:oo.';. -${c1} ,oooooooooooooooo ; -${c1} clllcccllloooooooo;c:'o -${c1}.${c3};${c4}';:::::::::${c1}cclooooooo' -${c3}''',${c4}::::::::::::::${c1}ccclc. -${c3}.'''${c4};::::::::::${c2}l${c4}::::::: -${c3} ''''${c4},:::::::::${c2}kd${c4}. -${c3} .'''''${c4},;::${c2}ck:${c2}oW${c4}; -${c3} ''''''''${c2}kXOM. -${c3} .,,:${c2}dXMK -${c3} ${c2}:k - -$(basename "$0") 0.1.2 -A package manager wrapper for Pacstall, APT, Flatpak and snap -Developed by Elsie19 for -the Rhino Linux distribution." - -function msg() { - local input="$*" - echo -e "$input" -} - -function prompt() { - local input="$1" - local index="$2" - echo -ne "$input [0-$index]: ${BWhite}" +#!/usr/bin/env -S nu --plugins '[/usr/share/nutext/nu_plugin_nutext]' + +use "/usr/share/rhino-pkg/modules/lib/" [search] +use "/usr/share/rhino-pkg/modules/lib/cmd.nu" [prompt, install-pkg, cleanup-pkg, remove-pkg] + +tregister /usr/share/locale/ rhino-pkg + +# USAGE: rpk [function] {flag} +# +# functions: +# install: Install package(s) - Prompts user to respond with +# the number(s) associated with the desired package(s). +# +# remove: Uninstall package(s) - Prompts user to respond with +# the number(s) associated with the desired package(s). +# +# search: Search for package(s) - Does not have a second prompt. +# +# update: Updates all packages accessible to the wrapper - does +# not accept , instead use install to update +# individual packages. Has a confirmation prompt. +# +# cleanup: Attempts to repair broken dependencies and remove any +# unused packages. Does not accept , but has +# a confirmation prompt. +# +# flags: +# --help/-h: Display this page +# +# --description/-d: By default, rpk will only display packages +# that contain within their name. Use this flag to increase +# range and display packages with in their description. +# +# -y: Makes functions with confirmation prompts run promptless. +# +# input: +# Provide a package name or description. +# +# Example execution: +# $ rpk install foobar +# Found packages matching: 'foobar': +# +# [0]: pyfoobar (apt) +# [1]: foobarshell (apt) +# [2]: foobar (flatpak) +# [3]: foobar-web (snap) +# [4]: foobar-bin (pacstall) +# [5]: foobar-theme (pacstall) +# +# Select which package to install [0-5]: 3 4 5 +# Selecting 'foobar-web' from package manager 'snap' +# Selecting 'foobar-bin' from package manager 'pacstall' +# Selecting 'foobar-theme' from package manager 'pacstall' +# Are you sure? (y/N) +# [...] +# +# .;:;,. .: +# 'coooooooo:oo.';. +# ,oooooooooooooooo ; +# clllcccllloooooooo;c:'o +# .;';:::::::::cclooooooo' +# ''',::::::::::::::ccclc. +# .''';::::::::::l::::::: +# '''',:::::::::kd. +# .''''',;::ck:oW; +# ''''''''kXOM. +# .,,:dXMK +# :k +# +# rpk 1.0.0 +# A package manager wrapper for Pacstall, APT, Flatpak and snap +# Developed by Elsie19 for +# the Rhino Linux distribution. +def main [ + --description (-d) # Increase range and display packages with in their description + --yes (-y) # Makes functions with confirmation prompts run promptless + ...rest: string # 'install', 'remove', 'search', 'update', 'cleanup', etc +] : any -> int { + if ($rest | is-empty) { + tprint -e "Valid subcommands are 'install', 'remove', 'search', 'update', 'cleanup'." + error make -u { msg: (_ "No valid subcommand passed"), label: { text: (_ "Failed here"), span: (metadata $rest).span } } + exit 1 + } } -function clearscr() { - tput cuu 1 && tput el +def "main search" [ + --description (-d) # Increase range and display packages with in their description + rest: string # Search query +] { + # Block output from `return` here. + let dummy = (search search-pkgs $description $rest) } -function search_pacstall() { - if [[ -z $DESCRIPTION ]]; then - if ! pacstall -S "$*" > /dev/null 2>&1; then - return 1 - else - # remove color codes - local contents=("$(pacstall -S "$*" | sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g' | awk '{print $1}')") - fi - else - if ! pacstall -Sd "$*" > /dev/null 2>&1; then - return 1 - else - # remove color codes - local contents=("$(pacstall -Sd "$*" | sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g' | awk '{print $1}')") - fi - fi - echo "${contents[@]}" +def "main install" [ + --description (-d) # Increase range and display packages with in their description + --yes (-y) # Makes functions with confirmation prompts run promptless + rest: string # Search query +] { + # Block output from `return` here. + let dummy = (search search-pkgs $description $rest) + if (($dummy | length) <= 0) { + tprint -e "No packages found matching '{rest}'" { rest: $rest } + return + } + let which = (prompt (_ "Select which package to install") $dummy) + $which | each {|part| tprint "Selecting '{pkg}' from package manager '{provider}'" { pkg: $"(ansi purple_bold)($part.pkg)(ansi reset)", provider: $"(ansi purple_bold)($part.provider)(ansi reset)" } } + for part in $which { + try { + install-pkg ($part | reject index) $yes + } catch { + |err| + tprint -e "Failed to install '{pkg}'." { pkg: $part.pkg } + exit $env.LAST_EXIT_CODE + } + } } -function search_apt() { - if [[ -z $DESCRIPTION ]]; then - local contents=("$(apt-cache search --names-only "$*" | awk '{print $1}')") - else - local contents=("$(apt-cache search "$*" | awk '{print $1}')") - fi - if [[ -n $contents ]]; then - echo "${contents[@]}" - else - return 1 - fi +def "main remove" [ + --yes (-y) # Makes functions with confirmation prompts run promptless + rest: string # Search query +] { + # Block output from `return` here. + let dummy = (search search-local-pkgs $rest) + if (($dummy | length) <= 0) { + tprint -e "No packages found matching '{rest}'" { rest: $rest } + return + } + let which = (prompt (_ "Select which package to remove") $dummy) + $which | each {|part| + tprint -e "Removing '{part}' from '{provider}'" { part: $part.pkg, provider: $part.provider } + remove-pkg ($part | reject index) $yes + } } -function search_flatpak() { - if [[ -z $DESCRIPTION ]]; then - local contents=("$(LC_ALL=C sudo flatpak search --columns="application" "$*" | grep -i --color=never "$*")") - else - local contents=("$(LC_ALL=C sudo flatpak search --columns="application" "$*")") - fi - if [[ ${contents[*]} == "No matches found" ]]; then - return 1 - else - echo "${contents[@]}" - fi +def "main cleanup" [ + --yes (-y) # Makes functions with confirmation prompts run promptless +] { + if not $yes { + if (input (_ "Attempting to repair dependencies and remove unused packages. Continue? ({y}/{n}) " { y: $"(ansi green_bold)y(ansi reset)", n: $"(ansi red_bold)N(ansi reset)" }) + | str downcase + | str starts-with "n") { + exit 1 + } + } + cleanup-pkg $yes } -function search_snap() { - if [[ -z $DESCRIPTION ]]; then - local contents=("$(snap find "$*" | awk '{ print $1 }' | tail -n +2 | grep -i --color=never "$*")") - else - local contents=("$(snap find "$*" | awk '{ print $1 }' | tail -n +2)") - fi - if [[ ${contents[*]} == "No matching snaps for"* ]]; then - return 1 - else - echo "${contents[@]}" - fi +def "main update" [ + --yes (-y) # Makes functions with confirmation prompts run promptless +] { + use "/usr/share/rhino-pkg/modules/pluggables/" [apt, flatpak, pacstall, snap] + apt upgrade $yes + flatpak upgrade $yes + pacstall upgrade $yes + snap upgrade $yes } - -case "${1}" in - search) - SEARCH=true - shift - ;; - install) - INSTALL=true - shift - ;; - remove) - REMOVE=true - shift - ;; - cleanup) - CLEANUP=true - shift - if [[ $1 == "-y" ]]; then - PROMPTLESS=true - shift - fi - ;; - update) - UPDATE=true - shift - if [[ $1 == "-y" ]]; then - PROMPTLESS=true - shift - fi - ;; - -h | --help) - echo "$help_flag" - exit 0 - ;; - *) - echo "$help_flag" - exit 1 - ;; -esac - -if [[ $1 == "-d" || $1 == "--description" ]]; then - DESCRIPTION=true - shift -fi - -if [[ -n $UPDATE ]]; then - if [[ -n $* ]]; then - exit 1 - fi - if [[ -z $PROMPTLESS ]]; then - echo -n $"Are you sure you want to update all packages? (${BGreen}y${NC}/${BRed}N${NC}) " - read -ra read_update - echo -ne "${NC}" - else - read_update=("Y") - fi - case "${read_update[0]}" in - Y* | y*) ;; - *) exit 1 ;; - esac - if command -v nala &> /dev/null; then - if [[ -n $PROMPTLESS ]]; then - sudo nala upgrade -y --full --no-autoremove -o Acquire::AllowReleaseInfoChange="true" - else - sudo nala upgrade --full --no-autoremove -o Acquire::AllowReleaseInfoChange="true" - fi - else - if [[ -n $PROMPTLESS ]]; then - sudo apt update --allow-releaseinfo-change && sudo apt upgrade -y - else - sudo apt update --allow-releaseinfo-change && sudo apt upgrade - fi - fi - if command -v pacstall &> /dev/null; then - if [[ -n $PROMPTLESS ]]; then - pacstall -U - pacstall -PUp - else - pacstall -U - pacstall -Up - fi - fi - if command -v flatpak &> /dev/null; then - if [[ -n $PROMPTLESS ]]; then - sudo flatpak update -y - else - sudo flatpak update - fi - fi - if command -v snap &> /dev/null; then - sudo snap refresh - fi - exit 0 -fi - -if [[ -n $CLEANUP ]]; then - if [[ -n $* ]]; then - exit 1 - fi - if [[ -z $PROMPTLESS ]]; then - echo -n $"Attempting to repair dependencies and remove unused packages. Continue? (${BGreen}y${NC}/${BRed}N${NC}) " - read -ra read_update - echo -ne "${NC}" - else - read_update=("Y") - fi - case "${read_update[0]}" in - Y* | y*) ;; - *) exit 1 ;; - esac - if command -v nala &> /dev/null; then - if [[ -n $PROMPTLESS ]]; then - sudo nala install --fix-broken && sudo nala autoremove -y - else - sudo nala install --fix-broken && sudo nala autoremove - fi - else - if [[ -n $PROMPTLESS ]]; then - sudo apt --fix-broken install && sudo apt auto-remove -y - else - sudo apt --fix-broken install && sudo apt auto-remove - fi - fi - if command -v flatpak &> /dev/null; then - if [[ -n $PROMPTLESS ]]; then - sudo flatpak repair && sudo flatpak uninstall --unused -y - else - sudo flatpak repair && sudo flatpak uninstall --unused - fi - fi - if command -v snap &> /dev/null; then - if [[ -z "$(LANG=C snap list --all | while read snapname ver rev trk pub notes; do if [[ "$notes" == *disabled* ]]; then sudo snap remove "$snapname" --revision="$rev"; fi; done)" ]]; then - echo "Nothing for snap to clean." - fi - fi - exit 0 -fi - -# Lowercase the rest of input -set -- "${*,,}" - -if command -v pacstall &> /dev/null; then - msg $"Searching Pacstall…" - pacstall_search_list=($(search_pacstall $*)) - clearscr -fi -msg $"Searching apt…" -apt_search_list=($(search_apt $*)) -clearscr -if command -v flatpak &> /dev/null; then - msg $"Searching flatpak…" - flatpak_search_list=($(search_flatpak $*)) - clearscr -fi -if command -v snap &> /dev/null; then - msg $"Searching snap…" - snap_search_list=($(search_snap $*)) - clearscr -fi - -if [[ ${#pacstall_search_list} -eq 0 && ${#apt_search_list} -eq 0 && ${#flatpak_search_list} -eq 0 && ${#snap_search_list} -eq 0 ]]; then - msg $"No packages found matching '$*'!" - exit 1 -fi - -msg $"Found packages matching '${BPurple}$*${NC}':" -echo - -count=0 -pkgs=() -pkgrepo=() - -for i in "${flatpak_search_list[@]}"; do - echo -e "[${BCyan}$count${NC}]: $i (${BCyan}flatpak${NC})" - pkgs+=("$i") - pkgrepo+=("flatpak") - ((count++)) -done -for i in "${apt_search_list[@]}"; do - echo -e "[${BGreen}$count${NC}]: $i (${BGreen}apt${NC})" - pkgs+=("$i") - pkgrepo+=("apt") - ((count++)) -done -for i in "${pacstall_search_list[@]}"; do - echo -e "[${BYellow}$count${NC}]: $i (${BYellow}pacstall${NC})" - pkgs+=("$i") - pkgrepo+=("pacstall") - ((count++)) -done -for i in "${snap_search_list[@]}"; do - echo -e "[${BRed}$count${NC}]: $i (${BRed}snap${NC})" - pkgs+=("$i") - pkgrepo+=("snap") - ((count++)) -done - -((count--)) - -if [[ -n $SEARCH ]]; then - exit 0 -fi - -echo - -if [[ -n $INSTALL ]]; then - flatpak_cmd="install" - snap_cmd="install" - apt_cmd="install" - pacstall_cmd="-I" - prompt $"Select which package to install" "$count" -elif [[ -n $REMOVE ]]; then - flatpak_cmd="remove" - snap_cmd="remove" - apt_cmd="remove" - pacstall_cmd="-R" - prompt $"Select which package to remove" "$count" -fi - -read -ra entered_input -echo -ne "${NC}" -if ((count == 0)) && [[ -z ${entered_input[*]} ]]; then - entered_input="0" -elif [[ ! ${entered_input[*]} =~ ^(([0-9])\s?)+ ]]; then - msg $"'${entered_input[*]}' is not a valid number" - exit 1 -fi - -for i in "${entered_input[@]}"; do - msg $"Selecting '${BPurple}${pkgs[i]}${NC}' from package manager '${BPurple}${pkgrepo[i]}${NC}'" -done - -echo -n $"Are you sure? (${BGreen}y${NC}/${BRed}N${NC}) " -read -r sure -case "${sure}" in - Y* | y*) - true - ;; - *) - exit 1 - ;; -esac - -for i in "${entered_input[@]}"; do - case "${pkgrepo[i]}" in - flatpak) - sudo flatpak "${flatpak_cmd}" "${pkgs[i]}" -y - ret=$? - ;; - apt) - if command -v nala &> /dev/null; then - sudo nala "${apt_cmd}" "${pkgs[i]}" -y - ret=$? - else - sudo apt "${apt_cmd}" "${pkgs[i]}" -y - ret=$? - fi - ;; - pacstall) - pacstall "${pacstall_cmd}" "${pkgs[i]}" - ret=$? - ;; - snap) - sudo snap "${snap_cmd}" "${pkgs[i]}" - ret=$? - ;; - *) - msg $"Invalid repository name!" - exit 1 - ;; - esac -done - -exit "$ret"