LibArea / libarea

A platform for collective blogs and social media platform, forum, question and answer service (Q&A). Catalog of sites (programs), site navigation and directories - facets. A community based on the PHP HLEB micro-framework.
https://libarea.ru
MIT License
94 stars 24 forks source link

RTL suppport #13

Closed jayabie closed 1 year ago

jayabie commented 2 years ago

Hell Team,

Does this software support RTL? if not, do you have any manual for development purposes. I'm interested in running a community based on this with RTL support.

evgip commented 2 years ago

Until now, there have been no requests to support this mode. Let me see what can be done, how to add it.

jayabie commented 2 years ago

I will work on the translation at my free time, once i finish i will pass all the files to your dev email. i just want to help with this.

jayabie commented 2 years ago

Hello @evgip ,

I thought would be better if i share the link with you instead of sending to email. please the link below for complete Arabic localization.

https://we.tl/t-Mhm386szxZ

the original language file is from September 24th, i don`t know if you guys added new words, but i will check a track them.

evgip commented 2 years ago

@jayabie

Thank you very much! I will check everything and the files will be included in the release. If there are any questions, I will contact you.

Thanks again!

jayabie commented 2 years ago

I did some test on a local environment i have mirrored the base CSS using the tool below and. added it to rtl.css The tool: https://rtlcss.com/playground/index.html#

Also, i added dir="rtl" to the line below. <html lang="ar" prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# profile: http://ogp.me/ns/profile#" dir="rtl">

the mirroring went fine, except the text box couldn`t sent to the right and still doesn't support the mixed characters.

i just did this as a test, i don't know if this will help you by some way as I'm not a coding person myself😉 .

a screenshot below.

image

evgip commented 2 years ago

@jayabie

We can add the following code to the editor to enable support:

<?php if (Translate::getLang() == 'ar') : ?>direction: 'rtl',<?php endif; ?>

I'll look into it. Haven't done it yet, but it's on the roadmap. I plan to support in a future release. Thank you.

jayabie commented 2 years ago

Hello @evgip,

This last commit you made above yesterday. https://github.com/LibArea/libarea/commit/f4cf0b884d5780c55eff2318f0ed1db2bf24604c

sent the website to the right and fixed the mixed characters, but the icons are nested with the text, and the user menu is going out of screen. see the below: image

Like yesterday i have mirrored the base CSS and added to rtl.css through my browser console. the icons nested with the text issue fixed, but the user menu is still going out generating a horizontal scroll bar. see the below picture after i mirrored the CSS code. image

I know you are not focusing on this at this time, but I'm writing this as a reference for the future when you decide to spare the time to achieve RTL. its just part of my test results.

evgip commented 2 years ago

@jayabie Thanks a lot. This is a big topic, it should definitely be dealt with in the future.

jayabie commented 2 years ago

Hello @evgip,

Is there any possibility i get the access to libarea/app/Languages/ar/ in this repository? after i re-installed the version where Arabic is implemented and found that some words need improvement, they are not wrong but as i said needs improvement. so, i believe having the access that that folder only will make it easy i improve these words without downloading the language folder every time.

if this possible and will not cause any security issues i appreciate if you grant me the access to ar folder only, i don`t need access to any other folders as I'm not a coder and i can't help with coding things.

Also, is not necessary i get the access to the folder in this repository if you have any other way i can improve the translation with less work, all is i need to make the localization better and better for this awesome software.

evgip commented 2 years ago

@jayabie

I wanted to contact you about RTL support. Is there any way to contact you other than GitHub?

My email address: budo@narod.ru Or Discord Chat: https://discord.gg/adJnPEGZZZ

P.S. I am currently preparing the localization in a separate repository on GitHub to facilitate the work.

jayabie commented 2 years ago

Hello @evgip,

Done, i have sent you an email and joined the channel on discord. you are free to contact me through anyone of these you want.