mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 15:47:11 +02:00
Get language name and country name from QLocale (Linux)
This commit is contained in:
parent
0c3773486e
commit
9276101809
1 changed files with 6 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue