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.

This topic contains 3 replies, has 2 voices.

Last updated by Dražen 1 year, 2 months ago.

Assisted by: Dražen.

Author Posts
October 20, 2023 at 8:09 am #14621425

Atiq Rahman

Hi,

My footer menu link are Not changing when language is Arabic. (snapshot attached)

when i click to link it will land to English version link.

How can i fix it.

Thank you

Screenshot 2023-10-20 at 12.03.19 PM.png
October 23, 2023 at 7:45 am #14633567

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

1) In order to expedite handling your support requests, can you please share WPML support debug information from your site.

- To give debug information, login to your site and go to WPML → Support. From there click on the “debug information” link at the bottom of the page.
- Once on the “debug information” page, select the entire content of the text box and copy it.
- Now go back to our support forum, find debug information box and paste it.

More information on the link: https://wpml.org/faq/provide-debug-information-faster-support/

2) How are you adding these items and links to default language page?

If you are adding it and selecting and existing menu, then you need to go to AAppearance > Menus click on the plus or pencil icon and in 2nd language menu adjust your links and menut items manually:

- https://wpml.org/documentation/getting-started-guide/translating-menus/#option-2-translating-menus-manually

Let us know how it goes.

Regards,
Drazen

October 23, 2023 at 8:34 am #14634435

Atiq Rahman

Hi,

1. i have not seeing now debug box.

2. i have on footer manual link. code snapshot attached.

Thank you

Screenshot 2023-10-23 at 12.33.46 PM.png
October 23, 2023 at 11:17 am #14637535

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

for translating text coming from PHP templates, you should be using gettext calls and text-domain arguments and wrap the text or link you want to translate.

Please check our related documentation:

- https://wpml.org/documentation/support/enabling-text-translation-for-themes-not-compatible-with-wpml/

For example:

$url = __( '<em><u>hidden link</u></em>', 'my-domain' );
 
printf(
    esc_html__( 'By clicking on "Create an account" below, you are agreeing to the %sTerms of service%s', 'my-domain' ),
    '<a href="' . $url . '">',
    '</a>'
);

After that make sure you to scan files from WPML → Theme and plugins localization and translate strings from WPML > String translation.

- https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#scan-the-theme-or-plugin

In this case, I think it would be easier to use the WP menu and output regular menus and their translation. If not sure how, I advise maybe hiring a contractor or freelancer.

Hope this helps.

Regards,
Drazen