USER LANGUAGE PROBLEM

Having a question about translating phpBB 3.3? Want to discuss and collaborate with people currently translating phpBB 3.3? Here would be the correct place to do so.
Milunice259
Registered User
Posts: 69
Joined: Mon Apr 19, 2010 4:12 pm

USER LANGUAGE PROBLEM

Post by Milunice259 »

My board have 2 languages installed:British English (en) and Vietnamese (vi)
The vi (Vietnamese) language, I am making it by my-self because the one on phpbb database is not up to date.
I created new folder named “vi”, copied the original files, and translated it one by one followed the instruction from phpBB website.
When I was translating the common .php file, I did a test.
I changed the default language of my Board to Vietnamese. And changed my user language to British English.
Everything looks fine except all the language in the common.php file still in Vietnamese (Board default).
I checked around but can’t find anybody have the same error like me.
If anyone have known or experienced the problem, please help me!!!
User avatar
janus_zonstraal
Registered User
Posts: 6588
Joined: Sat Aug 30, 2014 1:30 pm

Re: USER LANGUAGE PROBLEM

Post by janus_zonstraal »

What do you mean with the common.php page?
Sorry! My English is bat ;) !!!
Milunice259
Registered User
Posts: 69
Joined: Mon Apr 19, 2010 4:12 pm

Re: USER LANGUAGE PROBLEM

Post by Milunice259 »

I mean only the language in common.php file showed up. Actually, after diactivated all extension and turned it on 1 by 1, I found the extension that lead to the error. However, I don't know why it happened. When I changed the code in extension from this:
return $this->user->lang('BADGE_TYPE_AVATAR');
to this:
return 'Avatar';
then the problem has gone. Don't know why?
User avatar
Crizzo
Translations & International Support Teams Manager
Translations & International Support Teams Manager
Posts: 1745
Joined: Thu Apr 23, 2009 1:20 pm
Location: Stuttgart, Germany
Name: Christian

Re: USER LANGUAGE PROBLEM

Post by Crizzo »

It looks like this extension uses an outdated method for include language keys..

Within 3.3. it should use $this->language->lang() . See https://area51.phpbb.com/docs/dev/3.2.x ... age-object

Look for an update or ask the author for help.

Regards
My extensions for phpBB: CDB
German phpBB Support at www.phpbb.de
Milunice259
Registered User
Posts: 69
Joined: Mon Apr 19, 2010 4:12 pm

Re: USER LANGUAGE PROBLEM

Post by Milunice259 »

Thanks, I need to talk to the author of that extension
User avatar
pierredu
Registered User
Posts: 1272
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: USER LANGUAGE PROBLEM

Post by pierredu »

On the other hand, an extension having done the conversion to the lang class doesn't work under older versions of phpBB (like 3.2.4).

Return to “[3.3.x] Translations”