ClientConfig icon indicating copy to clipboard operation
ClientConfig copied to clipboard

[BOUNTY] Multi-language support / i18n of labels, descriptions and display-values

Open sebastian-marinescu opened this issue 2 years ago • 9 comments

Summary

Currently all my ClientConfig-settings have German labels. As I'm probably getting international clients soon, I'd need to make it dynamic.

Step to reproduce

On the setting's label I tried using: [[%website.form.name]], %website.form.name and website.form.name.

Observed behavior

I see the string, and not a translated lexicon-value.

Expected behavior

A way for internationalization on the labels and descriptions fields.

Environment

MODX Revolution 2.8.4-pl, ClientConfig 2.3.3-pl

sebastian-marinescu avatar Feb 22 '23 13:02 sebastian-marinescu

As I wasn't to sure, that my lexicon would be loaded in the ClientConfig-CMP, I also tried: [[%clientconfig.label]], %clientconfig.label and clientconfig.label - which also doesn't work.

It should be possible on settings and groups.

sebastian-marinescu avatar Feb 22 '23 13:02 sebastian-marinescu

I started a bounty of 50,- $ on this: https://app.bountysource.com/issues/117206875-multi-language-support-i18n-of-labels-and-descriptions

sebastian-marinescu avatar Feb 22 '23 13:02 sebastian-marinescu

Should that follow the language of the context (in multi context mode) or of the user?

Mark-H avatar Feb 22 '23 14:02 Mark-H

I think it should follow the manager-language that the manager chooses.

There could be an international editorial staff, where one uses the CMS in EN, another one in DE, and another one in CZ. Each one should feel comfortable using/editing stuff, hence it should be in the manager-user's language.

sebastian-marinescu avatar Feb 22 '23 14:02 sebastian-marinescu

I just noticed, that ideally this would also work for values - consider this: Normal==normal||Kursiv==italic as options on a selectbox.

Would be beautiful, if I could do something like this: %website.settings.fonts.normal==normal||%website.settings.fonts.italic==italic

sebastian-marinescu avatar Feb 23 '23 12:02 sebastian-marinescu