[Add to cart] button and [Sale] banner not translating

This topic has 25 replies, 3 voices, and was last updated 2 years, 7 months ago ago by Rose Tyler

  • Avatar: David_Alexander_Kuhrt_Hansen
    David Alexander Kuhrt Hansen
    Participant
    April 14, 2021 at 08:48

    I have translated most of my site with Poedit from English to Danish, but a few parts are still not translating correct.

    https://jyskserviceudlejning.dk/bestilling/

    One is the [Add to cart] button on variable products ONLY. All other products are translating fine, and this one even translates correctly when making a “hard refresh” (ctrl+f5 on PC in Chrome), but then it swaps to English…

    Another issue is the [Sale] banner in the category view. Again I have tried to translate it to [Tilbud], but that never shows. When I change it in Xstore settings it shows correctly, but after saving and exiting the edit mode, it goes back to English.

    Maybe there is something else interfering with it?

    24 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 14, 2021 at 09:11

    Hello,

    Check translation of XStore Core plugin.

    Regards

    Avatar: David_Alexander_Kuhrt_Hansen
    David Alexander Kuhrt Hansen
    Participant
    April 14, 2021 at 11:02

    Ok, I have now installed the loco-translate plugin as well and tried that approach, but I’m looking down a corridor with 20 doors, not knowing where to go.

    What should change the Sale banner and the Add to cart button?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 14, 2021 at 14:47

    Hello,

    Go to Loco Translate > Plugins > XStore Core plugin > create translation to your language and choose the Custom location, not Author location while creating it. After that search for the mentioned strings and translate them. If you still have a problem after that then provide us with WP Dashboard access to your site.

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 14, 2021 at 14:47

    Hello,

    Go to Loco Translate > Plugins > XStore Core plugin > create translation to your language and choose the Custom location, not Author location while creating it. After that search for the mentioned strings and translate them. If you still have a problem after that then provide us with WP Dashboard access to your site.

    Regards

    Avatar: David_Alexander_Kuhrt_Hansen
    David Alexander Kuhrt Hansen
    Participant
    April 14, 2021 at 23:54

    Thanks for getting back to me. I just did, what you wrote, but no result.
    Please take a look at the setup and let me know, what can be done 🙂

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 15, 2021 at 07:33

    Hello,

    Please set the administrator role for the user.
    Waiting for your reply.

    Regards

    Avatar: David_Alexander_Kuhrt_Hansen
    David Alexander Kuhrt Hansen
    Participant
    April 16, 2021 at 09:34

    Sorry, it is now updated to administrator.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 16, 2021 at 09:50

    Hello,

    Update the theme – https://xstore.helpscoutdocs.com/article/63-theme-update and XStore Core plugin – https://xstore.helpscoutdocs.com/article/37-plugins-update ,
    >> Synchronize translation – https://xstore.helpscoutdocs.com/article/103-translation-files-update and then try to find and translate untranslated strings.

    Regards

    Avatar: David_Alexander_Kuhrt_Hansen
    David Alexander Kuhrt Hansen
    Participant
    April 16, 2021 at 13:11

    I just updated the theme xstore core, and now I got this error:

    Warning: sprintf() [function.sprintf]: Too few arguments in /var/www/jyskserviceudlejning.dk/public_html/wp-content/plugins/et-core-plugin/config/post-type.php on line 301

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 16, 2021 at 13:33

    Hello,

    I do not see this warning on your site right now. Is it solved?

    Regards

    Avatar: David_Alexander_Kuhrt_Hansen
    David Alexander Kuhrt Hansen
    Participant
    April 16, 2021 at 22:21

    That’s because I disabled the X Store Core plugin. When I activate it, the warning comes on again. So something went wrong with the last automatic WP update.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 17, 2021 at 09:49

    Hello,

    We do not have these warnings on our test site.
    Please provide temporary FTP access. After the weekend, our developers will check it on your site more deeply.
    If you don’t know your FTP host, FTP login, and FTP pass contact your hosting provider and ask this information.

    Regards

    Avatar: David_Alexander_Kuhrt_Hansen
    David Alexander Kuhrt Hansen
    Participant
    April 19, 2021 at 10:58

    ->

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 19, 2021 at 17:39

    Hello,

    Provide FTP host, FTP. username and FTP password in the Private content area. There is no need to send xml to us.

    Regards

    Avatar: David_Alexander_Kuhrt_Hansen
    David Alexander Kuhrt Hansen
    Participant
    April 20, 2021 at 14:46

    ok, here it is. Let me know, what you find out.
    There is no warning, when the e-store-core plugin is disabled, but it comes when enabled, and it started after the automatic WP update

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 20, 2021 at 19:38

    Hello,

    Your issue was related to an incorrect translation that you made https://prnt.sc/11rl16f
    %s is the argument of the function and if you make mistake during translation it causes a warning. Check now.

    Regards

    Avatar: David_Alexander_Kuhrt_Hansen
    David Alexander Kuhrt Hansen
    Participant
    August 30, 2021 at 07:58

    Hi again
    It worked the last time, but something has changed and now I see the issue back.
    What file, do I need to change? It would be nice to know the exact file, so I can do it again, if anything changes later on.
    https://jyskserviceudlejning.dk/bestilling/

    Also the yellow [SALE] banner on the same url should show [TILBUD] instead.

    In another product I have a new translate issue:
    https://jyskserviceudlejning.dk/vare/slushice-maskine/
    The product bundle price is written as “Add for DKK32,00 each” which was translated before, but now in English.

    I think my client has updated WP and plugins by herself, which made these issues reappear. So I would like to know what files to look for in the future.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 30, 2021 at 10:56

    Hello,

    1/ Have you changed wp-admin access? What exactly issue is back? Describe in more detail, please.
    2/ Theme options > WooCommerce > Shop elements > Sale > “Sale” Label Text
    3/ After every update, you need to synchronize translation – https://xstore.helpscoutdocs.com/article/103-translation-files-update Sometimes new strings are added, and only after synchronization, you’ll be able to translate new strings or strings that were changed. Not always, but some strings can be missing after the sync and you need to find and translate them one more time, this is independent of us and relates to WP functionality. So Sync translation of the theme and plugins, then try to find and translate mentioned strings.

    Regards

    Avatar: David_Alexander_Kuhrt_Hansen
    David Alexander Kuhrt Hansen
    Participant
    August 30, 2021 at 13:00

    1) I have just added a new admin user 🙂
    2) Was already done, and sometimes showing, when logged in, but not as a random guest.
    3) I have tried synchronizing with PoEdit, but it does not seem to change anything…
    I checked
    Theme: X-Store (and child)
    Plugins: X-Store and Woocommerce and Woocommerce Booking and Woocommerce Bundle Products

    Please contact administrator
    for this information.
  • 1 2
    Viewing 20 results - 1 through 20 (of 25 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.