Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
LanguageSelector
Hey guys! My forum is coming along well. I like the fact that it starts out bare and you add just what you want through the add-ons. Speaking of add-ons, I am a little confused with the LanguageSelector. The read-me file is not easy reading for someone with as little experience as I have. I wanted to confirm the meaning and put it in layman's terms before I nuke my forum with my ignorant mistakes.
In addition to doing the normal installation proceedures of putting the file in the /extensions folder and activating it in the settings section,
It says under the "notes"
Every appg/init_*.php files should be edited to add one line as outlined in the following excerpt:
// Start the session management
$Context->StartSession();
//The following line added for LanguageSelector extension
@include($Configuration['EXTENSIONS_PATH'].'LanguageSelector/LanguageSelector.php');
// DEFINE THE LANGUAGE DICTIONARY
include($Configuration['APPLICATION_PATH'].'conf/language.php');
include($Configuration['LANGUAGES_PATH'].$Configuration['LANGUAGE'].'/definitions.php');
Does this mean put all of this:
// Start the session management
$Context->StartSession();
//The following line added for LanguageSelector extension
@include($Configuration['EXTENSIONS_PATH'].'LanguageSelector/LanguageSelector.php');
// DEFINE THE LANGUAGE DICTIONARY
include($Configuration['APPLICATION_PATH'].'conf/language.php');
include($Configuration['LANGUAGES_PATH'].$Configuration['LANGUAGE'].'/definitions.php');
into these 3 root files?
/Vanilla/appg/init_ajax.php
/Vanilla/appg/init_people.php
/Vanilla/appg/init_vanilla.php
I do not have very much programming experience [ yet :) ] but, is there any special place I should add those lines in the particular files?
Thanks for your help guys, I hope I can return the favors some say!
0
This discussion has been closed.
Comments
Just a quick note: for code sections, please use the 'code' tag: <code>blabla</code>.
I wrote this (sort-of) extension.
Nope, you didn't get the right meaning from my words. Only one line needs to be included :
//The following line added for LanguageSelector extension @include($Configuration['EXTENSIONS_PATH'].'LanguageSelector/LanguageSelector.php');
Yes, there are two lines in this snippet but the comment line doesn't count in.
Other lines were added to the readme to show where to insert the snippet.
The point is to include it before the language includes.
And yes, do the mod to the three files to ensure everything is translated.