Title: Translation issue
Last modified: December 10, 2016

---

# Translation issue

 *  Resolved [mushki](https://wordpress.org/support/users/mushki/)
 * (@mushki)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/translation-issue-62/)
 * Hi,
 * We implemented JTRT tables on a client’s website. All works fine, but:
    Client
   is located in China, and would like to have the search box & tools’ texts in 
   Chinese (“search”, “show”, “entries”, and so on). Could you please tell us where
   we can translate those parts?
 * Thanks in advance for your answer!

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [MyThirdEye](https://wordpress.org/support/users/mythirdeye/)
 * (@mythirdeye)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/translation-issue-62/#post-8544340)
 * Hello Mushki,
 * In the latest version of the plugin I have included a .POT file which has all
   the strings needed to be translated (except a few front-end strings) which you
   can use to translate into the language you prefer. Unfortunately, I’m not too
   familiar with how translations are done, there is apparently a tool called poedit
   which helps you translate the texts.
 * [https://premium.wpmudev.org/blog/how-to-translate-a-wordpress-plugin/](https://premium.wpmudev.org/blog/how-to-translate-a-wordpress-plugin/)
 * If you want to translate the front-end strings( the sorting/searchbox seach text/
   pagination ) you will have to do this manually through javascript. I can’t provide
   a way to translate those texts since they come from 3rd party scripts/tools.
 * I hope this helps, let me know if you have any other questions.
 * Thanks
    John
 *  [taraswp](https://wordpress.org/support/users/taraswp/)
 * (@taraswp)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/translation-issue-62/#post-8602955)
 * Hello Mushki!
    Please advise how you solved this problem?
 *  Plugin Author [MyThirdEye](https://wordpress.org/support/users/mythirdeye/)
 * (@mythirdeye)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/translation-issue-62/#post-8604090)
 * Hello [@taraswp](https://wordpress.org/support/users/taraswp/)
 * If you download the plugin, inside the folder /languages, you will see a file
   called “jtrt-responsive-tables.pot”
 * [https://github.com/JohnTendik/jtrt-tables/blob/master/languages/jtrt-responsive-tables.pot](https://github.com/JohnTendik/jtrt-tables/blob/master/languages/jtrt-responsive-tables.pot)
 * This file has all* (most) of the strings the plugin is using, therefore all you
   need to do is use a program such as poedit ([https://poedit.net/](https://poedit.net/))
   and translate the strings to your language. The program will save a language 
   file which you can put into the /languages folder.
 * Here is a more specific tutorial which might help out.
    [https://premium.wpmudev.org/blog/how-to-translate-a-wordpress-plugin/](https://premium.wpmudev.org/blog/how-to-translate-a-wordpress-plugin/)
 * Good luck!
 * John
 *  [taraswp](https://wordpress.org/support/users/taraswp/)
 * (@taraswp)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/translation-issue-62/#post-8604148)
 * Hello MyThirdEye!
    Thanks, I have seen jtrt-responsive-tables.pot, but unfortunately
   this file does not contain texts: “search”, “show”, “entries”.
 *  Plugin Author [MyThirdEye](https://wordpress.org/support/users/mythirdeye/)
 * (@mythirdeye)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/translation-issue-62/#post-8604179)
 * Hey Taraswp,
 * I see, those are strings that are coming from either footables or Datatables 
   javascript files. These are separate from my plugin, they are 3rd party scripts
   therefor it would be incredibly hard for me to include translations for them.
 * Datatables has their own localization implemented, so you can use their language
   setting to do your translations.
 * [https://datatables.net/manual/i18n](https://datatables.net/manual/i18n)
 * an example way to do this is in the following file jtrt-tables/public/js/jtrt-
   responsive-tables-public.js
 * in that script, the area when datables is being initialized, pass in your language
   filter like so:
 *     ```
       var jtrtDTcopy = mytablr.DataTable({
       					"paging":isPaged,
       					"ordering":isSorted,
       					"searching":isfiltered,
       					"info":false,
       				});
       ```
   
 * change to this
 *     ```
       var jtrtDTcopy = mytablr.DataTable({
       					"paging":isPaged,
       					"ordering":isSorted,
       					"searching":isfiltered,
       					"info":false,
       language: {
               search: "Search in your language",
               show: "Show in your language" 
           }
       				});
       ```
   
 * unfortunately FooTables does not offer this feature. Therefore you will have 
   to specifically target their front-end scripts and alter the text that way, or,
   alter the text after the page loads.
 * For example, the page will load with the text “search” but simply, create a script
   that will target the “search” text element, and replace it’s content with your
   preferred language.
 * Hope this helps.
 * Thanks
    John
 *  [taraswp](https://wordpress.org/support/users/taraswp/)
 * (@taraswp)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/translation-issue-62/#post-8629236)
 * Hello MyThirdEye!
    Thanks for your advice, I did so, but it doesn’t helps:
 *     ```
       		$('.jtrespo-scroll table').each(function(infxx,tableee){
       			var mytablr = $(tableee),
       				isfiltered = mytablr.attr('data-filtering'),
       				isSorted = mytablr.attr('data-sorting'),
       				isPaged = mytablr.attr('data-paging'),
       				isPagedCtn = mytablr.attr('data-paging-size');
   
       			if(isfiltered == "true" || isSorted == "true" || isPaged == "true"){
       				mytablr.DataTable({
       					"paging":isPaged,
       					"ordering":isSorted,
       					"searching":isfiltered,
       					"info":false,
       					language: {
       						search: "Шукати",
       						show: "Показати" 
       					}
       				});
       			}
       		});
       ```
   
 * Maybe I did something wrong, because I don’t know Javascript 🙁
    And, on my site
   I use two languages: English and Ukrainian. For it i use “Polylang plugin” [https://ru.wordpress.org/plugins/polylang](https://ru.wordpress.org/plugins/polylang)
   On datatables.net I found file with Ukrainian translation [https://datatables.net/plug-ins/i18n/Ukrainian](https://datatables.net/plug-ins/i18n/Ukrainian)
   Can you help me considering the above?
 * Thanks a lot!
 *  Thread Starter [mushki](https://wordpress.org/support/users/mushki/)
 * (@mushki)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/translation-issue-62/#post-8630699)
 * Heres how I solved my problem
    as MyThirdEye mentioned in “jtrt-responsive-tables-
   public.js” file, put the `language: {}` _(its right after line 114 in the version
   i use)_ inside the code like this:
 *     ```
       var jtrtDTcopy = mytablr.DataTable({
       					"paging":isPaged,
       					"ordering":isSorted,
       					"searching":isfiltered,
       					"info":false,
       language: { 
   
           lengthMenu:     "Show _MENU_ entries",
           search:         "Search:",
           paginate: {
               next:       "Next",
               previous:   "Previous"}
       }
       				});
       ```
   
 * here you can find all strings you can translate in the table:
    [https://datatables.net/reference/option/language](https://datatables.net/reference/option/language)
    -  This reply was modified 9 years, 5 months ago by [mushki](https://wordpress.org/support/users/mushki/).
    -  This reply was modified 9 years, 5 months ago by [mushki](https://wordpress.org/support/users/mushki/).
 *  Plugin Author [MyThirdEye](https://wordpress.org/support/users/mythirdeye/)
 * (@mythirdeye)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/translation-issue-62/#post-8635283)
 * Thank you for that [@mushki](https://wordpress.org/support/users/mushki/),
 * I will include this information in the documentation when I have some time to
   get that up 😛
 * If you guys run into any issues or have any other questions let me know and I’ll
   try my best to help out.
 * John

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Translation issue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jtrt-responsive-tables_7fb7dc.svg)
 * [JTRT Responsive Tables](https://wordpress.org/plugins/jtrt-responsive-tables/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jtrt-responsive-tables/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jtrt-responsive-tables/)
 * [Active Topics](https://wordpress.org/support/plugin/jtrt-responsive-tables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jtrt-responsive-tables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jtrt-responsive-tables/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [MyThirdEye](https://wordpress.org/support/users/mythirdeye/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/translation-issue-62/#post-8635283)
 * Status: resolved