• Resolved hubertusbigend

    (@hubertusbigend)


    Hello,

    this is an embarrassingly simple question I thought I should have found an answer to myself, but I didn’t. Instead of the word ‘search’, I want to show the localized (i.e. non-english) word for it at the search box, but I can’t seem to find how (without going into the plugin’s php code). WordPress is correctly installed with the non-english language and the tablepress plugin seems to run on the correct language as well, at least it shows me the correctly localized admin pages. (That said, I also do not find the plugin language setting which is supposed to be on the general options page.)

    Sorry if I missed something obvious…

    Cheers
    HB

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    (And out of curiosity: Where did you find the plugin language setting mentioned? This used to exist, indeed, but has been removed.)

    Regards,
    Tobias

    Thread Starter hubertusbigend

    (@hubertusbigend)

    Thanks for your reply. The language setting is mentioned in https://tablepress.org/faq/documentation-plugin-options/.

    The website is not publicly accessible, so I’m afraid I cannot post a link. I’ll try to set up a publicly accessible test site in the next couple of days, though, and then come back.

    Cheers,
    HB

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    oh, indeed… Seems like I forgot to update that page. Thanks for the reminder!

    Yes, a public test page would be great. Also, what language do you want the “search” label to be?

    Best wishes,
    Tobias

    Thread Starter hubertusbigend

    (@hubertusbigend)

    Found something. The language is German. In a fresh installation the search box correctly has the label “Suche”. If I change the site’s language to “Deutsch (Sie)”, though, instead of the informal German default, the label changes to “Search”.

    Cheers,
    HB

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    ah, I see. The reason for this is the slightly different “text domain” for the “Sie” version of German.

    To make TablePress use German, please add this to the end of your theme’s functions.php file:

    add_filter( 'tablepress_table_render_options', hb_tablepress_use_german_datatables', 10, 2 );
    function hb_tablepress_use_german_datatables( $render_options, $table ) {
      $render_options['datatables_locale'] = 'de_DE';
      return $render_options;
    }

    Regards,
    Tobias

    Thread Starter hubertusbigend

    (@hubertusbigend)

    Excellent, thank you very much! As a side-effect this made me finally create a child theme, something I somehow managed to work around until now ??

    Cheers
    HB

    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 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change language of search box label?’ is closed to new replies.