<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="/h/themes/default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Cli scripts, using the user_admin param on appInit resets language setting</title> 
  <pubDate>Sat, 18 May 2013 17:27:21 +0000</pubDate> 
  <link>http://bugs.horde.org/ticket/10718</link> 
  <atom:link rel="self" type="application/rss+xml" title="Cli scripts, using the user_admin param on appInit resets language setting" href="http://bugs.horde.org/ticket/10718/rss" /> 
  <description>Cli scripts, using the user_admin param on appInit resets language setting</description> 
 
   
   
  <item> 
   <title>Using kronolith/bin/kronolith_agenda as an example, if after</title> 
   <description>Using kronolith/bin/kronolith_agenda as an example, if after the appInit call you add

var_dump(_(&quot;on the same weekday&quot;));die();

the sentence is correctly translated.

Althoug, if you add the option 'user_admin' =&gt; true to Horde_Registry::appInit call, the sentence will no longer be translated</description> 
   <pubDate>Mon, 07 Nov 2011 16:07:34 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/10718#t68628</link> 
  </item> 
   
  <item> 
   <title>Then why do you add it?</title> 
   <description>Then why do you add it?</description> 
   <pubDate>Tue, 08 Nov 2011 17:26:35 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/10718#t68665</link> 
  </item> 
   
  <item> 
   <title>&gt; Then why do you add it?

Because i need to run a script </title> 
   <description>&gt; Then why do you add it?

Because i need to run a script from command line has a privileged user.
Isn't this the correct way? </description> 
   <pubDate>Wed, 09 Nov 2011 01:02:11 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/10718#t68681</link> 
  </item> 
   
  <item> 
   <title>It is, I was wondering why you would do this with kronolith-</title> 
   <description>It is, I was wondering why you would do this with kronolith-agenda though.

That options sets the current user to the first admin user. That user probably doesn't have a language set in his prefs, that's why you don't get translated strings.</description> 
   <pubDate>Wed, 09 Nov 2011 10:53:12 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/10718#t68682</link> 
  </item> 
   
  <item> 
   <title>&gt; It is, I was wondering why you would do this with kronolit</title> 
   <description>&gt; It is, I was wondering why you would do this with kronolith-agenda though.
&gt;
&gt; That options sets the current user to the first admin user. That user 
&gt; probably doesn't have a language set in his prefs, that's why you 
&gt; don't get translated strings.

Just used kronolith-agenda as an example ;-)
I don't think its a question of prefs since if i swap the code flow (as shown in the patch attached), it works fine.

I didn't propose the patch in the first place, because i don't think this is the correct way to fix it.
</description> 
   <pubDate>Wed, 09 Nov 2011 14:47:00 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/10718#t68688</link> 
  </item> 
   
  <item> 
   <title>Wouldn't it work if you set the default language in the pref</title> 
   <description>Wouldn't it work if you set the default language in the preferences too?</description> 
   <pubDate>Sun, 13 Nov 2011 20:25:38 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/10718#t68777</link> 
  </item> 
   
  <item> 
   <title>&gt; Wouldn't it work if you set the default language in the pr</title> 
   <description>&gt; Wouldn't it work if you set the default language in the preferences too?
No</description> 
   <pubDate>Mon, 14 Nov 2011 11:10:59 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/10718#t68806</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
