Revision: 7255
http://languagetool.svn.sourceforge.net/languagetool/?rev=7255&view=rev
Author: dnaber
Date: 2012-06-05 21:53:30 +0000 (Tue, 05 Jun 2012)
Log Message:
-----------
[de] adding Swiss German and Austrian German
Modified Paths:
--------------
trunk/JLanguageTool/src/java/org/languagetool/Language.java
trunk/JLanguageTool/src/java/org/languagetool/language/German.java
Added Paths:
-----------
trunk/JLanguageTool/src/java/org/languagetool/language/AustrianGerman.java
trunk/JLanguageTool/src/java/org/languagetool/language/SwissGerman.java
Modified: trunk/JLanguageTool/src/java/org/languagetool/Language.java
===================================================================
--- trunk/JLanguageTool/src/java/org/languagetool/Language.java 2012-06-05
21:38:37 UTC (rev 7254)
+++ trunk/JLanguageTool/src/java/org/languagetool/Language.java 2012-06-05
21:53:30 UTC (rev 7255)
@@ -52,6 +52,8 @@
public static final Language ESPERANTO = new Esperanto();
public static final Language FRENCH = new French();
public static final Language GERMAN = new German();
+ public static final Language AUSTRIAN_GERMAN = new AustrianGerman();
+ public static final Language SWISS_GERMAN = new SwissGerman();
public static final Language ITALIAN = new Italian();
public static final Language KHMER = new Khmer();
public static final Language LITHUANIAN = new Lithuanian();
@@ -83,7 +85,7 @@
ENGLISH, GERMAN, POLISH, FRENCH, SPANISH, ITALIAN, KHMER, DUTCH,
LITHUANIAN, UKRAINIAN, RUSSIAN,
SLOVAK, SLOVENIAN, /*SWEDISH,*/ ROMANIAN, ICELANDIC, GALICIAN, CATALAN,
DANISH,
MALAYALAM, BELARUSIAN, ESPERANTO, CHINESE, ASTURIAN, TAGALOG, BRETON,
GREEK,
- AMERICAN_ENGLISH, BRITISH_ENGLISH,
+ AMERICAN_ENGLISH, BRITISH_ENGLISH, AUSTRIAN_GERMAN, SWISS_GERMAN,
DEMO
};
Added:
trunk/JLanguageTool/src/java/org/languagetool/language/AustrianGerman.java
===================================================================
--- trunk/JLanguageTool/src/java/org/languagetool/language/AustrianGerman.java
(rev 0)
+++ trunk/JLanguageTool/src/java/org/languagetool/language/AustrianGerman.java
2012-06-05 21:53:30 UTC (rev 7255)
@@ -0,0 +1,33 @@
+/* LanguageTool, a natural language style checker
+ * Copyright (C) 2012 Daniel Naber (http://www.danielnaber.de)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
+ * USA
+ */
+package org.languagetool.language;
+
+public class AustrianGerman extends German {
+
+ @Override
+ public final String[] getCountryVariants() {
+ return new String[]{"AT"};
+ }
+
+ @Override
+ public final String getName() {
+ return "Austrian German";
+ }
+
+}
Modified: trunk/JLanguageTool/src/java/org/languagetool/language/German.java
===================================================================
--- trunk/JLanguageTool/src/java/org/languagetool/language/German.java
2012-06-05 21:38:37 UTC (rev 7254)
+++ trunk/JLanguageTool/src/java/org/languagetool/language/German.java
2012-06-05 21:53:30 UTC (rev 7255)
@@ -51,7 +51,7 @@
@Override
public String[] getCountryVariants() {
- return new String[]{"DE", "CH", "AT", "LU", "LI", "BE"};
+ return new String[]{"DE", "LU", "LI", "BE"};
}
@Override
Added: trunk/JLanguageTool/src/java/org/languagetool/language/SwissGerman.java
===================================================================
--- trunk/JLanguageTool/src/java/org/languagetool/language/SwissGerman.java
(rev 0)
+++ trunk/JLanguageTool/src/java/org/languagetool/language/SwissGerman.java
2012-06-05 21:53:30 UTC (rev 7255)
@@ -0,0 +1,33 @@
+/* LanguageTool, a natural language style checker
+ * Copyright (C) 2012 Daniel Naber (http://www.danielnaber.de)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
+ * USA
+ */
+package org.languagetool.language;
+
+public class SwissGerman extends German {
+
+ @Override
+ public final String[] getCountryVariants() {
+ return new String[]{"CH"};
+ }
+
+ @Override
+ public final String getName() {
+ return "Swiss German";
+ }
+
+}
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