DbResInstance.TDefault

Localization helper function that Translates a resource Id to a resource value string. If id is not found default text is returned. Easy access that allows full control over the resource to retrieve or default UiCulture locale retrieval.

public string TDefault(string resId,
	string defaultText,
	string resourceSet,
	string lang)

Return Value

Localized resource or the resource Id if no match is found. This value always returns a string unless you pass in null in defaultText.

Parameters

resId
The Resource Id to retrieve

defaultText
Default text that is returned when resource with given resId is not found

resourceSet
Name of the ResourceSet that houses this resource. If null or empty resources are used.

lang
5 letter or 2 letter language ieetf code: en-US, de-DE or en, de etc.


See also:

Class DbResInstance

© West Wind Technologies, 2006 - 2019 • Updated: 01/24/18
Comment or report problem with topic