Commits

derigel committed 5cab47d

Issue #27 fixed

  • Participants
  • Parent commits 5d33ab4
  • Branches resharper8

Comments (0)

Files changed (1)

ReSpeller/Analyzers/StringLiteralTypoAnalyzer.cs

 using JetBrains.DocumentModel;
 using JetBrains.ReSharper.Daemon.Stages;
 using JetBrains.ReSharper.Daemon.Stages.Dispatcher;
+using JetBrains.ReSharper.I18n.Services;
+using JetBrains.ReSharper.Psi;
 using JetBrains.ReSharper.Psi.Tree;
 using ReSpeller.Highlightings;
 using ReSpeller.SpellEngine;
   {
     private readonly ISpellChecker myChecker = Shell.Instance.GetComponent<ISpellChecker>();
 
+
     protected override void Run(ILiteralExpression element, ElementProblemAnalyzerData data, IHighlightingConsumer consumer)
     {
       if (!element.ConstantValue.IsString()) 
         return;
+
+      var localizableManager = LanguageManager.Instance.TryGetService<ILocalizableManager>(element.Language);
+      if (localizableManager != null)
+      {
+        if (localizableManager.IsLocalizable(element) == Localizable.No)
+          return;
+      }
+
       DocumentRange literalRange = element.GetDocumentRange();
       if (!literalRange.IsValid())
         return;