<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Use the correct language on pages without autentication required</title> 
  <pubDate>Fri, 10 Apr 2026 05:21:32 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9822</link> 
  <atom:link rel="self" type="application/rss+xml" title="Use the correct language on pages without autentication required" href="https://bugs.horde.org/ticket/9822/rss" /> 
  <description>Use the correct language on pages without autentication required</description> 
 
   
   
  <item> 
   <title>Pages like login.php and signup.php.

Patch attached (Tryi</title> 
   <description>Pages like login.php and signup.php.

Patch attached (Trying to solve a chicken and egg problem :p)</description> 
   <pubDate>Wed, 06 Apr 2011 10:14:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9822#t63214</link> 
  </item> 
   
  <item> 
   <title>This is not correct.  As the notes say, we are expecting pre</title> 
   <description>This is not correct.  As the notes say, we are expecting prefs not to be set here.  We should not be hackishly grabbing the language from the prefs file, esepcially since this does not take into effect whether the pref is locked.</description> 
   <pubDate>Wed, 06 Apr 2011 16:48:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9822#t63222</link> 
  </item> 
   
  <item> 
   <title>&gt; This is not correct.  As the notes say, we are expecting p</title> 
   <description>&gt; This is not correct.  As the notes say, we are expecting prefs not to 
&gt; be set here.  We should not be hackishly grabbing the language from 
&gt; the prefs file, esepcially since this does not take into effect 
&gt; whether the pref is locked.

We know this is a bit hackish, but still, we thought that the language pref being set (locked or not), gives you the desired default language for the website.
</description> 
   <pubDate>Wed, 06 Apr 2011 19:03:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9822#t63236</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; This is not correct.  As the notes say, we are expecting </title> 
   <description>&gt;&gt; This is not correct.  As the notes say, we are expecting prefs not to
&gt;&gt; be set here.  We should not be hackishly grabbing the language from
&gt;&gt; the prefs file, esepcially since this does not take into effect
&gt;&gt; whether the pref is locked.
&gt;
&gt; We know this is a bit hackish, but still, we thought that the 
&gt; language pref being set (locked or not), gives you the desired 
&gt; default language for the website.

The default language for the website is provided by $this-&gt;nlsconfig-&gt;curr_default, not prefs-&gt;language.</description> 
   <pubDate>Thu, 07 Apr 2011 16:39:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9822#t63259</link> 
  </item> 
   
  <item> 
   <title>Michael, i understand that our patch is not correct, but i t</title> 
   <description>Michael, i understand that our patch is not correct, but i think this is still a valid bug.

I changed the default nls language to &#039;pt_PT&#039;, and the login and registry page are still in English which doesn&#039;t seem to be the correct behavior, because i&#039;ve defined the languages everywhere i could imagine, and still my newcomers will have its pages in English until they log in.</description> 
   <pubDate>Tue, 12 Apr 2011 09:22:45 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9822#t63533</link> 
  </item> 
   
  <item> 
   <title>&gt; I changed the default nls language to &#039;pt_PT&#039;, and the log</title> 
   <description>&gt; I changed the default nls language to &#039;pt_PT&#039;, and the login and 
&gt; registry page are still in English which doesn&#039;t seem to be the 
&gt; correct behavior, because i&#039;ve defined the languages everywhere i 
&gt; could imagine, and still my newcomers will have its pages in English 
&gt; until they log in.

The language is determined in Horde_Registry::preferredLang() so you might want to look there.  We select languages in this order:

1. Preference (but this is NOT intended to be used pre-authentication; in fact, there should probably be a getAuth() check there)
2. Language selected on login screen.
3. Language in session (a guest user can set a language in a session)
4. Browser&#039;s list of accepted languages
5. NLS curr_default
6. Fallback to en_US if all else fails

I tend to think that your users&#039; browser is reporting that it wants English as its first option.</description> 
   <pubDate>Tue, 12 Apr 2011 16:53:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9822#t63552</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #9822: R</title> 
   <description>Changes have been made in Git for this ticket:

Bug #9822: Reinitialize language after loading prefs before authentication

 1 files changed, 5 insertions(+), 0 deletions(-)
http://git.horde.org/horde-git/-/commit/bb1ba8c73fc18e667d70541cc25b2b7fe868275c</description> 
   <pubDate>Tue, 12 Apr 2011 17:45:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9822#t63562</link> 
  </item> 
   
  <item> 
   <title>See Ticket #9437 - I was mistaken.  I guess we were using pr</title> 
   <description>See Ticket #9437 - I was mistaken.  I guess we were using prefs-&gt;language as the default language.

But the patch provided here is still wrong.  The correct solution, reinitializing the language after preferences have been loaded and ONLY in the pre-auth situation, has been implemented.</description> 
   <pubDate>Tue, 12 Apr 2011 17:46:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9822#t63563</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #9822: A</title> 
   <description>Changes have been made in Git for this ticket:

Bug #9822: Add package.xml entry

 1 files changed, 5 insertions(+), 4 deletions(-)
http://git.horde.org/horde-git/-/commit/720cd5ca6315be83839ccad827d9975adc11b7ea</description> 
   <pubDate>Tue, 12 Apr 2011 17:47:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9822#t63564</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
