| 302 | | $actionstext[] = sprintf(_("%s %s will be upgraded to online verison %s"), $modules[$module]['name'], $modules[$module]['dbversion'], $modules_online[$module]['version']); |
|---|
| | 303 | if (is_array($errors = module_checkdepends($modules_online[$module]))) { |
|---|
| | 304 | $errorstext[] = sprintf(_("%s cannot be upgraded: %s Please correct this error first."), |
|---|
| | 305 | $modules[$module]['name'], |
|---|
| | 306 | '<ul><li>'.implode('</li><li>',$errors).'</li></ul>'); |
|---|
| | 307 | } else { |
|---|
| | 308 | $actionstext[] = sprintf(_("%s %s will be upgraded to online verison %s"), $modules[$module]['name'], $modules[$module]['dbversion'], $modules_online[$module]['version']); |
|---|
| | 309 | |
|---|
| | 310 | } |
|---|
| 307 | | $actionstext[] = sprintf(_("%s %s will be downloaded and installed"), $modules[$module]['name'], $modules[$module]['version']); |
|---|
| | 315 | if (is_array($errors = module_checkdepends($modules_online[$module]))) { |
|---|
| | 316 | $errorstext[] = sprintf(_("%s cannot be installed: %s Please correct this error first."), |
|---|
| | 317 | $modules[$module]['name'], |
|---|
| | 318 | '<ul><li>'.implode('</li><li>',$errors).'</li></ul>'); |
|---|
| | 319 | } else { |
|---|
| | 320 | $actionstext[] = sprintf(_("%s %s will be downloaded and installed"), $modules[$module]['name'], $modules_online[$module]['version']); |
|---|
| | 321 | } |
|---|
| 312 | | if ($modules[$module]['status'] == MODULE_STATUS_NEEDUPGRADE) { |
|---|
| 313 | | $actionstext[] = sprintf(_("%s %s will be upgraded to %s"), $modules[$module]['name'], $modules[$module]['dbversion'], $modules[$module]['version']); |
|---|
| 314 | | } else { |
|---|
| 315 | | $actionstext[] = sprintf(_("%s %s will be installed and enabled"), $modules[$module]['name'], $modules[$module]['version']); |
|---|
| | 326 | if (is_array($errors = module_checkdepends($modules[$module]))) { |
|---|
| | 327 | $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.") ), |
|---|
| | 328 | $modules[$module]['name'], |
|---|
| | 329 | '<ul><li>'.implode('</li><li>',$errors).'</li></ul>'); |
|---|
| | 330 | } else { |
|---|
| | 331 | if ($modules[$module]['status'] == MODULE_STATUS_NEEDUPGRADE) { |
|---|
| | 332 | $actionstext[] = sprintf(_("%s %s will be upgraded to %s"), $modules[$module]['name'], $modules[$module]['dbversion'], $modules[$module]['version']); |
|---|
| | 333 | } else { |
|---|
| | 334 | $actionstext[] = sprintf(_("%s %s will be installed and enabled"), $modules[$module]['name'], $modules[$module]['version']); |
|---|
| | 335 | } |
|---|
| 320 | | $actionstext[] = sprintf(_("%s %s will be enabled"), $modules[$module]['name'], $modules[$module]['dbversion']); |
|---|
| | 340 | if (is_array($errors = module_checkdepends($modules[$module]))) { |
|---|
| | 341 | $errorstext[] = sprintf(_("%s cannot be enabled: %s Please correct this error first."), |
|---|
| | 342 | $modules[$module]['name'], |
|---|
| | 343 | '<ul><li>'.implode('</li><li>',$errors).'</li></ul>'); |
|---|
| | 344 | } else { |
|---|
| | 345 | $actionstext[] = sprintf(_("%s %s will be enabled"), $modules[$module]['name'], $modules[$module]['dbversion']); |
|---|
| | 346 | } |
|---|
| 323 | | $actionstext[] = sprintf(_("%s %s will be disabled"), $modules[$module]['name'], $modules[$module]['dbversion']); |
|---|
| | 349 | if (is_array($errors = module_reversedepends($modules[$module]))) { |
|---|
| | 350 | $errorstext[] = sprintf(_("%s cannot be disabled because the following modules depend on it: %s Please correct this error first."), |
|---|
| | 351 | $modules[$module]['name'], |
|---|
| | 352 | '<ul><li>'.implode('</li><li>',$errors).'</li></ul>'); |
|---|
| | 353 | } else { |
|---|
| | 354 | $actionstext[] = sprintf(_("%s %s will be disabled"), $modules[$module]['name'], $modules[$module]['dbversion']); |
|---|
| | 355 | } |
|---|
| 327 | | $actionstext[] = sprintf(_("%s %s will be uninstalled"), $modules[$module]['name'], $modules[$module]['dbversion']); |
|---|
| | 359 | if (is_array($errors = module_reversedepends($modules[$module]))) { |
|---|
| | 360 | $errorstext[] = sprintf(_("%s cannot be uninstalled because the following modules depend on it: %s Please correct this error first."), |
|---|
| | 361 | $modules[$module]['name'], |
|---|
| | 362 | '<ul><li>'.implode('</li><li>',$errors).'</li></ul>'); |
|---|
| | 363 | } else { |
|---|
| | 364 | $actionstext[] = sprintf(_("%s %s will be uninstalled"), $modules[$module]['name'], $modules[$module]['dbversion']); |
|---|
| | 365 | } |
|---|