[i18n] String "_Home" from horde/lib/Application.php:67 won't translate

Luis Felipe Marzagao lfbm.andamentos at gmail.com
Wed Jun 15 01:53:45 UTC 2011


Hello:

The string "_Home" in line 67 of horde/lib/Applcation.php can't be translated.

My horde.po is 100% translated and compiled with no errors, but that
string is still being shown untranslated
(http://imageshack.us/f/190/unstranslatedstring.png/).

If I change that line in Application.php from:

$menu->add(Horde::url('services/portal/', false, array('app' =>
'horde')), Horde_Core_Translation::t("_Home"), 'horde.png');

to

$menu->add(Horde::url('services/portal/', false, array('app' =>
'horde')), _("_Home"), 'horde.png');

then the translation works just fine.

And inserting:

Horde::debug(parent::t($message));

just before:

return parent::t($message);

in line 33 (static public function t) of
horde/framework/Core/lib/Horde/Core/Translation.php produced the
attached horde_debug.txt.

For some reason, only the string _Home appears untranslated in the
debug log (and also on the screen).

Can anyone confirm this?

Thanks.
Luis Felipe
-------------- next part --------------
2011-06-13T22:36:37-03:00 DEBUG: Variable information:
string(6) "Editar"

Backtrace:
1. Horde_Core_Block_Layout_View->toHtml() /home/duli/git/horde/horde/services/portal/index.php:32
2. include() /home/duli/git/horde/framework/Core/lib/Horde/Core/Block/Layout/View.php:100
3. Horde_Core_Block_Layout->getHeaderIcons() /home/duli/git/horde/horde/templates/portal/block.inc:4
4. Horde_Core_Translation::t() /home/duli/git/horde/framework/Core/lib/Horde/Core/Block/Layout.php:107
5. Horde::debug() /home/duli/git/horde/framework/Core/lib/Horde/Core/Translation.php:32

2011-06-13T22:36:37-03:00 DEBUG: Variable information:
string(6) "Editar"

Backtrace:
1. Horde_Core_Block_Layout_View->toHtml() /home/duli/git/horde/horde/services/portal/index.php:32
2. include() /home/duli/git/horde/framework/Core/lib/Horde/Core/Block/Layout/View.php:100
3. Horde_Core_Block_Layout->getHeaderIcons() /home/duli/git/horde/horde/templates/portal/block.inc:4
4. Horde_Core_Translation::t() /home/duli/git/horde/framework/Core/lib/Horde/Core/Block/Layout.php:108
5. Horde::debug() /home/duli/git/horde/framework/Core/lib/Horde/Core/Translation.php:32

2011-06-13T22:36:37-03:00 DEBUG: Variable information:
string(7) "Remover"

Backtrace:
1. Horde_Core_Block_Layout_View->toHtml() /home/duli/git/horde/horde/services/portal/index.php:32
2. include() /home/duli/git/horde/framework/Core/lib/Horde/Core/Block/Layout/View.php:100
3. Horde_Core_Block_Layout->getHeaderIcons() /home/duli/git/horde/horde/templates/portal/block.inc:4
4. Horde_Core_Translation::t() /home/duli/git/horde/framework/Core/lib/Horde/Core/Block/Layout.php:114
5. Horde::debug() /home/duli/git/horde/framework/Core/lib/Horde/Core/Translation.php:32

2011-06-13T22:36:37-03:00 DEBUG: Variable information:
string(28) "Realmente apagar este bloco?"

Backtrace:
1. Horde_Core_Block_Layout_View->toHtml() /home/duli/git/horde/horde/services/portal/index.php:32
2. include() /home/duli/git/horde/framework/Core/lib/Horde/Core/Block/Layout/View.php:100
3. Horde_Core_Block_Layout->getHeaderIcons() /home/duli/git/horde/horde/templates/portal/block.inc:4
4. Horde_Core_Translation::t() /home/duli/git/horde/framework/Core/lib/Horde/Core/Block/Layout.php:117
5. Horde::debug() /home/duli/git/horde/framework/Core/lib/Horde/Core/Translation.php:32

2011-06-13T22:36:37-03:00 DEBUG: Variable information:
string(7) "Remover"

Backtrace:
1. Horde_Core_Block_Layout_View->toHtml() /home/duli/git/horde/horde/services/portal/index.php:32
2. include() /home/duli/git/horde/framework/Core/lib/Horde/Core/Block/Layout/View.php:100
3. Horde_Core_Block_Layout->getHeaderIcons() /home/duli/git/horde/horde/templates/portal/block.inc:4
4. Horde_Core_Translation::t() /home/duli/git/horde/framework/Core/lib/Horde/Core/Block/Layout.php:118
5. Horde::debug() /home/duli/git/horde/framework/Core/lib/Horde/Core/Translation.php:32

2011-06-13T22:36:37-03:00 DEBUG: Variable information:
string(6) "Editar"

Backtrace:
1. Horde_Core_Block_Layout_View->toHtml() /home/duli/git/horde/horde/services/portal/index.php:32
2. include() /home/duli/git/horde/framework/Core/lib/Horde/Core/Block/Layout/View.php:100
3. Horde_Core_Block_Layout->getHeaderIcons() /home/duli/git/horde/horde/templates/portal/block.inc:4
4. Horde_Core_Translation::t() /home/duli/git/horde/framework/Core/lib/Horde/Core/Block/Layout.php:107
5. Horde::debug() /home/duli/git/horde/framework/Core/lib/Horde/Core/Translation.php:32

2011-06-13T22:36:37-03:00 DEBUG: Variable information:
string(6) "Editar"

Backtrace:
1. Horde_Core_Block_Layout_View->toHtml() /home/duli/git/horde/horde/services/portal/index.php:32
2. include() /home/duli/git/horde/framework/Core/lib/Horde/Core/Block/Layout/View.php:100
3. Horde_Core_Block_Layout->getHeaderIcons() /home/duli/git/horde/horde/templates/portal/block.inc:4
4. Horde_Core_Translation::t() /home/duli/git/horde/framework/Core/lib/Horde/Core/Block/Layout.php:108
5. Horde::debug() /home/duli/git/horde/framework/Core/lib/Horde/Core/Translation.php:32

2011-06-13T22:36:37-03:00 DEBUG: Variable information:
string(7) "Remover"

Backtrace:
1. Horde_Core_Block_Layout_View->toHtml() /home/duli/git/horde/horde/services/portal/index.php:32
2. include() /home/duli/git/horde/framework/Core/lib/Horde/Core/Block/Layout/View.php:100
3. Horde_Core_Block_Layout->getHeaderIcons() /home/duli/git/horde/horde/templates/portal/block.inc:4
4. Horde_Core_Translation::t() /home/duli/git/horde/framework/Core/lib/Horde/Core/Block/Layout.php:114
5. Horde::debug() /home/duli/git/horde/framework/Core/lib/Horde/Core/Translation.php:32

2011-06-13T22:36:37-03:00 DEBUG: Variable information:
string(28) "Realmente apagar este bloco?"

Backtrace:
1. Horde_Core_Block_Layout_View->toHtml() /home/duli/git/horde/horde/services/portal/index.php:32
2. include() /home/duli/git/horde/framework/Core/lib/Horde/Core/Block/Layout/View.php:100
3. Horde_Core_Block_Layout->getHeaderIcons() /home/duli/git/horde/horde/templates/portal/block.inc:4
4. Horde_Core_Translation::t() /home/duli/git/horde/framework/Core/lib/Horde/Core/Block/Layout.php:117
5. Horde::debug() /home/duli/git/horde/framework/Core/lib/Horde/Core/Translation.php:32

2011-06-13T22:36:37-03:00 DEBUG: Variable information:
string(7) "Remover"

Backtrace:
1. Horde_Core_Block_Layout_View->toHtml() /home/duli/git/horde/horde/services/portal/index.php:32
2. include() /home/duli/git/horde/framework/Core/lib/Horde/Core/Block/Layout/View.php:100
3. Horde_Core_Block_Layout->getHeaderIcons() /home/duli/git/horde/horde/templates/portal/block.inc:4
4. Horde_Core_Translation::t() /home/duli/git/horde/framework/Core/lib/Horde/Core/Block/Layout.php:118
5. Horde::debug() /home/duli/git/horde/framework/Core/lib/Horde/Core/Translation.php:32

2011-06-13T22:36:38-03:00 DEBUG: Variable information:
string(5) "_Home"

Backtrace:
1. Horde::menu() /home/duli/git/horde/horde/services/portal/index.php:45
2. Horde_Registry->callAppMethod() /home/duli/git/horde/framework/Core/lib/Horde.php:2228
3. call_user_func_array() /home/duli/git/horde/framework/Core/lib/Horde/Registry.php:1063
4. Horde_Application->menu()
5. Horde_Core_Translation::t() /home/duli/git/horde/horde/lib/Application.php:67
6. Horde::debug() /home/duli/git/horde/framework/Core/lib/Horde/Core/Translation.php:32

2011-06-13T22:36:38-03:00 DEBUG: Variable information:
string(14) "_Preferências"

Backtrace:
1. Horde::menu() /home/duli/git/horde/horde/services/portal/index.php:45
2. require() /home/duli/git/horde/framework/Core/lib/Horde.php:2235
3. Horde_Menu->render() /home/duli/git/horde/horde/templates/menu/menu.inc:2
4. Horde_Core_Translation::t() /home/duli/git/horde/framework/Core/lib/Horde/Menu.php:174
5. Horde::debug() /home/duli/git/horde/framework/Core/lib/Horde/Core/Translation.php:32

2011-06-13T22:36:38-03:00 DEBUG: Variable information:
string(8) "Problema"

Backtrace:
1. Horde::menu() /home/duli/git/horde/horde/services/portal/index.php:45
2. require() /home/duli/git/horde/framework/Core/lib/Horde.php:2235
3. Horde_Menu->render() /home/duli/git/horde/horde/templates/menu/menu.inc:2
4. Horde_Core_Translation::t() /home/duli/git/horde/framework/Core/lib/Horde/Menu.php:181
5. Horde::debug() /home/duli/git/horde/framework/Core/lib/Horde/Core/Translation.php:32

2011-06-13T22:36:38-03:00 DEBUG: Variable information:
string(5) "Ajuda"

Backtrace:
1. Horde::menu() /home/duli/git/horde/horde/services/portal/index.php:45
2. require() /home/duli/git/horde/framework/Core/lib/Horde.php:2235
3. Horde_Menu->render() /home/duli/git/horde/horde/templates/menu/menu.inc:2
4. Horde_Core_Translation::t() /home/duli/git/horde/framework/Core/lib/Horde/Menu.php:189
5. Horde::debug() /home/duli/git/horde/framework/Core/lib/Horde/Core/Translation.php:32

2011-06-13T22:36:38-03:00 DEBUG: Variable information:
string(83) "Uma janela popup não pôde ser aberta. Seu nabegador deve estar bloqueando popups."

Backtrace:
1. Horde::menu() /home/duli/git/horde/horde/services/portal/index.php:45
2. require() /home/duli/git/horde/framework/Core/lib/Horde.php:2235
3. Horde_Menu->render() /home/duli/git/horde/horde/templates/menu/menu.inc:2
4. Horde::popupJs() /home/duli/git/horde/framework/Core/lib/Horde/Menu.php:189
5. Horde::addScriptFile() /home/duli/git/horde/framework/Core/lib/Horde.php:2061
6. Horde_Script_Files->add() /home/duli/git/horde/framework/Core/lib/Horde.php:272
7. Horde_Script_Files->_add() /home/duli/git/horde/framework/Core/lib/Horde/Script/Files.php:66
8. Horde_Core_Translation::t() /home/duli/git/horde/framework/Core/lib/Horde/Script/Files.php:126
9. Horde::debug() /home/duli/git/horde/framework/Core/lib/Horde/Core/Translation.php:32

2011-06-13T22:36:38-03:00 DEBUG: Variable information:
string(5) "_Sair"

Backtrace:
1. Horde::menu() /home/duli/git/horde/horde/services/portal/index.php:45
2. require() /home/duli/git/horde/framework/Core/lib/Horde.php:2235
3. Horde_Menu->render() /home/duli/git/horde/horde/templates/menu/menu.inc:2
4. Horde_Core_Translation::t() /home/duli/git/horde/framework/Core/lib/Horde/Menu.php:205
5. Horde::debug() /home/duli/git/horde/framework/Core/lib/Horde/Core/Translation.php:32

2011-06-13T22:36:38-03:00 DEBUG: Variable information:
string(15) "Administração"

Backtrace:
1. Horde_Core_Ajax_Application->doAction() /home/duli/git/horde/horde/services/ajax.php:60
2. call_user_func() /home/duli/git/horde/framework/Core/lib/Horde/Core/Ajax/Application.php:95
3. Horde_Ajax_Application->sidebarUpdate()
4. Horde_Core_Sidebar->getTree() /home/duli/git/horde/horde/lib/Ajax/Application.php:36
5. Horde_Core_Translation::t() /home/duli/git/horde/framework/Core/lib/Horde/Core/Sidebar.php:115
6. Horde::debug() /home/duli/git/horde/framework/Core/lib/Horde/Core/Translation.php:32

2011-06-13T22:36:38-03:00 DEBUG: Variable information:
string(13) "Preferências"

Backtrace:
1. Horde_Core_Ajax_Application->doAction() /home/duli/git/horde/horde/services/ajax.php:60
2. call_user_func() /home/duli/git/horde/framework/Core/lib/Horde/Core/Ajax/Application.php:95
3. Horde_Ajax_Application->sidebarUpdate()
4. Horde_Core_Sidebar->getTree() /home/duli/git/horde/horde/lib/Ajax/Application.php:36
5. Horde_Core_Translation::t() /home/duli/git/horde/framework/Core/lib/Horde/Core/Sidebar.php:126
6. Horde::debug() /home/duli/git/horde/framework/Core/lib/Horde/Core/Translation.php:32

2011-06-13T22:36:38-03:00 DEBUG: Variable information:
string(21) "Preferências Globais"

Backtrace:
1. Horde_Core_Ajax_Application->doAction() /home/duli/git/horde/horde/services/ajax.php:60
2. call_user_func() /home/duli/git/horde/framework/Core/lib/Horde/Core/Ajax/Application.php:95
3. Horde_Ajax_Application->sidebarUpdate()
4. Horde_Core_Sidebar->getTree() /home/duli/git/horde/horde/lib/Ajax/Application.php:36
5. Horde_Core_Translation::t() /home/duli/git/horde/framework/Core/lib/Horde/Core/Sidebar.php:137
6. Horde::debug() /home/duli/git/horde/framework/Core/lib/Horde/Core/Translation.php:32

2011-06-13T22:36:38-03:00 DEBUG: Variable information:
string(4) "Sair"

Backtrace:
1. Horde_Core_Ajax_Application->doAction() /home/duli/git/horde/horde/services/ajax.php:60
2. call_user_func() /home/duli/git/horde/framework/Core/lib/Horde/Core/Ajax/Application.php:95
3. Horde_Ajax_Application->sidebarUpdate()
4. Horde_Core_Sidebar->getTree() /home/duli/git/horde/horde/lib/Ajax/Application.php:36
5. Horde_Core_Translation::t() /home/duli/git/horde/framework/Core/lib/Horde/Core/Sidebar.php:159
6. Horde::debug() /home/duli/git/horde/framework/Core/lib/Horde/Core/Translation.php:32

2011-06-13T22:36:38-03:00 DEBUG: Variable information:
string(83) "Uma janela popup não pôde ser aberta. Seu nabegador deve estar bloqueando popups."

Backtrace:
 1. Horde_Core_Ajax_Application->doAction() /home/duli/git/horde/horde/services/ajax.php:60
 2. call_user_func() /home/duli/git/horde/framework/Core/lib/Horde/Core/Ajax/Application.php:95
 3. Horde_Ajax_Application->sidebarUpdate()
 4. Horde_Core_Sidebar->getTree() /home/duli/git/horde/horde/lib/Ajax/Application.php:36
 5. Horde_Registry->callAppMethod() /home/duli/git/horde/framework/Core/lib/Horde/Core/Sidebar.php:176
 6. call_user_func_array() /home/duli/git/horde/framework/Core/lib/Horde/Registry.php:1063
 7. IMP_Application->sidebarCreate()
 8. Horde_Tree_Base->addNode() /home/duli/git/horde/imp/lib/Application.php:536
 9. Horde_Tree_Html->addNodeParams() /home/duli/git/horde/framework/Tree/lib/Horde/Tree/Base.php:220
10. Horde_Tree_Base->addNodeParams() /home/duli/git/horde/framework/Tree/lib/Horde/Tree/Html.php:146
11. strval() /home/duli/git/horde/framework/Tree/lib/Horde/Tree/Base.php:264
12. Horde_Url->__toString()
13. Horde_Url->toString() /home/duli/git/horde/framework/Url/lib/Horde/Url.php:272
14. call_user_func() /home/duli/git/horde/framework/Url/lib/Horde/Url.php:227
15. IMP::composeLinkJsCallback()
16. Horde::popupJs() /home/duli/git/horde/imp/lib/IMP.php:310
17. Horde::addScriptFile() /home/duli/git/horde/framework/Core/lib/Horde.php:2061
18. Horde_Script_Files->add() /home/duli/git/horde/framework/Core/lib/Horde.php:272
19. Horde_Script_Files->_add() /home/duli/git/horde/framework/Core/lib/Horde/Script/Files.php:66
20. Horde_Core_Translation::t() /home/duli/git/horde/framework/Core/lib/Horde/Script/Files.php:126
21. Horde::debug() /home/duli/git/horde/framework/Core/lib/Horde/Core/Translation.php:32


More information about the i18n mailing list