Skip to content

Commit

Permalink
Add tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Feb 15, 2024
1 parent bf0d723 commit 8af366b
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/main/java/mpo/dayon/assistant/gui/Assistant.java
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,7 @@ private JComboBox<Language> createLanguageSelection() {
languageSelection.setMaximumRowCount(languageSelection.getItemCount());
languageSelection.setBorder(BorderFactory.createEmptyBorder(7, 3, 6, 2));
languageSelection.setFocusable(false);
languageSelection.setToolTipText(translate("changeLanguage"));
languageSelection.setSelectedItem(Arrays.stream(Language.values()).filter(e -> e.getShortName().equals(Locale.getDefault().getLanguage())).findFirst().orElse(Language.EN));
languageSelection.setRenderer(new LanguageRenderer());
languageSelection.addActionListener(ev -> {
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/Babylon.properties
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,5 @@ share.all.screens = Share all screens

compatibility.mode = Compatibility mode for previous versions
compatibility.mode.enable = Enable compatibility mode!

changeLanguage = Change language
4 changes: 3 additions & 1 deletion src/main/resources/Babylon_de.properties
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,6 @@ uacSettings = UAC-Einstellungen
share.all.screens = Alle Bildschirme teilen

compatibility.mode = Kompatibilit\u00E4tsmodus f\u00FCr Vorg\u00E4ngerversionen
compatibility.mode.enable = Kompatibilit\u00E4tsmodus aktivieren!
compatibility.mode.enable = Kompatibilit\u00E4tsmodus aktivieren!

changeLanguage = Sprache \u00E4ndern
4 changes: 3 additions & 1 deletion src/main/resources/Babylon_es.properties
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,6 @@ uacSettings = Configuraci\u00F3n de UAC
share.all.screens = Compartir todas las pantallas

compatibility.mode = Modo de compatibilidad para versiones anteriores
compatibility.mode.enable = \u00A1Habilite el modo de compatibilidad!
compatibility.mode.enable = \u00A1Habilite el modo de compatibilidad!

changeLanguage = Cambiar el idioma
2 changes: 2 additions & 0 deletions src/main/resources/Babylon_fr.properties
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,5 @@ share.all.screens = Partager tous les \u00E9crans

compatibility.mode = Mode de compatibilit\u00E9 pour les versions pr\u00E9c\u00E9dentes
compatibility.mode.enable = Activez le mode compatibilit\u00E9!

changeLanguage = Changer la langue
2 changes: 2 additions & 0 deletions src/main/resources/Babylon_it.properties
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,5 @@ share.all.screens = Condividi tutti gli schermi

compatibility.mode = Modalit\u00E0 di compatibilit\u00E0 per le versioni precedenti
compatibility.mode.enable = Abilita la modalit\u00E0 compatibilit\u00E0!

changeLanguage = Cambiare la lingua
4 changes: 3 additions & 1 deletion src/main/resources/Babylon_ru.properties
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,6 @@ uacSettings = \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043A\u043
share.all.screens = \u0414\u0435\u043B\u0438\u0442\u0435\u0441\u044C \u0432\u0441\u0435\u043C\u0438 \u044D\u043A\u0440\u0430\u043D\u0430\u043C\u0438

compatibility.mode = \u0420\u0435\u0436\u0438\u043C \u0441\u043E\u0432\u043C\u0435\u0441\u0442\u0438\u043C\u043E\u0441\u0442\u0438 \u0441 \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u043C\u0438 \u0432\u0435\u0440\u0441\u0438\u044F\u043C\u0438
compatibility.mode.enable = \u0412\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0440\u0435\u0436\u0438\u043C \u0441\u043E\u0432\u043C\u0435\u0441\u0442\u0438\u043C\u043E\u0441\u0442\u0438!
compatibility.mode.enable = \u0412\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0440\u0435\u0436\u0438\u043C \u0441\u043E\u0432\u043C\u0435\u0441\u0442\u0438\u043C\u043E\u0441\u0442\u0438!

changeLanguage = \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u044F\u0437\u044B\u043A
4 changes: 3 additions & 1 deletion src/main/resources/Babylon_sv.properties
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,6 @@ uacSettings = UAC-inst\u00E4llningar
share.all.screens = Dela alla sk\u00E4rmar

compatibility.mode = Kompatibelt l\u00E4ge f\u00F6r tidigare versioner
compatibility.mode.enable = Aktivera kompatibilitetsl\u00E4ge!
compatibility.mode.enable = Aktivera kompatibilitetsl\u00E4ge!

changeLanguage = \u00C4ndra spr\u00E5ket
4 changes: 3 additions & 1 deletion src/main/resources/Babylon_tr.properties
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,6 @@ uacSettings = UAC ayarlar\u0131
share.all.screens = T\u00FCm ekranlar\u0131 payla\u015F

compatibility.mode = \u00D6nceki s\u00FCr\u00FCmler i\u00E7in uyumluluk modu
compatibility.mode.enable = Uyumluluk modunu etkinle\u015Ftirin!
compatibility.mode.enable = Uyumluluk modunu etkinle\u015Ftirin!

changeLanguage = Dili de\u011Fi\u015Ftir
2 changes: 2 additions & 0 deletions src/main/resources/Babylon_zh.properties
Original file line number Diff line number Diff line change
Expand Up @@ -282,3 +282,5 @@ share.all.screens = \u5171\u4EAB\u6240\u6709\u5C4F\u5E55

compatibility.mode = \u4EE5\u524D\u7248\u672C\u7684\u517C\u5BB9\u6A21\u5F0F
compatibility.mode.enable = \u542F\u7528\u517C\u5BB9\u6A21\u5F0F\uFF01

changeLanguage = \u6539\u53D8\u8BED\u8A00

0 comments on commit 8af366b

Please sign in to comment.