Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

customLocaleStrings appears to be ignored #6390

Open
jakecoble opened this issue May 20, 2024 · 2 comments
Open

customLocaleStrings appears to be ignored #6390

jakecoble opened this issue May 20, 2024 · 2 comments
Labels
Stale No recent activity

Comments

@jakecoble
Copy link

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
Copy link
Author

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.

@SamTV12345
Copy link
Member

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.

@github-actions github-actions bot added the Stale No recent activity label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale No recent activity
Projects
None yet
Development

No branches or pull requests

2 participants