janeway icon indicating copy to clipboard operation
janeway copied to clipboard

Let users specify the language of a piece of site content in TinyMCE

Open joemull opened this issue 10 months ago • 4 comments

User story

As a press manager I may need to specify a different language for one piece of content in a larger website. For example, most of my press site may be in English, but a few of my journals publish in French, so I want to set French on the journal description fields. I want this language to be properly marked up in the eventual HTML so that it is accessible to screen readers:

<html lang="en-GB">
  [most of my site]
  <div lang="fr">
    Merci beaucoup  
  </div>
</html>

While this option can technically be configured now by changing the settings.py, it would be nice to put it in TINYMCE_DEFAULT_CONFIG and consider whether and how it should interact with translation and localization in the rest of Janeway.

Proposed solution

Configure TinyMCE so that language appears as a dropdown in the toolbar.

joemull avatar Apr 29 '24 15:04 joemull

Refinement:

What should the language options on the toolbar be? Should it be limited to the languages enabled for the journal? Or should it be any language, so that a user can specify an exception for a block of text inside content that is another language?

We might need to see what the standard is for a multilingual journals and translation, from a Dutch or Belgian journal, for example. What are their expectations for the interface? As languages and translation are political, we would want to avoid stepping on toes or taking an unexamined Anglo-centric approach.

Let's do some investigation for this.

joemull avatar Aug 29 '24 10:08 joemull