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:
- https://developer.mozilla.org/en-US/docs/Web/CSS/:lang
- https://developer.mozilla.org/en-US/docs/Web/CSS/direction
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 9 months, 1 week ago.
Assisted by: Mohamed Sayed.