From cc1ec61b857cc793abab719c164496e8290291c1 Mon Sep 17 00:00:00 2001 From: Maryana Rozhankivska Date: Wed, 9 Jul 2014 16:50:52 +0300 Subject: fix of issue #619 and other similar, error in JSLikeHTMLElement: node no longer exists. --- inc/3rdparty/libraries/readability/Readability.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) mode change 100644 => 100755 inc/3rdparty/libraries/readability/Readability.php diff --git a/inc/3rdparty/libraries/readability/Readability.php b/inc/3rdparty/libraries/readability/Readability.php old mode 100644 new mode 100755 index d0f09d74..9e77dc55 --- a/inc/3rdparty/libraries/readability/Readability.php +++ b/inc/3rdparty/libraries/readability/Readability.php @@ -679,6 +679,7 @@ class Readability } else { $topCandidate->innerHTML = $page->documentElement->innerHTML; $page->documentElement->innerHTML = ''; + $this->reinitBody(); $page->documentElement->appendChild($topCandidate); } } else { @@ -794,8 +795,7 @@ class Readability { // TODO: find out why element disappears sometimes, e.g. for this URL http://www.businessinsider.com/6-hedge-fund-etfs-for-average-investors-2011-7 // in the meantime, we check and create an empty element if it's not there. - if (!isset($this->body->childNodes)) $this->body = $this->dom->createElement('body'); - $this->body->innerHTML = $this->bodyCache; + $this->reinitBody(); if ($this->flagIsActive(self::FLAG_STRIP_UNLIKELYS)) { $this->removeFlag(self::FLAG_STRIP_UNLIKELYS); @@ -1134,5 +1134,18 @@ class Readability public function removeFlag($flag) { $this->flags = $this->flags & ~$flag; } + + /** + * Will recreate previously deleted body property + * + * @return void + */ + protected function reinitBody() { + if (!isset($this->body->childNodes)) { + $this->body = $this->dom->createElement('body'); + } + $this->body->innerHTML = $this->bodyCache; + } + } ?> \ No newline at end of file -- cgit v1.2.3 From c1aad6d5746ddb079e3b60d432212021c42c963b Mon Sep 17 00:00:00 2001 From: Maryana Rozhankivska Date: Wed, 9 Jul 2014 16:56:52 +0300 Subject: fix of issue #619 and other similar, error in JSLikeHTMLElement: node no longer exists. --- inc/3rdparty/libraries/readability/Readability.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/3rdparty/libraries/readability/Readability.php b/inc/3rdparty/libraries/readability/Readability.php index 9e77dc55..4fa3ba63 100755 --- a/inc/3rdparty/libraries/readability/Readability.php +++ b/inc/3rdparty/libraries/readability/Readability.php @@ -1142,9 +1142,9 @@ class Readability */ protected function reinitBody() { if (!isset($this->body->childNodes)) { - $this->body = $this->dom->createElement('body'); + $this->body = $this->dom->createElement('body'); + $this->body->innerHTML = $this->bodyCache; } - $this->body->innerHTML = $this->bodyCache; } } -- cgit v1.2.3 From d59536deea443f4bdac2c5cf1bfeea690810a817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Si=C3=B4n=20Le=20Roux?= Date: Thu, 10 Jul 2014 18:30:44 +0200 Subject: Add support for *.about.com Includes next_page_link for multi-page articles and strips pesky in-line 'next' links from the article body. Also includes an Xpath for author but I can't see where this is used in the wallabag UI. The 'tidy' option is turned off because it messed up bulleted lists. Tested with psychology.about.com and food.about.com. --- inc/3rdparty/site_config/standard/.about.com.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 inc/3rdparty/site_config/standard/.about.com.txt diff --git a/inc/3rdparty/site_config/standard/.about.com.txt b/inc/3rdparty/site_config/standard/.about.com.txt new file mode 100644 index 00000000..e1ebaee3 --- /dev/null +++ b/inc/3rdparty/site_config/standard/.about.com.txt @@ -0,0 +1,14 @@ +body: //div[@id='articlebody'] +title: //h1 +author: //p[@id='by']//a + +next_page_link: //span[@class='next']/a +# Not the same as below! + +prune: yes +tidy: no + +# Annoying 'next' links plainly inside the article body +strip: //*[text()[contains(.,'Next: ')]] + +test_url: http://psychology.about.com/od/theoriesofpersonality/ss/defensemech.htm -- cgit v1.2.3 From 5594d7d05469bcff2a046a99d49990bd63a6fd4f Mon Sep 17 00:00:00 2001 From: Maryana Rozhankivska Date: Mon, 21 Jul 2014 19:34:59 +0300 Subject: issue #750 - config for dn.pt site added --- inc/3rdparty/site_config/standard/dn.pt.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 inc/3rdparty/site_config/standard/dn.pt.txt diff --git a/inc/3rdparty/site_config/standard/dn.pt.txt b/inc/3rdparty/site_config/standard/dn.pt.txt new file mode 100755 index 00000000..051b8cb9 --- /dev/null +++ b/inc/3rdparty/site_config/standard/dn.pt.txt @@ -0,0 +1,9 @@ +single_page_link: concat('http://www.dn.pt/Common/print.aspx?content_id=', //input[@type='hidden' and @name='link-comments']/@value) +# + +title: //h1 +author: //div[@class="Author"] + +strip: //div[@class="Patrocinio"] + +test_url: http://www.dn.pt/inicio/opiniao/interior.aspx?content_id=3972244&seccao=Alberto%20Gon%E7alves&tag=Opini%E3o%20-%20Em%20Foco&page=1 \ No newline at end of file -- cgit v1.2.3 From cec19bd866f32028b8a286f8504f601df9842834 Mon Sep 17 00:00:00 2001 From: skibbipl Date: Mon, 21 Jul 2014 20:58:58 +0200 Subject: Updated polish translation --- locale/pl_PL.utf8/LC_MESSAGES/pl_PL.utf8.mo | Bin 10557 -> 12632 bytes locale/pl_PL.utf8/LC_MESSAGES/pl_PL.utf8.po | 579 +++++++++++++++++----------- 2 files changed, 352 insertions(+), 227 deletions(-) diff --git a/locale/pl_PL.utf8/LC_MESSAGES/pl_PL.utf8.mo b/locale/pl_PL.utf8/LC_MESSAGES/pl_PL.utf8.mo index 3e8b132f..297516c0 100755 Binary files a/locale/pl_PL.utf8/LC_MESSAGES/pl_PL.utf8.mo and b/locale/pl_PL.utf8/LC_MESSAGES/pl_PL.utf8.mo differ diff --git a/locale/pl_PL.utf8/LC_MESSAGES/pl_PL.utf8.po b/locale/pl_PL.utf8/LC_MESSAGES/pl_PL.utf8.po index 0e7cbcf8..e39156e6 100755 --- a/locale/pl_PL.utf8/LC_MESSAGES/pl_PL.utf8.po +++ b/locale/pl_PL.utf8/LC_MESSAGES/pl_PL.utf8.po @@ -1,183 +1,73 @@ msgid "" msgstr "" -"Project-Id-Version: wballabag\n" +"Project-Id-Version: wallabag\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-02-07 17:38+0300\n" -"PO-Revision-Date: 2014-02-07 17:43+0300\n" -"Last-Translator: Maryana \n" +"POT-Creation-Date: 2014-02-25 15:17+0300\n" +"PO-Revision-Date: \n" +"Last-Translator: skibbipl \n" "Language-Team: \n" -"Language: \n" +"Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: _;gettext;gettext_noop\n" +"X-Generator: Poedit 1.6.6\n" "X-Poedit-Basepath: .\n" -"X-Poedit-Language: Polish\n" -"X-Poedit-Country: POLAND\n" -"X-Poedit-SourceCharset: utf-8\n" -"X-Poedit-SearchPath-0: /home/mariroz/_DEV/web/wallabag/wallabag\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-SearchPath-0: /home/mariroz/_DEV/web/wallabag/wallabag-master-" +"testing\n" -msgid "poche, a read it later open source system" -msgstr "poche, serwis odrocznego czytania open source" +msgid "wallabag, a read it later open source system" +msgstr "wallabag, open source'owy system typu \"przeczytaj to później\"" msgid "login failed: user doesn't exist" -msgstr "logowanie nie udało się: użytkownik nie istnieje" - -msgid "Return home" -msgstr "Wrocic do głównej" - -msgid "Back to top" -msgstr "Wrócić na górę" - -msgid "original" -msgstr "oryginal" - -msgid "Mark as read" -msgstr "Zaznacz jako przeczytane" - -msgid "Toggle mark as read" -msgstr "Przełącz jako przeczytane" - -msgid "Favorite" -msgstr "Ulubiony" - -msgid "Toggle favorite" -msgstr "Zaznacz jako ulubione" - -msgid "Delete" -msgstr "Usuń" - -msgid "Tweet" -msgstr "Tweet" - -msgid "Email" -msgstr "Wyslij email" - -msgid "shaarli" -msgstr "shaarli" - -msgid "flattr" -msgstr "flattr" - -msgid "Does this article appear wrong?" -msgstr "Czy ten artykuł wygląda nieprawidłowo?" - -msgid "tags:" -msgstr "tegi:" - -msgid "Edit tags" -msgstr "Redagowac tegi" +msgstr "logowanie się nie powiodło: użytkownik nie istnieje" msgid "return home" -msgstr "wrócić do głównej" - -msgid "powered by" -msgstr "zasilany przez" - -msgid "debug mode is on so cache is off." -msgstr "tryb debugowania jest włączony, więc cash jest wyłączony." - -msgid "your poche version:" -msgstr "twoja wersja poche:" - -msgid "storage:" -msgstr "magazyn:" - -msgid "favoris" -msgstr "ulubione" - -msgid "archive" -msgstr "archiwum" - -msgid "unread" -msgstr "nieprzeczytane" - -msgid "by date asc" -msgstr "według daty rosnąco" - -msgid "by date" -msgstr "wg daty" - -msgid "by date desc" -msgstr "według daty spadająco" - -msgid "by title asc" -msgstr "według tytułu rosnąco" - -msgid "by title" -msgstr "wg tytułu" - -msgid "by title desc" -msgstr "według tytułu malejąco" - -msgid "No articles found." -msgstr "Nie znaleziono artykułów." - -msgid "toggle favorite" -msgstr "przełączyc ulubione" - -msgid "delete" -msgstr "usunąć" - -msgid "estimated reading time:" -msgstr "szacowany czas odczytu:" - -msgid "results" -msgstr "wyniki" - -msgid "home" -msgstr "główna" - -msgid "favorites" -msgstr "ulubione" - -msgid "tags" -msgstr "tagi" +msgstr "powrót do strony domowej" msgid "config" -msgstr "ustawienia" +msgstr "konfiguracja" -msgid "logout" -msgstr "wyloguj" +msgid "Saving articles" +msgstr "Zapisywanie artykułów" -msgid "Poching links" -msgstr "Zapisywanie linków" - -msgid "There are several ways to poche a link:" -msgstr "Istnieje kilka sposobów aby zapisać link:" +msgid "There are several ways to save an article:" +msgstr "Istnieje kilka sposobów aby zapisać artykuł:" msgid "read the documentation" -msgstr "zapoznać się z dokumentacją" +msgstr "przeczytaj dokumentację" msgid "download the extension" -msgstr "pobrać rozszerzenie" +msgstr "pobierz rozszerzenie" msgid "via F-Droid" msgstr "przez F-Droid" msgid " or " -msgstr "albo" +msgstr "albo " msgid "via Google Play" msgstr "przez Google Play" msgid "download the application" -msgstr "pobrać aplikację" +msgstr "pobierz aplikację" msgid "By filling this field" msgstr "Poprzez wypełnienie tego pola" -msgid "poche it!" -msgstr "zapisać!" +msgid "bag it!" +msgstr "zapisz!" msgid "Bookmarklet: drag & drop this link to your bookmarks bar" -msgstr "Bookmarklet: przeciągnij i upucs ten link na pasek zakladek" +msgstr "Skryptozakładka: przeciągnij i upuść ten link na twój pasek zakładek" -msgid "Updating poche" -msgstr "Aktualizacja poche" +msgid "Upgrading wallabag" +msgstr "Aktualizacja wallabag" msgid "Installed version" -msgstr "Zainstalowana wersja " +msgstr "Zainstalowana wersja" msgid "Latest stable version" msgstr "Najnowsza stabilna wersja" @@ -186,58 +76,64 @@ msgid "A more recent stable version is available." msgstr "Nowsza stabilna wersja jest dostępna." msgid "You are up to date." -msgstr "Masz wszystko najnowsze." - -msgid "latest dev version" -msgstr "najnowsza wersja dev" +msgstr "Posiadasz najnowszą wersję." -msgid "a more recent development version is available." -msgstr "Nowsza wersja rozwojowa jest dostępna." +msgid "Latest dev version" +msgstr "Najnowsza wersja developerska" -msgid "you are up to date." -msgstr "masz wszystko najnowsze." +msgid "A more recent development version is available." +msgstr "Nowsza developerska wersja jest dostępna." msgid "Feeds" -msgstr "Kanały (feeds)" +msgstr "Kanały" -msgid "Your feed token is currently empty and must first be generated to enable feeds. Click here to generate it." -msgstr "Twój znak kanału jest pusty i musi najpierw zostac wygenerowany. Kliknij tu dla jego generacji." +msgid "" +"Your feed token is currently empty and must first be generated to enable " +"feeds. Click here to generate it." +msgstr "" +"Twój token kanału jest aktualnie pusty i musi zostać wygenerowany, aby " +"włączyć kanały. Kliknij tutaj, aby go " +"wygenerować." msgid "Unread feed" -msgstr "Kanał nieprzeczytanego" +msgstr "Nieprzeczytane kanały" msgid "Favorites feed" -msgstr "Kanał ulubionego" +msgstr "Ulubione kanały" msgid "Archive feed" -msgstr "Kanał archiwum" +msgstr "Kanały archiwum" msgid "Your token:" -msgstr "Twój znak (token): " +msgstr "Twój token:" msgid "Your user id:" -msgstr "Twój id użytkownika (user id):" +msgstr "Twój id użytkownika:" -msgid "You can regenerate your token: generate!." -msgstr "Mozna zgenerowac nowy znak: kliknij zgenerowac!." +msgid "" +"You can regenerate your token: generate!" +"." +msgstr "" +"Możesz wygenewrować ponownie swój token: generuj!." msgid "Change your theme" -msgstr "Zmienic motyw" +msgstr "Zmień swój motyw" msgid "Theme:" msgstr "Motyw:" msgid "Update" -msgstr "Aktualizacja" +msgstr "Aktualizuj" msgid "Change your language" -msgstr "Zmienić język" +msgstr "Zmień język" msgid "Language:" msgstr "Język:" msgid "Change your password" -msgstr "Zmień hasło" +msgstr "Zmień swoje hasło" msgid "New password:" msgstr "Nowe hasło:" @@ -246,164 +142,373 @@ msgid "Password" msgstr "Hasło" msgid "Repeat your new password:" -msgstr "Powtórz hasło jeszcze raz:" +msgstr "Powtórz twoje nowe hasło:" msgid "Import" msgstr "Import" -msgid "Please execute the import script locally as it can take a very long time." -msgstr "Proszę wykonać skrypt import lokalnie, gdyż moze to trwać bardzo długo." +msgid "" +"Please execute the import script locally as it can take a very long time." +msgstr "" +"Proszę wykonaj skrypt importu lokalnie, ponieważ może to trwać bardzo długo." -msgid "More info in the official docs:" -msgstr "Więcej informacji w oficjalnej dokumentacji:" +msgid "More info in the official documentation:" +msgstr "Więcej informacji znajdziesz w oficjalnej dokumentacji:" msgid "Import from Pocket" -msgstr "Іmport z Pocket'a" +msgstr "Importuj z Pocket" #, php-format msgid "(you must have a %s file on your server)" -msgstr "(musisz mieć plik %s na serwerze)" +msgstr "(musisz mieć plik %s na swoim serwerze)" msgid "Import from Readability" -msgstr "Import z Readability" +msgstr "Importuj z Readability" msgid "Import from Instapaper" -msgstr "Import z Instapaper" +msgstr "Importuj z Instapaper" -msgid "Import from poche" -msgstr "Import z poche" +msgid "Import from wallabag" +msgstr "Importuj z wallabag" -msgid "Export your poche data" -msgstr "Eksportowac dane poche" +msgid "Export your wallabag data" +msgstr "Wyeksportuj swoje dane wallabag" msgid "Click here" msgstr "Kliknij tu" msgid "to download your database." -msgstr "aby pobrac bazę danych." +msgstr "aby pobrać twoją bazę danych." -msgid "to export your poche data." -msgstr "aby eksportować dane poche." +msgid "to export your wallabag data." +msgstr "aby wyeksportować dane wallabag." -msgid "Tag" -msgstr "Teg" - -msgid "No link available here!" -msgstr "Brak dostępnych linków!" +msgid "Cache" +msgstr "Cache" -msgid "toggle mark as read" -msgstr "przełączyć znak jako przeczytane" +msgid "to delete cache." +msgstr "aby wyczyścić cache." msgid "You can enter multiple tags, separated by commas." -msgstr "Mozna wprowadzić wiele tagów rozdzielajac je przecinkami." +msgstr "Możesz wprowadzić wiele tagów, oddzielonych przecinkami." msgid "return to article" -msgstr "wrócić do artykułu" +msgstr "powrót do artykułu" msgid "plop" msgstr "plop" -msgid "You can check your configuration here." -msgstr "Można sprawdzić swoją konfigurację tu." +msgid "" +"You can check your configuration " +"here." +msgstr "" +"Możesz sprawdzić swoją " +"konfigurację tutaj." + +msgid "favoris" +msgstr "favoris" + +msgid "archive" +msgstr "archiwum" + +msgid "unread" +msgstr "nieprzeczytane" + +msgid "by date asc" +msgstr "po dacie rosnąco" + +msgid "by date" +msgstr "po dacie" + +msgid "by date desc" +msgstr "po dacie malejąco" + +msgid "by title asc" +msgstr "po tytule rosnąco" + +msgid "by title" +msgstr "po tytule" + +msgid "by title desc" +msgstr "po tytule malejąco" + +msgid "Tag" +msgstr "Otaguj" + +msgid "No articles found." +msgstr "Nie znaleziono artykułów." + +msgid "Toggle mark as read" +msgstr "Przełącz jako przeczytane" + +msgid "toggle favorite" +msgstr "przełącz ulubione" + +msgid "delete" +msgstr "usuń" + +msgid "original" +msgstr "oryginał" + +msgid "estimated reading time:" +msgstr "szacowany czas czytania:" + +msgid "mark all the entries as read" +msgstr "zaznacz wszystkie wpisy jako przeczytane" + +msgid "results" +msgstr "rezultaty" msgid "installation" msgstr "instalacja" msgid "install your wallabag" -msgstr "zainstalować wallabag" +msgstr "zainstauj wallabag" -msgid "wallabag is still not installed. Please fill the below form to install it. Don't hesitate to read the documentation on wallabag website." -msgstr "wallabag nie jest jeszcze zainstalowany. Proszę wypełnić poniższy formularz, aby go zainstalowac. Nie wahaj się zapoznac się z dokumentacja na stronie wallabag." +msgid "" +"wallabag is still not installed. Please fill the below form to install it. " +"Don't hesitate to read the documentation " +"on wallabag website." +msgstr "" +"wallabag wciąż nie jest zainstalowany. Proszę wypełnij poniższy formularz " +"aby go zainstalować. Nie wahaj się przeczytać dokumentacji na stronie wallabag." msgid "Login" msgstr "Login" msgid "Repeat your password" -msgstr "Powtórz hasło" +msgstr "Powtórz swoje hasło" msgid "Install" -msgstr "Instalowac" +msgstr "Zainstauj" msgid "login to your wallabag" -msgstr "zalogować się do swojego wallabag" +msgstr "zaloguj się do twojego wallabag" msgid "Login to wallabag" -msgstr "Zalogować się do wallabag" +msgstr "Logowanie do wallabag" msgid "you are in demo mode, some features may be disabled." -msgstr "jesteś w trybie demo, niektóre funkcje mogą być niedostępne." +msgstr "jesteś w trybie demo, niektóre funkcjonalności mogą być wyłączone." msgid "Username" -msgstr "Imię użytkownika" +msgstr "Nazwa użytkownika" msgid "Stay signed in" msgstr "Pozostań zalogowany" msgid "(Do not check on public computers)" -msgstr "(Nie sprawdzaj na publicznych komputerach" +msgstr "(Nie zaznaczaj na komputerach z publicznym dostępem)" + +msgid "Sign in" +msgstr "Zaloguj się" + +msgid "favorites" +msgstr "ulubione" + +msgid "estimated reading time :" +msgstr "szacowany czas czytania :" + +msgid "Mark all the entries as read" +msgstr "Zaznacz wszystkie wpisy jako przeczytane" + +msgid "Return home" +msgstr "Powrót na stronę domową" + +msgid "Back to top" +msgstr "Powrót na górę" + +msgid "Mark as read" +msgstr "Oznacz jako przeczytane" + +msgid "Favorite" +msgstr "Ulubione" + +msgid "Toggle favorite" +msgstr "Przełącz ulubione" + +msgid "Delete" +msgstr "Usuń" + +msgid "Tweet" +msgstr "Tweet" + +msgid "Email" +msgstr "Email" + +msgid "shaarli" +msgstr "shaarli" + +msgid "flattr" +msgstr "flattr" + +msgid "Does this article appear wrong?" +msgstr "Czy ten artykuł jest wyświetlany niepoprawnie?" + +msgid "tags:" +msgstr "tagi:" + +msgid "Edit tags" +msgstr "Edytuj tagi" + +msgid "save link!" +msgstr "zapisz link!" + +msgid "home" +msgstr "strona domowa" + +msgid "tags" +msgstr "tagi" + +msgid "logout" +msgstr "wyloguj" + +msgid "powered by" +msgstr "w oparciu o" + +msgid "debug mode is on so cache is off." +msgstr "tryb debug jest włączony zatem cache jest wyłączony." + +msgid "your wallabag version:" +msgstr "wersja twojego wallabag:" + +msgid "storage:" +msgstr "storage:" + +msgid "save a link" +msgstr "zapisz link" + +msgid "back to home" +msgstr "powrót do strony domowej" + +msgid "toggle mark as read" +msgstr "przełącz jako przeczytane" + +msgid "tweet" +msgstr "tweet" + +msgid "email" +msgstr "email" + +msgid "this article appears wrong?" +msgstr "ten artykuł wygląda niepoprawnie?" + +msgid "No link available here!" +msgstr "No link available here!" + +#, fuzzy +msgid "Poching a link" +msgstr "Poching a link" + +msgid "by filling this field" +msgstr "przez wypełnienie tego pola" + +msgid "bookmarklet: drag & drop this link to your bookmarks bar" +msgstr "skryptozakładka: przeciągnij i upuść ten link na twój pasek zakładek" + +msgid "your version" +msgstr "twoja wersja" + +msgid "latest stable version" +msgstr "najnowsza stabilna wersja" + +msgid "a more recent stable version is available." +msgstr "nowsza wersja stabilna jest dostępna." + +msgid "you are up to date." +msgstr "posiadasz najnowszą wersję." + +msgid "latest dev version" +msgstr "najnowsza wersja developerska" + +msgid "a more recent development version is available." +msgstr "nowsza wersja developerska jest dostępna." + +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 "import from Pocket" +msgstr "import from Pocket" + +msgid "import from Readability" +msgstr "import from Readability" + +msgid "import from Instapaper" +msgstr "import from Instapaper" + +msgid "Tags" +msgstr "Tagi" msgid "Untitled" -msgstr "Bez nazwy" +msgstr "Untitled" msgid "the link has been added successfully" -msgstr "link pozostał pomyślnie dodany" +msgstr "link został dodany pomyślnie" msgid "error during insertion : the link wasn't added" -msgstr "błąd podczas wprowadzania: link nie zostal dodany" +msgstr "błąd podczas dodawania : link nie został dodany" msgid "the link has been deleted successfully" -msgstr "link zostal pomyślnie usunięty" +msgstr "link został usunięty pomyślnie" msgid "the link wasn't deleted" msgstr "link nie został usunięty" +msgid "Article not found!" +msgstr "Artykuł nie znaleziony!" + msgid "previous" -msgstr "poprzednia" +msgstr "poprzedni" msgid "next" -msgstr "następna" +msgstr "następny" msgid "in demo mode, you can't update your password" -msgstr "w trybie demo, nie można zmieniać hasła" +msgstr "w trybie demo nie możesz zaktualizować swojego hasła" msgid "your password has been updated" -msgstr "twoje hasło zmienione" +msgstr "twoje hasło zostało zaktualizowane" -msgid "the two fields have to be filled & the password must be the same in the two fields" -msgstr "oba pola muszą być wypełnione i hasła muszę być takie same w obu polach" +msgid "" +"the two fields have to be filled & the password must be the same in the two " +"fields" +msgstr "" +"oba pola muszą być wypełnione oraz hasło musi być takie same w obu polach" msgid "still using the \"" -msgstr "nadal w użyciu \"" +msgstr "wciąż używam \"" msgid "that theme does not seem to be installed" -msgstr "wydaje się że motyw nie był zainstalowany" +msgstr "ten motyw nie wygląda na zainstalowany" msgid "you have changed your theme preferences" -msgstr "ustawienia motywu zostałe zmienione" +msgstr "zmieniłeś swoje preferencje motywu" msgid "that language does not seem to be installed" -msgstr "wydaje się że język nie był zainstalowany" +msgstr "ten język nie wygląda na zainstalowany" msgid "you have changed your language preferences" -msgstr "ustawienia języka zostałe zmienione" +msgstr "zmieniłeś swoje preferencje językowe" msgid "login failed: you have to fill all fields" -msgstr "logowanie nie powiodlo się: musisz wypełnić wszystkie pola" +msgstr "logowanie się nie powiodło: musisz wypełnić wszystkie pola" -msgid "welcome to your poche" -msgstr "witamy w poche" +msgid "welcome to your wallabag" +msgstr "witaj w twoim wallabag" msgid "login failed: bad login or password" -msgstr "logowanie nie powiodlo się: zly login lub hasło" - -msgid "see you soon!" -msgstr "do zobaczenia wkrótce!" +msgstr "logowanie się nie powiodło: nieprawidłowy login lub hasło" msgid "import from instapaper completed" -msgstr "import з instapaper'a zakończony" +msgstr "import z instapaper zakończony" msgid "import from pocket completed" -msgstr "import z pocket'a zakończony" +msgstr "import z pocket zakończony" msgid "import from Readability completed. " msgstr "import z Readability zakończony. " @@ -415,14 +520,34 @@ msgid "Unknown import provider." msgstr "Nieznany dostawca importu." msgid "Incomplete inc/poche/define.inc.php file, please define \"" -msgstr "Niekompletny plik inc/poche/define.inc.php, proszę definiować \"" +msgstr "Niekompletny plik inc/poche/define.inc.php, proszę zdefiniuj \"" msgid "Could not find required \"" -msgstr "Nie znaleziono potrzebnego \"" +msgstr "Nie znaleziono wymaganego \"" msgid "Uh, there is a problem while generating feeds." -msgstr "Uh, jest problem podczas generowania kanałów (feeds)." +msgstr "Ah, wystąpił problem podczas generowania kanałów." + +msgid "Cache deleted." +msgstr "Cache usunięty." msgid "Oops, it seems you don't have PHP 5." -msgstr "Oops, wygląda ze u was niema PHP 5." +msgstr "Oops, wygląda na to że nie masz PHP 5." + +#~ msgid "poche it!" +#~ msgstr "poche it!" + +#~ msgid "Updating poche" +#~ msgstr "Updating poche" + +#~ msgid "create an issue" +#~ msgstr "create an issue" + +#~ msgid "or" +#~ msgstr "or" + +#~ msgid "contact us by mail" +#~ msgstr "contact us by mail" +#~ msgid "your poche version:" +#~ msgstr "your poche version:" -- cgit v1.2.3 From 9c67b1b829290e5e78cb7da90acf285d6cd5c48f Mon Sep 17 00:00:00 2001 From: Marc Wilhelm Date: Tue, 22 Jul 2014 11:52:18 +0200 Subject: Split up check_setup.php into two files. The new file check_essentials.php takes care of stuff like the PHP version and is executed before the config files are included which are needed by check_setup. This patch addresses issue #773 --- check_essentials.php | 14 ++++++++++++++ check_setup.php | 15 +-------------- index.php | 3 ++- 3 files changed, 17 insertions(+), 15 deletions(-) create mode 100644 check_essentials.php diff --git a/check_essentials.php b/check_essentials.php new file mode 100644 index 00000000..a47cd5a8 --- /dev/null +++ b/check_essentials.php @@ -0,0 +1,14 @@ + "short_open_tag = On"'); + } +} \ No newline at end of file diff --git a/check_setup.php b/check_setup.php index 2b84a744..7e378b15 100644 --- a/check_setup.php +++ b/check_setup.php @@ -1,25 +1,12 @@ "short_open_tag = On"'); - } -} - // Check if /cache is writeable if (! is_writable('cache')) { die('The directory "cache" must be writeable by your web server user'); } // Check if /db is writeable -if (! is_writable('db')) { +if (! is_writable('db') && STORAGE === 'sqlite') { die('The directory "db" must be writeable by your web server user'); } diff --git a/index.php b/index.php index 481841ec..cce10b50 100755 --- a/index.php +++ b/index.php @@ -9,8 +9,9 @@ */ define ('POCHE', '1.7.1'); -require 'check_setup.php'; +require 'check_essentials.php'; require_once 'inc/poche/global.inc.php'; +require 'check_setup.php'; # Set error reporting level if (defined('ERROR_REPORTING')) { -- cgit v1.2.3 From b738bea9ca03c7c05e8c159b9c2f48fb40e58ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Tue, 22 Jul 2014 16:37:13 +0200 Subject: Fix #776 --- themes/baggy/config.twig | 2 +- themes/default/config.twig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/baggy/config.twig b/themes/baggy/config.twig index 46735f07..e45c3218 100755 --- a/themes/baggy/config.twig +++ b/themes/baggy/config.twig @@ -111,7 +111,7 @@
- +
diff --git a/themes/default/config.twig b/themes/default/config.twig index 160f6046..8f047ae6 100755 --- a/themes/default/config.twig +++ b/themes/default/config.twig @@ -110,7 +110,7 @@
- +
-- cgit v1.2.3 From 9cf6bac1a502d1418834f4f7619d40eb65378c60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Tue, 22 Jul 2014 18:01:27 +0200 Subject: fix to display the login successful message with the translation --- inc/poche/Poche.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 09a9f5ff..2b0c3bf8 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -877,6 +877,14 @@ class Poche $longlastingsession = isset($_POST['longlastingsession']); $passwordTest = ($isauthenticated) ? $user['password'] : Tools::encodeString($password . $login); Session::login($user['username'], $user['password'], $login, $passwordTest, $longlastingsession, array('poche_user' => new User($user))); + + # reload l10n + $language = $user['config']['language']; + @putenv('LC_ALL=' . $language); + setlocale(LC_ALL, $language); + bindtextdomain($language, LOCALE); + textdomain($language); + $this->messages->add('s', _('welcome to your wallabag')); Tools::logm('login successful'); Tools::redirect($referer); -- cgit v1.2.3 From 3e87066506bbbc5e0819c4f8bc7ec5b763b76303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Tue, 22 Jul 2014 18:12:03 +0200 Subject: fix display of 'Done' message when we add a link from 'save a link' item --- themes/baggy/_pocheit-form.twig | 2 +- themes/baggy/css/main.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/baggy/_pocheit-form.twig b/themes/baggy/_pocheit-form.twig index 505ec368..57a928c0 100755 --- a/themes/baggy/_pocheit-form.twig +++ b/themes/baggy/_pocheit-form.twig @@ -4,7 +4,7 @@ {% trans "Save a link" %} + -
diff --git a/themes/baggy/css/main.css b/themes/baggy/css/main.css index 6d320cd2..711c152b 100755 --- a/themes/baggy/css/main.css +++ b/themes/baggy/css/main.css @@ -630,7 +630,7 @@ a.add-to-wallabag-link-after:after { #add-link-result { font-weight: bold; - margin-top: 10px; + font-size: 0.9em; } /* ========================================================================== -- cgit v1.2.3 From cca9284b6a8111f5dd07bca3f8d4f266ceee3c1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Tue, 22 Jul 2014 18:14:41 +0200 Subject: change default pagination, set it to 12, to have a nice baggy display --- inc/poche/config.inc.default.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/poche/config.inc.default.php b/inc/poche/config.inc.default.php index 95f727c6..d0158097 100755 --- a/inc/poche/config.inc.default.php +++ b/inc/poche/config.inc.default.php @@ -59,7 +59,7 @@ @define ('LOCALE', ROOT . '/locale'); @define ('CACHE', ROOT . '/cache'); -@define ('PAGINATION', '10'); +@define ('PAGINATION', '12'); //limit for download of articles during import @define ('IMPORT_LIMIT', 5); -- cgit v1.2.3 From 9f8541ef2a9dc670ca75fb452c0930e1afa4a8f6 Mon Sep 17 00:00:00 2001 From: Maryana Rozhankivska Date: Tue, 22 Jul 2014 20:17:15 +0300 Subject: highlight.js library added to highlight programming code examples in article view --- themes/baggy/css/main.css | 8 ++ themes/baggy/view.twig | 1 + themes/default/_highlight.twig | 4 + themes/default/css/style.css | 6 + themes/default/highlightjs/highlight.pack.js | 1 + themes/default/highlightjs/styles/default.css | 152 +++++++++++++++++++++++ themes/default/highlightjs/styles/github.css | 127 +++++++++++++++++++ themes/default/highlightjs/styles/googlecode.css | 148 ++++++++++++++++++++++ themes/default/view.twig | 1 + 9 files changed, 448 insertions(+) create mode 100755 themes/default/_highlight.twig create mode 100644 themes/default/highlightjs/highlight.pack.js create mode 100644 themes/default/highlightjs/styles/default.css create mode 100644 themes/default/highlightjs/styles/github.css create mode 100644 themes/default/highlightjs/styles/googlecode.css diff --git a/themes/baggy/css/main.css b/themes/baggy/css/main.css index 6d320cd2..f8238744 100755 --- a/themes/baggy/css/main.css +++ b/themes/baggy/css/main.css @@ -923,6 +923,13 @@ blockquote { text-decoration: underline; } +pre code { + font-family: "Courier New", Courier, monospace; + border: 1px solid #ccc; + font-size: 0.96em; +} + + /* ========================================================================== 6 = Media Queries ========================================================================== */ @@ -1055,3 +1062,4 @@ blockquote { left: 0; } } + diff --git a/themes/baggy/view.twig b/themes/baggy/view.twig index af97407d..703ce5be 100755 --- a/themes/baggy/view.twig +++ b/themes/baggy/view.twig @@ -4,6 +4,7 @@ {% endblock %} {% block title %}{{ entry.title|raw }} ({{ entry.url | e | getDomain }}){% endblock %} {% block content %} + {% include '_highlight.twig' %}