From 25a8f64d877d8b0ef6ac976c9a109889a765b435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sami=20V=C3=A4nttinen?= Date: Sun, 9 Jun 2024 20:29:05 +0300 Subject: [PATCH] Translation fixes (#2228) Translation fixes --- keepassxc-browser/_locales/en/messages.json | 54 ++++++++++----------- keepassxc-browser/content/username-field.js | 2 +- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/keepassxc-browser/_locales/en/messages.json b/keepassxc-browser/_locales/en/messages.json index 3a4e916..8d565f4 100644 --- a/keepassxc-browser/_locales/en/messages.json +++ b/keepassxc-browser/_locales/en/messages.json @@ -204,26 +204,30 @@ "description": "A warning text shown in the password generator." }, "passwordGeneratorGenerateText": { - "message": "Generate password", + "message": "Generate password.", "description": "Password icon title text." }, "passwordGeneratorNotSupported": { "message": "Launching the password generator is not supported in this KeePassXC version. Please update KeePassXC to a newer version." }, "usernameFieldText": { - "message": "Fill credentials from KeePassXC", + "message": "Fill credentials from KeePassXC.", "description": "Username field icon hover text." }, + "usernameFieldTextNoCredentials": { + "message": "No credentials to fill.", + "description": "Username field icon hover text when no credentials are." + }, "usernameLockedFieldText": { - "message": "Database is locked", + "message": "Database is locked.", "description": "Username field icon hover text when database is locked." }, "usernameDisconnectedFieldText": { - "message": "KeePassXC is disconnected", + "message": "KeePassXC is disconnected.", "description": "Username field icon hover text when KeePassXC is disconnected." }, "usernameFieldIcon": { - "message": "Username field icon", + "message": "Username field icon.", "description": "Username field icon text." }, "totp": { @@ -542,12 +546,8 @@ "message": "More than one password field found on this page. Right-click one of the password fields, and choose one of:", "description": "A popup message shown when web page has multiple password fields." }, - "popupURL": { - "message": "URL: ", - "description": "URL. Might not need any translation." - }, "popupUsername": { - "message": "Username: ", + "message": "Username:", "description": "A username field name shown on credential update." }, "popupButtonNew": { @@ -683,15 +683,15 @@ "description": "Default checkbox explanation help text." }, "optionsCheckboxUsePasswordGenerator": { - "message": "Activate password generator icons.", + "message": "Activate password generator icons", "description": "Activate password generator icons checkbox text." }, "optionsCheckboxUsernameIcons": { - "message": "Activate username field icons.", + "message": "Activate username field icons", "description": "Activate username field icons textbox text." }, "optionsUseObserver": { - "message": "Use dynamic input field detection.", + "message": "Use dynamic input field detection", "description": "Use dynamic input field detection checkbox text." }, "optionsUseObserverHelpText": { @@ -699,15 +699,15 @@ "description": "Use dynamic input field detection help text." }, "optionsCheckboxOTPIcons": { - "message": "Activate 2FA/OTP field icons.", + "message": "Activate 2FA/OTP field icons", "description": "Activate OTP field icons textbox text." }, "optionsCheckboxAutoRetrieveCredentials": { - "message": "Automatically retrieve credentials.", + "message": "Automatically retrieve credentials", "description": "Automatically retrieve credentials checkbox text." }, "optionsCheckboxAutomaticReconnect": { - "message": "Automatically reconnect to KeePassXC.", + "message": "Automatically reconnect to KeePassXC", "description": "Auto-reconnect checkbox text." }, "optionsAutomaticReconnectWarning": { @@ -715,19 +715,19 @@ "description": "Auto-reconnect warning message." }, "optionsCheckboxAutoFillSingleEntry": { - "message": "Automatically fill in single-credential entries.", + "message": "Automatically fill in single-credential entries", "description": "Automatically fill-in single credential entry checkbox text." }, "optionsCheckboxAutoFillSingleTotp": { - "message": "Automatically fill in single TOTP entries.", + "message": "Automatically fill in single TOTP entries", "description": "Automatically fill-in single TOTP entries checkbox text." }, "optionsCheckboxAutoCompleteUsernames": { - "message": "Activate autocomplete for username fields.", + "message": "Activate autocomplete for username fields", "description": "Activate autocomplete for username fields checkbox text." }, "optionsCheckboxShowGroupNameInAutocomplete": { - "message": "Display the group name in autocomplete list when credentials are from different groups.", + "message": "Display the group name in autocomplete list when credentials are from different groups", "description": "Show group name in autocomplete checkbox text." }, "optionsCheckboxAutoSubmit": { @@ -739,19 +739,19 @@ "description": "Auto-submit help text." }, "optionsCheckboxShowNotifications": { - "message": "Show notifications.", + "message": "Show notifications", "description": "Show notifications checkbox text." }, "optionsCheckboxUseMonochromeToolbarIcon": { - "message": "Use monochrome toolbar icon.", + "message": "Use monochrome toolbar icon", "description": "Use monochrome toolbar icon checkbox text." }, "optionsSaveDomainOnly": { - "message": "Save domain only.", + "message": "Save domain only", "description": "Save domain only checkbox text." }, "optionsCheckboxShowLoginNotifications": { - "message": "Show a banner on the page when new credentials can be saved to the database.", + "message": "Show a banner on the page when new credentials can be saved to the database", "description": "Show login notifications checkbox text." }, "optionsRedirectAllowance": { @@ -763,7 +763,7 @@ "description": "Redirect allowance help text." }, "optionsCheckboxAutoFillAndSend": { - "message": "Allow filling HTTP Basic Auth credentials.", + "message": "Allow filling HTTP Basic Auth credentials", "description": "Allow filling HTTP Basic Auth credentials checkbox text." }, "optionsDebugLogging": { @@ -835,7 +835,7 @@ "description": "Predefined site list details button text." }, "optionsUsePredefinedSites": { - "message": "Use predefined sites for compatibility.", + "message": "Use predefined sites for compatibility", "description": "Use predefined sites checkbox text." }, "optionsUsePredefinedSitesHelpText": { @@ -1219,7 +1219,7 @@ "description": "About page text of reporting bugs." }, "optionsAboutCreateNewIssue": { - "message": "Create new issue on GitHub", + "message": "Create new issue on GitHub.", "description": "Link text for creating a new issue." }, "optionsAboutDebugInfo": { diff --git a/keepassxc-browser/content/username-field.js b/keepassxc-browser/content/username-field.js index 99d69cf..5e8dd44 100644 --- a/keepassxc-browser/content/username-field.js +++ b/keepassxc-browser/content/username-field.js @@ -160,7 +160,7 @@ const getIconText = function(state) { return tr('usernameDisconnectedFieldText'); } - return tr('usernameFieldText'); + return kpxc.credentials.length === 0 ? tr('usernameFieldTextNoCredentials') : tr('usernameFieldText'); }; const fillCredentials = async function(field) {