If the $value has a single quote it won't break the translation file!

Added: addcslashes($value, "'\\/"); 
If the $value has a single quote it won't break the translation file!