remove some hardcoded strings, use the language file instead

This commit is contained in:
Gered 2015-12-03 17:15:30 -05:00
parent c85a1b974b
commit 357cbe9026
4 changed files with 7 additions and 4 deletions

View file

@ -57,8 +57,7 @@ final class Actions {
file = null;
fileChooser = new JFileChooser(UserSettings.getSplitsPath());
fileChooser.setFileFilter(new FileNameExtensionFilter(
"Llanfair Run Splits", "lfs"));
fileChooser.setFileFilter(new FileNameExtensionFilter("" + Language.RUN_FILE_FILTER, "lfs"));
lastUnsplit = 0L;
lastSkip = 0L;

View file

@ -148,6 +148,7 @@ public enum Language {
// Edit Dialog
ED_SEGMENTED,
TT_ED_SEGMENTED,
ED_DELAYED_START,
// Panels Title
PN_DIMENSION,
@ -231,6 +232,7 @@ public enum Language {
MAX_ORDINATE,
NAME,
RUN_TITLE,
RUN_FILE_FILTER,
SEGMENT,
SEGMENTS,
SPLIT,

View file

@ -175,7 +175,7 @@ implements ActionListener, ListSelectionListener {
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(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(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)

View file

@ -183,4 +183,6 @@ INCREMENT =
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_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