• Resolved volkandalyan

    (@volkandalyan)


    Hi I am using WPML, but I can’t find some strings like “Search, Previous, Next, Show Entries, Showing entries”. So can’t translate. Please help

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    Sorry for the delay. At the moment, the ‘Search’, ‘Previous’, ‘Next’ etc, come from a JSON file which is loaded into the plugin. There’s one for each language, but we currently only support French, German, Spanish and Greek.

    We’ll be changing this in future to ensure that all translatable text is included in the PO file.

    In the meantime, you would need to modify the plugin in order to add additional languages. To do this:

    1) Copy one of the JSON files under the /posts-data-table/languages/data-tables/ folder. Save it as your chosen language (e.g. ‘Italian.json’)
    2) Add your translations to this file. If you inspect the file, it should be obvious where to put your translations.
    3) Upload this file to your site in the same folder as the other JSON files.
    4) Finally, open up /posts-data-table/posts-data-table.php and on line 120, add an extra line for your language file, e.g:

    ‘it_IT’ => $lang_file_base_url . ‘Italian.json’,

    Hope that helps. Sorry it’s a bit convoluted at the moment.

    Thread Starter volkandalyan

    (@volkandalyan)

    I will try thank you so much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Translation Problem’ is closed to new replies.