remove some hardcoded strings, use the language file instead
This commit is contained in:
parent
c85a1b974b
commit
357cbe9026
|
@ -57,8 +57,7 @@ final class Actions {
|
||||||
|
|
||||||
file = null;
|
file = null;
|
||||||
fileChooser = new JFileChooser(UserSettings.getSplitsPath());
|
fileChooser = new JFileChooser(UserSettings.getSplitsPath());
|
||||||
fileChooser.setFileFilter(new FileNameExtensionFilter(
|
fileChooser.setFileFilter(new FileNameExtensionFilter("" + Language.RUN_FILE_FILTER, "lfs"));
|
||||||
"Llanfair Run Splits", "lfs"));
|
|
||||||
|
|
||||||
lastUnsplit = 0L;
|
lastUnsplit = 0L;
|
||||||
lastSkip = 0L;
|
lastSkip = 0L;
|
||||||
|
|
|
@ -148,6 +148,7 @@ public enum Language {
|
||||||
// Edit Dialog
|
// Edit Dialog
|
||||||
ED_SEGMENTED,
|
ED_SEGMENTED,
|
||||||
TT_ED_SEGMENTED,
|
TT_ED_SEGMENTED,
|
||||||
|
ED_DELAYED_START,
|
||||||
|
|
||||||
// Panels Title
|
// Panels Title
|
||||||
PN_DIMENSION,
|
PN_DIMENSION,
|
||||||
|
@ -231,6 +232,7 @@ public enum Language {
|
||||||
MAX_ORDINATE,
|
MAX_ORDINATE,
|
||||||
NAME,
|
NAME,
|
||||||
RUN_TITLE,
|
RUN_TITLE,
|
||||||
|
RUN_FILE_FILTER,
|
||||||
SEGMENT,
|
SEGMENT,
|
||||||
SEGMENTS,
|
SEGMENTS,
|
||||||
SPLIT,
|
SPLIT,
|
||||||
|
|
|
@ -175,7 +175,7 @@ implements ActionListener, ListSelectionListener {
|
||||||
add(runTitle, GBC.grid(1, 0, 3, 1).insets(4, 0, 0, 4).anchor(GBC.LS));
|
add(runTitle, GBC.grid(1, 0, 3, 1).insets(4, 0, 0, 4).anchor(GBC.LS));
|
||||||
add(new JLabel("" + Language.LB_GOAL), GBC.grid(0, 1).insets(4, 4, 0, 4).anchor(GBC.LE));
|
add(new JLabel("" + Language.LB_GOAL), GBC.grid(0, 1).insets(4, 4, 0, 4).anchor(GBC.LE));
|
||||||
add(runGoal, GBC.grid(1, 1).insets(4, 0, 0, 4).anchor(GBC.LS));
|
add(runGoal, GBC.grid(1, 1).insets(4, 0, 0, 4).anchor(GBC.LS));
|
||||||
add(new JLabel("Delayed Start"), GBC.grid(0, 2).insets(4, 4, 0, 4).anchor(GBC.LE));
|
add(new JLabel("" + Language.ED_DELAYED_START), GBC.grid(0, 2).insets(4, 4, 0, 4).anchor(GBC.LE));
|
||||||
add(runDelayedStart, GBC.grid(1, 2).insets(4, 0, 0, 4).anchor(GBC.LS));
|
add(runDelayedStart, GBC.grid(1, 2).insets(4, 0, 0, 4).anchor(GBC.LS));
|
||||||
add(segmented, GBC.grid(2, 2, 2, 1).insets(4, 0, 0, 4).anchor(GBC.LS));
|
add(segmented, GBC.grid(2, 2, 2, 1).insets(4, 0, 0, 4).anchor(GBC.LS));
|
||||||
add(segmentsLabel, GBC.grid(0, 3).insets(5, 4, 4, 0)
|
add(segmentsLabel, GBC.grid(0, 3).insets(5, 4, 4, 0)
|
||||||
|
|
|
@ -183,4 +183,6 @@ INCREMENT =
|
||||||
START_VALUE =
|
START_VALUE =
|
||||||
GLOBAL_HOTKEYS_WARNING = <html><div style="width: 300px;">Key event hook registration failed. <strong>You will not be able to set or use any of your hotkeys until this is fixed!</strong> Click 'Retry' below to attempt to register it again.</div></html>
|
GLOBAL_HOTKEYS_WARNING = <html><div style="width: 300px;">Key event hook registration failed. <strong>You will not be able to set or use any of your hotkeys until this is fixed!</strong> Click 'Retry' below to attempt to register it again.</div></html>
|
||||||
GLOBAL_HOTKEYS_HOOK_RETRY = Retry
|
GLOBAL_HOTKEYS_HOOK_RETRY = Retry
|
||||||
GLOBAL_HOTKEYS_HOOK_ERROR = Key event hook registration failed. You will need to grant extra accessibility permissions to Llanfair.
|
GLOBAL_HOTKEYS_HOOK_ERROR = Key event hook registration failed. You will need to grant extra accessibility permissions to Llanfair.
|
||||||
|
ED_DELAYED_START = Delayed Start
|
||||||
|
RUN_FILE_FILTER = Llanfair Run Splits
|
Reference in a new issue