Hi I am building drupal multilanguage site with my custom module.
In my custom module I generated tabs on user profile, and I need translate them.
Content, taxonomy...., other menus (except profile tabs from custom menu) i translate by using Internationalization (i18n).
Strings from my custom menu i translate with "Transalte interface".
But profile tabs I can not translate. I tried translate them by using "Transalte interface", but then displayed always as translated string. Regardless of what language is selected.
Profile tabs i generate with this code:
$items['user/%user/theses'] = array(
'title' => t('Theses'),
'description' => t('Theses'),
'page callback' => 'institute_theses',
'page arguments' => array(1),
'access arguments' => array('access content'),
'file' => 'profile/institute.profile.inc',
'type' => MENU_LOCAL_TASK,
);
$items['user/%user/publications'] = array(
'title' => t('Selected publications'),
'description' => t('Selected publications'),
'page callback' => 'institute_publications',
'page arguments' => array(1),
'access arguments' => array('access content'),
'file' => 'profile/institute.profile.inc',
'type' => MENU_LOCAL_TASK,
);
$items['user/%user/research'] = array(
'title' => t('Research'),
'description' => t('Research'),
'page callback' => 'institute_user_research',
'page arguments' => array(1),