mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-01-31 00:19:00 +03:00
Rename locale Sound to Loaded for clarity (#270)
If you go through the locales, sooner or later you will notice `Sound*`, which is used in `GuildLoadedResponder.cs`. A new contributor (most likely) will not understand what it is used for at once, because we use `$"Loaded{i}".Localized()` instead of `Messages.Sound*` directly. Also, if you change the locale's value, for example the same "Loaded!", `Sound` will not fit anymore, because "Loaded!" is not a sound, but a phrase. Other suggestions are welcome. Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
parent
1894b063ae
commit
771750c922
5 changed files with 16 additions and 16 deletions
|
@ -117,13 +117,13 @@
|
|||
<data name="DefaultWelcomeMessage" xml:space="preserve">
|
||||
<value>{0}, welcome to {1}</value>
|
||||
</data>
|
||||
<data name="Sound1" xml:space="preserve">
|
||||
<data name="Loaded1" xml:space="preserve">
|
||||
<value>Veemo!</value>
|
||||
</data>
|
||||
<data name="Sound2" xml:space="preserve">
|
||||
<data name="Loaded2" xml:space="preserve">
|
||||
<value>Woomy!</value>
|
||||
</data>
|
||||
<data name="Sound3" xml:space="preserve">
|
||||
<data name="Loaded3" xml:space="preserve">
|
||||
<value>Ngyes!</value>
|
||||
</data>
|
||||
<data name="YouWereBanned" xml:space="preserve">
|
||||
|
|
|
@ -117,13 +117,13 @@
|
|||
<data name="DefaultWelcomeMessage" xml:space="preserve">
|
||||
<value>{0}, добро пожаловать на сервер {1}</value>
|
||||
</data>
|
||||
<data name="Sound1" xml:space="preserve">
|
||||
<data name="Loaded1" xml:space="preserve">
|
||||
<value>Виимо!</value>
|
||||
</data>
|
||||
<data name="Sound2" xml:space="preserve">
|
||||
<data name="Loaded2" xml:space="preserve">
|
||||
<value>Вууми!</value>
|
||||
</data>
|
||||
<data name="Sound3" xml:space="preserve">
|
||||
<data name="Loaded3" xml:space="preserve">
|
||||
<value>Нгьес!</value>
|
||||
</data>
|
||||
<data name="PunishmentExpired" xml:space="preserve">
|
||||
|
|
|
@ -117,13 +117,13 @@
|
|||
<data name="DefaultWelcomeMessage" xml:space="preserve">
|
||||
<value>{0}, добро пожаловать на сервер {1}</value>
|
||||
</data>
|
||||
<data name="Sound1" xml:space="preserve">
|
||||
<data name="Loaded1" xml:space="preserve">
|
||||
<value>вииимо!</value>
|
||||
</data>
|
||||
<data name="Sound2" xml:space="preserve">
|
||||
<data name="Loaded2" xml:space="preserve">
|
||||
<value>вуууми!</value>
|
||||
</data>
|
||||
<data name="Sound3" xml:space="preserve">
|
||||
<data name="Loaded3" xml:space="preserve">
|
||||
<value>нгьес!</value>
|
||||
</data>
|
||||
<data name="YouWereBanned" xml:space="preserve">
|
||||
|
|
12
src/Messages.Designer.cs
generated
12
src/Messages.Designer.cs
generated
|
@ -66,21 +66,21 @@ namespace Octobot {
|
|||
}
|
||||
}
|
||||
|
||||
internal static string Sound1 {
|
||||
internal static string Loaded1 {
|
||||
get {
|
||||
return ResourceManager.GetString("Sound1", resourceCulture);
|
||||
return ResourceManager.GetString("Loaded1", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
internal static string Sound2 {
|
||||
internal static string Loaded2 {
|
||||
get {
|
||||
return ResourceManager.GetString("Sound2", resourceCulture);
|
||||
return ResourceManager.GetString("Loaded2", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
internal static string Sound3 {
|
||||
internal static string Loaded3 {
|
||||
get {
|
||||
return ResourceManager.GetString("Sound3", resourceCulture);
|
||||
return ResourceManager.GetString("Loaded3", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -88,7 +88,7 @@ public class GuildLoadedResponder : IResponder<IGuildCreate>
|
|||
var i = Random.Shared.Next(1, 4);
|
||||
|
||||
var embed = new EmbedBuilder().WithSmallTitle(bot.GetTag(), bot)
|
||||
.WithTitle($"Sound{i}".Localized())
|
||||
.WithTitle($"Loaded{i}".Localized())
|
||||
.WithDescription(Messages.Ready)
|
||||
.WithCurrentTimestamp()
|
||||
.WithColour(ColorsList.Blue)
|
||||
|
|
Loading…
Reference in a new issue