diff options
Diffstat (limited to 'import.php')
-rw-r--r-- | import.php | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -14,11 +14,7 @@ include dirname(__FILE__).'/inc/config.php'; | |||
14 | include dirname(__FILE__).'/inc/simple_html_dom.php'; | 14 | include dirname(__FILE__).'/inc/simple_html_dom.php'; |
15 | 15 | ||
16 | if (!isset($_GET['start'])) { | 16 | if (!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 | } |
23 | else { | 19 | else { |
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 |