View Source
Class LanguageController
Backoffice controller supporting the dashboard for language administration.
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
[PluginController("UmbracoApi")]
public class LanguageController : UmbracoAuthorizedJsonController, IDiscoverable
Methods
View Source
DeleteLanguage(Int32)
Deletes a language with a given ID
Declaration
public IHttpActionResult DeleteLanguage(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
IHttpActionResult |
|
View Source
GetAllCultures()
Returns all cultures available for creating languages.
Declaration
public IDictionary<string, string> GetAllCultures()
Returns
Type |
Description |
System.Collections.Generic.IDictionary<System.String, System.String> |
|
View Source
GetAllLanguages()
Returns all currently configured languages.
Declaration
public IEnumerable<Language> GetAllLanguages()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Language> |
|
View Source
GetLanguage(Int32)
Declaration
public Language GetLanguage(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
SaveLanguage(Language)
Creates or saves a language
Declaration
public Language SaveLanguage(Language language)
Parameters
Returns