PDA

View Full Version : A little RTL optimization question


derfelix
01-03-2010, 04:04 AM
Hi everybody
I am just trying to optimize a template to also work with RTL languages..
I have a simple question...
In that template some extra information in () parenthesis..
Example:
Username (5 items)

When i switch to RTL language.. i get
(Username (5 items

It seems to be a vbulletin problem... if you go to vb.com and switch to their RTL test language http://www.vbulletin.com/forum/?langid=3
They have the same problem in the language chooser.. when you look at English (US) it is (English (US
BUT
In the wgo section, the birthdays are displayed correctly (age) Username
That is what I want...
But i cant figure out how they do it.. :confused:
in sourcecode it looks like this: username ‏age))

I hope my explanation is somewhat understandable..
Thx in advance for any help

F.

winstone
01-03-2010, 11:16 AM
I think it happens when the parenthesis is at the end of the sentence, try adding some space or some invisible word to the end, e.g. {Username (5 items)<b class="hidden">s</b>}

derfelix
01-03-2010, 11:46 AM
yes.. didnt try with the hidden.. but added a word.. and it fixes it.. !!! thank you very much!!!
F.

winstone
01-03-2010, 12:10 PM
glad it did the trick :)

derfelix
01-09-2010, 03:01 AM
[update]
Well it works when I add some extra text...
BUT
it doesnt work at the end of line even if i add Username (5 items)<b class="hidden">s</b>
I tried to find out how they did it on forumhome..
(for birthdays or viewing)
I allways get the wrong brackets (or one of them wrong)

F.
If anyone has an idea.. i would be very happy..