Revision: 8813
http://languagetool.svn.sourceforge.net/languagetool/?rev=8813&view=rev
Author: dnaber
Date: 2013-01-03 16:38:07 +0000 (Thu, 03 Jan 2013)
Log Message:
-----------
[de] use a more appropriate rule id, as this rule also covers variants AT and
CH, not just de-DE
Modified Paths:
--------------
trunk/JLanguageTool/src/main/java/org/languagetool/rules/de/GermanSpellerRule.java
trunk/JLanguageTool/src/test/java/org/languagetool/rules/spelling/SpellingCheckRuleTest.java
Modified:
trunk/JLanguageTool/src/main/java/org/languagetool/rules/de/GermanSpellerRule.java
===================================================================
---
trunk/JLanguageTool/src/main/java/org/languagetool/rules/de/GermanSpellerRule.java
2013-01-03 11:37:31 UTC (rev 8812)
+++
trunk/JLanguageTool/src/main/java/org/languagetool/rules/de/GermanSpellerRule.java
2013-01-03 16:38:07 UTC (rev 8813)
@@ -30,7 +30,7 @@
public class GermanSpellerRule extends CompoundAwareHunspellRule {
- public static final String RULE_ID = "GERMANY_GERMAN_SPELLER_RULE";
+ public static final String RULE_ID = "GERMAN_SPELLER_RULE";
private static final int MAX_EDIT_DISTANCE = 2;
Modified:
trunk/JLanguageTool/src/test/java/org/languagetool/rules/spelling/SpellingCheckRuleTest.java
===================================================================
---
trunk/JLanguageTool/src/test/java/org/languagetool/rules/spelling/SpellingCheckRuleTest.java
2013-01-03 11:37:31 UTC (rev 8812)
+++
trunk/JLanguageTool/src/test/java/org/languagetool/rules/spelling/SpellingCheckRuleTest.java
2013-01-03 16:38:07 UTC (rev 8813)
@@ -43,7 +43,7 @@
final List<RuleMatch> matches2 = langTool.check("Das ist ein Tibbfehla");
assertEquals(1, matches2.size());
- assertEquals("GERMANY_GERMAN_SPELLER_RULE",
matches2.get(0).getRule().getId());
+ assertEquals(GermanSpellerRule.RULE_ID, matches2.get(0).getRule().getId());
}
public void testIgnoreSuggestionsWithMorfologik() throws IOException {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits