mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
- Updated translatable string regex to support ':' in it
This commit is contained in:
@@ -107,7 +107,7 @@ QString HttpConnection::translateDocument(QString data) {
|
|||||||
bool found = false;
|
bool found = false;
|
||||||
do {
|
do {
|
||||||
found = false;
|
found = false;
|
||||||
QRegExp regex("_\\(([\\w\\s?!\\.]+)\\)");
|
QRegExp regex("_\\(([\\w\\s?!:\\.]+)\\)");
|
||||||
i = regex.indexIn(data, i);
|
i = regex.indexIn(data, i);
|
||||||
if(i >= 0) {
|
if(i >= 0) {
|
||||||
//qDebug("Found translatable string: %s", regex.cap(1).toUtf8().data());
|
//qDebug("Found translatable string: %s", regex.cap(1).toUtf8().data());
|
||||||
|
|||||||
Reference in New Issue
Block a user