mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
Merge pull request #6259 from fujiwarat/playbook
Do not convert a title word to the lower case
This commit is contained in:
@@ -1094,8 +1094,13 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
|||||||
html += ">\n";
|
html += ">\n";
|
||||||
if(!field.multiSelect && !field.disableChooseOption){
|
if(!field.multiSelect && !field.disableChooseOption){
|
||||||
html += "<option value=\"\">";
|
html += "<option value=\"\">";
|
||||||
// Add a custom default select 'value' (default text)
|
// some languages use "Playbook" as a proper noun
|
||||||
html += (field.defaultText) ? field.defaultText : i18n.sprintf(i18n._("Choose a %s"), field.label.toLowerCase());
|
var chosen_item = field.label;
|
||||||
|
if (i18n._("playbook") !== i18n._("Playbook")) {
|
||||||
|
chosen_item = label.toLowerCase();
|
||||||
|
}
|
||||||
|
// Add a custom default select 'value' (default text)
|
||||||
|
html += (field.defaultText) ? field.defaultText : i18n.sprintf(i18n._("Choose a %s"), chosen_item);
|
||||||
html += "</option>\n";
|
html += "</option>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user