Hello, i have tested this now and it works fine, exept when i’m trying to translate to French, then there is a problem because some French words contains Apostrophe ’ and this to break the code? eg, D’extraits, l’utilisateur, d’édition
Any idea how to fix this?
Does the apostrophe need to be escaped?
This will break:
$fr_words = 'D'extraits, l'utilisateur, d'édition'
Fixed with escaping:
$fr_words = 'D\'extraits, l\'utilisateur, d\'édition'
Circumvented with double quotes:
$fr_words = "D'extraits, l'utilisateur, d'édition"
Hey, Thank you. Circumvented with double quotes works perfect. Then i’l use this on all translations i think?
1 Like
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.