Revision: 9660
http://languagetool.svn.sourceforge.net/languagetool/?rev=9660&view=rev
Author: dnaber
Date: 2013-03-10 12:46:28 +0000 (Sun, 10 Mar 2013)
Log Message:
-----------
add ugly workaround (plus TODO comment) so "Simple German" doesn't hide "German
(Germany)" because it's a subclass of it
Modified Paths:
--------------
trunk/languagetool/languagetool-standalone/src/main/java/org/languagetool/gui/LanguageComboBox.java
Modified:
trunk/languagetool/languagetool-standalone/src/main/java/org/languagetool/gui/LanguageComboBox.java
===================================================================
---
trunk/languagetool/languagetool-standalone/src/main/java/org/languagetool/gui/LanguageComboBox.java
2013-03-10 12:23:01 UTC (rev 9659)
+++
trunk/languagetool/languagetool-standalone/src/main/java/org/languagetool/gui/LanguageComboBox.java
2013-03-10 12:46:28 UTC (rev 9660)
@@ -64,7 +64,9 @@
i18nLanguages.clear();
for (Language language : Language.LANGUAGES) {
final boolean skip = (language == Language.DEMO) ||
language.hasVariant();
- if (!skip) {
+ // TODO: "Simple German" would hide "German (Germany)" - find a proper
solution
+ final boolean simpleGermanWorkaround =
language.getShortNameWithVariant().equals("de-DE");
+ if (!skip || simpleGermanWorkaround) {
i18nLanguages.add(new I18nLanguage(language, messages));
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits