Jump to: navigation, search
  • Main page
  • Recent changes
  • Random page
  • XL3ResourceLookup

    In XLCubed Web Edition, returns the text for the specified resource from a .resx file for the current culture.

    Syntax

    XL3ResourceLookup( ClassKey, ResourceKey )

    Parameters

    Parameter Description
    ClassKey The name of the resource file
    ResourceKey The key of the desired resource

    Installing the Resource File

    After creating your .resx resource files, place them in a folder called App_GlobalResources in the XLCubed Web installation folder. For example:

    C:\inetpub\wwwroot\XLCubedWeb\App_GlobalResources
    

    The default resources should be stored in a file with just the class key, and language specific versions with the language ID added, for example:
    MyLanguageResources.resx - the default resource file
    MyLanguageResources.fr.resx - the French language file
    MyLanguageResources.de.resx - the German language file

    These could then be accessed by using:
    =XL3ResourceLookup("MyLanguageResources", "PhraseName")

    See Also