mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #369. Update translations.
This commit is contained in:
parent
e1642c6a8a
commit
3b9d76edfe
@ -31,9 +31,10 @@ from libprs500.ebooks.lrf.web.profiles.economist import Economist
|
|||||||
from libprs500.ebooks.lrf.web.profiles.newyorkreview import NewYorkReviewOfBooks
|
from libprs500.ebooks.lrf.web.profiles.newyorkreview import NewYorkReviewOfBooks
|
||||||
from libprs500.ebooks.lrf.web.profiles.spiegelde import SpiegelOnline
|
from libprs500.ebooks.lrf.web.profiles.spiegelde import SpiegelOnline
|
||||||
from libprs500.ebooks.lrf.web.profiles.zeitde import ZeitNachrichten
|
from libprs500.ebooks.lrf.web.profiles.zeitde import ZeitNachrichten
|
||||||
|
from libprs500.ebooks.lrf.web.profiles.faznet import FazNet
|
||||||
|
|
||||||
builtin_profiles = [NYTimes, BBC, Newsweek, Economist, NewYorkReviewOfBooks, \
|
builtin_profiles = [NYTimes, BBC, Newsweek, Economist, NewYorkReviewOfBooks, \
|
||||||
SpiegelOnline, ZeitNachrichten]
|
SpiegelOnline, ZeitNachrichten, FazNet]
|
||||||
available_profiles = [i.__module__.rpartition('.')[2] for i in builtin_profiles]
|
available_profiles = [i.__module__.rpartition('.')[2] for i in builtin_profiles]
|
||||||
|
|
||||||
def option_parser():
|
def option_parser():
|
||||||
|
43
src/libprs500/ebooks/lrf/web/profiles/faznet.py
Normal file
43
src/libprs500/ebooks/lrf/web/profiles/faznet.py
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net
|
||||||
|
## Costomized to FAZ.NET by S. Dorscht stdoonline@googlemail.com
|
||||||
|
## Version 0.10
|
||||||
|
##
|
||||||
|
## This program is free software; you can redistribute it and/or modify
|
||||||
|
## it under the terms of the GNU General Public License as published by
|
||||||
|
## the Free Software Foundation; either version 2 of the License, or
|
||||||
|
## (at your option) any later version.
|
||||||
|
##
|
||||||
|
## This program is distributed in the hope that it will be useful,
|
||||||
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
## GNU General Public License for more details.
|
||||||
|
##
|
||||||
|
## You should have received a copy of the GNU General Public License along
|
||||||
|
## with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
'''
|
||||||
|
Profile to download FAZ.net
|
||||||
|
'''
|
||||||
|
import re
|
||||||
|
|
||||||
|
from libprs500.ebooks.lrf.web.profiles import DefaultProfile
|
||||||
|
|
||||||
|
class FazNet(DefaultProfile):
|
||||||
|
|
||||||
|
title = 'FAZ NET'
|
||||||
|
max_recursions = 2
|
||||||
|
html_description = True
|
||||||
|
max_articles_per_feed = 30
|
||||||
|
|
||||||
|
preprocess_regexps = [
|
||||||
|
(re.compile(r'Zum Thema</span>.*?</BODY>', re.IGNORECASE | re.DOTALL),
|
||||||
|
lambda match : ''),
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
def get_feeds(self):
|
||||||
|
return [ ('FAZ.NET', 'http://www.faz.net/s/Rub/Tpl~Epartner~SRss_.xml') ]
|
||||||
|
|
||||||
|
def print_version(self, url):
|
||||||
|
return url.replace('.html?rss_aktuell', '~Afor~Eprint.html')
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 777 B |
Binary file not shown.
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 675 B |
@ -28,6 +28,7 @@ class NewsMenu(QMenu):
|
|||||||
QMenu.__init__(self)
|
QMenu.__init__(self)
|
||||||
self.add_menu_item('BBC', self.fetch_news_bbc, ':/images/news/bbc.png')
|
self.add_menu_item('BBC', self.fetch_news_bbc, ':/images/news/bbc.png')
|
||||||
self.add_menu_item('Economist', self.fetch_news_economist, ':/images/news/economist.png')
|
self.add_menu_item('Economist', self.fetch_news_economist, ':/images/news/economist.png')
|
||||||
|
self.add_menu_item('Faz.net', self.fetch_news_faznet, ':/images/news/faznet.png')
|
||||||
self.add_menu_item('Newsweek', self.fetch_news_newsweek, ':/images/news/newsweek.png')
|
self.add_menu_item('Newsweek', self.fetch_news_newsweek, ':/images/news/newsweek.png')
|
||||||
self.add_menu_item('New York Review of Books', self.fetch_news_nyreview, ':/images/book.svg')
|
self.add_menu_item('New York Review of Books', self.fetch_news_nyreview, ':/images/book.svg')
|
||||||
self.add_menu_item('New York Times', self.fetch_news_nytimes, ':/images/news/nytimes.png')
|
self.add_menu_item('New York Times', self.fetch_news_nytimes, ':/images/news/nytimes.png')
|
||||||
@ -44,6 +45,9 @@ class NewsMenu(QMenu):
|
|||||||
def fetch_news_zeitde(self, checked):
|
def fetch_news_zeitde(self, checked):
|
||||||
self.fetch_news('zeitde', 'Zeit Nachrichten')
|
self.fetch_news('zeitde', 'Zeit Nachrichten')
|
||||||
|
|
||||||
|
def fetch_news_faznet(self, checked):
|
||||||
|
self.fetch_news('faznet', 'Faz.net')
|
||||||
|
|
||||||
def fetch_news_bbc(self, checked):
|
def fetch_news_bbc(self, checked):
|
||||||
self.fetch_news('bbc', 'BBC')
|
self.fetch_news('bbc', 'BBC')
|
||||||
|
|
||||||
|
@ -1116,29 +1116,4 @@ msgstr ""
|
|||||||
"La targeta\n"
|
"La targeta\n"
|
||||||
"%s està disponible"
|
"%s està disponible"
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/"
|
|
||||||
#~ "css\">\n"
|
|
||||||
#~ "p, li { white-space: pre-wrap; }\n"
|
|
||||||
#~ "</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; "
|
|
||||||
#~ "font-weight:400; font-style:normal;\">\n"
|
|
||||||
#~ "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-"
|
|
||||||
#~ "right:0px; -qt-block-indent:0; text-indent:0px;\">For help visit <a href="
|
|
||||||
#~ "\"https://libprs500.kovidgoyal.net/wiki/WikiStart#Usage\"><span style=\" "
|
|
||||||
#~ "text-decoration: underline; color:#0000ff;\">libprs500.kovidgoyal.net</"
|
|
||||||
#~ "span></a><br /><br /><span style=\" font-weight:600;\">libprs500</span>: %"
|
|
||||||
#~ "1 by <span style=\" font-weight:600;\">Kovid Goyal</span> <br />%2</p></"
|
|
||||||
#~ "body></html>"
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/"
|
|
||||||
#~ "css\">\n"
|
|
||||||
#~ "p, li { white-space: pre-wrap; }\n"
|
|
||||||
#~ "</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; "
|
|
||||||
#~ "font-weight:400; font-style:normal;\">\n"
|
|
||||||
#~ "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-"
|
|
||||||
#~ "right:0px; -qt-block-indent:0; text-indent:0px;\">Per a més informació "
|
|
||||||
#~ "consulteu (en anglés): <a href=\"https://libprs500.kovidgoyal.net/wiki/"
|
|
||||||
#~ "WikiStart#Usage\"><span style=\" text-decoration: underline; color:"
|
|
||||||
#~ "#0000ff;\">libprs500.kovidgoyal.net</span></a><br /><br /><span style=\" "
|
|
||||||
#~ "font-weight:600;\">libprs500</span>: %1 de <span style=\" font-weight:600;"
|
|
||||||
#~ "\">Kovid Goyal</span> <br />%2</p></body></html>"
|
|
||||||
|
File diff suppressed because one or more lines are too long
@ -964,30 +964,4 @@ msgstr ""
|
|||||||
"Karte\n"
|
"Karte\n"
|
||||||
"%s verfügbar"
|
"%s verfügbar"
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/"
|
|
||||||
#~ "css\">\n"
|
|
||||||
#~ "p, li { white-space: pre-wrap; }\n"
|
|
||||||
#~ "</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; "
|
|
||||||
#~ "font-weight:400; font-style:normal;\">\n"
|
|
||||||
#~ "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-"
|
|
||||||
#~ "right:0px; -qt-block-indent:0; text-indent:0px;\">For help visit <a href="
|
|
||||||
#~ "\"https://libprs500.kovidgoyal.net/wiki/WikiStart#Usage\"><span style=\" "
|
|
||||||
#~ "text-decoration: underline; color:#0000ff;\">libprs500.kovidgoyal.net</"
|
|
||||||
#~ "span></a><br /><br /><span style=\" font-weight:600;\">libprs500</span>: %"
|
|
||||||
#~ "1 by <span style=\" font-weight:600;\">Kovid Goyal</span> <br />%2</p></"
|
|
||||||
#~ "body></html>"
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/"
|
|
||||||
#~ "css\">\n"
|
|
||||||
#~ "p, li { white-space: pre-wrap; }\n"
|
|
||||||
#~ "</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; "
|
|
||||||
#~ "font-weight:400; font-style:normal;\">\n"
|
|
||||||
#~ "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-"
|
|
||||||
#~ "right:0px; -qt-block-indent:0; text-indent:0px;\">Hilfe finden Sie unter "
|
|
||||||
#~ "<a href=\"https://libprs500.kovidgoyal.net/wiki/WikiStart#Usage\"><span "
|
|
||||||
#~ "style=\" text-decoration: underline; color:#0000ff;\">libprs500."
|
|
||||||
#~ "kovidgoyal.net</span></a><br /><br /><span style=\" font-weight:600;"
|
|
||||||
#~ "\">libprs500</span>: %1 von <span style=\" font-weight:600;\">Kovid "
|
|
||||||
#~ "Goyal</span> <br />%2</p></body></html>"
|
|
||||||
|
|
||||||
|
@ -1118,29 +1118,4 @@ msgstr ""
|
|||||||
"Tarjeta\n"
|
"Tarjeta\n"
|
||||||
"%s disponible"
|
"%s disponible"
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/"
|
|
||||||
#~ "css\">\n"
|
|
||||||
#~ "p, li { white-space: pre-wrap; }\n"
|
|
||||||
#~ "</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; "
|
|
||||||
#~ "font-weight:400; font-style:normal;\">\n"
|
|
||||||
#~ "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-"
|
|
||||||
#~ "right:0px; -qt-block-indent:0; text-indent:0px;\">For help visit <a href="
|
|
||||||
#~ "\"https://libprs500.kovidgoyal.net/wiki/WikiStart#Usage\"><span style=\" "
|
|
||||||
#~ "text-decoration: underline; color:#0000ff;\">libprs500.kovidgoyal.net</"
|
|
||||||
#~ "span></a><br /><br /><span style=\" font-weight:600;\">libprs500</span>: %"
|
|
||||||
#~ "1 by <span style=\" font-weight:600;\">Kovid Goyal</span> <br />%2</p></"
|
|
||||||
#~ "body></html>"
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/"
|
|
||||||
#~ "css\">\n"
|
|
||||||
#~ "p, li { white-space: pre-wrap; }\n"
|
|
||||||
#~ "</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; "
|
|
||||||
#~ "font-weight:400; font-style:normal;\">\n"
|
|
||||||
#~ "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-"
|
|
||||||
#~ "right:0px; -qt-block-indent:0; text-indent:0px;\">Para más información "
|
|
||||||
#~ "consultar (en anglés): <a href=\"https://libprs500.kovidgoyal.net/wiki/"
|
|
||||||
#~ "WikiStart#Usage\"><span style=\" text-decoration: underline; color:"
|
|
||||||
#~ "#0000ff;\">libprs500.kovidgoyal.net</span></a><br /><br /><span style=\" "
|
|
||||||
#~ "font-weight:600;\">libprs500</span>: %1 de <span style=\" font-weight:600;"
|
|
||||||
#~ "\">Kovid Goyal</span> <br />%2</p></body></html>"
|
|
||||||
|
@ -1127,29 +1127,4 @@ msgstr ""
|
|||||||
"Carte\n"
|
"Carte\n"
|
||||||
"%s disponible"
|
"%s disponible"
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/"
|
|
||||||
#~ "css\">\n"
|
|
||||||
#~ "p, li { white-space: pre-wrap; }\n"
|
|
||||||
#~ "</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; "
|
|
||||||
#~ "font-weight:400; font-style:normal;\">\n"
|
|
||||||
#~ "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-"
|
|
||||||
#~ "right:0px; -qt-block-indent:0; text-indent:0px;\">For help visit <a href="
|
|
||||||
#~ "\"https://libprs500.kovidgoyal.net/wiki/WikiStart#Usage\"><span style=\" "
|
|
||||||
#~ "text-decoration: underline; color:#0000ff;\">libprs500.kovidgoyal.net</"
|
|
||||||
#~ "span></a><br /><br /><span style=\" font-weight:600;\">libprs500</span>: %"
|
|
||||||
#~ "1 by <span style=\" font-weight:600;\">Kovid Goyal</span> <br />%2</p></"
|
|
||||||
#~ "body></html>"
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/"
|
|
||||||
#~ "css\">\n"
|
|
||||||
#~ "p, li { white-space: pre-wrap; }\n"
|
|
||||||
#~ "</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; "
|
|
||||||
#~ "font-weight:400; font-style:normal;\">\n"
|
|
||||||
#~ "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-"
|
|
||||||
#~ "right:0px; -qt-block-indent:0; text-indent:0px;\">For help visit <a href="
|
|
||||||
#~ "\"https://libprs500.kovidgoyal.net/wiki/WikiStart#Usage\"><span style=\" "
|
|
||||||
#~ "text-decoration: underline; color:#0000ff;\">libprs500.kovidgoyal.net</"
|
|
||||||
#~ "span></a><br /><br /><span style=\" font-weight:600;\">libprs500</span>: %"
|
|
||||||
#~ "1 by <span style=\" font-weight:600;\">Kovid Goyal</span> <br />%2</p></"
|
|
||||||
#~ "body></html>"
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user