https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292009-02-10T22:30:42ZRedmineRedmine - Feature #2691: Option to disable automated language-guessing based on HTTP_ACCEPT_LANGUAGE HTTP-headerhttps://www.redmine.org/issues/2691?journal_id=72512009-02-10T22:30:42ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>Actually, it seems to do more than disabling the detection of the browser's language.</p>
<p>It also ignores the language that the user have chosen on its account. If it's the desired behaviour, we should either hide the 'Language' preference field on 'My account' or have a separate setting to allow/disallow registered users to choose a different language.</p> Redmine - Feature #2691: Option to disable automated language-guessing based on HTTP_ACCEPT_LANGUAGE HTTP-headerhttps://www.redmine.org/issues/2691?journal_id=83072009-03-29T20:43:20ZMischa The Evil
<ul></ul><p>Jean-Philippe Lang wrote:</p>
<blockquote>
<p>Actually, it seems to do more than disabling the detection of the browser's language.</p>
</blockquote>
<p>Indeed, you are correct... :)</p>
<blockquote>
<p>It also ignores the language that the user have chosen on its account. If it's the desired behaviour, we should either hide the 'Language' preference field on 'My account' or have a separate setting to allow/disallow registered users to choose a different language.</p>
</blockquote>
<p><em>My</em> initial intention was to completely disable the buildin internationalisation to be able to configure a language as being <em>100% static</em>...</p>
In that light I'd say we go for the separate setting to allow/disallow registered users to choose a different language <em>with the extension that if the setting is disallowed</em> no automated language-guessing, based on <code>HTTP_ACCEPT_LANGUAGE HTTP</code>-header, is applied.<br />This seems to me the most logical solution instead of having two dedicated settings like:
<ol>
<li>allow/disallow registered users to choose a different language</li>
<li>enable/disable automated language-guessing based on <code>HTTP_ACCEPT_LANGUAGE HTTP</code>-header</li>
</ol>
<p>What do you think?</p> Redmine - Feature #2691: Option to disable automated language-guessing based on HTTP_ACCEPT_LANGUAGE HTTP-headerhttps://www.redmine.org/issues/2691?journal_id=99542009-06-29T21:33:59ZHarri H
<ul></ul><p>Mischa The Evil wrote:</p>
<blockquote>
In that light I'd say we go for the separate setting to allow/disallow registered users to choose a different language <em>with the extension that if the setting is disallowed</em> no automated language-guessing, based on <code>HTTP_ACCEPT_LANGUAGE HTTP</code>-header, is applied.<br />This seems to me the most logical solution instead of having two dedicated settings like:
<ol>
<li>allow/disallow registered users to choose a different language</li>
<li>enable/disable automated language-guessing based on <code>HTTP_ACCEPT_LANGUAGE HTTP</code>-header</li>
</ol>
<p>What do you think?</p>
</blockquote>
<p>Well, I'm not Jean-Philippe but could throw out some ideas related to this. It seems to me that your patch isn't in the trunk yet so I assume this issue is still open.</p>
<p>The reason I started looking at this language issue more closely is that when arriving to Redmine home for the first time (as a non-registered user), UI was in Finnish for me. Uh. Somebody might like it, but I don't. And there was no way to change the language (without registering and logging in). Not very nice, if I may say. If there's something like UI language selection happening automatically user should be able to change it when necessary - let's try not to mimic behaviour of our friend Windows and try to be "smart" and "know" what the user wants without providing means to influence the decision (easily).</p>
<p>Anyway, I would suggest that also a non-registered user could be able to change the UI language. For example, a dropdown box with 'Set' button to upper right corner and the selected language could be saved to cookies/session. And, of course, if the current user decides to register, this selected language could be selected automatically in the language selection dropdown, meaning the user doesn't have to touch the language setting (ever) again. The automatic language sniffing could be as it is now, users could just change the language on the rare case they don't like the one system chose.</p>
<p>Does this make any sense, any thoughts?</p>
<p>And yes, I'm new to this project, so if there has been discussion on this topic elsewhere, please forgive me.</p> Redmine - Feature #2691: Option to disable automated language-guessing based on HTTP_ACCEPT_LANGUAGE HTTP-headerhttps://www.redmine.org/issues/2691?journal_id=99582009-06-29T23:28:56ZMischa The Evil
<ul></ul><p>Harri H wrote:</p>
<blockquote>
<p>The reason I started looking at this language issue more closely is that when arriving to Redmine home for the first time (as a non-registered user), UI was in Finnish for me. Uh. Somebody might like it, but I don't. And there was no way to change the language (without registering and logging in). Not very nice, if I may say.</p>
</blockquote>
<p>Good point you mention there which IMHO should definately has to be taken into consideration within this issues scope.</p>
<p>Regards,</p>
<p>Mischa.</p> Redmine - Feature #2691: Option to disable automated language-guessing based on HTTP_ACCEPT_LANGUAGE HTTP-headerhttps://www.redmine.org/issues/2691?journal_id=130612009-12-18T11:22:18ZThomas Lecavelier
<ul><li><strong>File</strong> <a href="/attachments/2918">0001-Redmine-default-locale-used-before-browser-locale-en.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/2918/0001-Redmine-default-locale-used-before-browser-locale-en.patch">0001-Redmine-default-locale-used-before-browser-locale-en.patch</a> added</li><li><strong>File</strong> <a href="/attachments/2919">0002-Add-option-to-force-default-language-for-non-logged-.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/2919/0002-Add-option-to-force-default-language-for-non-logged-.patch">0002-Add-option-to-force-default-language-for-non-logged-.patch</a> added</li></ul><p>Here an escape from <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Settings default language not (really) used (Closed)" href="https://www.redmine.org/issues/4311">#4311</a>.</p>
<p>I repost my first patch, adapted to current trunk, with a second one giving an option to force usage of the Setting.default_language over the HTTP_ACCEPT_LANGUAGE.</p>
<p>Hoping this help.</p> Redmine - Feature #2691: Option to disable automated language-guessing based on HTTP_ACCEPT_LANGUAGE HTTP-headerhttps://www.redmine.org/issues/2691?journal_id=232612010-12-17T05:55:23ZMischa The Evil
<ul></ul><p>Thomas Lecavelier wrote:</p>
<blockquote>
<p>Here an escape from <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Settings default language not (really) used (Closed)" href="https://www.redmine.org/issues/4311">#4311</a>.</p>
<p>I repost my first patch, adapted to current trunk, with a second one giving an option to force usage of the Setting.default_language over the HTTP_ACCEPT_LANGUAGE.</p>
<p>Hoping this help.</p>
</blockquote>
<p>Thomas,</p>
<p>This "escape" will do it for me. Thanks for sharing. Hope they'll make it into the core.</p>
<p>Mischa.</p> Redmine - Feature #2691: Option to disable automated language-guessing based on HTTP_ACCEPT_LANGUAGE HTTP-headerhttps://www.redmine.org/issues/2691?journal_id=544482014-01-23T02:06:29ZEbrahim Mohammadi
<ul></ul><p>I miss this option severly. No recent development? Not available as a plugin?</p> Redmine - Feature #2691: Option to disable automated language-guessing based on HTTP_ACCEPT_LANGUAGE HTTP-headerhttps://www.redmine.org/issues/2691?journal_id=544732014-01-24T10:32:03ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Tracker</strong> changed from <i>Patch</i> to <i>Feature</i></li><li><strong>Category</strong> changed from <i>Administration</i> to <i>UI</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li><li><strong>Target version</strong> set to <i>2.5.0</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p><a class="changeset" title="Adds locales strings (#2691)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/12692">r12692</a> adds 2 new settings that let force the default language for anonymous and/or logged-in users.</p> Redmine - Feature #2691: Option to disable automated language-guessing based on HTTP_ACCEPT_LANGUAGE HTTP-headerhttps://www.redmine.org/issues/2691?journal_id=700832016-04-02T01:58:39ZGo MAEDA
<ul><li><strong>Has duplicate</strong> <i><a class="issue tracker-2 status-5 priority-3 priority-lowest closed" href="/issues/12112">Feature #12112</a>: Forcing locale (language) on a project</i> added</li></ul>