Task #84598
closed
- Related to Feature #84581: Create a backend module to create site configurations added
Current patch implements:
"auto" is not useful and very difficult to implement see my post at Slack:
today i had a look at the question of the `dir` attribute (adding the value `auto` to SiteLanguage). if you use unicode the `dir` attribute has no effect at all, the direction is taken from the unicode definition and you can set what ever you want the direction will always be correct displayed. so in most cases we do not need the direction attribute for the html tag. i also tested some mixed texts at the be editor and the displaying at the fe and everything works fine using UTF8 encoding. my conclusion is we do not need this auto detection function at all. here is an example: 'I like writing from the right to the left' will be translated 'أحب الكتابة من اليمين إلى اليسار' auto switched to rtl because of unicode. it's possible that `dir` will have an effect using an iso charset but i stopped my tests at this point. the next problem i have encountered is that you can't really map a language to a direction, the directions are mapped to scripts at the unicode definitions and scripts are mapped to countries. but as there is sometimes more than one script defined by country you can not make a valid mapping from the locale to the direction (sources: https://wikipedia.org/, http://cldr.unicode.org/index/downloads, http://wiki.selfhtml.org/wiki/HTML/Universalattribute#dir and others)
- Status changed from New to Closed
the idea sounded good on paper but is in fact not feasible.
Also available in: Atom
PDF