Additional translations for members
Addtional translations for members, help dialog and a few updated in da.xml
This commit is contained in:
@@ -1,14 +1,21 @@
|
||||
angular.module("umbraco")
|
||||
.controller("Umbraco.Dialogs.HelpController", function ($scope, $location, $routeParams, helpService, userService) {
|
||||
.controller("Umbraco.Dialogs.HelpController", function ($scope, $location, $routeParams, helpService, userService, localizationService) {
|
||||
$scope.section = $routeParams.section;
|
||||
$scope.version = Umbraco.Sys.ServerVariables.application.version + " assembly: " + Umbraco.Sys.ServerVariables.application.assemblyVersion;
|
||||
|
||||
if(!$scope.section){
|
||||
$scope.section ="content";
|
||||
$scope.section = "content";
|
||||
}
|
||||
|
||||
$scope.sectionName = $scope.section;
|
||||
|
||||
var rq = {};
|
||||
rq.section = $scope.section;
|
||||
|
||||
//translate section name
|
||||
localizationService.localize("sections_" + rq.section).then(function (value) {
|
||||
$scope.sectionName = value;
|
||||
});
|
||||
|
||||
userService.getCurrentUser().then(function(user){
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<div class="umb-panel-body umb-scrollable">
|
||||
<div class="tab-content umb-control-group">
|
||||
<div class="umb-pane">
|
||||
<h5><localize key="help_helpTopicsFor">Help topics for</localize>: {{section}}</h5>
|
||||
<h5><localize key="help_helpTopicsFor">Help topics for</localize>: {{sectionName}}</h5>
|
||||
<ul class="unstyled list-icons" ng-show="topics">
|
||||
<li ng-repeat="topic in topics">
|
||||
<i class="icon icon-help-alt"></i>
|
||||
@@ -31,7 +31,7 @@
|
||||
</div>
|
||||
|
||||
<div class="umb-pane">
|
||||
<h5><localize key="help_videoChaptersFor">Video chapters for</localize>: {{section}}</h5>
|
||||
<h5><localize key="help_videoChaptersFor">Video chapters for</localize>: {{sectionName}}</h5>
|
||||
|
||||
<ul class="thumbnails" ng-show="videos">
|
||||
<li class="span2" ng-repeat="video in videos">
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @description
|
||||
* The controller for the member list view
|
||||
*/
|
||||
function MemberListController($scope, $routeParams, $location, $q, $window, appState, memberResource, entityResource, navigationService, notificationsService, angularHelper, serverValidationManager, contentEditingHelper, fileManager, formHelper, umbModelMapper, editorState) {
|
||||
function MemberListController($scope, $routeParams, $location, $q, $window, appState, memberResource, entityResource, navigationService, notificationsService, angularHelper, serverValidationManager, contentEditingHelper, fileManager, formHelper, umbModelMapper, editorState, localizationService) {
|
||||
|
||||
//setup scope vars
|
||||
$scope.currentSection = appState.getSectionState("currentSection");
|
||||
@@ -18,6 +18,13 @@ function MemberListController($scope, $routeParams, $location, $q, $window, appS
|
||||
$scope.loaded = true;
|
||||
$scope.content = data;
|
||||
|
||||
//translate "All Members"
|
||||
if ($scope.content != null && $scope.content.name != null && $scope.content.name.replace(" ", "").toLowerCase() == "allmembers") {
|
||||
localizationService.localize("member_allMembers").then(function (value) {
|
||||
$scope.content.name = value;
|
||||
});
|
||||
}
|
||||
|
||||
editorState.set($scope.content);
|
||||
|
||||
navigationService.syncTree({ tree: "member", path: data.path.split(",") }).then(function (syncArgs) {
|
||||
|
||||
Reference in New Issue
Block a user