Tip: Avoid bugs with translation strings


I came across a small problem recently with translation strings and wanted to share how I resolved it. Due to how PHP handles strings that are quoted with single quotes (') and double quotes ("), you should always copy the exact string and the quotes signs from the original file when you're overriding a string rather than transposing it into your own coding format, that way you'll avoid subtle bugs and those late-night #facepalm moments.

How to reply

Care to add your own 2 cents? Let me know via Twitter or my contact page.