2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

[Core] Language system

Telegram Desktop uses static language system with code generation, which
requires almost full app rebuild on any string modification, no matter
how small it is.

Since Kotatogram is options-driven, static language system will slow the
development. This language system solves the problem by using JSON and
runtime string search instead.
This commit is contained in:
RadRussianRus
2022-08-10 01:08:23 +03:00
committed by Eric Kotato
parent 483ba394dc
commit bf16aed6f3
9 changed files with 504 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#include "core/application.h"
#include "kotato/kotato_lang.h"
#include "data/data_abstract_structure.h"
#include "data/data_photo.h"
#include "data/data_document.h"
@@ -254,6 +255,7 @@ void Application::run() {
startLocalStorage();
ValidateScale();
Kotato::Lang::Load(Lang::GetInstance().baseId(), Lang::GetInstance().id());
refreshGlobalProxy(); // Depends on app settings being read.