[dev] Gettext strings in framework packages

Michael M Slusarz slusarz at horde.org
Tue Jul 14 17:12:57 UTC 2009


Quoting Jan Schneider <jan at horde.org>:

> Zitat von Michael M Slusarz <slusarz at horde.org>:
>
>> Quoting Jan Schneider <jan at horde.org>:
>>
>>>> What if we kept the strings, but removed the gettext dependency?  
>>>> We could still use gettext in Horde itself, building the catalogs  
>>>> there? We could have a simple Horde_Translation framework that  
>>>> the packages used to manage their strings, and build  
>>>> application-level catalogs for more traditional Horde usage...
>>>
>>> We would lose one of the major benefits of using gettext if we did  
>>> this, unless I misunderstood you. If we don't use gettext calls  
>>> inside the code, all the gettext tools that extract strings from  
>>> the files, and link strings in po files back to the source code,  
>>> stop working.
>>
>> My understanding was that Chuck wanted to keep the _("") strings in  
>> the framework libs and simply remove the gettext dependency in the  
>> package.xml files.
>
> Using _() we *do* have a gettext dependency, unless we include a  
> stub function with every package.

I assumed that's what Chuck wanted.  Because I agree with you -  
there's no way to get gettext strings out of "regular" strings.

michael

-- 
___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the dev mailing list