• Resolved luciojmartinez

    (@luciojmartinez)


    Hi

    I’m triyin to translate the TablePress to Catalan language. I’ve taken the lang-es_ES.json from Tablepress/i18m/datatables . I’ve translate it to Catalan, and I put it into tablepress-change-datatables-strings and I’ve deleted the lang-en_US.json example but nothing happens.
    What I’m doing wrong?
    ¿It’s posible to use Loco Translate? If yes, ¿what TablePress plugins have I to change?

    Regards

    Lucio

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    What filename does the translated file have? lang-ca.json?
    Please put that file into the tablepress-change-datatables-strings folder.
    Then, please make sure that your site is set to use ca as the locale, e.g. using
    define( 'WPLANG', 'ca' );
    in your site’s wp-config.php file.

    Alternatively, it should be possible to force this translation by using a Shortcode like
    [table id=123 datatables_locale="ca" /]

    Regards,
    Tobias

    Thread Starter luciojmartinez

    (@luciojmartinez)

    Hi,

    My translated filename is land-ca_CA.json. All my site is in Catalán.

    In my wp-config.php file don’t find any reference to WPLANG.

    Where Have I to put the [table id=X datatables_locale=”ca” /]

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    please try renaming the file to lang-ca.json. That might already fix it.

    [table id=123 datatables_locale="ca" /] is the Shortcode that you use on the page where you want to display the table.

    Regards,
    Tobias

    Thread Starter luciojmartinez

    (@luciojmartinez)

    Hi,

    Yes! Perfect! I’ve put the define( ‘WPLANG’, ‘ca’ ); in my wp-config.php file and I rename to file to lang-ca.json and all works fine.

    Thank you very much. You are impresive!

    Lucio

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Translate’ is closed to new replies.