Hello there:)
That's the 1st post here of mine coz I cannot find any solution in a web.
I develop set of modules for one of my customers and the step I need to go through is to have an internationalized url paths in modules menu items. By the example below, it does mean, that the item's key 'my-content' has to be automatically translated into another languages without creating another item in this func with hard-coded key-path value. Moreover - these paths are custom pages, custom taxonomy pages either custom node collections.
<?php
function my_module_menu() {
$items['my-content/%'] = array(
'title' => 'Custom title',
'page callback' => 'my_page',
'access arguments' => array('access content'),
'page arguments' => array(1),
'type' => MENU_CALLBACK,
);
return $items;
}
?>
Thanks at all for any prompts;)
1 year 24 weeks ago