Internationalized Styles Menu

If you integrated EditLive! prior to the 6.0 release, the style toolbarComboBox definition in your configuration file probably looks like this:

<toolbarComboBox name="Style">  <comboBoxItem name="P" text="Normal"/>  <comboBoxItem name="H1" text="Heading 1"/>  <comboBoxItem name="H2" text="Heading 2"/>  <comboBoxItem name="H3" text="Heading 3"/>  <comboBoxItem name="H4" text="Heading 4"/>  <comboBoxItem name="H5" text="Heading 5"/>  <comboBoxItem name="H6" text="Heading 6"/>  <comboBoxItem name="PRE" text="Formatted"/>  <comboBoxItem name="ADDRESS" text="Address"/></toolbarComboBox>

The 6.0 release maintained backwards compatibility with this format, but if you’re still using it then you are missing out on the translations we added.  The new format removes the text attribute:

<toolbarComboBox name="Style">  <comboBoxItem name="P"/>  <comboBoxItem name="H1"/>  <comboBoxItem name="H2"/>  <comboBoxItem name="H3"/>  <comboBoxItem name="H4"/>  <comboBoxItem name="H5"/>  <comboBoxItem name="H6"/></toolbarComboBox>

Once it is removed, you will see that your english-only style names suddenly become translated in all supported languages.

 

We have included translations for all major block tags:

  • P
  • DIV (in 6.4)
  • H1-6
  • PRE
  • ADDRESS
  • TD
  • TH
  • TR
  • TABLE
  • LI
  • UL
  • OL

We’ve even included some of the less common ones like DT and DL.  These translations will apply to styles loaded via CSS as well as from the configuration file.

Andy is Ephox's programming switch hitter, there aren't many products at Ephox that Andy hasn't been involved in. He spends his days trying to convince people that they should listen to more podcasts.

Leave a Reply