mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-26 17:25:12 +00:00
Get language name and country name from QLocale (Linux)
This commit is contained in:
parent
0c3773486e
commit
9276101809
@ -7,6 +7,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
*/
|
*/
|
||||||
#include "platform/linux/info_linux.h"
|
#include "platform/linux/info_linux.h"
|
||||||
|
|
||||||
|
#include <QLocale>
|
||||||
|
|
||||||
namespace Platform {
|
namespace Platform {
|
||||||
|
|
||||||
QString DeviceModelPretty() {
|
QString DeviceModelPretty() {
|
||||||
@ -25,11 +27,13 @@ QString SystemVersionPretty() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString SystemCountry() {
|
QString SystemCountry() {
|
||||||
return QString();
|
QLocale locale;
|
||||||
|
return locale.name().split('_').last();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString SystemLanguage() {
|
QString SystemLanguage() {
|
||||||
return QString();
|
QLocale locale;
|
||||||
|
return locale.name().split('_').first();
|
||||||
}
|
}
|
||||||
|
|
||||||
QDate WhenSystemBecomesOutdated() {
|
QDate WhenSystemBecomesOutdated() {
|
||||||
|
Loading…
Reference in New Issue
Block a user