PluginLang

Namespace: uModPlugins

Assembly: uMod.Core.dll

Inheritance Object PluginLang

Summary

Represents a plugin localization helper class Created with each plugin to simplify Lang provider handling

Constructors

Name

Summary

PluginLang (Plugin)

Create a plugin lang wrapper for the specified plugin

Methods

Name

Summary

GetLangMessage (String, String)

Gets a message using the specified key for the specified language

GetLanguage (String)

Gets the language for the player, fall back to the default server language if no language is set

GetLanguage (IPlayer)

Gets the language for the player, fall back to the default server language if no language is set

GetLanguageFiles (String)

Gets all available language files

GetLanguages (String)

Gets all available languages or only those for a single plugin

GetMessage (String, String)

Gets a message using the specified key for the specified player

GetMessage (String, IPlayer)

Gets a message using the specified key for the specified player

GetMessages (String)

Gets all messages for a plugin in a language

HasLanguage (String, String)

Checks if translations exist for the specified language

RegisterMessages (Dictionary<String, String>, String)

Registers a language set for a plugin

SetLanguage (String, String)

Sets the language preference for the player

SetLanguage (IPlayer, String)

Sets the language preference for the player