From 1c7b083a5b416877a3fe4fdfcfb63c1e603d9c03 Mon Sep 17 00:00:00 2001 From: ngn Date: Sun, 11 Aug 2024 19:22:58 +0300 Subject: [PATCH] new: add version message --- locale/tr/LC_MESSAGES/mirp.po | 31 ++++++++++++++++++------------- src/main.c | 2 ++ 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/locale/tr/LC_MESSAGES/mirp.po b/locale/tr/LC_MESSAGES/mirp.po index f36b244..c809c2c 100644 --- a/locale/tr/LC_MESSAGES/mirp.po +++ b/locale/tr/LC_MESSAGES/mirp.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\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" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,61 +22,66 @@ msgstr "" msgid "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 msgid "Usage: %s " msgstr "Usage: %s " -#: src/main.c:69 +#: src/main.c:71 #, c-format msgid "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 msgid "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 msgid "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 msgid "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 msgid "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" msgstr "Pool is not avaliable" -#: src/main.c:100 +#: src/main.c:102 #, c-format msgid "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 msgid "Synced %s, downloading packages" msgstr "Synced %s, downloading packages" -#: src/main.c:108 +#: src/main.c:110 #, c-format msgid "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 msgid "Downloaded the package: %s (%s)" msgstr "Downloaded the package: %s (%s)" -#: src/main.c:115 +#: src/main.c:117 msgid "Mirror is ready" msgstr "Mirror is ready" diff --git a/src/main.c b/src/main.c index cde10e3..31129de 100644 --- a/src/main.c +++ b/src/main.c @@ -44,6 +44,8 @@ bool sync_callback( } int main(int argc, char *argv[]) { + info(_("Starting mirp %s (libmp %s)"), VERSION, LM_VERSION); + if (argc != 4) { error(_("Usage: %s "), argv[0]); return EXIT_FAILURE;