[Mediawiki-i18n] unified syntax in Messages.php ('foo' => '...' versus 'bar' => "...")
robchur at gmail.com
Tue Jul 11 17:00:08 UTC 2006
On 11/07/06, Reinhardt <gangleri at torg.is> wrote:
> I suggest to use the only the
> 'foo' => '...'
> Are there any arguments against this?
1. The syntaxes do NOT mean the same thing; \n inside of single quotes
is interpreted as a literal; inside double quotes, it turns into a
newline character. Whitespace handling inside the two is also
2. Use of single quotes makes wiki text messages containing bold text
damn irritating, since the quotes have to be escaped... '''this is
bold text''' would become \'\'\'this is bold text \'\'\', which looks
disgusting and is harder to maintain.
More information about the Mediawiki-i18n