Skip to content
This repository was archived by the owner on Mar 15, 2023. It is now read-only.

Commit 6c7fa13

Browse files
author
Jacob van Mourik
committed
Added missing translations
1 parent 32e5c23 commit 6c7fa13

File tree

5 files changed

+27
-18
lines changed

5 files changed

+27
-18
lines changed

src/main/java/com/jvms/i18neditor/editor/EditorSettingsPane.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ public void keyReleased(KeyEvent e) {
6262
fieldset2.add(minifyBox, createVerticalGridBagConstraints());
6363

6464
// Editing settings
65-
JPanel fieldset3 = createFieldset("Editing");
65+
JPanel fieldset3 = createFieldset(MessageBundle.get("settings.fieldset.editing"));
6666

67-
JCheckBox keyFieldBox = new JCheckBox("Show translation key field");
67+
JCheckBox keyFieldBox = new JCheckBox(MessageBundle.get("settings.keyfield.title"));
6868
keyFieldBox.setSelected(settings.isShowKeyField());
6969
keyFieldBox.addChangeListener(e -> {
7070
settings.setShowKeyField(keyFieldBox.isSelected());
@@ -73,7 +73,7 @@ public void keyReleased(KeyEvent e) {
7373
fieldset3.add(keyFieldBox, createVerticalGridBagConstraints());
7474

7575
JPanel resourceHeightPanel = new JPanel(new GridLayout(0, 1));
76-
JLabel resourceHeightLabel = new JLabel("Default input height");
76+
JLabel resourceHeightLabel = new JLabel(MessageBundle.get("settings.inputheight.title"));
7777
JSlider resourceHeightSlider = new JSlider(JSlider.HORIZONTAL, 1, 15, settings.getInputHeight());
7878
resourceHeightSlider.addChangeListener(e -> {
7979
settings.setInputHeight(resourceHeightSlider.getValue());

src/main/java/com/jvms/i18neditor/editor/TranslationTree.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -183,18 +183,18 @@ private void duplicateNodeByKey(String key, String newKey, boolean keepOld) {
183183
private void setupUI() {
184184
UIManager.put("Tree.repaintWholeRow", Boolean.TRUE);
185185

186-
setUI(new TranslationTreeUI());
187-
setCellRenderer(new TranslationTreeCellRenderer());
188-
addTreeWillExpandListener(new TranslationTreeExpandListener());
189-
setEditable(false);
190-
setOpaque(false);
191-
setToggleClickCount(1);
192-
193186
// Remove all key strokes
194187
InputMap inputMap = getInputMap().getParent();
195188
for (KeyStroke k : getRegisteredKeyStrokes()) {
196189
inputMap.remove(k);
197190
}
191+
192+
setUI(new TranslationTreeUI());
193+
setCellRenderer(new TranslationTreeCellRenderer());
194+
addTreeWillExpandListener(new TranslationTreeExpandListener());
195+
setToggleClickCount(1);
196+
setEditable(false);
197+
setOpaque(false);
198198
}
199199

200200
@Override

src/main/resources/bundles/messages.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,11 @@ resources.import.error.single = An error occurred while opening the translation
8282
resources.locale.default = Default
8383
resources.write.error.single = An error occurred while writing the translation file ''{0}''.
8484

85+
settings.fieldset.editing = Editing
8586
settings.fieldset.general = General
8687
settings.fieldset.newprojects = New Projects
88+
settings.inputheight.title = Default height of input fields
89+
settings.keyfield.title = Show translation key field
8790
settings.minify.title = Minify translations on save
8891
settings.resourcename.title = Translations filename
8992
settings.version.title = Check for new version on startup

src/main/resources/bundles/messages_nl.properties

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ dialogs.project.new.conflict.title = Conflict
1515
dialogs.project.new.title = Nieuw Project
1616
dialogs.save.text = U heeft nog onopgeslagen wijzigingen, wilt u deze opslaan?
1717
dialogs.save.title = Vertalingen Opslaan
18-
dialogs.translation.add.error = De opgegeven naam voor de vertaling is niet geldig.
19-
dialogs.translation.add.text = Naam voor de vertaling:
18+
dialogs.translation.add.error = De opgegeven key voor de vertaling is niet geldig.
19+
dialogs.translation.add.text = Key voor de vertaling:
2020
dialogs.translation.add.title = Vertaling Toevoegen
21-
dialogs.translation.conflict.text.replace = Er bestaat al een vertaling met deze naam, wilt u deze vervangen?
22-
dialogs.translation.conflict.text.merge = Er bestaat al een vertaling met deze naam, wilt u deze samenvoegen?
21+
dialogs.translation.conflict.text.replace = Er bestaat al een vertaling met deze key, wilt u deze vervangen?
22+
dialogs.translation.conflict.text.merge = Er bestaat al een vertaling met deze key, wilt u deze samenvoegen?
2323
dialogs.translation.conflict.title = Vertalingsconflict
24-
dialogs.translation.duplicate.error = De opgegeven naam is niet geldig.
24+
dialogs.translation.duplicate.error = De opgegeven key is niet geldig.
2525
dialogs.translation.duplicate.text = Nieuwe naam:
2626
dialogs.translation.duplicate.title = Vertaling Dupliceren
2727
dialogs.translation.find.error = Geen vertaling gevonden.
28-
dialogs.translation.find.text = Naam van de vertaling:
28+
dialogs.translation.find.text = Key van de vertaling:
2929
dialogs.translation.find.title = Vertaling Zoeken
30-
dialogs.translation.rename.error = De opgegeven naam is niet geldig.
31-
dialogs.translation.rename.text = Nieuwe naam:
30+
dialogs.translation.rename.error = De opgegeven key is niet geldig.
31+
dialogs.translation.rename.text = Nieuwe key:
3232
dialogs.translation.rename.title = Vertaling Hernoemen
3333
dialogs.version.link = Klik hier om te downloaden
3434
dialogs.version.new = Een nieuwe versie is beschikbaar:
@@ -82,8 +82,11 @@ resources.import.error.single = Er is iets fout gegaan bij het openen van het ve
8282
resources.locale.default = Standaard
8383
resources.write.error.single = Er is iets fout gegaan bij het opslaan van het vertaalbestand ''{0}''.
8484

85+
settings.fieldset.editing = Weergave
8586
settings.fieldset.general = Algemeen
8687
settings.fieldset.newprojects = Nieuwe Projecten
88+
settings.inputheight.title = Standaardhoogte van invoervelden
89+
settings.keyfield.title = Toon vertalingskey veld
8790
settings.minify.title = Comprimeer vertalingen bij opslaan
8891
settings.resourcename.title = Vertaalbestandsnaam
8992
settings.version.title = Controleer op nieuwe versie bij opstarten

src/main/resources/bundles/messages_pt_BR.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,11 @@ resources.import.error.single = Um erro ocorreu enquanto o arquivo de tradu\u00e
8282
resources.locale.default = Padr\u00e3o
8383
resources.write.error.single = Um erro ocorreu enquanto o arquivo de tradu\u00e7\u00e3o era salvo ''{0}''.
8484

85+
settings.fieldset.editing = Edi\u00e7\u00e3o
8586
settings.fieldset.general = Geral
8687
settings.fieldset.newprojects = Novos Projetos
88+
settings.keyfield.title = Mostrar campo da chave de tradu\u00e7\u00e3o
89+
settings.inputheight.title = Altura padr\u00e3o dos campos de entrada
8790
settings.minify.title = Minificar tradu\u00e7\u00f5es ao salvar
8891
settings.resourcename.title = Nome do arquivo de tradu\u00e7\u00e3es
8992
settings.version.title = Verificar a nova vers\u00e3o na inicializa\u00e7\u00e3o

0 commit comments

Comments
 (0)