Merge branch 'dev' into refactor

Conflicts:
	check_setup.php
	index.php
This commit is contained in:
Nicolas Lœuillet 2014-07-23 13:42:30 +02:00
commit 505a74ad1d
17 changed files with 846 additions and 347 deletions

14
check_essentials.php Normal file
View File

@ -0,0 +1,14 @@
<?php
// PHP 5.3 minimum
if (version_compare(PHP_VERSION, '5.3.3', '<')) {
die('This software require PHP 5.3.3 minimum');
}
// Short tags must be enabled for PHP < 5.4
if (version_compare(PHP_VERSION, '5.4.0', '<')) {
if (! ini_get('short_open_tag')) {
die('This software require to have short tags enabled, check your php.ini => "short_open_tag = On"');
}
}

View File

@ -1,22 +1,13 @@
<?php <?php
// PHP 5.3 minimum
if (version_compare(PHP_VERSION, '5.3.3', '<')) { // Check if /cache is writeable
die('This software require PHP 5.3.3 minimum'); if (! is_writable('cache')) {
die('The directory "cache" must be writeable by your web server user');
} }
// Short tags must be enabled for PHP < 5.4 // Check if /db is writeable
if (version_compare(PHP_VERSION, '5.4.0', '<')) { if (! is_writable('db') && STORAGE === 'sqlite') {
die('The directory "db" must be writeable by your web server user');
if (! ini_get('short_open_tag')) {
die('This software require to have short tags enabled, check your php.ini => "short_open_tag = On"');
}
}
$writableFolders = array('cache', 'db');
foreach ($writableFolders as $folder) {
if (! is_writable($folder)) {
die('The directory "' . $folder . '" must be writeable by your web server user');
}
} }
// install folder still present, need to install wallabag // install folder still present, need to install wallabag

17
inc/3rdparty/libraries/readability/Readability.php vendored Normal file → Executable file
View File

@ -679,6 +679,7 @@ class Readability
} else { } else {
$topCandidate->innerHTML = $page->documentElement->innerHTML; $topCandidate->innerHTML = $page->documentElement->innerHTML;
$page->documentElement->innerHTML = ''; $page->documentElement->innerHTML = '';
$this->reinitBody();
$page->documentElement->appendChild($topCandidate); $page->documentElement->appendChild($topCandidate);
} }
} else { } 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 // 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. // 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->reinitBody();
$this->body->innerHTML = $this->bodyCache;
if ($this->flagIsActive(self::FLAG_STRIP_UNLIKELYS)) { if ($this->flagIsActive(self::FLAG_STRIP_UNLIKELYS)) {
$this->removeFlag(self::FLAG_STRIP_UNLIKELYS); $this->removeFlag(self::FLAG_STRIP_UNLIKELYS);
@ -1134,5 +1134,18 @@ class Readability
public function removeFlag($flag) { public function removeFlag($flag) {
$this->flags = $this->flags & ~$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;
}
}
} }
?> ?>

View File

@ -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

9
inc/3rdparty/site_config/standard/dn.pt.txt vendored Executable file
View File

@ -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)
#<input type="hidden" name="link-comments" class="link-comments" value="3972244">
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

View File

@ -9,8 +9,9 @@
*/ */
define ('POCHE', '1.8.0'); define ('POCHE', '1.8.0');
require 'check_setup.php'; require 'check_essentials.php';
require_once 'inc/poche/global.inc.php'; require_once 'inc/poche/global.inc.php';
require 'check_setup.php';
// Start session // Start session
Session::$sessionName = 'wallabag'; Session::$sessionName = 'wallabag';

BIN
locale/pl_PL.utf8/LC_MESSAGES/pl_PL.utf8.mo Executable file → Normal file

Binary file not shown.

View File

@ -1,233 +1,34 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: wballabag\n" "Project-Id-Version: wallabag\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-02-24 15:19+0300\n" "POT-Creation-Date: 2014-02-25 15:17+0300\n"
"PO-Revision-Date: 2014-02-24 15:29+0300\n" "PO-Revision-Date: \n"
"Last-Translator: Maryana <mariroz@mr.lviv.ua>\n" "Last-Translator: skibbipl <skibbipl@users.noreply.github.com>\n"
"Language-Team: \n" "Language-Team: \n"
"Language: \n" "Language: pl\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\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-Basepath: .\n"
"X-Poedit-Language: Polish\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
"X-Poedit-Country: POLAND\n" "|| n%100>=20) ? 1 : 2);\n"
"X-Poedit-SourceCharset: utf-8\n" "X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-SearchPath-0: /home/mariroz/_DEV/web/wallabag/wallabag-master-testing\n" "X-Poedit-SearchPath-0: /home/mariroz/_DEV/web/wallabag/wallabag-master-"
"testing\n"
msgid "poche, a read it later open source system" msgid "wallabag, a read it later open source system"
msgstr "poche, serwis odrocznego czytania open source" msgstr "wallabag, open source'owy system typu \"przeczytaj to później\""
msgid "login failed: user doesn't exist" msgid "login failed: user doesn't exist"
msgstr "logowanie nie udało się: użytkownik nie istnieje" msgstr "logowanie się nie powiodło: użytkownik nie istnieje"
msgid "home" msgid "return home"
msgstr "strona domowa" msgstr "powrót do strony domowej"
msgid "favorites"
msgstr "ulubione"
msgid "archive"
msgstr "archiwum"
msgid "tags"
msgstr "tagi"
msgid "config" msgid "config"
msgstr "ustawienia" msgstr "konfiguracja"
msgid "logout"
msgstr "wyloguj"
msgid "back to home"
msgstr "wróć do strony domowej"
msgid "Tags"
msgstr "Tagi"
#, fuzzy
msgid "Poching a link"
msgstr "Zapisywanie linków"
msgid "You can poche a link by several methods:"
msgstr "Istnieje kilka sposobów aby zapisać link:"
msgid "read the documentation"
msgstr "przeczytaj dokumentację"
msgid "download the extension"
msgstr "pobierz rozszerzenie"
msgid "download the application"
msgstr "pobierz aplikację"
#, fuzzy
msgid "by filling this field"
msgstr "Poprzez wypełnienie tego pola"
msgid "poche it!"
msgstr "zapisz!"
#, fuzzy
msgid "bookmarklet: drag & drop this link to your bookmarks bar"
msgstr "Bookmarklet: przeciągnij i upucs ten link na pasek zakladek"
msgid "Updating poche"
msgstr "Aktualizacja poche"
msgid "your version"
msgstr "twoja wersja"
#, fuzzy
msgid "latest stable version"
msgstr "Najnowsza stabilna wersja"
#, fuzzy
msgid "a more recent stable version is available."
msgstr "Nowsza stabilna wersja jest dostępna."
msgid "you are up to date."
msgstr "brak nowych aktualizacji."
msgid "latest dev version"
msgstr "najnowsza wersja rozwojowa"
msgid "a more recent development version is available."
msgstr "Nowsza wersja rozwojowa jest dostępna."
msgid "Change your theme"
msgstr "Zmień motyw"
msgid "Theme:"
msgstr "Motyw:"
msgid "Update"
msgstr "Aktualizacja"
msgid "Change your password"
msgstr "Zmień hasło"
msgid "New password:"
msgstr "Nowe hasło:"
msgid "Password"
msgstr "Hasło"
msgid "Repeat your new password:"
msgstr "Powtórz hasło jeszcze raz:"
msgid "Import"
msgstr "Import"
msgid "Please execute the import script locally, it can take a very long time."
msgstr "Proszę wykonać skrypt importu lokalnie, ponieważ moze to trwać bardzo długo."
msgid "More infos in the official doc:"
msgstr "Więcej informacji znajduje się w oficjalnej dokumentacji:"
msgid "import from Pocket"
msgstr "Importuj z Pocket'a"
#, php-format
msgid "(you must have a %s file on your server)"
msgstr "(musisz mieć plik %s na serwerze)"
msgid "import from Readability"
msgstr "Importuj z Readability"
msgid "import from Instapaper"
msgstr "Importuj z Instapaper"
#, fuzzy
msgid "Export your poche datas"
msgstr "Exportuj dane poche"
msgid "Click here"
msgstr "Kliknij tu"
#, fuzzy
msgid "to export your poche datas."
msgstr "aby wyeksportować dane poche."
msgid "plop"
msgstr "plop"
msgid "installation"
msgstr "instalacja"
msgid "install your wallabag"
msgstr "zainstaluj wallabag"
msgid "wallabag is still not installed. Please fill the below form to install it. Don't hesitate to <a href='http://doc.wallabag.org/'>read the documentation on wallabag website</a>."
msgstr "wallabag nie jest jeszcze zainstalowany. Proszę wypełnić poniższy formularz, aby go zainstalować. Nie wahaj się <a href='http://doc.wallabag.org/'>zapoznać się z dokumentacją na stronie wallabag</a>."
msgid "Login"
msgstr "Login"
msgid "Repeat your password"
msgstr "Powtórz hasło"
msgid "Install"
msgstr "Instaluj"
msgid "favoris"
msgstr "ulubione"
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 maleją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 link available here!"
msgstr "Brak dostępnych linkó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 odczytu:"
msgid "results"
msgstr "wyniki"
msgid "login to your wallabag"
msgstr "zaloguj się do swojego wallabag"
msgid "you are in demo mode, some features may be disabled."
msgstr "jesteś w trybie demo, niektóre funkcje mogą być wyłączone."
msgid "Stay signed in"
msgstr "Pozostań zalogowany"
msgid "(Do not check on public computers)"
msgstr "(Nie sprawdzaj na publicznych komputerach)"
msgid "Saving articles" msgid "Saving articles"
msgstr "Zapisywanie artykułów" msgstr "Zapisywanie artykułów"
@ -235,6 +36,12 @@ msgstr "Zapisywanie artykułów"
msgid "There are several ways to save an article:" msgid "There are several ways to save an article:"
msgstr "Istnieje kilka sposobów aby zapisać artykuł:" msgstr "Istnieje kilka sposobów aby zapisać artykuł:"
msgid "read the documentation"
msgstr "przeczytaj dokumentację"
msgid "download the extension"
msgstr "pobierz rozszerzenie"
msgid "via F-Droid" msgid "via F-Droid"
msgstr "przez F-Droid" msgstr "przez F-Droid"
@ -244,6 +51,9 @@ msgstr "albo"
msgid "via Google Play" msgid "via Google Play"
msgstr "przez Google Play" msgstr "przez Google Play"
msgid "download the application"
msgstr "pobierz aplikację"
msgid "By filling this field" msgid "By filling this field"
msgstr "Poprzez wypełnienie tego pola" msgstr "Poprzez wypełnienie tego pola"
@ -251,7 +61,7 @@ msgid "bag it!"
msgstr "zapisz!" msgstr "zapisz!"
msgid "Bookmarklet: drag & drop this link to your bookmarks bar" msgid "Bookmarklet: drag & drop this link to your bookmarks bar"
msgstr "Bookmarklet: przeciągnij i upuść ten link na pasek zakladek" msgstr "Skryptozakładka: przeciągnij i upuść ten link na twój pasek zakładek"
msgid "Upgrading wallabag" msgid "Upgrading wallabag"
msgstr "Aktualizacja wallabag" msgstr "Aktualizacja wallabag"
@ -266,38 +76,55 @@ msgid "A more recent stable version is available."
msgstr "Nowsza stabilna wersja jest dostępna." msgstr "Nowsza stabilna wersja jest dostępna."
msgid "You are up to date." msgid "You are up to date."
msgstr "Brak nowych aktualizacji." msgstr "Posiadasz najnowszą wersję."
msgid "Latest dev version" msgid "Latest dev version"
msgstr "Najnowsza wersja rozwojowa" msgstr "Najnowsza wersja developerska"
#, fuzzy
msgid "A more recent development version is available." msgid "A more recent development version is available."
msgstr "Nowsza wersja rozwojowa jest dostępna." msgstr "Nowsza developerska wersja jest dostępna."
msgid "Feeds" 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 <a href='?feed&amp;action=generate'>here to generate it</a>." msgid ""
msgstr "Twój token kanału jest pusty i musi najpierw zostać wygenerowany. Kliknij <a href='?feed&action=generate'>tu aby go wygenerować</a>." "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>."
msgstr ""
"Twój token kanału jest aktualnie pusty i musi zostać wygenerowany, aby "
"włączyć kanały. Kliknij <a href='?feed&amp;action=generate'>tutaj, aby go "
"wygenerować</a>."
msgid "Unread feed" msgid "Unread feed"
msgstr "Kanał nieprzeczytanych" msgstr "Nieprzeczytane kanały"
msgid "Favorites feed" msgid "Favorites feed"
msgstr "Kanał ulubionych" msgstr "Ulubione kanały"
msgid "Archive feed" msgid "Archive feed"
msgstr "Kanał archiwum" msgstr "Kanały archiwum"
msgid "Your token:" msgid "Your token:"
msgstr "Twój token:" msgstr "Twój token:"
msgid "Your user id:" msgid "Your user id:"
msgstr "Twój identyfikator użytkownika:" msgstr "Twój id użytkownika:"
msgid "You can regenerate your token: <a href='?feed&amp;action=generate'>generate!</a>." msgid ""
msgstr "Możesz wygenerować token ponownie: kliknij <a href='?feed&amp;action=generate'>generuj!</a>." "You can regenerate your token: <a href='?feed&amp;action=generate'>generate!"
"</a>."
msgstr ""
"Możesz wygenewrować ponownie swój token: <a href='?feed&amp;"
"action=generate'>generuj!</a>."
msgid "Change your theme"
msgstr "Zmień swój motyw"
msgid "Theme:"
msgstr "Motyw:"
msgid "Update"
msgstr "Aktualizuj"
msgid "Change your language" msgid "Change your language"
msgstr "Zmień język" msgstr "Zmień język"
@ -305,33 +132,56 @@ msgstr "Zmień język"
msgid "Language:" msgid "Language:"
msgstr "Język:" msgstr "Język:"
msgid "Please execute the import script locally as it can take a very long time." msgid "Change your password"
msgstr "Proszę wykonać skrypt importu lokalnie, gdyż moze to trwać bardzo długo." msgstr "Zmień swoje hasło"
msgid "New password:"
msgstr "Nowe hasło:"
msgid "Password"
msgstr "Hasło"
msgid "Repeat your new password:"
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ę wykonaj skrypt importu lokalnie, ponieważ może to trwać bardzo długo."
#, fuzzy
msgid "More info in the official documentation:" msgid "More info in the official documentation:"
msgstr "Więcej informacji znajduje się w oficjalnej dokumentacji:" msgstr "Więcej informacji znajdziesz w oficjalnej dokumentacji:"
msgid "Import from Pocket" 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 swoim serwerze)"
msgid "Import from Readability" msgid "Import from Readability"
msgstr "Import z Readability" msgstr "Importuj z Readability"
msgid "Import from Instapaper" msgid "Import from Instapaper"
msgstr "Import z Instapaper" msgstr "Importuj z Instapaper"
msgid "Import from wallabag" msgid "Import from wallabag"
msgstr "Import z wallabag" msgstr "Importuj z wallabag"
msgid "Export your wallabag data" msgid "Export your wallabag data"
msgstr "Eksportowac dane wallabag" msgstr "Wyeksportuj swoje dane wallabag"
msgid "Click here"
msgstr "Kliknij tu"
msgid "to download your database." msgid "to download your database."
msgstr "aby pobrac bazę danych." msgstr "aby pobrać twoją bazę danych."
msgid "to export your wallabag data." msgid "to export your wallabag data."
msgstr "aby eksportować dane wallabag." msgstr "aby wyeksportować dane wallabag."
msgid "Cache" msgid "Cache"
msgstr "Cache" msgstr "Cache"
@ -339,52 +189,51 @@ msgstr "Cache"
msgid "to delete cache." msgid "to delete cache."
msgstr "aby wyczyścić cache." msgstr "aby wyczyścić cache."
msgid "tweet"
msgstr "tweet"
#, fuzzy
msgid "email"
msgstr "Wyślij email"
msgid "shaarli"
msgstr "shaarli"
msgid "flattr"
msgstr "flattr"
msgid "this article appears wrong?"
msgstr "Czy ten artykuł wyświetla się nieprawidłowo?"
msgid "You can enter multiple tags, separated by commas." msgid "You can enter multiple tags, separated by commas."
msgstr "Możesz wprowadzić wiele tagów, rozdzielając je przecinkami." msgstr "Możesz wprowadzić wiele tagów, oddzielonych przecinkami."
msgid "return to article" msgid "return to article"
msgstr "wróć do artykułu" msgstr "powrót do artykułu"
#, fuzzy msgid "plop"
msgid "powered by" msgstr "plop"
msgstr "zasilany przez"
msgid "debug mode is on so cache is off." msgid ""
msgstr "tryb debugowania jest włączony, więc cashe jest wyłączony." "You can <a href='wallabag_compatibility_test.php'>check your configuration "
"here</a>."
msgstr ""
"Możesz <a href='wallabag_compatibility_test.php'>sprawdzić swoją "
"konfigurację tutaj</a>."
msgid "your wallabag version:" msgid "favoris"
msgstr "twoja wersja wallabag:" msgstr "favoris"
msgid "storage:" msgid "archive"
msgstr "magazyn:" msgstr "archiwum"
msgid "save a link" msgid "unread"
msgstr "zapisz link" msgstr "nieprzeczytane"
msgid "return home" msgid "by date asc"
msgstr "wróć do strony domowej" msgstr "po dacie rosnąco"
msgid "You can <a href='wallabag_compatibility_test.php'>check your configuration here</a>." msgid "by date"
msgstr "Możesz <a href='wallabag_compatibility_test.php'>sprawdzić swoją konfigurację tu</a>." 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" msgid "Tag"
msgstr "Tag" msgstr "Otaguj"
msgid "No articles found." msgid "No articles found."
msgstr "Nie znaleziono artykułów." msgstr "Nie znaleziono artykułów."
@ -392,32 +241,92 @@ msgstr "Nie znaleziono artykułów."
msgid "Toggle mark as read" msgid "Toggle mark as read"
msgstr "Przełącz jako przeczytane" 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" msgid "mark all the entries as read"
msgstr "zaznacz wszystko jako przeczytane" msgstr "zaznacz wszystkie wpisy jako przeczytane"
msgid "results"
msgstr "rezultaty"
msgid "installation"
msgstr "instalacja"
msgid "install your wallabag"
msgstr "zainstauj wallabag"
msgid ""
"wallabag is still not installed. Please fill the below form to install it. "
"Don't hesitate to <a href='http://doc.wallabag.org/'>read the documentation "
"on wallabag website</a>."
msgstr ""
"wallabag wciąż nie jest zainstalowany. Proszę wypełnij poniższy formularz "
"aby go zainstalować. Nie wahaj się <a href='http://doc.wallabag."
"org/'>przeczytać dokumentacji na stronie wallabag</a>."
msgid "Login"
msgstr "Login"
msgid "Repeat your password"
msgstr "Powtórz swoje hasło"
msgid "Install"
msgstr "Zainstauj"
msgid "login to your wallabag"
msgstr "zaloguj się do twojego wallabag"
msgid "Login to wallabag" msgid "Login to wallabag"
msgstr "Zaloguj 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 funkcjonalności mogą być wyłączone."
msgid "Username" msgid "Username"
msgstr "Nazwa użytkownika" msgstr "Nazwa użytkownika"
msgid "Stay signed in"
msgstr "Pozostań zalogowany"
msgid "(Do not check on public computers)"
msgstr "(Nie zaznaczaj na komputerach z publicznym dostępem)"
msgid "Sign in" msgid "Sign in"
msgstr "Login" 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" msgid "Return home"
msgstr "Wróć do strony domowej" msgstr "Powrót na stronę domową"
msgid "Back to top" msgid "Back to top"
msgstr "Wróć na górę" msgstr "Powrót na górę"
msgid "Mark as read" msgid "Mark as read"
msgstr "Zaznacz jako przeczytane" msgstr "Oznacz jako przeczytane"
msgid "Favorite" msgid "Favorite"
msgstr "Ulubione" msgstr "Ulubione"
msgid "Toggle favorite" msgid "Toggle favorite"
msgstr "Zaznacz jako ulubione" msgstr "Przełącz ulubione"
msgid "Delete" msgid "Delete"
msgstr "Usuń" msgstr "Usuń"
@ -426,13 +335,19 @@ msgid "Tweet"
msgstr "Tweet" msgstr "Tweet"
msgid "Email" msgid "Email"
msgstr "Wyślij email" msgstr "Email"
msgid "shaarli"
msgstr "shaarli"
msgid "flattr"
msgstr "flattr"
msgid "Does this article appear wrong?" msgid "Does this article appear wrong?"
msgstr "Czy ten artykuł wyświetla się nieprawidłowo?" msgstr "Czy ten artykuł jest wyświetlany niepoprawnie?"
msgid "tags:" msgid "tags:"
msgstr "tegi:" msgstr "tagi:"
msgid "Edit tags" msgid "Edit tags"
msgstr "Edytuj tagi" msgstr "Edytuj tagi"
@ -440,75 +355,160 @@ msgstr "Edytuj tagi"
msgid "save link!" msgid "save link!"
msgstr "zapisz link!" msgstr "zapisz link!"
#, fuzzy msgid "home"
msgid "estimated reading time :" msgstr "strona domowa"
msgstr "szacowany czas odczytu:"
msgid "Mark all the entries as read" msgid "tags"
msgstr "Oznacz wszystko jako przeczytane" 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" msgid "Untitled"
msgstr "Bez nazwy" msgstr "Untitled"
msgid "the link has been added successfully" msgid "the link has been added successfully"
msgstr "link został pomyślnie dodany" msgstr "link został dodany pomyślnie"
msgid "error during insertion : the link wasn't added" msgid "error during insertion : the link wasn't added"
msgstr "błąd podczas wprowadzania: link nie został dodany" msgstr "błąd podczas dodawania : link nie został dodany"
msgid "the link has been deleted successfully" 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" msgid "the link wasn't deleted"
msgstr "link nie został usunięty" msgstr "link nie został usunięty"
msgid "Article not found!" msgid "Article not found!"
msgstr "Nie znaleziono artykułu." msgstr "Artykuł nie znaleziony!"
msgid "previous" msgid "previous"
msgstr "poprzednia" msgstr "poprzedni"
msgid "next" msgid "next"
msgstr "następna" msgstr "następny"
msgid "in demo mode, you can't update your password" 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" msgid "your password has been updated"
msgstr "twoje hasło został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" msgid ""
msgstr "oba pola muszą być wypełnione i hasła muszę być takie same w obu polach" "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 \"" msgid "still using the \""
msgstr "nadal w użyciu \"" msgstr "wciąż używam \""
msgid "that theme does not seem to be installed" msgid "that theme does not seem to be installed"
msgstr "wydaje się że ten motyw nie jest zainstalowany" msgstr "ten motyw nie wygląda na zainstalowany"
msgid "you have changed your theme preferences" msgid "you have changed your theme preferences"
msgstr "ustawienia motywu zostały zmienione" msgstr "zmieniłeś swoje preferencje motywu"
msgid "that language does not seem to be installed" msgid "that language does not seem to be installed"
msgstr "wydaje się że ten język nie jest zainstalowany" msgstr "ten język nie wygląda na zainstalowany"
msgid "you have changed your language preferences" msgid "you have changed your language preferences"
msgstr "ustawienia języka zostały zmienione" msgstr "zmieniłeś swoje preferencje językowe"
msgid "login failed: you have to fill all fields" 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 wallabag" msgid "welcome to your wallabag"
msgstr "Witamy w wallabag" msgstr "witaj w twoim wallabag"
msgid "login failed: bad login or password" msgid "login failed: bad login or password"
msgstr "logowanie nie powiodlo się: niepoprawny login lub hasło" msgstr "logowanie się nie powiodło: nieprawidłowy login lub hasło"
msgid "import from instapaper completed" msgid "import from instapaper completed"
msgstr "import z instapaper'a zakończony" msgstr "import z instapaper zakończony"
msgid "import from pocket completed" msgid "import from pocket completed"
msgstr "import z pocket'a zakończony" msgstr "import z pocket zakończony"
msgid "import from Readability completed. " msgid "import from Readability completed. "
msgstr "import z Readability zakończony. " msgstr "import z Readability zakończony. "
@ -520,25 +520,34 @@ msgid "Unknown import provider."
msgstr "Nieznany dostawca importu." msgstr "Nieznany dostawca importu."
msgid "Incomplete inc/poche/define.inc.php file, please define \"" msgid "Incomplete inc/poche/define.inc.php file, please define \""
msgstr "Niekompletny plik inc/poche/define.inc.php, proszę zdefiniować \"" msgstr "Niekompletny plik inc/poche/define.inc.php, proszę zdefiniuj \""
msgid "Could not find required \"" msgid "Could not find required \""
msgstr "Nie znaleziono potrzebnego \"" msgstr "Nie znaleziono wymaganego \""
msgid "Uh, there is a problem while generating feeds." msgid "Uh, there is a problem while generating feeds."
msgstr "Uh, jest problem podczas generowania kanałów." msgstr "Ah, wystąpił problem podczas generowania kanałów."
msgid "Cache deleted." msgid "Cache deleted."
msgstr "Cache wyczyszczony." msgstr "Cache usunięty."
msgid "Oops, it seems you don't have PHP 5." msgid "Oops, it seems you don't have PHP 5."
msgstr "Oops, wygląda ze nie masz PHP 5." msgstr "Oops, wygląda na to że nie masz PHP 5."
#~ msgid "Import from poche" #~ msgid "poche it!"
#~ msgstr "Import z poche" #~ msgstr "poche it!"
#~ msgid "welcome to your poche" #~ msgid "Updating poche"
#~ msgstr "witamy w poche" #~ msgstr "Updating poche"
#~ msgid "see you soon!" #~ msgid "create an issue"
#~ msgstr "do zobaczenia wkrótce!" #~ 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:"

View File

@ -923,6 +923,13 @@ blockquote {
text-decoration: underline; text-decoration: underline;
} }
pre code {
font-family: "Courier New", Courier, monospace;
border: 1px solid #ccc;
font-size: 0.96em;
}
/* ========================================================================== /* ==========================================================================
6 = Media Queries 6 = Media Queries
========================================================================== */ ========================================================================== */
@ -1055,3 +1062,4 @@ blockquote {
left: 0; left: 0;
} }
} }

View File

@ -4,6 +4,7 @@
{% endblock %} {% endblock %}
{% block title %}{{ entry.title|raw }} ({{ entry.url | e | getDomain }}){% endblock %} {% block title %}{{ entry.title|raw }} ({{ entry.url | e | getDomain }}){% endblock %}
{% block content %} {% block content %}
{% include '_highlight.twig' %}
<div id="article_toolbar"> <div id="article_toolbar">
<ul class="links"> <ul class="links">
<li class="topPosF"><a href="#top" title="{% trans "Back to top" %}" class="tool top icon icon-arrow-up-thick"><span>{% trans "Back to top" %}</span></a></li> <li class="topPosF"><a href="#top" title="{% trans "Back to top" %}" class="tool top icon icon-arrow-up-thick"><span>{% trans "Back to top" %}</span></a></li>

4
themes/default/_highlight.twig Executable file
View File

@ -0,0 +1,4 @@
{# include excelent highlight.js library for code highligting, see http://highlightjs.org/ #}
<link rel="stylesheet" href="{{ poche_url }}themes/default/highlightjs/styles/github.css">
<script src="{{ poche_url }}themes/default/highlightjs/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>

View File

@ -430,3 +430,9 @@ a.add-to-wallabag-link-after:after {
color: black; color: black;
width: 50px; width: 50px;
} }
pre code {
font-family: "Courier New", Courier, monospace;
border: 1px solid #ddd;
font-size: 0.96em;
}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,152 @@
/*
Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
*/
.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
background: #f0f0f0;
}
.hljs,
.hljs-subst,
.hljs-tag .hljs-title,
.lisp .hljs-title,
.clojure .hljs-built_in,
.nginx .hljs-title {
color: black;
}
.hljs-string,
.hljs-title,
.hljs-constant,
.hljs-parent,
.hljs-tag .hljs-value,
.hljs-rules .hljs-value,
.hljs-preprocessor,
.hljs-pragma,
.haml .hljs-symbol,
.ruby .hljs-symbol,
.ruby .hljs-symbol .hljs-string,
.hljs-template_tag,
.django .hljs-variable,
.smalltalk .hljs-class,
.hljs-addition,
.hljs-flow,
.hljs-stream,
.bash .hljs-variable,
.apache .hljs-tag,
.apache .hljs-cbracket,
.tex .hljs-command,
.tex .hljs-special,
.erlang_repl .hljs-function_or_atom,
.asciidoc .hljs-header,
.markdown .hljs-header,
.coffeescript .hljs-attribute {
color: #800;
}
.smartquote,
.hljs-comment,
.hljs-annotation,
.hljs-template_comment,
.diff .hljs-header,
.hljs-chunk,
.asciidoc .hljs-blockquote,
.markdown .hljs-blockquote {
color: #888;
}
.hljs-number,
.hljs-date,
.hljs-regexp,
.hljs-literal,
.hljs-hexcolor,
.smalltalk .hljs-symbol,
.smalltalk .hljs-char,
.go .hljs-constant,
.hljs-change,
.lasso .hljs-variable,
.makefile .hljs-variable,
.asciidoc .hljs-bullet,
.markdown .hljs-bullet,
.asciidoc .hljs-link_url,
.markdown .hljs-link_url {
color: #080;
}
.hljs-label,
.hljs-javadoc,
.ruby .hljs-string,
.hljs-decorator,
.hljs-filter .hljs-argument,
.hljs-localvars,
.hljs-array,
.hljs-attr_selector,
.hljs-important,
.hljs-pseudo,
.hljs-pi,
.haml .hljs-bullet,
.hljs-doctype,
.hljs-deletion,
.hljs-envvar,
.hljs-shebang,
.apache .hljs-sqbracket,
.nginx .hljs-built_in,
.tex .hljs-formula,
.erlang_repl .hljs-reserved,
.hljs-prompt,
.asciidoc .hljs-link_label,
.markdown .hljs-link_label,
.vhdl .hljs-attribute,
.clojure .hljs-attribute,
.asciidoc .hljs-attribute,
.lasso .hljs-attribute,
.coffeescript .hljs-property,
.hljs-phony {
color: #88f;
}
.hljs-keyword,
.hljs-id,
.hljs-title,
.hljs-built_in,
.css .hljs-tag,
.hljs-javadoctag,
.hljs-phpdoc,
.hljs-yardoctag,
.smalltalk .hljs-class,
.hljs-winutils,
.bash .hljs-variable,
.apache .hljs-tag,
.go .hljs-typename,
.tex .hljs-command,
.asciidoc .hljs-strong,
.markdown .hljs-strong,
.hljs-request,
.hljs-status {
font-weight: bold;
}
.asciidoc .hljs-emphasis,
.markdown .hljs-emphasis {
font-style: italic;
}
.nginx .hljs-built_in {
font-weight: normal;
}
.coffeescript .javascript,
.javascript .xml,
.lasso .markup,
.tex .hljs-formula,
.xml .javascript,
.xml .vbscript,
.xml .css,
.xml .hljs-cdata {
opacity: 0.5;
}

View File

@ -0,0 +1,127 @@
/*
github.com style (c) Vasily Polovnyov <vast@whiteants.net>
*/
.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
color: #333;
background: #f8f8f8;
}
.hljs-comment,
.hljs-template_comment,
.diff .hljs-header,
.hljs-javadoc {
color: #998;
font-style: italic;
}
.hljs-keyword,
.css .rule .hljs-keyword,
.hljs-winutils,
.javascript .hljs-title,
.nginx .hljs-title,
.hljs-subst,
.hljs-request,
.hljs-status {
color: #333;
font-weight: bold;
}
.hljs-number,
.hljs-hexcolor,
.ruby .hljs-constant {
color: #099;
}
.hljs-string,
.hljs-tag .hljs-value,
.hljs-phpdoc,
.tex .hljs-formula {
color: #d14;
}
.hljs-title,
.hljs-id,
.coffeescript .hljs-params,
.scss .hljs-preprocessor {
color: #900;
font-weight: bold;
}
.javascript .hljs-title,
.lisp .hljs-title,
.clojure .hljs-title,
.hljs-subst {
font-weight: normal;
}
.hljs-class .hljs-title,
.haskell .hljs-type,
.vhdl .hljs-literal,
.tex .hljs-command {
color: #458;
font-weight: bold;
}
.hljs-tag,
.hljs-tag .hljs-title,
.hljs-rules .hljs-property,
.django .hljs-tag .hljs-keyword {
color: #000080;
font-weight: normal;
}
.hljs-attribute,
.hljs-variable,
.lisp .hljs-body {
color: #008080;
}
.hljs-regexp {
color: #009926;
}
.hljs-symbol,
.ruby .hljs-symbol .hljs-string,
.lisp .hljs-keyword,
.tex .hljs-special,
.hljs-prompt {
color: #990073;
}
.hljs-built_in,
.lisp .hljs-title,
.clojure .hljs-built_in {
color: #0086b3;
}
.hljs-preprocessor,
.hljs-pragma,
.hljs-pi,
.hljs-doctype,
.hljs-shebang,
.hljs-cdata {
color: #999;
font-weight: bold;
}
.hljs-deletion {
background: #fdd;
}
.hljs-addition {
background: #dfd;
}
.diff .hljs-change {
background: #0086b3;
}
.hljs-chunk {
color: #aaa;
}

View File

@ -0,0 +1,148 @@
/*
Google Code style (c) Aahan Krish <geekpanth3r@gmail.com>
*/
.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
background: white;
color: black;
}
.hljs-comment,
.hljs-template_comment,
.hljs-javadoc {
color: #800;
}
.hljs-keyword,
.method,
.hljs-list .hljs-title,
.clojure .hljs-built_in,
.nginx .hljs-title,
.hljs-tag .hljs-title,
.setting .hljs-value,
.hljs-winutils,
.tex .hljs-command,
.http .hljs-title,
.hljs-request,
.hljs-status {
color: #008;
}
.hljs-envvar,
.tex .hljs-special {
color: #660;
}
.hljs-string,
.hljs-tag .hljs-value,
.hljs-cdata,
.hljs-filter .hljs-argument,
.hljs-attr_selector,
.apache .hljs-cbracket,
.hljs-date,
.hljs-regexp,
.coffeescript .hljs-attribute {
color: #080;
}
.hljs-sub .hljs-identifier,
.hljs-pi,
.hljs-tag,
.hljs-tag .hljs-keyword,
.hljs-decorator,
.ini .hljs-title,
.hljs-shebang,
.hljs-prompt,
.hljs-hexcolor,
.hljs-rules .hljs-value,
.hljs-literal,
.hljs-symbol,
.ruby .hljs-symbol .hljs-string,
.hljs-number,
.css .hljs-function,
.clojure .hljs-attribute {
color: #066;
}
.hljs-class .hljs-title,
.haskell .hljs-type,
.smalltalk .hljs-class,
.hljs-javadoctag,
.hljs-yardoctag,
.hljs-phpdoc,
.hljs-typename,
.hljs-tag .hljs-attribute,
.hljs-doctype,
.hljs-class .hljs-id,
.hljs-built_in,
.setting,
.hljs-params,
.hljs-variable,
.clojure .hljs-title {
color: #606;
}
.css .hljs-tag,
.hljs-rules .hljs-property,
.hljs-pseudo,
.hljs-subst {
color: #000;
}
.css .hljs-class,
.css .hljs-id {
color: #9b703f;
}
.hljs-value .hljs-important {
color: #ff7700;
font-weight: bold;
}
.hljs-rules .hljs-keyword {
color: #c5af75;
}
.hljs-annotation,
.apache .hljs-sqbracket,
.nginx .hljs-built_in {
color: #9b859d;
}
.hljs-preprocessor,
.hljs-preprocessor *,
.hljs-pragma {
color: #444;
}
.tex .hljs-formula {
background-color: #eee;
font-style: italic;
}
.diff .hljs-header,
.hljs-chunk {
color: #808080;
font-weight: bold;
}
.diff .hljs-change {
background-color: #bccff9;
}
.hljs-addition {
background-color: #baeeba;
}
.hljs-deletion {
background-color: #ffc8bd;
}
.hljs-comment .hljs-yardoctag {
font-weight: bold;
}

View File

@ -1,6 +1,7 @@
{% extends "layout.twig" %} {% extends "layout.twig" %}
{% block title %}{{ entry.title|raw }} ({{ entry.url | e | getDomain }}){% endblock %} {% block title %}{{ entry.title|raw }} ({{ entry.url | e | getDomain }}){% endblock %}
{% block content %} {% block content %}
{% include '_highlight.twig' %}
{% include '_pocheit-form.twig' %} {% include '_pocheit-form.twig' %}
<div id="article_toolbar"> <div id="article_toolbar">
<ul> <ul>