Revision: 7344
http://languagetool.svn.sourceforge.net/languagetool/?rev=7344&view=rev
Author: dnaber
Date: 2012-06-14 20:49:16 +0000 (Thu, 14 Jun 2012)
Log Message:
-----------
add language variant to logging
Modified Paths:
--------------
trunk/ltcommunity/grails-app/controllers/org/languagetool/RuleEditorController.groovy
Modified:
trunk/ltcommunity/grails-app/controllers/org/languagetool/RuleEditorController.groovy
===================================================================
---
trunk/ltcommunity/grails-app/controllers/org/languagetool/RuleEditorController.groovy
2012-06-14 20:37:31 UTC (rev 7343)
+++
trunk/ltcommunity/grails-app/controllers/org/languagetool/RuleEditorController.groovy
2012-06-14 20:49:16 UTC (rev 7344)
@@ -61,11 +61,11 @@
checkExampleSentences(patternRule, language, problems, shortProblems)
if (problems.size() == 0) {
SearcherResult searcherResult =
checkRuleAgainstCorpus(patternRule, language, CORPUS_MATCH_LIMIT)
- log.info("Checked rule: valid - LANG: ${language.getShortName()} -
PATTERN: ${params.pattern} - BAD: ${params.incorrectExample1} - GOOD:
${params.correctExample1}")
+ log.info("Checked rule: valid - LANG:
${language.getShortNameWithVariant()} - PATTERN: ${params.pattern} - BAD:
${params.incorrectExample1} - GOOD: ${params.correctExample1}")
[messagePreset: params.messageBackup, namePreset:
params.nameBackup,
searcherResult: searcherResult, limit: CORPUS_MATCH_LIMIT]
} else {
- log.info("Checked rule: invalid - LANG: ${language.getShortName()}
- PATTERN: ${params.pattern} - BAD: ${params.incorrectExample1} - GOOD:
${params.correctExample1} - ${shortProblems}")
+ log.info("Checked rule: invalid - LANG:
${language.getShortNameWithVariant()} - PATTERN: ${params.pattern} - BAD:
${params.incorrectExample1} - GOOD: ${params.correctExample1} -
${shortProblems}")
render(template: 'checkRuleProblem', model: [problems: problems,
hasRegex: hasRegex(patternRule), expertMode: false])
}
}
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