#20 language chooser

closed-fixed
nobody
None
5
2013-12-01
2007-12-03
Anonymous
No

Hello all
I have installed postfixadmin and set the language to nl, this works on a dutch browser, all text is translated like it should.
But if i use a English browser the translations are not done, it all stays English.

Is this desired behavior? and am i missing something in the config file

regards,
Johan

Discussion

  • Christian Boltz

    Christian Boltz - 2007-12-03
    • status: open --> closed-works-for-me
     
  • Christian Boltz

    Christian Boltz - 2007-12-03

    Logged In: YES
    user_id=593261
    Originator: NO

    Yes, this is desired behaviour. Postfixadmin checks the Accept-Language HTTP header and then uses the requested language. (Hint: Most browsers have a "preferred language" setting.)

    Do you need a different behaviour (like enforcing a language independent of the Accept-Language header)?

     
  • Nobody/Anonymous

    • status: closed-works-for-me --> open-works-for-me
     
  • Nobody/Anonymous

    Logged In: NO

    Well i think it would be more logic that if you do not set language that it defaults to the browser but if you set the language that it stick to that language regardless of the browser language.

    now i only can use nl if i am behind an nl browser.
    If i am behind an polish browser i am lost.

    regards,
    Johan

     
  • Christian Boltz

    Christian Boltz - 2007-12-05

    Logged In: YES
    user_id=593261
    Originator: NO

    Good point - having a language selector would be a good idea.

    Possible location: login page
    Technical implementation:
    a) set a cookie
    b) ignore the Accept-Language header if the language cookie is set

     
  • Christian Boltz

    Christian Boltz - 2007-12-05
    • summary: language --> language chooser
    • milestone: --> SVN_(please_specify_revision!)
    • status: open-works-for-me --> open
     
  • amsys

    amsys - 2007-12-17

    Logged In: YES
    user_id=1299438
    Originator: NO

    I suggest something what looks like hyperlink: _change language.._ it's not eating much space and clicking there opens/expands form item with language selector and there sets cookie, this way looks better, maybe it's bad idea... you decide

     
  • Christian Boltz

    Christian Boltz - 2007-12-30

    Logged In: YES
    user_id=593261
    Originator: NO

    I decided to use a simple HTML dropdown (<select>) at the login page which sets a cookie.

    This leads to the following language handling preference:
    1. cookie
    2. browser accept_language - if no cookie is set
    3. $CONF['default_language'] - if non of the above languages are supported

    Implemented in SVN r280.
    Please test and report any bugs you might find.

     
  • Christian Boltz

    Christian Boltz - 2007-12-30
    • status: open --> closed-fixed
     
  • PRAEDO

    PRAEDO - 2007-12-30
    • status: closed-fixed --> open-fixed
     
  • PRAEDO

    PRAEDO - 2007-12-30

    Logged In: YES
    user_id=1968759
    Originator: NO

    Great, I'll be happy to try it when it's ready.
    Josep M.

     
  • Christian Boltz

    Christian Boltz - 2007-12-30
    • status: open-fixed --> closed-fixed
     
  • Christian Boltz

    Christian Boltz - 2007-12-30

    Logged In: YES
    user_id=593261
    Originator: NO

    It _is_ ready. (At least I hope so ;-)

    To test it, you can checkout the latest SVN version as described on http://sourceforge.net/svn/?group_id=191583.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks