title: Is there a single rule to cope with single quotes in writing Spring Resource Boundle?
body: <p>Spring's <code>ResourceBundleMessageSource</code> uses <code>MessageFormat</code> for replacing placeholders (<code>{0}</code>) inside messages.</p>
  
  <p><code>MessageFormat</code> requires that single quotes (<code>'</code>) are escaped using two single quotes (<code>''</code>) (see: <a href="http://docs.oracle.com/javase/7/docs/api/java/text/MessageFormat.html">MessageFormat Javadoc</a>). However, by default messages that does not contain any arguments will not be parsed by <code>MessageFormat</code>, so single quotes in messages without arguments don't need to be escaped.</p>
  
  <p>So your translator have to <strong>be aware of two rules</strong> in writing and maintaining resource bundle:</p>
  
  <ul>
  <li>write (<code>''</code>) if the message with the single quotes contains at least one placeholders (<code>{0}</code>) too;</li>
  <li>write (<code>'</code>) if the message with the single quotes contains none placeholders.</li>
  </ul>
  
  <p>Is there a single rule to cope with single quotes in writing Spring Resource Boundle?</p>