copied swisssurfer from https://dev.marc.waeckerlin.org/svn/swisssurfer/trunk, version 15,refs #1
This commit is contained in:
978
swisssurfer/src/browser.hxx
Normal file
978
swisssurfer/src/browser.hxx
Normal file
@@ -0,0 +1,978 @@
|
||||
/*! @file
|
||||
|
||||
@id $Id: browser.hxx 15 2010-06-03 14:17:27Z marc $
|
||||
*/
|
||||
// 1 2 3 4 5 6 7 8
|
||||
// 45678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
|
||||
#ifndef BROWSER_HXX
|
||||
#define BROWSER_HXX
|
||||
|
||||
#include <ui_browser.h>
|
||||
#include <QtGui/QMainWindow>
|
||||
#include <QtGui/QLineEdit>
|
||||
#include <QtGui/QProgressBar>
|
||||
#include <QtGui/QSlider>
|
||||
#include <QtGui/QMessageBox>
|
||||
#include <QtWebKit/QWebHistory>
|
||||
#include <QtNetwork/QNetworkReply>
|
||||
#include <QtNetwork/QNetworkAccessManager>
|
||||
#include <QtNetwork/QSslError>
|
||||
#include <QtNetwork/QNetworkProxy>
|
||||
|
||||
#include <proxyface/proxy.hxx>
|
||||
|
||||
#include <stdexcept>
|
||||
#include <cassert>
|
||||
#include <QtCore/QDebug>
|
||||
|
||||
#define LOG qDebug()<<__PRETTY_FUNCTION__;
|
||||
|
||||
class SslClientAuthNetworkAccessManager: public QNetworkAccessManager {
|
||||
Q_OBJECT;
|
||||
public:
|
||||
SslClientAuthNetworkAccessManager(QObject* parent = 0):
|
||||
QNetworkAccessManager(parent) {
|
||||
LOG;
|
||||
}
|
||||
virtual ~SslClientAuthNetworkAccessManager() {
|
||||
LOG;
|
||||
}
|
||||
protected:
|
||||
virtual QNetworkReply* createRequest(Operation op,
|
||||
const QNetworkRequest& req,
|
||||
QIODevice* outgoingData = 0 ) {
|
||||
LOG;
|
||||
QNetworkReply* rep
|
||||
(QNetworkAccessManager::createRequest(op, req, outgoingData));
|
||||
//qDebug()<<"Reply created: "<<(int)rep;
|
||||
qDebug()<<"Reply to URL: "<<rep->url().toString();
|
||||
return rep;
|
||||
}
|
||||
};
|
||||
|
||||
class Browser: public QMainWindow, protected Ui::Browser {
|
||||
|
||||
Q_OBJECT;
|
||||
|
||||
public:
|
||||
|
||||
Browser(const QString& url, bool kiosk = false, bool proxydetection = true):
|
||||
_url(0), _home(url), _proxy(0),
|
||||
_kiosk(kiosk) {
|
||||
LOG;
|
||||
if (!check(url))
|
||||
throw std::runtime_error(tr("access to URL %1 not allowed")
|
||||
.arg(url).toStdString());
|
||||
setupUi(this);
|
||||
actionProxySettings->setEnabled(proxydetection);
|
||||
if (proxydetection) {
|
||||
_proxy = new gui::Proxy(url, this);
|
||||
assert(connect(_proxy, SIGNAL(proxyFound(const QUrl&,
|
||||
const QNetworkProxy&)),
|
||||
SLOT(startDownload(QUrl, const QNetworkProxy&))));
|
||||
assert(connect(_proxy, SIGNAL(temporaryError
|
||||
(QNetworkReply::NetworkError,
|
||||
QString, QString)),
|
||||
SLOT(proxy_error(QNetworkReply::NetworkError,
|
||||
QString, QString))));
|
||||
assert(connect(_proxy, SIGNAL(proxyError(QNetworkReply::NetworkError)),
|
||||
SLOT(proxy_error(QNetworkReply::NetworkError))));
|
||||
}
|
||||
_toolbar->addWidget(_url = new QLineEdit(_toolbar));
|
||||
_url->setText(url);
|
||||
assert(connect(_url, SIGNAL(returnPressed()), SLOT(load())));
|
||||
if (_kiosk) {
|
||||
_menu->hide();
|
||||
_url->setEnabled(false);
|
||||
}
|
||||
statusBar()->addPermanentWidget(_progress = new QProgressBar());
|
||||
statusBar()->addPermanentWidget(_zoom = new QSlider(Qt::Horizontal));
|
||||
_zoom->setMinimum(1);
|
||||
_zoom->setMaximum(100);
|
||||
_zoom->setValue(10);
|
||||
assert(connect(_zoom, SIGNAL(valueChanged(int)), SLOT(zoom(int))));
|
||||
_browser->page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks);
|
||||
_browser->page()->setNetworkAccessManager
|
||||
(new SslClientAuthNetworkAccessManager);
|
||||
// QWebPage WebAction
|
||||
connect(_browser->pageAction(QWebPage::OpenLink),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredOpenLink(bool)));
|
||||
connect(_browser->pageAction(QWebPage::OpenLinkInNewWindow),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredOpenLinkInNewWindow(bool)));
|
||||
connect(_browser->pageAction(QWebPage::OpenFrameInNewWindow),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredOpenFrameInNewWindow(bool)));
|
||||
connect(_browser->pageAction(QWebPage::DownloadLinkToDisk),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredDownloadLinkToDisk(bool)));
|
||||
connect(_browser->pageAction(QWebPage::CopyLinkToClipboard),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredCopyLinkToClipboard(bool)));
|
||||
connect(_browser->pageAction(QWebPage::OpenImageInNewWindow),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredOpenImageInNewWindow(bool)));
|
||||
connect(_browser->pageAction(QWebPage::DownloadImageToDisk),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredDownloadImageToDisk(bool)));
|
||||
connect(_browser->pageAction(QWebPage::CopyImageToClipboard),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredCopyImageToClipboard(bool)));
|
||||
connect(_browser->pageAction(QWebPage::Back),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredBack(bool)));
|
||||
connect(_browser->pageAction(QWebPage::Forward),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredForward(bool)));
|
||||
connect(_browser->pageAction(QWebPage::Stop),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredStop(bool)));
|
||||
connect(_browser->pageAction(QWebPage::Reload),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredReload(bool)));
|
||||
connect(_browser->pageAction(QWebPage::Cut),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredCut(bool)));
|
||||
connect(_browser->pageAction(QWebPage::Copy),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredCopy(bool)));
|
||||
connect(_browser->pageAction(QWebPage::Paste),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredPaste(bool)));
|
||||
connect(_browser->pageAction(QWebPage::Undo),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredUndo(bool)));
|
||||
connect(_browser->pageAction(QWebPage::Redo),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredRedo(bool)));
|
||||
connect(_browser->pageAction(QWebPage::MoveToNextChar),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredMoveToNextChar(bool)));
|
||||
connect(_browser->pageAction(QWebPage::MoveToPreviousChar),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredMoveToPreviousChar(bool)));
|
||||
connect(_browser->pageAction(QWebPage::MoveToNextWord),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredMoveToNextWord(bool)));
|
||||
connect(_browser->pageAction(QWebPage::MoveToPreviousWord),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredMoveToPreviousWord(bool)));
|
||||
connect(_browser->pageAction(QWebPage::MoveToNextLine),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredMoveToNextLine(bool)));
|
||||
connect(_browser->pageAction(QWebPage::MoveToPreviousLine),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredMoveToPreviousLine(bool)));
|
||||
connect(_browser->pageAction(QWebPage::MoveToStartOfLine),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredMoveToStartOfLine(bool)));
|
||||
connect(_browser->pageAction(QWebPage::MoveToEndOfLine),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredMoveToEndOfLine(bool)));
|
||||
connect(_browser->pageAction(QWebPage::MoveToStartOfBlock),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredMoveToStartOfBlock(bool)));
|
||||
connect(_browser->pageAction(QWebPage::MoveToEndOfBlock),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredMoveToEndOfBlock(bool)));
|
||||
connect(_browser->pageAction(QWebPage::MoveToStartOfDocument),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredMoveToStartOfDocument(bool)));
|
||||
connect(_browser->pageAction(QWebPage::MoveToEndOfDocument),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredMoveToEndOfDocument(bool)));
|
||||
connect(_browser->pageAction(QWebPage::SelectNextChar),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredSelectNextChar(bool)));
|
||||
connect(_browser->pageAction(QWebPage::SelectPreviousChar),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredSelectPreviousChar(bool)));
|
||||
connect(_browser->pageAction(QWebPage::SelectNextWord),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredSelectNextWord(bool)));
|
||||
connect(_browser->pageAction(QWebPage::SelectPreviousWord),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredSelectPreviousWord(bool)));
|
||||
connect(_browser->pageAction(QWebPage::SelectNextLine),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredSelectNextLine(bool)));
|
||||
connect(_browser->pageAction(QWebPage::SelectPreviousLine),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredSelectPreviousLine(bool)));
|
||||
connect(_browser->pageAction(QWebPage::SelectStartOfLine),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredSelectStartOfLine(bool)));
|
||||
connect(_browser->pageAction(QWebPage::SelectEndOfLine),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredSelectEndOfLine(bool)));
|
||||
connect(_browser->pageAction(QWebPage::SelectStartOfBlock),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredSelectStartOfBlock(bool)));
|
||||
connect(_browser->pageAction(QWebPage::SelectEndOfBlock),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredSelectEndOfBlock(bool)));
|
||||
connect(_browser->pageAction(QWebPage::SelectStartOfDocument),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredSelectStartOfDocument(bool)));
|
||||
connect(_browser->pageAction(QWebPage::SelectEndOfDocument),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredSelectEndOfDocument(bool)));
|
||||
connect(_browser->pageAction(QWebPage::DeleteStartOfWord),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredDeleteStartOfWord(bool)));
|
||||
connect(_browser->pageAction(QWebPage::DeleteEndOfWord),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredDeleteEndOfWord(bool)));
|
||||
connect(_browser->pageAction(QWebPage::SetTextDirectionDefault),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredSetTextDirectionDefault(bool)));
|
||||
connect(_browser->pageAction(QWebPage::SetTextDirectionLeftToRight),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredSetTextDirectionLeftToRight(bool)));
|
||||
connect(_browser->pageAction(QWebPage::SetTextDirectionRightToLeft),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredSetTextDirectionRightToLeft(bool)));
|
||||
connect(_browser->pageAction(QWebPage::ToggleBold),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredToggleBold(bool)));
|
||||
connect(_browser->pageAction(QWebPage::ToggleItalic),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredToggleItalic(bool)));
|
||||
connect(_browser->pageAction(QWebPage::ToggleUnderline),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredToggleUnderline(bool)));
|
||||
connect(_browser->pageAction(QWebPage::InspectElement),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredInspectElement(bool)));
|
||||
connect(_browser->pageAction(QWebPage::InsertParagraphSeparator),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredInsertParagraphSeparator(bool)));
|
||||
connect(_browser->pageAction(QWebPage::InsertLineSeparator),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredInsertLineSeparator(bool)));
|
||||
connect(_browser->pageAction(QWebPage::SelectAll),
|
||||
SIGNAL(triggered(bool)),
|
||||
SLOT(triggeredSelectAll(bool)));
|
||||
// QWebPage
|
||||
assert(connect(_browser->page(), SIGNAL(contentsChanged()),
|
||||
SLOT(contentsChanged())));
|
||||
assert(connect(_browser->page(),
|
||||
SIGNAL(databaseQuotaExceeded(QWebFrame*, QString)),
|
||||
SLOT(databaseQuotaExceeded(QWebFrame*, QString))));
|
||||
assert(connect(_browser->page(),
|
||||
SIGNAL(downloadRequested(const QNetworkRequest&)),
|
||||
SLOT(downloadRequested(const QNetworkRequest&))));
|
||||
assert(connect(_browser->page(), SIGNAL(frameCreated(QWebFrame*)),
|
||||
SLOT(frameCreated(QWebFrame*))));
|
||||
assert(connect(_browser->page(),
|
||||
SIGNAL(geometryChangeRequested(const QRect&)),
|
||||
SLOT(geometryChangeRequested(const QRect&))));
|
||||
assert(connect(_browser->page(), SIGNAL(linkClicked(const QUrl&)),
|
||||
SLOT(linkClicked(const QUrl&))));
|
||||
assert(connect(_browser->page(),
|
||||
SIGNAL(linkHovered(const QString&, const QString&,
|
||||
const QString&)),
|
||||
SLOT(linkHovered(const QString&, const QString&,
|
||||
const QString&))));
|
||||
assert(connect(_browser->page(), SIGNAL(loadFinished(bool)),
|
||||
SLOT(loadFinished(bool))));
|
||||
assert(connect(_browser->page(), SIGNAL(loadProgress(int)),
|
||||
SLOT(loadProgress(int))));
|
||||
assert(connect(_browser->page(), SIGNAL(loadStarted()),
|
||||
SLOT(loadStarted())));
|
||||
assert(connect(_browser->page(),
|
||||
SIGNAL(menuBarVisibilityChangeRequested(bool)),
|
||||
SLOT(menuBarVisibilityChangeRequested(bool))));
|
||||
assert(connect(_browser->page(), SIGNAL(microFocusChanged()),
|
||||
SLOT(microFocusChanged())));
|
||||
assert(connect(_browser->page(), SIGNAL(printRequested(QWebFrame*)),
|
||||
SLOT(printRequested(QWebFrame*))));
|
||||
assert(connect(_browser->page(), SIGNAL(repaintRequested(const QRect&)),
|
||||
SLOT(repaintRequested(const QRect&))));
|
||||
assert(connect(_browser->page(),
|
||||
SIGNAL(restoreFrameStateRequested(QWebFrame*)),
|
||||
SLOT(restoreFrameStateRequested(QWebFrame*))));
|
||||
assert(connect(_browser->page(),
|
||||
SIGNAL(saveFrameStateRequested(QWebFrame*,
|
||||
QWebHistoryItem*)),
|
||||
SLOT(saveFrameStateRequested(QWebFrame*,
|
||||
QWebHistoryItem*))));
|
||||
assert(connect(_browser->page(),
|
||||
SIGNAL(scrollRequested(int, int, const QRect&)),
|
||||
SLOT(scrollRequested(int, int, const QRect&))));
|
||||
assert(connect(_browser->page(), SIGNAL(selectionChanged()),
|
||||
SLOT(selectionChanged())));
|
||||
assert(connect(_browser->page(), SIGNAL(statusBarMessage(const QString&)),
|
||||
SLOT(statusBarMessage(const QString&))));
|
||||
assert(connect(_browser->page(),
|
||||
SIGNAL(statusBarVisibilityChangeRequested(bool)),
|
||||
SLOT(statusBarVisibilityChangeRequested(bool))));
|
||||
assert(connect(_browser->page(),
|
||||
SIGNAL(toolBarVisibilityChangeRequested(bool)),
|
||||
SLOT(toolBarVisibilityChangeRequested(bool))));
|
||||
assert(connect(_browser->page(),
|
||||
SIGNAL(unsupportedContent(QNetworkReply*)),
|
||||
SLOT(unsupportedContent(QNetworkReply*))));
|
||||
assert(connect(_browser->page(), SIGNAL(windowCloseRequested()),
|
||||
SLOT(windowCloseRequested())));
|
||||
// QNetworkAccessManager
|
||||
assert(connect(_browser->page()->networkAccessManager(),
|
||||
SIGNAL(authenticationRequired(QNetworkReply*,
|
||||
QAuthenticator*)),
|
||||
SLOT(authenticationRequired(QNetworkReply*,
|
||||
QAuthenticator*))));
|
||||
assert(connect(_browser->page()->networkAccessManager(),
|
||||
SIGNAL(finished(QNetworkReply*)),
|
||||
SLOT(finished(QNetworkReply*))));
|
||||
assert(connect(_browser->page()->networkAccessManager(),
|
||||
SIGNAL(proxyAuthenticationRequired(const QNetworkProxy&,
|
||||
QAuthenticator*)),
|
||||
SLOT(proxyAuthenticationRequired(const QNetworkProxy&,
|
||||
QAuthenticator*))));
|
||||
assert(connect(_browser->page()->networkAccessManager(),
|
||||
SIGNAL(sslErrors(QNetworkReply*, const QList<QSslError>&)),
|
||||
SLOT(sslErrors(QNetworkReply*, const QList<QSslError>&))));
|
||||
load(url);
|
||||
}
|
||||
|
||||
QString networkError(QNetworkReply::NetworkError err) {
|
||||
LOG;
|
||||
switch (err) {
|
||||
case QNetworkReply::NoError:
|
||||
return tr("Network connection successful, remote host can be"
|
||||
" reached.");
|
||||
case QNetworkReply::ConnectionRefusedError:
|
||||
return tr("The remote server refused the connection (the server is"
|
||||
" not accepting requests).");
|
||||
case QNetworkReply::RemoteHostClosedError:
|
||||
return tr("The remote server closed the connection prematurely,"
|
||||
" before the entire reply was received and processed.");
|
||||
case QNetworkReply::HostNotFoundError:
|
||||
return tr("The remote host name was not found (invalid hostname).");
|
||||
case QNetworkReply::TimeoutError:
|
||||
return tr("The connection to the remote server timed out.");
|
||||
case QNetworkReply::OperationCanceledError:
|
||||
return tr("The operation was canceled via calls to abort() or"
|
||||
" close() before it was finished.");
|
||||
case QNetworkReply::SslHandshakeFailedError:
|
||||
return tr("The SSL/TLS handshake failed and the encrypted channel"
|
||||
" could not be established. The sslErrors() signal should"
|
||||
" have been emitted.");
|
||||
case QNetworkReply::ProxyConnectionRefusedError:
|
||||
return tr("The connection to the proxy server was refused (the"
|
||||
" proxy server is not accepting requests).");
|
||||
case QNetworkReply::ProxyConnectionClosedError:
|
||||
return tr("The proxy server closed the connection prematurely,"
|
||||
" before the entire reply was received and processed.");
|
||||
case QNetworkReply::ProxyNotFoundError:
|
||||
return tr("The proxy host name was not found (invalid proxy"
|
||||
" hostname).");
|
||||
case QNetworkReply::ProxyTimeoutError:
|
||||
return tr("The connection to the proxy timed out or the proxy did"
|
||||
" not reply in time to the request sent.");
|
||||
case QNetworkReply::ProxyAuthenticationRequiredError:
|
||||
return tr("The proxy requires authentication in order to honour the"
|
||||
" request but did not accept any credentials offered"
|
||||
" (if any).");
|
||||
case QNetworkReply::ContentAccessDenied:
|
||||
return tr("The access to the remote content was denied (similar to"
|
||||
" HTTP error 401).");
|
||||
case QNetworkReply::ContentOperationNotPermittedError:
|
||||
return tr("The operation requested on the remote content is not"
|
||||
" permitted.");
|
||||
case QNetworkReply::ContentNotFoundError:
|
||||
return tr("The remote content was not found at the server (similar"
|
||||
" to HTTP error 404).");
|
||||
case QNetworkReply::AuthenticationRequiredError:
|
||||
return tr("The remote server requires authentication to serve the"
|
||||
" content but the credentials provided were not accepted"
|
||||
" (if any).");
|
||||
case QNetworkReply::ProtocolUnknownError:
|
||||
return tr("The Network Access API cannot honor the request because"
|
||||
" the protocol is not known.");
|
||||
case QNetworkReply::ProtocolInvalidOperationError:
|
||||
return tr("The requested operation is invalid for this protocol.");
|
||||
case QNetworkReply::UnknownNetworkError:
|
||||
return tr("An unknown network-related error was detected.");
|
||||
case QNetworkReply::UnknownProxyError:
|
||||
return tr("An unknown proxy-related error was detected.");
|
||||
case QNetworkReply::UnknownContentError:
|
||||
return tr("An unknonwn error related to the remote content was"
|
||||
" detected.");
|
||||
case QNetworkReply::ProtocolFailure:
|
||||
return tr("A breakdown in protocol was detected (parsing error,"
|
||||
" invalid or unexpected responses, etc.).");
|
||||
default:
|
||||
return tr("<strong>Unknown network error (code: %1).</string>")
|
||||
.arg(err);
|
||||
}
|
||||
}
|
||||
|
||||
bool check(QUrl page) {
|
||||
return true;
|
||||
}
|
||||
|
||||
private Q_SLOTS:
|
||||
|
||||
void load() {
|
||||
LOG;
|
||||
load(_url->text());
|
||||
}
|
||||
|
||||
void load(QString page) {
|
||||
if (QUrl(page).scheme()=="") page = "http://"+page;
|
||||
load(QUrl(page));
|
||||
}
|
||||
|
||||
void load(QUrl page) {
|
||||
LOG;
|
||||
statusBar()->showMessage(tr("Checking: %1").arg(page.toString()));
|
||||
try {
|
||||
if (!check(page)) {
|
||||
qDebug()<<"########## BLACK LISTED IGNORED ##########";
|
||||
statusBar()->showMessage(tr("Forbidden: %1").arg(page.toString()));
|
||||
QMessageBox::warning(this, tr("Access Denied"),
|
||||
tr("<p>Access denied due to security"
|
||||
" considerations.</p><p>You are not"
|
||||
" allowed to connect to %1.")
|
||||
.arg(page.toString()));
|
||||
return;
|
||||
}
|
||||
if (_proxy) _proxy->checkUrl(page.toString());
|
||||
_progress->setValue(0);
|
||||
_progress->setMaximum(0);
|
||||
_progress->show();
|
||||
if (!_proxy) startDownload(page);
|
||||
} catch (...) {
|
||||
reply_error(QNetworkReply::ProxyNotFoundError);
|
||||
} // no network
|
||||
}
|
||||
|
||||
void startDownload(QUrl url, const QNetworkProxy& proxy) {
|
||||
LOG;
|
||||
QNetworkProxy::setApplicationProxy(proxy);
|
||||
startDownload(url);
|
||||
}
|
||||
|
||||
void startDownload(QUrl url) {
|
||||
LOG;
|
||||
statusBar()->showMessage(tr("Reading: %1").arg(url.toString()));
|
||||
if (!url.isValid()) {
|
||||
statusBar()->showMessage(tr("Illegal URL: %1").arg(url.errorString()));
|
||||
_progress->hide();
|
||||
return;
|
||||
}
|
||||
//if (url.scheme()=="") url.setScheme("http");
|
||||
_browser->load(url);
|
||||
}
|
||||
|
||||
void reply_error(QNetworkReply::NetworkError err) {
|
||||
LOG;
|
||||
statusBar()->showMessage(tr("network error"));
|
||||
_error += tr("<h2>%1</h2><p>%2</p>")
|
||||
.arg(tr("Reply Error"))
|
||||
.arg(networkError(err));
|
||||
}
|
||||
|
||||
//! intermediate proxy error
|
||||
void proxy_error(QNetworkReply::NetworkError err,
|
||||
QString errStr, QString proxy) {
|
||||
LOG;
|
||||
statusBar()->showMessage(tr("proxy error"));
|
||||
_error += tr("<h2>%1</h2><p>Proxy: %3</p><p>%2</p><p>%4</p>")
|
||||
.arg(tr("Possible Proxy Failed"))
|
||||
.arg(networkError(err))
|
||||
.arg(proxy)
|
||||
.arg(errStr);
|
||||
}
|
||||
|
||||
//! final proxy error
|
||||
void proxy_error(QNetworkReply::NetworkError err) {
|
||||
LOG;
|
||||
statusBar()->showMessage(tr("proxy error"));
|
||||
_error = tr("<h2>%1</h2><p>%2</p>")
|
||||
.arg(tr("Connection Cannot Be Established"))
|
||||
.arg(networkError(err)) + _error;
|
||||
on__browser_loadFinished(false);
|
||||
}
|
||||
|
||||
void zoom(int i) {
|
||||
LOG;
|
||||
statusBar()->showMessage(tr("Zoom: %1%").arg(100.0*i/10.0));
|
||||
_browser->setZoomFactor(i/10.0);
|
||||
}
|
||||
|
||||
void on_actionHome_activated() {
|
||||
LOG;
|
||||
load(_home);
|
||||
}
|
||||
|
||||
void on__browser_urlChanged(const QUrl& url) {
|
||||
LOG;
|
||||
if (_url) _url->setText(url.toString());
|
||||
}
|
||||
|
||||
void on__browser_linkClicked(const QUrl& url) {
|
||||
LOG;
|
||||
load(url);
|
||||
}
|
||||
|
||||
void on__browser_iconChanged() {
|
||||
LOG;
|
||||
setWindowIcon(_browser->icon());
|
||||
}
|
||||
|
||||
void on__browser_titleChanged(const QString& text) {
|
||||
LOG;
|
||||
setWindowTitle(trUtf8("%1 - SwissSurfer").arg(text));
|
||||
}
|
||||
|
||||
void on__browser_statusBarMessage(const QString& text) {
|
||||
LOG;
|
||||
qDebug()<<"Message: "<<text;
|
||||
if (text.size()) statusBar()->showMessage(tr("Info: %1").arg(text));
|
||||
}
|
||||
|
||||
void on__browser_loadProgress(int i) {
|
||||
LOG;
|
||||
_progress->setValue(i);
|
||||
}
|
||||
|
||||
void on__browser_loadStarted() {
|
||||
LOG;
|
||||
_progress->setValue(0);
|
||||
_progress->setMaximum(100);
|
||||
_progress->show();
|
||||
actionStop->setEnabled(true);
|
||||
actionForward->setEnabled(false);
|
||||
actionBack->setEnabled(false);
|
||||
actionReload->setEnabled(false);
|
||||
actionHome->setEnabled(false);
|
||||
}
|
||||
|
||||
void on__browser_loadFinished(bool ok) {
|
||||
LOG;
|
||||
if (!ok) {
|
||||
_browser->setHtml(tr("<html><title>Page Load Error</title>"
|
||||
"<body><h1>Page Load Error</h1>%1"
|
||||
"</body></html>")
|
||||
.arg(_error),
|
||||
_errorUrl);
|
||||
statusBar()->showMessage(tr("download error"));
|
||||
} else {
|
||||
statusBar()->showMessage(tr("done."));
|
||||
}
|
||||
_error.clear();
|
||||
_progress->hide();
|
||||
on__browser_iconChanged();
|
||||
actionStop->setEnabled(false);
|
||||
actionForward->setEnabled(_browser->history()->canGoForward());
|
||||
actionBack->setEnabled(_browser->history()->canGoBack());
|
||||
actionReload->setEnabled(true);
|
||||
actionHome->setEnabled(true);
|
||||
}
|
||||
|
||||
void on_actionNew_triggered() {
|
||||
LOG;
|
||||
(new Browser(_browser->url().toString(), _kiosk))->show();
|
||||
}
|
||||
|
||||
void on_actionClose_triggered() {
|
||||
LOG;
|
||||
close();
|
||||
}
|
||||
|
||||
void on_actionProxySettings_triggered() {
|
||||
LOG;
|
||||
if (_proxy) _proxy->show();
|
||||
}
|
||||
|
||||
//@name QWebPage slots
|
||||
//@{
|
||||
|
||||
void triggeredOpenLink(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredOpenLinkInNewWindow(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredOpenFrameInNewWindow(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredDownloadLinkToDisk(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredCopyLinkToClipboard(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredOpenImageInNewWindow(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredDownloadImageToDisk(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredCopyImageToClipboard(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredBack(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredForward(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredStop(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredReload(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredCut(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredCopy(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredPaste(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredUndo(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredRedo(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredMoveToNextChar(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredMoveToPreviousChar(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredMoveToNextWord(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredMoveToPreviousWord(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredMoveToNextLine(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredMoveToPreviousLine(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredMoveToStartOfLine(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredMoveToEndOfLine(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredMoveToStartOfBlock(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredMoveToEndOfBlock(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredMoveToStartOfDocument(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredMoveToEndOfDocument(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredSelectNextChar(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredSelectPreviousChar(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredSelectNextWord(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredSelectPreviousWord(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredSelectNextLine(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredSelectPreviousLine(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredSelectStartOfLine(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredSelectEndOfLine(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredSelectStartOfBlock(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredSelectEndOfBlock(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredSelectStartOfDocument(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredSelectEndOfDocument(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredDeleteStartOfWord(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredDeleteEndOfWord(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredSetTextDirectionDefault(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredSetTextDirectionLeftToRight(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredSetTextDirectionRightToLeft(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredToggleBold(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredToggleItalic(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredToggleUnderline(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredInspectElement(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredInsertParagraphSeparator(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredInsertLineSeparator(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void triggeredSelectAll(bool) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
//@}
|
||||
|
||||
//@name QWebPage slots
|
||||
//@{
|
||||
|
||||
void contentsChanged() {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void databaseQuotaExceeded(QWebFrame* frame, QString databaseName) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void downloadRequested(const QNetworkRequest& request) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void frameCreated(QWebFrame* frame) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void geometryChangeRequested(const QRect& geom) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void linkClicked(const QUrl& url) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void linkHovered(const QString& link, const QString& title,
|
||||
const QString& textContent) {
|
||||
LOG;
|
||||
statusBar()->showMessage(tr("%1", "statusbar for hovered link %1=url")
|
||||
.arg(link));
|
||||
}
|
||||
|
||||
void loadFinished(bool ok) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void loadProgress(int progress) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void loadStarted() {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void menuBarVisibilityChangeRequested(bool visible) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void microFocusChanged() {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void printRequested(QWebFrame* frame) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void repaintRequested(const QRect& dirtyRect) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void restoreFrameStateRequested(QWebFrame* frame) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void saveFrameStateRequested(QWebFrame* frame, QWebHistoryItem* item) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void scrollRequested(int dx, int dy, const QRect& rectToScroll) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void selectionChanged() {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void statusBarMessage(const QString& text) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void statusBarVisibilityChangeRequested(bool visible) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void toolBarVisibilityChangeRequested(bool visible) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void unsupportedContent(QNetworkReply* reply) {
|
||||
LOG;
|
||||
statusBar()->showMessage(tr("unsupported content"));
|
||||
_error += tr("<h2>%1</h2><p>URL: %3</p><p>%2</p>")
|
||||
.arg(tr("Unsuported Content"))
|
||||
.arg(networkError(reply->error()))
|
||||
.arg(reply->url().toString());
|
||||
_errorUrl = reply->url();
|
||||
}
|
||||
|
||||
void windowCloseRequested() {
|
||||
LOG;
|
||||
}
|
||||
|
||||
//@}
|
||||
|
||||
//@name QNetworkAccessManager signals
|
||||
//@{
|
||||
|
||||
void authenticationRequired(QNetworkReply* reply,
|
||||
QAuthenticator* authenticator) {
|
||||
LOG;
|
||||
statusBar()->showMessage(tr("authentication required"));
|
||||
_error += tr("<h2>%1</h2><p>URL: %3</p><p>%2</p>")
|
||||
.arg(tr("Authentication Required"))
|
||||
.arg(networkError(reply->error()))
|
||||
.arg(reply->url().toString());
|
||||
_errorUrl = reply->url();
|
||||
}
|
||||
|
||||
void finished(QNetworkReply* reply) {
|
||||
LOG;
|
||||
if (reply->error()!=QNetworkReply::NoError) {
|
||||
_error += tr("<h2>%1</h2><p>URL: %3</p><p>%2</p>")
|
||||
.arg(tr("Network Error"))
|
||||
.arg(networkError(reply->error()))
|
||||
.arg(reply->url().toString());
|
||||
_errorUrl = reply->url();
|
||||
}
|
||||
}
|
||||
|
||||
void proxyAuthenticationRequired(const QNetworkProxy& proxy,
|
||||
QAuthenticator* authenticator) {
|
||||
LOG;
|
||||
}
|
||||
|
||||
void sslErrors(QNetworkReply* reply, const QList<QSslError>& errors) {
|
||||
LOG;
|
||||
statusBar()->showMessage(tr("ssl error"));
|
||||
QString e;
|
||||
for (QList<QSslError>::const_iterator err(errors.begin());
|
||||
err!=errors.end(); ++err)
|
||||
e+=tr("<li>%1</li>", "single ssl error").arg(err->errorString());
|
||||
_error += tr("<h2>%1</h2><p>URL: %4</p><p>%2</p>"
|
||||
"<h3>SSL Errors</h3>"
|
||||
"<p><ul>%3</ul></p>")
|
||||
.arg(tr("SSL Error"))
|
||||
.arg(networkError(reply->error()))
|
||||
.arg(e)
|
||||
.arg(reply->url().toString());
|
||||
_errorUrl = reply->url();
|
||||
}
|
||||
|
||||
//@}
|
||||
|
||||
private:
|
||||
|
||||
QLineEdit* _url;
|
||||
QSlider* _zoom;
|
||||
QProgressBar* _progress;
|
||||
QString _home;
|
||||
gui::Proxy* _proxy;
|
||||
bool _kiosk;
|
||||
bool _proxydetection;
|
||||
QString _error;
|
||||
QUrl _errorUrl;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
276
swisssurfer/src/browser.ui
Normal file
276
swisssurfer/src/browser.ui
Normal file
@@ -0,0 +1,276 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>Browser</class>
|
||||
<widget class="QMainWindow" name="Browser">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1052</width>
|
||||
<height>855</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>SwissSurfer</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralwidget">
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QWebView" name="_browser">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="url">
|
||||
<url>
|
||||
<string>about:blank</string>
|
||||
</url>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusbar"/>
|
||||
<widget class="QToolBar" name="_toolbar">
|
||||
<property name="windowTitle">
|
||||
<string>toolBar</string>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</size>
|
||||
</property>
|
||||
<attribute name="toolBarArea">
|
||||
<enum>TopToolBarArea</enum>
|
||||
</attribute>
|
||||
<attribute name="toolBarBreak">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<addaction name="actionHome"/>
|
||||
<addaction name="actionReload"/>
|
||||
<addaction name="actionBack"/>
|
||||
<addaction name="actionForward"/>
|
||||
<addaction name="actionStop"/>
|
||||
</widget>
|
||||
<widget class="QMenuBar" name="_menu">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1052</width>
|
||||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuDatei">
|
||||
<property name="title">
|
||||
<string>&File</string>
|
||||
</property>
|
||||
<addaction name="actionNew"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionClose"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuEinstellungen">
|
||||
<property name="title">
|
||||
<string>&Settings</string>
|
||||
</property>
|
||||
<addaction name="actionProxySettings"/>
|
||||
</widget>
|
||||
<addaction name="menuDatei"/>
|
||||
<addaction name="menuEinstellungen"/>
|
||||
</widget>
|
||||
<action name="actionProxyConfig">
|
||||
<property name="text">
|
||||
<string>&Proxy Configuration</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionProxyPassword">
|
||||
<property name="text">
|
||||
<string>Proxy Password</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionReload">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/reload</normaloff>:/icons/reload</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>neu laden</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionStop">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/stop</normaloff>:/icons/stop</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>stoppen</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Esc</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionBack">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/back</normaloff>:/icons/back</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>zurückkehren</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Alt+Left</string>
|
||||
</property>
|
||||
<property name="shortcutContext">
|
||||
<enum>Qt::WindowShortcut</enum>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionForward">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/forward</normaloff>:/icons/forward</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>weitergehen</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Alt+Right</string>
|
||||
</property>
|
||||
<property name="shortcutContext">
|
||||
<enum>Qt::WindowShortcut</enum>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionHome">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/home</normaloff>:/icons/home</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Startseite</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Home</string>
|
||||
</property>
|
||||
<property name="shortcutContext">
|
||||
<enum>Qt::WindowShortcut</enum>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionNew">
|
||||
<property name="text">
|
||||
<string>&New Browser</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>New Browser Window</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+N</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionClose">
|
||||
<property name="text">
|
||||
<string>&Close</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+W</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionProxySettings">
|
||||
<property name="text">
|
||||
<string>&Proxy...</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+P</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>QWebView</class>
|
||||
<extends>QWidget</extends>
|
||||
<header>QtWebKit/QWebView</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources>
|
||||
<include location="resources.qrc"/>
|
||||
</resources>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>actionReload</sender>
|
||||
<signal>activated()</signal>
|
||||
<receiver>_browser</receiver>
|
||||
<slot>reload()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>-1</x>
|
||||
<y>-1</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>515</x>
|
||||
<y>387</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>actionBack</sender>
|
||||
<signal>activated()</signal>
|
||||
<receiver>_browser</receiver>
|
||||
<slot>back()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>-1</x>
|
||||
<y>-1</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>515</x>
|
||||
<y>387</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>actionForward</sender>
|
||||
<signal>activated()</signal>
|
||||
<receiver>_browser</receiver>
|
||||
<slot>forward()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>-1</x>
|
||||
<y>-1</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>515</x>
|
||||
<y>387</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>actionStop</sender>
|
||||
<signal>activated()</signal>
|
||||
<receiver>_browser</receiver>
|
||||
<slot>stop()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>-1</x>
|
||||
<y>-1</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>515</x>
|
||||
<y>387</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
</ui>
|
8
swisssurfer/src/languages.qrc.in
Normal file
8
swisssurfer/src/languages.qrc.in
Normal file
@@ -0,0 +1,8 @@
|
||||
<RCC>
|
||||
<qresource prefix="/language">
|
||||
<file>@PACKAGENAME@_de.qm</file>
|
||||
<file>@PACKAGENAME@_fr.qm</file>
|
||||
<file>@PACKAGENAME@_it.qm</file>
|
||||
<file>@PACKAGENAME@_en.qm</file>
|
||||
</qresource>
|
||||
</RCC>
|
269
swisssurfer/src/main.cxx
Normal file
269
swisssurfer/src/main.cxx
Normal file
@@ -0,0 +1,269 @@
|
||||
/*! @file
|
||||
|
||||
@id $Id: main.cxx 15 2010-06-03 14:17:27Z marc $
|
||||
|
||||
Build für Windoof:
|
||||
<code>QMAKESPEC=$(pwd)/mkspecs/mingw-g++ qmake-qt4 && make release</code>
|
||||
*/
|
||||
// 1 2 3 4 5 6 7 8
|
||||
// 45678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtCore/QTranslator>
|
||||
#include <QtCore/QTextCodec>
|
||||
#include <QtCore/QLocale>
|
||||
#include <QtCore/QProcess>
|
||||
#include <QtCore/QFileInfo>
|
||||
#include <QtNetwork/QNetworkProxy>
|
||||
|
||||
#include <QtNetwork/QSslConfiguration>
|
||||
#include <QtNetwork/QSslCertificate>
|
||||
#include <QtNetwork/QSslKey>
|
||||
|
||||
#include <browser.hxx>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
const QByteArray SWISSSIGN_GOLD_CA_G2
|
||||
("-----BEGIN CERTIFICATE-----\n"
|
||||
"MIIFujCCA6KgAwIBAgIJALtAHEP1Xk+wMA0GCSqGSIb3DQEBBQUAMEUxCzAJ\n"
|
||||
"BgNVBAYTAkNIMRUwEwYDVQQKEwxTd2lzc1NpZ24gQUcxHzAdBgNVBAMTFlN3\n"
|
||||
"aXNzU2lnbiBHb2xkIENBIC0gRzIwHhcNMDYxMDI1MDgzMDM1WhcNMzYxMDI1\n"
|
||||
"MDgzMDM1WjBFMQswCQYDVQQGEwJDSDEVMBMGA1UEChMMU3dpc3NTaWduIEFH\n"
|
||||
"MR8wHQYDVQQDExZTd2lzc1NpZ24gR29sZCBDQSAtIEcyMIICIjANBgkqhkiG\n"
|
||||
"9w0BAQEFAAOCAg8AMIICCgKCAgEAr+TufoskDhJuqVAtFkQ7kpJcyrhdhJJC\n"
|
||||
"Eyq8ZVeCQD5XJM1QiyUqt2/876LQwB8CJEoTlo8jE+YoWACjR8cGp4QjK7u9\n"
|
||||
"lit/VcyLwVcfDmJlD909Vopz2q5+bbqBHH5CjCA12UNNhPqE21Is8w4ndwtr\n"
|
||||
"vxEvcnifLtg+5hg3Wipy+dpikJKVyh+c6bM8K8vzARO/Ws/BtQpgvd21mWRT\n"
|
||||
"uKCWs2/iJneRjOBiEAKfNA+k1ZIzUd6+jbqEemA8atufK+ze3gE/bk3lUIbL\n"
|
||||
"tK/tREDFylqM2tIrfKjuvqblCqoOpd8FUrdVxyJdMmqXl2MT28nbeTZ7hTpK\n"
|
||||
"xVKJ+STnnXepgv9VHKVxaSvRAiTysybUa9oEVeXBCsdtMDeQKuSeFDNeFhdV\n"
|
||||
"xVu1yzSJkvGdJo+hB9TGsnhQ2wwMC3wLjEHXuendjIj3o02yMszYF9rNt85m\n"
|
||||
"ndT9Xv+9lz4pded+p2JYryU0pUHHPbwNUMoDAw8IWh+Vc3hiv69yFGkOpeUD\n"
|
||||
"DniOJihC8AcLYiAQZzlG+qkDzAQ4embvIIO1jEpWjpEA/I5cgt6IoMPiaG59\n"
|
||||
"je883WX0XaxR7ySArqpWl2/5rX3aYT+YdzylkbYcjCbaZaIJbcHiVOO5ykxM\n"
|
||||
"gI93e2CaHt+28kgeDrpOVG2Y4OGiGqJ3UM/EY5LsRxmd6+ZrzsECAwEAAaOB\n"
|
||||
"rDCBqTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4E\n"
|
||||
"FgQUWyV7lqRlUX64OfPAeGZe6Drn8O4wHwYDVR0jBBgwFoAUWyV7lqRlUX64\n"
|
||||
"OfPAeGZe6Drn8O4wRgYDVR0gBD8wPTA7BglghXQBWQECAQEwLjAsBggrBgEF\n"
|
||||
"BQcCARYgaHR0cDovL3JlcG9zaXRvcnkuc3dpc3NzaWduLmNvbS8wDQYJKoZI\n"
|
||||
"hvcNAQEFBQADggIBACe645R88a7A3hfm5djV9VSwg/S7zV4Fe0+fdWavPOhW\n"
|
||||
"fvxyeDgD2StiGwC5+OlgzczOUYrHUDFu4Up+GC9pWbY9ZIEr44OE5iKHjn3g\n"
|
||||
"7gKZYbge9LgriBIWhMIxkziWMaa5O1M/wySTVltpkuzFwbs4AOPsF6m43Md8\n"
|
||||
"AYOfMke6UiI0HTJ6CVanfCU2qT1L2sCCbwq7EsiHSycR+R4tx5M/nttfJmtS\n"
|
||||
"2S6K8RTGRI0Vqbe/vd6mGu6uLftIdxf+u+yvGPUqUfA5hJeVbG4bwyvEdGB5\n"
|
||||
"JbAKJ9/fXtI5z0V9QkvfsywexcZdylU6oJxpmo/a77KwPJ+HbBIrZXAVUjEa\n"
|
||||
"JM9vMSNQH4xPjyPDdEFjHFWoFN0+4FFQz/EbMFYOkrCChdiDyyJkvC24JdVU\n"
|
||||
"orgG6q2SpCSgwYa1ShNqR88uC1aVVMvOmttqtKay20EIhid392qgQmwLOM7X\n"
|
||||
"dVAyksLfKzAiSNDVQTglXaTpXZ/GlHXQRf0wl0OPkKsKx4ZzYEppLd6leNcG\n"
|
||||
"2mqeSz53OiATIgHQv2ieY2BrNU0LbbqhPcCT4H8js1WtciVORvnSFu+wZMEB\n"
|
||||
"nunKoGqYDs/YYPIvSbjkQuE4NRb0yG5P94FW6LqjviOvrv1vA+ACOzB2+htt\n"
|
||||
"Qc8Bsem4yWb02ybzOqR08kkkW8mw0FfB+j564ZfJ\n"
|
||||
"-----END CERTIFICATE-----\n");
|
||||
const QByteArray SWISSSIGN_PLATINUM_CA_G2
|
||||
("-----BEGIN CERTIFICATE-----\n"
|
||||
"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\n"
|
||||
"-----END CERTIFICATE-----\n");
|
||||
const QByteArray SWISSSIGN_SILVER_CA_G2
|
||||
("-----BEGIN CERTIFICATE-----\n"
|
||||
"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\n"
|
||||
"-----END CERTIFICATE-----\n");
|
||||
|
||||
void notrace(QtMsgType, const char*) {
|
||||
return;
|
||||
}
|
||||
|
||||
int main(int argv, char** argc) try {
|
||||
// qInstallMsgHandler(notrace);
|
||||
// std::cout.rdbuf((new std::stringstream)->rdbuf());
|
||||
// std::cerr.rdbuf((new std::stringstream)->rdbuf());
|
||||
// std::clog.rdbuf((new std::stringstream)->rdbuf());
|
||||
//............................................................................
|
||||
QSslConfiguration sslConfig(QSslConfiguration::defaultConfiguration());
|
||||
QList<QSslCertificate> certs(sslConfig.caCertificates());
|
||||
certs.push_back(QSslCertificate(SWISSSIGN_GOLD_CA_G2));
|
||||
certs.push_back(QSslCertificate(SWISSSIGN_SILVER_CA_G2));
|
||||
certs.push_back(QSslCertificate(SWISSSIGN_PLATINUM_CA_G2));
|
||||
sslConfig.setCaCertificates(certs);
|
||||
//............................................................................
|
||||
QStringList l(QProcess::systemEnvironment());
|
||||
QMap<QString, QString> env;
|
||||
for (QStringList::iterator it(l.begin()); it!=l.end(); ++it) {
|
||||
QStringList v(it->split('='));
|
||||
QString key(*v.begin());
|
||||
QString value((v.pop_front(), v.join("=")));
|
||||
env.insert(key, value);
|
||||
qDebug()<<"env:"<<key<<"="<<value;
|
||||
}
|
||||
//............................................................................
|
||||
QTextCodec* utf8(QTextCodec::codecForName("UTF-8"));
|
||||
QTextCodec::setCodecForCStrings(utf8);
|
||||
QTextCodec::setCodecForLocale(utf8);
|
||||
QTextCodec::setCodecForTr(utf8);
|
||||
QApplication app(argv, argc);
|
||||
QTranslator qtTranslator;
|
||||
if (env.contains("LANGUAGE")) QLocale::setDefault(env["LANGUAGE"]);
|
||||
qtTranslator.load(":/language/qt_" + QLocale::system().name());
|
||||
app.installTranslator(&qtTranslator);
|
||||
QTranslator appTranslator;
|
||||
appTranslator.load(":/language/swisssurfer_"+ QLocale::system().name());
|
||||
app.installTranslator(&appTranslator);
|
||||
//............................................................................
|
||||
QNetworkProxy::setApplicationProxy
|
||||
(QNetworkProxy
|
||||
((env["PROXY_TYPE"]=="http"
|
||||
? QNetworkProxy::HttpProxy
|
||||
: (env["PROXY_TYPE"]=="socks"
|
||||
? QNetworkProxy::Socks5Proxy
|
||||
: QNetworkProxy::NoProxy)),
|
||||
env["PROXY_HOST"], env["PROXY_PORT"].toInt()));
|
||||
qDebug()<<"***************************************************************";
|
||||
qDebug()<<"Start - Proxy:"
|
||||
<<(QNetworkProxy::applicationProxy().type()==QNetworkProxy::NoProxy
|
||||
? "No Proxy"
|
||||
: (QNetworkProxy::applicationProxy().type()
|
||||
==QNetworkProxy::Socks5Proxy ? "socks" : "http"))
|
||||
<<"Hostname"<<QNetworkProxy::applicationProxy().hostName()
|
||||
<<"Port"<<QNetworkProxy::applicationProxy().port();
|
||||
qDebug()<<"***************************************************************";
|
||||
//----------------------------------------------------------------------------
|
||||
QStringList urls;
|
||||
bool silent(false);
|
||||
bool proxydetection(true);
|
||||
QStringList args(app.arguments());
|
||||
for (QStringList::iterator it(args.begin()); ++it!=args.end();)
|
||||
if (*it=="-h" || *it=="--help" || *it=="-help" || *it=="/?") {
|
||||
std::cout<<QObject::trUtf8
|
||||
("Usage: %1 [OPTIONS...] [<url> ...]\n"
|
||||
"Options:\n"
|
||||
" -h, --help show this help text\n"
|
||||
" -k, --kiosk no url bar\n"
|
||||
" -p, --no-proxy no proxy detection\n"
|
||||
" -c, --cert <file> load local client certificate from <file>\n"
|
||||
" -y, --key <file> load local certificate key from <file>\n"
|
||||
" <url> optional full URL\n"
|
||||
"Environment:\n"
|
||||
" LANGUAGE \"de\", \"en\", ... (actual: %5)\n"
|
||||
" PROXY_TYPE \"http\" or \"socks\" or \"\" (actual: %2)\n"
|
||||
" PROXY_PORT proxy port number (actual: %3)\n"
|
||||
" PROXY_HOST proxy host name (actual: %4)\n")
|
||||
.arg(QFileInfo(argc[0]).fileName())
|
||||
.arg(env["PROXY_TYPE"]).arg(env["PROXY_PORT"]).arg(env["PROXY_HOST"])
|
||||
.arg(env["LANGUAGE"])
|
||||
.toStdString()
|
||||
<<std::endl;
|
||||
return 0;
|
||||
} else if ((*it=="-k" || *it=="--kiosk")) {
|
||||
silent=true;
|
||||
} else if ((*it=="-p" || *it=="--no-proxy")) {
|
||||
proxydetection = false;
|
||||
} else if ((*it=="-c" || *it=="--cert") && ++it!=args.end()) {
|
||||
QFile file(*it);
|
||||
file.open(QIODevice::ReadOnly);
|
||||
QSslCertificate::QSslCertificate c(&file);
|
||||
if (c.isNull()) {
|
||||
std::cerr<<QObject::trUtf8("Cannot read PEM certificate from file: %1")
|
||||
.arg(*it).toStdString()<<std::endl;
|
||||
return 1;
|
||||
}
|
||||
sslConfig.setLocalCertificate(c);
|
||||
file.close();
|
||||
std::cout<<QObject::trUtf8("Read PEM certificates from file: %1")
|
||||
.arg(*it).toStdString()<<std::endl;
|
||||
} else if ((*it=="-y" || *it=="--key") && ++it!=args.end()) {
|
||||
QFile file(*it);
|
||||
file.open(QIODevice::ReadOnly);
|
||||
QSslKey k(&file, QSsl::Rsa);
|
||||
if (k.isNull()) {
|
||||
std::cerr<<QObject::trUtf8("Cannot read PEM RSA key from file: %1")
|
||||
.arg(*it).toStdString()<<std::endl;
|
||||
return 1;
|
||||
}
|
||||
sslConfig.setPrivateKey(k);
|
||||
std::cout<<QObject::trUtf8("Read private key from file: %1")
|
||||
.arg(*it).toStdString()<<std::endl;
|
||||
} else if (it!=args.end()) {
|
||||
urls<<*it;
|
||||
} else {
|
||||
std::cout<<QObject::trUtf8("Too few arguments.\nTry: %1 --help")
|
||||
.arg(QFileInfo(argc[0]).fileName()).toStdString()<<std::endl;
|
||||
return 1;
|
||||
}
|
||||
QSslConfiguration::setDefaultConfiguration(sslConfig);
|
||||
//............................................................................
|
||||
if (urls.size()==0) urls<<QObject::trUtf8("http://swisssign.com");
|
||||
for (QStringList::iterator it(urls.begin()); it!=urls.end(); ++it)
|
||||
(new Browser(*it, silent, proxydetection))->show();
|
||||
return app.exec();
|
||||
} catch (std::exception& x) {
|
||||
std::cerr<<"**** Error: "<<x.what()<<std::endl;
|
||||
return 1;
|
||||
} catch (...) {
|
||||
// unexpected exception - just terminate
|
||||
std::cerr<<"**** Error"<<std::endl;
|
||||
return 1;
|
||||
}
|
72
swisssurfer/src/makefile.am
Normal file
72
swisssurfer/src/makefile.am
Normal file
@@ -0,0 +1,72 @@
|
||||
## @file
|
||||
##
|
||||
## $Id: makefile.am 7 2010-03-01 14:55:44Z marc $
|
||||
##
|
||||
## 1 2 3 4 5 6 7 8
|
||||
## 45678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
|
||||
LANGS = en de fr it
|
||||
ALL_SRC = *.cxx *.hxx *.ui $(shell find resources -name .svn -prune -o \( -type f -o -type l \) -print)
|
||||
|
||||
QMAKE = @QMAKE@
|
||||
QMAKE_OPTIONS = @QMAKE_OPTIONS@
|
||||
QMAKE_PROJECT = qmake.pro
|
||||
QMAKE_MAKEFILE = makefile.qmake
|
||||
|
||||
QMAKE_TARGET = @PACKAGENAME@
|
||||
|
||||
TARGETS = ${QMAKE_TARGET}
|
||||
|
||||
if BUILD_WIN
|
||||
QMAKE_MAKEFILE_WIN = makefile.win.qmake
|
||||
QMAKE_OPTIONS_WIN = ${QMAKE_OPTIONS} -win32 -spec cross-mingw-g++
|
||||
QMAKE_TARGET_WIN = $(QMAKE_TARGET:%=%.exe)
|
||||
TARGETS += ${QMAKE_TARGET_WIN}
|
||||
else
|
||||
QMAKE_MAKEFILE_WIN =
|
||||
endif
|
||||
|
||||
all: ${TARGETS} $(LANGS:%=@PACKAGENAME@_%.ts)
|
||||
|
||||
print:
|
||||
@echo "LANGS=${LANGS}"
|
||||
@echo "ALL_SRC=${ALL_SRC}"
|
||||
@echo "QMAKE=${QMAKE}"
|
||||
@echo "QMAKE_OPTIONS=${QMAKE_OPTIONS}"
|
||||
@echo "QMAKE_MAKEFILE=${QMAKE_MAKEFILE}"
|
||||
@echo "QMAKE_TARGET=${QMAKE_TARGET}"
|
||||
@echo "TARGETS=${TARGETS}"
|
||||
@echo "QMAKE_MAKEFILE_WIN=${QMAKE_MAKEFILE_WIN}"
|
||||
@echo "QMAKE_OPTIONS_WIN=${QMAKE_OPTIONS_WIN}"
|
||||
@echo "QMAKE_TARGET_WIN=${QMAKE_TARGET_WIN}"
|
||||
|
||||
%.qm: %.ts
|
||||
${LRELEASE} $<
|
||||
|
||||
%.ts: ${ALL_SRC}
|
||||
${LUPDATE} @LUPDATE_ARGS@ ${QMAKE_PROJECT}
|
||||
|
||||
if BUILD_LIN32
|
||||
${QMAKE_MAKEFILE}: ${QMAKE_PROJECT} ${ALL_SRC}
|
||||
QMAKESPEC=linux-g++-32 ${QMAKE} ${QMAKE_OPTIONS} -o $@ $<
|
||||
else
|
||||
${QMAKE_MAKEFILE}: ${QMAKE_PROJECT} ${ALL_SRC}
|
||||
${QMAKE} ${QMAKE_OPTIONS} -o $@ $<
|
||||
endif
|
||||
|
||||
${QMAKE_MAKEFILE_WIN}: ${QMAKE_PROJECT} ${ALL_SRC}
|
||||
${QMAKE} ${QMAKE_OPTIONS_WIN} -o $@ $<
|
||||
|
||||
${QMAKE_TARGET}: ${QMAKE_MAKEFILE} ${ALL_SRC} $(LANGS:%=@PACKAGENAME@_%.qm) resources.qrc
|
||||
make -f ${QMAKE_MAKEFILE}
|
||||
|
||||
${QMAKE_TARGET_WIN}: ${QMAKE_MAKEFILE_WIN} ${ALL_SRC} $(LANGS:%=@PACKAGENAME@_%.qm) resources.qrc
|
||||
make -f ${QMAKE_MAKEFILE_WIN}
|
||||
|
||||
maintainer-clean-local:
|
||||
-rm -rf ${QMAKE_TARGET}.app
|
||||
|
||||
CLEANFILES = ${TARGETS} $(LANGS:%=@PACKAGENAME@_%.qm) \
|
||||
*.o *.obj qrc_*.cpp ui_*.h moc_*.cpp \
|
||||
${QMAKE_TARGET} ${QMAKE_TARGET_WIN}
|
||||
MAINTAINERCLEANFILES = makefile.in ${QMAKE_MAKEFILE} ${QMAKE_MAKEFILE_WIN}
|
27
swisssurfer/src/qmake.pro.in
Normal file
27
swisssurfer/src/qmake.pro.in
Normal file
@@ -0,0 +1,27 @@
|
||||
QT += webkit network gui
|
||||
CONFIG += release
|
||||
QMAKE_LIBS += -lproxyface -lcryptoki++
|
||||
unix {
|
||||
QMAKE_LIBS += -lproxy
|
||||
}
|
||||
macx {
|
||||
QMAKE_LIBS += -lproxy
|
||||
QMAKE_INCDIR += /opt/local/include
|
||||
QMAKE_LIBDIR += /opt/local/lib
|
||||
CONFIG += x86
|
||||
}
|
||||
win32 {
|
||||
QMAKE_LIBS += /opt/local/i586-mingw32msvc/lib/winhttp.a
|
||||
CONFIG += console
|
||||
}
|
||||
TRANSLATIONS = @PACKAGENAME@_en.ts \
|
||||
@PACKAGENAME@_de.ts \
|
||||
@PACKAGENAME@_fr.ts \
|
||||
@PACKAGENAME@_it.ts
|
||||
SOURCES = main.cxx
|
||||
HEADERS = browser.hxx
|
||||
FORMS = browser.ui
|
||||
RESOURCES = languages.qrc resources.qrc
|
||||
TARGET = @PACKAGENAME@
|
||||
CODECFORSRC = UTF-8
|
||||
CODECFORTR = UTF-8
|
10
swisssurfer/src/resources.qrc
Normal file
10
swisssurfer/src/resources.qrc
Normal file
@@ -0,0 +1,10 @@
|
||||
<RCC>
|
||||
<qresource prefix="icons" >
|
||||
<file alias="up" >resources/icons/up.png</file>
|
||||
<file alias="back" >resources/icons/back.png</file>
|
||||
<file alias="forward" >resources/icons/forward.png</file>
|
||||
<file alias="home" >resources/icons/gohome.png</file>
|
||||
<file alias="reload" >resources/icons/reload.png</file>
|
||||
<file alias="stop" >resources/icons/stop.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
BIN
swisssurfer/src/resources/icons/back.png
Normal file
BIN
swisssurfer/src/resources/icons/back.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
BIN
swisssurfer/src/resources/icons/forward.png
Normal file
BIN
swisssurfer/src/resources/icons/forward.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
BIN
swisssurfer/src/resources/icons/gohome.png
Normal file
BIN
swisssurfer/src/resources/icons/gohome.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
BIN
swisssurfer/src/resources/icons/reload.png
Normal file
BIN
swisssurfer/src/resources/icons/reload.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
9
swisssurfer/src/resources/icons/source
Normal file
9
swisssurfer/src/resources/icons/source
Normal file
@@ -0,0 +1,9 @@
|
||||
Icons taken from konqueror-buttonset 1.5 on http://www.kde-look.org/content/show.php/konqueror-buttonset?content=28212 (download: http://www.kde-look.org/content/download.php?content=28212&id=1&tan=58988840)
|
||||
License: Artistic 2.0
|
||||
|
||||
back.png
|
||||
forward.png
|
||||
gohome.png
|
||||
reload.png
|
||||
stop.png
|
||||
up.png
|
BIN
swisssurfer/src/resources/icons/stop.png
Normal file
BIN
swisssurfer/src/resources/icons/stop.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
BIN
swisssurfer/src/resources/icons/up.png
Normal file
BIN
swisssurfer/src/resources/icons/up.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
451
swisssurfer/src/swisssurfer_de.ts
Normal file
451
swisssurfer/src/swisssurfer_de.ts
Normal file
@@ -0,0 +1,451 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.0">
|
||||
<defaultcodec>UTF-8</defaultcodec>
|
||||
<context>
|
||||
<name>Browser</name>
|
||||
<message>
|
||||
<location filename="browser.ui" line="14"/>
|
||||
<source>SwissSurfer</source>
|
||||
<oldsource>SwissSign Browser</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="28"/>
|
||||
<source>about:blank</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="38"/>
|
||||
<source>toolBar</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="69"/>
|
||||
<source>&File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="77"/>
|
||||
<source>&Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="86"/>
|
||||
<source>&Proxy Configuration</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="91"/>
|
||||
<source>Proxy Password</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="103"/>
|
||||
<source>neu laden</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="115"/>
|
||||
<source>stoppen</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="130"/>
|
||||
<source>zurückkehren</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="148"/>
|
||||
<source>weitergehen</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="163"/>
|
||||
<source>Startseite</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="174"/>
|
||||
<source>&New Browser</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="177"/>
|
||||
<source>New Browser Window</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="180"/>
|
||||
<source>Ctrl+N</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="185"/>
|
||||
<source>&Close</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="188"/>
|
||||
<source>Ctrl+W</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="193"/>
|
||||
<source>&Proxy...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="196"/>
|
||||
<source>Ctrl+P</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="364"/>
|
||||
<source>The connection to the proxy server was refused (the proxy server is not accepting requests).</source>
|
||||
<oldsource>the connection to the proxy timed out or the proxy did not reply in time to the request sent</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="376"/>
|
||||
<source>The proxy requires authentication in order to honour the request but did not accept any credentials offered (if any).</source>
|
||||
<oldsource>the Network Access API cannot honor the request because the protocol is not known</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="434"/>
|
||||
<source>Checking: %1</source>
|
||||
<oldsource>Opening: %1</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="464"/>
|
||||
<source>Reading: %1</source>
|
||||
<oldsource>Reading: %1%</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="477"/>
|
||||
<location filename="browser.hxx" line="498"/>
|
||||
<source><h2>%1</h2><p>%2</p></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="478"/>
|
||||
<source>Reply Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="936"/>
|
||||
<source>Network Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="506"/>
|
||||
<source>Zoom: %1%</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="532"/>
|
||||
<source>%1 - SwissSurfer</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="561"/>
|
||||
<source><html><title>Page Load Error</title><body><h1>Page Load Error</h1>%1</body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="905"/>
|
||||
<location filename="browser.hxx" line="925"/>
|
||||
<location filename="browser.hxx" line="935"/>
|
||||
<source><h2>%1</h2><p>URL: %3</p><p>%2</p></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="955"/>
|
||||
<source><h2>%1</h2><p>URL: %4</p><p>%2</p><h3>SSL Errors</h3><p><ul>%3</ul></p></source>
|
||||
<oldsource><h2>%1</h2><p>URL: %3</p><p>%2</p><h3>SSL Errors</h3><p><ul>%3</ul></p></oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="906"/>
|
||||
<source>Unsuported Content</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="65"/>
|
||||
<source>access to URL %1 not allowed</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="344"/>
|
||||
<source>Network connection successful, remote host can be reached.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="347"/>
|
||||
<source>The remote server refused the connection (the server is not accepting requests).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="350"/>
|
||||
<source>The remote server closed the connection prematurely, before the entire reply was received and processed.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="353"/>
|
||||
<source>The remote host name was not found (invalid hostname).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="355"/>
|
||||
<source>The connection to the remote server timed out.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="357"/>
|
||||
<source>The operation was canceled via calls to abort() or close() before it was finished.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="360"/>
|
||||
<source>The SSL/TLS handshake failed and the encrypted channel could not be established. The sslErrors() signal should have been emitted.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="367"/>
|
||||
<source>The proxy server closed the connection prematurely, before the entire reply was received and processed.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="370"/>
|
||||
<source>The proxy host name was not found (invalid proxy hostname).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="373"/>
|
||||
<source>The connection to the proxy timed out or the proxy did not reply in time to the request sent.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="380"/>
|
||||
<source>The access to the remote content was denied (similar to HTTP error 401).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="383"/>
|
||||
<source>The operation requested on the remote content is not permitted.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="386"/>
|
||||
<source>The remote content was not found at the server (similar to HTTP error 404).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="389"/>
|
||||
<source>The remote server requires authentication to serve the content but the credentials provided were not accepted (if any).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="393"/>
|
||||
<source>The Network Access API cannot honor the request because the protocol is not known.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="396"/>
|
||||
<source>The requested operation is invalid for this protocol.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="398"/>
|
||||
<source>An unknown network-related error was detected.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="400"/>
|
||||
<source>An unknown proxy-related error was detected.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="402"/>
|
||||
<source>An unknonwn error related to the remote content was detected.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="405"/>
|
||||
<source>A breakdown in protocol was detected (parsing error, invalid or unexpected responses, etc.).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="408"/>
|
||||
<source><strong>Unknown network error (code: %1).</string></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="466"/>
|
||||
<source>Illegal URL: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="476"/>
|
||||
<source>network error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="486"/>
|
||||
<location filename="browser.hxx" line="497"/>
|
||||
<source>proxy error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="487"/>
|
||||
<source><h2>%1</h2><p>Proxy: %3</p><p>%2</p><p>%4</p></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="488"/>
|
||||
<source>Possible Proxy Failed</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="499"/>
|
||||
<source>Connection Cannot Be Established</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="538"/>
|
||||
<source>Info: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="566"/>
|
||||
<source>download error</source>
|
||||
<oldsource>donload error</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="568"/>
|
||||
<source>done.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="842"/>
|
||||
<source>%1</source>
|
||||
<comment>statusbar for hovered link %1=url</comment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="904"/>
|
||||
<source>unsupported content</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="438"/>
|
||||
<source>Forbidden: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="439"/>
|
||||
<source>Access Denied</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="440"/>
|
||||
<source><p>Access denied due to security considerations.</p><p>You are not allowed to connect to %1.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="924"/>
|
||||
<source>authentication required</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="926"/>
|
||||
<source>Authentication Required</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="950"/>
|
||||
<source>ssl error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="954"/>
|
||||
<source><li>%1</li></source>
|
||||
<comment>single ssl error</comment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="958"/>
|
||||
<source>SSL Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="main.cxx" line="200"/>
|
||||
<source>Usage: %1 [OPTIONS...] [<url> ...]
|
||||
Options:
|
||||
-h, --help show this help text
|
||||
-k, --kiosk no url bar
|
||||
-p, --no-proxy no proxy detection
|
||||
-c, --cert <file> load local client certificate from <file>
|
||||
-y, --key <file> load local certificate key from <file>
|
||||
<url> optional full URL
|
||||
Environment:
|
||||
LANGUAGE "de", "en", ... (actual: %5)
|
||||
PROXY_TYPE "http" or "socks" or "" (actual: %2)
|
||||
PROXY_PORT proxy port number (actual: %3)
|
||||
PROXY_HOST proxy host name (actual: %4)
|
||||
</source>
|
||||
<oldsource>Usage: %1 [OPTIONS...] [<url> ...]
|
||||
Options:
|
||||
-h, --help show this help text
|
||||
-k, --kiosk no url bar
|
||||
-p, --no-proxy no proxy detection
|
||||
-c, --cert <file> load local client certificate from <file>
|
||||
<url> optional full URL
|
||||
Environment:
|
||||
LANGUAGE "de", "en", ... (actual: %5)
|
||||
PROXY_TYPE "http" or "socks" or "" (actual: %2)
|
||||
PROXY_PORT proxy port number (actual: %3)
|
||||
PROXY_HOST proxy host name (actual: %4)
|
||||
</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="229"/>
|
||||
<source>Cannot read PEM certificate from file: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="235"/>
|
||||
<source>Read PEM certificates from file: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="242"/>
|
||||
<source>Cannot read PEM RSA key from file: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="247"/>
|
||||
<source>Read private key from file: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="252"/>
|
||||
<source>Too few arguments.
|
||||
Try: %1 --help</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="258"/>
|
||||
<source>http://swisssign.com</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
451
swisssurfer/src/swisssurfer_en.ts
Normal file
451
swisssurfer/src/swisssurfer_en.ts
Normal file
@@ -0,0 +1,451 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.0">
|
||||
<defaultcodec>UTF-8</defaultcodec>
|
||||
<context>
|
||||
<name>Browser</name>
|
||||
<message>
|
||||
<location filename="browser.ui" line="14"/>
|
||||
<source>SwissSurfer</source>
|
||||
<oldsource>SwissSign Browser</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="28"/>
|
||||
<source>about:blank</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="38"/>
|
||||
<source>toolBar</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="69"/>
|
||||
<source>&File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="77"/>
|
||||
<source>&Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="86"/>
|
||||
<source>&Proxy Configuration</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="91"/>
|
||||
<source>Proxy Password</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="103"/>
|
||||
<source>neu laden</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="115"/>
|
||||
<source>stoppen</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="130"/>
|
||||
<source>zurückkehren</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="148"/>
|
||||
<source>weitergehen</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="163"/>
|
||||
<source>Startseite</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="174"/>
|
||||
<source>&New Browser</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="177"/>
|
||||
<source>New Browser Window</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="180"/>
|
||||
<source>Ctrl+N</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="185"/>
|
||||
<source>&Close</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="188"/>
|
||||
<source>Ctrl+W</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="193"/>
|
||||
<source>&Proxy...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="196"/>
|
||||
<source>Ctrl+P</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="364"/>
|
||||
<source>The connection to the proxy server was refused (the proxy server is not accepting requests).</source>
|
||||
<oldsource>the connection to the proxy timed out or the proxy did not reply in time to the request sent</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="376"/>
|
||||
<source>The proxy requires authentication in order to honour the request but did not accept any credentials offered (if any).</source>
|
||||
<oldsource>the Network Access API cannot honor the request because the protocol is not known</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="434"/>
|
||||
<source>Checking: %1</source>
|
||||
<oldsource>Opening: %1</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="464"/>
|
||||
<source>Reading: %1</source>
|
||||
<oldsource>Reading: %1%</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="477"/>
|
||||
<location filename="browser.hxx" line="498"/>
|
||||
<source><h2>%1</h2><p>%2</p></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="478"/>
|
||||
<source>Reply Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="936"/>
|
||||
<source>Network Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="506"/>
|
||||
<source>Zoom: %1%</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="532"/>
|
||||
<source>%1 - SwissSurfer</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="561"/>
|
||||
<source><html><title>Page Load Error</title><body><h1>Page Load Error</h1>%1</body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="905"/>
|
||||
<location filename="browser.hxx" line="925"/>
|
||||
<location filename="browser.hxx" line="935"/>
|
||||
<source><h2>%1</h2><p>URL: %3</p><p>%2</p></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="955"/>
|
||||
<source><h2>%1</h2><p>URL: %4</p><p>%2</p><h3>SSL Errors</h3><p><ul>%3</ul></p></source>
|
||||
<oldsource><h2>%1</h2><p>URL: %3</p><p>%2</p><h3>SSL Errors</h3><p><ul>%3</ul></p></oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="906"/>
|
||||
<source>Unsuported Content</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="65"/>
|
||||
<source>access to URL %1 not allowed</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="344"/>
|
||||
<source>Network connection successful, remote host can be reached.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="347"/>
|
||||
<source>The remote server refused the connection (the server is not accepting requests).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="350"/>
|
||||
<source>The remote server closed the connection prematurely, before the entire reply was received and processed.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="353"/>
|
||||
<source>The remote host name was not found (invalid hostname).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="355"/>
|
||||
<source>The connection to the remote server timed out.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="357"/>
|
||||
<source>The operation was canceled via calls to abort() or close() before it was finished.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="360"/>
|
||||
<source>The SSL/TLS handshake failed and the encrypted channel could not be established. The sslErrors() signal should have been emitted.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="367"/>
|
||||
<source>The proxy server closed the connection prematurely, before the entire reply was received and processed.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="370"/>
|
||||
<source>The proxy host name was not found (invalid proxy hostname).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="373"/>
|
||||
<source>The connection to the proxy timed out or the proxy did not reply in time to the request sent.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="380"/>
|
||||
<source>The access to the remote content was denied (similar to HTTP error 401).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="383"/>
|
||||
<source>The operation requested on the remote content is not permitted.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="386"/>
|
||||
<source>The remote content was not found at the server (similar to HTTP error 404).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="389"/>
|
||||
<source>The remote server requires authentication to serve the content but the credentials provided were not accepted (if any).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="393"/>
|
||||
<source>The Network Access API cannot honor the request because the protocol is not known.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="396"/>
|
||||
<source>The requested operation is invalid for this protocol.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="398"/>
|
||||
<source>An unknown network-related error was detected.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="400"/>
|
||||
<source>An unknown proxy-related error was detected.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="402"/>
|
||||
<source>An unknonwn error related to the remote content was detected.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="405"/>
|
||||
<source>A breakdown in protocol was detected (parsing error, invalid or unexpected responses, etc.).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="408"/>
|
||||
<source><strong>Unknown network error (code: %1).</string></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="466"/>
|
||||
<source>Illegal URL: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="476"/>
|
||||
<source>network error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="486"/>
|
||||
<location filename="browser.hxx" line="497"/>
|
||||
<source>proxy error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="487"/>
|
||||
<source><h2>%1</h2><p>Proxy: %3</p><p>%2</p><p>%4</p></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="488"/>
|
||||
<source>Possible Proxy Failed</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="499"/>
|
||||
<source>Connection Cannot Be Established</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="538"/>
|
||||
<source>Info: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="566"/>
|
||||
<source>download error</source>
|
||||
<oldsource>donload error</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="568"/>
|
||||
<source>done.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="842"/>
|
||||
<source>%1</source>
|
||||
<comment>statusbar for hovered link %1=url</comment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="904"/>
|
||||
<source>unsupported content</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="438"/>
|
||||
<source>Forbidden: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="439"/>
|
||||
<source>Access Denied</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="440"/>
|
||||
<source><p>Access denied due to security considerations.</p><p>You are not allowed to connect to %1.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="924"/>
|
||||
<source>authentication required</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="926"/>
|
||||
<source>Authentication Required</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="950"/>
|
||||
<source>ssl error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="954"/>
|
||||
<source><li>%1</li></source>
|
||||
<comment>single ssl error</comment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="958"/>
|
||||
<source>SSL Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="main.cxx" line="200"/>
|
||||
<source>Usage: %1 [OPTIONS...] [<url> ...]
|
||||
Options:
|
||||
-h, --help show this help text
|
||||
-k, --kiosk no url bar
|
||||
-p, --no-proxy no proxy detection
|
||||
-c, --cert <file> load local client certificate from <file>
|
||||
-y, --key <file> load local certificate key from <file>
|
||||
<url> optional full URL
|
||||
Environment:
|
||||
LANGUAGE "de", "en", ... (actual: %5)
|
||||
PROXY_TYPE "http" or "socks" or "" (actual: %2)
|
||||
PROXY_PORT proxy port number (actual: %3)
|
||||
PROXY_HOST proxy host name (actual: %4)
|
||||
</source>
|
||||
<oldsource>Usage: %1 [OPTIONS...] [<url> ...]
|
||||
Options:
|
||||
-h, --help show this help text
|
||||
-k, --kiosk no url bar
|
||||
-p, --no-proxy no proxy detection
|
||||
-c, --cert <file> load local client certificate from <file>
|
||||
<url> optional full URL
|
||||
Environment:
|
||||
LANGUAGE "de", "en", ... (actual: %5)
|
||||
PROXY_TYPE "http" or "socks" or "" (actual: %2)
|
||||
PROXY_PORT proxy port number (actual: %3)
|
||||
PROXY_HOST proxy host name (actual: %4)
|
||||
</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="229"/>
|
||||
<source>Cannot read PEM certificate from file: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="235"/>
|
||||
<source>Read PEM certificates from file: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="242"/>
|
||||
<source>Cannot read PEM RSA key from file: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="247"/>
|
||||
<source>Read private key from file: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="252"/>
|
||||
<source>Too few arguments.
|
||||
Try: %1 --help</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="258"/>
|
||||
<source>http://swisssign.com</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
451
swisssurfer/src/swisssurfer_fr.ts
Normal file
451
swisssurfer/src/swisssurfer_fr.ts
Normal file
@@ -0,0 +1,451 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.0">
|
||||
<defaultcodec>UTF-8</defaultcodec>
|
||||
<context>
|
||||
<name>Browser</name>
|
||||
<message>
|
||||
<location filename="browser.ui" line="14"/>
|
||||
<source>SwissSurfer</source>
|
||||
<oldsource>SwissSign Browser</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="28"/>
|
||||
<source>about:blank</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="38"/>
|
||||
<source>toolBar</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="69"/>
|
||||
<source>&File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="77"/>
|
||||
<source>&Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="86"/>
|
||||
<source>&Proxy Configuration</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="91"/>
|
||||
<source>Proxy Password</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="103"/>
|
||||
<source>neu laden</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="115"/>
|
||||
<source>stoppen</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="130"/>
|
||||
<source>zurückkehren</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="148"/>
|
||||
<source>weitergehen</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="163"/>
|
||||
<source>Startseite</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="174"/>
|
||||
<source>&New Browser</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="177"/>
|
||||
<source>New Browser Window</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="180"/>
|
||||
<source>Ctrl+N</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="185"/>
|
||||
<source>&Close</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="188"/>
|
||||
<source>Ctrl+W</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="193"/>
|
||||
<source>&Proxy...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="196"/>
|
||||
<source>Ctrl+P</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="364"/>
|
||||
<source>The connection to the proxy server was refused (the proxy server is not accepting requests).</source>
|
||||
<oldsource>the connection to the proxy timed out or the proxy did not reply in time to the request sent</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="376"/>
|
||||
<source>The proxy requires authentication in order to honour the request but did not accept any credentials offered (if any).</source>
|
||||
<oldsource>the Network Access API cannot honor the request because the protocol is not known</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="434"/>
|
||||
<source>Checking: %1</source>
|
||||
<oldsource>Opening: %1</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="464"/>
|
||||
<source>Reading: %1</source>
|
||||
<oldsource>Reading: %1%</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="477"/>
|
||||
<location filename="browser.hxx" line="498"/>
|
||||
<source><h2>%1</h2><p>%2</p></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="478"/>
|
||||
<source>Reply Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="936"/>
|
||||
<source>Network Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="506"/>
|
||||
<source>Zoom: %1%</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="532"/>
|
||||
<source>%1 - SwissSurfer</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="561"/>
|
||||
<source><html><title>Page Load Error</title><body><h1>Page Load Error</h1>%1</body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="905"/>
|
||||
<location filename="browser.hxx" line="925"/>
|
||||
<location filename="browser.hxx" line="935"/>
|
||||
<source><h2>%1</h2><p>URL: %3</p><p>%2</p></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="955"/>
|
||||
<source><h2>%1</h2><p>URL: %4</p><p>%2</p><h3>SSL Errors</h3><p><ul>%3</ul></p></source>
|
||||
<oldsource><h2>%1</h2><p>URL: %3</p><p>%2</p><h3>SSL Errors</h3><p><ul>%3</ul></p></oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="906"/>
|
||||
<source>Unsuported Content</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="65"/>
|
||||
<source>access to URL %1 not allowed</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="344"/>
|
||||
<source>Network connection successful, remote host can be reached.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="347"/>
|
||||
<source>The remote server refused the connection (the server is not accepting requests).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="350"/>
|
||||
<source>The remote server closed the connection prematurely, before the entire reply was received and processed.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="353"/>
|
||||
<source>The remote host name was not found (invalid hostname).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="355"/>
|
||||
<source>The connection to the remote server timed out.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="357"/>
|
||||
<source>The operation was canceled via calls to abort() or close() before it was finished.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="360"/>
|
||||
<source>The SSL/TLS handshake failed and the encrypted channel could not be established. The sslErrors() signal should have been emitted.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="367"/>
|
||||
<source>The proxy server closed the connection prematurely, before the entire reply was received and processed.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="370"/>
|
||||
<source>The proxy host name was not found (invalid proxy hostname).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="373"/>
|
||||
<source>The connection to the proxy timed out or the proxy did not reply in time to the request sent.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="380"/>
|
||||
<source>The access to the remote content was denied (similar to HTTP error 401).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="383"/>
|
||||
<source>The operation requested on the remote content is not permitted.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="386"/>
|
||||
<source>The remote content was not found at the server (similar to HTTP error 404).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="389"/>
|
||||
<source>The remote server requires authentication to serve the content but the credentials provided were not accepted (if any).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="393"/>
|
||||
<source>The Network Access API cannot honor the request because the protocol is not known.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="396"/>
|
||||
<source>The requested operation is invalid for this protocol.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="398"/>
|
||||
<source>An unknown network-related error was detected.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="400"/>
|
||||
<source>An unknown proxy-related error was detected.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="402"/>
|
||||
<source>An unknonwn error related to the remote content was detected.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="405"/>
|
||||
<source>A breakdown in protocol was detected (parsing error, invalid or unexpected responses, etc.).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="408"/>
|
||||
<source><strong>Unknown network error (code: %1).</string></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="466"/>
|
||||
<source>Illegal URL: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="476"/>
|
||||
<source>network error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="486"/>
|
||||
<location filename="browser.hxx" line="497"/>
|
||||
<source>proxy error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="487"/>
|
||||
<source><h2>%1</h2><p>Proxy: %3</p><p>%2</p><p>%4</p></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="488"/>
|
||||
<source>Possible Proxy Failed</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="499"/>
|
||||
<source>Connection Cannot Be Established</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="538"/>
|
||||
<source>Info: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="566"/>
|
||||
<source>download error</source>
|
||||
<oldsource>donload error</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="568"/>
|
||||
<source>done.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="842"/>
|
||||
<source>%1</source>
|
||||
<comment>statusbar for hovered link %1=url</comment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="904"/>
|
||||
<source>unsupported content</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="438"/>
|
||||
<source>Forbidden: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="439"/>
|
||||
<source>Access Denied</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="440"/>
|
||||
<source><p>Access denied due to security considerations.</p><p>You are not allowed to connect to %1.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="924"/>
|
||||
<source>authentication required</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="926"/>
|
||||
<source>Authentication Required</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="950"/>
|
||||
<source>ssl error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="954"/>
|
||||
<source><li>%1</li></source>
|
||||
<comment>single ssl error</comment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="958"/>
|
||||
<source>SSL Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="main.cxx" line="200"/>
|
||||
<source>Usage: %1 [OPTIONS...] [<url> ...]
|
||||
Options:
|
||||
-h, --help show this help text
|
||||
-k, --kiosk no url bar
|
||||
-p, --no-proxy no proxy detection
|
||||
-c, --cert <file> load local client certificate from <file>
|
||||
-y, --key <file> load local certificate key from <file>
|
||||
<url> optional full URL
|
||||
Environment:
|
||||
LANGUAGE "de", "en", ... (actual: %5)
|
||||
PROXY_TYPE "http" or "socks" or "" (actual: %2)
|
||||
PROXY_PORT proxy port number (actual: %3)
|
||||
PROXY_HOST proxy host name (actual: %4)
|
||||
</source>
|
||||
<oldsource>Usage: %1 [OPTIONS...] [<url> ...]
|
||||
Options:
|
||||
-h, --help show this help text
|
||||
-k, --kiosk no url bar
|
||||
-p, --no-proxy no proxy detection
|
||||
-c, --cert <file> load local client certificate from <file>
|
||||
<url> optional full URL
|
||||
Environment:
|
||||
LANGUAGE "de", "en", ... (actual: %5)
|
||||
PROXY_TYPE "http" or "socks" or "" (actual: %2)
|
||||
PROXY_PORT proxy port number (actual: %3)
|
||||
PROXY_HOST proxy host name (actual: %4)
|
||||
</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="229"/>
|
||||
<source>Cannot read PEM certificate from file: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="235"/>
|
||||
<source>Read PEM certificates from file: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="242"/>
|
||||
<source>Cannot read PEM RSA key from file: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="247"/>
|
||||
<source>Read private key from file: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="252"/>
|
||||
<source>Too few arguments.
|
||||
Try: %1 --help</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="258"/>
|
||||
<source>http://swisssign.com</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
451
swisssurfer/src/swisssurfer_it.ts
Normal file
451
swisssurfer/src/swisssurfer_it.ts
Normal file
@@ -0,0 +1,451 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.0">
|
||||
<defaultcodec>UTF-8</defaultcodec>
|
||||
<context>
|
||||
<name>Browser</name>
|
||||
<message>
|
||||
<location filename="browser.ui" line="14"/>
|
||||
<source>SwissSurfer</source>
|
||||
<oldsource>SwissSign Browser</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="28"/>
|
||||
<source>about:blank</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="38"/>
|
||||
<source>toolBar</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="69"/>
|
||||
<source>&File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="77"/>
|
||||
<source>&Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="86"/>
|
||||
<source>&Proxy Configuration</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="91"/>
|
||||
<source>Proxy Password</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="103"/>
|
||||
<source>neu laden</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="115"/>
|
||||
<source>stoppen</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="130"/>
|
||||
<source>zurückkehren</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="148"/>
|
||||
<source>weitergehen</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="163"/>
|
||||
<source>Startseite</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="174"/>
|
||||
<source>&New Browser</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="177"/>
|
||||
<source>New Browser Window</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="180"/>
|
||||
<source>Ctrl+N</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="185"/>
|
||||
<source>&Close</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="188"/>
|
||||
<source>Ctrl+W</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="193"/>
|
||||
<source>&Proxy...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.ui" line="196"/>
|
||||
<source>Ctrl+P</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="364"/>
|
||||
<source>The connection to the proxy server was refused (the proxy server is not accepting requests).</source>
|
||||
<oldsource>the connection to the proxy timed out or the proxy did not reply in time to the request sent</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="376"/>
|
||||
<source>The proxy requires authentication in order to honour the request but did not accept any credentials offered (if any).</source>
|
||||
<oldsource>the Network Access API cannot honor the request because the protocol is not known</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="434"/>
|
||||
<source>Checking: %1</source>
|
||||
<oldsource>Opening: %1</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="464"/>
|
||||
<source>Reading: %1</source>
|
||||
<oldsource>Reading: %1%</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="477"/>
|
||||
<location filename="browser.hxx" line="498"/>
|
||||
<source><h2>%1</h2><p>%2</p></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="478"/>
|
||||
<source>Reply Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="936"/>
|
||||
<source>Network Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="506"/>
|
||||
<source>Zoom: %1%</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="532"/>
|
||||
<source>%1 - SwissSurfer</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="561"/>
|
||||
<source><html><title>Page Load Error</title><body><h1>Page Load Error</h1>%1</body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="905"/>
|
||||
<location filename="browser.hxx" line="925"/>
|
||||
<location filename="browser.hxx" line="935"/>
|
||||
<source><h2>%1</h2><p>URL: %3</p><p>%2</p></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="955"/>
|
||||
<source><h2>%1</h2><p>URL: %4</p><p>%2</p><h3>SSL Errors</h3><p><ul>%3</ul></p></source>
|
||||
<oldsource><h2>%1</h2><p>URL: %3</p><p>%2</p><h3>SSL Errors</h3><p><ul>%3</ul></p></oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="906"/>
|
||||
<source>Unsuported Content</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="65"/>
|
||||
<source>access to URL %1 not allowed</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="344"/>
|
||||
<source>Network connection successful, remote host can be reached.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="347"/>
|
||||
<source>The remote server refused the connection (the server is not accepting requests).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="350"/>
|
||||
<source>The remote server closed the connection prematurely, before the entire reply was received and processed.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="353"/>
|
||||
<source>The remote host name was not found (invalid hostname).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="355"/>
|
||||
<source>The connection to the remote server timed out.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="357"/>
|
||||
<source>The operation was canceled via calls to abort() or close() before it was finished.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="360"/>
|
||||
<source>The SSL/TLS handshake failed and the encrypted channel could not be established. The sslErrors() signal should have been emitted.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="367"/>
|
||||
<source>The proxy server closed the connection prematurely, before the entire reply was received and processed.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="370"/>
|
||||
<source>The proxy host name was not found (invalid proxy hostname).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="373"/>
|
||||
<source>The connection to the proxy timed out or the proxy did not reply in time to the request sent.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="380"/>
|
||||
<source>The access to the remote content was denied (similar to HTTP error 401).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="383"/>
|
||||
<source>The operation requested on the remote content is not permitted.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="386"/>
|
||||
<source>The remote content was not found at the server (similar to HTTP error 404).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="389"/>
|
||||
<source>The remote server requires authentication to serve the content but the credentials provided were not accepted (if any).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="393"/>
|
||||
<source>The Network Access API cannot honor the request because the protocol is not known.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="396"/>
|
||||
<source>The requested operation is invalid for this protocol.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="398"/>
|
||||
<source>An unknown network-related error was detected.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="400"/>
|
||||
<source>An unknown proxy-related error was detected.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="402"/>
|
||||
<source>An unknonwn error related to the remote content was detected.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="405"/>
|
||||
<source>A breakdown in protocol was detected (parsing error, invalid or unexpected responses, etc.).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="408"/>
|
||||
<source><strong>Unknown network error (code: %1).</string></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="466"/>
|
||||
<source>Illegal URL: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="476"/>
|
||||
<source>network error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="486"/>
|
||||
<location filename="browser.hxx" line="497"/>
|
||||
<source>proxy error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="487"/>
|
||||
<source><h2>%1</h2><p>Proxy: %3</p><p>%2</p><p>%4</p></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="488"/>
|
||||
<source>Possible Proxy Failed</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="499"/>
|
||||
<source>Connection Cannot Be Established</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="538"/>
|
||||
<source>Info: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="566"/>
|
||||
<source>download error</source>
|
||||
<oldsource>donload error</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="568"/>
|
||||
<source>done.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="842"/>
|
||||
<source>%1</source>
|
||||
<comment>statusbar for hovered link %1=url</comment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="904"/>
|
||||
<source>unsupported content</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="438"/>
|
||||
<source>Forbidden: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="439"/>
|
||||
<source>Access Denied</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="440"/>
|
||||
<source><p>Access denied due to security considerations.</p><p>You are not allowed to connect to %1.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="924"/>
|
||||
<source>authentication required</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="926"/>
|
||||
<source>Authentication Required</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="950"/>
|
||||
<source>ssl error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="954"/>
|
||||
<source><li>%1</li></source>
|
||||
<comment>single ssl error</comment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="browser.hxx" line="958"/>
|
||||
<source>SSL Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="main.cxx" line="200"/>
|
||||
<source>Usage: %1 [OPTIONS...] [<url> ...]
|
||||
Options:
|
||||
-h, --help show this help text
|
||||
-k, --kiosk no url bar
|
||||
-p, --no-proxy no proxy detection
|
||||
-c, --cert <file> load local client certificate from <file>
|
||||
-y, --key <file> load local certificate key from <file>
|
||||
<url> optional full URL
|
||||
Environment:
|
||||
LANGUAGE "de", "en", ... (actual: %5)
|
||||
PROXY_TYPE "http" or "socks" or "" (actual: %2)
|
||||
PROXY_PORT proxy port number (actual: %3)
|
||||
PROXY_HOST proxy host name (actual: %4)
|
||||
</source>
|
||||
<oldsource>Usage: %1 [OPTIONS...] [<url> ...]
|
||||
Options:
|
||||
-h, --help show this help text
|
||||
-k, --kiosk no url bar
|
||||
-p, --no-proxy no proxy detection
|
||||
-c, --cert <file> load local client certificate from <file>
|
||||
<url> optional full URL
|
||||
Environment:
|
||||
LANGUAGE "de", "en", ... (actual: %5)
|
||||
PROXY_TYPE "http" or "socks" or "" (actual: %2)
|
||||
PROXY_PORT proxy port number (actual: %3)
|
||||
PROXY_HOST proxy host name (actual: %4)
|
||||
</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="229"/>
|
||||
<source>Cannot read PEM certificate from file: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="235"/>
|
||||
<source>Read PEM certificates from file: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="242"/>
|
||||
<source>Cannot read PEM RSA key from file: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="247"/>
|
||||
<source>Read private key from file: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="252"/>
|
||||
<source>Too few arguments.
|
||||
Try: %1 --help</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cxx" line="258"/>
|
||||
<source>http://swisssign.com</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
Reference in New Issue
Block a user