MCE Accessible Language Change

Description

Adds language change button in the WordPress WYSIWYG editor. (WCAG, BITV)

A very light weight plug-in for inserting language change. The button will
be added in the first row of the editor.

Just highlight the word or phrase or insert the cursor in the text, then click on the language button.
Fill out the form:

  • Add the appropriate language code for the phrase or text (e.g. ‘fr’ for a french word or phrase)
  • Only for links: Add the appropriate language code for the link target (e.g. ‘fr’ for a french word or phrase)
  • If you want to delete lang attributes, activate the checkbox. But you can just empty the language code field.

Click “OK” and you get the the following:

  • If you just inserted the cursor in the text, you get a lang attribute for the parent element.
  • If you highlight a word or phrase, you get a span element with lang attribute surrounding the selected text.
  • For links you get a lang attribute and in case a href lang attribute.

The plugin is localized for:

  • english
  • german
  • spanish
  • french
  • italian

Please let me know if you would like additional localizations added. And of course if you want to improve included translations (developer @ sprungmarker.de)

Note

If your WP Version is under 3.9 you have to download plugin version 1.2. in downloads.
Version 1.2. does not work properly in IE.

Screenshots

  • The editor with the new button for language change.
  • The editor popup showing language change options.
  • The editor with selected text and lang attribute marked with CSS (visual / text mode).

FAQ

No questions right now

Changelog

=2.1=

  • IE fix editor CSS

=2.0=

  • Completely rewritten for TinyMCE 4.

=1.2=

  • Small fix for new version of TinyMCE.

=1.1=

  • Path corrections for TinyMCE.

=1.0=

  • First release
  • Minor changes renaming files according to the name of zip file.

Contributors & Developers

This is open source software. The following people have contributed to this plugin.

Contributors

Browse the code