RTL Content Post's correct View

Snitz™ .NET Core
https://www.reddick.co.uk/mvc/Topic/Posts/6120?pagenum=1
Jul 05, 2025 21:49

Topic


sadra
RTL Content Post's correct View
May 21, 2020 07:11


This is without any class... Should be set by Default Lang Direction (this is wrong)
This is contain ltrf class - محتوی کلاس ltrf (this is correct)
This is contain rtlf class - محتوی کلاس rtlf (this is correct)
This is contain ltr class - محتوی کلاس ltr (this is correct)
This is contain rtl class - محتوی کلاس rtl I don't know correct or wrong

 

Replies ...


HuwR
5/21/2020 7:26:23 AM..ToLocalTime().ToForumDisplay()


could you please be a bit more descriptive in your explanations, just saying (this is wrong) is not very helpful, what is wrong and what should it be to be correct.
HuwR
5/21/2020 8:04:33 AM..ToLocalTime().ToForumDisplay()


OK, finally worked out what you meant, looks like an issue with the Persian check code, I'll take a look and update.
sadra
5/21/2020 11:06:44 AM..ToLocalTime().ToForumDisplay()


could you please be a bit more descriptive in your explanations, just saying (this is wrong) is not very helpful, what is wrong and what should it be to be correct.نوشته شده توسط HuwR


When i write a text without any setting (rtl, ltr, center tags or ...)... written text must set to right of content. Now, this is not, it will be on the left side by default
sadra
5/21/2020 11:22:19 AM..ToLocalTime().ToForumDisplay()


I think the problem is solved.... No Not Solved...
The behavior of text display is strange
--------------------------------------------------------------
The above texts in Persian Lang must be displayed on the right side of content
HuwR
5/21/2020 11:49:22 AM..ToLocalTime().ToForumDisplay()


When i write a text without any setting (rtl, ltr, center tags or ...)... written text must set to right of content. Now, this is not, it will be on the left side by default
That is because it is all English text so defaults back to ltr, if it was just Persian or a mix in the message then it would default to rtl
HuwR
5/21/2020 11:53:30 AM..ToLocalTime().ToForumDisplay()


mm, not working, I will remove the library that is attempting to detect if it contains Persian characters as it is obviously **** and doesn't work
HuwR
5/21/2020 11:57:10 AM..ToLocalTime().ToForumDisplay()


The above texts in Persian Lang must be displayed on the right side of content
??? That is what it does for me, they are all rtl when in persian
HuwR
5/21/2020 12:04:13 PM..ToLocalTime().ToForumDisplay()


when I view this topic in Persian, the topic and replies (except #21753) are rtl, reply #21753 is ltr because there are only English characters in that reply.
To check, if you type and execute the following in the debug console of your browser.
Code:
$(".message[dir=rtl]").attr("style","background-color:blue");
it will show you they are rtl.
sadra
5/21/2020 12:34:06 PM..ToLocalTime().ToForumDisplay()


تست فقط فارسی
sadra
5/21/2020 12:34:51 PM..ToLocalTime().ToForumDisplay()


English test
sadra
5/21/2020 12:35:30 PM..ToLocalTime().ToForumDisplay()


that right... very well
HuwR
5/21/2020 1:43:11 PM..ToLocalTime().ToForumDisplay()


seems it get's confused when there is punctuation in the post.
© 2016-2025 Snitz™ Forums MVC