Can't login to cloudron server in French -> English good
-
Hello,
I've got a 7.5.0 cloudron running in French, when I try to log in with a new device, it's not working (console: unexpected identifier).
When I change the Cloudron language to english, it works. Maybe a translation issue that broke the login process.To reproduce:
Log in to your Cloudron (normal browsing).
Change the language to French (perhaps other languages too?)
New incognito Tab, try to log in → not working
Change the language into the normal browser, and in incognito Tab, refresh and log in → it works. -
@loulou2852 this is fixed already. There is a bug in our code when handling french translations. I think @nebulon knows the exact fix, so I will let him comment.
IIRC, it has to do with with french translation using single quote and it's messing up our code since we didn't escape properly.
-
Ok good. Thanks for the prompt reply.
I'll wait until another update to change the language. -
For clarification, the root cause is a
'
in the french translation, which breaks some javascript code. The code is fixed to prevent this, but since it involves other changes, the easiest fix the moment is to remove the quote from the translation file. This can be done by running the following on the server via SSH:sed -e "s/\"errorIncorrectCredentials\": \"Nom d'utilisateur ou mot de passe incorrect\",/\"errorIncorrectCredentials\": \"Nom dutilisateur ou mot de passe incorrect\",/" -i /home/yellowtent/box/dashboard/dist/translation/fr.json
-