mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-11 01:10:13 +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 <QLocale>
|
||||
|
||||
namespace Platform {
|
||||
|
||||
QString DeviceModelPretty() {
|
||||
@ -25,11 +27,13 @@ QString SystemVersionPretty() {
|
||||
}
|
||||
|
||||
QString SystemCountry() {
|
||||
return QString();
|
||||
QLocale locale;
|
||||
return locale.name().split('_').last();
|
||||
}
|
||||
|
||||
QString SystemLanguage() {
|
||||
return QString();
|
||||
QLocale locale;
|
||||
return locale.name().split('_').first();
|
||||
}
|
||||
|
||||
QDate WhenSystemBecomesOutdated() {
|
||||
|
Loading…
Reference in New Issue
Block a user