Add dialog localization and new keys to all lang

This commit is contained in:
Rune Strand
2015-12-07 18:07:08 +01:00
parent 93f199b5e3
commit cb07ec3157
20 changed files with 401 additions and 27 deletions

View File

@@ -1,6 +1,6 @@
angular.module("umbraco")
.controller("Umbraco.PropertyEditors.GridController",
function ($scope, $http, assetsService, $rootScope, dialogService, gridService, mediaResource, imageHelper, $timeout, umbRequestHelper) {
function ($scope, $http, assetsService, localizationService, $rootScope, dialogService, gridService, mediaResource, imageHelper, $timeout, umbRequestHelper) {
// Grid status variables
$scope.currentRow = null;
@@ -231,7 +231,7 @@ angular.module("umbraco")
$scope.editorOverlay = {};
$scope.editorOverlay.view = "itempicker";
$scope.editorOverlay.filter = false;
$scope.editorOverlay.title = "Insert editor";
$scope.editorOverlay.title = localizationService.localize("grid_insertControl").then(function (value) {return value;});
$scope.editorOverlay.availableItems = area.$allowedEditors;
$scope.editorOverlay.event = event;
$scope.editorOverlay.show = true;

View File

@@ -7,7 +7,7 @@
<div class="templates-preview"
ng-show="!model.value || model.value == ''">
<p><strong><localize key="grid_addLayout" /></strong></p>
<p><strong><localize key="grid_chooseLayout" /></strong></p>
<div class="preview-rows layout"
ng-repeat="template in model.config.items.templates"