There are a lot of places that is needed to use the t() function to allow the drupal translations.

For exemple:

toc.tpl.php

<h4>Table of Contents:</h4>

should be replaced by:

<h4><?php t('Table of Contents:') ?></h4>

pagination.module

function pagination_menu()   {
    $menu['admin/settings/pagination']   =   array(
        'title'             =>  'Pagination (Node)',
        'description'       =>  'Allow for arbitrary nodes to be paginated.',

should be replaced by:

function pagination_menu()   {
    $menu['admin/settings/pagination']   =   array(
        'title'             =>  t('Pagination (Node)'),
        'description'       => t('Allow for arbitrary nodes to be paginated.'),

Comments

mundanity’s picture

Category: bug » task
Status: Needs review » Patch (to be ported)

Hi there!

Thanks for the feedback, I'll update the toc.tpl.php file in the dev version with a more consistent approach. According to the API for hook_menu(), "title" and "description" should be untranslated (they are translated later)

  • "title": Required. The untranslated title of the menu item.
  • "description": The untranslated description of the menu item.
mundanity’s picture

Assigned: Unassigned » mundanity
Status: Patch (to be ported) » Fixed

toc.tpl.php now has a $toc variable (updates in dev when it rebuilds)

Anonymous’s picture

Status: Fixed » Closed (fixed)

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