EasySave v3.0
Loading...
Searching...
No Matches
EasySave.Gui.Services.LocalizationProvider Class Referencesealed

Default implementation of ILocalizationProvider using strongly-typed access to ResX resources embedded in the GUI assembly. More...

Inheritance diagram for EasySave.Gui.Services.LocalizationProvider:
EasySave.Gui.Services.ILocalizationProvider

Public Member Functions

 LocalizationProvider ()
 Initializes a new instance of the LocalizationProvider class.
string GetString (string key)
 Gets a localized string for the given key using the current culture.
string GetString (string key, params object[] args)
 Gets a formatted localized string for the given key.
void SetCulture (string cultureCode)
 Sets the UI culture (e.g. "fr", "en").
Array GetLanguages ()
 Gets the list of available languages supported by the provider.

Events

EventHandler? CultureChanged
Events inherited from EasySave.Gui.Services.ILocalizationProvider
EventHandler? CultureChanged
 Raised when the culture changes so that bindings can refresh.

Detailed Description

Default implementation of ILocalizationProvider using strongly-typed access to ResX resources embedded in the GUI assembly.

Member Function Documentation

◆ GetLanguages()

Array EasySave.Gui.Services.LocalizationProvider.GetLanguages ( )

Gets the list of available languages supported by the provider.

Returns
List of available languages

Implements EasySave.Gui.Services.ILocalizationProvider.

◆ GetString() [1/2]

string EasySave.Gui.Services.LocalizationProvider.GetString ( string key)

Gets a localized string for the given key using the current culture.

Implements EasySave.Gui.Services.ILocalizationProvider.

◆ GetString() [2/2]

string EasySave.Gui.Services.LocalizationProvider.GetString ( string key,
params object[] args )

Gets a formatted localized string for the given key.

Implements EasySave.Gui.Services.ILocalizationProvider.

◆ SetCulture()

void EasySave.Gui.Services.LocalizationProvider.SetCulture ( string cultureCode)

Sets the UI culture (e.g. "fr", "en").

Parameters
cultureCodeCulture code to apply.

Implements EasySave.Gui.Services.ILocalizationProvider.


The documentation for this class was generated from the following file:
  • EasySave.Gui/Services/LocalizationProvider.cs