MyBB Community Forums

Full Version: How Can i translate
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can i translate the digit(1.2.3.4.5.6.7.8.9.0) on my bb. I want translate the digit in bangla. Plse
And another question how can override the $ function?
You mean you want to translate the numbers 0 - 9? I think that will hard, considering most of this data will be called from the database and ran through PHP functions.

What do you mean overriding the $ function?... Javascript/Prototype?
(2009-01-21, 08:55 AM)Tom.M Wrote: [ -> ]You mean you want to translate the numbers 0 - 9? I think that will hard, considering most of this data will be called from the database and ran through PHP functions.

Why you and all programmer dont give any function to translate them? All language does not have same digit . Every Language have there own digit.

As i know midi wiki have support localization digit support

Quote:What do you mean overriding the $ function?... Javascript/Prototype?

I want to use jQuary file with mybb?
Quote:Why you and all programmer dont give any function to translate them? All language does not have same digit . Every Language have there own digit.

i have to disagree with you, what you said is particularly dumb, almost all languages use regular digits
MyBB needs Prototype to function correctly, so it's best not to override the $ function it uses. Instead, there are other methods - see http://docs.jquery.com/Using_jQuery_with..._Libraries

MyBB is a lightweight forum system - adding in localization for digits is going a little *too* far IMO, and I'm pretty sure plenty of people will disagree with your suggestion. Although, suggestions are being taken for MyBB 2.0, so you could always suggest your idea to be included. You should post it here: http://community.mybboard.net/forum-7.html
(2009-01-21, 02:09 PM)Tom.M Wrote: [ -> ]MyBB needs Prototype to function correctly, so it's best not to override the $ function it uses. Instead, there are other methods - see http://docs.jquery.com/Using_jQuery_with..._Libraries

What is the default way for mybb for using jQuary with mybb
There is no "default" way... it is completely up to you how you do it. The best way, and the way I have it working, is:

 jQuery.noConflict();
     
     // Use jQuery via jQuery(...)
     jQuery(document).ready(function(){
       jQuery("div").hide();
     });

... which is stated on that website I gave you. You'll need to put that into your jQuery file, or wherever you are putting your scripting.