[ postfixadmin-Feature Requests-1843281 ] language chooser
Brought to you by:
christian_boltz,
gingerdog
From: SourceForge.net <no...@so...> - 2007-12-30 19:00:20
|
Feature Requests item #1843281, was opened at 2007-12-03 12:42 Message generated for change (Comment added) made by christian_boltz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=937967&aid=1843281&group_id=191583 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: SVN (please specify revision!) >Status: Closed Resolution: Fixed Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: language chooser Initial Comment: 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 ---------------------------------------------------------------------- >Comment By: Christian Boltz (christian_boltz) Date: 2007-12-30 20:00 Message: 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. ---------------------------------------------------------------------- Comment By: PRAEDO (praedo) Date: 2007-12-30 02:50 Message: Logged In: YES user_id=1968759 Originator: NO Great, I'll be happy to try it when it's ready. Josep M. ---------------------------------------------------------------------- Comment By: Christian Boltz (christian_boltz) Date: 2007-12-30 02:40 Message: 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. ---------------------------------------------------------------------- Comment By: amsys (amsys) Date: 2007-12-17 01:45 Message: 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 ---------------------------------------------------------------------- Comment By: Christian Boltz (christian_boltz) Date: 2007-12-06 00:18 Message: 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 ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2007-12-05 15:15 Message: 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 ---------------------------------------------------------------------- Comment By: Christian Boltz (christian_boltz) Date: 2007-12-03 13:25 Message: 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)? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=937967&aid=1843281&group_id=191583 |