Hello!
The OG module shows a block for every group with 'create %type' link in it. Even though the content types are translated, the 'create %type' link still shows english names for %type, for example 'story'.
Also the fieldset on group homepage shows english version of content type.
Even when english language is disabled the result is same.
I believe the 'create %type' is generated in 'og_og_create_links' function in og.module
This is from original module
function og_og_create_links($group) {
foreach (node_get_types() as $type => $name) {
$exempt = array_merge(variable_get('og_node_types', array('og')), variable_get('og_omitted', array()));
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");
}
}
return $links ? $links : array();
}
Though was not sure, I tried adding 'node_get_name($name)' , but without any effect
function og_og_create_links($group) {
foreach (node_get_types() as $type => $name) {
$exempt = array_merge(variable_get('og_node_types', array('og')), variable_get('og_omitted', array()));
if (!in_array($type, $exempt) && node_access('create', $type)) {