mdb502
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Replace form-login.php in the child themeThanks 🙂
Forum: Plugins
In reply to: [WooCommerce] Replace form-login.php in the child themeYou’re right!!!
Fixed bug and everything works fine.
Thank you very much,
mdb502Forum: Plugins
In reply to: [Loco Translate] Translate woocommerce emails templates in child themeOK!
ThankForum: Plugins
In reply to: [Loco Translate] Translate woocommerce emails templates in child themeI will leave the function then.
Do you have any recommendations for locating translation files in the child theme language folder?\wp-content\themes\accesspress-store-child\languages\accesspress-store-child-es_ES.mo \wp-content\themes\accesspress-store-child\languages\accesspress-store-child-es_ES.poRegards,
mdb502Forum: Plugins
In reply to: [Loco Translate] Translate woocommerce emails templates in child themeHi timwhitlock,
With your help I finally got the translation of the child theme.
I must make some comments, hoping that this will serve other users.Following the instructions on how to create the child theme, in the style.css custom style sheet it had the following header:
/* Theme Name: AccessPress Store Child Theme URI: Description: AccessPress Store Child Theme Author: MDB502 Author URI: Template: accesspress-store Version: 1.0.0 Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready Text Domain: AccessPress Store */ @import url("../accesspress-store/style.css");As you will see, the Text Domain indicates “AccessPress Store”, which did not allow to recognize the texts to be translated in the creation of the .pot template.
After changing this line to:
Text Domain: accesspress-store-child
everything worked wonders.Regarding the function of your last post, I included it in my plugin for custom functions and everything remains unchanged. With or without this function, everything stays the same. Question: Should I include it to ensure something? Is it necessary to maintain it?.
Finally:
The accesspress-store-child.pot template is successfully created in the folder
\wp-content\themes\accesspress-store-child\languages\accesspress-store-child.potTo create the .po and .mo files I opted for the “System” option and they are created in:
\wp-content\languages\themes\accesspress-store-child-es_ES.mo
\wp-content\languages\themes\accesspress-store-child-es_ES.poSo far everything is working very well. I will continue advancing and if I encounter any problems I comment on this post.
Thank you very much for your help and guidance, without her I would not have this successful result.
Regards,
mdb502Forum: Plugins
In reply to: [Loco Translate] Translate woocommerce emails templates in child themeHi timwhitlock,
Effectively the text is not from WooCommerce, I have written it myself.
I am following the instructions of WooCommerce > Settings > Emails, for example in the “Configure” option of the “New account” mail that says:“This template has been overridden by your theme and can be found in: accesspress-store-child/woocommerce/emails/customer-new-account.php.”
I am using the free theme AccessPress Store, version 2.1.7 and I have created the child theme accesspress-store-child, with the file style.css to customize the styles.
Additionally, I have created a plugin for custom functions.
To personalize the messages of the emails of woocommerce, in the child theme I have copies of the .php files with the modified texts, which I also want to translate into Spanish.
For example, the customer-new-account.php file located in the following path:
\wp-content\themes\accesspress-store-child\woocommerce\emails\customer-new-account.phpThis file, in the original of woocommerce, in line 35 has the following text:
<p><?php printf( __( ‘You can access your account area to view your orders and change your password here: %s.’, ‘woocommerce’ ), make_clickable( esc_url( wc_get_page_permalink( ‘myaccount’ ) ) ) ); ?></p>The modified file in the child theme has the following modified text:
<p><?php printf( __( ‘You can access your account to view and update your data, as well as review your orders and change your password at the following link: %s.’, ‘woocommerce’ ), make_clickable( esc_url( wc_get_page_permalink( ‘myaccount’ ) ) ) );?></p>For woocommerce translations I have the files
\wp-content\languages\plugins\woocommerce-es_ES.po
\wp-content\languages\plugins\woocommerce-es_ES.mo
So far everything works very well.Now I want to translate these modified woocommerce texts into the child theme:
– Where should I locate the .po and .mo files?
– Should I change the name of the reference in the __(‘xxxxxx’, ‘woocommerce’) by another name? For example, from “woocommerce” to “my-woocommerce”
– Is it necessary to include a custom function to indicate the name and location of these new .po and .mo files?I wish it was clear in the description.
Thanks in advance,
mdb502Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] Bug in version 2.1.1I had to make a downgrade to version 2.0.16 and the error disappeared.
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] Bug in version 2.1.1Hello!!!
Another with this problem….
Any solution?