By Konstantin Boyandin on
Greetings,
I have installed organic groups module and found this problem: when the content creation links are displayed, it's impossible to translate the node type. The string available for localization is
'create %type'
yet the type is always in English and can't be translated. Can someone suggest simple patch to fix this problem?
This is the code snippet that generates 'create nodetype' OG menu:
if (!in_array($type, $exempt) && node_access('create', $type)) {
$links[] = l(t('create %type', array('%type' => $name)), "node/add/$type",
array('title' => t('Add a new %s in this group.', array('%s' => $name))),
"edit[og_groups][]=$group->nid");
}
Thanks for any suggestions. In case of non-English sites this menu looks quite ugly.
Comments
Ah, I found the
Ah, I found the workaround:
e.g., t($name) instead of $name. That does the trick.
Ah... I had the same problem!
What a simple solution... this would be a good patch for og.
Thanks!
Albert
Esalen Alumni Group