このユーザーにはお気に入りトピックがありません。
お気に入りのフォーラム・トピック
フォーラム・トピックの作成
状況 |
トピック
|
サポーター | 声 | 投稿文 | 新鮮さ |
---|---|---|---|---|---|
Woo Product translation issues
によって始められた: kolosD にある: English Support |
2 | 20 | 2週、 5日前 | ||
Translating numbers
によって始められた: kolosD
にある: English Support
Problem: Solution: function wpmlsupp_7499_allow_translating_numbers($is_translatable, $job_translate) {<br /> $data = $job_translate['field_data'];<br /> if ('base64' === $job_translate['field_format']) {<br /> $data = base64_decode($data);<br /> }<br /> if (is_numeric($data)) {<br /> return true;<br /> }<br /> return $is_translatable;<br />}<br />add_filter('wpml_tm_job_field_is_translatable', 'wpmlsupp_7499_allow_translating_numbers', 10, 2); After adding this code, make a minor change to the product, save it, and update the translation. In the Translation Editor, manually search for the number you wish to translate. Ensure that the translation preference for the field where you're adding the numerical value is set to 'Translatable' in WPML > Settings > Custom Field translation. If you're using custom attributes not created through the WooCommerce > Attributes section, consider creating global attributes for easier management and translation. If this solution does not resolve your issue or seems outdated, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If needed, please open a new support ticket at WPML support forum for further assistance. |
2 | 5 | 3ヶ月前 | ||
Woo Product translation issues
によって始められた: kolosD にある: English Support |
2 | 2 | 8ヶ月前 |