• Resolved fly_in_the_sky

    (@fly_in_the_sky)


    Hello, i don’t have the option to change the language of tablepress.
    I have the laste version of wordpress and tablepress.

    I have in french, and i would like to have my tablepress in deutch or english.

    Tanks for your plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    I see what you mean, but unfortunately, this option had to be removed due to WordPress switching to “Language Packs” for managing translations.

    It should however be possible to set this again with a small piece of code. For example, try adding this to your theme’s “functions.php” file:

    add_filter( 'plugin_locale', 'tablepress_change_locale', 10, 2 );
    function tablepress_change_locale( $locale, $domain ) {
      if ( 'tablepress' === $domain ) {
        $locale = 'de_DE';
      }
      return $locale;
    }

    Regards,
    Tobias

    Thread Starter fly_in_the_sky

    (@fly_in_the_sky)

    Hi Tobias, tanks for your help.
    I trye you code, but nothing apens…

    I try vithw ‘de_DE’, and with ‘en_US’ …

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    you might have to install the language files first. For that, before adding the code, please switch your WordPress to the desired language (de_DE) in the WordPress settings. After that, check if TablePress is in German (if yes, then the language file was installed correctly). Then, switch back to the desired language and add the code above (with de_DE).

    Regards,
    Tobias

    Thread Starter fly_in_the_sky

    (@fly_in_the_sky)

    Hello,
    I try with de_DE, like you say, but it’s not working.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    then something on your site must somehow be broken, I’m afraid. On my test site, this method worked fine.

    Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘No more plugin option language’ is closed to new replies.