Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Can't login to cloudron server in French -> English good

Can't login to cloudron server in French -> English good

Scheduled Pinned Locked Moved Unsolved Support
i18nfrench
4 Posts 3 Posters 311 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • loulou2852L Offline
    loulou2852L Offline
    loulou2852
    wrote on last edited by girish
    #1

    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.

    girishG 1 Reply Last reply
    1
    • loulou2852L loulou2852

      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.

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @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.

      1 Reply Last reply
      1
      • loulou2852L Offline
        loulou2852L Offline
        loulou2852
        wrote on last edited by
        #3

        Ok good. Thanks for the prompt reply.
        I'll wait until another update to change the language.

        1 Reply Last reply
        1
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #4

          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
          
          1 Reply Last reply
          3
          • nebulonN nebulon marked this topic as a question on
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search