[TYPO3-RTE] a UI for managing languages in the RTE

Martin Kutschker masi-no at spam-typo3.org
Fri Aug 29 19:14:56 CEST 2008


Hi!

I've been thinking about a possible UI for languages. The obvious option
 is to add the language to each property dialog. This is ok and should
be implemented.

Better would be a drop down as seen for the blockstyle and the
textstyle. So the user will see any time to which language the text
below the cursor is set.

Additionally the language could also be shown in the status/path bar.
Maybe with a separator like ~ or _ (not - as this may be part of the
language) or in brackets (round or square).

eg p~de-AT or span.hilite[en-US]

The info in the path will help you to see the language even if the
current tag has no language set. This is important as you would
otherwise probably repeat setting the language.

Another idea is a togglelang similar to toggleborders. This will
add/remove the following rule to the doc:

*[align] { ... }

But see my other post about the DTD to make this work in IE7.

The RTE configuration will also need a section to list and name all
allowed languages:

RTE.languages {
  en.name = English
  de.name = German
  pt-br = Brazilian Portuguese
}

If the HTML code has en-US yet English will be displayed.

Problem: depending on the DTD lang and xml:lang is allowed. The UI
should perhaps take one to be authorative and set the other to the same
value.

Rewriting the HTMLparser to deal properly with languages is
out-of-scope. Task are IMHO normalizing of value (eg en-US => en) and
attributes (both or only one of the lang and xml:lang attributes).

Masi


More information about the TYPO3-project-rte mailing list