Okay
  Public Ticket #3231886
Language Spanish not available
Closed

Comments

  • Agustín Ortiz started the conversation

    Hi, I can't find the Spanish translation file and the buttons are in English

    7832945729.png

    I can download from anywhere? 

    Thanks!

  •  1,850
    Miloš replied

    Hi, Agustín 

    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.

    -

    You are correct. We still don't have any Spanish translations in our plugin languages folder.

    We don't have a professional translations Team, so we take all translations from our users,

    they send it to us, then our developers add it during Updates, so we get more translations over time.

    -

    Here is how you can add your own translations to the plugin's languages folder, and some advice for best practice :


    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 rename the files to 'wpdatatables-es_ES.mo' and 'wpdatatables-es_ES.po'.

    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

    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

  • Agustín Ortiz replied

    I can resolve this issue editing the files witch you mencioned. Thanks you!

  •   Miloš replied privately