Sisyphus repositório
Última atualização: 20 junho 2019 | SRPMs: 17691 | Visitas: 14143288
en ru br
ALT Linux repositórios
S:1.7.7-alt1

Group :: Rede/Mensagens instantâneas
RPM: telegram-desktop

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: 0014-get-language-name-and-country-name-from-QLocale.patch
Download


diff --git a/tdesktop/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/tdesktop/Telegram/SourceFiles/platform/linux/specific_linux.cpp
index 20f20a5..a6dfb7e 100644
--- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp
+++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp
@@ -35,6 +35,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
 
 #include <iostream>
 
+#include <QLocale>
+
 #include <qpa/qplatformnativeinterface.h>
 
 using namespace Platform;
@@ -393,11 +393,13 @@ bool TranslucentWindowsSupported(QPoint globalPosition) {
 }
 
 QString SystemCountry() {
-	return QString();
+	QLocale locale;
+	return QLocale::countryToString(locale.country());
 }
 
 QString SystemLanguage() {
-	return QString();
+	QLocale locale;
+	return locale.name();;
 }
 
 namespace ThirdParty {
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009