Skip to content

Commit e41bb9e

Browse files
committed
Fix localization method usage for no game prompts
1 parent 46621c1 commit e41bb9e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

DXMainClient/DXGUI/Multiplayer/CnCNet/CnCNetLobby.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,9 +1511,9 @@ private void GameBroadcastChannel_CTCPReceived(object sender, ChannelCTCPEventAr
15111511
// Remind users that the network is good but the client is outdated or newer
15121512
if (lbGameList.Items.Count == 0)
15131513
{
1514-
string message = "There are no games listed but you are indeed connected. The client did receive a game message but can't add it to the list because the message is invalid. " +
1514+
string message = ("There are no games listed but you are indeed connected. The client did receive a game message but can't add it to the list because the message is invalid. " +
15151515
"You can ignore this prompt if there are games listed later. " +
1516-
"Otherwise, this usually means that your client is outdated, or, in a rare case, newer than others. Please check for updates.".L10N("Client:Main:InvalidGameMessage");
1516+
"Otherwise, this usually means that your client is outdated, or, in a rare case, newer than others. Please check for updates.").L10N("Client:Main:InvalidGameMessage");
15171517

15181518
if ((lbChatMessages.Items.LastOrDefault()?.Tag as ChatMessage)?.Message != message)
15191519
{
@@ -1565,8 +1565,8 @@ private void GameBroadcastChannel_CTCPReceived(object sender, ChannelCTCPEventAr
15651565
// Remind users that the game is ignored because of no tunnel
15661566
if (lbGameList.Items.Count == 0)
15671567
{
1568-
string message = "There are no games listed. The client did receive a valid game message but can't add it to the list because there are no available tunnels. " +
1569-
"You can ignore this prompt if there are games listed later. Otherwise, it might indicate a network problem to CnCNet HTTP service.".L10N("Client:Main:NoTunnels");
1568+
string message = ("There are no games listed. The client did receive a valid game message but can't add it to the list because there are no available tunnels. " +
1569+
"You can ignore this prompt if there are games listed later. Otherwise, it might indicate a network problem to CnCNet HTTP service.").L10N("Client:Main:NoTunnels");
15701570

15711571
if ((lbChatMessages.Items.LastOrDefault()?.Tag as ChatMessage)?.Message != message)
15721572
{
@@ -1587,8 +1587,8 @@ private void GameBroadcastChannel_CTCPReceived(object sender, ChannelCTCPEventAr
15871587
// Remind users that the game is ignored because of no specified tunnel
15881588
if (lbGameList.Items.Count == 0)
15891589
{
1590-
string message = string.Format("There are no games listed. The client did receive a valid game message but can't add it to the list because the specified tunnel is not available. " +
1591-
"You can ignore this prompt if there are games listed later. Otherwise, please contact support at {0}.".L10N("Client:Main:NoTunnelForGames"), ClientConfiguration.Instance.LongSupportURL);
1590+
string message = string.Format(("There are no games listed. The client did receive a valid game message but can't add it to the list because the specified tunnel is not available. " +
1591+
"You can ignore this prompt if there are games listed later. Otherwise, please contact support at {0}.").L10N("Client:Main:NoTunnelForGames"), ClientConfiguration.Instance.LongSupportURL);
15921592

15931593
if ((lbChatMessages.Items.LastOrDefault()?.Tag as ChatMessage)?.Message != message)
15941594
{

0 commit comments

Comments
 (0)