From e170d9c3a8bcf8e73f250b4e8d21f870d505fc6c Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 14 Jan 2011 18:57:15 +0000 Subject: [PATCH] Improve Web Ui translation --- src/iconprovider.cpp | 3 --- src/preferences/options.ui | 2 +- src/webui/html/confirmdeletion.html | 2 +- src/webui/html/index.html | 12 ++++++------ src/webui/html/preferences_content.html | 4 ++-- src/webui/html/prop-general.html | 2 +- src/webui/html/properties.html | 4 ++-- src/webui/httpconnection.cpp | 4 ++-- src/webui/httpserver.cpp | 2 +- 9 files changed, 16 insertions(+), 19 deletions(-) diff --git a/src/iconprovider.cpp b/src/iconprovider.cpp index 83ecb7922..3954c843a 100644 --- a/src/iconprovider.cpp +++ b/src/iconprovider.cpp @@ -90,14 +90,11 @@ QIcon IconProvider::generateDifferentSizes(const QIcon &icon) if(pixoff.height() > size.height()) pixoff = pixoff.scaled(size, Qt::KeepAspectRatio, Qt::SmoothTransformation); new_icon.addPixmap(pixoff, mode, QIcon::Off); - Q_ASSERT(pixoff.height() <= size.height()); QPixmap pixon = icon.pixmap(size, mode, QIcon::On); if(pixon.height() > size.height()) pixon = pixoff.scaled(size, Qt::KeepAspectRatio, Qt::SmoothTransformation); new_icon.addPixmap(pixon, mode, QIcon::On); - Q_ASSERT(pixon.height() <= size.height()); } - Q_ASSERT(new_icon.availableSizes().contains(size)); } return new_icon; } diff --git a/src/preferences/options.ui b/src/preferences/options.ui index e9ae2e68c..8c838d546 100644 --- a/src/preferences/options.ui +++ b/src/preferences/options.ui @@ -923,7 +923,7 @@ QGroupBox { 0 - -51 + 0 506 457 diff --git a/src/webui/html/confirmdeletion.html b/src/webui/html/confirmdeletion.html index e44da102c..15af4e30b 100644 --- a/src/webui/html/confirmdeletion.html +++ b/src/webui/html/confirmdeletion.html @@ -67,7 +67,7 @@ window.addEvent('domready', function(){

_(Are you sure you want to delete the selected torrents from the transfer list?)

     _(Also delete the files on the hard disk)

-      +     
diff --git a/src/webui/html/index.html b/src/webui/html/index.html index b6e4affdd..bc9c8e61a 100644 --- a/src/webui/html/index.html +++ b/src/webui/html/index.html @@ -35,17 +35,17 @@
  • _(File)
  • _(Edit)
  • -
  • _(Limit download rate)
  • -
  • _(Limit upload rate)
  • +
  • _(Limit download rate...)
  • +
  • _(Limit upload rate...)
  • _(Force recheck)
  • diff --git a/src/webui/html/preferences_content.html b/src/webui/html/preferences_content.html index 7372c1903..88b38478a 100644 --- a/src/webui/html/preferences_content.html +++ b/src/webui/html/preferences_content.html @@ -52,7 +52,7 @@ _(Enable DHT (decentralized network) to find more peers) - _(Use a different port for DHT and Bittorrent) + _(Use a different port for DHT and BitTorrent) _(DHT port:) @@ -260,7 +260,7 @@

    -
    +