Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are using the LH Archived Post Post Status plugin to archive pages and want to translate a custom archiving message set in the plugin's settings page, but it does not appear in the string translations.
Solution:
First, ensure you have deleted any existing translations of the default message in WPML > String Translation. Then, scan the LH Archived Post Status plugin for strings by navigating to WPML > Plugin and Theme localization. If the custom message still doesn't appear, use the 'Translate texts from admin screens' option in WPML > String Translation.
If the message is still not available for translation, adjust the translation preferences by going to WPML > Settings and enabling 'Show System Field' under 'Custom Field Translation'. Search for 'post_status_message' and set its translation preference to 'Translate'. After saving the message again in the settings, switch to another language using the language switcher on the topbar, add the message manually for that language, and save the changes.
For detailed guidance, please refer to this guide.

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 for further assistance at WPML support forum.

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.

This topic contains 3 replies, has 3 voices.

Last updated by Prosenjit Barman 5 months, 1 week ago.

Assisted by: Prosenjit Barman.

Author Posts
June 17, 2024 at 12:52 pm #15745481

Mary

<b>Background of the issue: </b>
I'm using the plugin LH Archived Post Status to archive my pages (https://wordpress.org/plugins/lh-archived-post-status/). This plugin offers a default archiving message that I can translate within WPML. But if you want more control over that message (define the message, add a class), you can set it in their settings page (hidden link).

<b>Symptoms: </b>
This field does not appear in the string translations. I contacted the plugin author and they replied this: "the default message is translatable , but once it is set [in their settings page] in is not translatable. I’m not even sure how it could be btw as the message could be anything". My experience of WPML is that the fact that the text could be anything shouldn't be a problem in itself.

<b>Questions: </b>
Is there a way to translate the custom archiving message set in the LH Archived Post Status plugin settings page?
Can the custom message be integrated into the string translations?

June 17, 2024 at 6:45 pm #15746736

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with first debugging steps or if I can perhaps help with the issue quickly.

After updating the message, please follow these steps:
1. Go to WPML > String Translation and delete the default message translation (in case it is there. If not, go to step #2);
2. Go to WPML > Plugin and Theme localization and scan the LH Archived Post Status plugin;
3. Go to WPML > String Translation and search for the default text. In case it doens't show up, please click on "Translate texts from admin screens";
4. Translate the message as you wish;

If that does not help, one of my colleagues will soon come to continue support.

June 18, 2024 at 4:16 pm #15750089

Mary

Hello,

Thanks, but I'm not trying to translate the default message - this I know how to do. I'm trying to translate a custom one I set in the plugin's settings. Maybe with XML?

June 19, 2024 at 8:18 am #15753894

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
I hope you're doing well.

I have taken over this ticket and would be happy to assist you further in this matter.

Since you've added the text from the plugin's "settings" page, it should be available in the admin screen for registration and translation. Could you please recheck this guide and confirm whether the text appears in the admin screen? If you find it, you'll need to select the strings and add them to String Translation for translation.

If you do not see that string, you can check by changing the translation preference for that field to "Translatable". Here are the steps:

- Please go to WPML > Settings and scroll to the 'Custom Field Translation'
- Click on the "Show System Field"
- In the search box within "Custom Field Translation" enter 'post_status_message'
- If this field appears in the result, change the translation preference for that field to 'Translate'
- Then from the settings page, save the message again.
- Switch to another language Using the language switcher on the topbar.
- Add the message manually for that language and save the changes.

Let me know how it goes. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

June 19, 2024 at 2:28 pm #15756411

Mary

Thank you, I thought I had done the admin screen thing, but maybe I didn't search properly. This time, I did find the string and added it to String Translation for translation. Thanks!