Page 1 of 1

Strings in language files – double or single quotes?

Posted: Fri Sep 02, 2011 1:31 pm
by 10010110
I just had the issue in http://forum.cmsmadesimple.org/viewtopi ... 73#p261273 and posted a solution, too. Now I’m wondering why language strings are written in double quotes at all? It would probably make many things easier if these files would be created using single quotes surrounding the strings since usually any variables inside these strings aren’t parsed anyway but should be printed literally.

Any thoughts on that? Is it feasible to change that in future releases?

Re: Strings in language files – double or single quotes?

Posted: Fri Sep 02, 2011 2:49 pm
by Jos
Gallery already uses single quotes in its language file

Re: Strings in language files – double or single quotes?

Posted: Fri Sep 02, 2011 3:38 pm
by calguy1000
Answer is: it doesn't matter.

I use heredoc notation, and mostly (though not always) single quotes. IIRC the TranslateCenter generates files using single quotes. It's just another one of those things that the developer has to test to ensure it's working properly.