The ExtensionLanguage component defines a language pack for a DotNetNuke extension (module, provider, ...).
The ExtensionLanguage Component inherits from the
File Component and uses a similar syntax.
Elements and attributes
<component type="ExtensionLanguage">
<languageFiles>
<code></code>
<package></package>
<basePath></basePath>
<languageFile>
<path></path>
<name></name>
</languageFile>
</languageFiles>
</component>
- code: the RFC 1766 code for the language (see the .NET CultureInfo class for more information)
- package: the name of the package that this language pack refers to
- basePath: the folder where all the files will be copied, relative to the root of the installation
- languageFile: defines all files that are part of this language pack. The path is relative to the previously especied basePath.
Sample
The following sample showw the english languagepack for the default DNN authentication provider:
<component type="ExtensionLanguage">
<languageFiles>
<code>en-US</code>
<package>DefaultAuthentication</package>
<basePath>DesktopModules\AuthenticationServices\DNN</basePath>
<languageFile>
<path>app_localresources</path>
<name>Login.ascx.resx</name>
</languageFile>
<languageFile>
<path>app_localresources</path>
<name>Settings.ascx.resx</name>
</languageFile>
</languageFiles>
</component>
References