improvement: Move some missing text phrases to translatable resources

This commit is contained in:
Artem Chepurnoy 2024-06-02 09:27:36 +03:00
parent 697d4605ba
commit cc61f42209
No known key found for this signature in database
GPG Key ID: FAC37D0CF674043E
4 changed files with 13 additions and 5 deletions

View File

@ -18,6 +18,7 @@
<string name="app_password">App password</string>
<string name="current_password">Current password</string>
<string name="new_password">New password</string>
<string name="no_password">No password</string>
<string name="email">Email</string>
<string name="email_verified">Verified</string>
<string name="email_not_verified">Not verified</string>
@ -240,6 +241,7 @@
<string name="folder_action_change_name_title">Change name</string>
<string name="folder_action_change_names_title">Change names</string>
<string name="folder_action_merge_title">Merge into…</string>
<string name="folder_delete_one_confirmation_title">Delete the folder?</string>
<string name="folder_delete_many_confirmation_title">Delete the folders?</string>
<string name="folder_delete_confirmation_text">This item(s) will be deleted immediately. You can not undo this action.</string>
@ -301,6 +303,7 @@
<string name="file_action_send_with_title">Send with…</string>
<string name="file_action_open_in_file_manager_title">Open in a file manager</string>
<string name="file_action_delete_local_title">Delete local file</string>
<string name="file_action_delete_local_many_title">Delete local files</string>
<string name="file_action_view_cipher_title">View parent item</string>
<string name="vault_action_always_show_keyboard_title">Always show keyboard</string>

View File

@ -342,16 +342,21 @@ fun produceAttachmentsScreenState(
if (selectedItemsAllDownloadable) {
actions += FlatItemAction(
leading = icon(Icons.Outlined.Download),
title = TextHolder.Value("Download"),
title = Res.string.download.wrap(),
onClick = {
downloadIo.launchIn(appScope)
},
)
}
if (selectedItemsAllDownloaded) {
val title = if (selectedPairs.size > 1) {
Res.string.file_action_delete_local_many_title.wrap()
} else {
Res.string.file_action_delete_local_title.wrap()
}
actions += FlatItemAction(
leading = icon(Icons.Outlined.Delete),
title = TextHolder.Value("Delete local files"),
title = title,
onClick = {
removeIo.launchIn(appScope)
},

View File

@ -381,7 +381,7 @@ fun foldersScreenState(
selectedFolders.values.maxBy { it.ciphers.size }.folder.name
this += FlatItemAction(
icon = Icons.Outlined.Merge,
title = TextHolder.Value("Merge into…"),
title = Res.string.folder_action_merge_title.wrap(),
onClick = ::onMerge
.partially1(folderName)
.partially1(selectedFolderIds),

View File

@ -1873,7 +1873,7 @@ private class PasswordDecorator : Decorator {
if (pw == null) {
return VaultItem2.Section(
id = "decorator.pw.empty",
text = TextHolder.Value("No password"),
text = Res.string.no_password.wrap(),
)
}
val text = obscurePassword(pw)
@ -1902,7 +1902,7 @@ private class PasswordStrengthDecorator : Decorator {
if (score == null) {
return VaultItem2.Section(
id = "decorator.pw_strength.empty",
text = TextHolder.Value("No password"),
text = Res.string.no_password.wrap(),
)
}
return VaultItem2.Section(