Hallo!
php syntax allows both the usage of 'foo' => '...' *and* 'bar' => "..."
However only o few messages are using 'bar' => "...".
These are:
'alreadyloggedin' => "...", 'anoneditwarning' => "...", 'anontalkpagetext' => "...", 'blockededitsource' => "...", 'blockedoriginalsource' => "...", 'clearyourcache' => "...", 'editinginterface' => "...", 'loginsuccess' => "...", 'missingsummary' => "...", 'userinvalidcssjstitle' => "...", 'welcomecreation' => "...",
At some point in time tools for computer aided translations will / might be used. The automatic validation of translations could be simplified if only one of syntax versions would be used.
I suggest to use the only the 'foo' => '...' syntax.
Are there any arguments against this?
best regards reinhardt [[user:gangleri]]
On 11/07/06, Reinhardt gangleri@torg.is wrote:
I suggest to use the only the 'foo' => '...' syntax.
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 different.
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.
Rob Church
On 11/07/06, Reinhardt gangleri@torg.is wrote:
I suggest to only use the syntax 'foo' => '...'
Reinhart, Rob, is there anything against using 'foo' => "..." everywhere? I do agree with Reinhart about a need for consistency.
Siebrand
"..." syntax needs to escape more characters. "..." makes a processing into the text, so i think it worse. All the $1 parameters we use may need to be escaped to $ to avoid php looking for a variable called $1 (or even give an error, as variable names need to start with a letter or underscore). $1 is not currently affected, but {$1} do need (think in templates).
And although writing wikitext can be horrible, it can also be difficult to write html into "..." (due to html params).
mediawiki-i18n@lists.wikimedia.org