When you adjust the $links['forward']['name'] = t('New name'); with the help of hook_service_links_alter(&$links);
the links are cached in service_links_get_links(), meaning you lose the user language.

// Retrieve the links from the cache.
if (!$reset && ($cache = cache_get('service_links_get_links')) && !empty($cache->data)) {
  $links = $cache->data;
}
CommentFileSizeAuthor
#6 2639176-6.patch1.05 KBSpadXIII
#4 2639176-4.patch1.05 KBSpadXIII
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

StefanPr created an issue. See original summary.

StefanPr’s picture

StefanPr’s picture

SpadXIII’s picture

FileSize
1.05 KB

Quick patch to add the current language to the cache id.

SpadXIII’s picture

Status: Active » Needs review
SpadXIII’s picture

FileSize
1.05 KB

Added a _ to the cache id.