Takes the key and returns the text in current language.Namespace: EPiServer.Core
Assembly: EPiServer (in EPiServer.dll) Version: 5.2.375.236
- Type: System..::.String
A simplified XPath expression
Return ValueThe translated string
The key is typically something like "/admin/settings/heading", where the expression closely follows the folder/file/usage pattern. You can also enter a '#' to automatically constuct a path to the current file. For example when calling Translate("#heading") from the file /templates/mypage.aspx it is equivalent to calling Translate("/templates/mypage/heading").
Note: Note: If the key does not begin with a '/' or '#', the key is simply returned as the result. The reason for this behavior is to be able to use EPiServer web controls that use Translate for visible strings but you might not have translations in place or maybe do not want to translate the text.