Fix translation strings in motions and users forms.
This commit is contained in:
parent
0cd6bb272c
commit
5e08e073f4
@ -760,7 +760,7 @@ img {
|
||||
box-shadow: -5px 5px 5px rgba(0, 0, 0, 0.2);
|
||||
height: 200px;
|
||||
padding: 0 10px 10px 10px;
|
||||
z-index: 1;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
#chatbox-text {
|
||||
|
@ -189,9 +189,6 @@ angular.module('OpenSlidesApp.motions.site', ['OpenSlidesApp.motions'])
|
||||
// angular-formly fields for motion form
|
||||
getFormFields: function () {
|
||||
var workflows = Workflow.getAll();
|
||||
angular.forEach(workflows, function(workflow) {
|
||||
workflow.name = gettextCatalog.getString(workflow.name);
|
||||
});
|
||||
var images = Mediafile.getAllImages();
|
||||
return [
|
||||
{
|
||||
@ -319,7 +316,7 @@ angular.module('OpenSlidesApp.motions.site', ['OpenSlidesApp.motions'])
|
||||
label: gettextCatalog.getString('Workflow'),
|
||||
optionsAttr: 'bs-options',
|
||||
options: workflows,
|
||||
ngOptions: 'option.id as option.name for option in to.options',
|
||||
ngOptions: 'option.id as option.name | translate for option in to.options',
|
||||
placeholder: gettextCatalog.getString('Select or search a workflow ...')
|
||||
},
|
||||
hideExpression: '!model.more',
|
||||
|
@ -304,7 +304,7 @@ angular.module('OpenSlidesApp.users.site', ['OpenSlidesApp.users'])
|
||||
templateOptions: {
|
||||
label: gettextCatalog.getString('Groups'),
|
||||
options: Group.getAll(),
|
||||
ngOptions: 'option.id as option.name for option in to.options | ' +
|
||||
ngOptions: 'option.id as option.name | translate for option in to.options | ' +
|
||||
'filter: {id: "!1"} | filter: {id: "!2"}',
|
||||
placeholder: gettextCatalog.getString('Select or search a group ...')
|
||||
}
|
||||
|
@ -15,7 +15,7 @@
|
||||
<form name="groupForm">
|
||||
<div class="form-group">
|
||||
<label for="inputName" translate>Name</label>
|
||||
<input type="text" ng-model="group.name" class="form-control" name="inputName" required>
|
||||
<input type="text" ng-model="group.name|translate" class="form-control" name="inputName" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="selectPermissions" translate>Permissions</label>
|
||||
|
Loading…
Reference in New Issue
Block a user