Working more on translations, fixing tree bugs

This commit is contained in:
Vladislav Khorev committed 2026-07-07 19:03:58 +03:00
1 parent e7dc3279ae
commit cdaebc3c0c
23 files changed
+542 -487

No files matched your search

+23 -1
View File
@@ -402,8 +402,30 @@ namespace ZL {
std::cerr << "[script] set_chat_unread: callback not wired\n";
return;
}
const std::string msg = previewMsg.is<std::string>()
std::string msg = previewMsg.is<std::string>()
? previewMsg.as<std::string>() : "";
//Some translations:
//See start_uni_interior.lua for more details
//CONST_MSG_EMPTY = "(пусто)"
//CONST_MSG_WHERE = "Бекзат, ты где? Я жду..."
if (msg == "(пусто)")
{
if (g_currentLanguage == Language::English)
{
msg = "(empty)";
}
}
else if (msg == "Бекзат, ты где? Я жду...")
{
if (g_currentLanguage == Language::English)
{
msg = "Bekzat, where are you? ...";
}
}
loc->requestSetChatUnread(chatIndex, unread, msg);
});