Commit 6f9fb07e by Oleksandr Barabash

text translations updated

parent 7323958b
......@@ -10,22 +10,21 @@ en:
Use '%{cmd_help}' command for more info.
tenant_forbidden: |
Sorry, you do not have permission to communicate with this bot from your tenant.
Sorry, you do not have permission to communicate
with this bot using your tenant.
unknown_request: |
This request is not supported.
cmd_help: help
cmd_help: "help"
cmd_portal: portal
cmd_portal: "portal"
cmd_sharepoint_acc: sharepoint
cmd_mars_service: "mars-auth"
cmd_mars_service: mars-service-acc
portal_text: "Open secured portal"
portal_text: Open secured portal
portal_button_text: Open secured portal
portal_button_text: "Open secured portal"
response_help: |
Conversation ID: %{conversation_id}<br/><br/>
......@@ -37,3 +36,7 @@ en:
response_unknown_cmd: |
Unknown command received.<br/>
Use '%{cmd_help}' command for more info.
text_authorize: "Authorize"
text_service_acc_auth: "Service account authorization:"
......@@ -388,8 +388,8 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
cmd_mars_service = i18n.t("cmd_mars_service")
if message_lower == cmd_mars_service.lower():
header = "Service account authorization:"
title = "Start Authorization"
header = i18n.t("text_service_acc_auth")
title = i18n.t("text_authorize")
url = f"https://{AppConfig.MARS_FQDN}/service-auth"
card = CardHelper.load_assets_card("link_card",
context=dict(title=title,
......@@ -401,13 +401,6 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
)
return
if message_lower == cmd_sharepoint_acc.lower():
card = CardHelper.load_assets_card("default_card")
attachments = [CardFactory.adaptive_card(card)]
await turn_context.send_activity(
Activity(type=ActivityTypes.message, attachments=attachments)
)
return
if message_lower == cmd_help.lower():
tenant_id = turn_context.activity.conversation.tenant_id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment