1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Make 'None' and 'Desktop' camera device names translatable

fixes #2252
This commit is contained in:
Zetok Zalbavar 2015-09-18 09:26:58 +01:00
parent 0d45c2fcbe
commit 6998c2c757
No known key found for this signature in database
GPG Key ID: C953D3880212068A

View File

@ -250,7 +250,7 @@ QVector<QPair<QString, QString>> CameraDevice::getDeviceList()
{
QVector<QPair<QString, QString>> devices;
devices.append({"none", "None"});
devices.append({"none", QObject::tr("None", "No camera device set")});
if (!getDefaultInputFormat())
return devices;
@ -266,9 +266,9 @@ QVector<QPair<QString, QString>> CameraDevice::getDeviceList()
if (idesktopFormat)
{
if (idesktopFormat->name == QString("x11grab"))
devices.push_back(QPair<QString,QString>{"x11grab#:0", "Desktop"});
devices.push_back(QPair<QString,QString>{"x11grab#:0", QObject::tr("Desktop", "Desktop as a camera input for screen sharing")});
if (idesktopFormat->name == QString("gdigrab"))
devices.push_back(QPair<QString,QString>{"gdigrab#desktop", "Desktop"});
devices.push_back(QPair<QString,QString>{"gdigrab#desktop", QObject::tr("Desktop", "Desktop as a camera input for screen sharing")});
}
return devices;