nielslange / smntcs-show-sale-price-date-for-woocommerce

Show WooCommerce sale prices date on shopping page.
https://wordpress.org/plugins/smntcs-show-sale-price-date-for-woocommerce/
GNU General Public License v2.0
3 stars 0 forks source link

translate label?! #16

Closed tdpt closed 4 years ago

tdpt commented 4 years ago

Nice plugin and Woocommerce should have this option by default.

I see you show how to change the label, but if we update the plugin in future we will lose that customization. Is there a way to change it on a translations file?

Nice work. Thank you.

nielslange commented 4 years ago

Hello @tdpt πŸ‘‹ You can translate the label by adding the following code to the functions.php file within your theme:

add_filter( 'sale_date_label', 'my_custom_sale_date_label' );
function my_custom_sale_date_label() {
    return 'My custom title';
}

Please let me know if that works as expected. πŸ˜‰

tdpt commented 4 years ago

Thank you, I will try that.

Niels Lange notifications@github.com escreveu no dia quinta, 7/05/2020 Γ (s) 14:39:

Hello @tdpt https://github.com/tdpt πŸ‘‹ You can translate the label by adding the following code to the functions.php file within your theme:

add_filter( 'sale_date_label', 'my_custom_sale_date_label' );

function my_custom_sale_date_label() {

return 'My custom title;

}

Please let me know if that works as expected. πŸ˜‰

β€” You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nielslange/smntcs-show-sale-price-date-for-woocommerce/issues/16#issuecomment-625261526, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL5LPRLXUCYEUMVVO3I6LK3RQK2X3ANCNFSM4M2QLGUQ .

nielslange commented 4 years ago

Sounds good, @tdpt. I'm going to close this issue for now. But feel free to open another one if you have another question.

tdpt commented 4 years ago

Niels

Sorry, but I have this problem, and maybe you can help me easely: I want to label with "Promoção até" but using does portuguese special characters wordpress don't let me save the file. I have to edit it and upload by ftp :(

Is there any way I can edit it on the admin theme editor on Wordpress?

Thank you

Niels Lange notifications@github.com escreveu no dia sexta, 8/05/2020 Γ (s) 14:22:

Closed #16 https://github.com/nielslange/smntcs-show-sale-price-date-for-woocommerce/issues/16 .

β€” You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nielslange/smntcs-show-sale-price-date-for-woocommerce/issues/16#event-3316934418, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL5LPRMRGJAOQQ6IYGBAI6DRQQBSTANCNFSM4M2QLGUQ .

nielslange commented 4 years ago

Hello @tdpt πŸ‘‹

Is there any way I can edit it on the admin theme editor on Wordpress?

I'm going to move the label to the customizer, so that it can be edited there. I'll let you know once I deployed the new version of the plugin. πŸ˜‰

nielslange commented 4 years ago

Hello @tdpt πŸ‘‹I just deployed a new version of the plugin, which allows you to add the label directly via WP Admin β†’ Appearance β†’ WooCommerce β†’ Show Sale Price Date as seen on the following screenshot:

#16-after

If you like the plugin and this enhancement, it would be great if you would rate the plugin via https://wordpress.org/support/plugin/smntcs-show-sale-price-date-for-woocommerce/reviews/#new-post 😁

tdpt commented 4 years ago

Now is perfect ;)

Thank you

Niels Lange notifications@github.com escreveu no dia sΓ‘bado, 9/05/2020 Γ (s) 12:25:

Hello @tdpt https://github.com/tdpt πŸ‘‹I just deployed a new version of the plugin, which allows you to add the label directly via WP Admin β†’ Appearance β†’ WooCommerce β†’ Show Sale Price Date as seen on the following screenshot:

[image: #16-after] https://user-images.githubusercontent.com/3323310/81472440-4c9b2200-9222-11ea-8f5f-c4951ce0899d.png

If you like the plugin and this enhancement, it would be great if you would rate the plugin via https://wordpress.org/support/plugin/smntcs-show-sale-price-date-for-woocommerce/reviews/#new-post 😁

β€” You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nielslange/smntcs-show-sale-price-date-for-woocommerce/issues/16#issuecomment-626153255, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL5LPRIBHEMEHOY5MSX53QLRQU4UJANCNFSM4M2QLGUQ .