new: implement the search command

This commit is contained in:
ngn
2024-08-22 02:16:11 +03:00
parent a7370423a6
commit 86b1481774
6 changed files with 296 additions and 56 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-22 01:00+0300\n"
"POT-Creation-Date: 2024-08-22 02:15+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -90,93 +90,98 @@ msgid "list all the installed packages"
msgstr "list all the installed packages"
#: src/main.c:66
msgid "search for packages by name/desc/version"
msgstr ""
#: src/main.c:67
msgid "update the pool info and package lists"
msgstr "update the pool info and package lists"
#: src/main.c:67
#: src/main.c:68
msgid "install package(s) from remote pools"
msgstr "install package(s) from remote pools"
#: src/main.c:68
#: src/main.c:69
msgid "remove installed package(s)"
msgstr "remove installed package(s)"
#: src/main.c:69
#: src/main.c:70
msgid "update installed package(s)"
msgstr "update installed package(s)"
#: src/main.c:118
#: src/main.c:119
msgid "Failed to access the root directory, are you running as root?"
msgstr "Failed to access the root directory, are you running as root?"
#: src/main.c:122
#: src/main.c:123
msgid "Failed to access the data directory ("
msgstr "Failed to access the data directory ("
#: src/main.c:126
#: src/main.c:127
msgid "Failed to access the temp directory ("
msgstr "Failed to access the temp directory ("
#: src/main.c:130
#: src/main.c:131
#, c-format
msgid "Failed to initialize libmp context: %s"
msgstr "Failed to initialize libmp context: %s"
#: src/main.c:141
#: src/main.c:142
msgid "Failed to create the pools directory ("
msgstr "Failed to create the pools directory ("
#: src/main.c:151
#: src/main.c:152
msgid "Failed to add pool "
msgstr "Failed to add pool "
#: src/main.c:165
#: src/main.c:166
msgid "Failed to lock, matt is already running"
msgstr "Failed to lock, matt is already running"
#: src/main.c:169
#: src/main.c:170
msgid "Failed to lock, are you root?"
msgstr "Failed to lock, are you root?"
#: src/main.c:182
#: src/main.c:183
msgid "Command not found: "
msgstr "Command not found: "
#: src/main.c:183
#: src/main.c:184
msgid "Displaying help information"
msgstr "Displaying help information"
#: src/main.c:186
#: src/main.c:187
#, c-format
msgid "MatterLinux package manager %s (libmp %s)"
msgstr "MatterLinux package manager %s (libmp %s)"
#: src/main.c:187
#: src/main.c:188
msgid "Usage: "
msgstr "Usage: "
#: src/main.c:189
#: src/main.c:190
msgid "Here is a list of available commands:"
msgstr "Here is a list of available commands:"
#: src/main.c:195
#: src/main.c:196
msgid "To list different options, use commands with "
msgstr "To list different options, use commands with "
#: src/main.c:196
#: src/main.c:197
msgid "Here is a list of available global options:"
msgstr "Here is a list of available global options:"
#: src/main.c:199 src/main.c:200 src/cmd/info.c:52 src/cmd/info.c:53
#: src/cmd/info.c:54 src/cmd/install.c:34 src/cmd/install.c:35
#: src/main.c:200 src/main.c:201 src/cmd/info.c:48 src/cmd/info.c:49
#: src/cmd/info.c:50 src/cmd/install.c:34 src/cmd/install.c:35
#: src/cmd/install.c:36 src/cmd/install.c:37 src/cmd/install.c:38
#: src/cmd/list.c:24 src/cmd/list.c:25 src/cmd/remove.c:28 src/cmd/remove.c:29
#: src/cmd/update.c:23
#: src/cmd/search.c:170 src/cmd/search.c:171 src/cmd/search.c:172
#: src/cmd/search.c:173 src/cmd/update.c:23
#, c-format
msgid " "
msgstr " "
#: src/main.c:202
#: src/main.c:203
msgid ""
"Licensed under GPLv3, see https://www.gnu.org/licenses/ for more information"
msgstr ""
@ -196,80 +201,80 @@ msgstr "Failed to run the editor: %s"
msgid "Failed to open the editor: %s"
msgstr "Failed to open the editor: %s"
#: src/cmd/info.c:17 src/cmd/info.c:27 src/cmd/install.c:91 src/cmd/remove.c:52
#: src/cmd/info.c:13 src/cmd/info.c:23 src/cmd/install.c:91 src/cmd/remove.c:52
msgid "Package "
msgstr "Package "
#: src/cmd/info.c:46 src/cmd/install.c:28 src/cmd/list.c:18 src/cmd/remove.c:22
#: src/cmd/sync.c:15 src/cmd/update.c:17
#: src/cmd/info.c:42 src/cmd/install.c:28 src/cmd/list.c:18 src/cmd/remove.c:22
#: src/cmd/search.c:164 src/cmd/sync.c:15 src/cmd/update.c:17
msgid "Unknown argument: "
msgstr "Unknown argument: "
#: src/cmd/info.c:51 src/cmd/list.c:23
#: src/cmd/info.c:47 src/cmd/list.c:23 src/cmd/search.c:169
msgid "Listing options for the list command:"
msgstr "Listing options for the list command:"
#: src/cmd/info.c:75
#: src/cmd/info.c:71
msgid "Please specify only a single package name"
msgstr "Please specify only a single package name"
#: src/cmd/info.c:82
#: src/cmd/info.c:78
msgid "Please specify a single package"
msgstr "Please specify a single package"
#: src/cmd/info.c:97
#: src/cmd/info.c:93
msgid "Failed to get the changes file for "
msgstr "Failed to get the changes file for "
#: src/cmd/info.c:103
#: src/cmd/info.c:99
msgid "Failed to access the changes file, is the package installed?"
msgstr "Failed to access the changes file, is the package installed?"
#: src/cmd/info.c:110
#: src/cmd/info.c:106
msgid "Failed to get the depends list for "
msgstr "Failed to get the depends list for "
#: src/cmd/info.c:137
#: src/cmd/info.c:134
#, c-format
msgid "Name "
msgstr "Name "
#: src/cmd/info.c:138
#: src/cmd/info.c:135
#, c-format
msgid "Version "
msgstr "Version "
#: src/cmd/info.c:139
#: src/cmd/info.c:136
#, c-format
msgid "Desc "
msgstr "Desc "
#: src/cmd/info.c:140
#: src/cmd/info.c:137
#, c-format
msgid "Size "
msgstr "Size "
#: src/cmd/info.c:143
#: src/cmd/info.c:140
#, c-format
msgid "Depends "
msgstr "Depends "
#: src/cmd/info.c:146
#: src/cmd/info.c:143
#, c-format
msgid "Changes "
msgstr "Changes "
#: src/cmd/info.c:149
#: src/cmd/info.c:146
#, fuzzy, c-format
msgid "Pool "
msgstr " "
#: src/cmd/info.c:152 src/cmd/info.c:153
#: src/cmd/info.c:149 src/cmd/info.c:150
#, c-format
msgid "Installed "
msgstr "Installed "
#: src/cmd/info.c:156 src/cmd/info.c:157
#: src/cmd/info.c:153 src/cmd/info.c:154
#, c-format
msgid "Up-to-date "
msgstr "Up-to-date "
@ -351,7 +356,8 @@ msgid "Installed all of the "
msgstr "Installed all of the "
#: src/cmd/list.c:38
msgid "There no installed packages"
#, fuzzy
msgid "There are no installed packages"
msgstr "There no installed packages"
#: src/cmd/list.c:43
@ -379,6 +385,29 @@ msgstr "Removed "
msgid "Removed all of the "
msgstr "Removed all of the "
#: src/cmd/search.c:49 src/cmd/search.c:120
msgid "No results"
msgstr ""
#: src/cmd/search.c:54 src/cmd/search.c:125
msgid "Found "
msgstr ""
#: src/cmd/search.c:90
#, fuzzy, c-format
msgid "Failed to get package list: %s"
msgstr "Failed to get the package update list: %s"
#: src/cmd/search.c:189
#, fuzzy
msgid "Please specify only a single value for searching"
msgstr "Please specify only a single package name"
#: src/cmd/search.c:196
#, fuzzy
msgid "Please specify a value for searching"
msgstr "Please specify a single package"
#: src/cmd/sync.c:20
msgid "There are no pools specified in the configuration"
msgstr "There are no pools specified in the configuration"