Changeset 11903

Show
Ignore:
Timestamp:
03/22/11 21:04:28 (2 years ago)
Author:
p_lindheimer
Message:

fixes #4995 tooltipe not localizing, I hope, needs testing

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.9/core/page.advancedsettings.php

    r11892 r11903  
    8686    if ($display_friendly_name) { 
    8787      $name_label_raw = $c['name']; 
     88      $description_raw = $c['description']; 
    8889      if ($c['module'] && extension_loaded('gettext') && is_dir("modules/".$c['module']."/i18n")) { 
    8990        bindtextdomain($c['module'],"modules/".$c['module']."/i18n"); 
    9091        bind_textdomain_codeset($c['module'], 'utf8'); 
    9192        $name_label = dgettext($c['module'],$name_label_raw); 
     93        $tt_description = dgettext($c['module'],$description_raw); 
    9294        if ($name_label == $name_label_raw) { 
    9395          $name_label = _($name_label_raw); 
    9496        } 
     97        if ($tt_description == $description_raw) { 
     98          $tt_description = _($description_raw); 
     99        } 
    95100      } else { 
    96101        $name_label = _($name_label_raw); 
     102        $tt_description = _($description_raw); 
    97103      } 
    98104    } else { 
    99105      $name_label = $c['keyword']; 
     106      $tt_description = $c['description']; 
    100107    } 
    101108 
     
    115122      $default_val .= '<br />'.sprintf(_("Friendly Name: %s"),$c['name']); 
    116123    } 
    117     echo '<tr><td><a href="javascript:void(null)" class="info">'.$name_label.'<span>'.$c['description'].'<br /><br >'.$default_val.'</span></a></td>'; 
     124    echo '<tr><td><a href="javascript:void(null)" class="info">'.$name_label.'<span>'.$tt_description.'<br /><br >'.$default_val.'</span></a></td>'; 
    118125    echo '<td>'; 
    119126    switch ($c['type']) {