WordPress.org

Make WordPress Core

Changeset 19833


Ignore:
Timestamp:
02/06/2012 07:13:06 PM (10 years ago)
Author:
nacin
Message:

Translate TinyMCE's spellchecker languages. props SergeyBiryukov, fixes #19962.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-editor.php

    r19830 r19833  
    262262
    263263                /*
     264                translators: These languages show up in the spellchecker drop-down menu, in the order specified, and with the first
     265                language listed being the default language. They must be comma-separated and take the format of name=code, where name
     266                is the language name (which you may internationalize), and code is a valid ISO 639 language code. Please test the
     267                spellchecker with your values.
     268                */
     269                $mce_spellchecker_languages = __( 'English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv' );
     270
     271                /*
    264272                The following filter allows localization scripts to change the languages displayed in the spellchecker's drop-down menu.
    265273                By default it uses Google's spellchecker API, but can be configured to use PSpell/ASpell if installed on the server.
    266                 The + sign marks the default language. More information:
    267                 http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker
     274                The + sign marks the default language. More: http://www.tinymce.com/wiki.php/Plugin:spellchecker.
    268275                */
    269                 $mce_spellchecker_languages = apply_filters('mce_spellchecker_languages', '+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv');
     276                $mce_spellchecker_languages = apply_filters( 'mce_spellchecker_languages', '+' . $mce_spellchecker_languages );
    270277
    271278                self::$first_init = array(
Note: See TracChangeset for help on using the changeset viewer.