[Phpmyadmin-devel] Coding style update

Michal Čihař michal at cihar.com
Tue May 29 13:07:27 CEST 2012


Hi

Dne Tue, 29 May 2012 12:04:11 +0200
Dieter Adriaenssens <dieter.adriaenssens at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20120529/32b48703/attachment.sig>


More information about the Developers mailing list