From bcf460d02eec701943991c86e43274281c527e04 Mon Sep 17 00:00:00 2001 From: nacin Date: Mon, 6 Feb 2012 19:13:06 +0000 Subject: [PATCH] Translate TinyMCE's spellchecker languages. props SergeyBiryukov, fixes #19962. git-svn-id: http://svn.automattic.com/wordpress/trunk@19833 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-editor.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index 3c8f27190..2eb99052c 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -260,13 +260,20 @@ final class _WP_Editors { self::$plugins = $plugins; + /* + translators: These languages show up in the spellchecker drop-down menu, in the order specified, and with the first + language listed being the default language. They must be comma-separated and take the format of name=code, where name + is the language name (which you may internationalize), and code is a valid ISO 639 language code. Please test the + spellchecker with your values. + */ + $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' ); + /* The following filter allows localization scripts to change the languages displayed in the spellchecker's drop-down menu. By default it uses Google's spellchecker API, but can be configured to use PSpell/ASpell if installed on the server. - The + sign marks the default language. More information: - http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker + The + sign marks the default language. More: http://www.tinymce.com/wiki.php/Plugin:spellchecker. */ - $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'); + $mce_spellchecker_languages = apply_filters( 'mce_spellchecker_languages', '+' . $mce_spellchecker_languages ); self::$first_init = array( 'mode' => 'exact',