From c7cf5de9fa6531fe3da3b75e660a0b50aacdc449 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 1 Sep 2025 22:59:38 +0200 Subject: vlt: Translate usage string --- .local/bin/po/sv/vlt.po | 80 +++++++++++++++++++++++++++++-------------------- .local/bin/po/vlt.pot | 74 +++++++++++++++++++++++++-------------------- .local/bin/vlt | 13 ++++---- 3 files changed, 95 insertions(+), 72 deletions(-) diff --git a/.local/bin/po/sv/vlt.po b/.local/bin/po/sv/vlt.po index 9a426ca..a952f3d 100644 --- a/.local/bin/po/sv/vlt.po +++ b/.local/bin/po/sv/vlt.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-09-01 22:42+0200\n" +"POT-Creation-Date: 2025-09-01 22:58+0200\n" "PO-Revision-Date: 2025-09-01 22:45+0200\n" "Last-Translator: Thomas Voss \n" "Language-Team: Swedish \n" @@ -19,7 +19,6 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: vlt:25 -#, fuzzy msgid "Invalid input" msgstr "Ogiltig inmatning" @@ -27,138 +26,153 @@ msgstr "Ogiltig inmatning" msgid "Empty strings do not constitute valid input" msgstr "Tomma strängar utgör ej giltig indata" -#: vlt:98 +#: vlt:34 +#, sh-printf-format +msgid "" +"Usage: %s add [-c]\n" +" %s edit [-c]\n" +" %s get\n" +" %s raw category password\n" +" %s rm [-c]\\n" +msgstr "" +"Användning: %s add [-c]\n" +" %s edit [-c]\n" +" %s get\n" +" %s raw kategori lösenord\n" +" %s rm [-c]\\n" + +#: vlt:97 msgid "Password name" msgstr "Lösenordsnamn" -#: vlt:103 +#: vlt:102 msgid "Failed to add password" msgstr "Misslyckades med att skapa lösenord" -#: vlt:104 +#: vlt:103 #, sh-printf-format msgid "The password ‘%s’ already exists" msgstr "Lösenordet ”%s” finns redan" -#: vlt:110 vlt:260 +#: vlt:109 vlt:259 msgid "Secret key" msgstr "Hemlig nyckel" -#: vlt:111 vlt:261 +#: vlt:110 vlt:260 msgid "Digits" msgstr "Siffror" -#: vlt:112 vlt:262 +#: vlt:111 vlt:261 msgid "Period" msgstr "Period" -#: vlt:126 vlt:276 +#: vlt:125 vlt:275 msgid "2FA key added" msgstr "2FA-nyckel tillagd" -#: vlt:127 vlt:277 +#: vlt:126 vlt:276 #, sh-printf-format msgid "The 2FA key ‘%s’ was added with the digit length ‘%d’ and period ‘%d’" msgstr "2FA-nyckeln ”%s” lades till med siffralägden ”%d” och perioden ”%d”" -#: vlt:129 vlt:279 +#: vlt:128 vlt:278 msgid "Password" msgstr "Lösenord" -#: vlt:134 +#: vlt:133 msgid "Password added" msgstr "Lösenord tillagt" -#: vlt:135 +#: vlt:134 #, sh-printf-format msgid "The password ‘%s’ was added to the category ‘%s’" msgstr "Lösenordet ”%s” tillagt till kategorin ”%s”" -#: vlt:143 +#: vlt:142 msgid "Category to create" msgstr "Kategori att skapa" -#: vlt:146 +#: vlt:145 msgid "Failed to Create Category" msgstr "Misslyckades med att skapa kategori" -#: vlt:146 +#: vlt:145 #, sh-printf-format msgid "The category ‘%s’ already exists" msgstr "Kategorin ”%s” finns redan" -#: vlt:154 +#: vlt:153 msgid "Category created" msgstr "Kategori skapad" -#: vlt:154 +#: vlt:153 #, sh-printf-format msgid "The password category ‘%s’ was created" msgstr "Lösenordskategorin ”%s” skapades" -#: vlt:178 +#: vlt:177 msgid "2FA code copied to the clipboard" msgstr "2FA-kod kopierad till urklipp" -#: vlt:179 +#: vlt:178 #, sh-printf-format msgid "The 2FA code for ‘%s’ was copied to the clipboard" msgstr "2FA-koden för ”%s” har kopierats till urklipp" -#: vlt:184 +#: vlt:183 msgid "Password copied to the clipboard" msgstr "Lösenord kopierat till urklipp" -#: vlt:185 +#: vlt:184 #, sh-printf-format msgid "The password for ‘%s’ was copied to the clipboard" msgstr "Lösenordet ”%s” har kopierats till urklipp" -#: vlt:214 +#: vlt:213 msgid "Password removed" msgstr "Lösenord borttaget" -#: vlt:215 +#: vlt:214 #, sh-printf-format msgid "The password ‘%s’ was removed from the category ‘%s’" msgstr "Lösenordet ”%s” har tagits bort från kategorin ”%s”" -#: vlt:226 +#: vlt:225 msgid "Failed to remove category" msgstr "Kategorin kunde ej tas bort" -#: vlt:226 +#: vlt:225 #, sh-printf-format msgid "The category ‘%s’ is not empty" msgstr "Kategorin ”%s” är ej tom" -#: vlt:233 +#: vlt:232 msgid "Category removed" msgstr "Kategori borttagen" -#: vlt:233 +#: vlt:232 #, sh-printf-format msgid "The category ‘%s’ was removed" msgstr "Kategorin ”%s” har tagits bort" -#: vlt:283 +#: vlt:282 msgid "Password edited" msgstr "Lösenord redigerat" -#: vlt:284 +#: vlt:283 #, sh-printf-format msgid "The password ‘%s’ in the category ‘%s’ was edited" msgstr "Lösenordet ”%s” i kategorin ”%s” har redigerats" -#: vlt:293 +#: vlt:292 msgid "Category name" msgstr "Kategorinamn" -#: vlt:298 +#: vlt:297 msgid "Category edited" msgstr "Kategori redigerad" -#: vlt:298 +#: vlt:297 #, sh-printf-format msgid "The category ‘%s’ was renamed" msgstr "Kategorin ”%s” har bytt namn" diff --git a/.local/bin/po/vlt.pot b/.local/bin/po/vlt.pot index 58eede0..c93caf5 100644 --- a/.local/bin/po/vlt.pot +++ b/.local/bin/po/vlt.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-09-01 22:42+0200\n" +"POT-Creation-Date: 2025-09-01 22:58+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -25,138 +25,148 @@ msgstr "" msgid "Empty strings do not constitute valid input" msgstr "" -#: vlt:98 +#: vlt:34 +#, sh-printf-format +msgid "" +"Usage: %s add [-c]\n" +" %s edit [-c]\n" +" %s get\n" +" %s raw category password\n" +" %s rm [-c]\\n" +msgstr "" + +#: vlt:97 msgid "Password name" msgstr "" -#: vlt:103 +#: vlt:102 msgid "Failed to add password" msgstr "" -#: vlt:104 +#: vlt:103 #, sh-printf-format msgid "The password ‘%s’ already exists" msgstr "" -#: vlt:110 vlt:260 +#: vlt:109 vlt:259 msgid "Secret key" msgstr "" -#: vlt:111 vlt:261 +#: vlt:110 vlt:260 msgid "Digits" msgstr "" -#: vlt:112 vlt:262 +#: vlt:111 vlt:261 msgid "Period" msgstr "" -#: vlt:126 vlt:276 +#: vlt:125 vlt:275 msgid "2FA key added" msgstr "" -#: vlt:127 vlt:277 +#: vlt:126 vlt:276 #, sh-printf-format msgid "The 2FA key ‘%s’ was added with the digit length ‘%d’ and period ‘%d’" msgstr "" -#: vlt:129 vlt:279 +#: vlt:128 vlt:278 msgid "Password" msgstr "" -#: vlt:134 +#: vlt:133 msgid "Password added" msgstr "" -#: vlt:135 +#: vlt:134 #, sh-printf-format msgid "The password ‘%s’ was added to the category ‘%s’" msgstr "" -#: vlt:143 +#: vlt:142 msgid "Category to create" msgstr "" -#: vlt:146 +#: vlt:145 msgid "Failed to Create Category" msgstr "" -#: vlt:146 +#: vlt:145 #, sh-printf-format msgid "The category ‘%s’ already exists" msgstr "" -#: vlt:154 +#: vlt:153 msgid "Category created" msgstr "" -#: vlt:154 +#: vlt:153 #, sh-printf-format msgid "The password category ‘%s’ was created" msgstr "" -#: vlt:178 +#: vlt:177 msgid "2FA code copied to the clipboard" msgstr "" -#: vlt:179 +#: vlt:178 #, sh-printf-format msgid "The 2FA code for ‘%s’ was copied to the clipboard" msgstr "" -#: vlt:184 +#: vlt:183 msgid "Password copied to the clipboard" msgstr "" -#: vlt:185 +#: vlt:184 #, sh-printf-format msgid "The password for ‘%s’ was copied to the clipboard" msgstr "" -#: vlt:214 +#: vlt:213 msgid "Password removed" msgstr "" -#: vlt:215 +#: vlt:214 #, sh-printf-format msgid "The password ‘%s’ was removed from the category ‘%s’" msgstr "" -#: vlt:226 +#: vlt:225 msgid "Failed to remove category" msgstr "" -#: vlt:226 +#: vlt:225 #, sh-printf-format msgid "The category ‘%s’ is not empty" msgstr "" -#: vlt:233 +#: vlt:232 msgid "Category removed" msgstr "" -#: vlt:233 +#: vlt:232 #, sh-printf-format msgid "The category ‘%s’ was removed" msgstr "" -#: vlt:283 +#: vlt:282 msgid "Password edited" msgstr "" -#: vlt:284 +#: vlt:283 #, sh-printf-format msgid "The password ‘%s’ in the category ‘%s’ was edited" msgstr "" -#: vlt:293 +#: vlt:292 msgid "Category name" msgstr "" -#: vlt:298 +#: vlt:297 msgid "Category edited" msgstr "" -#: vlt:298 +#: vlt:297 #, sh-printf-format msgid "The category ‘%s’ was renamed" msgstr "" diff --git a/.local/bin/vlt b/.local/bin/vlt index 6583689..9bf7f60 100755 --- a/.local/bin/vlt +++ b/.local/bin/vlt @@ -30,13 +30,12 @@ sanitize() usage() { - # TODO: Translate into Swedish - cat <<-EOF >&2 - Usage: ${0##*/} add [-c] - ${0##*/} edit [-c] - ${0##*/} get - ${0##*/} rm [-c] - EOF + s="${0##*/}" + _ "Usage: %s add [-c] + %s edit [-c] + %s get + %s raw category password + %s rm [-c]\n" "$s" "$s" "$s" "$s" "$s" exit 1 } -- cgit v1.2.3