Sprintf problem in bangla unicode

Having a question about translating phpBB3? Want to discuss and collaborate with people currently translating phpBB3? Here would be the correct place to do so.
Scam Warning
User avatar
manchumahara
Registered User
Posts: 65
Joined: Sun Jul 15, 2007 2:07 pm
Location: Bangladesh

Sprintf problem in bangla unicode

Post by manchumahara »

hi,
I am translating phpbb3 in bangla unicode i.e. Bengali language.I am facing a probelm about sprintf function.
In index.php line 102 i have changed the line as

Code: Select all

'TOTAL_POSTS'	=> sprintf($user->lang[$l_total_post_s],(integer)$user->number_bangla($total_posts)),
here $user->lang[$l_total_post_s] is like as

Code: Select all

	'TOTAL_TOPICS_OTHER'=>'Total topics <strong>%d</strong>',
here number_bangla() is a function that take any variable and make it in bengli unicode chars.but sprintf can not format the unicode number.then i used the type cast like bellow

Code: Select all

(integer)$user->number_bangla($total_posts).
but still it shows only zero as total post number.my function number_bangla() is right and i am sure. i have used it in another position in phpbb3 where sprintf is not used. any sol.thanx in advanced.

Manchumahara,
Bangladesh
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: Sprintf problem in bangla unicode

Post by ameeck »

I don't know bangladeshi, but I suppose you want to use non-arabic numbers, that is not possible, as the integer data type doesn't know about this, you would have problems in more than a lot places.

Chinese and arabic translations also use western arabic numbers, is it a big problem for you?

btw. in a translation, you have to work only with the files in language/langcode/
mdmahedihasan
Registered User
Posts: 3
Joined: Wed Jul 07, 2010 4:47 pm

I need bengali language pack

Post by mdmahedihasan »

manchumahara wrote:hi,
I am translating phpbb3 in bangla unicode i.e. Bengali language.........
................................................................
Manchumahara,
Bangladesh
Have your translation completed? :roll:
ভাই, আপনি কি এটা অনলাইনে পাবলিশ করেছেন?
আমার খুব দরকার...। :|

Return to “[3.0.x] Translations”