[Tickets #9539] Application names might not get translated

bugs at horde.org bugs at horde.org
Tue Jan 25 13:17:53 UTC 2011


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/9539
------------------------------------------------------------------------------
  Ticket             | 9539
  Created By         | goncalo.queiros at portugalmail.net
  Summary            | Application names might not get translated
  Queue              | Horde Framework Packages
  Version            | Git master
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
+New Attachment     |  
0001-Use-horde-translations-when-returning-an-application.patch
------------------------------------------------------------------------------


goncalo.queiros at portugalmail.net (2011-01-25 08:17) wrote:

This is a odd problem. Currently all application names are being  
translated, but i think that this is happening luckley.
When we call $registry->get('name', $app), the name will be translated  
according to the .mo of the current application, but application names  
are actually translated in horde.mo because they are present on  
registry.php.dist file.
We are seeing every app name translated because for example imp.mo  
contains the translation for "Mail"...but if i go to registry.php.dist  
and make imp name = "Super Mail Client", then calling  
$registry->get('name', 'imp') with imp being the active app, i won't  
get the translation, since its not present on imp.mo.
I attached a patch, but i don't know if this is the correct way of  
fixing the problem.






More information about the bugs mailing list