2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-27 04:47:10 +00:00

27 lines
691 B
C
Raw Normal View History

2023-01-30 14:10:42 +04:00
/*
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
struct LanguageId;
namespace Ui {
class GenericBox;
[[nodiscard]] QString LanguageNameTranslated(const QString &twoLetterCode);
[[nodiscard]] QString LanguageName(LanguageId id);
[[nodiscard]] QString LanguageNameNative(LanguageId id);
void ChooseLanguageBox(
not_null<GenericBox*> box,
rpl::producer<QString> title,
Fn<void(std::vector<LanguageId>)> callback,
std::optional<std::vector<LanguageId>> toggled);
} // namespace Ui