mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
WIP: rework of localized strings, instead of generic LocStr, LocStr is now a struct which contains both the key, and the values which should be put into the value's placeholders. strs' properties are now methods which take values as arguments, and properties if they don't
This commit is contained in:
@@ -377,14 +377,9 @@ namespace NadekoBot.Extensions
|
||||
return msg.Content.Headers.ContentLength / 1.MB();
|
||||
}
|
||||
|
||||
public static string GetText(this IBotStrings strings, LocStr0 str, ulong? guildId = null)
|
||||
public static string GetText(this IBotStrings strings, in LocStr str, ulong? guildId = null)
|
||||
=> strings.GetText(str.Key, guildId);
|
||||
public static string GetText(this IBotStrings strings, LocStr0 str, CultureInfo culture)
|
||||
=> strings.GetText(str.Key, culture);
|
||||
|
||||
public static string GetText(this IBotStrings strings, LocStr0 str, ulong? guildId = null)
|
||||
=> strings.GetText(str.Key, guildId);
|
||||
public static string GetText(this IBotStrings strings, LocStr0 str, CultureInfo culture)
|
||||
=> strings.GetText(str.Key, culture);
|
||||
public static string GetText(this IBotStrings strings, in LocStr str, CultureInfo culture)
|
||||
=> strings.GetText(str.Key, culture, str.Parms);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user