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.


The Resource Id to retrieve

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

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

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