Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorMax_B
    • CommentTimeAug 21st 2006 edited
     # 1
    This extension allows language selection at the user level. It is able to automaticaly select the language from the browser variable if no user setting is found. See Installation instructions for proper operation.
    This extension is an alternative to "ChooseLanguage" by Jonas John from which a few lines were borrowed.
    Precedence is: session setting, user setting, browser setting, forum default.
    For registerd users this extension create a new item in the control panel of the account page and the associated form.
    Unregistered users get a permanent select in panel.

    Uploaded a new 1.0.1 zip file to remove PHP5 dependency and .svn hidden folder.
    Uploaded a new 1.0.2 zip file to conform to the new auto-checking numbering.
    Uploaded a new 1.0.3 zip file correcting a typo in extension name.
    •  
      CommentAuthorTex
    • CommentTimeMar 5th 2007
     # 2
    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
    •  
      CommentAuthoricouto
    • CommentTimeMar 5th 2007
     # 3
    @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?
    •  
      CommentAuthorMax_B
    • CommentTimeMar 5th 2007
     # 4
    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.
    •  
      CommentAuthoricouto
    • CommentTimeMar 5th 2007
     # 5
    @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)?
    •  
      CommentAuthorTex
    • CommentTimeMar 6th 2007
     # 6
    @ Max_B:
    Well, I will try to do. If I succeed (what I doubt right now), I will let you know.
    •  
      CommentAuthorMax_B
    • CommentTimeMar 6th 2007
     # 7
    Yes, looking at 1.1.1 code, the installation instructions should not change.
    •  
      CommentAuthorTex
    • CommentTimeMar 6th 2007
     # 8
    With Vanilla 1.1.1 the problem seems to only occur for guests and if members are browsing to their own account.
    •  
      CommentAuthorMax_B
    • CommentTimeMar 6th 2007
     # 9
    @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.
    •  
      CommentAuthorTex
    • CommentTimeMar 7th 2007
     # 10
    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.
    •  
      CommentAuthorMax_B
    • CommentTimeMar 7th 2007
     # 11
    @Tex: Please read the readme.txt file and follow instructions in there to setup the extension.
    •  
      CommentAuthorTex
    • CommentTimeMar 7th 2007
     # 12
    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.
    •  
      CommentAuthoricouto
    • CommentTimeMar 7th 2007
     # 13
    @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.
    •  
      CommentAuthoricouto
    • CommentTimeMar 25th 2007
     # 14
    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.
    •  
      CommentAuthorJDW
    • CommentTimeApr 1st 2007
     # 15
    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.
    •  
      CommentAuthoricouto
    • CommentTimeApr 3rd 2007
     # 16
    @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.
  1.  # 17
    Uploaded version 1.0.3 of LanguageSelector.
    •  
      CommentAuthorMax_B
    • CommentTimeApr 12th 2007
     # 18
    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");
    •  
      CommentAuthorJDW
    • CommentTimeApr 12th 2007
     # 19
    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."
    •  
      CommentAuthorMax_B
    • CommentTimeApr 13th 2007
     # 20
    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…
    •  
      CommentAuthoricouto
    • CommentTimeApr 13th 2007
     # 21
    @Max: thank you for your continuing work on this! You are awesome! :-)
    •  
      CommentAuthorJDW
    • CommentTimeApr 13th 2007 edited
     # 22
    My comments are never written to mock others. I do to others as I would like done to myself.

    Max, please reflect on the fact that you were the one who initiated dialog about "typos." Had you not done that, I would not have made any suggestions to you at all concerning other spelling errors that I myself had found. I think that is quite clear though because if you search for every post I have made to date, you will not find any others from me that talk about spelling errors, even though I have found many spelling and grammar errors in many Vanilla extensions.

    Your native language is not an issue here. The facts simply are that: (a) you willingly created an extension in English of your own accord, and (b) you were the one who opened dialog about spelling. Having read your "typo" comment, I simply offered some advice on how to correct, without having made any attempts to mock you or your native tongue. And if I myself were to ever venture into creation of French language extensions, I would certainly hope that kind souls such as yourself would assist me in making the language as perfect as it could be. Goodness knows my friends here in Japan do that with regard to my written Japanese!

    Thank you, Max, for an excellent extension. And please know that a spelling error here or there does not detract from the fact you are an excellent Vanilla Extensions developer!
    •  
      CommentAuthorMax_B
    • CommentTimeApr 14th 2007 edited
     # 23
    OK JDW, relax, I get your point.
    The typo I mentioned in the release post was the space in the extension name, which was a BUGGY typo. I definitely don't spend enough time to correct comment typos.
    •  
      CommentAuthoremsef
    • CommentTimeApr 14th 2007
     # 24
    This is a great extension, thanks for your hard work.

    I use it on my forum: www.twingoloversclub.com
    • CommentAuthorryanopaz
    • CommentTimeJun 4th 2007
     # 25
    I'm retarded. I followed the readme and no luck still this: Notice: Undefined property: LanguageSelectorArray in /home/catavino/public_html/forum.foro/extensions/LanguageSelector/default.php on line 84

    Fatal error: Call to undefined function: buildlangarray() in /home/catavino/public_html/forum.foro/extensions/LanguageSelector/default.php on line 87

    what did I do? Thanks for putting up with the dumb question
    •  
      CommentAuthorAndy K
    • CommentTimeOct 26th 2007 edited
     # 26
    Hi all: I'm getting the same errors as ryanopaz:
    ===========
    Notice: Undefined property: Context::$LanguageSelectorArray in /home/.xxxxxx/jrpg/xxxxxx.com/kaikan/extensions/LanguageSelector/default.php on line 84

    Fatal error: Call to undefined function buildlangarray() in /home/.xxxxxx/jrpg/xxxxxx.com/kaikan/extensions/LanguageSelector/default.php on line 87
    ============
    Same lines. This is a first install, and I'm using Vanilla 1.1.4, and trying to get Japanese to work.

    I get the above error when I click on my Account page and click on "Languages". It immediately gives the above instead of a lang select area.

    I followed all the instructions in the readme, including adding the include lines to all the noted appg "init*.php" files.

    Is it incompatible with Vanilla 1.1.3/1.1.4?

    -Andy
    •  
      CommentAuthorMax_B
    • CommentTimeOct 27th 2007
     # 27
    @ryanopaz, Andy K, and all users getting the errors reported in the preceding post (and repeatedly before):
    These errors show up when the LanguageSelector/LanguageSelector.php include in not correctly included. Either you did not patch appg/init_*.php files or you made a typo, or inserted the line at the wrong place.
    Once again, the right place is below the $Context->StartSession(); and before the language includes.

    I tested it OK in 1.1.4
    •  
      CommentAuthorklip
    • CommentTimeDec 1st 2007
     # 28
    1. isn't it possible to make Mark and other Vanilla core developers to implement some standard nice and clean way allowing install extensions without core hacks?

    I would recommend to create an empty /path/to/vanilla/conf/init_language.php and in /path/to/vanilla/appg/init_*.php to have:
    // DEFINE THE LANGUAGE DICTIONARY
    include($Configuration['APPLICATION_PATH'].'conf/init_language.php');
    include($Configuration['LANGUAGES_PATH'].$Configuration['LANGUAGE'].'/definitions.php');
    include($Configuration['APPLICATION_PATH'].'conf/language.php');

    instead of:
    // DEFINE THE LANGUAGE DICTIONARY
    include($Configuration['LANGUAGES_PATH'].$Configuration['LANGUAGE'].'/definitions.php');
    include($Configuration['APPLICATION_PATH'].'conf/language.php');


    the conf folder is editable by Vanilla itself so it would be possible to install the necessary code there by extension self.
    I'm already adding some code to conf/language.php by an extension but I think if there is more extensions altering conf files code, then I could write an extension managing install/uninstall code into conf/*.php files (except settings.php, extensions.php and database.php)

    You think it is possible to convince the Vanilla team? :) I really don't like core hacking :)

    2. I need LanguageSelector to allow to set multiple languages and with a drag&drop list able to specify a priorities of languages loaded.
    I'm going to alter your code and add this functionality there as an option.
    Are you interested and open to add my patches and doing a release?
    Or should I upload it as a new extension? :-)
    •  
      CommentAuthorMax_B
    • CommentTimeDec 2nd 2007
     # 29
    I'm sure open to your patches.
    Still, I don't get you point of several prioritized languages. It's for extension not available in UI language?

    BTW. i edited my post in your other thread because some chars got mangled by the html filter : http://lussumo.com/community/?CommentID=79668

    I'm adding a post to bugtracker to link to your suggestion.
    Also, regarding loading of translation, didi you see my old post where I suggested a policy for loading extension translation : http://lussumo.com/community/?CommentID=62303
    •  
      CommentAuthorklip
    • CommentTimeDec 2nd 2007
     # 30
    Thanks! Check this post. There is a summary of my thoughts :-)
    • CommentAuthorskyjumper
    • CommentTimeMar 3rd 2008
     # 31
    Hi,
    this add-on works great. Thank you.
    But there is one problem: when I am not signed and I choose the language in the language box, I get the error message:
    " Some problems were encountered
    The requested discussion could not be found. "

    But this problem is only, when I am in a discussion. At the front page it works fine. What did I wrong? Thank you.
Add your comments
    Username Password
  • Format comments as