Some strings cannot be translated.

oriol_e9g - May 28, 2007 - 09:30
Project:Recent Changes
Version:5.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

The strings "new" and "moved" cannot be translated.

You need to change the recent_changes.module file:

      if ($old_node->vid == 0) {
        // The node is new.
        $special = '<span class="change-flag">new</span> ';
      }
      elseif ($old_node->title != $change->title) {
        // The node title changed.
        $special = '<span class="change-flag">moved</span> ';
      }

for

      if ($old_node->vid == 0) {
        // The node is new.
        $special = '<span class="change-flag">'.t(new).'</span> ';
      }
      elseif ($old_node->title != $change->title) {
        // The node title changed.
        $special = '<span class="change-flag">'.t(moved).'</span> ';
      }

#1

oriol_e9g - May 28, 2007 - 09:33

Oops! sorry! The correct code is:

      if ($old_node->vid == 0) {
        // The node is new.
        $special = '<span class="change-flag">'.t('new').'</span> ';
      }
      elseif ($old_node->title != $change->title) {
        // The node title changed.
        $special = '<span class="change-flag">'.t('moved').'</span> ';
      }

#2

oriol_e9g - May 28, 2007 - 17:08

Other sting without translation:

change this:

  // Filter node type of recent changes view
  $node_types = array('' => 'all node types');

for this:

  // Filter node type of recent changes view
  $node_types = array('' => t('all node types'));

 
 

Drupal is a registered trademark of Dries Buytaert.