mirror of
https://github.com/ansible/awx.git
synced 2026-02-13 17:24:45 -03:30
Merge pull request #2048 from ryanpetrello/how-do-you-say-violet-in-french
fix an i18n-related bug that affects non-English hipchat users
This commit is contained in:
@@ -75,7 +75,14 @@ export default ['Rest', 'Wait', 'NotificationsFormObject',
|
|||||||
multiple: false
|
multiple: false
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.hipchatColors = [i18n._('Gray'), i18n._('Green'), i18n._('Purple'), i18n._('Red'), i18n._('Yellow'), i18n._('Random')];
|
$scope.hipchatColors = [
|
||||||
|
{'id': 'gray', 'name': i18n._('Gray')},
|
||||||
|
{'id': 'green', 'name': i18n._('Green')},
|
||||||
|
{'id': 'purple', 'name': i18n._('Purple')},
|
||||||
|
{'id': 'red', 'name': i18n._('Red')},
|
||||||
|
{'id': 'yellow', 'name': i18n._('Yellow')},
|
||||||
|
{'id': 'random', 'name': i18n._('Random')}
|
||||||
|
];
|
||||||
CreateSelect2({
|
CreateSelect2({
|
||||||
element: '#notification_template_color',
|
element: '#notification_template_color',
|
||||||
multiple: false
|
multiple: false
|
||||||
|
|||||||
@@ -122,7 +122,14 @@ export default ['Rest', 'Wait',
|
|||||||
multiple: false
|
multiple: false
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.hipchatColors = [i18n._('Gray'), i18n._('Green'), i18n._('Purple'), i18n._('Red'), i18n._('Yellow'), i18n._('Random')];
|
$scope.hipchatColors = [
|
||||||
|
{'id': 'gray', 'name': i18n._('Gray')},
|
||||||
|
{'id': 'green', 'name': i18n._('Green')},
|
||||||
|
{'id': 'purple', 'name': i18n._('Purple')},
|
||||||
|
{'id': 'red', 'name': i18n._('Red')},
|
||||||
|
{'id': 'yellow', 'name': i18n._('Yellow')},
|
||||||
|
{'id': 'random', 'name': i18n._('Random')}
|
||||||
|
];
|
||||||
CreateSelect2({
|
CreateSelect2({
|
||||||
element: '#notification_template_color',
|
element: '#notification_template_color',
|
||||||
multiple: false
|
multiple: false
|
||||||
|
|||||||
@@ -288,7 +288,7 @@ export default ['i18n', function(i18n) {
|
|||||||
label: i18n._('Notification Color'),
|
label: i18n._('Notification Color'),
|
||||||
dataTitle: i18n._('Notification Color'),
|
dataTitle: i18n._('Notification Color'),
|
||||||
type: 'select',
|
type: 'select',
|
||||||
ngOptions: 'color for color in hipchatColors track by color',
|
ngOptions: 'color.id as color.name for color in hipchatColors',
|
||||||
awPopOver: i18n._('Specify a notification color. Acceptable colors are: yellow, green, red purple, gray or random.'),
|
awPopOver: i18n._('Specify a notification color. Acceptable colors are: yellow, green, red purple, gray or random.'),
|
||||||
awRequiredWhen: {
|
awRequiredWhen: {
|
||||||
reqExpression: "hipchat_required",
|
reqExpression: "hipchat_required",
|
||||||
|
|||||||
Reference in New Issue
Block a user