diff --git a/src/webui/webapplication.cpp b/src/webui/webapplication.cpp index 0eb163a4f..67ce61421 100644 --- a/src/webui/webapplication.cpp +++ b/src/webui/webapplication.cpp @@ -187,7 +187,7 @@ QString WebApplication::generateSid() void WebApplication::translateDocument(QString& data) { - const QRegExp regex(QString::fromUtf8("_\\(([\\w\\s?!:\\/\\(\\),%µ&\\-\\.]+)\\)")); + const QRegExp regex("QBT_TR\\((([^\\)]|\\)(?!QBT_TR))+)\\)QBT_TR"); const QRegExp mnemonic("\\(?&([a-zA-Z]?\\))?"); const std::string contexts[] = { "TransferListFiltersWidget", "TransferListWidget", "PropertiesWidget", diff --git a/src/webui/www/private/index.html b/src/webui/www/private/index.html index 60d4fd10a..e60fa79e5 100644 --- a/src/webui/www/private/index.html +++ b/src/webui/www/private/index.html @@ -3,7 +3,7 @@
-_(Are you sure you want to delete the selected torrents from the transfer list?)
-QBT_TR(Are you sure you want to delete the selected torrents from the transfer list?)QBT_TR
+_(Only one link per line)
- +QBT_TR(Only one link per line)QBT_TR
+- _(Upload:) + QBT_TR(Upload:)QBT_TR | -_(KiB/s) | +QBT_TR(KiB/s)QBT_TR |
- _(Download:) + QBT_TR(Download:)QBT_TR | -_(KiB/s) | +QBT_TR(KiB/s)QBT_TR |
_(Watched Folder) | _(Download here) |
---|---|
QBT_TR(Watched Folder)QBT_TR | QBT_TR(Download here)QBT_TR |