[wp-trac] [WordPress Trac] #55081: WordPress wp_get_document_title() does not do RTL.
WordPress Trac
noreply at wordpress.org
Sat Feb 5 16:54:59 UTC 2022
#55081: WordPress wp_get_document_title() does not do RTL.
--------------------------+------------------------------
Reporter: jsmoriss | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: | Focuses: rtl
--------------------------+------------------------------
Comment (by jsmoriss):
Replying to [comment:5 swissspidy]:
> > So, in an RTL language, as the current WordPress
wp_get_document_title() function operates, the post name will be left and
the site name on the right, regardless of LTR/RTL.
>
> What Sergey mentioned above is that once the document title is displayed
in the browser, the text will be displayed correctly because the browser
will change text direction accordingly for RTL languages. Because of that
there would be no need to do any array reverse or similar in PHP.
So you're saying at all text is left-to-right, even if it's not, and that
it's only when being displayed that the browser inverts all text in all
strings for a right-to-left language, is that correct? ie. So for PHP, all
text strings are left-to-right, regardless of the character code being
used - the individual characters may get translated, but not the order of
the characters, correct?
js.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55081#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list