]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge branch 'master' of git://github.com/DmitrySandalov/poche into DmitrySandalov...
authorNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Wed, 13 Nov 2013 13:52:28 +0000 (14:52 +0100)
committerNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Wed, 13 Nov 2013 13:52:28 +0000 (14:52 +0100)
27 files changed:
README.md
inc/3rdparty/simplepie/SimplePie/Misc.php
inc/3rdparty/site_config/custom/dilbert.com.txt [new file with mode: 0644]
inc/poche/Poche.class.php
install/mysql.sql
locale/ru_RU.utf8/ru_RU.utf8.mo [new file with mode: 0644]
locale/ru_RU.utf8/ru_RU.utf8.po [new file with mode: 0644]
poche_compatibility_test.php
themes/dark/img/dark/backtotop.png [changed mode: 0755->0644]
themes/dark/img/dark/bad-display.png [changed mode: 0755->0644]
themes/dark/img/dark/checkmark-off.png
themes/dark/img/dark/checkmark-on.png
themes/dark/img/dark/down.png
themes/dark/img/dark/envelop.png
themes/dark/img/dark/flattr.png [changed mode: 0755->0644]
themes/dark/img/dark/left.png
themes/dark/img/dark/link.png [changed mode: 0755->0644]
themes/dark/img/dark/remove.png
themes/dark/img/dark/shaarli.png
themes/dark/img/dark/star-off.png
themes/dark/img/dark/star-on.png
themes/dark/img/dark/top.png
themes/dark/img/dark/twitter.png
themes/default/_head.twig
themes/default/config.twig
themes/default/css/print.css
themes/default/js/autoClose.js [new file with mode: 0644]

index ef1ecc4d1865381b0e9e7182c002000f3864a620..d1ed79eee3b13f296839e82be3bdd73c7aae9b93 100644 (file)
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@ Abandon Pocket, Instapaper and other Readability service : adopt poche. It is th
 * multi users (very soon!)
 * update notification in configuration screen
 * many storage modes (sqlite, mysql, postgresql)
-* many templates: [have a look here](https://github.com/inthepoche/poche-themes).
+* many templates: [have a look here](https://github.com/inthepoche/poche/tree/master/themes).
 * ...
 
 To test poche, a demo website is online : [demo.inthepoche.com](http://demo.inthepoche.com) (login poche, password poche).
@@ -26,4 +26,4 @@ Read the [INSTALL.md file](https://github.com/inthepoche/poche/blob/master/INSTA
 Copyright © 2010-2013 Nicolas Lœuillet <nicolas.loeuillet@gmail.com>
 This work is free. You can redistribute it and/or modify it under the
 terms of the Do What The Fuck You Want To Public License, Version 2,
-as published by Sam Hocevar. See the COPYING file for more details.
\ No newline at end of file
+as published by Sam Hocevar. See the COPYING file for more details.
index eabf2738e70800117fb3f999c4766fb753fc832d..17dbf963c873f2fe63b04ea2e1bd9c1348017aa7 100644 (file)
@@ -1613,6 +1613,7 @@ class SimplePie_Misc
                        case 'utf7':
                                return 'UTF-7';
 
+                       case 'utf8lias':
                        case 'utf8':
                                return 'UTF-8';
 
diff --git a/inc/3rdparty/site_config/custom/dilbert.com.txt b/inc/3rdparty/site_config/custom/dilbert.com.txt
new file mode 100644 (file)
index 0000000..6c8d95a
--- /dev/null
@@ -0,0 +1,4 @@
+title: //div[contains(@class, 'SB_Title')]//a
+body: //div[contains(@class, 'STR_Content')]
+
+test_url: http://dilbert.com/strips/comic/2013-10-22
\ No newline at end of file
index 0766cd51e2d1bc26057e966b274422fe90e92c18..3ecaf084a7347c737e78e8e1fd3bf87615b8377d 100644 (file)
@@ -327,7 +327,7 @@ class Poche
     /**
      * Call action (mark as fav, archive, delete, etc.)
      */
-    public function action($action, Url $url, $id = 0, $import = FALSE)
+    public function action($action, Url $url, $id = 0, $import = FALSE, $autoclose = FALSE)
     {
         switch ($action)
         {
@@ -358,7 +358,11 @@ class Poche
                 }
 
                 if (!$import) {
-                    Tools::redirect('?view=home');
+                    if ($autoclose == TRUE) {
+                      Tools::redirect('?view=home');
+                    } else {
+                      Tools::redirect('?view=home&closewin=true');
+                    }
                 }
                 break;
             case 'delete':
@@ -374,7 +378,7 @@ class Poche
                     $msg = 'error : can\'t delete link #' . $id;
                 }
                 Tools::logm($msg);
-                Tools::redirect();
+                Tools::redirect('?');
                 break;
             case 'toggle_fav' :
                 $this->store->favoriteById($id, $this->user->getId());
index cb232a8428b5e0071c13cada4bb958b8ff15b145..9b01e32cf7200110fe91b6dce8ca457bf4db411b 100644 (file)
@@ -3,7 +3,7 @@ CREATE TABLE IF NOT EXISTS `config` (
   `name` varchar(255) NOT NULL,
   `value` varchar(255) NOT NULL,
   PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 
 CREATE TABLE IF NOT EXISTS `entries` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
@@ -14,7 +14,7 @@ CREATE TABLE IF NOT EXISTS `entries` (
   `content` blob NOT NULL,
   `user_id` int(11) NOT NULL,
   PRIMARY KEY (`id`)
-) ENGINE=InnoDB  DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB  DEFAULT CHARSET=utf8;
 
 CREATE TABLE IF NOT EXISTS `users` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
@@ -23,7 +23,7 @@ CREATE TABLE IF NOT EXISTS `users` (
   `name` int(255) NOT NULL,
   `email` varchar(255) NOT NULL,
   PRIMARY KEY (`id`)
-) ENGINE=InnoDB  DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB  DEFAULT CHARSET=utf8;
 
 CREATE TABLE IF NOT EXISTS `users_config` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
@@ -31,4 +31,4 @@ CREATE TABLE IF NOT EXISTS `users_config` (
   `name` varchar(255) NOT NULL,
   `value` varchar(255) NOT NULL,
   PRIMARY KEY (`id`)
-) ENGINE=InnoDB  DEFAULT CHARSET=latin1;
\ No newline at end of file
+) ENGINE=InnoDB  DEFAULT CHARSET=utf8;
\ No newline at end of file
diff --git a/locale/ru_RU.utf8/ru_RU.utf8.mo b/locale/ru_RU.utf8/ru_RU.utf8.mo
new file mode 100644 (file)
index 0000000..eea7ff0
Binary files /dev/null and b/locale/ru_RU.utf8/ru_RU.utf8.mo differ
diff --git a/locale/ru_RU.utf8/ru_RU.utf8.po b/locale/ru_RU.utf8/ru_RU.utf8.po
new file mode 100644 (file)
index 0000000..78ddb15
--- /dev/null
@@ -0,0 +1,228 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: \n"
+"POT-Creation-Date: \n"
+"PO-Revision-Date: \n"
+"Last-Translator: Nicolas Lœuillet <nicolas.loeuillet@gmail.com>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 1.5.4\n"
+
+msgid "config"
+msgstr "настройки"
+
+msgid "Poching a link"
+msgstr "Сохраняю ссылку"
+
+msgid "read the documentation"
+msgstr "читать инструкцию"
+
+msgid "by filling this field"
+msgstr "заполнением этого поля"
+
+msgid "poche it!"
+msgstr "Прикарманить!"
+
+msgid "Updating poche"
+msgstr "Обновляю poche"
+
+msgid "your version"
+msgstr "Ваша версия"
+
+msgid "latest stable version"
+msgstr "крайняя стабильная версия"
+
+msgid "a more recent stable version is available."
+msgstr "есть более новая стабильная версия."
+
+msgid "you are up to date."
+msgstr "у Вас всё самое новое."
+
+msgid "latest dev version"
+msgstr "крайняя версия разработчиков"
+
+msgid "a more recent development version is available."
+msgstr "есть более свежая версия разработчиков."
+
+msgid "Change your password"
+msgstr "Смени пароль"
+
+msgid "New password:"
+msgstr "Новый пароль:"
+
+msgid "Password"
+msgstr "Пароль"
+
+msgid "Repeat your new password:"
+msgstr "Ещё раз новый пароль:"
+
+msgid "Update"
+msgstr "Обновить"
+
+msgid "Import"
+msgstr "Импортировать"
+
+msgid "Please execute the import script locally, it can take a very long time."
+msgstr ""
+"Выполните сценарий импорта локально - он может занять слишком много времени."
+
+msgid "More infos in the official doc:"
+msgstr "Больше сведений в официальной документации:"
+
+msgid "import from Pocket"
+msgstr "импортировать из Pocket"
+
+msgid "import from Readability"
+msgstr "импортировать из Readability"
+
+msgid "import from Instapaper"
+msgstr "импортировать из Instapaper"
+
+msgid "Export your poche datas"
+msgstr "Экспортировать данные poche"
+
+msgid "Click here"
+msgstr "Кликни сюда"
+
+msgid "to export your poche datas."
+msgstr "чтобы экспортировать твои записи из poche."
+
+msgid "back to home"
+msgstr "домой"
+
+msgid "installation"
+msgstr "установка"
+
+msgid "install your poche"
+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 "
+"on poche website</a>."
+msgstr ""
+"poche всё ещё не установлен. Надо заполнить форму ниже, чтобы установить "
+"его. Неплохо также <a href='http://inthepoche.com/doc'>прочесть документацию "
+"на сайте poche</a>."
+
+msgid "Login"
+msgstr "Регистрационное имя"
+
+msgid "Repeat your password"
+msgstr "Повтори пароль"
+
+msgid "Install"
+msgstr "Установить"
+
+msgid "back to top"
+msgstr "наверх"
+
+msgid "favoris"
+msgstr "избранное"
+
+msgid "archive"
+msgstr "архив"
+
+msgid "unread"
+msgstr "нечитанное"
+
+msgid "by date asc"
+msgstr "по дате, сперва старые"
+
+msgid "by date"
+msgstr "по дате"
+
+msgid "by date desc"
+msgstr "по дате, сперва новые"
+
+msgid "by title asc"
+msgstr "по заголовку (прямой)"
+
+msgid "by title"
+msgstr "по заголовку"
+
+msgid "by title desc"
+msgstr "по заголовку (обратный)"
+
+msgid "No link available here!"
+msgstr "Здесь нет линка!"
+
+msgid "toggle mark as read"
+msgstr "изменить отметку 'прочитано'"
+
+msgid "toggle favorite"
+msgstr "изменить избранность"
+
+msgid "delete"
+msgstr "удалить"
+
+msgid "original"
+msgstr "исходный"
+
+msgid "results"
+msgstr "найдено"
+
+msgid "tweet"
+msgstr "твитнуть"
+
+msgid "email"
+msgstr "отправить по почте"
+
+msgid "shaarli"
+msgstr "Шаарли"
+
+msgid "flattr"
+msgstr "проспонсировать"
+
+msgid "this article appears wrong?"
+msgstr "статья выглядит криво?"
+
+msgid "create an issue"
+msgstr "оповестить об ошибке"
+
+msgid "or"
+msgstr "или"
+
+msgid "contact us by mail"
+msgstr "связаться по почте"
+
+msgid "plop"
+msgstr "plop"
+
+msgid "home"
+msgstr "домой"
+
+msgid "favorites"
+msgstr "избранное"
+
+msgid "logout"
+msgstr "выйти"
+
+msgid "powered by"
+msgstr "на основе"
+
+msgid "debug mode is on so cache is off."
+msgstr "включён режим отладки - кеш выключен."
+
+msgid "your poche version:"
+msgstr "Ваша версия poche:"
+
+msgid "storage:"
+msgstr "хранилище:"
+
+msgid "login to your poche"
+msgstr "войти в свой poche"
+
+msgid "you are in demo mode, some features may be disabled."
+msgstr "демонстрационный режим - работают не все возможности."
+
+msgid "Stay signed in"
+msgstr "Оставаться зарегистрированным"
+
+msgid "(Do not check on public computers)"
+msgstr "(Не отмечай на чужих компьютерах)"
+
+msgid "Sign in"
+msgstr "Зарегистрироваться"
index be4fd6f82696fdf57888d9d6d7da74f80ca0c4f7..eed3c391377116b4f9653463478ad26f581d2474 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 $app_name = 'poche 1.0';
 
-$php_ok = (function_exists('version_compare') && version_compare(phpversion(), '5.2.0', '>='));
+$php_ok = (function_exists('version_compare') && version_compare(phpversion(), '5.3.3', '>='));
 $pcre_ok = extension_loaded('pcre');
 $zlib_ok = extension_loaded('zlib');
 $mbstring_ok = extension_loaded('mbstring');
old mode 100755 (executable)
new mode 100644 (file)
index 051238e..c885086
Binary files a/themes/dark/img/dark/backtotop.png and b/themes/dark/img/dark/backtotop.png differ
old mode 100755 (executable)
new mode 100644 (file)
index 6866799..66ea2e1
Binary files a/themes/dark/img/dark/bad-display.png and b/themes/dark/img/dark/bad-display.png differ
index 3db5a06dcd7363c83917c69084578a91d9e83f8a..661ea997a5922431924bcf7b11c2836e68c695cc 100644 (file)
Binary files a/themes/dark/img/dark/checkmark-off.png and b/themes/dark/img/dark/checkmark-off.png differ
index cd3abb2c0b501af84a0f7db7f46bee779bc1af27..5ee8c8d30900db3864f2eed29a38713d12965e4d 100644 (file)
Binary files a/themes/dark/img/dark/checkmark-on.png and b/themes/dark/img/dark/checkmark-on.png differ
index b9d536a7cabbd3e404dc187a2e2844562e07fbb0..4150e17cbbf9ff19d14952265a375940bda01731 100644 (file)
Binary files a/themes/dark/img/dark/down.png and b/themes/dark/img/dark/down.png differ
index 6be1c88643a86d3eb0cde7c06b9668e4575c3424..73d9b0b96aacc64ef746d8a621d70092d9081f4d 100644 (file)
Binary files a/themes/dark/img/dark/envelop.png and b/themes/dark/img/dark/envelop.png differ
old mode 100755 (executable)
new mode 100644 (file)
index 0404aae..b457d08
Binary files a/themes/dark/img/dark/flattr.png and b/themes/dark/img/dark/flattr.png differ
index a0a53631ed0e93c4c63a6316abde8c66aa7366fb..c2f7a20ec760954a2329021cd6a1d8aade38f616 100644 (file)
Binary files a/themes/dark/img/dark/left.png and b/themes/dark/img/dark/left.png differ
old mode 100755 (executable)
new mode 100644 (file)
index db62819..a5b8d8d
Binary files a/themes/dark/img/dark/link.png and b/themes/dark/img/dark/link.png differ
index f8ad56a3e744982a2c7f20843de726fd8ac4724f..0c3dcfdffdf29d905b3ad09b7ef14782a839b117 100644 (file)
Binary files a/themes/dark/img/dark/remove.png and b/themes/dark/img/dark/remove.png differ
index 1eb30f60b99a02ba18054447ff4bc969c0ee7455..e68ac8b54f0155992c562d95cc4f4d2acc967ba8 100644 (file)
Binary files a/themes/dark/img/dark/shaarli.png and b/themes/dark/img/dark/shaarli.png differ
index 6a0133a79f1e183c4bd10a71131efc7baf8d8f53..8194bc2dce3421196a370d512e31d8c5ee77fb62 100644 (file)
Binary files a/themes/dark/img/dark/star-off.png and b/themes/dark/img/dark/star-off.png differ
index a9f96eaac8c4d6260873eb72e3a10898fa0aa95c..109c3aec7dbb97d258ea634d44d9a83ac0ffc418 100644 (file)
Binary files a/themes/dark/img/dark/star-on.png and b/themes/dark/img/dark/star-on.png differ
index 954a8c0acbb221eb20d04d6184d3317c9604adf6..d137bd240e3ee1b4fdf61dbdbbb2870e18fbddec 100644 (file)
Binary files a/themes/dark/img/dark/top.png and b/themes/dark/img/dark/top.png differ
index cfcfe41957b600b64cbfb46f05fb8705cb22e92b..6ce8a4d965f10656e0452775e089cd0402648809 100644 (file)
Binary files a/themes/dark/img/dark/twitter.png and b/themes/dark/img/dark/twitter.png differ
index d0cbd320be6688ef509893eace178bbc15486ab5..577cc693ca348eb07398d01c89ca29662c3e67eb 100644 (file)
@@ -8,3 +8,4 @@
         <link rel="stylesheet" href="{{ poche_url }}/themes/{{ constant('DEFAULT_THEME') }}/css/messages.css" media="all">
         <link rel="stylesheet" href="{{ poche_url }}/themes/{{ constant('DEFAULT_THEME') }}/css/print.css" media="print">
         <script src="{{ poche_url }}/themes/{{ constant('DEFAULT_THEME') }}/js/jquery-2.0.3.min.js"></script>
+        <script src="{{ poche_url }}/themes/{{ constant('DEFAULT_THEME') }}/js/autoClose.js"></script>
\ No newline at end of file
index 72671702f3d31c412724e2e02c0af5471ca3e1ee..213458278249b79408d386b8edc6029d91b9aaee 100644 (file)
@@ -8,9 +8,10 @@
             <h2>{% trans "Poching a link" %}</h2>
             <p>{% trans "You can poche a link by several methods:" %} (<a href="http://inthepoche.com/doc" title="{% trans "read the documentation" %}">?</a>)</p>
             <ul>
-                <li>firefox: <a href="https://bitbucket.org/jogaulupeau/poche/downloads/poche.xpi" title="download the firefox extension">{% trans "download the extension" %}</a></li>
-                <li>chrome: <a href="https://bitbucket.org/jogaulupeau/poche/downloads/poche.crx" title="download the chrome extension">{% trans "download the extension" %}</a></li>
-                <li>android: <a href="https://bitbucket.org/jogaulupeau/poche/downloads/Poche.apk" title="download the application">{% trans "download the application" %}</a></li>
+                <li>firefox: <a href="https://addons.mozilla.org/fr/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.Poche" title="download the application">{% trans "via google play" %}</a></li>
+                <li>windows phone: <a href="http://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">
                         <label class="addurl" for="plainurl">{% trans "by filling this field" %}:</label>
index 9aefa779e76bdac3e7e72d84c0ff65edb4aa56ed..914efbd5ccfec44ca288c7ea683b80b4fbad788a 100644 (file)
@@ -32,6 +32,10 @@ article {
     border: none !important;
 }
 
+#article_toolbar {
+    display: none;
+}
+
 /* Add URL after links */
 .vieworiginal a:after {
     content: " (" attr(href) ")";
diff --git a/themes/default/js/autoClose.js b/themes/default/js/autoClose.js
new file mode 100644 (file)
index 0000000..e9145b7
--- /dev/null
@@ -0,0 +1,6 @@
+$(document).ready(function() {
+       current_url = window.location.href
+       if (current_url.match("&closewin=true")) {
+               window.close();
+       }
+});