• Resolved netpointsystems

    (@netpointsystems)


    I found a BUG when I have currency EUR set and switch to DUTCH all the prices dissapear. Is it possible to exclude somehow prices/currencies from translating in your plugin ?

    https://pasteboard.co/JR0K716.png

    Can anyone help with this how to fix that ?
    It happens only when the main currency is EUR and switching to DUTCH translation

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter netpointsystems

    (@netpointsystems)

    One more thing, it does not matter is it a fresh installation of wordpres + woocommerce only or website like I showed as an example with all the plugins just does not matter, I have checked it on several different websites different themes, on fresh install of wordpress and woocommerce as well – the same behaviour, hosting and its settings also does not matter, no matter what I set behaviour is exactly the same, it losts the prices once I switch to DUTCH (only this one language)

    One more thing I have noticed it happens only when translating from POLISH to DUTCH and when in POLISH version currency is set as an EUR, once I switch from POLISH to DUTCH I lost the prices as it showed on the example

    Exactly the same problem here

    Me three! Before I could see the prices and now they disappeared?
    I think it’s an update bug?

    I use Elementor with Woocommerce together with the Gtranslate.
    I know I can’t use Gtranslate to translate the e-mails.
    But it was okey if the translation works on the website.

    The default language of the website is English and the translated one is Dutch.
    On English everything works good but switching to Dutch the prices disappear?

    • This reply was modified 3 years, 9 months ago by asiye61.
    Thread Starter netpointsystems

    (@netpointsystems)

    I belive its Googles fault not the plugin author because natively in Google Chrome is exactly the same situaltion. That is the power of MONOPOLY ….. there is no competition to Google ….. if any startup shows up they take over it ….

    Do you think they will fix it if I ask them ((((: ? Ask who ….. no contact form or phone number on google.com ….. sad ….
    Microsoft translator from BING is dead since 2019 there is no competition ….

    I read somewhere there is a way to fix that but it needs some coding …. someone wrote the price class should be excluded from translating maybe Gtranslate author can do something like that because it looks like Google cant handle that and trying to trsanslade the code of the currency therefore we get NULL as a result of it cos EUR symbol cant be translated, should be skipped by the google translator, whole field I mean symbol and quote, whole PRICE field should be skipped. I belive its possible to implement such fix into Gtranslate – can AUthor look into it and let us know is it possible ?

    Thread Starter netpointsystems

    (@netpointsystems)

    I am affraid it is not a bug of Gtranslate my friend (asiye61) …. its Google fault …..

    But I belive Gtranslate author is able to make some kind of fix that to FORCE Google Tranalator skip whole PRICE field while translating by using his absolutely great plugin.

    Ah yes I read your other comment. I hope someone will fix it ^^”
    I see that the author fixes a lot of questions / bugs here so I have high hopes!

    Plugin Author edo888

    (@edo888)

    Hi,

    You should be able to skip the translation of prices: How to skip translations?

    With our paid version it probably will work out of the box, if not our live chat specialists can configure it in minutes for you as it is more flexible.

    https://gtranslate.io/#pricing

    Thanks! ??

    Hi Edo888!

    Can I even give this kind of class to prices in Woocommerce?
    <span class=”notranslate”>this text will not be translated</span>

    Plugin Author edo888

    (@edo888)

    Hi,

    You should be able do that, we are in open source world. You just need to find the exact location in your theme or in WooCommerce plugin files.

    Thanks! ??

    Hi Edo888 thank you for your answer!
    I also askey Gtranslate chat and the lovely lady helped me 90%!

    With this code in at the bottom of Footer.php I can see the prices!

    <script type=”text/javascript”>
    jQuery(document).ready(function() {
    jQuery(“.woocommerce-Price-amount,.product-total”).addClass(‘notranslate’);
    });
    </script>

    But it doesn’t work on the check out page.
    They will try to code it for me!

    I hope I will get the answer soon so I can share the code here!

    (This is a small repost but I wanted the others to see this code as well!)

    Thread Starter netpointsystems

    (@netpointsystems)

    Great info, thanks for sharing maybe we will find here solution to this (:

    I almost got it! like 95% hahah

    Put this code in the Footer.php before the </body>

    <script type=”text/javascript”>
    jQuery(document).ready(function() {
    jQuery(“.woocommerce-Price-amount”).addClass(‘notranslate’);
    });
    </script>

    <script type=”text/javascript”>
    jQuery(document).ready(function() {
    jQuery(“.woocommerce-page.woocommerce-checkout form”).addClass(‘notranslate’);
    });
    </script>

    Now all the prices in your shop, product page and cart stay untranslated!
    But the checkout page part where it calculates the prices stays full in English even if you translate it to Dutch. But still with this you can see the prices ??

    If I can figure out how to only affect the prices in the chechout page I will let you all know!

    Hope this helps you a lot!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Prices dissapear in DUTCH translation’ is closed to new replies.