mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 03:42:56 +00:00
Start cloud langpack support.
Change the way langpacks are stored. Support custom langpacks in the new storage.
This commit is contained in:
@@ -322,16 +322,6 @@ void psActivateProcess(uint64 pid) {
|
||||
}
|
||||
}
|
||||
|
||||
QString psCurrentCountry() {
|
||||
QString country = objc_currentCountry();
|
||||
return country.isEmpty() ? QString::fromLatin1(DefaultCountry) : country;
|
||||
}
|
||||
|
||||
QString psCurrentLanguage() {
|
||||
QString lng = objc_currentLang();
|
||||
return lng.isEmpty() ? QString::fromLatin1(DefaultLanguage) : lng;
|
||||
}
|
||||
|
||||
QString psAppDataPath() {
|
||||
return objc_appDataPath();
|
||||
}
|
||||
@@ -404,6 +394,15 @@ void StartTranslucentPaint(QPainter &p, QPaintEvent *e) {
|
||||
#endif // OS_MAC_OLD
|
||||
}
|
||||
|
||||
QString SystemCountry() {
|
||||
QString country = objc_currentCountry();
|
||||
return country.isEmpty() ? QString::fromLatin1(DefaultCountry) : country;
|
||||
}
|
||||
|
||||
QString SystemLanguage() {
|
||||
return objc_currentLang();
|
||||
}
|
||||
|
||||
} // namespace Platform
|
||||
|
||||
void psNewVersion() {
|
||||
|
||||
Reference in New Issue
Block a user