]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #387 from inthepoche/dev 1.3.1
authorNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Tue, 7 Jan 2014 12:20:23 +0000 (04:20 -0800)
committerNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Tue, 7 Jan 2014 12:20:23 +0000 (04:20 -0800)
poche 1.3.1

33 files changed:
inc/3rdparty/FlattrItem.class.php
inc/3rdparty/site_config/custom/interviewmagazine.com.txt [new file with mode: 0644]
inc/3rdparty/site_config/custom/inthepoche.com.txt [deleted file]
inc/poche/Database.class.php
inc/poche/Poche.class.php
inc/poche/pochePictures.php
locale/cs_CZ.utf8/LC_MESSAGES/cs_CZ.utf8.mo
locale/cs_CZ.utf8/LC_MESSAGES/cs_CZ.utf8.po
locale/de_DE.utf8/LC_MESSAGES/de_DE.utf8.mo
locale/de_DE.utf8/LC_MESSAGES/de_DE.utf8.po
locale/en_EN.utf8/LC_MESSAGES/en_EN.utf8.mo
locale/en_EN.utf8/LC_MESSAGES/en_EN.utf8.po
locale/es_ES.utf8/LC_MESSAGES/es_ES.utf8.mo
locale/es_ES.utf8/LC_MESSAGES/es_ES.utf8.po
locale/fa_IR.utf8/LC_MESSAGES/fa_IR.utf8.mo
locale/fa_IR.utf8/LC_MESSAGES/fa_IR.utf8.po
locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.mo
locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.po
locale/it_IT.utf8/LC_MESSAGES/it_IT.utf8.mo
locale/it_IT.utf8/LC_MESSAGES/it_IT.utf8.po
locale/ru_RU.utf8/LC_MESSAGES/ru_RU.utf8.mo
locale/ru_RU.utf8/LC_MESSAGES/ru_RU.utf8.po
poche_compatibility_test.php
themes/README.md
themes/default/_top.twig
themes/default/config.twig
themes/default/css/print.css
themes/default/edit-tags.twig
themes/default/img/apple-touch-icon-144x144-precomposed.png
themes/default/img/apple-touch-icon-72x72-precomposed.png
themes/default/img/apple-touch-icon.png
themes/default/img/logo.png [deleted file]
themes/default/img/logo.svg [new file with mode: 0644]

index 0d3e69d0d44346500d0ce6a28d331ba80683fbce..711b4ee0787aa6f906419bf642ab7969a4e06581 100644 (file)
@@ -14,12 +14,12 @@ class FlattrItem {
         $flattrResponse = file_get_contents(CACHE . "/flattr/".$id.".cache");
         if($flattrResponse != FALSE) {
             $result = json_decode($flattrResponse);
-            if (isset($result->message)){
+                       if (isset($result->message)){
                 if ($result->message == "flattrable") {
                     $this->status = FLATTRABLE;
                 }
             } 
-            elseif ($result->link) {
+               elseif (is_object($result) && $result->link) {
                 $this->status = FLATTRED;
                 $this->flattrItemURL = $result->link;
                 $this->numflattrs = $result->flattrs;
diff --git a/inc/3rdparty/site_config/custom/interviewmagazine.com.txt b/inc/3rdparty/site_config/custom/interviewmagazine.com.txt
new file mode 100644 (file)
index 0000000..a9d4f8c
--- /dev/null
@@ -0,0 +1,4 @@
+title: //title
+body: //div[contains(@class, 'block')]
+
+test_url: http://www.interviewmagazine.com/film/spike-jonze
\ No newline at end of file
diff --git a/inc/3rdparty/site_config/custom/inthepoche.com.txt b/inc/3rdparty/site_config/custom/inthepoche.com.txt
deleted file mode 100644 (file)
index ede74b9..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-title: //title
-body: //div[@class='post-content']
-
-prune: no
-tidy: no
-
-test_url: http://www.inthepoche.com/?post/poche-hosting
\ No newline at end of file
index afe02a41e955a66e34bebf59f37129df76fd7539..04731821fb3311a6cd0e6180bfe5d8bc4ec9ebdb 100644 (file)
@@ -81,7 +81,7 @@ class Database {
 
         if (STORAGE == 'sqlite') {
             $sql = '
-                CREATE TABLE tags_entries (
+                CREATE TABLE IF NOT EXISTS tags_entries (
                     id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE,
                     entry_id INTEGER,
                     tag_id INTEGER,
@@ -337,7 +337,7 @@ class Database {
 
     public function retrieveEntriesByTag($tag_id) {
         $sql = 
-            "SELECT * FROM entries
+            "SELECT entries.* FROM entries
             LEFT JOIN tags_entries ON tags_entries.entry_id=entries.id
             WHERE tags_entries.tag_id = ?";
         $query = $this->executeQuery($sql, array($tag_id));
@@ -348,7 +348,7 @@ class Database {
 
     public function retrieveTagsByEntry($entry_id) {
         $sql = 
-            "SELECT * FROM tags
+            "SELECT tags.* FROM tags
             LEFT JOIN tags_entries ON tags_entries.tag_id=tags.id
             WHERE tags_entries.entry_id = ?";
         $query = $this->executeQuery($sql, array($entry_id));
index 4f70afb755c2a0188af55973ca7dd4ab5b7a4ee6..76a73be2b88e188500c3ad7affd11468e2a7dead 100644 (file)
@@ -333,7 +333,9 @@ class Poche
         switch ($action)
         {
             case 'add':
-                $json = file_get_contents(Tools::getPocheUrl() . '/inc/3rdparty/makefulltextfeed.php?url='.urlencode($url->getUrl()).'&max=5&links=preserve&exc=&format=json&submit=Create+Feed');
+                $options = array('http' => array('user_agent' => 'poche'));
+                $context = stream_context_create($options);
+                $json = file_get_contents(Tools::getPocheUrl() . '/inc/3rdparty/makefulltextfeed.php?url='.urlencode($url->getUrl()).'&max=5&links=preserve&exc=&format=json&submit=Create+Feed', false, $context);
                 $content = json_decode($json, true);
                 $title = $content['rss']['channel']['item']['title'];
                 $body = $content['rss']['channel']['item']['description'];
@@ -806,34 +808,37 @@ class Poche
             $url = NULL;
             $favorite = FALSE;
             $archive = FALSE;
-            foreach ($value as $attr => $attr_value) {
-                if ($attr == 'article__url') {
-                    $url = new Url(base64_encode($attr_value));
-                }
-                $sequence = '';
-                if (STORAGE == 'postgres') {
-                    $sequence = 'entries_id_seq';
-                }
-                if ($attr_value == 'true') {
-                    if ($attr == 'favorite') {
-                        $favorite = TRUE;
+            foreach ($value as $item) {
+                foreach ($item as $attr => $value) {
+                    if ($attr == 'article__url') {
+                        $url = new Url(base64_encode($value));
                     }
-                    if ($attr == 'archive') {
-                        $archive = TRUE;
+                    $sequence = '';
+                    if (STORAGE == 'postgres') {
+                        $sequence = 'entries_id_seq';
+                    }
+                    if ($value == 'true') {
+                        if ($attr == 'favorite') {
+                            $favorite = TRUE;
+                        }
+                        if ($attr == 'archive') {
+                            $archive = TRUE;
+                        }
                     }
                 }
-            }
-            # we can add the url
-            if (!is_null($url) && $url->isCorrect()) {
-                $this->action('add', $url, 0, TRUE);
-                $count++;
-                if ($favorite) {
-                    $last_id = $this->store->getLastId($sequence);
-                    $this->action('toggle_fav', $url, $last_id, TRUE);
-                }
-                if ($archive) {
-                    $last_id = $this->store->getLastId($sequence);
-                    $this->action('toggle_archive', $url, $last_id, TRUE);
+
+                # we can add the url
+                if (!is_null($url) && $url->isCorrect()) {
+                    $this->action('add', $url, 0, TRUE);
+                    $count++;
+                    if ($favorite) {
+                        $last_id = $this->store->getLastId($sequence);
+                        $this->action('toggle_fav', $url, $last_id, TRUE);
+                    }
+                    if ($archive) {
+                        $last_id = $this->store->getLastId($sequence);
+                        $this->action('toggle_archive', $url, $last_id, TRUE);
+                    }
                 }
             }
         }
@@ -951,7 +956,7 @@ class Poche
         if (count($entries) > 0) {
             foreach ($entries as $entry) {
                 $newItem = $feed->createNewItem();
-                $newItem->setTitle(htmlentities($entry['title']));
+                $newItem->setTitle($entry['title']);
                 $newItem->setLink(Tools::getPocheUrl() . '?view=view&amp;id=' . $entry['id']);
                 $newItem->setDate(time());
                 $newItem->setDescription($entry['content']);
index 4e4a0b08561eed78c8aecb81b459696842593501..b0cfb9df84934f657fd44e664750ec3956edbea8 100644 (file)
@@ -84,12 +84,12 @@ function create_assets_directory($id)
 {
     $assets_path = ABS_PATH;
     if(!is_dir($assets_path)) {
-        mkdir($assets_path, 0705);
+        mkdir($assets_path, 0715);
     }
 
     $article_directory = $assets_path . $id;
     if(!is_dir($article_directory)) {
-        mkdir($article_directory, 0705);
+        mkdir($article_directory, 0715);
     }
 
     return $article_directory;
@@ -107,4 +107,4 @@ function remove_directory($directory)
         }
         return rmdir($directory);
     }
-}
\ No newline at end of file
+}
index bdf19250c1ce050c5a82af809b1cb1d2719aac75..0e8f88bfc8615424c2c3b8730eb08c61b0126aaf 100644 (file)
Binary files a/locale/cs_CZ.utf8/LC_MESSAGES/cs_CZ.utf8.mo and b/locale/cs_CZ.utf8/LC_MESSAGES/cs_CZ.utf8.mo differ
index a99d39032b1b0239f857c4773b00950a7a507392..8209a9cddfa711012ebf75bbfda242b69f3a2a4b 100644 (file)
@@ -73,7 +73,7 @@ msgstr "Importovat"
 msgid "Please execute the import script locally, it can take a very long time."
 msgstr "Spusťte importní skript lokálně, může to dlouho trvat."
 
-msgid "More infos in the official doc:"
+msgid "More info in the official doc:"
 msgstr "Více informací v oficiální dokumentaci:"
 
 msgid "import from Pocket"
@@ -85,13 +85,13 @@ msgstr "importovat z Readability"
 msgid "import from Instapaper"
 msgstr "importovat z Instapaper"
 
-msgid "Export your poche datas"
+msgid "Export your poche data"
 msgstr "Export dat"
 
 msgid "Click here"
 msgstr "Klikněte zde"
 
-msgid "to export your poche datas."
+msgid "to export your poche data."
 msgstr "pro export vašich dat."
 
 msgid "back to home"
@@ -105,11 +105,11 @@ msgstr "instalovat"
 
 msgid ""
 "poche is still not installed. Please fill the below form to install it. "
-"Don't hesitate to <a href='http://inthepoche.com/doc'>read the documentation "
+"Don't hesitate to <a href='http://doc.inthepoche.com'>read the documentation "
 "on poche website</a>."
 msgstr ""
 "poche ještě není nainstalováno. Pro instalaci vyplňte níže uvedený formulář. "
-"Nezapomeňte <a href='http://inthepoche.com/doc'>si přečíst dokumentaci</a> "
+"Nezapomeňte <a href='http://doc.inthepoche.com'>si přečíst dokumentaci</a> "
 "na stránkách programu."
 
 msgid "Login"
index cf8ae292b35603638072e1c447844b3f97a85f84..253d8c7e44c7a2fb982058be3c0db9dfdc642d25 100644 (file)
Binary files a/locale/de_DE.utf8/LC_MESSAGES/de_DE.utf8.mo and b/locale/de_DE.utf8/LC_MESSAGES/de_DE.utf8.mo differ
index 14aeb0f51d7034ce185a98fe751fd0cd83824689..5b30d3d711431c6953821f264aa062493f4ea7f0 100644 (file)
@@ -67,7 +67,7 @@ msgstr "Import"
 msgid "Please execute the import script locally, it can take a very long time."
 msgstr "Bitte führe das Import Script lokal aus, dies kann eine Weile dauern."
 
-msgid "More infos in the official doc:"
+msgid "More info in the official doc:"
 msgstr "Mehr Informationen in der offiziellen Dokumentation:"
 
 msgid "import from Pocket"
@@ -79,13 +79,13 @@ msgstr "Import aus Readability"
 msgid "import from Instapaper"
 msgstr "Import aus Instapaper"
 
-msgid "Export your poche datas"
+msgid "Export your poche data"
 msgstr "Exportieren Sie Ihre Poche Daten."
 
 msgid "Click here"
 msgstr "Klicke hier"
 
-msgid "to export your poche datas."
+msgid "to export your poche data."
 msgstr "um deine Daten aus Poche zu exportieren."
 
 msgid "back to home"
@@ -99,7 +99,7 @@ msgstr "Installiere dein Poche"
 
 msgid ""
 "poche is still not installed. Please fill the below form to install it. "
-"Don't hesitate to <a href='http://inthepoche.com/doc'>read the documentation "
+"Don't hesitate to <a href='http://doc.inthepoche.com'>read the documentation "
 "on poche website</a>."
 msgstr ""
 "Poche ist noch nicht installiert. Bitte fülle die Felder unten aus, um die "
index f387889df55a870bb94e0d9d2769ce4109cd0130..974ca4f363f5a6cef731463028752fd92c14999a 100644 (file)
Binary files a/locale/en_EN.utf8/LC_MESSAGES/en_EN.utf8.mo and b/locale/en_EN.utf8/LC_MESSAGES/en_EN.utf8.mo differ
index 8e56560de8d2baa48fbe62509a3f5f3eb903b1dd..b78759f53fa31678576f6a2cae9eeddfe88a1d54 100644 (file)
@@ -68,8 +68,8 @@ msgid "Please execute the import script locally, it can take a very long time."
 msgstr ""
 "Please execute the import script locally, it can take a very long time."
 
-msgid "More infos in the official doc:"
-msgstr "More infos in the official doc:"
+msgid "More info in the official doc:"
+msgstr "More info in the official doc:"
 
 msgid "import from Pocket"
 msgstr "import from Pocket"
@@ -80,14 +80,14 @@ msgstr "import from Readability"
 msgid "import from Instapaper"
 msgstr "import from Instapaper"
 
-msgid "Export your poche datas"
-msgstr "Export your poche datas"
+msgid "Export your poche data"
+msgstr "Export your poche data"
 
 msgid "Click here"
 msgstr "Click here"
 
-msgid "to export your poche datas."
-msgstr "to export your poche datas."
+msgid "to export your poche data."
+msgstr "to export your poche data."
 
 msgid "back to home"
 msgstr "back to home"
@@ -100,11 +100,11 @@ msgstr "install your poche"
 
 msgid ""
 "poche is still not installed. Please fill the below form to install it. "
-"Don't hesitate to <a href='http://inthepoche.com/doc'>read the documentation "
+"Don't hesitate to <a href='http://doc.inthepoche.com'>read the documentation "
 "on poche website</a>."
 msgstr ""
 "poche is still not installed. Please fill the below form to install it. "
-"Don't hesitate to <a href='http://inthepoche.com/doc'>read the documentation "
+"Don't hesitate to <a href='http://doc.inthepoche.com'>read the documentation "
 "on poche website</a>."
 
 msgid "Login"
index 0122cebcd3a0c67a4192bd5122caf02429ee2779..2097823970de4e3e791c4ee77bf4601cfc8a2ae4 100644 (file)
Binary files a/locale/es_ES.utf8/LC_MESSAGES/es_ES.utf8.mo and b/locale/es_ES.utf8/LC_MESSAGES/es_ES.utf8.mo differ
index 833d180395f568b3e994d9277c9fc9f4f702cc6a..afe0595def4bfd63841b6bcbbdbec874cb5b64df 100644 (file)
@@ -68,7 +68,7 @@ msgid "Please execute the import script locally, it can take a very long time."
 msgstr ""
 "Por favor, ejecute la importación en local, esto puede demorar un tiempo."
 
-msgid "More infos in the official doc:"
+msgid "More info in the official doc:"
 msgstr "Más información en la documentación oficial :"
 
 msgid "import from Pocket"
@@ -80,13 +80,13 @@ msgstr "importación desde Readability"
 msgid "import from Instapaper"
 msgstr "importación desde Instapaper"
 
-msgid "Export your poche datas"
+msgid "Export your poche data"
 msgstr "Exportar sus datos de poche"
 
 msgid "Click here"
 msgstr "Haga clic aquí"
 
-msgid "to export your poche datas."
+msgid "to export your poche data."
 msgstr "para exportar sus datos de poche."
 
 msgid "back to home"
@@ -100,11 +100,11 @@ msgstr "instala tu Poche"
 
 msgid ""
 "Poche is still not installed. Please fill the below form to install it. "
-"Don't hesitate to <a href='http://inthepoche.com/doc'>read the documentation "
+"Don't hesitate to <a href='http://doc.inthepoche.com'>read the documentation "
 "on poche website</a>."
 msgstr ""
 "Poche todavia no està instalado. Por favor, completa los campos siguientes "
-"para instalarlo. No dudes de <a href='http://inthepoche.com/doc'>leer la "
+"para instalarlo. No dudes de <a href='http://doc.inthepoche.com'>leer la "
 "documentación en el sitio de Poche</a>."
 
 msgid "Login"
index 001782086e82ef5e71710e6e39239b20642c50a2..a7bb6f646c7f629ac9cc6d96b9634445dd633005 100644 (file)
Binary files a/locale/fa_IR.utf8/LC_MESSAGES/fa_IR.utf8.mo and b/locale/fa_IR.utf8/LC_MESSAGES/fa_IR.utf8.mo differ
index 4bc118fd28c74e2c7b272a83498effd3d196eef5..74a763c6238086f5bf489f302b2e3fc2f15eb19a 100644 (file)
@@ -67,7 +67,7 @@ msgstr "درون‌ریزی"
 msgid "Please execute the import script locally, it can take a very long time."
 msgstr "لطفاً برنامهٔ درون‌ریزی را به‌طور محلی اجرا کنید، شاید خیلی طول بکشد."
 
-msgid "More infos in the official doc:"
+msgid "More info in the official doc:"
 msgstr "اطلاعات بیشتر در راهنمای رسمی:"
 
 msgid "import from Pocket"
@@ -79,13 +79,13 @@ msgstr "درون‌ریزی از Readability"
 msgid "import from Instapaper"
 msgstr "درون‌ریزی از Instapaper"
 
-msgid "Export your poche datas"
+msgid "Export your poche data"
 msgstr "داده‌های poche خود را برون‌بری کنید"
 
 msgid "Click here"
 msgstr "اینجا را کلیک کنید"
 
-msgid "to export your poche datas."
+msgid "to export your poche data."
 msgstr "برای برون‌بری داده‌های poche شما"
 
 msgid "back to home"
@@ -99,11 +99,11 @@ msgstr "poche خود را نصب کنید"
 
 msgid ""
 "poche is still not installed. Please fill the below form to install it. "
-"Don't hesitate to <a href='http://inthepoche.com/doc'>read the documentation "
+"Don't hesitate to <a href='http://doc.inthepoche.com'>read the documentation "
 "on poche website</a>."
 msgstr ""
 "poche هنوز نصب نیست. برای نصب لطفاً فرم زیر را پر کنید. خواندن <a "
-"href='http://inthepoche.com/doc'>راهنما در وبگاه poche</a> را از یاد نبرید."
+"href='http://doc.inthepoche.com'>راهنما در وبگاه poche</a> را از یاد نبرید."
 
 msgid "Login"
 msgstr "ورود"
index e3baaaa106b1d4fb619fb71aa530325e87dd765b..99e7142c07eac84139bc19d8aa4cf4b5e3015fa6 100644 (file)
Binary files a/locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.mo and b/locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.mo differ
index 779aadae5f56109235407f392d4112a783e8b2c6..f105d1801298d578aa884514f65afcb3c8a083c4 100644 (file)
@@ -67,7 +67,7 @@ msgstr "Importer"
 msgid "Please execute the import script locally, it can take a very long time."
 msgstr "Merci d'exécuter l'import en local, cela peut prendre du temps."
 
-msgid "More infos in the official doc:"
+msgid "More info in the official doc:"
 msgstr "Plus d'infos sur la documentation officielle"
 
 msgid "import from Pocket"
@@ -79,13 +79,13 @@ msgstr "import depuis Readability"
 msgid "import from Instapaper"
 msgstr "import depuis Instapaper"
 
-msgid "Export your poche datas"
+msgid "Export your poche data"
 msgstr "Exporter vos données de poche"
 
 msgid "Click here"
 msgstr "Cliquez-ici"
 
-msgid "to export your poche datas."
+msgid "to export your poche data."
 msgstr "pour exporter vos données de poche."
 
 msgid "back to home"
@@ -99,11 +99,11 @@ msgstr "installez votre poche"
 
 msgid ""
 "poche is still not installed. Please fill the below form to install it. "
-"Don't hesitate to <a href='http://inthepoche.com/doc'>read the documentation "
+"Don't hesitate to <a href='http://doc.inthepoche.com'>read the documentation "
 "on poche website</a>."
 msgstr ""
 "poche n'est pas encore installé. Merci de remplir le formulaire suivant pour "
-"l'installer. N'hésitez pas à <a href='http://inthepoche.com/doc'>lire la "
+"l'installer. N'hésitez pas à <a href='http://doc.inthepoche.com'>lire la "
 "documentation sur le site de poche</a>."
 
 msgid "Login"
index e4d4fb3dab38c58c9d100a97bbc39d2942a7bae4..d6ef989003bea1bc4c32af2f384827ab7bc7e617 100644 (file)
Binary files a/locale/it_IT.utf8/LC_MESSAGES/it_IT.utf8.mo and b/locale/it_IT.utf8/LC_MESSAGES/it_IT.utf8.mo differ
index f4e69c075b3e5c527782065b81514ecd0b07fb64..429d5d55801b398efbb267694de558e734871016 100644 (file)
@@ -75,7 +75,7 @@ msgstr ""
 "Si prega di eseguire lo script di importazione a livello locale, può "
 "richiedere un tempo molto lungo."
 
-msgid "More infos in the official doc:"
+msgid "More info in the official doc:"
 msgstr "Maggiori info nella documentazione ufficiale"
 
 msgid "import from Pocket"
@@ -87,13 +87,13 @@ msgstr "Importa da Readability"
 msgid "import from Instapaper"
 msgstr "Importa da Instapaper"
 
-msgid "Export your poche datas"
+msgid "Export your poche data"
 msgstr "Esporta i tuoi dati di poche"
 
 msgid "Click here"
 msgstr "Fai clic qui"
 
-msgid "to export your poche datas."
+msgid "to export your poche data."
 msgstr "per esportare i tuoi dati di poche."
 
 msgid "back to home"
@@ -107,11 +107,11 @@ msgstr "installa il tuo poche"
 
 msgid ""
 "poche is still not installed. Please fill the below form to install it. "
-"Don't hesitate to <a href='http://inthepoche.com/doc'>read the documentation "
+"Don't hesitate to <a href='http://doc.inthepoche.com'>read the documentation "
 "on poche website</a>."
 msgstr ""
 "poche non è ancora installato. Si prega di riempire il modulo sottostante "
-"per completare l'installazione. <a href='http://inthepoche.com/doc'>Leggere "
+"per completare l'installazione. <a href='http://doc.inthepoche.com'>Leggere "
 "la documentazione sul sito di poche</a>."
 
 msgid "Login"
index eea7ff0bece78ce6049e3d48c2ea487db1284d95..970898dbae27618b55488ab0895c438445c37184 100644 (file)
Binary files a/locale/ru_RU.utf8/LC_MESSAGES/ru_RU.utf8.mo and b/locale/ru_RU.utf8/LC_MESSAGES/ru_RU.utf8.mo differ
index 78ddb1589fef4c63c6a81f7af4872f2be5c53ea7..6f647e36af94e29e01d2ce62a105bc0324aa0c25 100644 (file)
@@ -68,7 +68,7 @@ msgid "Please execute the import script locally, it can take a very long time."
 msgstr ""
 "Выполните сценарий импорта локально - он может занять слишком много времени."
 
-msgid "More infos in the official doc:"
+msgid "More info in the official doc:"
 msgstr "Больше сведений в официальной документации:"
 
 msgid "import from Pocket"
@@ -80,13 +80,13 @@ msgstr "импортировать из Readability"
 msgid "import from Instapaper"
 msgstr "импортировать из Instapaper"
 
-msgid "Export your poche datas"
+msgid "Export your poche data"
 msgstr "Экспортировать данные poche"
 
 msgid "Click here"
 msgstr "Кликни сюда"
 
-msgid "to export your poche datas."
+msgid "to export your poche data."
 msgstr "чтобы экспортировать твои записи из poche."
 
 msgid "back to home"
@@ -100,11 +100,11 @@ msgstr "установить твой poche"
 
 msgid ""
 "poche is still not installed. Please fill the below form to install it. "
-"Don't hesitate to <a href='http://inthepoche.com/doc'>read the documentation "
+"Don't hesitate to <a href='http://doc.inthepoche.com'>read the documentation "
 "on poche website</a>."
 msgstr ""
 "poche всё ещё не установлен. Надо заполнить форму ниже, чтобы установить "
-"его. Неплохо также <a href='http://inthepoche.com/doc'>прочесть документацию "
+"его. Неплохо также <a href='http://doc.inthepoche.com'>прочесть документацию "
 "на сайте poche</a>."
 
 msgid "Login"
index eed3c391377116b4f9653463478ad26f581d2474..42faaa2ce705f996a6b5992e774bce81edc0d564 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-$app_name = 'poche 1.0';
+$app_name = 'poche 1.3';
 
 $php_ok = (function_exists('version_compare') && version_compare(phpversion(), '5.3.3', '>='));
 $pcre_ok = extension_loaded('pcre');
index 9e5d656053dd3952358ea32e9598601cbc65dad5..b5d925b46f8440e7d3ec7be4776ed02a9fbce1b8 100644 (file)
@@ -24,7 +24,7 @@ That's all !
 
 ## create a theme
 
-Just have a look to this short documentation : http://inthepoche.com/doc/doku.php?id=designers:creating_theme
+Just have a look to this short documentation : http://doc.inthepoche.com/doku.php?id=designers:creating_theme
 
 ## send a theme
 
index b5f6502875da650cf57d2b066b59cf906d98eb33..083be1527a00200ddf7f49120b549ea58eec56ac 100644 (file)
@@ -1,6 +1,6 @@
         <header class="w600p center mbm">
             <h1>
-                {% if view == 'home' %}{% block logo %}<img src="{{ poche_url }}/themes/{{ constant('DEFAULT_THEME') }}/img/logo.png" alt="logo poche" />{% endblock %}
+                {% if view == 'home' %}{% block logo %}<img src="{{ poche_url }}/themes/{{ constant('DEFAULT_THEME') }}/img/logo.svg" alt="logo poche" />{% endblock %}
                 {% else %}<a href="./" title="{% trans "return home" %}" >{{ block('logo') }}</a>
                 {% endif %}
             </h1>
index c01556ba860d79f12e516e1986a095cb69ff159c..10df726e07f47cc8c38ca617e87e815dee5aaf07 100644 (file)
@@ -6,11 +6,11 @@
 {% endblock %}
 {% block content %}
             <h2>{% trans "Poching links" %}</h2>
-            <p>{% trans "There are several ways to poche a link::" %} (<a href="http://doc.inthepoche.com/" title="{% trans "read the documentation" %}">?</a>)</p>
+            <p>{% trans "There are several ways to poche a link:" %} (<a href="http://doc.inthepoche.com/" title="{% trans "read the documentation" %}">?</a>)</p>
             <ul>
                 <li>Firefox: <a href="https://addons.mozilla.org/firefox/addon/poche/" title="download the firefox extension">{% trans "download the extension" %}</a></li>
                 <li>Chrome: <a href="http://doc.inthepoche.com/doku.php?id=users:chrome_extension" title="download the chrome extension">{% trans "download the extension" %}</a></li>
-                <li>Android: <a href="https://f-droid.org/repository/browse/?fdid=fr.gaulupeau.apps.Poche" title="download the application">{% trans "via f-droid" %}</a> {% trans " or " %} <a href="https://play.google.com/store/apps/details?id=fr.gaulupeau.apps.InThePoche" title="download the application">{% trans "via Google Play" %}</a></li>
+                <li>Android: <a href="https://f-droid.org/repository/browse/?fdid=fr.gaulupeau.apps.Poche" title="download the application">{% trans "via F-Droid" %}</a> {% trans " or " %} <a href="https://play.google.com/store/apps/details?id=fr.gaulupeau.apps.InThePoche" title="download the application">{% trans "via Google Play" %}</a></li>
                 <li>Windows Phone: <a href="https://www.windowsphone.com/en-us/store/app/poche/334de2f0-51b5-4826-8549-a3d805a37e83" title="download the window phone application">{% trans "download the application" %}</a></li>
                 <li>
                     <form method="get" action="index.php">
 
             <h2>{% trans "Feeds" %}</h2>
             {% if token == '' %}
-                <p>{% trans "The token is empty, you have to generate it to use feeds. Click <a href='?feed&amp;action=generate'>here to generate it</a>." %}</p>
+                <p>{% trans "Your feed token is currently empty and must first be generated to enable feeds. Click <a href='?feed&amp;action=generate'>here to generate it</a>." %}</p>
             {% else %}
             <ul>
-                <li><a href="?feed&amp;type=home&amp;user_id={{ user_id }}&amp;token={{ token }}" target="_blank">{% trans "unread feed" %}</a></li>
-                <li><a href="?feed&amp;type=fav&amp;user_id={{ user_id }}&amp;token={{ token }}" target="_blank">{% trans "favorites feed" %}</a></li>
-                <li><a href="?feed&amp;type=archive&amp;user_id={{ user_id }}&amp;token={{ token }}" target="_blank">{% trans "archive feed" %}</a></li>
+                <li><a href="?feed&amp;type=home&amp;user_id={{ user_id }}&amp;token={{ token }}" target="_blank">{% trans "Unread feed" %}</a></li>
+                <li><a href="?feed&amp;type=fav&amp;user_id={{ user_id }}&amp;token={{ token }}" target="_blank">{% trans "Favorites feed" %}</a></li>
+                <li><a href="?feed&amp;type=archive&amp;user_id={{ user_id }}&amp;token={{ token }}" target="_blank">{% trans "Archive feed" %}</a></li>
             </ul>
             <p>{% trans "You can regenerate your token: <a href='?feed&amp;action=generate'>generate!</a>." %}</p>
             {% endif %}
             {% endif %}
 
             <h2>{% trans "Import" %}</h2>
-            <p>{% trans "Please execute the import script locally, it can take a very long time." %}</p>
-            <p>{% trans "More info in the official docs:" %} <a href="http://doc.inthepoche.com/">inthepoche.com</a></p>
+            <p>{% trans "Please execute the import script locally as it can take a very long time." %}</p>
+            <p>{% trans "More info in the official docs:" %} <a href="http://doc.inthepoche.com/doku.php?id=users:migrate">inthepoche.com</a></p>
             <ul>
-                <li><a href="./?import&amp;from=pocket">{% trans "import from Pocket" %}</a> {{ '(you must have a %s file on your server)'|trans|format(constant('POCKET_FILE')) }}</li>
-            <li><a href="./?import&amp;from=readability">{% trans "import from Readability" %}</a> {{ '(you must have a %s file on your server)'|trans|format(constant('READABILITY_FILE')) }}</li>
-            <li><a href="./?import&amp;from=instapaper">{% trans "import from Instapaper" %}</a> {{ '(you must have a %s file on your server)'|trans|format(constant('INSTAPAPER_FILE')) }}</li>
+                <li><a href="./?import&amp;from=pocket">{% trans "Import from Pocket" %}</a> {{ '(you must have a %s file on your server)'|trans|format(constant('POCKET_FILE')) }}</li>
+            <li><a href="./?import&amp;from=readability">{% trans "Import from Readability" %}</a> {{ '(you must have a %s file on your server)'|trans|format(constant('READABILITY_FILE')) }}</li>
+            <li><a href="./?import&amp;from=instapaper">{% trans "Import from Instapaper" %}</a> {{ '(you must have a %s file on your server)'|trans|format(constant('INSTAPAPER_FILE')) }}</li>
             </ul>
 
             <h2>{% trans "Export your poche data" %}</h2>
index 99c00bdfe9c59336f3cf918142ba45baa93b77fc..625478e19e0b64682aa8c769c66a807a6564edd4 100644 (file)
@@ -33,6 +33,10 @@ article {
     border: none !important;
 }
 
+pre code {
+    line-height: 1.6em;
+}
+
 /* Add URL after links */
 .vieworiginal a:after {
     content: " (" attr(href) ")";
index 7116bba9f55c01c305d6f8779ad85d876713f1ed..53852d392687b297bbc73ec0ba039bbfa39bb3a3 100644 (file)
@@ -11,10 +11,10 @@ no tags
 {% for tag in tags %}<li>{{ tag.value }} <a href="./?action=remove_tag&amp;tag_id={{ tag.id }}&amp;id={{ entry_id }}">✘</a></li>{% endfor %}
 </ul>
 <form method="post" action="./?action=add_tag">
-    <label for="value">New tags: </label><input type="text" id="value" name="value" required="required" />
-    <p>{% trans "you can type several tags, separated by comma" %}</p>
+    <label for="value">Add tags: </label><input type="text" placeholder="interview, editorial, video" id="value" name="value" required="required" />
+    <p>{% trans "You can enter multiple tags, separated by commas." %}</p>
     <input type="hidden" name="entry_id" value="{{ entry_id }}" />
-    <input type="submit" value="add tags" />
+    <input type="submit" value="Tag" />
 </form>
-<a href="./?view=view&id={{ entry_id }}">{% trans "back to the article" %}</a>
-{% endblock %}
\ No newline at end of file
+<a href="./?view=view&id={{ entry_id }}">{% trans "return to article" %}</a>
+{% endblock %}
index 557b479ce45e19e9513bf125c325a081aa4a368c..9e951230a68d07a1abaf352ca6e6a0c108f8b324 100644 (file)
Binary files a/themes/default/img/apple-touch-icon-144x144-precomposed.png and b/themes/default/img/apple-touch-icon-144x144-precomposed.png differ
index e167d3a41c6577ba6ae753e917b4a2c66b3448ff..263419b18ea4ab0ddeae900b545fba5296bd7551 100644 (file)
Binary files a/themes/default/img/apple-touch-icon-72x72-precomposed.png and b/themes/default/img/apple-touch-icon-72x72-precomposed.png differ
index 4d222fbac51e2daff806defc49b1cb0fa572001c..ac8a1cf0438da947e26149d55f92465ab7e4fe6d 100644 (file)
Binary files a/themes/default/img/apple-touch-icon.png and b/themes/default/img/apple-touch-icon.png differ
diff --git a/themes/default/img/logo.png b/themes/default/img/logo.png
deleted file mode 100644 (file)
index 5305c77..0000000
Binary files a/themes/default/img/logo.png and /dev/null differ
diff --git a/themes/default/img/logo.svg b/themes/default/img/logo.svg
new file mode 100644 (file)
index 0000000..865da44
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="64" height="64">
+    <circle cx="32" cy="32" r="29.5" style="fill:#000" />
+    <path d="m 16,18 33,0 0,26 -16.5,6 -16.5,-6 z" fill="#fff" />
+    <rect width="9" height="2.5" x="17.5" y="24.5" fill="#000" />
+    <rect width="9" height="2.5" x="28" y="24.5" fill="#000" />
+    <rect width="9" height="2.5" x="38.5" y="24.5" fill="#000" />
+</svg>