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?
Strings in language files – double or single quotes?
Re: Strings in language files – double or single quotes?
Gallery already uses single quotes in its language file
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Strings in language files – double or single quotes?
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.
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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.