vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   A little RTL optimization question (https://vborg.vbsupport.ru/showthread.php?t=231997)

derfelix 01-03-2010 04:04 AM

A little RTL optimization question
 
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
Quote:

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..


All times are GMT. The time now is 07:47 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01010 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete