#20 Quick Language Change


Right now 50% of my users speak Japanese, and 50%
speak English. So as it stands I have to explain on my
web page to the Japanese people how to surf through
the preferences in English to change their default
language to Japanese!


Can we put a link on the login page, which switches
languages for the login page (and thus whoever switches
the login page to Japanese before they login will be
automatically sent to a Japanese squirrelmail?)

Or, in the short term, how do I put a link in my general
header (or somewhere) that quickly changes the
language preference?

Colin Jensen


  • Tomas Kuliavas

    Tomas Kuliavas - 2005-07-21

    Logged In: YES

    i think plugin can do that.

    login_form and login_verified hooks.

  • Tomas Kuliavas

    Tomas Kuliavas - 2005-07-26

    Logged In: YES

    Check select_language plugin in SM-Plugins cvs
    after anonymous cvs syncs with main cvs server or see

  • Tomas Kuliavas

    Tomas Kuliavas - 2005-07-26
    • assigned_to: nobody --> tokul
  • Colin Jensen

    Colin Jensen - 2005-07-28

    Logged In: YES

    Thank you for the nice plugin. But perhaps I'm missing
    something basic. Forgive me, this is my first squirrelmail
    installation. I copied the unzipped folder to
    my /squirrelmail/plugins/ folder, and ran config.pl, turned on
    this option, and now nothing happened. My test server is at if you want to look at it.


  • Tomas Kuliavas

    Tomas Kuliavas - 2005-07-28

    Logged In: YES

    plugin uses login_form and login_verified hooks. login_form
    hook adds visual elements to src/login.php. If
    select_language plugin is enabled, login page should display
    selection box below [login] button.

    If you have modified login.php - please make sure that
    login_form hook is still working or add select_language
    field yourself.

    Make sure that squirrelmail config.php contains

    See https://internet.eik.lt/mail3/src/login.php for example.

    Plugin is very simple. It should not depend on any specific
    php version. If it breaks, I need details. Your squirrelmail
    version, modifications in src/login.php and
    src/redirect.php, any error messages from apache/php error logs.

  • Colin Jensen

    Colin Jensen - 2005-07-28

    Logged In: YES

    Thanks for your speedy reply.

    No, I'm running a clean install of login.php and redirect.php,
    there are no errors in the logs that I can see, and I'm using
    1.4.3a. The $plugins line is there. I'm running IIS 5 & PHP

    And it simply doesn't show up. I just don't know...

    I can give you access to anything you need to diagnose it.

    Colin / mrcolj

  • Tomas Kuliavas

    Tomas Kuliavas - 2005-07-29

    Logged In: YES

    Start IIS management console (Control Panel ->
    Administrative tools -> Internet Information Services),
    select site that you are using and check Home Directory in
    site properties.

    Make sure that you haven't confused two different
    SquirrelMail installations.

    If you have enabled select_language and it is still not
    working, open plugins/select_language/setup.php file in text
    editor and add some broken php code.

    for example:
    * Show plugin version
    * @return string plugin version
    function select_language_version() {
    return '1.0rc1';


    If plugin is enabled - login page should break with fatal
    php error.

  • Colin Jensen

    Colin Jensen - 2005-07-29

    Logged In: YES

    So I guess the plugin or the hook isn't working, because
    adding in there_is_no_such_function(); didn't give me an error
    message. Error_reporting is set to E_All

  • Tomas Kuliavas

    Tomas Kuliavas - 2005-07-30

    Logged In: YES

    If error in plugins/select_language/setup.php does not
    create problems in src/login.php, then you are working with
    different SquirrelMail installs. Please recheck your
    SquirrelMail install. I don't think that you can give me
    administrative access to your box just to locate right
    SquirrelMail installation. Only you can find error in your
    SquirrelMail setup.

    Show your enabled site properties in IIS management console.
    I want to see site's home directory setting.

    Show listing of your SquirrelMail plugins directory.

    Show listing of your SquirrelMail plugins/select_language

    Both directory listings must be displayed in IIS management
    console or full path information must be visible.

    If you use some php script caching engine (Zend optimizer or
    other), restart IIS. If you have some proxy server between
    browser and web server - make sure that you can reproduce
    problem without proxy server.

    Plugin was tested on Apache (Linux) and IIS 5.1 WinXP Pro.
    Both worked without problems.

  • Tomas Kuliavas

    Tomas Kuliavas - 2005-08-10
    • status: open --> pending-fixed
  • Tomas Kuliavas

    Tomas Kuliavas - 2005-08-10

    Logged In: YES

    select_language plugin is available in sm-plugins project
    site and under review by SquirrelMail plugin developers. It
    was tested on Linux Apache and WinXP IIS. It works if
    login.php is not modified or modifications don't remove
    login_form hook. Incorrect hook placement is covered by
    other bug report.

    Putting tracker to pending. If no feedback is received -
    SourceForge system will close it.

    If you are not satisfied with plugin implementation - search
    for clang plugin on squirrelmail mailing lists on gmane.org
    or contact me. clang plugin uses left_main instead of login
    page and was designed to solve Japanese issues due to
    unimplemented decoding of Japanese character sets. I think
    decoding of some Japanese character sets is already
    implemented in SquirrelMail decode cvs module.

  • SourceForge Robot

    • status: pending-fixed --> closed-fixed
  • SourceForge Robot

    Logged In: YES

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).


Log in to post a comment.