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

Max_BMax_B New
edited April 2007 in Vanilla 1.0 Help
LanguageSelector
«1

Comments

  • 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)?
  • @ Max_B:
    Well, I will try to do. If I succeed (what I doubt right now), I will let you know.
  • Yes, looking at 1.1.1 code, the installation instructions should not change.
  • With Vanilla 1.1.1 the problem seems to only occur for guests and if members are browsing to their own account.
  • @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.
  • I don't know what you mean with patch my install, sorry. To use this extension, I did nothing more than upload and activate it so far.
  • @Tex: Please read the readme.txt file and follow instructions in there to setup the extension.
  • Shame on me!

    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.
  • @Tex: I assume, then that this extension works as expected in 1.1.1. Hooray!!! Something else to look forward to, when I upgrade my forum.
  • 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.
  • icouto, should we delete this space ourselves or are we to wait for the author of this extension to fix the update-checker problem?

    Thanks.
  • @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.
  • Uploaded version 1.0.3 of LanguageSelector.
  • 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");
  • Max_B,

    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…
  • @Max: thank you for your continuing work on this! You are awesome! :-)
This discussion has been closed.