Okay
  Public Ticket #3506273
Translation
Closed

Comments

  • Bo-Lennart Andersson started the conversation

    We have tried to perform a translation to Swedish for buttons crated using Loco Translate. We have problems with intereference betwen WP Datatables and Powerful filters.
    Do you have information regarding how to perform translation by Loco Translate?

  •  1,845
    Miloš replied

    Hello,

    I am not sure if i understood, the issue happens when you try to translate some elements from our Plugin, for example some buttons/placeholders, etc?

    I will advise how you can translate our Plugin but let me know if i misunderstood the issue.


    wpDataTables can be translated using POEDIT or Loco Translate easily. 

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

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


    First, please check if the language you need is already one of our existing language folders in the Plugin

    or if you need to add a new folder there.

    You can use FTP or your Hosting File manager and go to this path :

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

    Check if your language locale is there.  For example, for Italian, folder should be named as 'it_IT'.

    You can check the full list of all WordPress Locale proper folder and file names here.

    -

    If you can't see your language folder, then you need to add a new folder and name it appropriately for the WP locale.

    -

    Here is an example of how i add a new language in Loco Translate, let's say for Spanish ( locale es_ES) :

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

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

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

    -


    Let me know if that helps.

    And sorry if that was too many details - I just like to clarify each step of the process.

    Thank you.smile.png


    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

  • Bo-Lennart Andersson replied

    The translation with Loco translate works for Wp datatables but there are some problems with translation of powerful filters and master details. The frases "clear filters" and "search" will be translated to Swedish. How shall we do that without interfering with Wp datatatables?

  •  1,845
    Miloš replied

    Hello,

    To begin, I want to extend my heartfelt apologies for the delayed reply, 

    which is due to an unexpectedly high volume of inquiries. 

    We truly value your patience during this period.

    -

    No need to worry about those frases, because the "Clear Filters" comes from the main Plugin wpDataTables, so when you translate it there - it gets pulled from the main Plugin;

    And for the "search" button, this one is only from the Powerful Filters add-on, so you can translate all of them and there should not be any issue/interfering.

    9742712088.png

    For some reason i just can't find an easy way to translate the "Search" Button from the Powerful Filters.

    5907216174.png

    We do not have a separate 'languages' folder for the Add-ons, the only languages folder we have is in our main Plugin files, so we will double-check this with our developers and going to report back as soon as possible.

    Thank you for your patience.

    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

  •  1,845
    Miloš replied

    Hello,

    My sincerest apology for all this waiting time, we are still checking with our QA and the Developer Team for the status of translating that particular "search" string of the Powerful Filters Add-on, we should have confirmation for you very soon at this point.

    Thank you again for all your patience.

    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

  •  1,845
    Miloš replied

    Hello,

    I have confirmation how you can translate the "Search" button of the Powerful Filters directly in the Code of the Add-on, but I am still checking if you need a multi-lingual Site, how we might translate it for different language versions.

    For now, at least i can share this step with you, if you wish to try and create a "default" edited label of the Powerful Filters "search" button.

    Please find this file via FTP ( or your Hosting File Manager) in your WordPress Plugins folder :

    ..\wp-content\plugins\wdt-powerful-filters\templates\search_filters_button.inc.php.

    At the second line, you will see this :

    <button class="button btn wdt-pf-search-filters-button" <?php="" if="" ($disablesearchfiltersbutton)="" {?="">  disabled="disabled"<?php } ?>><?php ($skin === 'mojito' || $skin === 'dark-mojito') ? esc_html_e(' ', 'wpdatatables') : esc_html_e(' Search', 'wpdatatables'); ?--></button>
    
    9667889596.png


    Find this part in brackets where it says ' Search' , 

    after this colon sign, and esc_html_e(' Search', 'wpdatatables');

    There you can edit/translate this default " Search" string to anything else.

    On my example i wrote " Translated Search" and it can not fit in the button, the text overlaps the width.

    7840232444.png
    6969625796.png

    We are still checking with our Developer Team what will be the best way going forward for translating it, if you need to have a multi-lingual Site, as soon as we get that confirmation i will report back again.

    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