title: Localization DisplayName Attribute
body: <p>I want to translate property. I have two resources files: <code>DataResource.resx</code> and <code>DataResource.en.resx</code>. There are <code>NameString</code> string(both).
  My property:</p>
  
  <pre><code>[DisplayName("NameString")]
  public virtual string Name { get; set; }
  </code></pre>
  
  <p>I have used <a href="https://stackoverflow.com/questions/2431333/displayname-attribute-from-resources">this</a> solution for localization DataDisplay attribute.</p>
  
  <pre><code>public class LocalizedDisplayNameAttribute: DisplayNameAttribute
  {
      public LocalizedDisplayNameAttribute(string resourceId) 
          : base(GetMessageFromResource(resourceId))
      { }
  
      private static string GetMessageFromResource(string resourceId)
      {
          // TODO: Return the string from the resource file
      }
  }
  </code></pre>
  
  <p>But I don't understand what I must to write in <code>GetMessageFromResource</code> method.<br>
  Thanks.</p>