mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
poche / pocket / bolsillo / Tasche & more
This commit is contained in:
parent
02ea9f0769
commit
2ee436eaa1
8 changed files with 136 additions and 21 deletions
|
@ -15,7 +15,7 @@ class MyTool
|
|||
define('START_TIME', microtime(true));
|
||||
|
||||
if (phpversion() < 5) {
|
||||
die("Argh you don't have PHP 5 !");
|
||||
die(_('Oops, it seems you don\'t have PHP 5.'));
|
||||
}
|
||||
|
||||
error_reporting(E_ALL);
|
||||
|
|
|
@ -20,6 +20,13 @@ define ('CONVERT_LINKS_FOOTNOTES', TRUE);
|
|||
define ('REVERT_FORCED_PARAGRAPH_ELEMENTS',FALSE);
|
||||
define ('DOWNLOAD_PICTURES', TRUE);
|
||||
define ('SALT', '464v54gLLw928uz4zUBqkRJeiPY68zCX');
|
||||
define ('LANG', 'fr_FR.UTF8');
|
||||
|
||||
putenv("LC_ALL=".LANG);
|
||||
setlocale(LC_ALL, LANG);
|
||||
bindtextdomain(LANG, "./locale");
|
||||
textdomain(LANG);
|
||||
|
||||
$storage_type = 'sqlite'; # sqlite or file
|
||||
|
||||
include 'functions.php';
|
||||
|
|
|
@ -349,19 +349,19 @@ function action_to_do($action, $url, $id = 0)
|
|||
if (DOWNLOAD_PICTURES) {
|
||||
$content = filtre_picture($parametres_url['content'], $url, $last_id);
|
||||
}
|
||||
$msg->add('s', 'the link has been added successfully');
|
||||
$msg->add('s', _('the link has been added successfully'));
|
||||
}
|
||||
else {
|
||||
$msg->add('e', 'error during insertion : the link wasn\'t added');
|
||||
$msg->add('e', _('error during insertion : the link wasn\'t added'));
|
||||
}
|
||||
}
|
||||
else {
|
||||
$msg->add('e', 'error during url preparation : the link wasn\'t added');
|
||||
$msg->add('e', _('error during url preparation : the link wasn\'t added'));
|
||||
logm('error during url preparation');
|
||||
}
|
||||
}
|
||||
else {
|
||||
$msg->add('e', 'error during url preparation : the link is not valid');
|
||||
$msg->add('e', _('error during url preparation : the link is not valid'));
|
||||
logm($url . ' is not a valid url');
|
||||
}
|
||||
|
||||
|
@ -370,11 +370,11 @@ function action_to_do($action, $url, $id = 0)
|
|||
case 'delete':
|
||||
if ($store->deleteById($id)) {
|
||||
remove_directory(ABS_PATH . $id);
|
||||
$msg->add('s', 'the link has been deleted successfully');
|
||||
$msg->add('s', _('the link has been deleted successfully'));
|
||||
logm('delete link #' . $id);
|
||||
}
|
||||
else {
|
||||
$msg->add('e', 'the link wasn\'t deleted');
|
||||
$msg->add('e', _('the link wasn\'t deleted'));
|
||||
logm('error : can\'t delete link #' . $id);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue