More languages for WordPress’ spell checker

  • english
  • spanish

I don’t know how many times have I tried to enable spell-checking in Spanish on the WordPress’ TinyMCE editor. Never got it working. Until today that I’ve found this post on the wp-polyglots list. By the way, the language you mark with “+” is the default one, so for Spanish-writing people I would recommend:

[code lang="javascript"]
var i, ar = tinyMCE.getParam('spellchecker_languages', '+Spanish=es,English=en').split(','), p;
[/code]

It’s easy… once you know where to hack. So, if the functionality is there, why not adding an option to easily add more languages to the spell-checker? If you have the spell-checker but can’t add more languages and you are not English-speaking, what’s its use? Or if you have to modify the code but nobody tells you where nor what to look for.

  • Twitter
  • Facebook
  • Meneame
  • email
  • Print
  • PDF
  • RSS

Artículos relacionados (o no):

  • Pues no hay. :-(

4 Responses to “ More languages for WordPress’ spell checker”


  • Segui las indicaciones pero a mi no me funciona, me aparece una ventanita con la frase
    Could Not Execut Ajax Call, server didn’t return valid xml.

    Tiene alguna sugerencia?

    Santiago

  • Sólo se me ocurre que al tocar el fichero hayas dejado algo mal por error y por eso te dé el mensaje de XML no válido.
    ¿Usas Firefox? Ves a Herramientas -> Consola de error, límpiala y vuelve a cargar la página, a ver qué errores salen. Con un poco de suerte te dirá la línea e incluso el carácter que falla.

  • Pues me da este error:

    Como el path es un poco largo te lo voy a poner a partir del js/

    fatal error: Call undefined function: mb_substr()in
    path del sitio…./js/tinymce/plugins/spellchecker/classes/TinyGoogleSpell.class.php
    on line 23

    Habri el TinyGoogleSpell.class.php, en la linea 23 aparece esto:

    $words[] = $this->unhtmlentities(mb_substr($wordstr, $matches[$i][1], $matches[$i][2], “UTF-8″));

    Alguna idea?

    Saludos

  • ¡Qué raro! mb_substr viene con PHP >= 4.0.6:

    http://es2.php.net/manual/es/function.mb-substr.php

    ¿Qué versión de PHP tienes? Si es mayor que 4.0.6, lo único que se me ocurre es que reinstales WPMU y vuelvas a modificar el .js. De todas formas no tiene NINGÚN sentido que por editar un fichero Javascript te de un error en un fichero PHP. ¿?

Leave a Reply




Bear
Creative Commons Attribution-NonCommercial 2.5 Spain
This work is licensed under a Creative Commons Attribution-NonCommercial 2.5 Spain.