new: add version message

This commit is contained in:
ngn 2024-08-11 19:22:58 +03:00
parent 6f8f0732d6
commit 1c7b083a5b
2 changed files with 20 additions and 13 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-04 18:57+0300\n" "POT-Creation-Date: 2024-08-11 19:22+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -22,61 +22,66 @@ msgstr ""
msgid "Failed to sync %s: %s" msgid "Failed to sync %s: %s"
msgstr "Failed to sync %s: %s" msgstr "Failed to sync %s: %s"
#: src/main.c:48 #: src/main.c:47
#, c-format
msgid "Starting mirp %s (libmp %s)"
msgstr ""
#: src/main.c:50
#, c-format #, c-format
msgid "Usage: %s <name> <directory> <url>" msgid "Usage: %s <name> <directory> <url>"
msgstr "Usage: %s <name> <directory> <url>" msgstr "Usage: %s <name> <directory> <url>"
#: src/main.c:69 #: src/main.c:71
#, c-format #, c-format
msgid "Failed to access the temp directory: %s" msgid "Failed to access the temp directory: %s"
msgstr "Failed to access the temp directory: %s" msgstr "Failed to access the temp directory: %s"
#: src/main.c:73 #: src/main.c:75
#, c-format #, c-format
msgid "Failed to initialize the libmp context: %s" msgid "Failed to initialize the libmp context: %s"
msgstr "Failed to initialize the libmp context: %s" msgstr "Failed to initialize the libmp context: %s"
#: src/main.c:80 #: src/main.c:82
#, c-format #, c-format
msgid "Failed to create the pool directory: %s" msgid "Failed to create the pool directory: %s"
msgstr "Failed to create the pool directory: %s" msgstr "Failed to create the pool directory: %s"
#: src/main.c:85 #: src/main.c:87
#, c-format #, c-format
msgid "Failed to access to the pool directory: %s" msgid "Failed to access to the pool directory: %s"
msgstr "Failed to access to the pool directory: %s" msgstr "Failed to access to the pool directory: %s"
#: src/main.c:90 #: src/main.c:92
#, c-format #, c-format
msgid "Failed to load the pool: %s" msgid "Failed to load the pool: %s"
msgstr "Failed to load the pool: %s" msgstr "Failed to load the pool: %s"
#: src/main.c:95 #: src/main.c:97
msgid "Pool is not avaliable" msgid "Pool is not avaliable"
msgstr "Pool is not avaliable" msgstr "Pool is not avaliable"
#: src/main.c:100 #: src/main.c:102
#, c-format #, c-format
msgid "Failed to obtain the package list: %s" msgid "Failed to obtain the package list: %s"
msgstr "Failed to obtain the package list: %s" msgstr "Failed to obtain the package list: %s"
#: src/main.c:104 #: src/main.c:106
#, c-format #, c-format
msgid "Synced %s, downloading packages" msgid "Synced %s, downloading packages"
msgstr "Synced %s, downloading packages" msgstr "Synced %s, downloading packages"
#: src/main.c:108 #: src/main.c:110
#, c-format #, c-format
msgid "Failed to download the package: %s (%s)" msgid "Failed to download the package: %s (%s)"
msgstr "Failed to download the package: %s (%s)" msgstr "Failed to download the package: %s (%s)"
#: src/main.c:111 #: src/main.c:113
#, c-format #, c-format
msgid "Downloaded the package: %s (%s)" msgid "Downloaded the package: %s (%s)"
msgstr "Downloaded the package: %s (%s)" msgstr "Downloaded the package: %s (%s)"
#: src/main.c:115 #: src/main.c:117
msgid "Mirror is ready" msgid "Mirror is ready"
msgstr "Mirror is ready" msgstr "Mirror is ready"

View File

@ -44,6 +44,8 @@ bool sync_callback(
} }
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
info(_("Starting mirp %s (libmp %s)"), VERSION, LM_VERSION);
if (argc != 4) { if (argc != 4) {
error(_("Usage: %s <name> <directory> <url>"), argv[0]); error(_("Usage: %s <name> <directory> <url>"), argv[0]);
return EXIT_FAILURE; return EXIT_FAILURE;