Okay
  Public Ticket #3353925
WPML Translation
Closed

Comments

  • Steve started the conversation

    Hi there,

    I cant't find it in your documentation. How does it work to translate table contents (not the plugin itself) when WPML is installed?


    All the best,

    Steve

  •  1,689
    Miloš replied

    Hi, Steve.

    Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.

    -

    Please note that the Interface language is only for the Admin dashboard and it does not affect the language of the strings in the tables themselves.

    The plugin can be translated using POEDIT or Loco Translate easily. 

    I suggest installing Loco Translate since it's within WordPress and it has a simple UI,

    you can simply "search and replace" any strings you need.

    Here is how i add a new language in Loco Translate :

    First, i add a new folder in the FTP path in the plugin languages files in this path :

    ../wp-content/plugins/wpdatatables/languages

    For example, if i want to add Spanish ( Spain) , i add es_ES folder :

    8876575366.png

    then you can take the "default translations" from English, from en_US folder, copy the 'wpdatatables-en_US.mo' and 'wpdatatables-en_US.po' files and paste them in the new es_ES folder.

    Then load Loco translate in your WordPress, choose wpDataTables / Spanish language, 

    search any strings you wish to edit, and translate them as needed.

    When you finish that, it would be nice to send us the translation, so we can include it in our next major update so you don't have to copy this folder from the local machine on every update.

    -

    But If you want to use POEDIT then please follow these instructions:

    1. Download wpdatatables from our TMS Store and save the wpdatatables.zip file on your computer.

    2. Unzip downloaded file.

    3. Download and install POEDIT

    4. After that, open the program and open the file from the extracted folder on your computer wpdatatables/languages/en_US/wpdatatables-en_US.po

    5. Translate all the strings in your language.

    6. Save the file as the plugin suggests (the language code; for example wpdatatables-id_ID.po if your language is Indonesian) and it will generate a new wpdatatables-id_ID.mo file. You can find your language code here

    7. Go to wpdatatables/languages/ folder and create a new folder. Name it as the language code for your language (in our case, for Indonesian, it is id_ID) and then copy these two files called wpdatatables-id_ID.po and wpdatatables-id_ID.mo into it. Proceed with copying the whole folder id_ID back to your website in folder ../wp-content/plugins/wpdatatables/languages/.

    Of course, you will use language code for your language (we use Indonesian language, and its language code "id_ID" is just an example).

    When you finish that, it would be nice to send us the translation, so we can include it in our next major update so you don't have to copy this folder from the local machine on every update.

    -

    In case if you only want to translate some buttons, 

    such as "Copy", "New entry", "Edit", "Delete", you can do the following:

    There is a PHP file located in your WordPress host folder, and you can open it with any text(code) editor of your choice, the file location is :

     ../wp-content/plugins/wpdatatables/source/class.wpdatatable.php -

     The exact line of the code sometimes can vary, 

    so the best way to find what you need is to use "CTRL+F" to find the pieces which you need, for example, "New entry", or "Edit", or "Delete", 

    and the text editor should find and highlight it, looking like this :

    'text' => __('New entry', 'wpdatatables'),
    'text' => __('Edit', 'wpdatatables'),
    'text' => __('Delete', 'wpdatatables'),
    'text' => __('Copy', 'wpdatatables')

    Simply change the text in the brackets, and that's it.

    As for "Cancel", "Prev", "Next", "Apply and add new" and "OK":

    You have to edit this file ../wp-content/plugins/wpdatatables/templates/frontend/edit_dialog.inc.php and edit the following lines.

    4777127248.png

    And simply change the string in the brackets, same as mentioned above.

    Please note, though, that you would need to do this every time the plugin updates since the changes will be deleted after an update occurs.

    Let me know if that helps.

    Thank you :)


    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • Steve replied

    Hi Miloš,

    thank you for going into this and thank you for the detailed description.

    But what I meant were the table fields, which you can fill in yourself in your own language. I can't translate these with WPML.

    Look here - scroll down to "All digicert SSL... "

    https://1001domains.name/en/digicert/

    Here you can see, that the tabel title is not translated (still in German) and in wpml I don't find a solution to do this. Do you have an workaround for this?

  •  1,689
    Miloš replied

    Hi, Steve.

    Thank you for this clarification, now i understand what you meant.

    Unfortunately, at this time it is not possible to translate the values in the cells themselves.

    You can only translate the strings of the plugin and interface, but not the cell values inside tables.

    -

    It is an interesting idea for a future option, though, but i can't promise a realistic ETA if or when it might be added.

    Please feel free to search on our suggestions page

     to see if someone may be already suggested this feature. If you can't see it, feel free to add your suggestion there,  and as more people vote, the feature will move higher on the priority list.

    You can certainly follow our changeLog page if you'd like ( it is also available in the plugin dashboard), where we state any changes/new features/bug fixes during updates;

    and our newsletter, so you're informed about new features, bug fixes, freebies, etc.

    -

    We had another user who used multi-lingual site , though, and what he did is, made several table versions;

    one table for each language;

    So , for example on page for English you could set Table ID 1, with values in cells for English;

    then make a duplicate of this table and translated it - set its shortcode on page 2 for French, , and so on.

    At the moment, that is the only workaround.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables