title: Variables in PHP gettext
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1773023/how-does-gettext-handle-dynamic-content">How does gettext handle dynamic content?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm using PHP's gettext.  I want to translate a sentence which has a variable in it. Is this possible?</p>
  
  <p>For example, in English:</p>
  
  <p><code>Are you sure you want to block Alice?</code></p>
  
  <p>(Where "Alice" is the user's name.)</p>
  
  <p>But, in German, the subject does not appear at the end of the sentence.</p>
  
  <p><code>Sind Sie sicher, dass Sie Alice blockieren?</code></p>
  
  <p>In messages.po, I have</p>
  
  <pre><code>msgid "BLOCK"
  msgstr "Are you sure you want to block"
  </code></pre>
  
  <p>But I see no way to pass one or more variables.  Is this possible?</p>