Cleans up comments for localization (#260)

This commit is contained in:
Kamron Batman 2020-09-20 12:48:10 -07:00 • committed by GitHub
parent fd9ec089f7
commit 13e2693b59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
52 changed files with 751 additions and 798 deletions

View file

@ -51,13 +51,13 @@ namespace Server.Engines.Chat
if (value)
{
SendMessage(
56
); // From now on, only moderators will have speaking privileges in this conference by default.
// From now on, only moderators will have speaking privileges in this conference by default.
SendMessage(56);
}
else
{
SendMessage(55); // From now on, everyone in the conference will have speaking privileges by default.
// From now on, everyone in the conference will have speaking privileges by default.
SendMessage(55);
}
}
}
@ -207,17 +207,13 @@ namespace Server.Engines.Chat
{
if (wasBanned)
{
user.SendMessage(
63,
moderator.Username
); // %1, a conference moderator, has banned you from the conference.
// %1, a conference moderator, has banned you from the conference.
user.SendMessage(63, moderator.Username);
}
else
{
user.SendMessage(
45,
moderator.Username
); // %1, a conference moderator, has kicked you out of the conference.
// %1, a conference moderator, has kicked you out of the conference.
user.SendMessage(45, moderator.Username);
}
}
@ -250,11 +246,8 @@ namespace Server.Engines.Chat
if (moderator != null)
{
user.SendMessage(
54,
moderator
.Username
); // %1, a conference moderator, has granted you speaking privileges in this conference.
// %1, a conference moderator, has granted you speaking privileges in this conference.
user.SendMessage(54, moderator.Username);
}
SendMessage(52, user, user.Username); // %1 now has speaking privileges in this conference.
@ -275,11 +268,8 @@ namespace Server.Engines.Chat
if (moderator != null)
{
user.SendMessage(
53,
moderator
.Username
); // %1, a conference moderator, has removed your speaking privileges for this conference.
// %1, a conference moderator, has removed your speaking privileges for this conference.
user.SendMessage(53, moderator.Username);
}
SendMessage(51, user, user.Username); // %1 no longer has speaking privileges in this conference.

View file

@ -98,10 +98,8 @@ namespace Server.Engines.Chat
if (target.IsIgnored(from))
{
from.SendMessage(
35,
target.Username
); // %1 has chosen to ignore you. None of your messages to them will get through.
// %1 has chosen to ignore you. None of your messages to them will get through.
from.SendMessage(35, target.Username);
}
else if (target.IgnorePrivateMessage)
{
@ -109,7 +107,8 @@ namespace Server.Engines.Chat
}
else
{
target.SendMessage(59, from.Mobile, from.GetColorCharacter() + from.Username, text); // [%1]: %2
// [%1]: %2
target.SendMessage(59, from.Mobile, $"{from.GetColorCharacter()}{from.Username}", text);
}
}
@ -148,17 +147,17 @@ namespace Server.Engines.Chat
public static void ShowCharacterName(ChatUser from, Channel channel, string param)
{
from.Anonymous = false;
from.SendMessage(
39
); // You are now showing your character name to any players who inquire with the whois command.
// You are now showing your character name to any players who inquire with the whois command.
from.SendMessage(39);
}
public static void HideCharacterName(ChatUser from, Channel channel, string param)
{
from.Anonymous = true;
from.SendMessage(
40
); // You are no longer showing your character name to any players who inquire with the whois command.
// You are no longer showing your character name to any players who inquire with the whois command.
from.SendMessage(40);
}
public static void ToggleCharacterName(ChatUser from, Channel channel, string param)