1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00

fixme & seconds in time (more usual)

This commit is contained in:
Laserlicht 2024-12-01 19:00:24 +01:00
parent 6af8b62dfd
commit 81328e2588
3 changed files with 3 additions and 2 deletions

View File

@ -166,6 +166,7 @@
"vcmi.lobby.login.create" : "New Account",
"vcmi.lobby.login.login" : "Login",
"vcmi.lobby.login.as" : "Login as %s",
"vcmi.lobby.login.spectator" : "Spectator",
"vcmi.lobby.header.rooms" : "Game Rooms - %d",
"vcmi.lobby.header.channels" : "Chat Channels",
"vcmi.lobby.header.chat.global" : "Global Game Chat - %s", // %s -> language name

View File

@ -93,7 +93,7 @@ void GameChatHandler::onNewGameMessageReceived(PlayerColor sender, const std::st
playerName = LOCPLINT->cb->getStartInfo()->playerInfos.at(sender).name;
if (sender.isSpectator())
playerName = "Spectator"; // FIXME: translate? Provide nickname somewhere?
playerName = VLC->generaltexth->translate("vcmi.lobby.login.spectator");
chatHistory.push_back({playerName, messageText, timeFormatted});

View File

@ -221,7 +221,7 @@ std::string TextOperations::getFormattedDateTimeLocal(std::time_t dt)
std::string TextOperations::getFormattedTimeLocal(std::time_t dt)
{
return vstd::getFormattedDateTime(dt, "%H:%M");
return vstd::getFormattedDateTime(dt, "%H:%M:%S");
}
std::string TextOperations::getCurrentFormattedTimeLocal(std::chrono::seconds timeOffset)