title: Is there a way to implement Resource file translation on my custom CMS system?
body: <p>I currently have a piece of Razor script, which talks to a ViewModel containing questions and Answers pertaining to an FAQ page.</p>
  
  <p>I'm aiming for this to be content-manageable through the use of a for loop as per my below code.</p>
  
  <pre><code> &lt;div class="col-lg-6"&gt;
              @if (questions.Length == answers.Length)
              {
                  for (int i = 0; i &lt; questions.Length; i++)
                  {
  
                      var html = string.Format(@"
              &lt;div class='panel-group' id='accordion{1}'&gt;
                 &lt;div class='panel panel-default'&gt;
                   &lt;div class='panel-heading' data-toggle='collapse' data-parent='#accordion{1}' data-target='#collapse{1}'&gt;
                     &lt;h4 class='panel-title'&gt;
                      &lt;a class='accordion-toggle collapsed'&gt;{0}&lt;/a&gt;
                     &lt;/h4&gt;
                   &lt;/div&gt;
                     &lt;div id='collapse{1}' class='panel-collapse collapse '&gt;
                  &lt;div class='panel-body'&gt;
                    {2}
                  &lt;/div&gt;
                    &lt;/div&gt;
          &lt;/div&gt;", questions[i], IDGenerator, answers[i]);
  
                      @Html.Raw(html)
  
                      IDGenerator.Append("1");
  
  
                  }
              }
  
              @{
                  IDGenerator.Clear();
              }
  </code></pre>
  
  <p>This is working rather well at the moment; I am able to update Questions/answers on my DB and populate that on my view dynamically, absolutely fine.</p>
  
  <p>The problem is, I need to be able to translate them through the use of Resource files, I can do this fine with static values (labels, buttons etc) but I have absolutely no idea how to do this with the use of a loop and dynamic values.</p>
  
  <p>Is this possible to do at all?</p>