FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

added basic prompt messages · HAPI-Tech-Solution/processing@528c98b · GitHub

Repository navigation

Commit 528c98b

Browse files
Darius Morawiec
committed
added basic prompt messages
1 parent 3044ea6 commit 528c98b

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎app/src/processing/app/Base.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ public boolean handleClose(Editor editor, boolean modeSwitch) {
11261126
// If the central menubar isn't supported on this OS X JVM,
11271127
// we have to do the old behavior. Yuck!
11281128
if (defaultFileMenu == null) {
1129-
Object[] options = { "OK", "Cancel" };
1129+
Object[] options = { Language.text("prompt.ok"), Language.text("prompt.cancel") };
11301130
String prompt =
11311131
"<html> " +
11321132
"<head> <style type=\"text/css\">"+

‎app/src/processing/app/Editor.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2315,7 +2315,7 @@ protected boolean handleOpenInternal(String path) {
23152315
final String properParent =
23162316
file.getName().substring(0, file.getName().lastIndexOf('.'));
23172317

2318-
Object[] options = { "OK", "Cancel" };
2318+
Object[] options = { Language.text("prompt.ok"), Language.text("prompt.cancel") };
23192319
String prompt =
23202320
"The file \"" + file.getName() + "\" needs to be inside\n" +
23212321
"a sketch folder named \"" + properParent + "\".\n" +

‎app/src/processing/app/PreferencesFrame.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public void actionPerformed(ActionEvent e) {
233233

234234
label = new JLabel(Language.text("preferences.background_color")+": ");
235235
colorBox.add(label);
236-
236+
237237
final String colorTip = "<html>" + Language.text("preferences.background_color.tip");
238238
label.setToolTipText(colorTip);
239239

@@ -302,7 +302,7 @@ public void run() {
302302
});
303303

304304
selector = new ColorChooser(dialog, false,
305-
Preferences.getColor("run.present.bgcolor"), "OK",
305+
Preferences.getColor("run.present.bgcolor"), Language.text("prompt.okay"),
306306
new ActionListener() {
307307
@Override
308308
public void actionPerformed(ActionEvent e) {

‎app/src/processing/app/Sketch.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ public void handleDeleteCode() {
633633
}
634634

635635
// confirm deletion with user, yes/no
636-
Object[] options = { "OK", "Cancel" };
636+
Object[] options = { Language.text("prompt.ok"), Language.text("prompt.cancel") };
637637
String prompt = (currentIndex == 0) ?
638638
Language.text("warn.delete.sketch") :
639639
Language.interpolate("warn.delete.file", current.getPrettyName());
@@ -1103,7 +1103,7 @@ public boolean addFile(File sourceFile) {
11031103

11041104
// check whether this file already exists
11051105
if (destFile.exists()) {
1106-
Object[] options = { "OK", "Cancel" };
1106+
Object[] options = { Language.text("prompt.okay"), Language.text("prompt.cancel") };
11071107
String prompt = "Replace the existing version of " + filename + "?";
11081108
int result = JOptionPane.showOptionDialog(editor,
11091109
prompt,

‎app/src/processing/app/tools/CreateFont.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,13 @@ public void actionPerformed(ActionEvent e) {
251251
pain.add(filestuff);
252252

253253
JPanel buttons = new JPanel();
254-
JButton cancelButton = new JButton("Cancel");
254+
JButton cancelButton = new JButton(Language.text("prompt.cancel"));
255255
cancelButton.addActionListener(new ActionListener() {
256256
public void actionPerformed(ActionEvent e) {
257257
setVisible(false);
258258
}
259259
});
260-
okButton = new JButton("OK");
260+
okButton = new JButton(Language.text("prompt.ok"));
261261
okButton.addActionListener(new ActionListener() {
262262
public void actionPerformed(ActionEvent e) {
263263
build();
@@ -587,7 +587,7 @@ public void actionPerformed(ActionEvent e) {
587587
pain.add(Box.createVerticalStrut(8));
588588

589589
JPanel buttons = new JPanel();
590-
JButton okButton = new JButton("OK");
590+
JButton okButton = new JButton(Language.text("prompt.ok"));
591591
okButton.addActionListener(new ActionListener() {
592592
public void actionPerformed(ActionEvent e) {
593593
setVisible(false);

‎app/src/processing/mode/java/JavaEditor.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ public void actionPerformed(ActionEvent e) {
677677
*/
678678
protected boolean handleExportCheckModified() {
679679
if (sketch.isModified()) {
680-
Object[] options = { "OK", "Cancel" };
680+
Object[] options = { Language.text("prompt.ok"), Language.text("prompt.cancel") };
681681
int result = JOptionPane.showOptionDialog(this,
682682
"Save changes before export?",
683683
"Save",

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL