HTML element is missing dir attribute for RTL support
- Status
- Closed
- Subject
- HTML element is missing dir attribute for RTL support
- Version
- 27.x
29.x
30.x
31.x (future, currently trunk) - Category
- Error
- Usability
- Feature
- Others
- Resolution status
- New
- Submitted by
- Gary Cunningham-Lee
- Lastmod by
- Gary Cunningham-Lee
- Rating
- Description
To test RTL support in Tiki currently, I turned on the necessary i18n preferences and specified a right-to-left language, Urdu, and created a page written in Urdu. But the page continued to display left-to-right. According to https://getbootstrap.com/docs/5.3/getting-started/rtl/#required-html
, dir="rtl"needs to be set on thehtmlelement. So even after turning on all the i18n settings that seem to be necessary and even specifying an RTL language (Urdu) as the site default, the HTML element still didn't get thedirattribute.When I add
dir="rtl"to thehtmlelement manually with the browser's dev tools editor, then the page displays correctly for the RTL language (text goes right to left, left column goes to right side, etc.)I see code at the top of each
layout_view.tplfile to add thedir="rtl"but there must be a bug preventing it from not functioning here.I think once this HTML attribute issue is fixed, then we can document the recommended Bootstrap method to implement LTR and this feature will work well for interested users.
- Solution
- The dir flag is now added and working correctly, thanks.
- Workaround
- Importance
- 8
- Easy to solve?
- 7
- Priority
- 56
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 8832
- Created
- Thursday 02 October, 2025 05:57:05 UTC
by Gary Cunningham-Lee - LastModif
- Tuesday 31 March, 2026 16:13:42 UTC