aboutsummaryrefslogtreecommitdiffhomepage
path: root/import.php
diff options
context:
space:
mode:
Diffstat (limited to 'import.php')
-rw-r--r--import.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/import.php b/import.php
index c1ebdf49..45fe8334 100644
--- a/import.php
+++ b/import.php
@@ -14,11 +14,7 @@ include dirname(__FILE__).'/inc/config.php';
14include dirname(__FILE__).'/inc/simple_html_dom.php'; 14include dirname(__FILE__).'/inc/simple_html_dom.php';
15 15
16if (!isset($_GET['start'])) { 16if (!isset($_GET['start'])) {
17 echo ' 17 echo _('Please execute the import script locally, it can take a very long time.') . '<br /><br />' . _('Please choose between Pocket & Readabilty :') . '<br /><a href="import.php?start=pocket">' . _('Bye bye Pocket, let\'s go !') . '</a><br /><a href="import.php?start=readability">' . _('Bye bye Readability, let\'s go !') . '</a>';
18 Please execute the import script locally, it can take a very long time. <br /><br />
19 Please choose between Pocket & Readabilty :
20 <br /><a href="import.php?start=pocket">Bye bye Pocket, let\'s go !</a>
21 <br /><a href="import.php?start=readability">Bye bye Readability, let\'s go !</a>';
22} 18}
23else { 19else {
24 if ($_GET['start'] == 'pocket') { 20 if ($_GET['start'] == 'pocket') {
@@ -49,7 +45,7 @@ else {
49 $read = 1; 45 $read = 1;
50 } 46 }
51 47
52 echo 'Import from Pocket completed. <a href="index.php">Welcome to #poche !</a>'; 48 echo _('Import from Pocket completed.') . '<a href="index.php">' . _('Welcome to poche !') .'</a>';
53 logm('import from pocket completed'); 49 logm('import from pocket completed');
54 } 50 }
55 else if ($_GET['start'] == 'readability') { 51 else if ($_GET['start'] == 'readability') {
@@ -67,11 +63,11 @@ else {
67 action_to_do('add', $url); 63 action_to_do('add', $url);
68 } 64 }
69 65
70 echo 'Import from Readability completed. <a href="index.php">Welcome to #poche !</a>'; 66 echo _('Import from Readability completed.') . '<a href="index.php">' . _('Welcome to poche !') . '</a>';
71 logm('import from Readability completed'); 67 logm('import from Readability completed');
72 } 68 }
73 else { 69 else {
74 echo 'Error with the import. <a href="index.php">Welcome to #poche !</a>'; 70 echo _('Error with the import.') . '<a href="index.php">' . _('Back to poche'). '</a>';
75 logm('error with the import'); 71 logm('error with the import');
76 } 72 }
77} \ No newline at end of file 73} \ No newline at end of file