diff --git a/presentation/src/main/java/org/cryptomator/presentation/exception/ExceptionHandlers.kt b/presentation/src/main/java/org/cryptomator/presentation/exception/ExceptionHandlers.kt
index adb07a36..4e67acd6 100644
--- a/presentation/src/main/java/org/cryptomator/presentation/exception/ExceptionHandlers.kt
+++ b/presentation/src/main/java/org/cryptomator/presentation/exception/ExceptionHandlers.kt
@@ -24,6 +24,7 @@ import org.cryptomator.domain.exception.vaultconfig.VaultKeyInvalidException
import org.cryptomator.domain.exception.vaultconfig.VaultVersionMismatchException
import org.cryptomator.presentation.R
import org.cryptomator.presentation.ui.activity.view.View
+import org.cryptomator.presentation.util.ResourceHelper
import java.util.ArrayList
import java.util.Collections
import javax.inject.Inject
@@ -52,8 +53,20 @@ class ExceptionHandlers @Inject constructor(private val context: Context, defaul
staticHandler(HashMismatchUpdateCheckException::class.java, R.string.error_hash_mismatch_update)
staticHandler(GeneralUpdateErrorException::class.java, R.string.error_general_update)
staticHandler(SSLHandshakePreAndroid5UpdateCheckException::class.java, R.string.error_general_update)
- staticHandler(VaultVersionMismatchException::class.java, R.string.error_vault_version_mismatch)
- staticHandler(VaultKeyInvalidException::class.java, R.string.error_vault_key_invalid)
+ staticHandler(
+ VaultVersionMismatchException::class.java, String.format(
+ ResourceHelper.getString(R.string.error_vault_version_mismatch),
+ ResourceHelper.getString(R.string.vault_cryptomator),
+ ResourceHelper.getString(R.string.masterkey_cryptomator)
+ )
+ )
+ staticHandler(
+ VaultKeyInvalidException::class.java, String.format(
+ ResourceHelper.getString(R.string.error_vault_key_invalid),
+ ResourceHelper.getString(R.string.vault_cryptomator),
+ ResourceHelper.getString(R.string.masterkey_cryptomator)
+ )
+ )
staticHandler(VaultConfigLoadException::class.java, R.string.error_vault_config_loading)
staticHandler(UnsupportedMasterkeyLocationException::class.java, R.string.error_masterkey_location_not_supported)
staticHandler(NoSuchBucketException::class.java, R.string.error_no_such_bucket)
diff --git a/presentation/src/main/res/values/strings.xml b/presentation/src/main/res/values/strings.xml
index ff945ca0..8a87b0b0 100644
--- a/presentation/src/main/res/values/strings.xml
+++ b/presentation/src/main/res/values/strings.xml
@@ -6,6 +6,8 @@
Cryptomator
@string/app_name
+ vault.cryptomator
+ masterkey.cryptomator
Encrypt
@@ -22,7 +24,7 @@
Cloud already exists.
Please download an app that can open this file.
Server not found.
- Please open your devices settings and set the screen lock by hand
+ Please open your device settings and set the screen lock by hand
Export failed. Try to remove special characters from file names and export again.
Can\'t contain special characters.
File names can\'t contain special characters.
@@ -30,11 +32,11 @@
Update check failed. General error occurred.
Update check failed. Calculated hash doesn\'t match the uploaded file
Update check failed. No internet connection.
- Failed to decrypt WebDAV password, please re add in settings
- Play Services not installed
+ Failed to decrypt WebDAV password, please re-add in settings
+ Google Play Services not installed
Biometric authentication aborted
- Version specified in vault.cryptomator is different to masterkey.cryptomator
- vault.cryptomator does not match with this masterkey.cryptomator
+ Version specified in %1$s is different to %2$s
+ %1$s does not match with this %2$s
General error while loading the vault config
Local file isn\'t present anymore after switching back to Cryptomator. Possible changes cannot be propagated back to the cloud.
No such bucket
@@ -315,7 +317,7 @@
Vault %1$s not found
- The vault has been renamed, moved or deleted. Remove this vault form the list and add it again to proceed. Remove now?
+ The vault has been renamed, moved or deleted. Remove this vault from the list and add it again to proceed. Remove now?
Remove
File already exists