Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
feat: Allows to configure the message displayed when subscribing to a…
Browse files Browse the repository at this point in the history
…n API

This closes gravitee-io/issues#2005
  • Loading branch information
aelamrani committed Apr 3, 2019
1 parent 6ba2fbd commit 392b399
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/portal/api/subscribe/api-subscribe.html
Expand Up @@ -91,7 +91,7 @@ <h3>{{application.name}} <small ng-if="application.type">{{application.type}}</s
<md-not-found translate="application.notFound" translate-values="{applicationName: filterApp}"></md-not-found>
</md-autocomplete>
<md-input-container class="md-block">
<label>Send a comment to the API Owner</label>
<label translate="api.subscription.step2.comment.message"></label>
<textarea ng-model="$ctrl.requestMessage" md-maxlength="150" rows="2" ng-required="$ctrl.selectedPlan['comment_required']"></textarea>
</md-input-container>
<md-button class="md-raised" ng-click="$ctrl.subscribe($ctrl.selectedApp)"
Expand Down
5 changes: 4 additions & 1 deletion src/portal/i18n/en.json
Expand Up @@ -71,7 +71,10 @@
"placeholder": "Select an application..."
},
"clientIdRequired": "A clientId is required to subscribe to this plan. Please check your application's configuration.",
"action": "Subscribe"
"action": "Subscribe",
"comment": {
"message": "Send a comment to the API Owner"
}
},
"step3": {
"apikey": {
Expand Down
5 changes: 4 additions & 1 deletion src/portal/i18n/fr.json
Expand Up @@ -71,7 +71,10 @@
"placeholder": "Sélectionner une application..."
},
"clientIdRequired": "Un clientId est nécessaire pour pouvoir souscrire à ce plan. Veuillez configurer votre application.",
"action": "Souscrire"
"action": "Souscrire",
"comment": {
"message": "Envoyer un commentaire au propriétaire de l'API"
}
},
"step3": {
"apikey": {
Expand Down
6 changes: 4 additions & 2 deletions src/portal/i18n/pt-BR.json
Expand Up @@ -67,7 +67,10 @@
"placeholder": "Seleciona uma aplicação..."
},
"clientIdRequired": "É necessário um clientId para assinar este plano. Favor verificar a configuração da sua aplicação.",
"action": "Assinar"
"action": "Assinar",
"comment": {
"message": "Envie um comentário para o proprietário da API"
}
},
"step3": {
"apikey": {
Expand Down Expand Up @@ -181,4 +184,3 @@
}
}
}

5 changes: 4 additions & 1 deletion src/portal/i18n/ru-RU.json
Expand Up @@ -67,7 +67,10 @@
"placeholder": "Выберите приложение..."
},
"clientIdRequired": "clientId необходим для подписки на данный тарифный план. Пожалуйста, проверьте конфигурацию вашего приложения.",
"action": "Subscribe"
"action": "Subscribe",
"comment": {
"message": "Отправить комментарий владельцу API"
}
},
"step3": {
"apikey": {
Expand Down
5 changes: 4 additions & 1 deletion src/portal/i18n/ru.json
Expand Up @@ -67,7 +67,10 @@
"placeholder": "Выберите приложение..."
},
"clientIdRequired": "clientId необходим для подписки на данный тарифный план. Пожалуйста, проверьте конфигурацию вашего приложения.",
"action": "Subscribe"
"action": "Subscribe",
"comment": {
"message": "Отправить комментарий владельцу API"
}
},
"step3": {
"apikey": {
Expand Down
5 changes: 4 additions & 1 deletion src/portal/i18n/zh.json
Expand Up @@ -70,7 +70,10 @@
"placeholder": "选择应用..."
},
"clientIdRequired": "一个clientId需要订阅这个计划。请检查应用程序的配置。",
"action": "订阅"
"action": "订阅",
"comment": {
"message": "向API所有者發送評論"
}
},
"step3": {
"apikey": {
Expand Down

0 comments on commit 392b399

Please sign in to comment.