Changeset 6341

Show
Ignore:
Timestamp:
08/11/08 08:38:46 (4 months ago)
Author:
p_lindheimer
Message:

modify error messages when dependencies are not met to be more clear that they will be skipped and can be tried again after the others are installed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/page.modules.php

    r6284 r6341  
    419419                                                if (is_array($errors = module_checkdepends($modules_online[$module]))) { 
    420420                                                        $skipaction = true; 
    421                                                         $errorstext[] = sprintf(_("%s cannot be upgraded: %s Please correct this error first."),   
     421                                                        $errorstext[] = sprintf(_("%s cannot be upgraded: %s Please try again after the dependencies have been installed."),   
    422422                                                                                $modules[$module]['name'], 
    423423                                                                                '<ul><li>'.implode('</li><li>',$errors).'</li></ul>'); 
     
    431431                                                if (is_array($errors = module_checkdepends($modules_online[$module]))) { 
    432432                                                        $skipaction = true; 
    433                                                         $errorstext[] = sprintf(_("%s cannot be installed: %s Please correct this error first."),   
     433                                                        $errorstext[] = sprintf(_("%s cannot be installed: %s Please try again after the dependencies have been installed."),   
    434434                                                                                $modules[$module]['name'], 
    435435                                                                                '<ul><li>'.implode('</li><li>',$errors).'</li></ul>'); 
     
    443443                                                if (is_array($errors = module_checkdepends($modules[$module]))) { 
    444444                                                        $skipaction = true; 
    445                                                         $errorstext[] = sprintf((($modules[$module]['status'] == MODULE_STATUS_NEEDUPGRADE) ?  _("%s cannot be upgraded: %s Please correct this error first.") : _("%s cannot be installed: %s Please correct this error first.") ),   
     445                                                        $errorstext[] = sprintf((($modules[$module]['status'] == MODULE_STATUS_NEEDUPGRADE) ?  _("%s cannot be upgraded: %s Please try again after the dependencies have been installed.") : _("%s cannot be installed: %s Please try again after the dependencies have been installed.") ),   
    446446                                                                                $modules[$module]['name'], 
    447447                                                                                '<ul><li>'.implode('</li><li>',$errors).'</li></ul>'); 
     
    458458                                        if (is_array($errors = module_checkdepends($modules[$module]))) { 
    459459                                                $skipaction = true; 
    460                                                 $errorstext[] = sprintf(_("%s cannot be enabled: %s Please correct this error first."),   
     460                                                $errorstext[] = sprintf(_("%s cannot be enabled: %s Please try again after the dependencies have been installed."),   
    461461                                                                        $modules[$module]['name'], 
    462462                                                                        '<ul><li>'.implode('</li><li>',$errors).'</li></ul>'); 
     
    468468                                        if (is_array($errors = module_reversedepends($modules[$module]))) { 
    469469                                                $skipaction = true; 
    470                                                 $errorstext[] = sprintf(_("%s cannot be disabled because the following modules depend on it: %s Please correct this error first."),   
     470                                                $errorstext[] = sprintf(_("%s cannot be disabled because the following modules depend on it: %s Please disable those modules first then try again."),   
    471471                                                                        $modules[$module]['name'], 
    472472                                                                        '<ul><li>'.implode('</li><li>',$errors).'</li></ul>'); 
     
    479479                                                if (is_array($errors = module_reversedepends($modules[$module]))) { 
    480480                                                        $skipaction = true; 
    481                                                         $errorstext[] = sprintf(_("%s cannot be uninstalled because the following modules depend on it: %s Please correct this error first."),   
     481                                                        $errorstext[] = sprintf(_("%s cannot be uninstalled because the following modules depend on it: %s Please disable those modules first then try again."),   
    482482                                                                                $modules[$module]['name'], 
    483483                                                                                '<ul><li>'.implode('</li><li>',$errors).'</li></ul>'); 
     
    509509                if (count($actionstext) > 0) { 
    510510                        if (count($errorstext) > 0) { 
    511                                 echo "<h4>"._("You may confirm the remaining selection (errors will be skipped):")."</h4>\n"; 
     511                                echo "<h4>"._("You may confirm the remaining selection and then try the again for the listed issues once the required dependencies have been met:")."</h4>\n"; 
    512512                        } else { 
    513513                                echo "<h4>"._("Please confirm the following actions:")."</h4>\n"; 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads