The CoreLanguage component defines a Core language pack for DotNetNuke.
The CoreLanguage Component inherits from the
File Component and uses a similar syntax.
Elements and attributes
<component type="CoreLanguage">
<languageFiles>
<code></code>
<displayName></displayName>
<fallback></fallback>
<languageFile>
<path></path>
<name></name>
</languageFile>
</languageFiles>
</component>
- code: the RFC 1766 code for the language (see the .NET CultureInfo class for more information)
- displayName: the name of the language
- fallback: code for the fallback language. This language will be used when searching for a resource not found in the current language pack
- languageFile: defines all files that are part of this language pack. The path is relative to the root of the installation.
Sample
The following sample shows a part of the core language pack for Catalan:
<component type="CoreLanguage">
<languageFiles>
<code>ca-ES</code>
<displayName>Catala (España)</displayName>
<fallback>en-US</fallback>
<languageFile>
<path>admin\ControlPanel\App_LocalResources</path>
<name>classic.ascx.ca-es.resx</name>
</languageFile>
<languageFile>
<path>admin\ControlPanel\App_LocalResources</path>
<name>iconbar.ascx.ca-es.resx</name>
</languageFile>
...
</languageFiles>
</component>
References