diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-02 10:39:03 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-02 10:39:03 +0200 |
commit | 2ee436eaa19fd5819a0e6c705b5fcc93f11fb338 (patch) | |
tree | 0800203c342c47f8bb0bbb626f55e6158cd2674a /import.php | |
parent | 02ea9f07691adf79f3f9d6cddfb1e045777927b6 (diff) | |
download | wallabag-2ee436eaa19fd5819a0e6c705b5fcc93f11fb338.tar.gz wallabag-2ee436eaa19fd5819a0e6c705b5fcc93f11fb338.tar.zst wallabag-2ee436eaa19fd5819a0e6c705b5fcc93f11fb338.zip |
poche / pocket / bolsillo / Tasche & more
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 |