Site Map title isn't translatable

Axi - April 16, 2009 - 13:36
Project:Site map
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:by design
Description

When you display the site map (eg : myexample.com/sitemap), the page title isn't translatable.

In order to translate it, I recommend to replace line 50 and 59 of site_map.module like this :

  $items['admin/settings/sitemap'] = array(
    'title' => t('Site map'),
    'description' => t('Control what should be displayed on the site map.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array('site_map_admin_settings'),
    'access arguments' => array('administer site configuration'),
    'file' => 'site_map.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );

#1

frjo - April 18, 2009 - 21:24

In Drupal 6 titles are per default run through t(), see http://api.drupal.org/api/function/hook_menu/6. The title should therefor already be translatable.

#2

kiamlaluno - May 11, 2009 - 16:55
Status:active» by design

#3

new_B - September 24, 2009 - 20:06

Hi,

I'm using the site map module with i18nmenu but can't seem to get the site map page title to display in the correct language. I have a secondary menu for each language, which includes a link to the sitemap page, in the appropriate language.

When I'm in English, the default language, the title of the site map page is displaying in the other language. The title is displayed in the other language no matter what language mode I'm in.

Has anybody encountered this issue and/or have any suggestions for solving it?

Thanks in advance.

#4

Mark0s81 - September 29, 2009 - 10:51

Hi,

I've the same problem.

Thanks.

#5

new_B - September 29, 2009 - 13:23
Version:6.x-1.x-dev» 6.x-1.1
Status:by design» active

Btw...I forgot to mention that I'm referring to the 6.x-1.1 branch.

Any suggestions on solving the issue? (I'm actually having a similar problem with translating the contact form's page title & user login page title. Not sure if anybody has encountered this too (& if this is the right place to post)?)

Thanks.

#6

kiamlaluno - September 29, 2009 - 13:24
Version:6.x-1.1» 6.x-1.x-dev
Status:active» by design

See comment #1.
If you have any issues with i18nmenu.module, then open a different issue. The question asked from the OP has already gotten an answer; the original question, then, is different from the question you are asking (which should be placed in a different issue report).

#7

Mark0s81 - September 29, 2009 - 16:56

I've had "'title' => t('Site map')," to hook_menu in site_map.module but i don't resolve this problem.
I've "Site map" as title in all languages.

I'm using 6.x-1.1 version.

Thanks.

#8

new_B - September 30, 2009 - 13:41

Thanks for the clarification (& sorry for mis-posting). I've created a new issue at http://drupal.org/node/592068.

 
 

Drupal is a registered trademark of Dries Buytaert.