• I would like to know if it is possible to have a two different languages ( 1- English, left to right and 2- Dhivehi / Thaana (Maldives local language) which is a Right to left language). How to add the local language font to work with back end ‘Wysiwyg’ editor when its a page from right to left is selected or created ?

    Thank you in advance

Viewing 8 replies - 1 through 8 (of 8 total)
  • As I know, rtl has to be supported by the theme.
    When I develop a theme I always add rtl support to the theme. Because, the theme controls the output, not Polylang.

    Thread Starter moosaace

    (@moosaace)

    #The Coder , i understand what you said. How about when you have pages with two different types of languages and when you open the one with English language it’s totally fine but when you i open a page with my local language the ‘Wysiwyg’ editor still haves English language in it. So how can i Make it change accordingly?

    Thank you in advance.
    Moosa

    You are talking about the back end, not the fron tend, right?!
    Polylang is for translating content, not for the admin page.
    For the admin page you have to follow the guide how to set up WordPress language.

    Thread Starter moosaace

    (@moosaace)

    I mean in polylang if you make pages in two different languages it should change the font and language accordingly inside the ‘Wysiwyg’ editor of respective pages ? One page with left to right in english and the other page right to left in my local language. Using polylang i can create two types of pages ( right to left and left to right with each country flag) as default english text is available in both language type pages. I want English to stay the way as it is but when i open a page in my local language from right to left i want it to have my local language font in the back end and front end.

    Plugin Author Chouby

    (@chouby)

    Hi,

    This is indeed a theme related issue. For both frontend and backend. This is handled in stylesheets rtl.css for the frontend and editor-style-rtl.css for the editor. See https://codex.www.ads-software.com/Editor_Style
    And how it is handled in Twenty Eleven: https://github.com/WordPress/WordPress/blob/4.9.6/wp-content/themes/twentyeleven/rtl.css and https://github.com/WordPress/WordPress/blob/4.9.6/wp-content/themes/twentyeleven/editor-style-rtl.css

    Thread Starter moosaace

    (@moosaace)

    Thank you, 1 for front end and 1 for back end style sheet. I understood, but how do it switch places ? I mean how does the rtl back end and front end style sheets get switch inside the editor or front end ? Example: in the back end when i open a rtl page created using polylang how can polylang or the theme know to switch the style sheet and vise versa ? if you cannot help in this last question please direct me to a side where i can clear this information.

    Thank you in Advance.

    Plugin Author Chouby

    (@chouby)

    This is all handled automatically by WordPress based on the language selected by Polylang.

    Note: I wondered why the editor-style-rtl.css was not used anymore in recent Twenty themes. This comment explains why: https://github.com/WordPress/WordPress/blob/4.9.6/wp-includes/theme.php#L1825-L1826

    Thread Starter moosaace

    (@moosaace)

    Thank you @chouby and @codestylist for your help.
    Appreciate it ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Rtl language and font’ is closed to new replies.