I was checking my profile settings, looking for arabic language but found that its not implemented yet. if i install lemmy in future, do i need to install arabic to my instance separately or it will come our of the box?

fakefunk
link
fedilink
6urte bat

Looks like most strings are translated, but everything is still LTR…

@nutomic@lemmy.ml
link
fedilink
5urte bat

If you or anyone else knows how to implement RTL text, that would be very helpful. Neither of us speaks an RTL language, so for us its very hard to figure out (plus we have tons of other things to work on).

fakefunk
link
fedilink
4
edit-2
urte bat

I do not speak an RTL language either, but from what I know of I can give you an idea of what it takes to support it properly.

The start would be to add dir="rtl" to the html element and see what needs fixing: thankfully because you use flexbox in most places the layout naturally switches. The rest would be to use logical properties: text-align:start; instead of text-align:left, padding-inline-start instead of padding-left… Most of the CSS spatial properties have their logical sibling, even border-radius. If needed, you can also overwrite rules with html[dir="rtl"] {…}

Then, for user inputed text, each top level node (p, ul, ol, blockquote, h1…) should have the dir="auto" attribute, so it’s possible to have text in two directions, depending on the first word of the element. Simply doing <textarea dir="auto"> isn’t possible because then the first word decides of the text direction for the whole content. Supporting RTL fully also means supporting mixed directional text.

Dessalines
link
fedilink
4urte bat

If you wanted to take a look at lemmy-ui and add this, I’d be happy to help where I can.

fakefunk
link
fedilink
3
edit-2
urte bat

Will do! I will start with switching main.css to logical properties, and then have a look at the themes…

@jay91@lemmy.ml
creator
link
fedilink
1urte bat

Any update on the RTL?

@jay91@lemmy.ml
creator
link
fedilink
2urte bat

I’m not good with coding stuff, but if you need help with the language, i can do. like to correct and check the words, i’m a fluent arabic speaker, also i speak english. i have contributed in translating a lot of projects, wordpress projects and discourse. if you need my help, i’m open to volunteer.

@nutomic@lemmy.ml
link
fedilink
2urte bat

Thanks. Best follow the issue, then you will see if there are any updates. You can also help to translate Lemmy.

@jay91@lemmy.ml
creator
link
fedilink
2urte bat

I have checked the translations last night, also finished the unfinished ones. like 90% of the requirements has been completed.

@nutomic@lemmy.ml
link
fedilink
2urte bat

Thank you :)

@marmulak@lemmy.ml
banned
link
fedilink
3urte bat

نعم

Dessalines
link
fedilink
2urte bat

If your browser supports arabic, it should be good. Lemmy does have arabic added: https://weblate.yerbamate.ml/projects/lemmy/lemmy/ar/

@jay91@lemmy.ml
creator
link
fedilink
5urte bat

I’m sorry, i meant in the options. i want to change lemmy`s interface but no option for arabic !

Dessalines
link
fedilink
4urte bat

Hrm, I could’ve sworn we added it. Could you open up an issue in lemmy-ui for this? Thanks.

@jay91@lemmy.ml
creator
link
fedilink
5urte bat

Can you please confirm if here i can open the issue? https://github.com/LemmyNet/lemmy-ui/issues

Dessalines
link
fedilink
3urte bat

Yes that’s correct.

@jay91@lemmy.ml
creator
link
fedilink
1urte bat

sorry for the delay. i only had the time now to do it. please see the below link: https://github.com/LemmyNet/lemmy-ui/issues/406

also tell me if i did it correct, if not, let me know so i can add more details in case my ticket is not clear enough for your team.

Dessalines
link
fedilink
2urte bat

Yes you did, and arabic should be in the 0.12.2 release.

A loosely moderated place to ask open ended questions

If your post is

  1. Open ended
  2. Not offensive
  3. Not regarding lemmy support (c/lemmy_support)
  4. not ad nauseam inducing (please make sure its a question that would be new to most members)

it’s welcome here!

  • 0 users online
  • 11 users / day
  • 55 users / week
  • 151 users / month
  • 515 users / 6 months
  • 8 subscribers
  • 1.07K Posts
  • 11.4K Comments
  • Modlog