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 14 replies, has 3 voices.

Last updated by Mohamed Sayed 1 year, 10 months ago.

Assisted by: Mohamed Sayed.

Author Posts
August 1, 2023 at 5:05 am #14130315

estefaniaM-2

Tell us what you are trying to do? Translate WP Recipe Maker plugin strings

Is there any documentation that you are following? no

Is there a similar example that we can see? Yes I have added a screen cast

What is the link to your site? hidden link

Here is a screencast to show you what I am trying to translate. hidden link

August 1, 2023 at 5:58 am #14130367

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

Before this ticket gets assigned to my colleagues, I will try to help.

The proper way to translate strings depends a lot on how they have been implemented inside the theme/plugin.

Sometimes, there are even duplicates of the same string and only one of them is the correct one that needs to be translated.

Also, sometimes, simply removing the string (checking the box and removing it) and then re-registering it again by scanning for it (one of the methods below) and re-translating it resolves the issue.

1. Please try this:

Go to WPML > String Translation and at the bottom of the page you will find a checkbox called "Look for strings while pages are rendered". You can enable (check) that and then go in the front end to a page where you have that string showing up and then go back to WPML > String Translation and search for that string and see if it now shows up.

2. If you can't find them inside the WPML > String Translation, they might be added as admin text.

This should be the normal process to find and translate admin text strings:
https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

Please let us know how that goes.

Kind regards,
Mihai Apetrei

August 1, 2023 at 6:12 am #14130413

estefaniaM-2

Hi,

Here is a screenshot to show you that I have the required stings translated for the domain wp-recipe-maker-premium

hidden link

However, as per the plugin developer, these strings should be also translated for the domain wp-recipe-maker, the issue is I am unable to locate the strings in this domain except the string for Percent Daily Values are based on a 2000 calorie diet.

I need all the below strings in domain wp-recipe-maker hidden link

August 1, 2023 at 7:10 pm #14137307

Mohamed Sayed

Hi there,
Thanks for contacting WPML support.

- I couldn't check the site due to the GEO Blocking, could you please unlock Egypt or whitelist my IP Address?

My IP Address is: 102.45.200.141

- I would also need to request temporary access (WP-Admin) so I can investigate this issue further.
– preferably to a test site where the problem has been replicated if possible –

Your next answer will be private, which means only you and I have access to it.

❌ Please backup your database and website before providing us with access details ❌

If you don't see the form below, please don't add your credentials as they will be publicly exposed:
hidden link

Privacy and Security when Providing Debug Information for Support:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Kind regards,
Mohamed

August 3, 2023 at 1:46 pm #14150063

Mohamed Sayed

Hi,

I'm still not able to access the site even after using a VPN, also my colleagues can't access the site from different locations.

Could you please check again the GEO location blocking settings and make sure to whitelist the following?

IP address: 41.47.240.113
Country: Egypt

If that's not possible, kindly create a copy of your site and provide a link to download it. You can use the Duplicator plugin (https://wordpress.org/plugins/duplicator/)

The plugin will create a package file that you can download then upload again to Google Drive or Dropbox and share the download link in the next reply which I have marked as private. Then I’ll escalate this issue to our developers for further investigation.

Please check here for more details: https://wpml.org/faq/provide-supporters-copy-site/

Thanks for your cooperation.

August 3, 2023 at 1:52 pm #14150093

estefaniaM-2

Please could you try now and let me know if you are able to access

August 3, 2023 at 1:55 pm #14150095

Mohamed Sayed

Thanks, I can access it now.

I will check and update you soon.

August 3, 2023 at 2:03 pm #14150145

estefaniaM-2

If you have any questions or need any more information about the issue then please let me know.

August 3, 2023 at 5:31 pm #14151221

Mohamed Sayed

Hi,

The string "Cook Mode" needs to be translated in the Spanish template, not String Translation. Please go to WP Recipe Maker > Settings > Template editor > Click Open the Template Editor > Click "Recipe Templates" > Select "My Chic Spanish

Then you can add the Spanish string and save the template (Please check the attached pictures).

The other strings are added inside the Nutrition Label but it doesn't work the same way and I couldn't find any clues about it.

I have created this clean sandbox setup on our servers here:
hidden link
(one click login)

I would need you to please set up WPML + the WPML add-ons as you have them on your site (they are already installed) and to also install the WP Recipe Maker plugin and try to recreate the issue of the Nutrition Label.

Please don't install anything else like plugins that are not necessary, on a clean sandbox we try to use just the WPML plugins and the plugin/theme that's part of the issue.

If the issue is going to take place on this clean setup on our servers too, then I can forward this to our compatibility department.

Please let me know how that goes and what you are able to find.

Screenshot_87.png
Screenshot_86.png
Screenshot_85.png
Screenshot_84.png
August 4, 2023 at 5:53 am #14152787

estefaniaM-2

Hi Mohamed,

Regarding the below request, please could you clarify if you want me to install the wp recipe maker plugin on the sandbox? I have a single website WP recipe maker licence, so I am wondering if I install it on the sandbox will it impact my production site as it is already using the licence key?

I would need you to please set up WPML + the WPML add-ons as you have them on your site (they are already installed) and to also install the WP Recipe Maker plugin and try to recreate the issue of the Nutrition Label.

August 4, 2023 at 2:28 pm #14155455

Mohamed Sayed

Hi,

Yes, I mean to install the WP Recipe Maker plugin on the sandbox site, but I'm not sure if this can work if you have a single website license.

Could you please create a copy of your site and provide a link to download it? You can use the Duplicator plugin (https://wordpress.org/plugins/duplicator/)

I've marked the following reply as private so you can share the download link.

Please check here for more details: https://wpml.org/faq/provide-supporters-copy-site/

August 7, 2023 at 4:17 am #14160923

estefaniaM-2

Hello, I am trying to create a staging site for this purpose, I do not want to install a plugin if it can be avoided, I just need some time to get the staging setup correctly.

August 7, 2023 at 7:52 am #14161649

Mohamed Sayed

Take your time, I will be waiting for the staging.

I've also enabled the private reply so you can share the staging login details once it's ready.

August 13, 2023 at 8:50 am #14192685

Mohamed Sayed

Hi,

This might be a compatibility issue, I've escalated the ticket to our 2nd tier support team for further investigation and will update you once I get their reply.

Kind regards.

August 14, 2023 at 9:56 pm #14200051

Mohamed Sayed

Hi,
Thanks for your patience!

This is a compatibility issue with the WP Recipe Maker plugin. Please create a full backup of the database and website then try the following steps:

1. Edit the file: wp-content/plugins/wp-recipe-maker-premium/includes/public/class-wprmp-nutrition-label-layout.php
2. Find the following code (line 84):

update_option( 'wprmp_nutrition_label_layout', $layout, false );

3. Change it to:

update_option( 'wprmp_nutrition_label_layout', $layout, true );

4. Go to your database manager (Like phpMyAdmin)
5. Go to the SQL tab and run the following query:

UPDATE `wp_options` SET
`autoload` = 'yes'
WHERE `option_name` = 'wprmp_nutrition_label_layout';

6. Go to WPML > String Translation
7. Click the "Translate texts in admin screens" link at the bottom of the page
8- Search for the strings and add them to the string translation (they should be with the domain "wprmp_nutrition_label_layout")
9- Go back to the String Translation page and translate them

Let us know your feedback please.

Screenshot_118.png
Screenshot_116.png
Screenshot_117.png