Answer the question
In order to leave comments, you need to log in
What's wrong with translation in WordPress?
There is a site with Woocommerce. There are some errors in the translation of the plugin. For example, in your personal account there are the following lines.
There are not enough commas here. Decided to fix it. I open the po file with the translation in wp-content/languages/plugins. I find the necessary lines, and I see that the file has a completely different translation!
These lines are used in the code
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
<label for="password_current"><?php _e( 'Current Password (leave blank to leave unchanged)', 'woocommerce' ); ?></label>
<input type="password" class="woocommerce-Input woocommerce-Input--password input-text" name="password_current" id="password_current" />
</p>
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
<label for="password_1"><?php _e( 'New Password (leave blank to leave unchanged)', 'woocommerce' ); ?></label>
<input type="password" class="woocommerce-Input woocommerce-Input--password input-text" name="password_1" id="password_1" />
</p>
Answer the question
In order to leave comments, you need to log in
What version of WordPress?
Options that come to mind:
1. Overridden by translations from the plugin or theme itself.
2. Overridden with the gettext filter .
3. Overridden by translation plugins.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question