P
P
Pavel2016-10-13 09:20:43
WordPress
Pavel, 2016-10-13 09:20:43

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.
f78c9f2613ec4a3aba5e46e6dcec68b0.png
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!
837518e3e0ab4548842f9b4f3bf1395f.png
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

1 answer(s)
D
Denis Yanchevsky, 2016-10-13
@deniscopro

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 question

Ask a Question

731 491 924 answers to any question