1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Setting a different language for the admin section

Discussion in 'Add-on Releases [Archive]' started by simunaqv, Sep 20, 2011.

  1. simunaqv

    simunaqv Well-Known Member

    Today I wrote about the situation where some forum admin might like to keep the admin section of the forum in English language although a different language has been set as the default board language. In the post mentioned above I showed a code modification for achieving this effect. Ragtek then pointed out that the same can be done in a better way by making use of a code event. Taking ragtek's hint I have created an add-on which I am providing here. It might come in handy for some of you. Thanks ragtek. :)

    Unzip the file provided here, upload the contents of the upload folder to your xenforo installation and then import the xml file.

    The following screenshot shows the different options for this add-on.


    Attached Files:

  2. ibnesayeed

    ibnesayeed Well-Known Member

    Super! I am gonna use it for sure, if such a feature is not there in the coming 1.1 core. :)
    Najam Awan and Muhammad Shuaib like this.
  3. Garamond

    Garamond Well-Known Member

    Very good idea :)
  4. ibnesayeed

    ibnesayeed Well-Known Member

    I was installing this add-on and I found two issues.

    1: Directory structure is not correct, "AdminLanguage" directory is missing under "Nabeel" directory.

    I fixed it by creating that directory and moving "Visitor" directory under that.

    2: It throws a warning on new PHP versions.

    I fixed it by changing:


    if($dependencies instanceof XenForo_Dependencies_Admin)
    After that, it worked like a charm. :)
  5. AndreaMarucci

    AndreaMarucci Well-Known Member

    Do I have to apply these modification to the addon or it was updated accordingly?
  6. AndreaMarucci

    AndreaMarucci Well-Known Member

    Installing it on 1.1 gave me this error

    Please enter a valid callback method.
  7. simunaqv

    simunaqv Well-Known Member

    I have fixed the errors and updated the first post with the new file. Try this version.
    ARSamo likes this.
  8. AndreaMarucci

    AndreaMarucci Well-Known Member

    Good! This one works!!
  9. cclaerhout

    cclaerhout Well-Known Member

    Very nice addon, thanks !
    Fuhrmann likes this.
  10. Hoffi

    Hoffi Well-Known Member

    Can this be done user per user? I like to have my Admin in english, but I am sure, my Co-Admin will dislike it in english.
  11. simunaqv

    simunaqv Well-Known Member

    You could put in a check on the user id inside the listen method of the Nabeel_AdminLanguage_Visitor_Setup class.
  12. AndreaMarucci

    AndreaMarucci Well-Known Member

    Hello, looking at my server error log I've seen many lines of this error

    Undefined index: fc
    15 minutes ago - library/Nabeel/AdminLanguage/Visitor/Setup.php:9
    The addon seems to be working regularly but it's possibile to solve this?
  13. duderuud

    duderuud Active Member

    Same here...
  14. AndreaMarucci

    AndreaMarucci Well-Known Member

    This addon is not compatible with Tapatalk since give this error to all the users entering the forum with Tapatalk
    Server error occured:'call to a member function getDependencies() on a non object (Setup.php:11)'
    I've just posted the request here


    As soon as I've disabled this plugin Tapatalk worked fine. Can you fix it? I believe this plugin is invaluable but you need to fix this error and the other one i've spotted out...

  15. AndreaMarucci

    AndreaMarucci Well-Known Member

    So no news about this one?
    ibnesayeed likes this.
  16. ibnesayeed

    ibnesayeed Well-Known Member

    We have patched this to avoid above mentioned error. I have asked the developer to update here. Wait and watch. :)
  17. AndreaMarucci

    AndreaMarucci Well-Known Member

    I'm watching :)
  18. simunaqv

    simunaqv Well-Known Member

    I have applied the fix as suggested here and updated the add-on.
    ARSamo likes this.
  19. AndreaMarucci

    AndreaMarucci Well-Known Member

    I can confirm that now it's compatible with Tapatalk...

Share This Page