Revision: 7112
http://languagetool.svn.sourceforge.net/languagetool/?rev=7112&view=rev
Author: milek_pl
Date: 2012-05-31 09:22:16 +0000 (Thu, 31 May 2012)
Log Message:
-----------
remove unsafe call to messages.getString
Modified Paths:
--------------
trunk/JLanguageTool/src/java/org/languagetool/gui/ConfigurationDialog.java
Modified:
trunk/JLanguageTool/src/java/org/languagetool/gui/ConfigurationDialog.java
===================================================================
--- trunk/JLanguageTool/src/java/org/languagetool/gui/ConfigurationDialog.java
2012-05-30 20:58:58 UTC (rev 7111)
+++ trunk/JLanguageTool/src/java/org/languagetool/gui/ConfigurationDialog.java
2012-05-31 09:22:16 UTC (rev 7112)
@@ -206,8 +206,7 @@
if (motherTongue == Language.DEMO) {
motherTongueBox.setSelectedItem(NO_MOTHER_TONGUE);
} else {
- motherTongueBox.setSelectedItem(messages.getString(motherTongue
- .getShortName()));
+
motherTongueBox.setSelectedItem(motherTongue.getTranslatedName(messages));
}
}
motherTonguePanel.add(motherTongueBox, cons);
@@ -361,7 +360,7 @@
motherTongues.add(NO_MOTHER_TONGUE);
for (final Language lang : Language.LANGUAGES) {
if (lang != Language.DEMO) {
- motherTongues.add(messages.getString(lang.getShortName()));
+ motherTongues.add(lang.getTranslatedName(messages));
}
}
return motherTongues.toArray();
@@ -465,7 +464,7 @@
if (NO_MOTHER_TONGUE.equals(languageName)) {
return Language.DEMO;
}
- if (languageName.equals(messages.getString(element.getShortName()))) {
+ if (languageName.equals(element.getTranslatedName(messages))) {
return element;
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs