• Resolved guennionline

    (@guennionline)


    Hello,

    is it possible to customize the zeroRecords and emptyTable text “No records available.” only for special tables. I have tried it in several ways but so far I have not been able to do it!

    Greetings Sascha

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter guennionline

    (@guennionline)

    Hello,

    I found the strings extension 1.2, but with it I can only change the string globally. I would like to change it specifically for some tables only.

    Greetings Sascha

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    For this, you can override single strings in the translation with a “Custom Command”. For example, add this to the “Custom Commands” text field on the table’s “Edit” screen:

    "language": { ...DataTables_language['de_DE'], ...{ "zeroRecords": "Zero records found.", "emptyTable": "Empty table." } }
    

    The de_DE in that example has to be changed to the locale that you are using (if you don’t know it, you can find it via “View Source” in the browser and searching for DataTables_language). And you can of course adjust the translations as needed.

    Regards,
    Tobias

    Thread Starter guennionline

    (@guennionline)

    Hello,

    works perfectly, thank you very much!

    Greetings Sascha

    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 4 replies - 1 through 4 (of 4 total)
  • The topic ‘zeroRecords and emptyTable Customize text for special tables only’ is closed to new replies.