Skip to content

Commit

Permalink
Localizes language.languageChanged string
Browse files Browse the repository at this point in the history
  • Loading branch information
edimoral committed Mar 10, 2024
1 parent b3c5f7b commit 4042ed8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/jpass/ui/JPassFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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));
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/main/java/jpass/util/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4042ed8

Please sign in to comment.