| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3044ea6 commit 528c98b
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1126,7 +1126,7 @@ public boolean handleClose(Editor editor, boolean modeSwitch) { | |||
| 1126 | 1126 | // If the central menubar isn't supported on this OS X JVM, | |
| 1127 | 1127 | // we have to do the old behavior. Yuck! | |
| 1128 | 1128 | if (defaultFileMenu == null) { | |
| 1129 | - Object[] options = { "OK", "Cancel" }; | ||
| 1129 | + Object[] options = { Language.text("prompt.ok"), Language.text("prompt.cancel") }; | ||
| 1130 | 1130 | String prompt = | |
| 1131 | 1131 | "<html> " + | |
| 1132 | 1132 | "<head> <style type=\"text/css\">"+ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2315,7 +2315,7 @@ protected boolean handleOpenInternal(String path) { | |||
| 2315 | 2315 | final String properParent = | |
| 2316 | 2316 | file.getName().substring(0, file.getName().lastIndexOf('.')); | |
| 2317 | 2317 | ||
| 2318 | - Object[] options = { "OK", "Cancel" }; | ||
| 2318 | + Object[] options = { Language.text("prompt.ok"), Language.text("prompt.cancel") }; | ||
| 2319 | 2319 | String prompt = | |
| 2320 | 2320 | "The file \"" + file.getName() + "\" needs to be inside\n" + | |
| 2321 | 2321 | "a sketch folder named \"" + properParent + "\".\n" + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -233,7 +233,7 @@ public void actionPerformed(ActionEvent e) { | |||
| 233 | 233 | ||
| 234 | 234 | label = new JLabel(Language.text("preferences.background_color")+": "); | |
| 235 | 235 | colorBox.add(label); | |
| 236 | - | ||
| 236 | + | ||
| 237 | 237 | final String colorTip = "<html>" + Language.text("preferences.background_color.tip"); | |
| 238 | 238 | label.setToolTipText(colorTip); | |
| 239 | 239 | ||
@@ -302,7 +302,7 @@ public void run() { | |||
| 302 | 302 | }); | |
| 303 | 303 | ||
| 304 | 304 | selector = new ColorChooser(dialog, false, | |
| 305 | - Preferences.getColor("run.present.bgcolor"), "OK", | ||
| 305 | + Preferences.getColor("run.present.bgcolor"), Language.text("prompt.okay"), | ||
| 306 | 306 | new ActionListener() { | |
| 307 | 307 | @Override | |
| 308 | 308 | public void actionPerformed(ActionEvent e) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -633,7 +633,7 @@ public void handleDeleteCode() { | |||
| 633 | 633 | } | |
| 634 | 634 | ||
| 635 | 635 | // confirm deletion with user, yes/no | |
| 636 | - Object[] options = { "OK", "Cancel" }; | ||
| 636 | + Object[] options = { Language.text("prompt.ok"), Language.text("prompt.cancel") }; | ||
| 637 | 637 | String prompt = (currentIndex == 0) ? | |
| 638 | 638 | Language.text("warn.delete.sketch") : | |
| 639 | 639 | Language.interpolate("warn.delete.file", current.getPrettyName()); | |
@@ -1103,7 +1103,7 @@ public boolean addFile(File sourceFile) { | |||
| 1103 | 1103 | ||
| 1104 | 1104 | // check whether this file already exists | |
| 1105 | 1105 | if (destFile.exists()) { | |
| 1106 | - Object[] options = { "OK", "Cancel" }; | ||
| 1106 | + Object[] options = { Language.text("prompt.okay"), Language.text("prompt.cancel") }; | ||
| 1107 | 1107 | String prompt = "Replace the existing version of " + filename + "?"; | |
| 1108 | 1108 | int result = JOptionPane.showOptionDialog(editor, | |
| 1109 | 1109 | prompt, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -251,13 +251,13 @@ public void actionPerformed(ActionEvent e) { | |||
| 251 | 251 | pain.add(filestuff); | |
| 252 | 252 | ||
| 253 | 253 | JPanel buttons = new JPanel(); | |
| 254 | - JButton cancelButton = new JButton("Cancel"); | ||
| 254 | + JButton cancelButton = new JButton(Language.text("prompt.cancel")); | ||
| 255 | 255 | cancelButton.addActionListener(new ActionListener() { | |
| 256 | 256 | public void actionPerformed(ActionEvent e) { | |
| 257 | 257 | setVisible(false); | |
| 258 | 258 | } | |
| 259 | 259 | }); | |
| 260 | - okButton = new JButton("OK"); | ||
| 260 | + okButton = new JButton(Language.text("prompt.ok")); | ||
| 261 | 261 | okButton.addActionListener(new ActionListener() { | |
| 262 | 262 | public void actionPerformed(ActionEvent e) { | |
| 263 | 263 | build(); | |
@@ -587,7 +587,7 @@ public void actionPerformed(ActionEvent e) { | |||
| 587 | 587 | pain.add(Box.createVerticalStrut(8)); | |
| 588 | 588 | ||
| 589 | 589 | JPanel buttons = new JPanel(); | |
| 590 | - JButton okButton = new JButton("OK"); | ||
| 590 | + JButton okButton = new JButton(Language.text("prompt.ok")); | ||
| 591 | 591 | okButton.addActionListener(new ActionListener() { | |
| 592 | 592 | public void actionPerformed(ActionEvent e) { | |
| 593 | 593 | setVisible(false); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -677,7 +677,7 @@ public void actionPerformed(ActionEvent e) { | |||
| 677 | 677 | */ | |
| 678 | 678 | protected boolean handleExportCheckModified() { | |
| 679 | 679 | if (sketch.isModified()) { | |
| 680 | - Object[] options = { "OK", "Cancel" }; | ||
| 680 | + Object[] options = { Language.text("prompt.ok"), Language.text("prompt.cancel") }; | ||
| 681 | 681 | int result = JOptionPane.showOptionDialog(this, | |
| 682 | 682 | "Save changes before export?", | |
| 683 | 683 | "Save", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments