6.0.0-beta1
7/10/25

[#9205] translation.php does not extract framework files strings
Summary translation.php does not extract framework files strings
Queue Horde Base
Queue Version FRAMEWORK_3
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester lfbm.andamentos (at) gmail (dot) com
Created 08/28/2010 (5430 days ago)
Due
Updated 08/30/2010 (5428 days ago)
Assigned
Resolved 08/30/2010 (5428 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
08/30/2010 07:08:28 PM Michael Rubinsky Comment #2
State ⇒ Not A Bug
Priority ⇒ 1. Low
Reply to this comment
This script is designed to work on a checkout of the source tree.
08/28/2010 05:05:05 PM lfbm (dot) andamentos (at) gmail (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ translation.php does not extract framework files strings
Queue ⇒ Horde Base
Milestone ⇒
Patch ⇒ No
Reply to this comment
horde 3.3.9-cvs

Line 311 of translation.php seems to tell the script to extract 
strings from files located under: 'admin', 'framework', 'lib', 
'services', 'templates', 'util' and 'themes', when the processed 
module is 'horde'.

function xtract()
{

...

foreach (array('admin', 'framework', 'lib', 'services', 'templates', 
'util', 'themes') as $search_dir) {

...

The trouble is there's no 'framework' directory under 'horde'. The 
framework files lies actually under /usr/share/pear/Horde (at least on 
CentOS).

So framework strings won't be pulled unless I create a symlink under 
horde/ named 'framework' pointed to '/usr/share/pear/Horde', so the 
translation.php can find them.

I don't know what the best solution is, maybe tell translation.php to 
search for files under something like "get_include_path()" . /Horde 
??? instead of 'framework'?

This problem is breaking all the translations, since the framework 
strings (like Alarm strings, menu strgins etc.) are not being 
translated.

Hope my report helps.

Saved Queries