mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	fixme & seconds in time (more usual)
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -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}); | ||||
|  | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user