1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 14:57:52 +00:00

- Updated translatable string regex to support ':' in it

This commit is contained in:
Christophe Dumez 2009-11-23 14:27:56 +00:00
parent cb27d530c0
commit cad6228ae0

View File

@ -107,7 +107,7 @@ QString HttpConnection::translateDocument(QString data) {
bool found = false;
do {
found = false;
QRegExp regex("_\\(([\\w\\s?!\\.]+)\\)");
QRegExp regex("_\\(([\\w\\s?!:\\.]+)\\)");
i = regex.indexIn(data, i);
if(i >= 0) {
//qDebug("Found translatable string: %s", regex.cap(1).toUtf8().data());