facepalm

Tip: Avoid bugs with translation strings

Tags: 

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.

Subscribe to facepalm