Class NLS
MessageBundles classes extend this class, to implement a bundle.
For Native Language Support (NLS), system of software internationalization.
This interface is similar to the NLS class in eclipse.osgi.util.NLS class - initializeMessages() method resets the values of all static strings, should only be called by classes that extend from NLS (see TestMessages.java for reference) - performs validation of all message in a bundle, at class load time - performs per message validation at runtime - see NLSTest.java for usage reference
MessageBundle classes may subclass this type.
Inheritance
Inherited Members
Assembly: Lucene.Net.QueryParser.dll
Syntax
[Serializable]
public class NLS
Constructors
Name | Description |
---|---|
NLS() |
Methods
Name | Description |
---|---|
GetLocalizedMessage(String) | |
GetLocalizedMessage(String, CultureInfo) | |
GetLocalizedMessage(String, CultureInfo, Object[]) | |
GetLocalizedMessage(String, Object[]) | |
GetResourceManagerFactory() | Gets the static IResourceManagerFactory instance responsible for creating System.Resources.ResourceManager instances in this class. LUCENENET specific. |
InitializeMessages(String, Type) | Initialize a given class with the message bundle Keys Should be called from a class that extends NLS in a static block at class load time. |
SetResourceManagerFactory(IResourceManagerFactory) | Sets the IResourceManagerFactory used to create instances of System.Resources.ResourceManager for retrieving localized resources. Defaults to BundleResourceManagerFactory if not set. LUCENENET specific. |