Revision: 7006 http://languagetool.svn.sourceforge.net/languagetool/?rev=7006&view=rev Author: milek_pl Date: 2012-05-19 22:02:55 +0000 (Sat, 19 May 2012) Log Message: ----------- new messages
Modified Paths: -------------- trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle.properties trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle_en.properties trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java Modified: trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle.properties =================================================================== --- trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle.properties 2012-05-19 21:48:42 UTC (rev 7005) +++ trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle.properties 2012-05-19 22:02:55 UTC (rev 7006) @@ -55,6 +55,10 @@ desc_whitespacerepetition = Whitespace repetition (bad formatting) +desc_spelling = Possible spelling mistake + +desc_spelling_short = Spelling mistake + double_dots_short = Two consecutive dots double_commas_short = Two consecutive comma @@ -189,6 +193,8 @@ space_after_comma = Put a space after the comma, but not before the comma +spelling = Possible spelling mistake found + startChecking = Starting check in {0} sv = Swedish Modified: trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle_en.properties =================================================================== --- trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle_en.properties 2012-05-19 21:48:42 UTC (rev 7005) +++ trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle_en.properties 2012-05-19 22:02:55 UTC (rev 7006) @@ -47,6 +47,10 @@ desc_whitespacerepetition = Whitespace repetition (bad formatting) +desc_spelling = Possible spelling mistake + +desc_spelling_short = Spelling mistake + double_dots_short = Two consecutive dots double_commas_short = Two consecutive comma @@ -175,6 +179,8 @@ ru = Russian +spelling = Possible spelling mistake found. + sk = Slovak sl = Slovenian Modified: trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java =================================================================== --- trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java 2012-05-19 21:48:42 UTC (rev 7005) +++ trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java 2012-05-19 22:02:55 UTC (rev 7006) @@ -127,8 +127,7 @@ @Override public String getDescription() { - // TODO Auto-generated method stub - return null; + return messages.getString("desc_spelling"); } @Override @@ -149,11 +148,11 @@ isAlphabetic = StringTools.isAlphabetic(word.charAt(0)); } - if (isAlphabetic && dictionary.misspelled(word)) { + if (isAlphabetic && dictionary.misspelled(word)) { final RuleMatch ruleMatch = new RuleMatch(this, tokens[i].getStartPos(), tokens[i].getStartPos() + word.length(), - messages.getString("category_typo"), - messages.getString("category_typo")); + messages.getString("spelling"), + messages.getString("desc_spelling_short")); List<String> suggestions = dictionary.suggest(word); if (suggestions != null) { ruleMatch.setSuggestedReplacements(suggestions); 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 Languagetool-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-cvs