Skip Navigation

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

Problem:
The client is trying to change the footer to Arabic LTR while keeping the English interface as it is, but is facing difficulties.

Solution:
To translate the footer widgets and maintain the LTR layout in Arabic:
1. Navigate to WPML >> String Translation page.
2. Click on the Translate texts in admin screens ยป link.
3. Search for the required string.
4. Select the string and click on Add to String Translation.
5. Return to the String Translation page to add the translation.
For more details, refer to the documentation on translating texts in admin screens.

If the translated text doesn't display on the frontend, add the following Custom XML Configuration to WPML >> Settings:

<wpml-config>
  <admin-texts>
    <key name="widget_stm_text">
        </key><key name="*">
            </key><key name="text"></key>
            <key name="title"></key>
        
    
    <key name="widget_contacts">
        </key><key name="*">
            </key><key name="fax"></key>
            <key name="phone"></key>
            <key name="address"></key>
            <key name="title"></key>
        
    
  </admin-texts>
</wpml-config>

If the solution provided does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket.

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 5 replies, has 2 voices.

Last updated by Noman 1 year, 3 months ago.

Assisted by: Noman.

Author Posts
March 3, 2024 at 11:59 pm #15367356

muaadhA-3

Tell us what you are trying to do?
-I tried to change my footer page to Arabic LTR while keeping the English interface as it is, but I couldn't do it.
Is there any documentation that you are following?
-Yes, I follow your documentation, but I felt lost https://wpml.org/documentation/getting-started-guide/translating-widgets/#using-different-widgets-for-different-languages
Is there a similar example that we can see?
I will attach the screenshot of the issue
What is the link to your site?
hidden link

Screenshot 2024-03-04 025647.png
March 4, 2024 at 6:20 am #15367536

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. Iโ€™ll try my best to help you solve this issue.

- To translate the footer widgets, please follow the below steps:

1. Go to WPML >> String Translation page.
2. Scroll down and click on the Translate texts in admin screens ยป link at the bottom of the page.
3. Search for your required string.
4. Select the string.
5. Click on the Add to String Translation button.
6. Then click on "the ยซ Return to String Translation" link.
7. Add the translation from WPML >> String Translation page.

Here is a doc for more details about translating texts in admin screens: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

- To keep the Arabic footer in the LTR direction, please note that WPML provides a translation feature to your site, and the RTL/LTR layout is handled by your theme. However, you may keep the LTR layout of the footer using the CSS โ€œdirectionโ€ property and changing floats from right to left. Here is an example of CSS:

.footer, .header {
body.rtl #footer .cols_2 aside, 
body.rtl #footer .cols_3 aside, 
body.rtl #footer .cols_4 aside, 
body.rtl #footer .footer_widgets_wrapper .cols_1 aside {
	float: left !important; 
}

body.rtl #footer {
    direction: ltr !important;
}

body.rtl #footer .widget_contacts ul li .icon {
    float: left;
    margin-right: 23px;
	margin-left: 0;
}

}

And it will look as in the attached screenshot.

Here is a doc for more details:
hidden link

Please let me know if this resolves your issue or if you need further assistance with this issue.

Thank you

Arabic footer ltr layout.png
March 4, 2024 at 8:30 am #15367945

muaadhA-3

Thanks for your fast response...
Please note that I did all the steps you mentioned above, but nothing happened and the same result to my website footer.
Please check the attached screenshot which shows what I did exactly, and if there's some missing with the steps you mentioned before.
Even those (in yellow circles) in the footer, I don't know how they appeared.
Thank you,

Footer.png
String Translation.png
Admin Text Translate.png
March 4, 2024 at 9:31 am #15368404

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for trying the above steps. It appears that you prefer to maintain the English language text and layout for the Footer in the Arabic language. If this is the case then please follow the steps below:

1. Go to the WPML >> String Translation page.
2. Search for your footer string using English or Arabic text.
3. Enable the โ€œInclude translationsโ€ checkbox as you can see in the attached screenshot.
4. Press the โ€œSearchโ€ button.
5. Now, please click on the Plus/Pencil icon in front of each string to add/update the translation, and please make sure to keep the same translation as you have in the default language as you can see in the attached screenshot.

If your translated text doesnโ€™t display at frontend, please go to WPML >> Settings > Custom XML Configuration section and add the below XML:

<wpml-config>
  <admin-texts>
    <key name="widget_stm_text">
		<key name="*">
			<key name="text"/>
			<key name="title"/>
		</key>
    </key>
	<key name="widget_contacts">
		<key name="*">
			<key name="fax"/>
			<key name="phone"/>
			<key name="address"/>
			<key name="title"/>
		</key>
    </key>
  </admin-texts>
</wpml-config>

And please let me know the results.

Thank you

keep same translation in each language.png
March 4, 2024 at 10:21 am #15368664
muaadhA-3

Thanks again for your response.
The issue is solved and the translation is shown as in the screenshot, but still, there are some missing the list of the Arabic footer compared with the English (screenshot).
I searched for the titles missing (English and Arabic) in the String Translate and Admin Texts Translation, but not appear in the footer with their list, even after translating all widgets for the item "stm_lms_popular_courses" (Screenshot)!
Your assistance is appreciated in showing the titles and lists containing the missing items.
Thank you,

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

https://wpml.org/forums/topic/missing-the-list-of-the-arabic-footer/

Translate All Widget stm_lms_popular_courses.png
English Interface.png
Arabic Interface.png
March 4, 2024 at 1:00 pm #15369649

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Glad to hear the issue is solved now. Missing elements issues, are a different issue and will be handled separately as per our support policy. I've created a new ticket for this at: https://wpml.org/forums/topic/missing-the-list-of-the-arabic-footer/

If your original issue is solved, please mark this current ticket as resolved and we will continue to work on the new ticket.

Thank you for your cooperation

March 5, 2024 at 11:48 am #15374261

muaadhA-3

Thanks for your support and I have another issue opened since yesterday, but no response.