Fix some strings for translations.

No need to translate debug strings.
Fix spaces in key slot queries.
This commit is contained in:
Milan Broz
2022-11-20 12:25:37 +01:00
parent 257bc80ae9
commit c7bbae01a6
4 changed files with 27 additions and 62 deletions

View File

@@ -105,9 +105,9 @@ static int _try_token_pin_unlock(struct crypt_device *cd,
assert(token_id >= 0 || token_id == CRYPT_ANY_TOKEN);
if (token_id == CRYPT_ANY_TOKEN)
r = snprintf(msg, sizeof(msg), _("Enter token PIN:"));
r = snprintf(msg, sizeof(msg), _("Enter token PIN: "));
else
r = snprintf(msg, sizeof(msg), _("Enter token %d PIN:"), token_id);
r = snprintf(msg, sizeof(msg), _("Enter token %d PIN: "), token_id);
if (r < 0 || (size_t)r >= sizeof(msg))
return -EINVAL;
@@ -1898,9 +1898,9 @@ static int _ask_for_pin(struct crypt_device *cd,
return -EINVAL;
if (token_id == CRYPT_ANY_TOKEN)
r = snprintf(msg, sizeof(msg), _("Enter token PIN:"));
r = snprintf(msg, sizeof(msg), _("Enter token PIN: "));
else
r = snprintf(msg, sizeof(msg), _("Enter token %d PIN:"), token_id);
r = snprintf(msg, sizeof(msg), _("Enter token %d PIN: "), token_id);
if (r < 0 || (size_t)r >= sizeof(msg))
return -EINVAL;
@@ -2069,7 +2069,7 @@ static int action_luksAddKey(void)
p_kc_new = kc_new;
}
} else {
r = tools_get_key(_("Enter new passphrase for key slot:"),
r = tools_get_key(_("Enter new passphrase for key slot: "),
&password_new, &password_new_size,
ARG_UINT64(OPT_NEW_KEYFILE_OFFSET_ID), ARG_UINT32(OPT_NEW_KEYFILE_SIZE_ID), new_key_file,
ARG_UINT32(OPT_TIMEOUT_ID), verify_passphrase(1), !ARG_SET(OPT_FORCE_PASSWORD_ID), cd);