Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 17 replies, has 2 voices.

Last updated by Marzia 1 year, 6 months ago.

Assisted by: Marsel Nikolli.

Author Posts
October 30, 2023 at 12:21 pm #14690961

Marzia

Hello, I spent days finding strings, and I need help on some I cannot find.
I followed your documentation, and added all strings for all the plugins in use and also admin strings.
1) Cannot translate Woocommerce product attribute label. Not global attributes, but an attribute created inside the product.
2) Cannot translate some body strings in woocommerce customer note email. I think the woocomemrce default template is owerwritten wither by Pre-orders plugin, or Kadence plugin, Custom User registration plugin. Anyway, I added all strings from these plugins.

The website is is inside the subfolder dev, it is a staging copy. It is in 3 languages (IT, EN, FR)
hidden link

Thank you so much for help!

woo-email.jpg
days.jpg
customer-note.jpg
October 30, 2023 at 4:10 pm #14693491

Marsel Nikolli

Hi Marzia,

Thank you for contacting WPML Support.

1) In order to translate the product attributes please follow these steps:
- go to WPML -> Settings -> Custom Fields Translation section
- click the blue link (Show system fields)
- search for "_product_attributes" and set it to "Translate"

After go on the products that you set the attribute you want to translate and open translation editor, the attribute label should show up for translation.

2) Related to the strings on the WooCommerce customer note email:
- go to WooCommerce -> Settings -> Emails
- click "Manage" on the Customer note email
- Edit the fields in the default language and click save changes
- after that click on the blue link (translations) next to the language option on each field

It should open the WPML String Translation page with the respective fields to be translated in the languages you want.

It's not related to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page: https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file right before the:
/* That's all, stop editing! Happy publishing. */

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

Let me know if the above instructions help resolving your issue.

Regards,
Marsel

October 30, 2023 at 5:26 pm #14694095
Marzia

Hello Marsel, thank you for your answer.
Unfortunately both solution don't work.
1) I enabled custom fields _product_attributes and then in wpml editor i see a custom fields box and when i put the correct strings, the value is not saved. I save and lcose, then i re-open and I find again the Italian string.
2) In the customer note email only subject and heading are visible to translate and apply translations correctly. The email template is overwritten by Kadence Email Designer, but some parts seem to be hardcoded and I cannot find the strings.

Thank you!

ps. I adjusted memory limit

New threads created by Marsel Nikolli and linked to this one are listed below:

https://wpml.org/forums/topic/split-getting-mad-finding-strings/

woo-email.jpg
kadence-note.jpg
October 31, 2023 at 9:57 am #14698105

Marzia

I forgot to add a screenshot. If I try to add transalation in english, the I save and close, when I re-open I find againa the original string. Value is not saved. Thanks

cf-Days.jpg
October 31, 2023 at 10:00 am #14698173

Marsel Nikolli

Hi Marzia,

I would need to split this ticket as we do have the policy of handling one issue per ticket in order to make it more easy for other people that might be having the same issues as you in the future.

We will continue here working on the issue related to the product attribute and on the other ticket we deal with the email template translation. (https://wpml.org/forums/topic/split-getting-mad-finding-strings/)

1) Could you please tell me how are you creating the form where the string "Giorni" (from the image on your first message) appears? Are you using any widget or plugin for that?

2) Would it be possible to test and check if the issue happens with minimal setup, that meaning:
- set a default WP theme
- enable only WPML plugins, WooCommerce Multilingual plugin and ONLY necessary plugins to reproduce the issue
- disable all the other plugins

That would help in checking if the issue is related to any plugin/theme.

Note: Please make sure you have a full backup of your website before making any change to your website, in order to prevent any possible data loss.

Looking forward to your reply,
Marsel

October 31, 2023 at 10:51 am #14698613

Marzia

Hello, I cannot test now, I have another developer trying to solve another issue.
In the meantime I'm wondering if this alert I see can be the problem. I checked in db, but I cannot say if data are coorrect.
See two screenshot attached.

Schermata 2023-10-31 alle 11.49.53.jpg
Schermata 2023-10-31 alle 11.48.31.jpg
October 31, 2023 at 11:43 am #14699227

Marsel Nikolli

On first look it doesn't seem related to the translation issue you're experiencing, I would need more information about the error you are seeing, like how you came to it, what were you trying to do when you saw it, etc. but please let's try keeping to one issue per ticket in order to manage issues more efficiently.

I would need to know how are you creating that form so I can better understand how to help you translate it.

Thanks,
Marsel

October 31, 2023 at 12:11 pm #14699477

Marzia

The form is made with Composite Products plugin, and this "Giorni" string is a normal attribute label. The attribute is not global, it is set inside the product itself.
As soon as the other developer fix its issue, I can try do disable all plugins, and let you know if the issue still occurs.
Thank you for you patience! 🙂

October 31, 2023 at 12:19 pm #14699499

Marzia

Actually I found now a very interesting thing!
If I view the single product, it does not have this issue. The label is translated.
hidden link
I think the problem as a relation with the composite product plugin.

October 31, 2023 at 1:08 pm #14699925

Marsel Nikolli

Can you please check if follow the steps below helps resolve this issue:

- go to WPML-> Theme and plugin localization -> Strings in the plugins section
- check the checkbox next to the plugin Composite Products
- click "Scan selected plugins for strings"

Once that process is finished:
- go to WPML-> String Translation
- search for the strings you need to translate
- translate it if found

Let me know how it goes.

October 31, 2023 at 3:46 pm #14701967

Marzia

Done it already. No strings. In any domain, in any context, in any language.

Schermata 2023-10-31 alle 16.45.52.jpg
Schermata 2023-10-31 alle 16.43.48.jpg
October 31, 2023 at 3:57 pm #14702045

Marzia

I fear it is an unsolved issue....I found other similar cases, but this one is my case.
https://wpml.org/forums/topic/labels-not-translated/
And I think should be fixed with the plugin author.
It is absurd spending so much time for a stupid label. 🙁

October 31, 2023 at 4:08 pm #14702163

Marsel Nikolli

To further investigate the issue I would require for you to please try reproduce the issue on this sandbox:

hidden link
(on-click-login)

- WPML/WCML Plugins are active/enabled (configure them as on your site)
- please upload only the necessary plugins/theme to reproduce issue

Let me know if you need any help.

Could you send me what steps to follow as well to reproduce it?

Looking forward to your reply,
Marsel

October 31, 2023 at 5:04 pm #14702617

Marzia

Here we go:
COMPOSITO
hidden link

Composito is the composite product in which I selected the "Iscrizione" product as 1° and unique step. (search in Components tab, inside the product)
The "Iscrizione" is a variable product and uses the attribute "Giorni" to select the desired day.
I translated it from Italian to English and you can see the issue exactly as my website.

Only showing the single product (out of the multistep process), the label is translated
hidden link

I tried adding already Composite Products strings in string translation, and searched in admin strings. Anyway, the string is translated already, only does not show.
Thank you!

November 1, 2023 at 10:55 am #14706621

Marsel Nikolli

Hi,

Thank you for your guide and for reproducing the issue on the sandbox site.

I did some more tests and was able to find a solution to translate the "Giorni" by using a global attribute instead of a custom one (you can check the sandbox site, I have made the changes there and it is working).

What I did was:

- I created an attribute "Giorni" on the default language ( wp admin -> Prodotti -> Attributi)
- went to the product "Iscrizione" and removed the attribute that was set and replaced it with the global attribute "Giorni"
- on the product "Iscrizioni" i created 2 values (8 marzo, 9 marzo) for the attribute and filled out the variation options
- after that i went to Wp admin -> WooCommerce -> WCmultilingual -> Attributti tab
- on the Attributi tab, select "Giorni" from the dropdown and translate the attribute label and values
- after translating click "Sincronizza gli attributi e aggiorna le varianti dei prodotti"

Let me know in you need any help in following these steps.

Note: Please make sure you have a full backup of your website before making any changes.

Looking forward to your reply,
Marsel