diff --git a/openslides/core/static/js/core/site.js b/openslides/core/static/js/core/site.js index 0124eaf15..4f77d8b59 100644 --- a/openslides/core/static/js/core/site.js +++ b/openslides/core/static/js/core/site.js @@ -467,19 +467,21 @@ angular.module('OpenSlidesApp.core.site', [ var config = Config.get(field.key); $scope.type = getHtmlType(field.input_type); if ($scope.type == 'choice') { - $scope.choices = []; - angular.forEach(field.choices, function(choice) { - choice.display_name = gettextCatalog.getString(choice.display_name); - $scope.choices.push(choice); - }); + $scope.choices = field.choices; + $scope.value = config.value; + } else { + $scope.value = gettextCatalog.getString(config.value); } $scope.label = field.label; $scope.key = 'field-' + field.key; - $scope.value = gettextCatalog.getString(config.value); $scope.help_text = field.help_text; $scope.default_value = field.default_value; $scope.reset = function () { - $scope.value = gettextCatalog.getString($scope.default_value); + if ($scope.type == 'choice') { + $scope.value = $scope.default_value; + } else { + $scope.value = gettextCatalog.getString($scope.default_value); + } $scope.save(field.key, $scope.value); }; } diff --git a/openslides/core/static/templates/config-form-field.html b/openslides/core/static/templates/config-form-field.html index bb5d6f349..621b5d2fc 100644 --- a/openslides/core/static/templates/config-form-field.html +++ b/openslides/core/static/templates/config-form-field.html @@ -76,8 +76,8 @@ ng-model="$parent.value" ng-model-options="{debounce: 500}" ng-change="save(configOption.key, $parent.value)" - id="{{ key }}" - class="form-control" ng-options="option.value as option.display_name for option in choices"> + id="{{ key }}" class="form-control" + ng-options="option.value as option.display_name | translate for option in choices"> diff --git a/openslides/motions/config_variables.py b/openslides/motions/config_variables.py index 8c67dc4cf..98b5571ec 100644 --- a/openslides/motions/config_variables.py +++ b/openslides/motions/config_variables.py @@ -64,7 +64,7 @@ def get_config_variables(): choices=( {'value': 'outside', 'display_name': 'Outside'}, {'value': 'inline', 'display_name': 'Inline'}, - {'value': 'none', 'display_name': 'None'}), + {'value': 'none', 'display_name': 'Disabled'}), weight=322, group='Motions', subgroup='General') diff --git a/openslides/motions/static/templates/motions/category-sort.html b/openslides/motions/static/templates/motions/category-sort.html index 075070b39..57da8b2c0 100644 --- a/openslides/motions/static/templates/motions/category-sort.html +++ b/openslides/motions/static/templates/motions/category-sort.html @@ -13,7 +13,7 @@