Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions framework/languages/internal/languagesservice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <QJsonParseError>
#include <QQmlEngine>
#include <QTranslator>
#include <clocale>

#include "languageserrors.h"

Expand Down Expand Up @@ -211,6 +212,9 @@ void LanguagesService::setCurrentLanguage(const QString& languageCode)
QLocale locale(lang.code);
QLocale::setDefault(locale);
qGuiApp->setLayoutDirection(locale.textDirection());
if (!std::setlocale(LC_TIME, locale.name().toStdString().c_str())) {
LOGW() << "Failed to set LC_TIME locale for language code:" << locale.name();
}

lang.direction = locale.textDirection();

Expand Down
2 changes: 1 addition & 1 deletion framework/rcontrol/mcp/mcpcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void McpController::init()
});

m_mcpServer->onToolsCallRequest([this](const std::string& name,
const JsonObject& args,
const JsonObject& /*args*/,
const McpServer::ToolsCallResultHandler& onResult)
{
LOGDA() << "Tools call: " << name;
Expand Down