mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Support raw string in 'ask' fields from manifest (for upcoming thing in core about default strings for install questions)
This commit is contained in:
parent
7fff782dc2
commit
ee20f551f2
1 changed files with 10 additions and 4 deletions
|
@ -412,10 +412,16 @@
|
|||
args[k].helpLink = "";
|
||||
|
||||
// Multilingual label
|
||||
args[k].label = (typeof args[k].ask[y18n.locale] !== 'undefined') ?
|
||||
args[k].ask[y18n.locale] :
|
||||
args[k].ask['en']
|
||||
;
|
||||
if (typeof args[k].ask === "string")
|
||||
{
|
||||
args[k].label = args[k].ask;
|
||||
}
|
||||
else if (typeof args[k].ask[y18n.locale] !== 'undefined') {
|
||||
args[k].label = args[k].ask[y18n.locale];
|
||||
}
|
||||
else {
|
||||
args[k].label = args[k].ask['en'];
|
||||
}
|
||||
|
||||
// Multilingual help text
|
||||
if (typeof args[k].help !== 'undefined') {
|
||||
|
|
Loading…
Add table
Reference in a new issue