Okay
  Public Ticket #3136058
translation
Closed

Comments

  • Laura van Nieuwland started the conversation

    Hi guys,

    I am trying to translate the plugin in Dutch and it seems to work for 80% however some of the translations are not working. For example on this page: https://personeeldnkz.nl/urenregistratie/ these words are not translated:

    • New entry
    • Prev
    • Apply and add new

    I have already checked de PO document in the plugin languages folder and there it is translated correctly..

    Can you check this? Thanks in advance!

    Kind regards,

    Laura van Nieuwland

  •  1,851
    Miloš replied

    Hi, Laura

    Thanks for reaching out to us

    In order to translate these buttons,

    you will have to manually modify a piece of the code, for every translation you need.

    There is a PHP file located in your WordPress host folder.

    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'),

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

    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 how it goes, and if you have any questions. Thanks

    Kind Regards, 

    Miloš Jovanović
    [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

  • Laura van Nieuwland replied

    Hi Milos,

    Thank your for your quick reaction. There are still a few words which are not translated correctly, please see the attched image below I highlitghed the words. 

    - Add new entry

    - Prev

    - Apply and add new

    - OK

    4379822544.png


  •  1,851
    Miloš replied

    Hi, Laura

    You're welcome, i am happy to help.

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

    Hope this helps.

    -

    I have also made a video to show you how you can translate these strings from your screenshot :

    I used Loco Translate to find and replace these strings you need, 

     and I applied the translated/edited strings , it works on my Test site, so it should work for you, as well.smile.png  ( On my PC, I just edited the English strings/words)

    Of course, just find the language that you need, select it in Loco translate, and save changes.

    - And, it will be safest if you make a back-up of your translated  .po  language files, from the plugin's translation folder,   because during updates, it will get overridden with default strings again,

    on your FTP, the path of the language folder is :

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

    -

    Let me know how that seems, and if you have any questionssmile.png Thanks

    Kind Regards, 

    Miloš Jovanović
    [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

  •   Laura van Nieuwland replied privately
  •   Miloš replied privately
  • Laura van Nieuwland replied

    Hi Milos,

    Please see the attachement. I also do think the translation plugin is working but it is not translating every word. As you can see the green words are translated but the red marked words not.... 


    7085185297.png

    5001275399.png


  •  1,851
    Miloš replied


    Hi, Laura

    Firstly, my sincere apology for the waiting time.

    If you wish, we can take a remote look at everything so that we can isolate the root of the issue.

    Please provide me a temporary WP-admin (administrator) user for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. 

    We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course, we do not provide login data to third parties. 

    You can write credentials here just check PRIVATE Reply so nobody can see them except us.

    -

    And, in order for us to inspect the translation files, we would need additional access to your FTP.

    Let me know if that is OK? Thank you.

    Kind Regards, 

    Miloš Jovanović
    [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