i18n: truncate excessive description
authorAlexey Kudravtsev <cdr@intellij.com>
Fri, 11 Jun 2010 08:55:47 +0000 (12:55 +0400)
committerAlexey Kudravtsev <cdr@intellij.com>
Fri, 11 Jun 2010 10:07:42 +0000 (14:07 +0400)
platform/platform-resources-en/src/messages/CodeInsightBundle.properties
plugins/java-i18n/src/com/intellij/codeInspection/i18n/I18nInspection.java

index e697a84eefbd690b7248a6918e584ff844666a42..cf07fe2657332a225edd5d575e9eacfc27c379f9 100644 (file)
@@ -128,7 +128,7 @@ inspection.i18n.option.ignore.qualified.class.names=Ignore literals which have v
 inspection.i18n.option.ignore.property.keys=Ignore literals which have value equal to existing property key
 inspection.i18n.option.ignore.nonalphanumerics=Ignore literals which do not contain alphabetic characters
 inspection.i18n.quickfix=I18nize hard coded string literal
-inspection.i18n.message.general.with.value=Hard coded string literal: ''{0}''
+inspection.i18n.message.general.with.value=Hard coded string literal: {0}
 inspection.unresolved.property.key.reference.name=Invalid property key
 inspection.unresolved.property.key.reference.message=String literal ''{0}'' doesn''t appear to be valid property key
 inspection.invalid.resource.bundle.reference=Invalid resource bundle reference ''{0}''
@@ -454,4 +454,4 @@ create.tagfile.text=Create Tag File {0}
 rename.file.fix=Rename File
 rename.public.class.family=Rename Public Class
 rename.public.class.text=Rename class ''{0}'' to ''{1}''
-rename.named.element.text=Rename ''{0}'' to ''{1}''
\ No newline at end of file
+rename.named.element.text=Rename ''{0}'' to ''{1}''
index 97cfbb7d7e0c6b5a1a8191e439fb8fef9b614b48..24c8e32062165067439855669d902bc6f4f4e82f 100644 (file)
@@ -36,7 +36,6 @@ import com.intellij.openapi.project.Project;
 import com.intellij.openapi.project.ProjectManager;
 import com.intellij.openapi.ui.DialogWrapper;
 import com.intellij.openapi.util.InvalidDataException;
-import com.intellij.openapi.util.JDOMUtil;
 import com.intellij.openapi.util.text.StringUtil;
 import com.intellij.psi.*;
 import com.intellij.psi.search.GlobalSearchScope;
@@ -423,7 +422,8 @@ public class I18nInspection extends BaseLocalInspectionTool {
       Set<PsiModifierListOwner> nonNlsTargets = new HashSet<PsiModifierListOwner>();
       if (canBeI18ned(expression, stringValue, nonNlsTargets)) {
         final String description = CodeInsightBundle.message("inspection.i18n.message.general.with.value",
-                                                             JDOMUtil.escapeText(stringValue));
+                                                             "#ref");
+                                                             //JDOMUtil.escapeText(stringValue));
 
         List<LocalQuickFix> fixes = new ArrayList<LocalQuickFix>();
         if (ConcatenationToMessageFormatAction.getEnclosingLiteralConcatenation(expression) != null) {