Class LocalizationExtensions
Inheritance
System.Object
LocalizationExtensions
Namespace: DotNetNuke.Services.Localization
Assembly: DotNetNuke.dll
Syntax
public static class LocalizationExtensions : object
Fields
| Improve this Doc View SourceResxFileLocaleRegex
Declaration
public const string ResxFileLocaleRegex = null
Field Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceGetFileNameFromLocalizedResxFile(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. |
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. |