Hi
Dne Tue, 29 May 2012 12:04:11 +0200
Dieter Adriaenssens <dieter.adriaenssens(a)gmail.com> napsal(a):
It's a good thing to have an ignore rule for this,
but by using
splitting and concatenation of string (example below), it might not be
necessary :
$text = __('This is an example of a very long translatable string'
. ' that is too long to fit on one line, so wrapping of long lines'
. 'is neccessary.');
Indeed this works fine. What I would like to avoid is:
$ text = __('
This is an example of a very long translatable string that is too
long to fit on one line, so wrapping of long lines is neccessary.
');
This pulls indentation and new lines into translatable strings and will
only cause pain in future.
--
Michal Čihař |
http://cihar.com |
http://blog.cihar.com