Moeditor icon indicating copy to clipboard operation
Moeditor copied to clipboard

Hebrew Translation & Support

Open tmr232 opened this issue 7 years ago • 6 comments

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).

tmr232 avatar Aug 31 '16 10:08 tmr232

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.

xsoh avatar Sep 01 '16 06:09 xsoh

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.

tmr232 avatar Sep 01 '16 10:09 tmr232

What's the problem?

I can't understand this language, is that aligned to the wrong position or rendered reversed?

Menci avatar Sep 12 '16 10:09 Menci

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: image

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.

tmr232 avatar Sep 12 '16 11:09 tmr232

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?

lawgsy avatar Sep 12 '16 16:09 lawgsy

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.

tmr232 avatar Sep 12 '16 18:09 tmr232