1
0
mirror of synced 2024-11-22 04:26:01 +03:00

Merge pull request #3 from gwinn/master

update Dockerfile & title translations
This commit is contained in:
Alex Lushpai 2018-05-24 11:39:50 +03:00 committed by GitHub
commit 071de2eeb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,7 @@ ADD ./bin/mg-telegram /
ADD ./templates/ /templates/ ADD ./templates/ /templates/
ADD ./web/ /web/ ADD ./web/ /web/
ADD ./translate/ /translate/ ADD ./translate/ /translate/
ADD ./migrations/ /migrations/
EXPOSE 3001 EXPOSE 3001

View File

@ -92,6 +92,7 @@ func connectHandler(w http.ResponseWriter, r *http.Request) {
map[string]interface{}{ map[string]interface{}{
"ButConnect": localizer.MustLocalize(&i18n.LocalizeConfig{MessageID: "but_connect"}), "ButConnect": localizer.MustLocalize(&i18n.LocalizeConfig{MessageID: "but_connect"}),
"ApiKey": localizer.MustLocalize(&i18n.LocalizeConfig{MessageID: "api_key"}), "ApiKey": localizer.MustLocalize(&i18n.LocalizeConfig{MessageID: "api_key"}),
"Title": localizer.MustLocalize(&i18n.LocalizeConfig{MessageID: "title"}),
}, },
} }
renderTemplate(w, "home", &res) renderTemplate(w, "home", &res)
@ -283,6 +284,7 @@ func settingsHandler(w http.ResponseWriter, r *http.Request, uid string) {
"TableToken": localizer.MustLocalize(&i18n.LocalizeConfig{MessageID: "table_token"}), "TableToken": localizer.MustLocalize(&i18n.LocalizeConfig{MessageID: "table_token"}),
"AddBot": localizer.MustLocalize(&i18n.LocalizeConfig{MessageID: "add_bot"}), "AddBot": localizer.MustLocalize(&i18n.LocalizeConfig{MessageID: "add_bot"}),
"TableActivity": localizer.MustLocalize(&i18n.LocalizeConfig{MessageID: "table_activity"}), "TableActivity": localizer.MustLocalize(&i18n.LocalizeConfig{MessageID: "table_activity"}),
"Title": localizer.MustLocalize(&i18n.LocalizeConfig{MessageID: "title"}),
}, },
} }

View File

@ -21,3 +21,4 @@ missing_url_key: Missing crm url or apiKey
incorrect_url: Enter the correct CRM url incorrect_url: Enter the correct CRM url
incorrect_token: Set correct bot token incorrect_token: Set correct bot token
add_bot: Add bot add_bot: Add bot
title: Telegram transport for retailCRM

View File

@ -21,3 +21,4 @@ missing_url_key: Отсутствует URL или apiKey
incorrect_url: Введите корректный URL CRM incorrect_url: Введите корректный URL CRM
incorrect_token: Установите корректный токен incorrect_token: Установите корректный токен
add_bot: Добавить бота add_bot: Добавить бота
title: Модуль подключения Telegram к retailCRM