Class ResourceManagerLocalizer
- Namespace
- Icy.Localization
- Assembly
- IcyUI.dll
Localized strings from .NET resources (.resx files compiled into the game and its satellite assemblies).
public sealed class ResourceManagerLocalizer : ILocalizer
- Inheritance
-
ResourceManagerLocalizer
- Implements
- Inherited Members
- Extension Methods
Remarks
ResourceManager already falls back from ru-RU to ru to the neutral resources. The
strings ship inside the build; use PoLocalizer for files players or modders can edit.
Constructors
ResourceManagerLocalizer(ResourceManager)
Localized strings from .NET resources (.resx files compiled into the game and its satellite assemblies).
public ResourceManagerLocalizer(ResourceManager resources)
Parameters
resourcesResourceManagerThe resources, such as a generated
Strings.ResourceManager.
Remarks
ResourceManager already falls back from ru-RU to ru to the neutral resources. The
strings ship inside the build; use PoLocalizer for files players or modders can edit.
Methods
Localize(string, CultureInfo)
Gets the string for key in culture.
public string? Localize(string key, CultureInfo culture)
Parameters
keystringThe key. A key with a context is
context + '\u0004' + key, as gettext stores it.cultureCultureInfoThe language to localize into.