From ee54d4237fcac355536fc3f513564cee10ab3bd1 Mon Sep 17 00:00:00 2001 From: armanforghani Date: Mon, 11 Jan 2016 16:03:35 +0330 Subject: [PATCH] Update LayoutEditor.cshtml. Wrapped strings in T delegate. Fixes #6269 --- .../Views/EditorTemplates/LayoutEditor.cshtml | 104 +++++++++--------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.Layouts/Views/EditorTemplates/LayoutEditor.cshtml b/src/Orchard.Web/Modules/Orchard.Layouts/Views/EditorTemplates/LayoutEditor.cshtml index 48bb3c63d..64e552e4f 100644 --- a/src/Orchard.Web/Modules/Orchard.Layouts/Views/EditorTemplates/LayoutEditor.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Layouts/Views/EditorTemplates/LayoutEditor.cshtml @@ -88,7 +88,7 @@
  1. - Clipboard, keyboard shortcuts, etc. + @T("Clipboard, keyboard shortcuts, etc.")
  2. @if (Model.Templates.Any()) { var options = Model.Templates.Select(x => new SelectListItem { Text = Html.ItemDisplayText(x).ToString(), Value = x.Id.ToString(CultureInfo.InvariantCulture), Selected = x.Id == Model.TemplateId }); @@ -107,125 +107,125 @@ @Display.DialogTemplate(Name: "Layout") -
    +
    -

    Clipboard

    +

    @T("Clipboard")

    -

    Elements (including containers) can be cut, copied and pasted using the standard clipboard shortcuts (Ctrl+X / Ctrl+C / Ctrl-V on Windows, ⌘+X / ⌘+C / ⌘+V on Mac OS).

    -

    On browsers that support native clipboard events, clipboard operations can be performed across different layout editor instances, in different tabs or browser windows. Text content can also be pasted into other applications.

    -

    On other browsers, clipboard operations work only within the same layout editor instance.

    +

    @T("Elements (including containers) can be cut, copied and pasted using the standard clipboard shortcuts (Ctrl+X / Ctrl+C / Ctrl-V on Windows, ⌘+X / ⌘+C / ⌘+V on Mac OS).")

    +

    @T("On browsers that support native clipboard events, clipboard operations can be performed across different layout editor instances, in different tabs or browser windows. Text content can also be pasted into other applications.")

    +

    @T("On other browsers, clipboard operations work only within the same layout editor instance.")

    -

    Keyboard shortcuts

    +

    @T("Keyboard shortcuts")

    -

    Resizing columns

    +

    @T("Resizing columns")

    - - + + - - + + - - + + - - + +
    Alt+LeftMoves the left edge of the focused column left@T("Alt+Left")@T("Moves the left edge of the focused column left")
    Alt+RightMoves the left edge of the focused column right@T("Alt+Right")@T("Moves the left edge of the focused column right")
    Shift+LeftMoves the right edge of the focused column left@T("Shift+Left")@T("Moves the right edge of the focused column left")
    Shift+RightMoves the right edge of the focused column right@T("Shift+Right")@T("Moves the right edge of the focused column right")
    -

    The Alt and Shift keys can also be combined to move both edges simultaneously.

    +

    @T("The Alt and Shift keys can also be combined to move both edges simultaneously.")

    -

    Focus

    +

    @T("Focus")

    - - + + - - + + - - + + - - + + - - + + - - + +
    UpMoves focus to the previous element (above)@T("Up")@T("Moves focus to the previous element (above)")
    DownMoves focus to the next element (below)@T("Down")@T("Moves focus to the next element (below)")
    LeftMoves focus to the previous column (to the left)@T("Left")@T("Moves focus to the previous column (to the left)")
    RightMoves focus to the next column (to the right)@T("Right")@T("Moves focus to the next column (to the right)")
    Alt+UpMoves focus to the parent element@T("Alt+Up")@T("Moves focus to the parent element")
    Alt+DownMoves focus to the first child element@T("Alt+Down")@T("Moves focus to the first child element")
    -

    Editing

    +

    @T("Editing")

    - - + + - - + + - - + + - - + +
    EnterOpens the content editor of the focused element@T("Enter")@T("Opens the content editor of the focused element")
    SpaceOpens the properties popup of the focused element@T("Space")@T("Opens the properties popup of the focused element")
    EscCloses the properties popup of the focused element@T("Esc")@T("Closes the properties popup of the focused element")
    DelDeletes the focused element@T("Del")@T("Deletes the focused element")
    -

    Moving

    +

    @T("Moving")

    - - + + - - + + - - + + - - + +
    Ctrl+UpMoves (reorders) the focused element up@T("Ctrl+Up")@T("Moves (reorders) the focused element up")
    Ctrl+DownMoves (reorders) the focused element down@T("Ctrl+Down")@T("Moves (reorders) the focused element down")
    Ctrl+LeftMoves (reorders) the focused column left@T("Ctrl+Left")@T("Moves (reorders) the focused column left")
    Ctrl+RightMoves (reorders) the focused column right@T("Ctrl+Right")@T("Moves (reorders) the focused column right")
    -

    Drag and drop

    +

    @T("Drag and drop")

    -

    Drag any existing element to reorder within its parent.

    -

    Drag a new element from the toolbox and drop it within a compatible container.

    -

    Drag the left and right edges of a focused column to resize the column. By default any adjacent column will be attached and resized accordingly; holding down the Alt key while resizing unattaches from the adjacent column and instead modifies the offset between.

    +

    @T("Drag any existing element to reorder within its parent.")

    +

    @T("Drag a new element from the toolbox and drop it within a compatible container.")

    +

    @T("Drag the left and right edges of a focused column to resize the column. By default any adjacent column will be attached and resized accordingly; holding down the Alt key while resizing unattaches from the adjacent column and instead modifies the offset between.")