Skip to content

Commit be44d7d

Browse files
make 'tooltips' consistently plural in user-facing strings
1 parent 77b4326 commit be44d7d

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

enigma-swing/src/main/java/org/quiltmc/enigma/gui/config/EditorConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ public class EditorConfig extends ReflectiveConfig {
1111
@Comment("Whether editors' quick find toolbars should remain visible when they lose focus.")
1212
public final TrackedValue<Boolean> persistentQuickFind = this.value(true);
1313

14-
@Comment("Settings for the editor's entry tooltip.")
15-
public final EntryTooltipSection entryTooltip = new EntryTooltipSection();
14+
@Comment("Settings for editors' entry tooltips.")
15+
public final EntryTooltipsSection entryTooltips = new EntryTooltipsSection();
1616
}

enigma-swing/src/main/java/org/quiltmc/enigma/gui/config/EntryTooltipSection.java renamed to enigma-swing/src/main/java/org/quiltmc/enigma/gui/config/EntryTooltipsSection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import org.quiltmc.config.api.values.TrackedValue;
88

99
@SerializedNameConvention(NamingSchemes.SNAKE_CASE)
10-
public class EntryTooltipSection extends ReflectiveConfig.Section {
10+
public class EntryTooltipsSection extends ReflectiveConfig.Section {
1111
@Comment("Whether tooltips are enabled.")
1212
public final TrackedValue<Boolean> enable = this.value(true);
1313

enigma-swing/src/main/java/org/quiltmc/enigma/gui/element/menu_bar/view/EntryTooltipMenu.java renamed to enigma-swing/src/main/java/org/quiltmc/enigma/gui/element/menu_bar/view/EntryTooltipsMenu.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
import static org.quiltmc.enigma.gui.util.GuiUtil.createSyncedMenuCheckBox;
1111

12-
public class EntryTooltipMenu extends AbstractEnigmaMenu {
13-
private final JCheckBoxMenuItem enable = createSyncedMenuCheckBox(Config.editor().entryTooltip.enable);
14-
private final JCheckBoxMenuItem interactable = createSyncedMenuCheckBox(Config.editor().entryTooltip.interactable);
12+
public class EntryTooltipsMenu extends AbstractEnigmaMenu {
13+
private final JCheckBoxMenuItem enable = createSyncedMenuCheckBox(Config.editor().entryTooltips.enable);
14+
private final JCheckBoxMenuItem interactable = createSyncedMenuCheckBox(Config.editor().entryTooltips.interactable);
1515

16-
protected EntryTooltipMenu(Gui gui) {
16+
protected EntryTooltipsMenu(Gui gui) {
1717
super(gui);
1818

1919
this.add(this.enable);
@@ -24,8 +24,8 @@ protected EntryTooltipMenu(Gui gui) {
2424

2525
@Override
2626
public void retranslate() {
27-
this.setText(I18n.translate("menu.view.entry_tooltip"));
28-
this.enable.setText(I18n.translate("menu.view.entry_tooltip.enable"));
29-
this.interactable.setText(I18n.translate("menu.view.entry_tooltip.interactable"));
27+
this.setText(I18n.translate("menu.view.entry_tooltips"));
28+
this.enable.setText(I18n.translate("menu.view.entry_tooltips.enable"));
29+
this.interactable.setText(I18n.translate("menu.view.entry_tooltips.interactable"));
3030
}
3131
}

enigma-swing/src/main/java/org/quiltmc/enigma/gui/element/menu_bar/view/ViewMenu.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class ViewMenu extends AbstractEnigmaMenu {
1414
private final LanguagesMenu languages;
1515
private final ThemesMenu themes;
1616
private final ScaleMenu scale;
17-
private final EntryTooltipMenu entryTooltip;
17+
private final EntryTooltipsMenu entryTooltips;
1818

1919
private final JMenuItem fontItem = new JMenuItem();
2020

@@ -25,14 +25,14 @@ public ViewMenu(Gui gui) {
2525
this.languages = new LanguagesMenu(gui);
2626
this.themes = new ThemesMenu(gui);
2727
this.scale = new ScaleMenu(gui);
28-
this.entryTooltip = new EntryTooltipMenu(gui);
28+
this.entryTooltips = new EntryTooltipsMenu(gui);
2929

3030
this.add(this.themes);
3131
this.add(this.languages);
3232
this.add(this.notifications);
3333
this.add(this.scale);
3434
this.add(this.stats);
35-
this.add(this.entryTooltip);
35+
this.add(this.entryTooltips);
3636
this.add(this.fontItem);
3737

3838
this.fontItem.addActionListener(e -> this.onFontClicked(this.gui));
@@ -47,7 +47,7 @@ public void retranslate() {
4747
this.languages.retranslate();
4848
this.scale.retranslate();
4949
this.stats.retranslate();
50-
this.entryTooltip.retranslate();
50+
this.entryTooltips.retranslate();
5151
this.fontItem.setText(I18n.translate("menu.view.font"));
5252
}
5353

enigma-swing/src/main/java/org/quiltmc/enigma/gui/panel/EditorPanel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ public void windowLostFocus(WindowEvent e) {
318318
// This also reduces the chances of accidentally updating the tooltip with
319319
// a new entry's content as you move your mouse to the tooltip.
320320
final Timer mouseStoppedMovingTimer = new Timer(MOUSE_STOPPED_MOVING_DELAY, e -> {
321-
if (Config.editor().entryTooltip.enable.value()) {
321+
if (Config.editor().entryTooltips.enable.value()) {
322322
EditorPanel.this.consumeEditorMouseTarget(
323323
(token, entry, resolvedParent) -> {
324324
this.hideTimer.stop();
@@ -376,7 +376,7 @@ public void windowLostFocus(WindowEvent e) {
376376
this.entryTooltip.addMouseMotionListener(new MouseAdapter() {
377377
@Override
378378
public void mouseMoved(MouseEvent e) {
379-
if (Config.editor().entryTooltip.interactable.value()) {
379+
if (Config.editor().entryTooltips.interactable.value()) {
380380
TooltipManager.this.mouseStoppedMovingTimer.stop();
381381
TooltipManager.this.hideTimer.stop();
382382
}

enigma-swing/src/main/java/org/quiltmc/enigma/gui/panel/EntryTooltip.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public EntryTooltip(Gui gui) {
124124
this.addMouseListener(new MouseAdapter() {
125125
@Override
126126
public void mousePressed(MouseEvent e) {
127-
if (Config.editor().entryTooltip.interactable.value()) {
127+
if (Config.editor().entryTooltips.interactable.value()) {
128128
EntryTooltip.this.dragStart = e.getButton() == MouseEvent.BUTTON1
129129
? new Point(e.getX(), e.getY())
130130
: null;
@@ -196,7 +196,7 @@ private void populateWith(Entry<?> target, boolean inherited, boolean opening) {
196196
this.content.removeAll();
197197

198198
@Nullable
199-
final MouseAdapter stopInteraction = Config.editor().entryTooltip.interactable.value()
199+
final MouseAdapter stopInteraction = Config.editor().entryTooltips.interactable.value()
200200
? null : new MouseAdapter() {
201201
@Override
202202
public void mousePressed(MouseEvent e) {

enigma/src/main/resources/lang/en_us.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@
8282
"menu.view.stat_icons.count_fallback": "Count fallback-proposed names",
8383
"menu.view.stat_icons.included_types": "Included types",
8484
"menu.view.stat_icons.enable_icons": "Enable icons",
85-
"menu.view.entry_tooltip": "Entry Tooltip",
86-
"menu.view.entry_tooltip.enable": "Enable tooltip",
87-
"menu.view.entry_tooltip.interactable": "Allow tooltip interaction",
85+
"menu.view.entry_tooltips": "Entry Tooltips",
86+
"menu.view.entry_tooltips.enable": "Enable tooltips",
87+
"menu.view.entry_tooltips.interactable": "Allow tooltip interaction",
8888
"menu.view.font": "Fonts...",
8989
"menu.view.change.title": "Changes",
9090
"menu.view.change.summary": "Changes will be applied after the next restart.",

0 commit comments

Comments
 (0)