The shortcut 'Find content' in the shortcut bar under the category Content is not translated. See attached screenshot.

The string in the translation file I am using; drupal-7.0.fr.po:

msgid "Find content"
msgstr "Trouver des contenus"

shortcut.install has a t() for the string:

function shortcut_install() {
  $t = get_t();
  // Create an initial default shortcut set.
  $shortcut_set = new stdClass();
  $shortcut_set->title = $t('Default');
  $shortcut_set->links = array(
    array(
      'link_path' => 'node/add',
      'link_title' => $t('Add content'),
      'weight' => -20,
    ),
    array(
      'link_path' => 'admin/content',
      'link_title' => $t('Find content'),
      'weight' => -19,
    ),
  );
  shortcut_set_save($shortcut_set);
}

Am I missing something here?

CommentFileSizeAuthor
findContentShortcut.png3.45 KBTor Arne Thune

Comments

droplet’s picture

if it imports .po during installation, we need some more improve. otherwise it is duplicate as #1028538: Some shortcut links not translated

Tor Arne Thune’s picture

Status: Active » Closed (duplicate)

Marking this as a duplicate of the issue you linked. Thanks.