• Resolved moxenata

    (@moxenata)


    I just need rtl version I translated my own forum to Persian because I cant understand the f#@king system of wp translation and I simply can translate php files instead of messing with de bi%ches but making it rtl is another problem, im not good in css can any body help all rtl users?

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Asgaros

    (@asgaros)

    Hello @moxenata

    If you have trouble with translations I can suggest you the following WordPress extension:
    https://wordpress.org/plugins/loco-translate/

    It can be used for easy translation of plugins without touching the files directly.

    Regarding RTL: I dont speak and also dont have any experience with any rtl-language so I am not exactly sure on how it has to look and how it has to work. If you can give me some detailled instructions on how to improve the user-experience for rtl-languages I can try to implement it in a future release.

    Thread Starter moxenata

    (@moxenata)

    hey, thanks for reply
    and about rtl
    this is a ltr
    name family addres.
    and this one is a rtl
    .address family name
    and the sentence should be on right.
    this site have no rtl too.
    this is what I have http://studentoos.ir/
    and this is what I need http://direct3d.ir/

    Plugin Author Asgaros

    (@asgaros)

    Hello @moxenata

    Thank you for your feedback.

    Please add the following css-code to Forum -> Appearance -> Custom CSS:

    #af-wrapper .forum-name, #af-wrapper .topic-name {
    text-align: right !important;
    }
    #af-wrapper .forum-poster, #af-wrapper .topic-poster {
    text-align: right !important;
    }

    After saving, please clear your cache and reload the site by pressing CTRL + F5 in your browser. Is this looking better? If so, please let me know so that I can add it in a future update.

    • This reply was modified 6 years, 5 months ago by Asgaros.
    Thread Starter moxenata

    (@moxenata)

    hi Asgaros
    I inserted css in custom.css of plugin but i cant find out if something has been changed

    as a note this is catrgory structure
    <div class=”title-element” id=”forum-category-6″>
    بحث آزاد(a)(category name)
    <span class=”last-post-headline”>
    آخرین پست(b)(last post)
    </span>
    </div>
    to show
    ـــآخرین پست ـــــــــــــبحث آزادـــــ
    ….a……….b…..
    and it should be
    ــــبحث آزادــــــــــــ آخرین پست ـــــــــــ
    …b………..a……

    i tested
    #title-element
    {
    direction:rtl;
    }
    in custom css it did not work
    and this too
    #title-element
    {
    direction:rtl;
    text-align: right !important;
    }

    i think if i found and replace them (cat-name) and (last-post) in php it will work on view but it’s not right way

    for indicate to the importans of rtl, with no rtl you cant have any arab, persian and (watch for ###-kidding) Jews forum by asgaros arabic, persian and Hebrew are rtl languages.

    • This reply was modified 6 years, 5 months ago by moxenata.
    Plugin Author Asgaros

    (@asgaros)

    Hello @moxenata

    You directly have to add the code to Forum -> Appearance -> Custom CSS

    Dont add it to the custom.css file because the forum will re-generate it again otherwise.

    After applying the changes ensure that you clear your browser-cache and server-cache (if you use any).

    Thread Starter moxenata

    (@moxenata)

    hey thanks, it’s much more better, but there is still some problems
    i will list them soon

    Thread Starter moxenata

    (@moxenata)

    Hi, this part
    echo ‘<div class=”title-element” id=”forum-category-‘.$category->term_id.'”>’;
    echo $category->name;
    echo ‘<span class=”last-post-headline”>’.__(‘Last post’, ‘asgaros-forum’).'</span>’;
    echo ‘</div>’;
    in overview.php

    in mobile view it’s ok and views cat-name but in desktop view cat-name and “last posts” should be replaced. if i do it in php in mobile view probably i’ll get “last post” instead of name of category, probably.

    Plugin Author Asgaros

    (@asgaros)

    Hello again @moxenata

    Thank you for your feedback. For the additional adjustments please add the following code:

    #af-wrapper .title-element {
        padding: 0px 20px !important;
    }
    #af-wrapper .last-post-headline {
        float: left !important;
    }

    Please let me know if this works fine.

    Thread Starter moxenata

    (@moxenata)

    hey thanks, it is ok. compeletly fixed.

    for next step :
    <div id=”forum-header”>

    my forum now is
    exit|subscriptions|members|profile|forum [search bar]
    it could be more better if was
    [search bar] exit|subscriptions|members|profile|forum

    and my theme has no custom.css i’m inserting your css in my rtl.css of my theme. it’s probably same.

    Thread Starter moxenata

    (@moxenata)

    and “read-unread” i tried
    #read-unread {direction:rtl;}
    #read-unread {text-align:right;}
    #read-unread {text-align:right;important;}
    and the top lines with
    #af-wrapper #read-unread
    #af-wrapper .read-unread
    no one worked.

    Thread Starter moxenata

    (@moxenata)

    “read-unread” fixed by display:block; –> display:flex;

    Thread Starter moxenata

    (@moxenata)

    hey and this is persian mo po files. can you put it on your next release?
    https://mega.nz/#!1rIRmSDY!PugdV4cC1x4855ZM_TutHJsRs9TYEevL_Ehm5NtRVmc

    Thread Starter moxenata

    (@moxenata)

    and how i can change language of forum to persian, in admin panel i can see my translation of file addressed above but in forum page it’s still english and i have to use my hard code translated php files

    Thread Starter moxenata

    (@moxenata)

    and about <div id=”forum-header”> direction will fix by display:flex; but there will be no space between search bar and nav-bar

    • This reply was modified 6 years, 5 months ago by moxenata.
    Plugin Author Asgaros

    (@asgaros)

    Thanks for your help @moxenata

    I will try to implement your rtl-improvements in the upcoming v1.13.1 release.

    Asgaros Forum automatically uses the language of your WordPress-translation. Unfortunately there is no persian translation available now:
    https://translate.wordpress.org/projects/wp-plugins/asgaros-forum

    If you want, you can suggest new translations via the linked website so a translation editor can approve them.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘RTL Version’ is closed to new replies.