[i18n] Application preferences page not fully translated

Jan Schneider jan at horde.org
Sun Dec 18 18:25:05 UTC 2011


Zitat von Maciej Uhlig <maciej.uhlig at us.edu.pl>:

> Because of Jan's request, this is a continuation of the recent  
> discussion from ticket http://bugs.horde.org/ticket/10861
>
> Short summary: some texts ("Show Advanced Preferences", "Hide  
> Advanced Preferences",
> "Edit Preferences for") are not translated on application  
> preferences page (produced by /pear/php/Horde/Core/Prefs/Ui.php with  
> /templates/prefs/app.html template). These texts come from 'horde'  
> module and are not translated while template is fetched because the  
> fetching occurs in application module domain (e.g. 'imp').
>
> The above texts are correctly translated on Horde Global Preferences  
> page - just because then things happen in 'horde' domain.
>
> All this can be seen simply using PHP textdomain() function.
>
> After the template is fetched, it is parsed. Especially gettext tags  
> are parsed.  'echo' commands are produced and this code is eval()'ed  
> (by PHP gettext) to the output buffer. Obviously, all this happens  
> in application domain. I see no way to make this translation in  
> 'horde' domain at the moment.
>
> When I asked: "How is it possible?" Jan replied "Through magic ...  
> ask on the mailing list".
>
> I still assume it's a bug. But... I'm asking. Any comments?

The magic happens in horde-translation which automatically merges  
Horde's translations with each application's translations when  
building the MO files. So any application has Horde's translations too.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the i18n mailing list