Notifications
Clear all

[partially solved] Installer not working with custom language files

12 Posts
3 Users
0 Reactions
3,793 Views
(@guest1448)
Posts: 0
 

Hello,

the installer and upgrade scripts are not working correctly with custom language files. When I open up the installer, it tells me to type in database information, sitekey, language and so on. After submitting, the installer should display all messages in the previously chosen language. The URL says install.php?step=2&language=de (for example), but most of the messages are still english.

I opened install.php and found this in multiple places:

	if(file_exists("../langauges/".$language."_admin.php")) include("../languages/".$langauge."_admin.php");

Seems to be misspelled (lanauge). I think it should be:

	if(file_exists("../languages/".$language."_admin.php")) include("../languages/".$language."_admin.php");

And then this in multiple places too:

	if(file_exists("languages/".$language.".php")) include("languages/en.php");

I changed it to:

	if(file_exists("languages/".$language.".php")) include("languages/".$language.".php");

Now my installer displays the correct strings at step2, but then it goes on with english messages. You my download my german files to try this yourself, see signature.


 
Posted : 30/12/2006 8:08 am
(@tammy)
Posts: 2577
Member Moderator
 

Okay thanks for the info.  I'll fix the misspellings and look into the rest.  I take it this was only with the install and you didn't run into the same misspellings with any updates?  I didn't find any anyway.


 
Posted : 30/12/2006 5:31 pm
(@guest1448)
Posts: 0
 

Yes, only the installer. The upgrade scripts coming with 3.0.2 don't have these code sections, they only include the english file and don't look for others. But the upgraders coming with privious versions had these codes and the same misspellings.


 
Posted : 31/12/2006 5:01 am
(@guest1448)
Posts: 0
 

OK the misspellings have being fixed, but the installer still isn't working with custom language files. It displays custom messages only after writing the config.php, then it goes on with english messages. And there's still another bug I think:

	if(file_exists("languages/".$language.".php")) include("languages/en.php");

 
Posted : 19/01/2007 5:52 am
(@tammy)
Posts: 2577
Member Moderator
 

Well it can't display a custom language until you select one.  The update script for 2.0 will now display in the custom language all the way through.  The 1.1 update and 3.0 install have to start off in English though as there's no language set at start.

I will have the other fixed in the next update.


 
Posted : 19/01/2007 9:39 am
(@guest1448)
Posts: 0
 

And this bug is also still valid after upgrade to 3.3

Steffen


 
Posted : 16/06/2007 2:12 pm
(@guest1448)
Posts: 0
 

3.3.1, still valid.


 
Posted : 06/10/2007 12:31 pm
(@guest1448)
Posts: 0
 

And even for 3.4, the installer is still english. πŸ™


 
Posted : 01/04/2008 8:19 am
(@guest1448)
Posts: 0
 

I just run another test install and the language problem is partially fixed. The prompts are in english for config file writing and setup of settings table, then it goes on with the table data insertion (panels, links, messages) in the choosen language until the end. I'll mark this topic as solved for now.

Steffen


 
Posted : 21/06/2008 6:21 am
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

Can you please check and see if this is still an issue with 3.5? Thank you!


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 07/04/2009 3:51 am
(@guest1448)
Posts: 0
 

my last status report is still valid for 3.5. The installer becomes multi-lingual after setting up the config file and settings table, but not from the beginning of installation process. Half-solved bug. πŸ™‚


 
Posted : 07/04/2009 4:55 am
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

I don't think that we are going to fix the first half, it's not really a bug.


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 08/04/2009 1:34 am
Share: