Always use English in WCM edit mode | Community
Skip to main content
October 16, 2015
Solved

Always use English in WCM edit mode

  • October 16, 2015
  • 1 reply
  • 901 views

Our platform is used by English speaking content authors to author content in all languages.

We wish to force the WCM authoring interface to use English for all out-of-the-box strings (editbars, context menus, sidekick, etc), while still using the i18n bundle for our own strings.

So far:

  • no Tried setting the user's (and group's) preferences > language to English; WCM was still localized, even after re-logging in.  Even if it worked, I imagine it would use English for our own localized strings, which is not acceptable.
  • no Considered implementing RequestLocaleResolver to set the locale to 'en' for all author requests in WCM edit mode.  Again, I imagine it would use English for our own localized strings, which is not acceptable.
  • no Considered overlaying the WCM i18n dictionary, /libs/wcm/core/i18n.  I doubt this will work unless we overlay each of the i18n files with all of the English strings.  Less than desirable.
  • no Same as the overlay approach, but instead adding a new i18n dictionary under /apps/myProject/, again including all English strings as "translations" in the other languages.  And again, less than desirable.
  • no Considered removing the WCM i18n dictionary, /libs/wcm/core/i18n.  This is, of course, discouraged.

​What is the best approach to this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

Hi,

I haven't tried it yet, but you could add a component filter, which sets your own ResourceBundle to the request. There you can set your own resourcebundle and provide the correct translations.

Jörg

1 reply

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

Hi,

I haven't tried it yet, but you could add a component filter, which sets your own ResourceBundle to the request. There you can set your own resourcebundle and provide the correct translations.

Jörg