Changeset 6904

Show
Ignore:
Timestamp:
09/30/08 15:25:06 (2 months ago)
Author:
p_lindheimer
Message:

allow page.ampusers.php to get it's translations for the displays from the hosting modules if available or fallback to the default (amp) domain otherwise

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5/core/page.ampusers.php

    r6768 r6904  
    3535                        foreach($module['items'] as $itemKey => $item) { 
    3636                                $listKey = (!empty($item['display']) ? $item['display'] : $itemKey); 
     37                                $item['rawname'] = $module['rawname']; 
    3738                                $module_list[ $listKey ] = $item; 
    3839                        } 
     
    220221                                        echo "<option value=\"".$key."\""; 
    221222                                        if (in_array($key, $sections)) echo " SELECTED"; 
     223                                        $label = dgettext($row['rawname'],$row['name']); 
     224                                        if ($label == $row['name']) { 
     225                                                $label = _($label); 
     226                                        } 
    222227                                        echo ">"._($row['name'])."</option>\n"; 
    223228                                } 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads