Load default language before other languages?
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.
If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.
If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Re: Load default language before other languages?
Having worked with the language loading code a bit. I think it might need a complete refactoring and removal from user class anyway.
-
- Posts: 171
- Joined: Sun Jan 29, 2006 1:00 pm
- Location: Germany
- Contact:
Re: Load default language before other languages?
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
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
- imkingdavid
- Registered User
- Posts: 1050
- Joined: Thu Jul 30, 2009 12:06 pm
Re: Load default language before other languages?
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).
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).
-
- Posts: 171
- Joined: Sun Jan 29, 2006 1:00 pm
- Location: Germany
- Contact:
Re: Load default language before other languages?
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
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
- imkingdavid
- Registered User
- Posts: 1050
- Joined: Thu Jul 30, 2009 12:06 pm
Re: Load default language before other languages?
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.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.
Re: Load default language before other languages?
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.
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.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.
- Dragosvr92
- Registered User
- Posts: 624
- Joined: Tue May 31, 2011 12:08 pm
- Location: Romania
- Contact:
Re: Load default language before other languages?
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 user: TheKiller
Avatar on Memberlist 1.0.3
Avatar on Memberlist 1.0.3
-
- Posts: 171
- Joined: Sun Jan 29, 2006 1:00 pm
- Location: Germany
- Contact:
Re: Load default language before other languages?
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
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
- callumacrae
- Former Team Member
- Posts: 1046
- Joined: Tue Apr 27, 2010 9:37 am
- Location: England
- Contact:
Re: Load default language before other languages?
Contributions to the core aren't accepted as patches, so that wouldn't really achieve anything.
Re: Load default language before other languages?
This ^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).