mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 16:53:08 -07:00
WebUI: Improve translation macro.
Now we use QBT_TR(translatable string)QBT_TR.
This commit is contained in:
parent
f43d8f1139
commit
d80a14a2e1
21 changed files with 272 additions and 272 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue