wc-donation / wc-donation-platform

Donation Platform for WooCommerce unleashes the power of WooCommerce for your online fundraising, crowdfunding & crowdsponsoring
https://www.wc-donation.com/
GNU General Public License v2.0
41 stars 11 forks source link

Translating the plugin #22

Closed Buyback1 closed 1 year ago

Buyback1 commented 2 years ago

Hey there,

First of all I would like to thank you for the great work. I'm currently creating a website for a local NGO and I am using your plug-in for donations. I need to translate the plugin and I am working with Loco Translate yet the strings translations do not appear on the website. I have to admit that I am not sure that I am doing it the right way so I thought I might just ask away :)). Is it possible to translate the plugin with LocoTranslate, if so are there any other steps I have to take in order to translate it?

Thank you again for your work and looking forward to hearing from you.

Cheers, Peter

jonas-hoebenreich commented 2 years ago

Hi Peter, thanks for reaching out. The translation with Loco translate should work normally. Only the strings for "Your Contribution" & "Choose an amount" are set via the donation settings. Which strings are affected in your case? Best, Jonas

Buyback1 commented 2 years ago

Hey Jonas,

Thank you so much for the reply.

[image: image.png]

I've translate about 8 percent of the plug-in, mainly for the buttons and texts that appear throughout the checkout process. It says something here about the bundle not being fully configured, yet I don't know what I am doing wrong.

[image: image.png] [image: image.png]

I've attached 2 printscreens, I don't know if it helps. Thank you so much for your help.

Regards, Peter

On Sun, 14 Aug 2022 at 15:00, Jonas Höbenreich @.***> wrote:

Hi Peter, thanks for reaching out. The translation with Loco translate should work normally. Only the strings for "Your Contribution" & "Choose an amount" are set via the donation settings. Which strings are affected in your case? Best, Jonas

— Reply to this email directly, view it on GitHub https://github.com/jonas-hoebenreich/wc-donation-platform/issues/22#issuecomment-1214354251, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2OULYJB2B3SWHCB636TETLVZDNXHANCNFSM56DTGZUA . You are receiving this because you authored the thread.Message ID: @.***>

jonas-hoebenreich commented 2 years ago

Hi Peter, the images you pasted are not displaying properly for me. Could you please add them again via the GitHub web portal? Also, I suspect that your problem is a wrong setting of Loco Translate: https://localise.biz/wordpress/plugin/faqs Would you perhaps be interested in making the translation available to everyone? https://translate.wordpress.org/projects/wp-plugins/wc-donation-platform/ Best, Jonas

Buyback1 commented 2 years ago

Hi Jonas,

Sorry for the late reply I just noticed the notification email went in the wrong folder.

image

image (1)

I reattached the images here. As for making the translation available for everyone, I'd be more than glad.

Thank you the link for setting up Loco Translate, I'll check that one too.

Cheers, Peter

jonas-hoebenreich commented 2 years ago

Here is the configuration that works for me: loco.zip (extract file and then import xml file in Loco translate) When translating there is a button "Sync", did you click this? Also, I recommend you to store the translations in a custom folder to prevent overwriting when the plugin is updated.

Hope this helps :)

abdulloh10 commented 2 years ago

Hi Peter, thanks for reaching out. The translation with Loco translate should work normally. Only the strings for "Your Contribution" & "Choose an amount" are set via the donation settings. Which strings are affected in your case? Best, Jonas

Hello Jonas,

I used loco translate, but it didn't work in the body of the notification email message.

Thank you so much for your help.

Regards, Fahmi

jonas-hoebenreich commented 2 years ago

Hi Fahmi,

the email strings can be set in the WooCommcerce settings for emails.

Regards, Jonas

abdulloh10 commented 2 years ago

Hi Fahmi,

the email strings can be set in the WooCommcerce settings for emails.

Regards, Jonas

When my wordpress uses Indonesian, in the email when the order status is Completed the word Donation is still Donation, said Donor details remain Donor details but in views other than email change according to translation.

When my wordpess uses English USA, the sentences in the contents of the email have been successfully translated as desired..

Owhya in /my-account/edit-address/ the word donation also failed to translate, it's still donation.

Regards, Fahmi

jonas-hoebenreich commented 2 years ago

Can you send me a complete list of the affected strings? Could you please also upload the strings you translated on the WordPress translation page (https://translate.wordpress.org/projects/wp-plugins/wc-donation-platform/)? Then I can install the language locally and understand the error.

Regards, Jonas

jonas-hoebenreich commented 2 years ago

I just fixed the textdomain in 3 strings https://github.com/jonas-hoebenreich/wc-donation-platform/commit/00224da926efb3aee34bbc631a2be5e78eb34c6a