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:
parent
6af8b62dfd
commit
81328e2588
@ -166,6 +166,7 @@
|
|||||||
"vcmi.lobby.login.create" : "New Account",
|
"vcmi.lobby.login.create" : "New Account",
|
||||||
"vcmi.lobby.login.login" : "Login",
|
"vcmi.lobby.login.login" : "Login",
|
||||||
"vcmi.lobby.login.as" : "Login as %s",
|
"vcmi.lobby.login.as" : "Login as %s",
|
||||||
|
"vcmi.lobby.login.spectator" : "Spectator",
|
||||||
"vcmi.lobby.header.rooms" : "Game Rooms - %d",
|
"vcmi.lobby.header.rooms" : "Game Rooms - %d",
|
||||||
"vcmi.lobby.header.channels" : "Chat Channels",
|
"vcmi.lobby.header.channels" : "Chat Channels",
|
||||||
"vcmi.lobby.header.chat.global" : "Global Game Chat - %s", // %s -> language name
|
"vcmi.lobby.header.chat.global" : "Global Game Chat - %s", // %s -> language name
|
||||||
|
@ -93,7 +93,7 @@ void GameChatHandler::onNewGameMessageReceived(PlayerColor sender, const std::st
|
|||||||
playerName = LOCPLINT->cb->getStartInfo()->playerInfos.at(sender).name;
|
playerName = LOCPLINT->cb->getStartInfo()->playerInfos.at(sender).name;
|
||||||
|
|
||||||
if (sender.isSpectator())
|
if (sender.isSpectator())
|
||||||
playerName = "Spectator"; // FIXME: translate? Provide nickname somewhere?
|
playerName = VLC->generaltexth->translate("vcmi.lobby.login.spectator");
|
||||||
|
|
||||||
chatHistory.push_back({playerName, messageText, timeFormatted});
|
chatHistory.push_back({playerName, messageText, timeFormatted});
|
||||||
|
|
||||||
|
@ -221,7 +221,7 @@ std::string TextOperations::getFormattedDateTimeLocal(std::time_t dt)
|
|||||||
|
|
||||||
std::string TextOperations::getFormattedTimeLocal(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)
|
std::string TextOperations::getCurrentFormattedTimeLocal(std::chrono::seconds timeOffset)
|
||||||
|
Loading…
Reference in New Issue
Block a user