mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 00:33:09 -07:00
Support Right to left languages
This commit is contained in:
parent
0bbeab9ad2
commit
98ec373f8c
1 changed files with 8 additions and 0 deletions
|
@ -231,6 +231,14 @@ int main(int argc, char *argv[]){
|
||||||
qDebug("%s locale unrecognized, using default (en_GB).", qPrintable(locale));
|
qDebug("%s locale unrecognized, using default (en_GB).", qPrintable(locale));
|
||||||
}
|
}
|
||||||
app->installTranslator(&translator);
|
app->installTranslator(&translator);
|
||||||
|
#ifndef DISABLE_GUI
|
||||||
|
if(locale.startsWith("ar")) {
|
||||||
|
qDebug("Right to Left mode");
|
||||||
|
app->setLayoutDirection(Qt::RightToLeft);
|
||||||
|
} else {
|
||||||
|
app->setLayoutDirection(Qt::LeftToRight);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
app->setApplicationName(QString::fromUtf8("qBittorrent"));
|
app->setApplicationName(QString::fromUtf8("qBittorrent"));
|
||||||
|
|
||||||
// Check for executable parameters
|
// Check for executable parameters
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue