Table of Contents

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

resources ResourceManager

The 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

key string

The key. A key with a context is context + '\u0004' + key, as gettext stores it.

culture CultureInfo

The language to localize into.

Returns

string

The string, or null when this localizer has none: the caller decides what to show. Implementations try culture's parents (ru-RU, then ru) when their source supports it.