diff options
Diffstat (limited to 'inc/functions.php')
-rw-r--r-- | inc/functions.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/inc/functions.php b/inc/functions.php index 73e591c5..34ecf510 100644 --- a/inc/functions.php +++ b/inc/functions.php | |||
@@ -349,19 +349,19 @@ function action_to_do($action, $url, $id = 0) | |||
349 | if (DOWNLOAD_PICTURES) { | 349 | if (DOWNLOAD_PICTURES) { |
350 | $content = filtre_picture($parametres_url['content'], $url, $last_id); | 350 | $content = filtre_picture($parametres_url['content'], $url, $last_id); |
351 | } | 351 | } |
352 | $msg->add('s', 'the link has been added successfully'); | 352 | $msg->add('s', _('the link has been added successfully')); |
353 | } | 353 | } |
354 | else { | 354 | else { |
355 | $msg->add('e', 'error during insertion : the link wasn\'t added'); | 355 | $msg->add('e', _('error during insertion : the link wasn\'t added')); |
356 | } | 356 | } |
357 | } | 357 | } |
358 | else { | 358 | else { |
359 | $msg->add('e', 'error during url preparation : the link wasn\'t added'); | 359 | $msg->add('e', _('error during url preparation : the link wasn\'t added')); |
360 | logm('error during url preparation'); | 360 | logm('error during url preparation'); |
361 | } | 361 | } |
362 | } | 362 | } |
363 | else { | 363 | else { |
364 | $msg->add('e', 'error during url preparation : the link is not valid'); | 364 | $msg->add('e', _('error during url preparation : the link is not valid')); |
365 | logm($url . ' is not a valid url'); | 365 | logm($url . ' is not a valid url'); |
366 | } | 366 | } |
367 | 367 | ||
@@ -370,11 +370,11 @@ function action_to_do($action, $url, $id = 0) | |||
370 | case 'delete': | 370 | case 'delete': |
371 | if ($store->deleteById($id)) { | 371 | if ($store->deleteById($id)) { |
372 | remove_directory(ABS_PATH . $id); | 372 | remove_directory(ABS_PATH . $id); |
373 | $msg->add('s', 'the link has been deleted successfully'); | 373 | $msg->add('s', _('the link has been deleted successfully')); |
374 | logm('delete link #' . $id); | 374 | logm('delete link #' . $id); |
375 | } | 375 | } |
376 | else { | 376 | else { |
377 | $msg->add('e', 'the link wasn\'t deleted'); | 377 | $msg->add('e', _('the link wasn\'t deleted')); |
378 | logm('error : can\'t delete link #' . $id); | 378 | logm('error : can\'t delete link #' . $id); |
379 | } | 379 | } |
380 | break; | 380 | break; |