Explorar o código

Added `@PropertyKey`

See: https://github.com/cryptomator/cryptomator/pull/3001#discussion_r1263039593
JaniruTEC %!s(int64=2) %!d(string=hai) anos
pai
achega
aa2e63acb0

+ 2 - 1
src/main/java/org/cryptomator/ui/unlock/UnlockInvalidMountPointController.java

@@ -13,6 +13,7 @@ import org.cryptomator.ui.controls.FormattedLabel;
 import org.cryptomator.ui.fxapp.FxApplicationWindows;
 import org.cryptomator.ui.preferences.SelectedPreferencesTab;
 import org.cryptomator.ui.vaultoptions.SelectedVaultOptionsTab;
+import org.jetbrains.annotations.PropertyKey;
 
 import javax.inject.Inject;
 import javafx.fxml.FXML;
@@ -100,7 +101,7 @@ public class UnlockInvalidMountPointController implements FxController {
 		private final String translationKey;
 		private final ButtonAction action;
 
-		ExceptionType(String translationKey, ButtonAction action) {
+		ExceptionType(@PropertyKey(resourceBundle = "i18n.strings") String translationKey, ButtonAction action) {
 			this.translationKey = translationKey;
 			this.action = action;
 		}