Getting localization fixed - trying to tokenize
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
"notificationsService",
|
||||
"localizationService",
|
||||
function (scope, contentTypeResource, navigationService, notificationsService, localizationService) {
|
||||
scope.strings = {
|
||||
|
||||
}
|
||||
var notificationHeader;
|
||||
localizationService.localize("general_renamed")
|
||||
.then(function(s) { notificationHeader = s; });
|
||||
|
||||
scope.model = {
|
||||
folderName: scope.currentNode.name
|
||||
@@ -19,12 +19,23 @@
|
||||
|
||||
contentTypeResource.renameContainer(scope.currentNode.id, scope.model.folderName)
|
||||
.then(function() {
|
||||
|
||||
notificationsService.showNotification({
|
||||
type: 0,
|
||||
header: "Renamed",
|
||||
message: scope.currentNode.name + " was renamed to " + scope.model.folderName
|
||||
});
|
||||
|
||||
localizationService.localize("renamecontainer_folderWasRenamed",
|
||||
scope.currentNode.name,
|
||||
scope.model.folderName)
|
||||
.then(function(msg) {
|
||||
notificationsService.showNotification({
|
||||
type: 0,
|
||||
header: notificationHeader,
|
||||
message: msg
|
||||
});
|
||||
});
|
||||
|
||||
//notificationsService.showNotification({
|
||||
// type: 0,
|
||||
// header: notificationHeader,
|
||||
// message: scope.currentNode.name + " was renamed to " + scope.model.folderName
|
||||
//});
|
||||
|
||||
navigationService.hideMenu();
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<p class="text-error">{{error.data.message}}</p>
|
||||
</div>
|
||||
|
||||
<umb-control-group label="Enter a new folder name" hide-label="false">
|
||||
<umb-control-group label="@renamecontainer_enterNewFolderName" hide-label="false">
|
||||
<input type="text" name="folderName" ng-model="model.folderName" class="umb-textstring textstring input-block-level" umb-auto-focus required />
|
||||
</umb-control-group>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user