• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Won't fix  Issue with right-to-left language display in Recent Activity

Saeed

Well-known member
#1
Just noticed this in the Recent Activity.

Bug.png

The 4 should be with "minutes ago".

This may be covered when you guys support RTL languages, but I thought I'd bring it up anyway.
 

Mike

XenForo developer
Staff member
#2
Unfortunately, this is always a challenge. It gets into the "affinity" a character has for LTR or RTL text. For example, Latin characters are LTR; Arabic characters are RTL. However, numbers will attach in either way based on surroundings and markup. It's seriously complex. We could potentially add lrm/rlm markers, but I'm not sure how we'd get away with that as we have no way to know/guarantee what direction is coming. So I'm going to call this a won't fix - in a full RTL translation with RTL titles, it should be ok.
 

ibnesayeed

Well-known member
#4
Mixed phrases with LTR and RTL text really get annoyed when there are numbers or special symbols on borders. It become almost unreadable when this happen in multi-line text.

Using unicode-bidi CSS property might help. :)

Viewing thread صنف نازک 4 minutes ago
 

Saeed

Well-known member
#5
Mixed phrases with LTR and RTL text really get annoyed when there are numbers or special symbols on borders. It become almost unreadable when this happen in multi-line text.

Using unicode-bidi CSS property might help. :)
I know! I tried posting in the bug report how the text should actually read and couldn't get it the right way, no matter how you try.

Can't say I understand the bit about the bidi CSS property, but it would be really great if this could be sorted. :)
 

ibnesayeed

Well-known member
#7
In Google+, they did really clever job. Since, they have a huge language model, hence, they recognize the language of the posted phrase and if it falls under RTL languages then they apply CSS properties accordingly. :)
 

Saeed

Well-known member
#10
What if we change the phrase a bit, e.g.

Seen 4 minutes ago, viewing thread صنف نازک

or

Viewing thread صنف نازک
4 minutes ago