phpBB

Development Discussion Board

phpBB's testing ground of bleeding edge code
Advanced search

Load default language before other languages?

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.1/Ascreaus followed by 3.2/Arsia.

Re: Load default language before other languages?

Postby naderman » Thu May 10, 2012 3:41 pm

Having worked with the language loading code a bit. I think it might need a complete refactoring and removal from user class anyway.
www.naderman.de
Move your forum to Forumatic - we'll take care of maintenance & spam
User avatar
naderman
Development Team Leader
Development Team Leader
 
Posts: 1649
Joined: Sun Jan 11, 2004 2:11 am
Location: Karlsruhe, Germany

Re: Load default language before other languages?

Postby MartinTruckenbrodt » Thu May 10, 2012 7:14 pm

Hello Nils,
at the moment I'm thinking about doing an Advanced Multi Language Support MOD for Olympus to to add all of the told missing core features. Maybe I will do it in June or July.

I think I will add a function which looks for existing language files. If at least one file is missing then the complete default board language pack will be used then merged/overwritten with the exisiting user language pack things.

I hope that you understand my English. If not then please let me know for a german language PM. ;)

Bye Martin
Advanced Block MOD 1.1.1 has been released! - Prevent spam on your phpBB3 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists! - My MODs
MartinTruckenbrodt
 
Posts: 171
Joined: Sun Jan 29, 2006 1:00 pm
Location: Germany

Re: Load default language before other languages?

Postby imkingdavid » Thu May 10, 2012 10:00 pm

Do we have benchmarks on page loading speed with and without this change? If it is not a significant difference (will need testing on a largish board), then I'm okay with doing this.

Perhaps consider caching it, so that it only has to include both files once and then always has a value stored in cache afterwards, so it only has to load the cache any subsequent times (until cache is cleared, of course).
I do custom MODs. PM for a quote!
View My: MODs | Portfolio
Please do NOT contact for support via PM or email.
Remember, the enemy's gate is down.
User avatar
imkingdavid
Development Team
Development Team
 
Posts: 900
Joined: Thu Jul 30, 2009 12:06 pm

Re: Load default language before other languages?

Postby MartinTruckenbrodt » Thu May 10, 2012 10:05 pm

Hello imkingdavid,
I don't how the cache works. But I think the cache is not related to the user. Yes? So I think there should be not a big difference.

BTW. The cache here on Area51 at the moment is not running well. At least for me.

Bye Martin
Advanced Block MOD 1.1.1 has been released! - Prevent spam on your phpBB3 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists! - My MODs
MartinTruckenbrodt
 
Posts: 171
Joined: Sun Jan 29, 2006 1:00 pm
Location: Germany

Re: Load default language before other languages?

Postby imkingdavid » Fri May 11, 2012 12:36 am

MartinTruckenbrodt wrote:Hello imkingdavid,
I don't how the cache works. But I think the cache is not related to the user. Yes? So I think there should be not a big difference.

Yes, but language entries aren't user-specific either. Simply cache language entries as they are used. If a certain language is requested, first check the cache and see if it has been cached yet, otherwise look for the file and cache that.
I do custom MODs. PM for a quote!
View My: MODs | Portfolio
Please do NOT contact for support via PM or email.
Remember, the enemy's gate is down.
User avatar
imkingdavid
Development Team
Development Team
 
Posts: 900
Joined: Thu Jul 30, 2009 12:06 pm

Re: Load default language before other languages?

Postby naderman » Fri May 11, 2012 11:41 pm

MartinTruckenbrodt wrote:Hello Nils,
at the moment I'm thinking about doing an Advanced Multi Language Support MOD for Olympus to to add all of the told missing core features. Maybe I will do it in June or July.


MartinTruckenbrodt wrote:I think I will add a function which looks for existing language files. If at least one file is missing then the complete default board language pack will be used then merged/overwritten with the exisiting user language pack things.

Please work on a propert patch which is going to be useful for all phpBB users, rather than a MOD. With phpBB 3.1 we won't be advertising MODs at all anymore anyway.
www.naderman.de
Move your forum to Forumatic - we'll take care of maintenance & spam
User avatar
naderman
Development Team Leader
Development Team Leader
 
Posts: 1649
Joined: Sun Jan 11, 2004 2:11 am
Location: Karlsruhe, Germany

Re: Load default language before other languages?

Postby Dragosvr92 » Sat May 12, 2012 1:42 am

When i have installed my forum, i started installing language packs for each user that was speaking different languages (German, Greek, Korean etc) But as there were errors because the language packs werent having the translation for mods, i have removed them all and let just British English, as it would have been easier to install mods in just one language. It would be really amazing to have the language packs of other countries to just translate the main forum files, and load the extra language edits that are made by an x mod.
Previous username: TheKiller
Avatar on Memberlist 1.0.3
User avatar
Dragosvr92
Registered User
 
Posts: 358
Joined: Tue May 31, 2011 12:08 pm
Location: Romania

Re: Load default language before other languages?

Postby MartinTruckenbrodt » Sat May 12, 2012 9:18 am

Hello Nils,
I'm a MOD author and no co-developer. I don't advertise MODs. I advertise missing core features.
Perhaps MODs should been written like patches in future?

Bye Martin
Advanced Block MOD 1.1.1 has been released! - Prevent spam on your phpBB3 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists! - My MODs
MartinTruckenbrodt
 
Posts: 171
Joined: Sun Jan 29, 2006 1:00 pm
Location: Germany

Re: Load default language before other languages?

Postby callumacrae » Sat May 12, 2012 9:34 am

Contributions to the core aren't accepted as patches, so that wouldn't really achieve anything.
"In JavaScript, there is a beautiful, elegant, highly expressive language that is buried under a steaming pile of good intentions and blunders"
—Douglas Crockford

View my MOD, phpBB Mobile
User avatar
callumacrae
Website Team
Website Team
 
Posts: 882
Joined: Tue Apr 27, 2010 9:37 am
Location: England

Re: Load default language before other languages?

Postby brunoais » Sat May 12, 2012 2:15 pm

imkingdavid wrote:Perhaps consider caching it, so that it only has to include both files once and then always has a value stored in cache afterwards, so it only has to load the cache any subsequent times (until cache is cleared, of course).

This ^
brunoais
Registered User
 
Posts: 626
Joined: Fri Dec 18, 2009 3:55 pm

Previous Next

Return to [3.x] Discussion

Who is online

Users browsing this forum: Realisty and 12 guests