This extension leads to an error in Vanilla 1.1: Notice: Undefined property: Context::$LanguageSelectorArray in .../extensions/LanguageSelector/default.php on line 68
Fatal error: Call to undefined function BuildLangArray() in .../extensions/LanguageSelector/default.php on line 71
@Max: does the new release of Vanilla make it possible for us to install this extension without having to make changes to the core? - or are those 2 or 3 core hacks still necessary?
I have not downloaded 1.1, yet. My own application is closely related to Vanilla so I have to check it out with some time ahead. But I'm rather confident, seeing the message above that the answer to icouto question is NO. And then, to Tex: do the required changes.
@Max: thanks for the info! Do you believe then, that provided we follow the old installation/hack instructions, the extension will work as expected in 1.1(.1)?
@Tex: this is because registered users have already a preference set. So there is no need to guess the language, nor to build up a selector for the panel. You did not patch your 1.1.1 install, did you? If you have been able to do it for 1.0, why not for 1.1, the files are exactly the same in that respect.
How could I forget about this? Sorry for messing up this discussion. If anybody wants to delete all my junk here, please go ahead. Thank you, Max, for your patience! I am sorry.
Max, please note that in default.php the name of the extension has to be changed from "Language Selector" to "LanguageSelector" (without space in between), for it to be compatible with the new update-checker of Vanilla 1.1.x.
@JDW: you can delete that yourself, if you want to - I have deleted it in mine, and it now works. I'm sure that Max will fix it with the next release, though.
Corrected the space typo and added the following readme note: **************************************
INSTALLATION, conf/language.php option
**************************************
Recent releases of Vanilla inversed the order of language files include.
This opens an alternate installation method, if you do NOT use conf/language.php for extensions translations.
Just insert the above LanguageSelector include line in the conf/language.php files.
Note: Using conf/language.php for extensions translations is NOT a good choice for a true multilingual setup.
It does not allow on-fly extension switching. There is no alternate STANDARD method yet (Vanilla 1.1.2).
My own method is to store extension translation in separate files and add specific includes in conf/extensions.php.
Exemple :
@include($Configuration['EXTENSIONS_PATH']."CategoryJumper/{$Configuration['LANGUAGE']}.php");
include($Configuration['EXTENSIONS_PATH']."CategoryJumper/default.php");
Speaking of "typos" if you have a look at the bottom of your post, you'll see that you have the word "Exemple," which as far as I know is not in the English language! :-) Also, you should add an "s" to the end of the word "translation" in "translation in separate files."
Was this a mocking comment? I'm still waiting to read a comment in French, without a single typo, from a native English speaker after he worked to release some useful extension…
Comments
Notice: Undefined property: Context::$LanguageSelectorArray in .../extensions/LanguageSelector/default.php on line 68 Fatal error: Call to undefined function BuildLangArray() in .../extensions/LanguageSelector/default.php on line 71
My own application is closely related to Vanilla so I have to check it out with some time ahead.
But I'm rather confident, seeing the message above that the answer to icouto question is NO.
And then, to Tex: do the required changes.
Well, I will try to do. If I succeed (what I doubt right now), I will let you know.
You did not patch your 1.1.1 install, did you?
If you have been able to do it for 1.0, why not for 1.1, the files are exactly the same in that respect.
How could I forget about this? Sorry for messing up this discussion. If anybody wants to delete all my junk here, please go ahead. Thank you, Max, for your patience! I am sorry.
Thanks.
************************************** INSTALLATION, conf/language.php option ************************************** Recent releases of Vanilla inversed the order of language files include. This opens an alternate installation method, if you do NOT use conf/language.php for extensions translations. Just insert the above LanguageSelector include line in the conf/language.php files. Note: Using conf/language.php for extensions translations is NOT a good choice for a true multilingual setup. It does not allow on-fly extension switching. There is no alternate STANDARD method yet (Vanilla 1.1.2). My own method is to store extension translation in separate files and add specific includes in conf/extensions.php. Exemple : @include($Configuration['EXTENSIONS_PATH']."CategoryJumper/{$Configuration['LANGUAGE']}.php"); include($Configuration['EXTENSIONS_PATH']."CategoryJumper/default.php");
Speaking of "typos" if you have a look at the bottom of your post, you'll see that you have the word "Exemple," which as far as I know is not in the English language! :-) Also, you should add an "s" to the end of the word "translation" in "translation in separate files."
I'm still waiting to read a comment in French, without a single typo, from a native English speaker after he worked to release some useful extension…