[dev] Gettext strings in framework packages

Chuck Hagenbuch chuck at horde.org
Mon Jan 25 01:52:31 UTC 2010


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.

What about standardizing on a short shim function like t() or _t(),  
and then passing that to xgettext's --keyword argument?

-chuck


More information about the dev mailing list