Changeset 6879

Show
Ignore:
Timestamp:
09/29/08 08:03:56 (2 months ago)
Author:
p_lindheimer
Message:

fixes #3247 was using display name as domain instead of module name to look for translation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.5/amp_conf/htdocs/admin/views/freepbx_admin.php

    r6725 r6879  
    2121                $sort_type[$key] = $row['type']; 
    2222 
    23                 if (extension_loaded('gettext') && is_dir("modules/".$key."/i18n")) { 
    24                         bindtextdomain($key,"modules/".$key."/i18n"); 
     23                if (extension_loaded('gettext') && is_dir("modules/".$row['module']['rawname']."/i18n")) { 
     24                        bindtextdomain($key,"modules/".$row['module']['rawname']."/i18n"); 
    2525                        bind_textdomain_codeset($key, 'utf8'); 
    2626                        $framework_text_domain[$key] = true; 
     
    105105                echo "\t<li class=\"".implode(' ',$li_classes)."\">"; 
    106106                if ($framework_text_domain[$key]) { 
    107                         $label_text = dgettext($key,$row['name']); 
     107                        $label_text = dgettext($row['module']['rawname'],$row['name']); 
    108108                        if ($label_text == $row['name']) { 
    109109                                $label_text = _($label_text); 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads