Changeset 5359

Show
Ignore:
Timestamp:
12/05/07 23:21:06 (1 year ago)
Author:
p_lindheimer
Message:

#2461 - I think this will fix the reported localization issue but I don't have any translations that would exercise this and there has been no feedback provided per the request on the ticket.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.4/featurecodeadmin/page.featurecodeadmin.php

    r5289 r5359  
    8181        $currentmodule = "(none)"; 
    8282        foreach($featurecodes as $item) { 
    83                 $moduledesc = isset($item['moduledescription'])?_($item['moduledescription']):null; 
     83 
     84                // change domains to get the translations from each module 
     85                // 
     86                bindtextdomain($item['modulename'],"modules/".$item['modulename']."./i18n"); 
     87                $moduledesc = isset($item['moduledescription'])?gettext($item['moduledescription']):null; 
     88                $featuredesc = gettext($item['featuredescription']); 
     89                bindtextdomain($dispnum,"modules/".$dispnum."./i18n"); 
     90 
    8491                $moduleena = ($item['moduleenabled'] == 1 ? true : false); 
    85  
    86                 $featuredesc = _($item['featuredescription']); 
    8792                $featureid = $item['modulename'] . '#' . $item['featurename']; 
    8893                $featureena = ($item['featureenabled'] == 1 ? true : false);