Ignore:
Timestamp:
10/19/08 16:49:42 (4 years ago)
Author:
hverton
Message:

updated the translation module to work with the new default_locale setting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/ExiteCMS/translations/php-files/modules/translations/admin.php

    r1835 r1876  
    265265        $data = dbarray($result); 
    266266        // check if we're not deleting the CMS default language 
    267         if ($data['locale_code'] == "en") { 
     267        if ($data['locale_code'] == $settings['default_locale']) { 
    268268            $message = sprintf($locale['910'], $data['locale_name']); 
    269269        } else { 
     
    354354    } 
    355355    $data['can_edit'] = true; 
    356     $data['can_delete'] = ($data['locale_code'] != "en"); 
     356    $data['can_delete'] = ($data['locale_code'] != $settings['default_locale']); 
    357357    $variables['localelist'][]  = $data; 
    358358} 
Note: See TracChangeset for help on using the changeset viewer.