+ @*Brand new content item*@
+ @if (Model.ContentItem.ContentItem.Id == 0) {
+ if (Model.MasterContentItem == null) {
+ @T("This is the
{0} variation of the content",
+ BuildSelectedCultureList(
+ Html.FieldIdFor(m => m.SelectedCulture),
+ Html.FieldNameFor(m => m.SelectedCulture),
+ Model.MissingCultures,
+ Model.SelectedCulture))
+ }
+ else {
+ @T("This is the
{0} variation of {1}",
+ BuildSelectedCultureList(
+ Html.FieldIdFor(m => m.SelectedCulture),
+ Html.FieldNameFor(m => m.SelectedCulture),
+ Model.MissingCultures,
+ Model.SelectedCulture),
+ Html.ItemEditLink(Model.MasterContentItem))
+ }
+ }
+
+ @if (Model.ContentItem.ContentItem.Id > 0) {
+ if (string.IsNullOrEmpty(Model.SelectedCulture)) {
+ @T("This content currently has no culture associated to it, please select a culture to associate to this piece of content: {0}",
+ BuildSelectedCultureList(
+ Html.FieldIdFor(m => m.SelectedCulture),
+ Html.FieldNameFor(m => m.SelectedCulture),
+ Model.MissingCultures,
+ Model.SelectedCulture))
+ }
+ else {
+ @T("This is the
{0} variation of the content",
+ Html.Encode(Model.SelectedCulture))
+
+ if (Model.ContentLocalizations.Localizations.Any()) {
+
+ - @T("Other translations:")
+ -
+ @Html.UnorderedList(Model.ContentLocalizations.Localizations, (c, i) =>
+ Html.ItemEditLink(c.Culture.Culture, c), "localizations")
+
+
+ }
+
+ if (Model.MissingCultures.Any()) {
+ var contentItemId = Model.MasterContentItem != null ? Model.MasterContentItem.Id : Model.ContentItem.Id;
+
+
@Html.ActionLink(T("+ New translation").Text, "Translate", "Admin", new {area = "Orchard.Localization", id = contentItemId}, null)
+ }
+
+ @Html.Hidden(Html.FieldNameFor(m => m.SelectedCulture), Model.SelectedCulture)
+ }
+ }
+