مُحمَّد الورياغلي
No need to thank me for anything mate.
Everything I do, I do so for the benefit of us all.
And I’m certainly not bothered by any delay in responses either.
However I’ll admit I’ve become unsure whether what I’m trying to communicate is actually be translated accurately, and vice versa.
Because I have attempted asking quite a few questions and yet haven’t received any answers.
I’m sure you can imagine what that’s like.
It just leaves me confused, I don’t know if it’s a translator issue or something else.
Primarily as the questions I’ve been asking specifically pertain to helping resolve the RTL bugs you’ve been having to deal with.
The challenge I’m faced with is that I still don’t know exactly what the bugs are.
I’ve found one minor bug with what appears to be a poll tag at the top of the post composer, but I don’t know what extension or other possible customization the tag might be from.
I am confident I could fix this minor bug, however it will be impossible unless I can first replicate the exact same set-up as foro.arsoporte in order to properly test any potential bug fixes. By ‘bug fixes’, I simply mean a few minor corrections to the poll tag element’s dimensions & positioning.
It would probably be much the with any other RTL layout bugs you might still be dealing with. Since the RTL layout is actually just theme styling. There’s no major coding involved at all, no php, no JavaScript, it’s literally all just CSS/LESS, and CSS/LESS only applies to the visual aspects of a website.
The RTL extension itself is just a bunch of LESS code, except it also requires JavaScript and php to actually function and apply the LESS RTL styling.
The major difference between the RTL extension and simply using CSS, is that by using the RTL extension also means being dependant upon the developers to a lot of basic issues that pop up, whereas with simple CSS we can quite easily figure out and fix any unexpected RTL layout issues ourselves.
Now regarding the CSS code snippet I shared earlier.
#app {
direction: rtl;
text-align: start;
unicode-bidi: bidi-override;
}
It definitely won’t fix any bugs.
It’s not actually meant to. It’s just the primary code for flipping the entire Flarum application layout from LTR to RTL.
I’ll break it down for you.
1. The
#app bit, is the primary Flarum container, which contains all the thematic components of the entire forum So the
#app is literally the main ‘Parent’ container for everything else.
Which is why when I realized this, I realized that by applying the RTL codes to this directly to the
#app container, the RTL codes would of course cascade down from this parent container to all of child elements, which is literally all elements of a Flarum site.
It does work too.
However it can’t override any styles that are directly applied to elements with CSS, LESS, or by any other methods, such as extensions.
The direction: rtl; bit: this switches the direction of how everything is presented, such as the direction of text.
The text-align: start; bit: this aligns all text to the right side instead of the left.
The unicode-bidi: bidi-override; bit: this flips the text from LTR to RTL, so Arabic, Hebrew, Persian , etc, don’t appear backwards