I have a site with 2 languages, English and Greek.
On page admin/user/access/tac_lite the string 'Settings' on the Settings tab appears with its greek translation even if I select English as my language. i.e. it doesn't give me the option to translate it from the translate interface page.

Comments

pavloukos’s picture

On file tac_lite.module lines 56-61

  $items['admin/user/access/tac_lite/settings'] = 
    array('title' => t('Settings'),
          'type' => MENU_DEFAULT_LOCAL_TASK,
          'weight' => -1,
          'access arguments' => array('administer_tac_lite'),
    );

changing t('Settings') to just 'Settings' fixes that I think since that string already exists in core (so it will get its translation from there).
However, after changing that we may need to delete the created entry in locales_source table.

I am just wondering why would'nt drupal create a correct locales_source entry (i.e. Settings) so that we can go translate it afterwards as normal, but instead uses its translated string and puts that in the locales_source!

Anyone?

Dave Cohen’s picture

Status: Active » Fixed

Turns out all the hook_menu titles should be untranslated. Just checked in a fix to DRUPAL-6--1 branch. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.