etherpad-lite icon indicating copy to clipboard operation
etherpad-lite copied to clipboard

customLocaleStrings appears to be ignored

Open jakecoble opened this issue 1 year ago • 2 comments

Describe the bug Setting new locales in customLocaleStrings appears to be ignored.

To Reproduce Steps to reproduce the behavior:

  1. clone repo
  2. checkout v2.0.3
  3. edit settings.json.docker and add custom locale strings and an admin password
  "customLocaleStrings": {
    "en": {
      "admin_plugins": "test case"
    }
  },
  1. docker build -t test/etherpad .
  2. docker run --detach --publish 9001:9001 test/etherpad
  3. open localhost:9001/admin

Expected behavior I expected "Plugin manager" to be "test case", but it remains "Plugin manager". The en.json file that is sent to the client doesn't contain the custom strings.

Desktop (please complete the following information):

  • OS: Linux
  • Browser Firefox
  • Version 125.0.3

jakecoble avatar May 20 '24 00:05 jakecoble

docker run --rm test/etherpad grep -A 4 'customLocaleStrings' settings.json gives me:

  "customLocaleStrings": {
    "en": {
      "admin_plugins": "test case"
    }
  },

So it looks like the correct setting is making it into the image.

jakecoble avatar May 20 '24 02:05 jakecoble

docker run --rm test/etherpad grep -A 4 'customLocaleStrings' settings.json gives me:

  "customLocaleStrings": {
    "en": {
      "admin_plugins": "test case"
    }
  },

So it looks like the correct setting is making it into the image.

I guess the problem is that the admin pad uses now React. As client and server are now separate from each other I'll think of a solution. Maybe host the json files in Etherpad and then hand over the changed customLocaleStrings.

SamTV12345 avatar Jun 01 '24 12:06 SamTV12345