Steps to reproduce:

You must have one menu for all languages (example: English and Spanish)
Place a english menu item (it must be "Title:Contact path:contact" or empty_page callback page)
Create spanish menu item (Title: Contactar path:contact)
Visit /contact and es/contact, Both have the same title title.

Create a path alias doesn't solve the problem. If I remove menu items the problem dissapears.

Comments

Jorge Navarro’s picture

The problem has been reported also here: http://drupal.stackexchange.com/questions/59602/how-to-translate-page-ti...
But somehow the problem has come again.

Jorge Navarro’s picture

Jorge Navarro’s picture

For now the temporal solution that seems to work for visible strings:

function THEME_page_alter(&$page,&$vars) {
  $path = $_GET['q'];
  elseif ($path == 'page-title'){
    $title = t('Page title');
    drupal_set_title($title);
    drupal_set_breadcrumb('');
  }
}

function THEME_preprocess_html(&$vars) {
  $path = $_GET['q'];
if ($path == 'page-title'){
    $sitename = variable_get("site_name");
	$vars['head_title'] = t('Page Title').' | ' .$sitename;
  }
}