Hi, I am using Google Language Translator (https://wordpress.org/plugins/google-language-translator/) in several languages. There is an incompatibility that produces some numbers appear doubled. I would need to put the numbers into a non-translate class to skip translations. The code is: <span class="notranslate">this text will not be translated</span> There is an explanation at: https://docs.gtranslate.io/en/articles/1349930-how-to-skip-translations Is there any method to do it? Thanks Ricardo
Unfortunately, there's no method you can do it with, but as far as our developers could see, you could find the selectors for those elements, and add them in that plugin's settings:
- Skip translation using CSS selector
You can add multiple CSS selectors in your User Dashboard Settings page, which will ensure that the HTML elements which match your selectors will be skipped from translation. Compared to the previous method, this method doesn't require modifications on your website content. For example:
<h2 id="product_title">John Doe's Pizza</h2> For this case you can use the following CSS selector:
I am not sure what do you suggest. I am not interested in avoiding the translation of texts. That is the purpose of the plugin and is doing it very well. I am interested in preventing the duplication of numbers in the table. Please, see this page in Spanish: https://trainingsims.com/reports/all-decisions/ Regards Ricardo
Hi Aleksandar, No problem. I am attaching a screenshot with duplicate numbers in columns "Gastado" and "Restante" when you translate into Spanish. They are the last two columns. Please notice that the doubled numbers are not all of them. It affects to 0, 4, 5, 6, 7, and 9 You can show original and come back to Spanish, and the difference will be clear. For your convenience, I have left the Spanish as the last language (flag).
It's really strange. It's not happening for Japanese, or Russian, and for Portuguese it's only happening for 1. I don't believe there's anything we can do about this, but I'll forward it to our developers again.
One of our developers took a look at this, and he said that there's not much we can do. It inserts the font tag for all languages, but why it chooses to duplicate some we cannot say.
What you say is exactly what I am looking for. If you insert the exception code for all languages, this will solve the problem. It doesn't matter the Google logic if we can avoid translation of all numbers in a table. This is the solution the other plugin developer did. As I can see this has not an evident solution so I would be glad to order this modification of the plugin if it takes extra work from your developers. Regards Ricard
I checked with our development team, and unfortunately they don't have the time to accept any custom work at the moment. They are working on priority tasks on all our plugins and add-ons (a major update is currently under development for wpDataTables), so they can't dive into Google Language Translator's code, and test to see what needs to be implemented in order to get this to work.
This is very inconvenient. I told you about a similar change in another plugin that I use to send the forms to my database. The developer needed just three lines of code to modify the behaviour of how tables are shown. This is something that only experts in the plugin can do it. Developers without it have to dig into the code to find what to do, which takes time and is more expensive. Besides, modifications are not so fine-tuned. What a pity!
I checked with our developers again, and they said that it wouldn't be as simple as writing three lines of code. wpDataTables works with databases, ajax calls, scripts and all those need to be checked in order to make it work properly.
They simply don't have the time to work on custom work at the moment. If it was as simple as that, they would've done it, no question there.
Hi,
I am using Google Language Translator (https://wordpress.org/plugins/google-language-translator/) in several languages. There is an incompatibility that produces some numbers appear doubled. I would need to put the numbers into a
non-translate class to skip translations.
The code is:
<span class="notranslate">this text will not be translated</span>
There is an explanation at:
https://docs.gtranslate.io/en/articles/1349930-how-to-skip-translations
Is there any method to do it?
Thanks
Ricardo
Hello Ricardo
I am not sure you can do this, so I have forwarded the question to one of our developers.
I'll get back to you as soon as I get a response from him.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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
Hello Ricardo
Unfortunately, there's no method you can do it with, but as far as our developers could see, you could find the selectors for those elements, and add them in that plugin's settings:
- Skip translation using CSS selector
You can add multiple CSS selectors in your User Dashboard Settings page, which will ensure that the HTML elements which match your selectors will be skipped from translation. Compared to the previous method, this method doesn't require modifications on your website content. For example:
<h2 id="product_title">John Doe's Pizza</h2>
For this case you can use the following CSS selector:
#product_title
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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
Hi Aleksandar,
I am not sure what do you suggest. I am not interested in avoiding the translation of texts. That is the purpose of the plugin and is doing it very well. I am interested in preventing the duplication of numbers in the table.
Please, see this page in Spanish:
https://trainingsims.com/reports/all-decisions/
Regards
Ricardo
Hi again Ricardo
I'm sorry, but I don't know which numbers you're referring to.
The duplicates shown are there since the countries are different:
Can you show me what you're seeing as duplicates?
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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
Hi Aleksandar,
No problem. I am attaching a screenshot with duplicate numbers in columns "Gastado" and "Restante" when you translate into Spanish. They are the last two columns. Please notice that the doubled numbers are not all of them. It affects to 0, 4, 5, 6, 7, and 9 You can show original and come back to Spanish, and the difference will be clear. For your convenience, I have left the Spanish as the last language (flag).
Regards
Ricardo
I see, Ricardo
It's really strange. It's not happening for Japanese, or Russian, and for Portuguese it's only happening for 1. I don't believe there's anything we can do about this, but I'll forward it to our developers again.
I'll get back to you as soon as possible.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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
Hi again Ricardo
I don't believe our logic is the same.
One of our developers took a look at this, and he said that there's not much we can do. It inserts the font tag for all languages, but why it chooses to duplicate some we cannot say.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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
Hi Aleksandar,
What you say is exactly what I am looking for. If you insert the exception code for all languages, this will solve the problem. It doesn't matter the Google logic if we can avoid translation of all numbers in a table. This is the solution the other plugin developer did.
As I can see this has not an evident solution so I would be glad to order this modification of the plugin if it takes extra work from your developers.
Regards
Ricard
Hi again Ricardo
I checked with our development team, and unfortunately they don't have the time to accept any custom work at the moment. They are working on priority tasks on all our plugins and add-ons (a major update is currently under development for wpDataTables), so they can't dive into Google Language Translator's code, and test to see what needs to be implemented in order to get this to work.
I can recommend these services for customization:
https://codeable.io/?ref=l1TW1
https://wpkraken.io/?tms-plugins
They do develop such solutions, so can you please send your inquiry to them?
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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
Hi Aleksandar,
This is very inconvenient. I told you about a similar change in another plugin that I use to send the forms to my database. The developer needed just three lines of code to modify the behaviour of how tables are shown. This is something that only experts in the plugin can do it. Developers without it have to dig into the code to find what to do, which takes time and is more expensive. Besides, modifications are not so fine-tuned.
What a pity!
Sorry about the inconvenience Ricardo
I checked with our developers again, and they said that it wouldn't be as simple as writing three lines of code. wpDataTables works with databases, ajax calls, scripts and all those need to be checked in order to make it work properly.
They simply don't have the time to work on custom work at the moment. If it was as simple as that, they would've done it, no question there.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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