Moeditor
Moeditor copied to clipboard
Hebrew Translation & Support
I started working on a Hebrew translation. I already translated all the strings to Hebrew (see https://github.com/tmr232/Moeditor/tree/hebrew), but it is far from enough.
Since Hebrew is a RTL language, everything looks really bad in Hebrew. The text aligned to the wrong direction in both the Edit area and the menus.
I think it would be nice if we had RTL support (separate from language settings). This will benefit both my Hebrew translation, as well as future RTL translations (Arabic, I guess).
The problem actually with markdown itself. The markdown language doesn't have feature of annotating that the text is RTL or LRT such as the HTML does (i.e. dir='rtl'
).
Maybe as workaround using RTLtextarea will do a cool job.
Well, that is true if you want to mix RTL and LTR. But if all you want is one of them, it is easy enough to do. The editor's UI though is a different problem.
What's the problem?
I can't understand this language, is that aligned to the wrong position or rendered reversed?
There are two parts to the issue. For one, I would like to have an RTL option in the editor, to make it easier to write in Hebrew.
The other thing is the UI itself, which looks like this with Hebrew:
Due to wrong text direction, bidirectional text (including both English and Hebrew) looks off, with the words swapped around:
דיאגרמות UML
דיאגרמות UML
(The second one is the correct way.)
Additionally, the text in the settings dialog should be to the other side of the choosers.
I hope this explains it good enough.
It seems like there would need to be a seperate template for that, or is reordering the words of each string entirely sufficient? Would the last CSS text be correct if CSS appeared on the right instead of the left?
Should the labels/menu items be aligned to the right side as well?
I think a separate template would be the best solution. Just changing the text direction is better than current condition, but still looks very weird.
As for the menu, aligning to the right is not critical visually. In the settings window, however, putting the labels on the right side of the choosers would look a lot better.