Skip Navigation

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

Problem:
The client needed assistance with aligning text to the right for the Dhivehi language, which is read from right to left. They also encountered issues with phone numbers, email addresses, and punctuation marks appearing reversed in the translation editor.
Solution:
We recommended checking the theme's CSS rules for RTL (right-to-left) content display, as WPML does not control the RTL layout. For custom languages, we advised following this guide to add RTL support: https://wpml.org/documentation/getting-started-guide/language-setup/editing-wpmls-languages-table/#adding-rtl-right-to-left-support-to-a-custom-language
If the issue persists, we suggested using custom CSS with the ":lang()" selector to set the text direction to RTL. For more details, we provided external documentation links:

For the translation editor, we instructed the client to:
- Go to WPML > Languages > Edit Languages
- Map the language to the closest RTL language
- Save the changes

Please note that the solution provided might be outdated or not applicable to your case. If the issue persists, we highly 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 you need further assistance, please open a new support ticket at our 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 1 reply, has 2 voices.

Last updated by Mohamed Sayed 9 months, 1 week ago.

Assisted by: Mohamed Sayed.

Author Posts
February 14, 2024 at 2:47 am #15300058

danielS-307

As the Dhivehi language is read from right to left, may I know if it is possible to shift the alignment to the right?

Additionally, the phone numbers and mail address are appearing as reversed/the sentence structure changes once the Dhivehi translation is entered into the translation boxes. The same thing happens to full stops for the last sentence in a paragraph- the full stop appears at the start of the last line, instead at the end of it.

I have attached screenshots for what it looks like. And an example of what it is supposed to look like.

Sentence Structure Issues.png
Number Reversal.png
Fullstop Issues.png
Alignment.png
Alignment Sample.png
February 14, 2024 at 10:29 am #15301275

Mohamed Sayed

Hi Daniel,
Thanks for contacting WPML support.

WPML doesn’t control the RTL layout of your theme. The display of right-to-left content is controlled by the CSS rules of your theme. Since you're using a custom language, please follow this guide to add the RTL support for the custom language: https://wpml.org/documentation/getting-started-guide/language-setup/editing-wpmls-languages-table/#adding-rtl-right-to-left-support-to-a-custom-language

If that didn't help to show the correct direction, then you can use custom CSS to target that specific language with the ":lang()" selector and set it to RTL.

Please check the following external documentation for more details:
- hidden link
- hidden link

Regarding the text direction in the translation editor, please follow these steps after creating a full backup:

- Go to WPML > Languages > Edit Languages
- Map the language to the closest RTL language (Please check the attached screenshot)
- Save the changes

Let me know please if that helps.

Kind regards,
Mohamed

13436509-Screenshot_86.png