Language Class
Note: This API is now obsolete.
Namespace: KGySoft.Libraries.LanguageAssembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
[ObsoleteAttribute("Use LocalizationHelper, or the DynamicResourceManager class from KGySoft.CoreLibraries instead")]
public static class Language
<ObsoleteAttribute("Use LocalizationHelper, or the DynamicResourceManager class from KGySoft.CoreLibraries instead")>
Public NotInheritable Class Language
[ObsoleteAttribute(L"Use LocalizationHelper, or the DynamicResourceManager class from KGySoft.CoreLibraries instead")]
public ref class Language abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ObsoleteAttribute("Use LocalizationHelper, or the DynamicResourceManager class from KGySoft.CoreLibraries instead")>]
type Language = class end
- Inheritance
- Object Language
This class has been obsoleted. The way it worked was really non-professional:
instead of looking up real keys from resources, it took the original untranslated terms and used them as keys to look them up
in localized resources. To avoid conflicts, it supported so-called "distinction postfixes". Though it worked from
.resx files, the system-provided culture hierarchy was omitted, only neutral (non-specific) cultures were supported.
To overcome all these issues and still use .resx-based dynamically generated localizations you can use the
LocalizationHelper class (recommended when you use the
DynamicStringLocalization
property of
BaseForm or
BaseUserControl classes), or the
DynamicResourceManager class
from the KGy SOFT Core Libraries package instead.
| ActiveLanguage |
Gets or sets the currently used display language. When set, it used to save a single resource file of the previous language.
Now it is redirected to get and set the DisplayLanguage
property, which is now in the LanguageSettings class
of the dependent KGy SOFT Core Libraries package.
Obsolete |
| DistinctionSeparator |
Indicates a distinction part of the string that will be removed on translation.
Obsolete |