diff --git a/src/main/java/jpass/ui/JPassFrame.java b/src/main/java/jpass/ui/JPassFrame.java index cbb8ec4..331b48f 100644 --- a/src/main/java/jpass/ui/JPassFrame.java +++ b/src/main/java/jpass/ui/JPassFrame.java @@ -84,6 +84,7 @@ import static jpass.util.Constants.LANGUAGE_ES_MX; import static jpass.util.Constants.LANGUAGE_HU_HU; import static jpass.util.Constants.LANGUAGE_IT_IT; +import static jpass.util.Constants.LANGUAGE_LANGUAGE_CHANGED; import static jpass.util.Constants.LANGUAGE_LANGUAGE_SETTING; import static jpass.util.Constants.PANEL_FIND; import static jpass.util.Constants.PANEL_SAVE_MODIFIED_QUESTION_MESSAGE; @@ -394,7 +395,7 @@ private void refreshComponentsWithLanguageSelected(String actionCommand) { updateTable(); Configuration.getInstance().set(LANGUAGE_LANGUAGE_SETTING, newLanguage); - MessageDialog.showInformationMessage(this, "Language has been changed"); + MessageDialog.showInformationMessage(this, getLocalizedMessages().getString(LANGUAGE_LANGUAGE_CHANGED)); } /** diff --git a/src/main/java/jpass/util/Constants.java b/src/main/java/jpass/util/Constants.java index 9314df4..10503d9 100644 --- a/src/main/java/jpass/util/Constants.java +++ b/src/main/java/jpass/util/Constants.java @@ -100,6 +100,7 @@ private Constants() { public static final String PANEL_UNENCRYPTED_DATA_WARNING_MESSAGE = "panel.unencryptedDataWarningMessage"; public static final String LANGUAGE_LANGUAGE_SETTING = "language.languageSetting"; + public static final String LANGUAGE_LANGUAGE_CHANGED = "language.languageChanged"; public static final String LANGUAGE_EN_US = "language.en.us"; public static final String LANGUAGE_ES_MX = "language.es.mx"; public static final String LANGUAGE_HU_HU = "language.hu.hu"; diff --git a/src/main/resources/resources/languages/languages_en_US.properties b/src/main/resources/resources/languages/languages_en_US.properties index 0ab1b4e..5c588da 100644 --- a/src/main/resources/resources/languages/languages_en_US.properties +++ b/src/main/resources/resources/languages/languages_en_US.properties @@ -91,6 +91,7 @@ panel.open=Open panel.saveModifiedQuestionMessage=The current file has been modified.\nDo you want to save the changes before closing? panel.unencryptedDataWarningMessage=Please note that all data will be stored unencrypted.\nMake sure you keep the exported file in a secure location. +language.languageChanged=Language has changed successfully. language.en.us=English language.es.mx=Spanish language.hu.hu=Hungarian diff --git a/src/main/resources/resources/languages/languages_es_MX.properties b/src/main/resources/resources/languages/languages_es_MX.properties index b2bc22e..c09546b 100644 --- a/src/main/resources/resources/languages/languages_es_MX.properties +++ b/src/main/resources/resources/languages/languages_es_MX.properties @@ -91,6 +91,7 @@ panel.open=Abrir panel.saveModifiedQuestionMessage=El archivo actual ha sido modificado.\nżDeseas guardar los cambios antes de cerrar el programa? panel.unencryptedDataWarningMessage=Note que toda la data se almancenará sin cifrar.\nAsegúrese de guardar el archivo exportado en un lugar seguro. +language.languageChanged=El idioma ha cambiado correctamente. language.en.us=Inglés language.es.mx=Espańol language.hu.hu=Húngaro diff --git a/src/main/resources/resources/languages/languages_hu_HU.properties b/src/main/resources/resources/languages/languages_hu_HU.properties index 8866c96..b094287 100644 --- a/src/main/resources/resources/languages/languages_hu_HU.properties +++ b/src/main/resources/resources/languages/languages_hu_HU.properties @@ -90,6 +90,7 @@ panel.open=Megnyitás panel.saveModifiedQuestionMessage=A jelenlegi fájl mĂłdosĂ­tva lett.\nMenteni szeretnĂ© a változtatásokat bezárás elĹ‘tt? panel.unencryptedDataWarningMessage=FelhĂ­vjuk figyelmĂ©t, hogy az adatok titkosĂ­tás nĂ©lkĂĽl lesznek tárolva.\nBizonyosodjon meg rĂłla, hogy az exportált fájlt biztonságos helyre menti. +language.languageChanged=Language has changed successfully. language.en.us=Angol language.es.mx=Spanyol language.hu.hu=Magyar diff --git a/src/main/resources/resources/languages/languages_it_IT.properties b/src/main/resources/resources/languages/languages_it_IT.properties index 88d008f..a9f21fe 100644 --- a/src/main/resources/resources/languages/languages_it_IT.properties +++ b/src/main/resources/resources/languages/languages_it_IT.properties @@ -91,6 +91,7 @@ panel.open=Apri panel.saveModifiedQuestionMessage=Il file attuale è stato modificato.\nVuoi salvare le modifiche prima della chiusura? panel.unencryptedDataWarningMessage=Nota che tutti i dati verranno archiviati non crittografati.\nAssicurati di conservare il file esportato in un luogo sicuro. +language.languageChanged=Language has changed successfully. language.en.us=Inglese language.es.mx=Spagnolo language.hu.hu=Ungherese