Skip to content

Commit 7b5fc26

Browse files
committed
Fix typo (Langage => Language)
* Fix typos (Langage => Language) found by @LordStephen77 * Rename variable/method name to plural since there are (and can be) several supported languages supported (to avoid confusion)
1 parent 86657b9 commit 7b5fc26

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/simplejavatexteditor/SupportedKeywords.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
public class SupportedKeywords {
1414

15-
private String[] supportedLangage = {".cpp",".java"};
15+
private String[] supportedLanguages = {".cpp",".java"};
1616

1717
private String[] java = {"abstract", "assert", "boolean",
1818
"break", "byte", "case", "catch", "char", "class", "const",
@@ -33,8 +33,8 @@ public class SupportedKeywords {
3333
"template", "typename", "class", "friend", "private", "this", "using", "const_cast",
3434
"inline", "public", "throw", "virtual", "delete", "mutable", "protected", "true", "wchar_t" };
3535

36-
public String[] getSupportedLangage() {
37-
return supportedLangage;
36+
public String[] getSupportedLanguages() {
37+
return supportedLanguages;
3838
}
3939

4040
private String[] brackets = { "{", "(" };

src/simplejavatexteditor/UI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ public void enableAutoComplete(File file) {
400400
}
401401

402402
ArrayList<String> arrayList;
403-
String[] list = kw.getSupportedLangage();
403+
String[] list = kw.getSupportedLanguages();
404404

405405
for (int i = 0; i < list.length; i++) {
406406
if (file.getName().endsWith(list[i])) {
@@ -446,7 +446,7 @@ else if (e.getSource() == newFile || e.getSource() == newButton) {
446446
Object[] options = {"Save", "No Save", "Return"};
447447
int n = JOptionPane.showOptionDialog(this, "Do you want to save the file at first ?", "Question",
448448
JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[2]);
449-
if (n == 0) {// save
449+
if (n == 0) {// save
450450
saveFile();
451451
edit = false;
452452
} else if (n == 1) {

0 commit comments

Comments
 (0)