<?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>horde-translation does not work anymore on code downloaded via pear</title> 
  <pubDate>Wed, 08 Apr 2026 07:37:11 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/14830</link> 
  <atom:link rel="self" type="application/rss+xml" title="horde-translation does not work anymore on code downloaded via pear" href="https://bugs.horde.org/ticket/14830/rss" /> 
  <description>horde-translation does not work anymore on code downloaded via pear</description> 
 
   
   
  <item> 
   <title>With the changes introducted between version 5.2.17 and 5.2.</title> 
   <description>With the changes introducted between version 5.2.17 and 5.2.18, the /usr/bin/horde-translation script does not work properly when trying to generate new MO files from PO files edited locally after a release of the Horde package has been downloaded via pear.

Around line 407 of horde-translation, in the strip_horde function, the 5.2.18 version introduces a reference to Horde_Yaml which the Horde pear package does not depend on. With Horde_Yaml installed, the strip_horde function still fails as there is no &quot;.horde.yml&quot; file in a pear downloaded Horde package.

The code of the strip_horde function in the older version used str_replace to do the work, which worked fine in the case that there is no git checkout involved. </description> 
   <pubDate>Fri, 06 Jul 2018 11:01:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14830#t92911</link> 
  </item> 
   
  <item> 
   <title>I&#039;d hesitate to call this a bug. These tools are meant to be</title> 
   <description>I&#039;d hesitate to call this a bug. These tools are meant to be used in a git checkout. The fact that they worked without one previously was a lucky accident...  leaving the ticket open though in case someone has some time they are looking to fill....</description> 
   <pubDate>Sun, 29 Jul 2018 15:06:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14830#t92943</link> 
  </item> 
   
  <item> 
   <title>&gt; With the changes introducted between version 5.2.17 and 5.</title> 
   <description>&gt; With the changes introducted between version 5.2.17 and 5.2.18, the 
&gt; /usr/bin/horde-translation script does not work properly when trying 
&gt; to generate new MO files from PO files edited locally after a release 
&gt; of the Horde package has been downloaded via pear.
&gt;
&gt; Around line 407 of horde-translation, in the strip_horde function, 
&gt; the 5.2.18 version introduces a reference to Horde_Yaml which the 
&gt; Horde pear package does not depend on. With Horde_Yaml installed, the 
&gt; strip_horde function still fails as there is no &quot;.horde.yml&quot; file in 
&gt; a pear downloaded Horde package.
&gt;
&gt; The code of the strip_horde function in the older version used 
&gt; str_replace to do the work, which worked fine in the case that there 
&gt; is no git checkout involved.
</description> 
   <pubDate>Mon, 05 Oct 2020 23:47:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14830#t93835</link> 
  </item> 
   
  <item> 
   <title>&gt; With the changes introducted between version 5.2.17 and 5.</title> 
   <description>&gt; With the changes introducted between version 5.2.17 and 5.2.18, the 
&gt; /usr/bin/horde-translation script does not work properly when trying 
&gt; to generate new MO files from PO files edited locally after a release 
&gt; of the Horde package has been downloaded via pear.
&gt;
&gt; Around line 407 of horde-translation, in the strip_horde function, 
&gt; the 5.2.18 version introduces a reference to Horde_Yaml which the 
&gt; Horde pear package does not depend on. With Horde_Yaml installed, the 
&gt; strip_horde function still fails as there is no &quot;.horde.yml&quot; file in 
&gt; a pear downloaded Horde package.
&gt;
&gt; The code of the strip_horde function in the older version used 
&gt; str_replace to do the work, which worked fine in the case that there 
&gt; is no git checkout involved.

I have the identical problem. I come from this thread: http://horde.690.n7.nabble.com/Trouble-with-horde-translation-after-upgrade-to-Horde-5-2-18-td142947.html 

Here I show you the same problem that I have encountered when trying to update some translations:

---------------------------
Horde translation generator
---------------------------
Loading libraries...
[   OK   ] Console_Getopt found.
[   OK   ] Console_Table found.
[   OK   ] File_Find found.

Searching gettext binaries...
[   OK   ] gettext found: /bin/gettext
[   OK   ] msgattrib found: /bin/msgattrib
[   OK   ] msgcat found: /bin/msgcat
[   OK   ] msgcomm found: /bin/msgcomm
[   OK   ] msgfmt found: /bin/msgfmt
[   OK   ] msginit found: /bin/msginit
[   OK   ] msgmerge found: /bin/msgmerge
[   OK   ] xgettext found: /bin/xgettext

[   OK   ] gettext version: 0.19.8.1

Searching Horde modules in /location/horde5/lib/..

  Fatal Error:
  Failed to open file: fopen(/location/horde5/lib/../.horde.yml): failed to
     open stream: No such file or directory
  In /usr/share/pear/Horde/Yaml.php on line 105

  1. Horde_Translation_Script-&gt;search_modules()
     /usr/bin/horde-translation:1682
  2. Horde_Translation_Script-&gt;strip_horde() /usr/bin/horde-translation:391
  3. array_map() /usr/bin/horde-translation:405
  4. Horde_Translation_Script-&gt;strip_horde()
  5. Horde_Yaml::loadFile() /usr/bin/horde-translation:407


Version Horde_Yaml:
# pear list -c horde |grep Horde_Yaml
Horde_Yaml                   2.0.7   stable

I tried to install version 2.0.5 but the problem persists. 

Can anyone give us a hand in this issue?

BR

</description> 
   <pubDate>Tue, 06 Oct 2020 16:13:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14830#t93836</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
