• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class LocalizationExtensions

Inheritance
System.Object
LocalizationExtensions
Namespace: DotNetNuke.Services.Localization
Assembly: DotNetNuke.dll
Syntax
public static class LocalizationExtensions : object

Fields

| Improve this Doc View Source

ResxFileLocaleRegex

Declaration
public const string ResxFileLocaleRegex = null
Field Value
Type Description
System.String

Methods

| Improve this Doc View Source

GetFileNameFromLocalizedResxFile(String)

Gets the file name part from localized resource file. E.g. My file with.fancy-characters.fr-FR.resx should return "My file with.fancy-characters".

Declaration
public static string GetFileNameFromLocalizedResxFile(this string fileName)
Parameters
Type Name Description
System.String fileName

Name of the file.

Returns
Type Description
System.String

File name stripped of culture code or extension.

| Improve this Doc View Source

GetLocaleCodeFromFileName(String)

Gets the name of the locale code from a resource file. E.g. My file with.fancy-characters.fr-FR.resx should return "fr-FR".

Declaration
public static string GetLocaleCodeFromFileName(this string fileName)
Parameters
Type Name Description
System.String fileName

Name of the file.

Returns
Type Description
System.String

Microsoft compatible locale code.

  • View Source
Back to top by the community, for the community... #DNNCMS