195 | | $plugins = array( 'inlinepopups', 'spellchecker', 'tabfocus', 'paste', 'media', 'fullscreen', 'wordpress', 'wpeditimage', 'wpgallery', 'wplink', 'wpdialogs' ); |
| 195 | $plugins = array( 'inlinepopups', 'tabfocus', 'paste', 'media', 'fullscreen', 'wordpress', 'wpeditimage', 'wpgallery', 'wplink', 'wpdialogs' ); |
288 | | /* |
289 | | translators: These languages show up in the spellchecker drop-down menu, in the order specified, and with the first |
290 | | language listed being the default language. They must be comma-separated and take the format of name=code, where name |
291 | | is the language name (which you may internationalize), and code is a valid ISO 639 language code. Please test the |
292 | | spellchecker with your values. |
293 | | */ |
294 | | $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' ); |
| 288 | if ( in_array( 'spellchecker', $plugins ) ) { |
| 289 | /* |
| 290 | translators: These languages show up in the spellchecker drop-down menu, in the order specified, and with the first |
| 291 | language listed being the default language. They must be comma-separated and take the format of name=code, where name |
| 292 | is the language name (which you may internationalize), and code is a valid ISO 639 language code. Please test the |
| 293 | spellchecker with your values. |
| 294 | */ |
| 295 | $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' ); |
296 | | /* |
297 | | The following filter allows localization scripts to change the languages displayed in the spellchecker's drop-down menu. |
298 | | By default it uses Google's spellchecker API, but can be configured to use PSpell/ASpell if installed on the server. |
299 | | The + sign marks the default language. More: http://www.tinymce.com/wiki.php/Plugin:spellchecker. |
300 | | */ |
301 | | $mce_spellchecker_languages = apply_filters( 'mce_spellchecker_languages', '+' . $mce_spellchecker_languages ); |
| 297 | /* |
| 298 | The following filter allows localization scripts to change the languages displayed in the spellchecker's drop-down menu. |
| 299 | By default it uses Google's spellchecker API, but can be configured to use PSpell/ASpell if installed on the server. |
| 300 | The + sign marks the default language. More: http://www.tinymce.com/wiki.php/Plugin:spellchecker. |
| 301 | */ |
| 302 | $mce_spellchecker_languages = apply_filters( 'mce_spellchecker_languages', '+' . $mce_spellchecker_languages ); |
| 303 | } |