Okay
  Public Ticket #2977398
Button captions not translated
Closed

Comments

  •  1
    Mattias started the conversation

    Hi

    Captions of buttons does not seem to be translated, even if I choose Swedish as Interface language. How do I fix this. See attachments.

    Regards
    Mattias

  •  1,568
    Uroš replied

    Hello Mattias,

    Thank you for reaching out to us.

    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.

    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.

    But if you only want to translate the strings you provided us within the screenshot. You can do the following:

    For "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.

    Feel free to contact us if you require further assistance.

    Kind Regards, 

    Uros Jovanovic
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    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

  •  1
    Mattias replied

    Thank you, my issue solved. I have translated and pretranslated with Poedit to Swedish. There are a lot to translate. I will send the translated files when done. It might take a while.

    Regards
    Mattias

  •  1,568
    Uroš replied

    Hello Mattias,

    Glad to hear that the issue has been resolved.

    Thank you in advance for the translated files. Feel free to contact us if you have any other questions.

    Kind Regards, 

    Uros Jovanovic
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    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