ZaStoGram_desktop/Telegram/SourceFiles/platform/platform_system_intl.h
John Preston 773507d052 Answer widget Intl from Windows' own ICU where it loads
Task: 2026/10/21/answer-widget-intl-from-windows-icu-where-it-loads
2026-11-05 17:12:54 +04:00

32 lines
674 B
C++

/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
namespace twidget {
class IntlProvider;
} // namespace twidget
namespace Platform {
[[nodiscard]] std::shared_ptr<twidget::IntlProvider> CreateSystemIntl(
const QString &fallbackLocale);
} // namespace Platform
#ifndef Q_OS_WIN
namespace Platform {
inline std::shared_ptr<twidget::IntlProvider> CreateSystemIntl(
const QString &fallbackLocale) {
return nullptr;
}
} // namespace Platform
#endif // !Q_OS_WIN