You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you set a language other than english in a given page the html "lang" remains in english and no dir="rtl" is set if the language is RTL.
To Reproduce
Steps to reproduce the behavior:
Go to control panel and add arabic as possible language
Go to a page and edit
Go to page catagorisation and set language to arabic
add some arabic text
save
Notice the page language is set to en
Notice the arabic text goes the wrong direction
Expected behavior
In the case where its a single page in another language and not a full translated multilingual site (ie p.a.multilingual installed).
I would expect
the html lang to be set to the page language
the header and footer to be set to the default site language. since these are unlikely to be translated
the content area to be set to the page language and a dir attribute set to the direction of that language
The title set to default language since you would expect this to appear untranslated in listings and navigation etc
An alternative might be to give the ability of sections of blocks to be set to another language. I'm not sure thats the right way to go as I'm not sure how common it is to mix different languages on one page? Or maybe a container block to set a language in a specific context?
Screenshots
N/A
Software (please complete the following information):
I would like to work on this issue and contribute a fix. Could you please assign it to me? Let me know if there are any specific guidelines or requirements I should follow.
Describe the bug
If you set a language other than english in a given page the html
"lang"
remains in english and nodir="rtl"
is set if the language is RTL.To Reproduce
Steps to reproduce the behavior:
en
Expected behavior
In the case where its a single page in another language and not a full translated multilingual site (ie p.a.multilingual installed).
I would expect
An alternative might be to give the ability of sections of blocks to be set to another language. I'm not sure thats the right way to go as I'm not sure how common it is to mix different languages on one page? Or maybe a container block to set a language in a specific context?
Screenshots
N/A
Software (please complete the following information):
tested with demo.plone.org on 2025-03-20
Additional context
This is the code for the lang attribute is set but not sure yet why its not changing the language.
But I do think a more full solution is needed for the case where its not a full multilingual site.
I couldn't find any code that sets the text direction so I think this is completely missing for p.a.multilingual sites.
The text was updated successfully, but these errors were encountered: