add pre-registered links to user menu via hook_menu One step before being forced to using internationalization (i18n) module!

I'am trying to add translatable Register and Login links to secondary menu via hook_menu in way which user module dose for Account and Logout links via user_menu():

// user module:

function user_menu(){
  ...
  $items['user/logout'] = array(
    'title' =&gt; 'Log out',
    'access callback' =&gt; 'user_is_logged_in',
    'page callback' =&gt; 'user_logout',
    'weight' =&gt; 10,
    'menu_name' =&gt; 'user-menu',
    'file' =&gt; 'user.pages.inc',
  );
  ...
}


but as this two links (user/register and user/login) re pre-defined via user_menu(), I whould like to know how can I add my links to primary menu?

so simplified question is:

how can I add pre-registered links to menu via hook_menu() ?
You can use hook_menu_alter() to override properties for existing paths:

function MYMODULE_menu_alter(&amp;$items) {
  $items['user/logout']['menu_name'] = 'primary-links';
}