A platform for community discussion. Free, open, simple.
DEV: Move discourse-chat-integration to core (#33570)
Jarek Radosz079dd05376c6
diff --git a/.github/labeler.yml b/.github/labeler.ymlindex ed45ddae3c6..5f1e061598f 100644--- a/.github/labeler.yml+++ b/.github/labeler.yml@@ -74,6 +74,10 @@ discourse-math:- changed-files:- any-glob-to-any-file: plugins/discourse-math/**/*+discourse-chat-integration:+ - changed-files:+ - any-glob-to-any-file: plugins/discourse-chat-integration/**/*+footnote:- changed-files:- any-glob-to-any-file: plugins/footnote/**/*diff --git a/.gitignore b/.gitignoreindex f17aad8dffc..5c11d58cd13 100644--- a/.gitignore+++ b/.gitignore@@ -61,6 +61,7 @@!/plugins/discourse-graphviz!/plugins/discourse-rss-polling!/plugins/discourse-math+!/plugins/discourse-chat-integration/plugins/*/auto_generated/spec/fixtures/plugins/my_plugin/auto_generateddiff --git a/plugins/discourse-chat-integration/README.md b/plugins/discourse-chat-integration/README.mdnew file mode 100644index 00000000000..3c50f14280f--- /dev/null+++ b/plugins/discourse-chat-integration/README.md@@ -0,0 +1,5 @@+# Chat Integration Plugin++Integrate your chat system of choice with Discourse.++For more information, please see: https://meta.discourse.org/t/chatroom-integration-plugin-discourse-chat-integration/66522diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/adapters/channel.js b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/adapters/channel.jsnew file mode 100644index 00000000000..2fe5f04c5a9--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/adapters/channel.js@@ -0,0 +1,3 @@+import buildPluginAdapter from "admin/adapters/build-plugin";++export default buildPluginAdapter("chat-integration");diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/adapters/provider.js b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/adapters/provider.jsnew file mode 100644index 00000000000..2fe5f04c5a9--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/adapters/provider.js@@ -0,0 +1,3 @@+import buildPluginAdapter from "admin/adapters/build-plugin";++export default buildPluginAdapter("chat-integration");diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/adapters/rule.js b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/adapters/rule.jsnew file mode 100644index 00000000000..2fe5f04c5a9--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/adapters/rule.js@@ -0,0 +1,3 @@+import buildPluginAdapter from "admin/adapters/build-plugin";++export default buildPluginAdapter("chat-integration");diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/chat-integration-route-map.js b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/chat-integration-route-map.jsnew file mode 100644index 00000000000..786a6601f96--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/chat-integration-route-map.js@@ -0,0 +1,9 @@+export default {+ resource: "admin.adminPlugins",+ path: "/plugins",+ map() {+ this.route("chat-integration", function () {+ this.route("provider", { path: "/:provider" });+ });+ },+};diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/channel-data.gjs b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/channel-data.gjsnew file mode 100644index 00000000000..7cdad5cc7db--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/channel-data.gjs@@ -0,0 +1,26 @@+import { concat, get } from "@ember/helper";+import { i18n } from "discourse-i18n";++const ChannelData = <template>+ {{#each @provider.channel_parameters as |param|}}+ {{#unless param.hidden}}+ <div class="channel-info">+ <span class="field-name">+ {{i18n+ (concat+ "chat_integration.provider."+ @channel.provider+ ".param."+ param.key+ ".title"+ )+ }}:+ </span>+ <span class="field-value">{{get @channel.data param.key}}</span>+ <br />+ </div>+ {{/unless}}+ {{/each}}+</template>;++export default ChannelData;diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/channel-details.gjs b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/channel-details.gjsnew file mode 100644index 00000000000..14ac8f4da10--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/channel-details.gjs@@ -0,0 +1,107 @@+import Component from "@glimmer/component";+import { fn } from "@ember/helper";+import { action } from "@ember/object";+import { service } from "@ember/service";+import DButton from "discourse/components/d-button";+import { popupAjaxError } from "discourse/lib/ajax-error";+import { i18n } from "discourse-i18n";+import ChannelData from "./channel-data";+import RuleRow from "./rule-row";++export default class ChannelDetails extends Component {+ @service dialog;+ @service siteSettings;++ @action+ deleteChannel(channel) {+ this.dialog.deleteConfirm({+ message: i18n("chat_integration.channel_delete_confirm"),+ didConfirm: () => {+ return channel+ .destroyRecord()+ .then(() => this.args.refresh())+ .catch(popupAjaxError);+ },+ });+ }++ <template>+ <div class="channel-details">+ <div class="channel-header">+ <div class="pull-right">+ <DButton+ @icon="pencil"+ @title="chat_integration.edit_channel"+ @label="chat_integration.edit_channel"+ @action={{fn @editChannel @channel}}+ />++ <DButton+ @icon="rocket"+ @title="chat_integration.test_channel"+ @label="chat_integration.test_channel"+ @action={{fn @test @channel}}+ class="btn-chat-test"+ />++ <DButton+ @icon="trash-can"+ @title="chat_integration.delete_channel"+ @label="chat_integration.delete_channel"+ @action={{fn this.deleteChannel @channel}}+ class="cancel delete-channel"+ />+ </div>++ <span class="channel-title">+ {{#if @channel.error_key}}+ <DButton+ @icon="triangle-exclamation"+ @action={{fn @showError @channel}}+ class="delete btn-danger"+ />+ {{/if}}++ <ChannelData @provider={{@provider}} @channel={{@channel}} />+ </span>+ </div>+ <div class="channel-body">+ <table>+ <thead>+ <tr>+ <th>{{i18n "chat_integration.rule_table.filter"}}</th>+ <th>{{i18n "chat_integration.rule_table.category"}}</th>++ {{#if this.siteSettings.tagging_enabled}}+ <th>{{i18n "chat_integration.rule_table.tags"}}</th>+ {{/if}}++ <th></th>+ </tr>+ </thead>++ <tbody>+ {{#each @channel.rules as |rule|}}+ <RuleRow+ @rule={{rule}}+ @edit={{fn @editRuleWithChannel rule @channel}}+ @refresh={{@refresh}}+ />+ {{/each}}+ </tbody>+ </table>+ </div>++ <div class="channel-footer">+ <div class="pull-right">+ <DButton+ @icon="plus"+ @title="chat_integration.create_rule"+ @label="chat_integration.create_rule"+ @action={{fn @createRule @channel}}+ />+ </div>+ </div>+ </div>+ </template>+}diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/channel-param-row.gjs b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/channel-param-row.gjsnew file mode 100644index 00000000000..a694f8e1eb1--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/channel-param-row.gjs@@ -0,0 +1,82 @@+import Component from "@glimmer/component";+import { concat, get } from "@ember/helper";+import { on } from "@ember/modifier";+import { action } from "@ember/object";+import InputTip from "discourse/components/input-tip";+import { i18n } from "discourse-i18n";++export default class ChannelParamRow extends Component {+ get validation() {+ const value = this.args.channel.get(`data.${this.args.param.key}`);++ if (!value?.trim()) {+ return { failed: true };+ } else if (!this.args.param.regex) {+ return { ok: true };+ } else if (new RegExp(this.args.param.regex).test(value)) {+ return {+ ok: true,+ reason: i18n(+ "chat_integration.edit_channel_modal.channel_validation.ok"+ ),+ };+ } else {+ return {+ failed: true,+ reason: i18n(+ "chat_integration.edit_channel_modal.channel_validation.fail"+ ),+ };+ }+ }++ @action+ updateValue(event) {+ this.args.channel.set(`data.${this.args.param.key}`, event.target.value);+ }++ <template>+ <tr class="input">+ <td class="label">+ <label for="param-{{@param.key}}">+ {{i18n+ (concat+ "chat_integration.provider."+ @channel.provider+ ".param."+ @param.key+ ".title"+ )+ }}+ </label>+ </td>+ <td>+ <input+ {{on "input" this.updateValue}}+ value={{get @channel.data @param.key}}+ type="text"+ name="param-{{@param.key}}"+ />++ <InputTip @validation={{this.validation}} />+ </td>+ </tr>++ <tr class="chat-instructions">+ <td></td>+ <td>+ <label>+ {{i18n+ (concat+ "chat_integration.provider."+ @channel.provider+ ".param."+ @param.key+ ".help"+ )+ }}+ </label>+ </td>+ </tr>+ </template>+}diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/modal/channel-error.gjs b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/modal/channel-error.gjsnew file mode 100644index 00000000000..0a374533d20--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/modal/channel-error.gjs@@ -0,0 +1,11 @@+import DModal from "discourse/components/d-modal";+import { i18n } from "discourse-i18n";++const ChannelError = <template>+ <DModal @closeModal={{@closeModal}} id="chat_integration_error_modal">+ <h4>{{i18n @model.channel.error_key}}</h4>+ <pre>{{@model.channel.error_info}}</pre>+ </DModal>+</template>;++export default ChannelError;diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/modal/edit-channel.gjs b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/modal/edit-channel.gjsnew file mode 100644index 00000000000..a5734d64225--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/modal/edit-channel.gjs@@ -0,0 +1,97 @@+import Component from "@glimmer/component";+import { concat } from "@ember/helper";+import { on } from "@ember/modifier";+import { action } from "@ember/object";+import { not } from "truth-helpers";+import DButton from "discourse/components/d-button";+import DModal from "discourse/components/d-modal";+import { popupAjaxError } from "discourse/lib/ajax-error";+import { i18n } from "discourse-i18n";+import ChannelParamRow from "../channel-param-row";++export default class EditChannel extends Component {+ get validParams() {+ return this.args.model.provider.channel_parameters.every((param) => {+ const value = this.args.model.channel.get(`data.${param.key}`);++ if (!value?.trim()) {+ return false;+ }++ if (!param.regex) {+ return true;+ }++ return new RegExp(param.regex).test(value);+ });+ }++ @action+ async save() {+ try {+ await this.args.model.channel.save();+ this.args.closeModal();+ } catch (e) {+ popupAjaxError(e);+ }+ }++ <template>+ <DModal+ {{on "submit" this.save}}+ @title={{i18n "chat_integration.edit_channel_modal.title"}}+ @closeModal={{@closeModal}}+ @tagName="form"+ id="chat-integration-edit-channel-modal"+ >+ <:body>+ <table>+ <tbody>+ <tr class="input">+ <td class="label">+ <label for="provider">+ {{i18n "chat_integration.edit_channel_modal.provider"}}+ </label>+ </td>+ <td>+ {{i18n+ (concat+ "chat_integration.provider."+ @model.channel.provider+ ".title"+ )+ }}+ </td>+ </tr>++ <tr class="chat-instructions">+ <td></td>+ <td></td>+ </tr>++ {{#each @model.provider.channel_parameters as |param|}}+ <ChannelParamRow @param={{param}} @channel={{@model.channel}} />+ {{/each}}+ </tbody>+ </table>+ </:body>++ <:footer>+ <DButton+ @action={{this.save}}+ @label="chat_integration.edit_channel_modal.save"+ @disabled={{not this.validParams}}+ type="submit"+ id="save-channel"+ class="btn-primary btn-large"+ />++ <DButton+ @action={{@closeModal}}+ @label="chat_integration.edit_channel_modal.cancel"+ class="btn-large"+ />+ </:footer>+ </DModal>+ </template>+}diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/modal/edit-rule.gjs b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/modal/edit-rule.gjsnew file mode 100644index 00000000000..a754a41eb30--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/modal/edit-rule.gjs@@ -0,0 +1,240 @@+import Component from "@glimmer/component";+import { concat, fn, hash } from "@ember/helper";+import { on } from "@ember/modifier";+import { action } from "@ember/object";+import { service } from "@ember/service";+import { eq } from "truth-helpers";+import DButton from "discourse/components/d-button";+import DModal from "discourse/components/d-modal";+import { popupAjaxError } from "discourse/lib/ajax-error";+import { i18n } from "discourse-i18n";+import CategoryChooser from "select-kit/components/category-chooser";+import ComboBox from "select-kit/components/combo-box";+import TagChooser from "select-kit/components/tag-chooser";+import ChannelData from "../channel-data";++export default class EditRule extends Component {+ @service siteSettings;++ @action+ async save(rule) {+ try {+ await rule.save();+ this.args.closeModal();+ } catch (e) {+ popupAjaxError(e);+ }+ }++ <template>+ <DModal+ {{on "submit" this.save}}+ @title={{i18n "chat_integration.edit_rule_modal.title"}}+ @closeModal={{@closeModal}}+ @tagName="form"+ id="chat-integration-edit-rule_modal"+ >+ <:body>+ <table>+ <tbody>+ <tr class="input">+ <td class="label">+ <label for="provider">+ {{i18n "chat_integration.edit_rule_modal.provider"}}+ </label>+ </td>+ <td>+ {{i18n+ (concat+ "chat_integration.provider."+ @model.channel.provider+ ".title"+ )+ }}+ </td>+ </tr>++ <tr class="chat-instructions">+ <td></td>+ <td></td>+ </tr>++ <tr class="input">+ <td class="label">+ <label for="channel">+ {{i18n "chat_integration.edit_rule_modal.channel"}}+ </label>+ </td>+ <td>+ <ChannelData+ @provider={{@model.provider}}+ @channel={{@model.channel}}+ />+ </td>+ </tr>++ <tr class="chat-instructions">+ <td></td>+ <td></td>+ </tr>++ <tr class="input">+ <td class="label">+ <label for="filter">+ {{i18n "chat_integration.edit_rule_modal.type"}}+ </label>+ </td>+ <td>+ <ComboBox+ @name="type"+ @content={{@model.rule.available_types}}+ @value={{@model.rule.type}}+ @onChange={{fn (mut @model.rule.type)}}+ />+ </td>+ </tr>++ <tr class="chat-instructions">+ <td></td>+ <td>+ <label>+ {{i18n "chat_integration.edit_rule_modal.instructions.type"}}+ </label>+ </td>+ </tr>++ <tr class="input">+ <td class="label">+ <label for="filter">+ {{i18n "chat_integration.edit_rule_modal.filter"}}+ </label>+ </td>+ <td>+ <ComboBox+ @name="filter"+ @content={{@model.rule.available_filters}}+ @value={{@model.rule.filter}}+ @onChange={{fn (mut @model.rule.filter)}}+ />+ </td>+ </tr>++ <tr class="chat-instructions">+ <td></td>+ <td>+ <label>+ {{i18n+ "chat_integration.edit_rule_modal.instructions.filter"+ }}+ </label>+ </td>+ </tr>++ {{#if (eq @model.rule.type "normal")}}+ <tr class="input">+ <td class="label">+ <label for="category">+ {{i18n "chat_integration.edit_rule_modal.category"}}+ </label>+ </td>+ <td>+ <CategoryChooser+ @name="category"+ @options={{hash none="chat_integration.all_categories"}}+ @value={{@model.rule.category_id}}+ @onChange={{fn (mut @model.rule.category_id)}}+ />+ </td>+ </tr>++ <tr class="chat-instructions">+ <td></td>+ <td>+ <label>+ {{i18n+ "chat_integration.edit_rule_modal.instructions.category"+ }}+ </label>+ </td>+ </tr>+ {{else}}+ <tr class="input">+ <td class="label">+ <label for="group">+ {{i18n "chat_integration.edit_rule_modal.group"}}+ </label>+ </td>+ <td>+ <ComboBox+ @content={{@model.groups}}+ @valueProperty="id"+ @value={{@model.rule.group_id}}+ @onChange={{fn (mut @model.rule.group_id)}}+ @options={{hash none="chat_integration.choose_group"}}+ />+ </td>+ </tr>++ <tr class="chat-instructions">+ <td></td>+ <td>+ <label>+ {{i18n+ "chat_integration.edit_rule_modal.instructions.group"+ }}+ </label>+ </td>+ </tr>+ {{/if}}++ {{#if this.siteSettings.tagging_enabled}}+ <tr class="input">+ <td class="label">+ <label for="tags">+ {{i18n "chat_integration.edit_rule_modal.tags"}}+ </label>+ </td>+ <td>+ <TagChooser+ @placeholderKey="chat_integration.all_tags"+ @name="tags"+ @tags={{@model.rule.tags}}+ @everyTag="true"+ @onChange={{fn (mut @model.rule.tags)}}+ />+ </td>+ </tr>++ <tr class="chat-instructions">+ <td></td>+ <td>+ <label>+ {{i18n+ "chat_integration.edit_rule_modal.instructions.tags"+ }}+ </label>+ </td>+ </tr>+ {{/if}}+ </tbody>+ </table>+ </:body>++ <:footer>+ <DButton+ @action={{fn this.save @model.rule}}+ @label="chat_integration.edit_rule_modal.save"+ type="submit"+ id="save-rule"+ class="btn-primary btn-large"+ />++ <DButton+ @label="chat_integration.edit_rule_modal.cancel"+ @action={{@closeModal}}+ class="btn-large"+ />+ </:footer>+ </DModal>+ </template>+}diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/modal/test-integration.gjs b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/modal/test-integration.gjsnew file mode 100644index 00000000000..5f53326cea5--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/modal/test-integration.gjs@@ -0,0 +1,93 @@+import Component from "@glimmer/component";+import { tracked } from "@glimmer/tracking";+import { on } from "@ember/modifier";+import { action } from "@ember/object";+import { not } from "truth-helpers";+import ChooseTopic from "discourse/components/choose-topic";+import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";+import DButton from "discourse/components/d-button";+import DModal from "discourse/components/d-modal";+import { ajax } from "discourse/lib/ajax";+import { popupAjaxError } from "discourse/lib/ajax-error";+import { i18n } from "discourse-i18n";++export default class TestIntegration extends Component {+ @tracked loading = false;+ @tracked flash;+ @tracked topicId;++ @action+ async send() {+ this.loading = true;++ try {+ await ajax("/admin/plugins/chat-integration/test", {+ data: {+ channel_id: this.args.model.channel.id,+ topic_id: this.topicId,+ },+ type: "POST",+ });++ this.loading = false;+ this.flash = i18n("chat_integration.test_modal.success");+ } catch (e) {+ popupAjaxError(e);+ }+ }++ @action+ newTopicSelected(topic) {+ this.topicId = topic?.id;+ }++ <template>+ <DModal+ {{on "submit" this.send}}+ @title={{i18n "chat_integration.test_modal.title"}}+ @closeModal={{@closeModal}}+ @flash={{this.flash}}+ @flashType="success"+ @tagName="form"+ id="chat_integration_test_modal"+ >+ <:body>+ <table>+ <tbody>+ <tr class="input">+ <td class="label">+ <label for="channel">+ {{i18n "chat_integration.test_modal.topic"}}+ </label>+ </td>+ <td>+ <ChooseTopic+ @topicChangedCallback={{this.newTopicSelected}}+ @selectedTopicId={{this.topicId}}+ />+ </td>+ </tr>+ </tbody>+ </table>+ </:body>++ <:footer>+ <ConditionalLoadingSpinner @condition={{this.loading}}>+ <DButton+ @action={{this.send}}+ @label="chat_integration.test_modal.send"+ @disabled={{not this.topicId}}+ type="submit"+ id="send-test"+ class="btn-primary btn-large"+ />+ <DButton+ @action={{@closeModal}}+ @label="chat_integration.test_modal.close"+ class="btn-large"+ />+ </ConditionalLoadingSpinner>+ </:footer>+ </DModal>+ </template>+}diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/rule-row.gjs b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/rule-row.gjsnew file mode 100644index 00000000000..e7ff9d344e5--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/components/rule-row.gjs@@ -0,0 +1,90 @@+import Component from "@glimmer/component";+import { fn } from "@ember/helper";+import { action } from "@ember/object";+import { service } from "@ember/service";+import DButton from "discourse/components/d-button";+import categoryLink from "discourse/helpers/category-link";+import { popupAjaxError } from "discourse/lib/ajax-error";+import { i18n } from "discourse-i18n";++export default class RuleRow extends Component {+ @service siteSettings;++ get isCategory() {+ return this.args.rule.type === "normal";+ }++ get isMessage() {+ return this.args.rule.type === "group_message";+ }++ get isMention() {+ return this.args.rule.type === "group_mention";+ }++ @action+ delete(rule) {+ rule+ .destroyRecord()+ .then(() => this.args.refresh())+ .catch(popupAjaxError);+ }++ <template>+ <tr>+ <td>+ {{@rule.filterName}}+ </td>++ <td>+ {{#if this.isCategory}}+ {{#if @rule.category}}+ {{categoryLink+ @rule.category+ allowUncategorized="true"+ link="false"+ }}+ {{else}}+ {{i18n "chat_integration.all_categories"}}+ {{/if}}+ {{else if this.isMention}}+ {{i18n+ "chat_integration.group_mention_template"+ [email protected]_name+ }}+ {{else if this.isMessage}}+ {{i18n+ "chat_integration.group_message_template"+ [email protected]_name+ }}+ {{/if}}+ </td>++ <td>+ {{#if this.siteSettings.tagging_enabled}}+ {{#if @rule.tags}}+ {{@rule.tags}}+ {{else}}+ {{i18n "chat_integration.all_tags"}}+ {{/if}}+ {{/if}}+ </td>++ <td>+ <DButton+ @icon="pencil"+ @title="chat_integration.rule_table.edit_rule"+ @action={{fn @edit @rule}}+ class="edit"+ />++ <DButton+ @icon="far-trash-can"+ @title="chat_integration.rule_table.delete_rule"+ @action={{fn this.delete @rule}}+ class="delete"+ />+ </td>+ </tr>+ </template>+}diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/controllers/admin-plugins-chat-integration-provider.js b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/controllers/admin-plugins-chat-integration-provider.jsnew file mode 100644index 00000000000..3ed918a77aa--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/controllers/admin-plugins-chat-integration-provider.js@@ -0,0 +1,92 @@+import Controller from "@ember/controller";+import { action } from "@ember/object";+import { service } from "@ember/service";+import ChannelErrorModal from "../components/modal/channel-error";+import EditChannelModal from "../components/modal/edit-channel";+import EditRuleModal from "../components/modal/edit-rule";+import TestModal from "../components/modal/test-integration";++export default class AdminPluginsChatIntegrationProvider extends Controller {+ @service modal;+ @service store;++ get anyErrors() {+ let anyErrors = false;++ this.model.channels.forEach((channel) => {+ if (channel.error_key) {+ anyErrors = true;+ }+ });++ return anyErrors;+ }++ async triggerModal(modal, model) {+ await this.modal.show(modal, {+ model: {+ ...model,+ admin: true,+ },+ });++ this.refresh();+ }++ @action+ createChannel() {+ return this.triggerModal(EditChannelModal, {+ channel: this.store.createRecord("channel", {+ provider: this.model.provider.id,+ data: {},+ }),+ provider: this.model.provider,+ });+ }++ @action+ editChannel(channel) {+ return this.triggerModal(EditChannelModal, {+ channel,+ provider: this.model.provider,+ });+ }++ @action+ testChannel(channel) {+ return this.triggerModal(TestModal, { channel });+ }++ @action+ createRule(channel) {+ return this.triggerModal(EditRuleModal, {+ rule: this.store.createRecord("rule", {+ channel_id: channel.id,+ channel,+ }),+ channel,+ provider: this.model.provider,+ groups: this.model.groups,+ });+ }++ @action+ editRuleWithChannel(rule, channel) {+ return this.triggerModal(EditRuleModal, {+ rule,+ channel,+ provider: this.model.provider,+ groups: this.model.groups,+ });+ }++ @action+ showError(channel) {+ return this.triggerModal(ChannelErrorModal, { channel });+ }++ @action+ refresh() {+ this.send("refreshProvider");+ }+}diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/controllers/admin-plugins-chat-integration.js b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/controllers/admin-plugins-chat-integration.jsnew file mode 100644index 00000000000..6d28b074217--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/controllers/admin-plugins-chat-integration.js@@ -0,0 +1,3 @@+import Controller from "@ember/controller";++export default class AdminPluginsChatIntegration extends Controller {}diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/models/channel.js b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/models/channel.jsnew file mode 100644index 00000000000..a1bc53a9a3a--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/models/channel.js@@ -0,0 +1,11 @@+import RestModel from "discourse/models/rest";++export default class Channel extends RestModel {+ updateProperties() {+ return this.getProperties(["data"]);+ }++ createProperties() {+ return this.getProperties(["provider", "data"]);+ }+}diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/models/provider.js b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/models/provider.jsnew file mode 100644index 00000000000..d0dacec82dc--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/models/provider.js@@ -0,0 +1,3 @@+import RestModel from "discourse/models/rest";++export default class Provider extends RestModel {}diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/models/rule.js b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/models/rule.jsnew file mode 100644index 00000000000..ba51522ef78--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/models/rule.js@@ -0,0 +1,95 @@+import { tracked } from "@glimmer/tracking";+import Category from "discourse/models/category";+import RestModel from "discourse/models/rest";+import { i18n } from "discourse-i18n";++export default class Rule extends RestModel {+ @tracked type = "normal";+ @tracked category_id = null;+ @tracked tags = null;+ @tracked channel_id = null;+ @tracked filter = "watch";+ @tracked error_key = null;++ available_types = [+ { id: "normal", name: i18n("chat_integration.type.normal") },+ {+ id: "group_message",+ name: i18n("chat_integration.type.group_message"),+ },+ {+ id: "group_mention",+ name: i18n("chat_integration.type.group_mention"),+ },+ ];++ possible_filters_id = ["thread", "watch", "follow", "mute"];++ get available_filters() {+ const available = [];+ const provider = this.channel.provider;++ if (provider === "slack") {+ available.push({+ id: "thread",+ name: i18n("chat_integration.filter.thread"),+ icon: "chevron-right",+ });+ }++ available.push(+ {+ id: "watch",+ name: i18n("chat_integration.filter.watch"),+ icon: "circle-exclamation",+ },+ {+ id: "follow",+ name: i18n("chat_integration.filter.follow"),+ icon: "circle",+ },+ {+ id: "mute",+ name: i18n("chat_integration.filter.mute"),+ icon: "circle-xmark",+ }+ );++ return available;+ }++ get category() {+ const categoryId = this.category_id;++ if (categoryId) {+ return Category.findById(categoryId);+ } else {+ return false;+ }+ }++ get filterName() {+ return i18n(`chat_integration.filter.${this.filter}`);+ }++ updateProperties() {+ return this.getProperties([+ "type",+ "category_id",+ "group_id",+ "tags",+ "filter",+ ]);+ }++ createProperties() {+ return this.getProperties([+ "type",+ "channel_id",+ "category_id",+ "group_id",+ "tags",+ "filter",+ ]);+ }+}diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/routes/admin-plugins-chat-integration-index.js b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/routes/admin-plugins-chat-integration-index.jsnew file mode 100644index 00000000000..096496f41d6--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/routes/admin-plugins-chat-integration-index.js@@ -0,0 +1,15 @@+import { service } from "@ember/service";+import DiscourseRoute from "discourse/routes/discourse";++export default class AdminPluginsChatIntegrationIndex extends DiscourseRoute {+ @service router;++ afterModel(model) {+ if (model.totalRows > 0) {+ this.router.transitionTo(+ "adminPlugins.chat-integration.provider",+ model.get("firstObject").name+ );+ }+ }+}diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/routes/admin-plugins-chat-integration-provider.js b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/routes/admin-plugins-chat-integration-provider.jsnew file mode 100644index 00000000000..d1446560939--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/routes/admin-plugins-chat-integration-provider.js@@ -0,0 +1,47 @@+import { action } from "@ember/object";+import { getOwner } from "@ember/owner";+import Group from "discourse/models/group";+import DiscourseRoute from "discourse/routes/discourse";++export default class AdminPluginsChatIntegrationProvider extends DiscourseRoute {+ async model(params) {+ const [channels, provider, groups] = await Promise.all([+ this.store.findAll("channel", { provider: params.provider }),+ this.modelFor("admin-plugins-chat-integration").findBy(+ "id",+ params.provider+ ),+ Group.findAll(),+ ]);++ const enabledFilters =+ getOwner(this).lookup("model:rule").possible_filters_id;+ channels.forEach((channel) => {+ channel.set(+ "rules",+ channel.rules+ .filter((rule) => enabledFilters.includes(rule.filter))+ .map((rule) => {+ rule = this.store.createRecord("rule", rule);+ rule.set("channel", channel);+ return rule;+ })+ );+ });++ return {+ channels,+ provider,+ groups,+ };+ }++ serialize(model) {+ return { provider: model.provider.id };+ }++ @action+ refreshProvider() {+ this.refresh();+ }+}diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/routes/admin-plugins-chat-integration.js b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/routes/admin-plugins-chat-integration.jsnew file mode 100644index 00000000000..1e771ecc2b5--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/routes/admin-plugins-chat-integration.js@@ -0,0 +1,16 @@+import { action } from "@ember/object";+import { service } from "@ember/service";+import DiscourseRoute from "discourse/routes/discourse";++export default class AdminPluginsChatIntegration extends DiscourseRoute {+ @service router;++ model() {+ return this.store.findAll("provider");+ }++ @action+ showSettings() {+ this.router.transitionTo("adminSiteSettingsCategory", "chat_integration");+ }+}diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/templates/plugins-chat-integration-provider.gjs b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/templates/plugins-chat-integration-provider.gjsnew file mode 100644index 00000000000..616bd6afa53--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/templates/plugins-chat-integration-provider.gjs@@ -0,0 +1,43 @@+import { fn } from "@ember/helper";+import RouteTemplate from "ember-route-template";+import DButton from "discourse/components/d-button";+import icon from "discourse/helpers/d-icon";+import { i18n } from "discourse-i18n";+import ChannelDetails from "../components/channel-details";++export default RouteTemplate(+ <template>+ {{#if @controller.anyErrors}}+ <div class="error">+ {{icon "triangle-exclamation"}}+ <span class="error-message">+ {{i18n "chat_integration.channels_with_errors"}}+ </span>+ </div>+ {{/if}}++ {{#each @controller.model.channels.content as |channel|}}+ <ChannelDetails+ @channel={{channel}}+ @provider={{@controller.model.provider}}+ @refresh={{@controller.refresh}}+ @editChannel={{@controller.editChannel}}+ @test={{@controller.testChannel}}+ @createRule={{@controller.createRule}}+ @editRuleWithChannel={{@controller.editRuleWithChannel}}+ @showError={{@controller.showError}}+ />+ {{/each}}++ <div class="table-footer">+ <div class="pull-right">+ <DButton+ @action={{fn @controller.createChannel @controller.model.provider}}+ @label="chat_integration.create_channel"+ @icon="plus"+ id="create-channel"+ />+ </div>+ </div>+ </template>+);diff --git a/plugins/discourse-chat-integration/admin/assets/javascripts/admin/templates/plugins-chat-integration.gjs b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/templates/plugins-chat-integration.gjsnew file mode 100644index 00000000000..37bc1bc4721--- /dev/null+++ b/plugins/discourse-chat-integration/admin/assets/javascripts/admin/templates/plugins-chat-integration.gjs@@ -0,0 +1,44 @@+import { concat } from "@ember/helper";+import RouteTemplate from "ember-route-template";+import DButton from "discourse/components/d-button";+import NavItem from "discourse/components/nav-item";+import routeAction from "discourse/helpers/route-action";+import { i18n } from "discourse-i18n";++export default RouteTemplate(+ <template>+ <div id="admin-plugin-chat">+ <div class="admin-controls">+ <div class="admin-controls-chat-providers">+ <ul class="nav nav-pills">+ {{#each @controller.model as |provider|}}+ <NavItem+ @route="adminPlugins.chat-integration.provider"+ @routeParam={{provider.name}}+ @label={{concat+ "chat_integration.provider."+ provider.name+ ".title"+ }}+ />+ {{/each}}+ </ul>+ </div>++ <DButton+ @icon="gear"+ @title="chat_integration.settings"+ @label="chat_integration.settings"+ @action={{routeAction "showSettings"}}+ class="chat-integration-settings-button"+ />+ </div>++ {{#unless @controller.model.totalRows}}+ {{i18n "chat_integration.no_providers"}}+ {{/unless}}++ {{outlet}}+ </div>+ </template>+);diff --git a/plugins/discourse-chat-integration/app/controllers/chat_controller.rb b/plugins/discourse-chat-integration/app/controllers/chat_controller.rbnew file mode 100644index 00000000000..9d09cae3ece--- /dev/null+++ b/plugins/discourse-chat-integration/app/controllers/chat_controller.rb@@ -0,0 +1,155 @@+# frozen_string_literal: true++class DiscourseChatIntegration::ChatController < ApplicationController+ requires_plugin DiscourseChatIntegration::PLUGIN_NAME++ def respond+ render+ end++ def list_providers+ providers =+ ::DiscourseChatIntegration::Provider.enabled_providers.map do |x|+ {+ name: x::PROVIDER_NAME,+ id: x::PROVIDER_NAME,+ channel_parameters: (defined?(x::CHANNEL_PARAMETERS)) ? x::CHANNEL_PARAMETERS : [],+ }+ end++ render json: providers, root: "providers"+ end++ def test+ begin+ channel_id = params[:channel_id].to_i+ topic_id = params[:topic_id].to_i++ channel = DiscourseChatIntegration::Channel.find(channel_id)++ provider = ::DiscourseChatIntegration::Provider.get_by_name(channel.provider)++ raise Discourse::NotFound if !DiscourseChatIntegration::Provider.is_enabled(provider)++ post = Topic.find(topic_id.to_i).posts.first++ provider.trigger_notification(post, channel, nil)++ render json: success_json+ rescue Discourse::InvalidParameters, ActiveRecord::RecordNotFound => e+ render json: { errors: [e.message] }, status: 422+ rescue DiscourseChatIntegration::ProviderError => e+ Rails.logger.error("Test provider failed #{e.info}")+ if e.info.key?(:error_key) && !e.info[:error_key].nil?+ render json: { error_key: e.info[:error_key] }, status: 422+ else+ render json: { errors: [e.message] }, status: 422+ end+ end+ end++ def list_channels+ providers = ::DiscourseChatIntegration::Provider.enabled_provider_names+ requested_provider = params[:provider]++ raise Discourse::InvalidParameters if !providers.include?(requested_provider)++ channels = DiscourseChatIntegration::Channel.with_provider(requested_provider)+ render_serialized channels, DiscourseChatIntegration::ChannelSerializer, root: "channels"+ end++ def create_channel+ begin+ providers =+ ::DiscourseChatIntegration::Provider.enabled_providers.map { |x| x::PROVIDER_NAME }++ if !defined?(params[:channel]) && defined?(params[:channel][:provider])+ raise Discourse::InvalidParameters, "Provider is not valid"+ end++ requested_provider = params[:channel][:provider]++ if !providers.include?(requested_provider)+ raise Discourse::InvalidParameters, "Provider is not valid"+ end++ allowed_keys =+ DiscourseChatIntegration::Provider.get_by_name(+ requested_provider,+ )::CHANNEL_PARAMETERS.map { |p| p[:key].to_sym }++ hash = params.require(:channel).permit(:provider, data: allowed_keys)++ channel = DiscourseChatIntegration::Channel.new(hash)++ raise Discourse::InvalidParameters, "Channel is not valid" if !channel.save++ render_serialized channel, DiscourseChatIntegration::ChannelSerializer, root: "channel"+ rescue Discourse::InvalidParameters => e+ render json: { errors: [e.message] }, status: 422+ end+ end++ def update_channel+ begin+ channel = DiscourseChatIntegration::Channel.find(params[:id].to_i)+ channel.error_key = nil # Reset any error on the rule++ allowed_keys =+ DiscourseChatIntegration::Provider.get_by_name(+ channel.provider,+ )::CHANNEL_PARAMETERS.map { |p| p[:key].to_sym }++ hash = params.require(:channel).permit(data: allowed_keys)++ raise Discourse::InvalidParameters, "Channel is not valid" if !channel.update(hash)++ render_serialized channel, DiscourseChatIntegration::ChannelSerializer, root: "channel"+ rescue Discourse::InvalidParameters => e+ render json: { errors: [e.message] }, status: 422+ end+ end++ def destroy_channel+ rule = DiscourseChatIntegration::Channel.find_by(id: params[:id])+ raise Discourse::InvalidParameters unless rule+ rule.destroy!++ render json: success_json+ end++ def create_rule+ begin+ hash =+ params.require(:rule).permit(:channel_id, :type, :filter, :group_id, :category_id, tags: [])+ rule = DiscourseChatIntegration::Rule.new(hash)++ raise Discourse::InvalidParameters, "Rule is not valid" if !rule.save++ render_serialized rule, DiscourseChatIntegration::RuleSerializer, root: "rule"+ rescue Discourse::InvalidParameters => e+ render json: { errors: [e.message] }, status: 422+ end+ end++ def update_rule+ begin+ rule = DiscourseChatIntegration::Rule.find(params[:id].to_i)+ hash = params.require(:rule).permit(:type, :filter, :group_id, :category_id, tags: [])++ raise Discourse::InvalidParameters, "Rule is not valid" if !rule.update(hash)++ render_serialized rule, DiscourseChatIntegration::RuleSerializer, root: "rule"+ rescue Discourse::InvalidParameters => e+ render json: { errors: [e.message] }, status: 422+ end+ end++ def destroy_rule+ rule = DiscourseChatIntegration::Rule.find_by(id: params[:id])+ raise Discourse::InvalidParameters.new unless rule+ rule.destroy!++ render json: success_json+ end+enddiff --git a/plugins/discourse-chat-integration/app/controllers/public_controller.rb b/plugins/discourse-chat-integration/app/controllers/public_controller.rbnew file mode 100644index 00000000000..1f782141c97--- /dev/null+++ b/plugins/discourse-chat-integration/app/controllers/public_controller.rb@@ -0,0 +1,18 @@+# frozen_string_literal: true++class DiscourseChatIntegration::PublicController < ApplicationController+ requires_plugin DiscourseChatIntegration::PLUGIN_NAME++ def post_transcript+ params.require(:secret)++ redis_key = "chat_integration:transcript:#{params[:secret]}"+ content = Discourse.redis.get(redis_key)++ if content+ render json: { content: content }+ else+ raise Discourse::NotFound+ end+ end+enddiff --git a/plugins/discourse-chat-integration/app/helpers/helper.rb b/plugins/discourse-chat-integration/app/helpers/helper.rbnew file mode 100644index 00000000000..b7a5f4e8f46--- /dev/null+++ b/plugins/discourse-chat-integration/app/helpers/helper.rb@@ -0,0 +1,235 @@+# frozen_string_literal: true++module DiscourseChatIntegration+ module Helper+ def self.process_command(channel, tokens)+ guardian = DiscourseChatIntegration::Manager.guardian++ provider = channel.provider++ cmd = tokens.shift if tokens.size >= 1++ error_text = I18n.t("chat_integration.provider.#{provider}.parse_error")++ case cmd+ when "thread", "watch", "follow", "mute"+ return error_text if tokens.empty?+ # If the first token in the command is a tag, this rule applies to all categories+ category_name = tokens[0].start_with?("tag:") ? nil : tokens.shift++ if category_name+ category = Category.find_by(slug: category_name)+ unless category+ cat_list = (CategoryList.new(guardian).categories.map(&:slug)).join(", ")+ return(+ I18n.t(+ "chat_integration.provider.#{provider}.not_found.category",+ name: category_name,+ list: cat_list,+ )+ )+ end+ else+ category = nil # All categories+ end++ tags = []+ # Every remaining token must be a tag. If not, abort and send help text+ while tokens.size > 0+ token = tokens.shift+ if token.start_with?("tag:")+ tag_name = token.sub(/^tag:/, "")+ else+ return error_text+ end++ tag = Tag.find_by(name: tag_name)++ unless tag+ return I18n.t("chat_integration.provider.#{provider}.not_found.tag", name: tag_name)+ end+ tags.push(tag.name)+ end++ category_id = category.nil? ? nil : category.id+ case DiscourseChatIntegration::Helper.smart_create_rule(+ channel: channel,+ filter: cmd,+ category_id: category_id,+ tags: tags,+ )+ when :created+ I18n.t("chat_integration.provider.#{provider}.create.created")+ when :updated+ I18n.t("chat_integration.provider.#{provider}.create.updated")+ else+ I18n.t("chat_integration.provider.#{provider}.create.error")+ end+ when "remove"+ return error_text unless tokens.size == 1++ rule_number = tokens[0].to_i+ return error_text unless rule_number.to_s == tokens[0] # Check we were given a number++ if DiscourseChatIntegration::Helper.delete_by_index(channel, rule_number)+ I18n.t("chat_integration.provider.#{provider}.delete.success")+ else+ I18n.t("chat_integration.provider.#{provider}.delete.error")+ end+ when "status"+ DiscourseChatIntegration::Helper.status_for_channel(channel)+ when "help"+ I18n.t("chat_integration.provider.#{provider}.help")+ else+ error_text+ end+ end++ # Produce a string with a list of all rules associated with a channel+ def self.status_for_channel(channel)+ rules = channel.rules.order_by_precedence+ provider = channel.provider++ text = I18n.t("chat_integration.provider.#{provider}.status.header") + "\n"++ i = 1+ rules.each do |rule|+ category_id = rule.category_id++ case rule.type+ when "normal"+ if category_id.nil?+ category_name = I18n.t("chat_integration.all_categories")+ else+ category = Category.find_by(id: category_id)+ if category+ category_name = category.slug+ else+ category_name = I18n.t("chat_integration.deleted_category")+ end+ end+ when "group_mention", "group_message"+ group = Group.find_by(id: rule.group_id)+ if group+ category_name = I18n.t("chat_integration.#{rule.type}_template", name: group.name)+ else+ category_name = I18n.t("chat_integration.deleted_group")+ end+ end++ text << I18n.t(+ "chat_integration.provider.#{provider}.status.rule_string",+ index: i,+ filter: rule.filter,+ category: category_name,+ )++ if SiteSetting.tagging_enabled && (!rule.tags.nil?)+ text << I18n.t(+ "chat_integration.provider.#{provider}.status.rule_string_tags_suffix",+ tags: rule.tags.join(", "),+ )+ end++ text << "\n"+ i += 1+ end++ text << I18n.t("chat_integration.provider.#{provider}.status.no_rules") if rules.size == 0++ text+ end++ # Delete a rule based on its (1 based) index as seen in the+ # status_for_channel function+ def self.delete_by_index(channel, index)+ rules = channel.rules.order_by_precedence+ return false if index < (1) || index > (rules.size)+ :deleted if rules[index - 1].destroy+ end++ # Create a rule for a specific channel+ # Designed to be used by provider's "Slash commands"+ # Will intelligently adjust existing rules to avoid duplicates+ # Returns+ # :updated if an existing rule has been updated+ # :created if a new rule has been created+ # false if there was an error+ def self.smart_create_rule(channel:, filter:, category_id: nil, tags: nil)+ existing_rules = DiscourseChatIntegration::Rule.with_channel(channel).with_type("normal")++ # Select the ones that have the same category+ same_category = existing_rules.select { |rule| rule.category_id == category_id }++ same_category_and_tags =+ same_category.select do |rule|+ (rule.tags.nil? ? [] : rule.tags.sort) == (tags.nil? ? [] : tags.sort)+ end++ if same_category_and_tags.size > 0+ # These rules have exactly the same criteria as what we're trying to create+ the_rule = same_category_and_tags.shift # Take out the first one++ same_category_and_tags.each do |rule| # Destroy all the others - they're duplicates+ rule.destroy+ end++ return :updated if the_rule.update(filter: filter) # Update the filter+ return false # Error, probably validation+ end++ same_category_and_filters = same_category.select { |rule| rule.filter == filter }++ if same_category_and_filters.size > 0+ # These rules are exactly the same, except for tags. Let's combine the tags together+ tags = [] if tags.nil?+ same_category_and_filters.each do |rule|+ tags = tags | rule.tags unless rule.tags.nil? # Append the tags together, avoiding duplicates by magic+ end++ the_rule = same_category_and_filters.shift # Take out the first one++ if the_rule.update(tags: tags) # Update the tags+ same_category_and_filters.each do |rule| # Destroy all the others - they're duplicates+ rule.destroy+ end+ return :updated+ end++ return false # Error+ end++ # This rule is unique! Create a new one:+ if Rule.new(channel: channel, filter: filter, category_id: category_id, tags: tags).save+ return :created+ end+ false+ end++ def self.save_transcript(transcript)+ secret = SecureRandom.hex+ redis_key = "chat_integration:transcript:#{secret}"+ Discourse.redis.setex(redis_key, 3600, transcript)+ secret+ end++ def self.formatted_display_name(user)+ return "@#{user.username}" if !SiteSetting.enable_names || user.name.blank?++ full_name = user.name+ full_name_normalized = User.normalize_username(full_name.strip)+ similar =+ full_name_normalized.gsub(" ", "_") == user.username_lower ||+ full_name_normalized.gsub(" ", "") == user.username_lower+ if similar && SiteSetting.prioritize_username_in_ux?+ "@#{user.username}"+ elsif similar+ full_name+ elsif SiteSetting.prioritize_username_in_ux?+ "@#{user.username} (#{full_name})"+ else+ "#{full_name} (@#{user.username})"+ end+ end+ end+enddiff --git a/plugins/discourse-chat-integration/app/initializers/discourse_chat_integration.rb b/plugins/discourse-chat-integration/app/initializers/discourse_chat_integration.rbnew file mode 100644index 00000000000..eb1056e3e26--- /dev/null+++ b/plugins/discourse-chat-integration/app/initializers/discourse_chat_integration.rb@@ -0,0 +1,55 @@+# frozen_string_literal: true++module ::DiscourseChatIntegration+ PLUGIN_NAME = "discourse-chat-integration".freeze++ class AdminEngine < ::Rails::Engine+ engine_name "#{::DiscourseChatIntegration::PLUGIN_NAME}-admin"+ isolate_namespace ::DiscourseChatIntegration+ end++ class PublicEngine < ::Rails::Engine+ engine_name "#{::DiscourseChatIntegration::PLUGIN_NAME}-public"+ isolate_namespace ::DiscourseChatIntegration+ end++ def self.plugin_name+ ::DiscourseChatIntegration::PLUGIN_NAME+ end++ def self.pstore_get(key)+ PluginStore.get(self.plugin_name, key)+ end++ def self.pstore_set(key, value)+ PluginStore.set(self.plugin_name, key, value)+ end++ def self.pstore_delete(key)+ PluginStore.remove(self.plugin_name, key)+ end+end++require_relative "../models/plugin_model"+require_relative "../models/rule"+require_relative "../models/channel"++require_relative "../serializers/channel_serializer"+require_relative "../serializers/rule_serializer"++require_relative "../controllers/chat_controller"+require_relative "../controllers/public_controller"++require_relative "../routes/discourse_chat_integration"+require_relative "../routes/discourse"++require_relative "../helpers/helper"++require_relative "../services/manager"++require_relative "../jobs/regular/notify_chats"++require_relative "../../lib/discourse_chat_integration/provider"++require_relative "../jobs/onceoff/add_type_field"+require_relative "../jobs/onceoff/migrate_from_slack_official"diff --git a/plugins/discourse-chat-integration/app/jobs/onceoff/add_type_field.rb b/plugins/discourse-chat-integration/app/jobs/onceoff/add_type_field.rbnew file mode 100644index 00000000000..7254cb30cd1--- /dev/null+++ b/plugins/discourse-chat-integration/app/jobs/onceoff/add_type_field.rb@@ -0,0 +1,9 @@+# frozen_string_literal: true++module Jobs+ class DiscourseChatAddTypeField < ::Jobs::Onceoff+ def execute_onceoff(args)+ DiscourseChatIntegration::Rule.find_each { |rule| rule.save(validate: false) }+ end+ end+enddiff --git a/plugins/discourse-chat-integration/app/jobs/onceoff/migrate_from_slack_official.rb b/plugins/discourse-chat-integration/app/jobs/onceoff/migrate_from_slack_official.rbnew file mode 100644index 00000000000..2a36a68f8c8--- /dev/null+++ b/plugins/discourse-chat-integration/app/jobs/onceoff/migrate_from_slack_official.rb@@ -0,0 +1,147 @@+# frozen_string_literal: true++module Jobs+ class DiscourseChatMigrateFromSlackOfficial < ::Jobs::Onceoff+ def execute_onceoff(args)+ slack_installed = PluginStoreRow.where(plugin_name: "discourse-slack-official").exists?++ if slack_installed+ already_setup_rules = DiscourseChatIntegration::Channel.with_provider("slack").exists?++ already_setup_sitesettings =+ SiteSetting.chat_integration_slack_enabled ||+ SiteSetting.chat_integration_slack_access_token.present? ||+ SiteSetting.chat_integration_slack_incoming_webhook_token.present? ||+ SiteSetting.chat_integration_slack_outbound_webhook_url.present?++ if !already_setup_rules && !already_setup_sitesettings+ ActiveRecord::Base.transaction do+ migrate_settings+ migrate_data+ is_slack_enabled = site_settings_value("slack_enabled")++ if is_slack_enabled+ slack_enabled = SiteSetting.find_by(name: "slack_enabled")+ slack_enabled.update!(value: "f")++ SiteSetting.chat_integration_slack_enabled = true+ SiteSetting.chat_integration_enabled = true+ end+ end+ end+ end+ end++ def migrate_data+ rows = []+ PluginStoreRow+ .where(plugin_name: "discourse-slack-official")+ .where("key ~* :pat", pat: "^category_.*")+ .each do |row|+ PluginStore+ .cast_value(row.type_name, row.value)+ .each do |rule|+ category_id =+ if row.key == "category_*"+ nil+ else+ row.key.gsub!("category_", "")+ row.key.to_i+ end++ next if !category_id.nil? && !Category.exists?(id: category_id)++ valid_tags = []+ valid_tags = Tag.where(name: rule[:tags]).pluck(:name) if rule[:tags]++ rows << {+ category_id: category_id,+ channel: rule[:channel],+ filter: rule[:filter],+ tags: valid_tags,+ }+ end+ end++ rows.each do |row|+ # Load an existing channel with this identifier. If none, create it+ row[:channel] = "##{row[:channel]}" unless row[:channel].start_with?("#")+ channel =+ DiscourseChatIntegration::Channel+ .with_provider("slack")+ .with_data_value("identifier", row[:channel])+ .first+ if !channel+ channel =+ DiscourseChatIntegration::Channel.create(+ provider: "slack",+ data: {+ identifier: row[:channel],+ },+ )+ if !channel.id+ Rails.logger.warn("Error creating channel for #{row}")+ next+ end+ end++ # Create the rule, with clever logic for avoiding duplicates+ success =+ DiscourseChatIntegration::Helper.smart_create_rule(+ channel: channel,+ filter: row[:filter],+ category_id: row[:category_id],+ tags: row[:tags],+ )+ end+ end++ private++ def migrate_settings+ if !(slack_access_token = site_settings_value("slack_access_token")).nil?+ SiteSetting.chat_integration_slack_access_token = slack_access_token+ end++ if !(slack_incoming_webhook_token = site_settings_value("slack_incoming_webhook_token")).nil?+ SiteSetting.chat_integration_slack_incoming_webhook_token = slack_incoming_webhook_token+ end++ if !(+ slack_discourse_excerpt_length = site_settings_value("slack_discourse_excerpt_length")+ ).nil?+ SiteSetting.chat_integration_slack_excerpt_length = slack_discourse_excerpt_length+ end++ if !(slack_outbound_webhook_url = site_settings_value("slack_outbound_webhook_url")).nil?+ SiteSetting.chat_integration_slack_outbound_webhook_url = slack_outbound_webhook_url+ end++ if !(slack_icon_url = site_settings_value("slack_icon_url")).nil?+ SiteSetting.chat_integration_slack_icon_url = slack_icon_url+ end++ if !(post_to_slack_window_secs = site_settings_value("post_to_slack_window_secs")).nil?+ SiteSetting.chat_integration_delay_seconds = post_to_slack_window_secs+ end++ if !(slack_discourse_username = site_settings_value("slack_discourse_username")).nil?+ username = User.find_by(username: slack_discourse_username.downcase)&.username+ SiteSetting.chat_integration_discourse_username =+ (username || Discourse.system_user.username)+ end+ end++ def site_settings_value(name)+ value = SiteSetting.find_by(name: name)&.value++ if value == "t"+ value = true+ elsif value == "f"+ value = false+ end++ value+ end+ end+enddiff --git a/plugins/discourse-chat-integration/app/jobs/regular/notify_chats.rb b/plugins/discourse-chat-integration/app/jobs/regular/notify_chats.rbnew file mode 100644index 00000000000..fe7bbeee580--- /dev/null+++ b/plugins/discourse-chat-integration/app/jobs/regular/notify_chats.rb@@ -0,0 +1,12 @@+# frozen_string_literal: true++module Jobs+ class NotifyChats < ::Jobs::Base+ sidekiq_options retry: false++ def execute(args)+ return if !SiteSetting.chat_integration_enabled?+ ::DiscourseChatIntegration::Manager.trigger_notifications(args[:post_id])+ end+ end+enddiff --git a/plugins/discourse-chat-integration/app/models/channel.rb b/plugins/discourse-chat-integration/app/models/channel.rbnew file mode 100644index 00000000000..a27d5d8a378--- /dev/null+++ b/plugins/discourse-chat-integration/app/models/channel.rb@@ -0,0 +1,67 @@+# frozen_string_literal: true++class DiscourseChatIntegration::Channel < DiscourseChatIntegration::PluginModel+ # Setup ActiveRecord::Store to use the JSON field to read/write these values+ store :value, accessors: %i[provider error_key error_info data], coder: JSON++ scope :with_provider, ->(provider) { where("value::json->>'provider'=?", provider) }+ scope :with_data_value,+ ->(key, value) { where("(value::json->>'data')::json->>?=?", key.to_s, value.to_s) }++ after_initialize :init_data+ after_destroy :destroy_rules++ validate :provider_valid?, :data_valid?++ def self.key_prefix+ "channel:".freeze+ end++ def rules+ DiscourseChatIntegration::Rule.with_channel_id(id).order_by_precedence+ end++ private++ def init_data+ self.data = {} if self.data.nil?+ end++ def destroy_rules+ rules.destroy_all+ end++ def provider_valid?+ if !DiscourseChatIntegration::Provider.provider_names.include?(provider)+ errors.add(:provider, "#{provider} is not a valid provider")+ end+ end++ def data_valid?+ # If provider is invalid, don't try and check data+ return if ::DiscourseChatIntegration::Provider.provider_names.exclude? provider++ params = ::DiscourseChatIntegration::Provider.get_by_name(provider)::CHANNEL_PARAMETERS++ unless params.map { |p| p[:key] }.sort == data.keys.sort+ errors.add(:data, "data does not match the required structure for provider #{provider}")+ return+ end++ check_unique = false+ matching_channels = DiscourseChatIntegration::Channel.with_provider(provider).where.not(id: id)++ data.each do |key, value|+ regex_string = params.find { |p| p[:key] == key }[:regex]+ errors.add(:data, "data.#{key} is invalid") if !Regexp.new(regex_string).match(value)++ unique = params.find { |p| p[:key] == key }[:unique]+ if unique+ check_unique = true+ matching_channels = matching_channels.with_data_value(key, value)+ end+ end++ errors.add(:data, "matches an existing channel") if check_unique && matching_channels.exists?+ end+enddiff --git a/plugins/discourse-chat-integration/app/models/plugin_model.rb b/plugins/discourse-chat-integration/app/models/plugin_model.rbnew file mode 100644index 00000000000..06f52199541--- /dev/null+++ b/plugins/discourse-chat-integration/app/models/plugin_model.rb@@ -0,0 +1,41 @@+# frozen_string_literal: true++class DiscourseChatIntegration::PluginModel < PluginStoreRow+ PLUGIN_NAME = "discourse-chat-integration"++ default_scope { self.default_scope }++ after_initialize :init_plugin_model+ before_save :set_key++ def self.default_scope+ where(type_name: "JSON").where(plugin_name: self::PLUGIN_NAME).where(+ "key LIKE ?",+ "#{self.key_prefix}%",+ )+ end++ def self.key_prefix+ raise "Not implemented"+ end++ private++ def set_key+ self.key ||= self.class.alloc_key+ end++ def init_plugin_model+ self.type_name ||= "JSON"+ self.plugin_name ||= PLUGIN_NAME+ end++ def self.alloc_key+ DistributedMutex.synchronize("#{self::PLUGIN_NAME}_#{self.key_prefix}_id") do+ max_id = PluginStore.get(self::PLUGIN_NAME, "#{self.key_prefix}_id")+ max_id = 1 unless max_id+ PluginStore.set(self::PLUGIN_NAME, "#{self.key_prefix}_id", max_id + 1)+ "#{self.key_prefix}#{max_id}"+ end+ end+enddiff --git a/plugins/discourse-chat-integration/app/models/rule.rb b/plugins/discourse-chat-integration/app/models/rule.rbnew file mode 100644index 00000000000..38c43166513--- /dev/null+++ b/plugins/discourse-chat-integration/app/models/rule.rb@@ -0,0 +1,141 @@+# frozen_string_literal: true++class DiscourseChatIntegration::Rule < DiscourseChatIntegration::PluginModel+ # Setup ActiveRecord::Store to use the JSON field to read/write these values+ store :value, accessors: %i[channel_id type group_id category_id tags filter], coder: JSON++ scope :with_type, ->(type) { where("value::json->>'type'=?", type.to_s) }+ scope :with_channel, ->(channel) { with_channel_id(channel.id) }+ scope :with_channel_id, ->(channel_id) { where("value::json->>'channel_id'=?", channel_id.to_s) }++ scope :with_category_id,+ ->(category_id) do+ if category_id.nil?+ where(+ "(value::json->'category_id') IS NULL OR json_typeof(value::json->'category_id')='null'",+ )+ else+ where("value::json->>'category_id'=?", category_id.to_s)+ end+ end++ scope :with_group_ids,+ ->(group_id) { where("value::json->>'group_id' IN (?)", group_id.map!(&:to_s)) }++ scope :order_by_precedence,+ -> do+ order(+ "+ CASE+ WHEN value::json->>'type' = 'group_mention' THEN 1+ WHEN value::json->>'type' = 'group_message' THEN 2+ ELSE 3+ END+ ",+ "+ CASE+ WHEN value::json->>'filter' = 'mute' THEN 1+ WHEN value::json->>'filter' = 'thread' THEN 2+ WHEN value::json->>'filter' = 'watch' THEN 3+ WHEN value::json->>'filter' = 'tag_added' THEN 4+ WHEN value::json->>'filter' = 'follow' THEN 5+ END+ ",+ )+ end++ after_initialize :init_filter++ validates :filter,+ inclusion: {+ in: %w[thread watch follow tag_added mute],+ message: "%{value} is not a valid filter",+ }++ validates :type,+ inclusion: {+ in: %w[normal group_message group_mention],+ message: "%{value} is not a valid filter",+ }++ validate :channel_valid?, :category_valid?, :group_valid?, :tags_valid?++ def self.key_prefix+ "rule:".freeze+ end++ # We never want an empty array, set it to nil instead+ def tags=(array)+ if array.nil? || array.empty?+ super(nil)+ else+ super(array)+ end+ end++ # These are only allowed to be integers+ %w[channel_id category_id group_id].each do |name|+ define_method "#{name}=" do |val|+ if val.nil? || val.blank?+ super(nil)+ else+ super(val.to_i)+ end+ end+ end++ # Mock foreign key+ # Could return nil+ def channel+ DiscourseChatIntegration::Channel.find_by(id: channel_id)+ end++ def channel=(val)+ self.channel_id = val.id+ end++ private++ def channel_valid?+ if !(DiscourseChatIntegration::Channel.where(id: channel_id).exists?)+ errors.add(:channel_id, "#{channel_id} is not a valid channel id")+ end+ end++ def category_valid?+ if type != "normal" && !category_id.nil?+ errors.add(:category_id, "cannot be specified for that type of rule")+ end++ return unless type == "normal"++ if !(category_id.nil? || Category.where(id: category_id).exists?)+ errors.add(:category_id, "#{category_id} is not a valid category id")+ end+ end++ def group_valid?+ if type == "normal" && !group_id.nil?+ errors.add(:group_id, "cannot be specified for that type of rule")+ end++ return if type == "normal"++ if !Group.where(id: group_id).exists?+ errors.add(:group_id, "#{group_id} is not a valid group id")+ end+ end++ def tags_valid?+ return if tags.nil?++ tags.each do |tag|+ errors.add(:tags, "#{tag} is not a valid tag") if !Tag.where(name: tag).exists?+ end+ end++ def init_filter+ self.filter ||= "watch"+ self.type ||= "normal"+ end+enddiff --git a/plugins/discourse-chat-integration/app/routes/discourse.rb b/plugins/discourse-chat-integration/app/routes/discourse.rbnew file mode 100644index 00000000000..8b4246052c8--- /dev/null+++ b/plugins/discourse-chat-integration/app/routes/discourse.rb@@ -0,0 +1,13 @@+# frozen_string_literal: true++Discourse::Application.routes.append do+ mount ::DiscourseChatIntegration::AdminEngine,+ at: "/admin/plugins/chat-integration",+ constraints: AdminConstraint.new+ mount ::DiscourseChatIntegration::PublicEngine, at: "/chat-transcript/", as: "chat-transcript"+ mount ::DiscourseChatIntegration::Provider::HookEngine, at: "/chat-integration/"++ # For backwards compatibility with Slack plugin+ post "/slack/command" =>+ "discourse_chat_integration/provider/slack_provider/slack_command#command"+enddiff --git a/plugins/discourse-chat-integration/app/routes/discourse_chat_integration.rb b/plugins/discourse-chat-integration/app/routes/discourse_chat_integration.rbnew file mode 100644index 00000000000..86a98c5977a--- /dev/null+++ b/plugins/discourse-chat-integration/app/routes/discourse_chat_integration.rb@@ -0,0 +1,24 @@+# frozen_string_literal: true++require_dependency "admin_constraint"++module ::DiscourseChatIntegration+ AdminEngine.routes.draw do+ get "" => "chat#respond"+ get "/providers" => "chat#list_providers"+ post "/test" => "chat#test"++ get "/channels" => "chat#list_channels"+ post "/channels" => "chat#create_channel"+ put "/channels/:id" => "chat#update_channel"+ delete "/channels/:id" => "chat#destroy_channel"++ post "/rules" => "chat#create_rule"+ put "/rules/:id" => "chat#update_rule"+ delete "/rules/:id" => "chat#destroy_rule"++ get "/:provider" => "chat#respond"+ end++ PublicEngine.routes.draw { get "/:secret" => "public#post_transcript" }+enddiff --git a/plugins/discourse-chat-integration/app/serializers/channel_serializer.rb b/plugins/discourse-chat-integration/app/serializers/channel_serializer.rbnew file mode 100644index 00000000000..15688c870db--- /dev/null+++ b/plugins/discourse-chat-integration/app/serializers/channel_serializer.rb@@ -0,0 +1,13 @@+# frozen_string_literal: true++require_relative "./rule_serializer"++class DiscourseChatIntegration::ChannelSerializer < ApplicationSerializer+ attributes :id, :provider, :error_key, :error_info, :data, :rules++ def rules+ object.rules.order_by_precedence.map do |rule|+ DiscourseChatIntegration::RuleSerializer.new(rule, root: false)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/app/serializers/rule_serializer.rb b/plugins/discourse-chat-integration/app/serializers/rule_serializer.rbnew file mode 100644index 00000000000..25e0086597a--- /dev/null+++ b/plugins/discourse-chat-integration/app/serializers/rule_serializer.rb@@ -0,0 +1,15 @@+# frozen_string_literal: true++class DiscourseChatIntegration::RuleSerializer < ApplicationSerializer+ attributes :id, :channel_id, :type, :group_id, :group_name, :category_id, :tags, :filter++ def group_name+ if object.group_id+ if group = Group.find_by(id: object.group_id)+ group.name+ else+ I18n.t("chat_integration.deleted_group")+ end+ end+ end+enddiff --git a/plugins/discourse-chat-integration/app/services/manager.rb b/plugins/discourse-chat-integration/app/services/manager.rbnew file mode 100644index 00000000000..95791b2658a--- /dev/null+++ b/plugins/discourse-chat-integration/app/services/manager.rb@@ -0,0 +1,132 @@+# frozen_string_literal: true++module DiscourseChatIntegration+ module Manager+ def self.guardian+ Guardian.new(User.find_by(username: SiteSetting.chat_integration_discourse_username))+ end++ def self.trigger_notifications(post_id)+ post = Post.find_by(id: post_id)++ # Abort if the chat_user doesn't have permission to see the post+ return if !guardian.can_see?(post)++ # Abort if the post is blank+ return if post.blank?++ # Abort if post is not either regular or a 'category_changed' whisper+ if (post.post_type != Post.types[:regular]) &&+ !(+ post.post_type == Post.types[:whisper] &&+ %w[category_changed].include?(post.action_code)+ )+ return+ end++ topic = post.topic+ return if topic.blank?++ # If it's a private message, filter rules by groups, otherwise filter rules by category+ if topic.archetype == Archetype.private_message+ group_ids_with_access = topic.topic_allowed_groups.pluck(:group_id)+ return if group_ids_with_access.empty?+ matching_rules =+ DiscourseChatIntegration::Rule.with_type("group_message").with_group_ids(+ group_ids_with_access,+ )+ else+ matching_rules =+ DiscourseChatIntegration::Rule.with_type("normal").with_category_id(topic.category_id)+ if topic.category # Also load the rules for the wildcard category+ matching_rules += DiscourseChatIntegration::Rule.with_type("normal").with_category_id(nil)+ end++ # If groups are mentioned, check for any matching rules and append them+ mentions = post.raw_mentions+ if mentions && mentions.length > 0+ groups = Group.where("LOWER(name) IN (?)", mentions)+ if groups.exists?+ matching_rules +=+ DiscourseChatIntegration::Rule.with_type("group_mention").with_group_ids(+ groups.map(&:id),+ )+ end+ end+ end++ matching_rules = matching_rules.select { |rule| rule.filter != "tag_added" } # ignore tag_added rules, now uses Automation++ # If tagging is enabled, thow away rules that don't apply to this topic+ if SiteSetting.tagging_enabled+ topic_tags = topic.tags.present? ? topic.tags.pluck(:name) : []+ matching_rules =+ matching_rules.select do |rule|+ next true if rule.tags.nil? || rule.tags.empty? # Filter has no tags specified+ any_tags_match = !((rule.tags & topic_tags).empty?)+ next any_tags_match # If any tags match, keep this filter, otherwise throw away+ end+ end++ # Sort by order of precedence+ t_prec = { "group_message" => 0, "group_mention" => 1, "normal" => 2 } # Group things win+ f_prec = { "mute" => 0, "thread" => 1, "watch" => 2, "follow" => 3 } #(mute always wins; thread beats watch beats follow)+ sort_func =+ proc { |a, b| [t_prec[a.type], f_prec[a.filter]] <=> [t_prec[b.type], f_prec[b.filter]] }+ matching_rules = matching_rules.sort(&sort_func)++ # Take the first rule for each channel+ uniq_func = proc { |rule| [rule.channel_id] }+ matching_rules = matching_rules.uniq(&uniq_func)++ # If a matching rule is set to mute, we can discard it now+ matching_rules = matching_rules.select { |rule| rule.filter != "mute" }++ # If this is not the first post, discard all "follow" rules. Unless it's a+ # category_changed action post. If category changed, filter out and rules+ # that aren't specific to a category+ if !post.is_first_post?+ matching_rules =+ if post.action_code == "category_changed"+ matching_rules.select { |rule| rule.category_id.present? }+ else+ matching_rules.select { |rule| rule.filter != "follow" }+ end+ end++ # All remaining rules now require a notification to be sent+ # If there are none left, abort+ return false if matching_rules.empty?++ # Loop through each rule, and trigger appropriate notifications+ matching_rules.each do |rule|+ # If there are any issues, skip to the next rule+ next unless channel = rule.channel+ next unless provider = ::DiscourseChatIntegration::Provider.get_by_name(channel.provider)+ next unless is_enabled = ::DiscourseChatIntegration::Provider.is_enabled(provider)++ begin+ provider.trigger_notification(post, channel, rule)+ channel.update_attribute("error_key", nil) if channel.error_key+ rescue => e+ if e.class == (DiscourseChatIntegration::ProviderError) && e.info.key?(:error_key) &&+ !e.info[:error_key].nil?+ channel.update_attribute("error_key", e.info[:error_key])+ else+ channel.update_attribute("error_key", "chat_integration.channel_exception")+ end+ channel.update_attribute("error_info", JSON.pretty_generate(e.try(:info)))++ # Log the error+ # Discourse.handle_job_exception(e,+ # message: "Triggering notifications failed",+ # extra: { provider_name: provider::PROVIDER_NAME,+ # channel: rule.channel,+ # post_id: post.id,+ # error_info: e.class == DiscourseChatIntegration::ProviderError ? e.info : nil }+ # )+ end+ end+ end+ end+enddiff --git a/plugins/discourse-chat-integration/app/services/problem_check/channel_errors.rb b/plugins/discourse-chat-integration/app/services/problem_check/channel_errors.rbnew file mode 100644index 00000000000..833a5053254--- /dev/null+++ b/plugins/discourse-chat-integration/app/services/problem_check/channel_errors.rb@@ -0,0 +1,21 @@+# frozen_string_literal: true++class ProblemCheck::ChannelErrors < ProblemCheck+ self.priority = "low"++ def call+ return no_problem if !SiteSetting.chat_integration_enabled+ return no_problem if !channel_errors?++ problem+ end++ private++ def channel_errors?+ DiscourseChatIntegration::Channel.find_each.any? do |channel|+ channel.error_key.present? &&+ ::DiscourseChatIntegration::Provider.is_enabled(channel.provider)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/assets/javascripts/discourse/public-route-map.js b/plugins/discourse-chat-integration/assets/javascripts/discourse/public-route-map.jsnew file mode 100644index 00000000000..4521338de4c--- /dev/null+++ b/plugins/discourse-chat-integration/assets/javascripts/discourse/public-route-map.js@@ -0,0 +1,3 @@+export default function () {+ this.route("transcript", { path: "/chat-transcript/:secret" });+}diff --git a/plugins/discourse-chat-integration/assets/javascripts/discourse/routes/transcript.js b/plugins/discourse-chat-integration/assets/javascripts/discourse/routes/transcript.jsnew file mode 100644index 00000000000..952ddf11940--- /dev/null+++ b/plugins/discourse-chat-integration/assets/javascripts/discourse/routes/transcript.js@@ -0,0 +1,29 @@+import { service } from "@ember/service";+import { ajax } from "discourse/lib/ajax";+import { popupAjaxError } from "discourse/lib/ajax-error";+import DiscourseRoute from "discourse/routes/discourse";++export default class Transcript extends DiscourseRoute {+ @service currentUser;+ @service composer;+ @service router;++ async model(params) {+ if (!this.currentUser) {+ this.session.set("shouldRedirectToUrl", window.location.href);+ this.router.replaceWith("login");+ return;+ }++ await this.router.replaceWith("discovery.latest").followRedirects();++ try {+ const result = await ajax(`/chat-transcript/${params.secret}`);+ this.composer.openNewTopic({+ body: result.content,+ });+ } catch (e) {+ popupAjaxError(e);+ }+ }+}diff --git a/plugins/discourse-chat-integration/assets/stylesheets/chat-integration.scss b/plugins/discourse-chat-integration/assets/stylesheets/chat-integration.scssnew file mode 100644index 00000000000..4ba03f71a58--- /dev/null+++ b/plugins/discourse-chat-integration/assets/stylesheets/chat-integration.scss@@ -0,0 +1,121 @@+#admin-plugin-chat {+ table {+ margin-top: 0;++ td:last-child {+ white-space: nowrap;+ }++ td:not(:last-child) {+ width: 30%;+ }+ }++ div.table-footer {+ margin-top: 10px;+ }++ div.error {+ font-size: 1.1em;+ font-weight: bold;+ max-width: 100%;+ margin-top: 10px;+ margin-bottom: 10px;+ background-color: var(--danger-low);+ padding: 15px;+ }++ div.channel-details {+ margin-top: 20px;+ border: 1px solid var(--primary-low);++ div.channel-header {+ background: var(--primary-low);+ padding: 10px;+ overflow: auto;++ .channel-title {+ font-size: 1.3em;++ .field-name {+ font-weight: bold;+ }+ }+ }++ div.channel-footer {+ overflow: auto;+ }+ }++ .chat-integration-settings-button {+ margin-right: 10px;+ }+}++.admin-controls-chat-providers {+ margin-right: auto;+}++#chat-integration-edit-channel-modal,+#chat_integration_test_modal,+#chat-integration-edit-rule_modal {+ table {+ width: 100%;++ tbody {+ border-top: none;+ }++ tr {+ border: none;+ }++ tr.input td {+ padding-top: 10px;++ &.label {+ width: 100px;++ label {+ margin-bottom: 0;+ font-weight: bold;+ }+ }+ }++ tr.chat-instructions label {+ color: var(--primary-medium);+ font-size: var(--font-down-1);+ margin-top: 0.5rem;+ }+ }++ #channel-field {+ width: 200px;+ margin-bottom: 0;+ box-shadow: none;+ }++ .tag-chooser {+ ul.select2-choices {+ border: none;+ background: none;+ }+ margin-bottom: 0;+ margin-top: 0;+ }++ .field-name {+ font-weight: bold;+ }+}++#chat_integration_error_modal {+ pre {+ max-width: 500px;+ max-height: 800px;+ overflow: scroll;+ background: var(--primary-low);+ }+}diff --git a/plugins/discourse-chat-integration/config/locales/client.ar.yml b/plugins/discourse-chat-integration/config/locales/client.ar.ymlnew file mode 100644index 00000000000..522917041be--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.ar.yml@@ -0,0 +1,242 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ar:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "تكاملات الدردشة"+ js:+ chat_integration:+ menu_title: "تكاملات الدرشة"+ settings: "الإعدادات"+ no_providers: "عليك تفعيل بعض مقدِّمي الخدمة في إعدادات المكوِّن الإضافي"+ channels_with_errors: "فشلت بعض قنوات مقدِّم الخدمة هذا مؤخرًا في آخر مرة تم فيها إرسال الرسائل. انقر على أيقونة/أيقونات الأخطاء لمعرفة المزيد."+ channel_exception: "حدث خطأ غير معروف في آخر مرة تم فيها إرسال رسالة إلى هذه القناة."+ group_mention_template: "الإشارات إلى: @%{name}"+ group_message_template: "الرسائل إلى: @%{name}"+ choose_group: "(اختر مجموعة)"+ all_categories: "(جميع الفئات)"+ all_tags: "(جميع الوسوم)"+ create_rule: "إنشاء قاعدة"+ create_channel: "إنشاء قناة"+ delete_channel: "حذف"+ test_channel: "اختبار"+ edit_channel: "تعديل"+ channel_delete_confirm: "هل تريد بالتأكيد حذف هذه القناة؟ سيتم حذف جميع القواعد المرتبطة."+ test_modal:+ title: "إرسال رسالة اختبار"+ topic: "الموضوع"+ send: "إرسال رسالة اختبار"+ close: "إغلاق"+ error: "حدث خطأ غير معروف في أثناء إرسال الرسالة. تحقَّق من سجلات الموقع لمزيدٍ من المعلومات."+ success: "تم إرسال الرسالة بنجاح"+ type:+ normal: عادي+ group_message: رسالة مجموعة+ group_mention: إشارة مجموعة+ filter:+ mute: 'صامت'+ follow: 'أول منشور فقط'+ watch: 'كل المنشورات والردود'+ thread: 'كل المنشورات ذات الردود المسلسلة'+ rule_table:+ filter: "تصفية"+ category: "الفئة"+ tags: "الوسوم"+ edit_rule: "تعديل"+ delete_rule: "حذف"+ edit_channel_modal:+ title: "تعديل القناة"+ save: "حفظ القناة"+ cancel: "إلغاء"+ provider: "مقدِّم الخدمة"+ channel_validation:+ ok: "صالح"+ fail: "تنسيق غير صالح"+ edit_rule_modal:+ title: تعديل القاعدة+ save: حفظ القاعدة+ cancel: إلغاء+ provider: مقدِّم الخدمة+ type: النوع+ channel: القناة+ filter: تصفية+ category: الفئة+ group: المجموعة+ tags: الوسوم+ instructions:+ type: "غيِّر النوع لتشغيل الإشعارات لرسائل أو إشارات المجموعة"+ filter: "مستوى الإشعارات. يتجاوز الكتم قواعد المطابقة الأخرى"+ category: "ستنطبق هذه القاعدة على الموضوعات في الفئة المحدَّدة فقط"+ group: "ستنطبق هذه القاعدة على المنشورات التي تشير إلى هذه المجموعة"+ tags: "إذا تم تحديد هذه القاعدة، فستنطبق فقط على الموضوعات التي تحمل واحدًا من هذه الوسوم على الأقل"+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: القناة+ help: "على سبيل المثال، #channel، @username."+ errors:+ action_prohibited: "لا يملك برنامج الروبوت إذن النشر في هذه القناة"+ channel_not_found: "القناة المحدَّدة غير موجودة على Slack"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "الاسم"+ help: "اسم لوصف القناة. لا يتم استخدامه للاتصال بـ Telegram."+ chat_id:+ title: مُعرِّف الدردشة+ help: رقم يمنحك إياه برنامج الروبوت، أو مُعرِّف قناة البث بالتنسق @channelname+ errors:+ channel_not_found: "القناة المحدَّدة غير موجودة على Telegram"+ forbidden: "لا يملك برنامج الروبوت إذن النشر في هذه القناة"+ discord:+ title: "Discord"+ param:+ name:+ title: "الاسم"+ help: "اسم لوصف القناة. لا يتم استخدامه للاتصال بـ Discord."+ webhook_url:+ title: عنوان URL لخطاف الويب+ help: عنوان URL لخطاف الويب، والذي تم إنشاؤه في إعدادات خادم Discord+ guilded:+ title: "Guilded"+ param:+ name:+ title: "الاسم"+ help: "اسم لوصف القناة. لا يتم استخدامه للاتصال بـ Guilded"+ webhook_url:+ title: عنوان URL لخطاف الويب+ help: عنوان URL لخطاف الويب، والذي تم إنشاؤه في إعدادات خادم Guilded+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: القناة+ help: "على سبيل المثال، #channel، @username."+ errors:+ channel_not_found: "القناة المحدَّدة غير موجودة على Mattermost"+ matrix:+ title: "Matrix"+ param:+ name:+ title: "الاسم"+ help: "اسم لوصف القناة. لا يتم استخدامه للاتصال بـ Matrix."+ room_id:+ title: "مُعرِّف الغرفة"+ help: "\"المُعرِّف الخاص\" للغرفة. يجب أن يبدو مثل !abcdefg:matrix.org"+ errors:+ unknown_token: "رمز الوصول غير صالح"+ unknown_room: "مُعرِّف الغرفة غير صالح"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "Stream"+ help: "اسم قسم Zulip الذي يجب إرسال الرسالة إليه. مثلًا، \"عام\""+ subject:+ title: "الموضوع"+ help: "العنوان الذي يجب إعطاؤه إلى هذه الرسائل التي أرسلها برنامج الروبوت"+ errors:+ does_not_exist: "هذا القسم غير موجود على Zulip"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: القناة+ help: "على سبيل المثال، #channel، @username."+ errors:+ invalid_channel: "هذه القناة غير موجودة على Rocket Chat"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "الاسم"+ help: "اسم غرفة Gitter؛ على سبيل المثال، gitterHQ/services."+ webhook_url:+ title: "عنوان URL لخطاف الويب"+ help: "عنوان URL الذي يتم إدخاله عند إنشاء تكامل جديد في غرفة Gitter."+ flowdock:+ title: "Flowdock"+ param:+ flow_token:+ title: "رمز القسم"+ help: "رمز القسم الذي تم إدخاله بعد إنشاء مصدر لقسم تريد إرسال الرسائل فيه."+ groupme:+ title: "GroupMe"+ param:+ groupme_instance_name:+ title: "اسم مثيل GroupMe"+ help: "اسم مثيل Groupme كما هو مدرج في إعدادات الموقع. استخدم \"الكل\" للإرسال إلى جميع المثيلات"+ errors:+ not_found: "لم يتم العثور على المسار الذي حاولت نشر رسالتك فيه. تحقَّق من مُعرِّف برنامج الروبوت في إعدادات الموقع."+ teams:+ title: "Microsoft Teams"+ param:+ name:+ title: "الاسم"+ help: "اسم قناة Teams، مثل \"مناقشة\""+ webhook_url:+ title: "عنوان URL لخطاف الويب"+ help: "عنوان URL الذي يتم إدخاله عند إنشاء خطاف ويب وارد جديد"+ errors:+ invalid_channel: "هذه القناة غير موجودة على Microsoft Teams"+ powerautomate:+ title: "Microsoft Power Automate"+ param:+ name:+ title: "الاسم"+ help: "اسم للقناة (يظهر فقط في واجهة مسؤول Discourse)"+ webhook_url:+ title: "عنوان URL لخطاف الويب"+ help: "عنوان URL الذي يتم إدخاله عند إنشاء خطاف ويب وارد جديد"+ errors:+ invalid_webhook: "عنوان URL لخطاف الويب هذا غير صالح."+ webex:+ title: "Webex Teams"+ param:+ name:+ title: "الاسم"+ help: "اسم مساحة Webex، مثل \"مناقشة\""+ webhook_url:+ title: "عنوان URL لخطاف الويب"+ help: "عنوان URL الذي يتم إدخاله عند إنشاء خطاف ويب وارد جديد"+ errors:+ invalid_channel: "هذه القناة غير موجودة على Webex"+ google:+ title: "Google Chat"+ param:+ name:+ title: "الاسم"+ help: "اسم للقناة (يظهر فقط في واجهة مسؤول Discourse)"+ webhook_url:+ title: "عنوان URL لخطاف الويب"+ help: "عنوان URL الذي يتم إدخاله عند إنشاء خطاف ويب جديد"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: إرسال رسالة Slack+ fields:+ message:+ label: رسالة+ description: >-+ استخدم ${TOPIC} لاسم الموضوع، و${URL} لعنوان URL المستخدم، و${REMOVED_TAGS} للوسوم المحذوفة، و${ADDED_TAGS} للوسوم المُضافة، و${ADDED_AND_REMOVED} للنص الافتراضي. متاح فقط إذا تم تعيين المشغِّل على وسوم الموضوع التي تم تغييرها.+ url:+ label: عنوان URL+ channel:+ label: القناة+ send_chat_integration_message:+ title: إرسال رسالة Chat-Integration+ fields:+ channel_name:+ label: اسم القناة+ description: "يمكنك العثور على اسم القناة في إعدادات تكامل الدردشة"+ provider:+ label: مقدِّم الخدمةdiff --git a/plugins/discourse-chat-integration/config/locales/client.be.yml b/plugins/discourse-chat-integration/config/locales/client.be.ymlnew file mode 100644index 00000000000..9c8f0d35abc--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.be.yml@@ -0,0 +1,82 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++be:+ js:+ chat_integration:+ settings: "Налады"+ all_categories: "(Усе катэгорыі)"+ delete_channel: "Выдаліць"+ edit_channel: "Рэдагаваць"+ test_modal:+ topic: "Тэма"+ close: "зачыніць"+ filter:+ mute: 'Заглушыць'+ rule_table:+ filter: "Filter"+ category: "Катэгорыя"+ tags: "Цэтлікі"+ edit_rule: "Рэдагаваць"+ delete_rule: "Выдаліць"+ edit_channel_modal:+ cancel: "Адмяніць"+ edit_rule_modal:+ cancel: Адмяніць+ type: тып+ filter: Filter+ category: Катэгорыя+ group: Група+ tags: Цэтлікі+ provider:+ telegram:+ param:+ name:+ title: "Назва"+ discord:+ param:+ name:+ title: "Назва"+ guilded:+ param:+ name:+ title: "Назва"+ matrix:+ param:+ name:+ title: "Назва"+ zulip:+ param:+ subject:+ title: "тэма"+ gitter:+ param:+ name:+ title: "Назва"+ teams:+ param:+ name:+ title: "Назва"+ powerautomate:+ param:+ name:+ title: "Назва"+ webex:+ param:+ name:+ title: "Назва"+ google:+ param:+ name:+ title: "Назва"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Паказаць выдаленыя паведамленні...+ url:+ label: URL спасылкаdiff --git a/plugins/discourse-chat-integration/config/locales/client.bg.yml b/plugins/discourse-chat-integration/config/locales/client.bg.ymlnew file mode 100644index 00000000000..2135109471a--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.bg.yml@@ -0,0 +1,85 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++bg:+ js:+ chat_integration:+ settings: "Настройки"+ all_categories: "(всички категории)"+ delete_channel: "Изтрий"+ edit_channel: "Редактирай"+ test_modal:+ topic: "Тема"+ close: "Затвори"+ type:+ normal: Нормален+ filter:+ mute: 'Заглушаване'+ rule_table:+ filter: "Филтер"+ category: "Категория"+ tags: "Етикети"+ edit_rule: "Редактирай"+ delete_rule: "Изтрий"+ edit_channel_modal:+ cancel: "Отмени"+ edit_rule_modal:+ cancel: Отмени+ type: Тип+ filter: Филтер+ category: Категория+ group: Група+ tags: Етикети+ provider:+ telegram:+ param:+ name:+ title: "Име"+ discord:+ title: "Discord"+ param:+ name:+ title: "Име"+ guilded:+ param:+ name:+ title: "Име"+ matrix:+ param:+ name:+ title: "Име"+ zulip:+ param:+ subject:+ title: "Тема"+ gitter:+ param:+ name:+ title: "Име"+ teams:+ param:+ name:+ title: "Име"+ powerautomate:+ param:+ name:+ title: "Име"+ webex:+ param:+ name:+ title: "Име"+ google:+ param:+ name:+ title: "Име"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Съобщение+ url:+ label: URLdiff --git a/plugins/discourse-chat-integration/config/locales/client.bs_BA.yml b/plugins/discourse-chat-integration/config/locales/client.bs_BA.ymlnew file mode 100644index 00000000000..d6e4257afe3--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.bs_BA.yml@@ -0,0 +1,85 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++bs_BA:+ js:+ chat_integration:+ settings: "Postavke"+ all_categories: "(sve kategorije)"+ delete_channel: "Izbriši"+ edit_channel: "Izmijeni"+ test_modal:+ topic: "Topic"+ close: "Zatvori"+ type:+ normal: Normalno+ filter:+ mute: 'Utišaj'+ rule_table:+ filter: "Filter"+ category: "Kategorija"+ tags: "Oznake"+ edit_rule: "Izmijeni"+ delete_rule: "Delete"+ edit_channel_modal:+ cancel: "Otkaži"+ edit_rule_modal:+ cancel: Otkaži+ type: Tip+ filter: Filter+ category: Kategorija+ group: Grupa+ tags: Oznake+ provider:+ telegram:+ param:+ name:+ title: "Ime"+ discord:+ title: "Discord"+ param:+ name:+ title: "Ime"+ guilded:+ param:+ name:+ title: "Ime"+ matrix:+ param:+ name:+ title: "Ime"+ zulip:+ param:+ subject:+ title: "Naslov"+ gitter:+ param:+ name:+ title: "Ime"+ teams:+ param:+ name:+ title: "Ime"+ powerautomate:+ param:+ name:+ title: "Ime"+ webex:+ param:+ name:+ title: "Ime"+ google:+ param:+ name:+ title: "Ime"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Privatna Poruka+ url:+ label: URLdiff --git a/plugins/discourse-chat-integration/config/locales/client.ca.yml b/plugins/discourse-chat-integration/config/locales/client.ca.ymlnew file mode 100644index 00000000000..d23cbf9ab0a--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.ca.yml@@ -0,0 +1,205 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ca:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Integracions de xat"+ js:+ chat_integration:+ menu_title: "Integracions de xat"+ settings: "Configuració"+ no_providers: "Heu d'habilitar alguns proveïdors en la configuració del connector"+ channels_with_errors: "Alguns canals d'aquest proveïdor van fallar l'última vegada que es van enviar missatges. Feu clic en la icona o icones d'error per a obtenir més informació."+ channel_exception: "Es va produir un error desconegut la darrera vegada que es va enviar un missatge a aquest canal."+ group_mention_template: "Mencions de: @ %{name}"+ group_message_template: "Missatges a: @ %{name}"+ choose_group: "(trieu un grup)"+ all_categories: "(totes les categories)"+ all_tags: "(totes les etiquetes)"+ create_rule: "Crea una regla"+ create_channel: "Crea un canal"+ delete_channel: "Suprimeix"+ test_channel: "Test"+ edit_channel: "Edita"+ channel_delete_confirm: "Esteu segur que voleu suprimir aquest canal? Se suprimiran totes les regles associades."+ test_modal:+ title: "Envia un missatge de prova"+ topic: "Tema"+ send: "Envia un missatge de prova"+ close: "Tanca"+ error: "S'ha produït un error desconegut en enviar el missatge. Consulteu els registres del lloc web per a obtenir més informació."+ success: "Missatge enviat correctament"+ type:+ normal: Normal+ group_message: Missatge de grup+ group_mention: Menció de grup+ filter:+ mute: 'Silenci'+ follow: 'Sols la primera publicació'+ watch: 'Totes les publicacions i respostes'+ rule_table:+ filter: "Filtre"+ category: "Categoria"+ tags: "Etiquetes"+ edit_rule: "Edita"+ delete_rule: "Suprimeix"+ edit_channel_modal:+ title: "Edita el canal"+ save: "Desa el canal"+ cancel: "Cancel·la"+ provider: "Proveïdor"+ channel_validation:+ ok: "Vàlid"+ fail: "Format no vàlid"+ edit_rule_modal:+ title: Edita la regla+ save: Desa la regla+ cancel: Cancel·la+ provider: Proveïdor+ type: Tipus+ channel: Canal+ filter: Filtre+ category: Categoria+ group: Grup+ tags: Etiquetes+ instructions:+ type: "Canvieu el tipus per a activar notificacions de missatges de grup o de mencions"+ filter: "Nivell de notificació. El silenciament sobreescriu altres regles"+ category: "Aquesta regla només s'aplicarà als temes de la categoria especificada"+ group: "Aquesta regla s'aplicarà a les publicacions que facin referència a aquest grup"+ tags: "Si s'especifica, aquesta regla sols s'aplicarà als temes que tinguin almenys una d'aquestes etiquetes."+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: Canal+ help: "per exemple #canal, @nomdusuari."+ errors:+ action_prohibited: "El bot no té permís per a publicar en aquest canal"+ channel_not_found: "El canal especificat no existeix en Slack"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "Nom"+ help: "Un nom per a descriure el canal. No es fa servir per a la connexió amb Telegram."+ chat_id:+ title: ID de xat+ help: Un número que us ha donat el bot o un identificador de canal de difusió en la forma @nomdelcanal+ errors:+ channel_not_found: "El canal especificat no existeix en Telegram"+ forbidden: "El bot no té permís per a publicar en aquest canal"+ discord:+ title: "Discord"+ param:+ name:+ title: "Nom"+ help: "Un nom per a descriure el canal. No s'utilitza per a la connexió amb Discord."+ webhook_url:+ title: URL del webhook+ help: L'URL del webhook creat en la configuració del servidor Discord+ guilded:+ param:+ name:+ title: "Nom"+ webhook_url:+ title: URL del webhook+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: Canal+ help: "per exemple #canal, @nomdusuari."+ errors:+ channel_not_found: "El canal especificat no existeix en Mattermost"+ matrix:+ title: "Matrix"+ param:+ name:+ title: "Nom"+ help: "Un nom per a descriure el canal. No s'utilitza per a la connexió amb Matrix."+ room_id:+ title: "ID de la sala"+ help: "'Identificador privat' de la sala. Hauria de ser similar a !abcdefg:matrix.org"+ errors:+ unknown_token: "El testimoni d'accés no és vàlid"+ unknown_room: "L'ID de la sala no és vàlid"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "Stream"+ help: "El nom de l'stream de Zulip al qual s'ha d'enviar el missatge, p. ex. \"general\"."+ subject:+ title: "Assumpte"+ help: "L'assumpte que s'ha de posar a aquests missatges enviats pel bot."+ errors:+ does_not_exist: "Aquest stream no existeix en Zulip"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: Canal+ help: "per exemple #canal, @nomdusuari."+ errors:+ invalid_channel: "Aquest canal no existeix en Rocket Chat"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "Nom"+ help: "El nom de la sala Gitter, p. ex. gitterHQ/services."+ webhook_url:+ title: "URL del webhook"+ help: "L'URL proporcionat quan creeu una nova integració en la sala Gitter."+ flowdock:+ title: "Flowdock"+ param:+ flow_token:+ title: "Testimoni de flux"+ help: "El testimoni de flux proporcionat després de crear una font per a un flux al qual voleu enviar missatges."+ teams:+ param:+ name:+ title: "Nom"+ webhook_url:+ title: "URL del webhook"+ powerautomate:+ param:+ name:+ title: "Nom"+ webhook_url:+ title: "URL del webhook"+ webex:+ param:+ name:+ title: "Nom"+ webhook_url:+ title: "URL del webhook"+ google:+ param:+ name:+ title: "Nom"+ webhook_url:+ title: "URL del webhook"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Missatge+ url:+ label: URL+ channel:+ label: Canal+ send_chat_integration_message:+ fields:+ provider:+ label: Proveïdordiff --git a/plugins/discourse-chat-integration/config/locales/client.cs.yml b/plugins/discourse-chat-integration/config/locales/client.cs.ymlnew file mode 100644index 00000000000..bdafabf94df--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.cs.yml@@ -0,0 +1,86 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++cs:+ js:+ chat_integration:+ settings: "Nastavení"+ all_categories: "(všechny kategorie)"+ all_tags: "(všechny štítky)"+ delete_channel: "Smazat"+ edit_channel: "Upravit"+ test_modal:+ topic: "Témata"+ close: "Zavřít"+ type:+ normal: Normální+ filter:+ mute: 'Ignorovat'+ rule_table:+ filter: "Filtr"+ category: "Kategorie"+ tags: "Tagy"+ edit_rule: "Upravit"+ delete_rule: "Smazat"+ edit_channel_modal:+ cancel: "Zrušit"+ edit_rule_modal:+ cancel: Zrušit+ type: Typ+ filter: Filtr+ category: Kategorie+ group: Skupina+ tags: Tagy+ provider:+ telegram:+ param:+ name:+ title: "Jméno"+ discord:+ title: "Discord"+ param:+ name:+ title: "Název"+ guilded:+ param:+ name:+ title: "Jméno"+ matrix:+ param:+ name:+ title: "Jméno"+ zulip:+ param:+ subject:+ title: "Předmět"+ gitter:+ param:+ name:+ title: "Jméno"+ teams:+ param:+ name:+ title: "Jméno"+ powerautomate:+ param:+ name:+ title: "Jméno"+ webex:+ param:+ name:+ title: "Jméno"+ google:+ param:+ name:+ title: "Jméno"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Odeslat+ url:+ label: URLdiff --git a/plugins/discourse-chat-integration/config/locales/client.da.yml b/plugins/discourse-chat-integration/config/locales/client.da.ymlnew file mode 100644index 00000000000..25697e6d427--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.da.yml@@ -0,0 +1,103 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++da:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Chat Integrationer"+ js:+ chat_integration:+ menu_title: "Chat Integrationer"+ settings: "Indstillinger"+ no_providers: "Du skal aktivere nogle udbydere i udvidelses-indstillingerne"+ channels_with_errors: "Nogle kanaler for denne udbyder gav fejl sidste gang beskeder blev sendt. Klik på fejlikonet/fejlikonerne for at få mere at vide."+ channel_exception: "Der opstod en ukendt fejl, da en meddelelse sidst blev sendt til denne kanal."+ group_message_template: "Meddelelser til: @%{name}"+ choose_group: "(vælg en gruppe)"+ all_categories: "(alle kategorier)"+ all_tags: "(alle mærker)"+ create_rule: "Opret Regel"+ create_channel: "Opret Kanal"+ delete_channel: "Slet"+ test_channel: "Test"+ edit_channel: "Rediger"+ channel_delete_confirm: "Er du sikker på, at du vil slette denne kanal? Alle tilknyttede regler vil blive slettet."+ test_modal:+ title: "Send en testmeddelelse"+ topic: "Emne"+ send: "Send Testmeddelelse"+ close: "Luk"+ type:+ normal: Normal+ filter:+ mute: 'Mute'+ rule_table:+ filter: "Filter"+ category: "Kategori"+ tags: "Tags"+ edit_rule: "Rediger"+ delete_rule: "Slet"+ edit_channel_modal:+ cancel: "Afbryd"+ edit_rule_modal:+ cancel: Afbryd+ type: Type+ filter: Filter+ category: Kategori+ group: Gruppe+ tags: Tags+ provider:+ telegram:+ param:+ name:+ title: "Navn"+ discord:+ title: "Discord"+ param:+ name:+ title: "Navn"+ guilded:+ param:+ name:+ title: "Navn"+ matrix:+ param:+ name:+ title: "Navn"+ zulip:+ param:+ subject:+ title: "Subjekt"+ gitter:+ param:+ name:+ title: "Navn"+ teams:+ param:+ name:+ title: "Navn"+ powerautomate:+ param:+ name:+ title: "Navn"+ webex:+ param:+ name:+ title: "Navn"+ google:+ param:+ name:+ title: "Navn"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Meddelelse+ url:+ label: URLdiff --git a/plugins/discourse-chat-integration/config/locales/client.de.yml b/plugins/discourse-chat-integration/config/locales/client.de.ymlnew file mode 100644index 00000000000..3e9ee62fd22--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.de.yml@@ -0,0 +1,242 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++de:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Chat-Integrationen"+ js:+ chat_integration:+ menu_title: "Chat-Integrationen"+ settings: "Einstellungen"+ no_providers: "Du musst Provider in den Plug-in-Einstellungen aktivieren"+ channels_with_errors: "Das letzte Versenden von Nachrichten ist bei einigen Kanälen dieses Providers fehlgeschlagen. Klicke auf das/die Fehlersymbol(e), um mehr zu erfahren."+ channel_exception: "Ein unbekannter Fehler ist aufgetreten, als zuletzt eine Nachricht an diesen Kanal gesendet wurde."+ group_mention_template: "Erwähnungen von: @%{name}"+ group_message_template: "Nachrichten an: @%{name}"+ choose_group: "(wähle eine Gruppe)"+ all_categories: "(alle Kategorien)"+ all_tags: "(alle Schlagwörter)"+ create_rule: "Regel erstellen"+ create_channel: "Kanal erstellen"+ delete_channel: "Löschen"+ test_channel: "Test"+ edit_channel: "Bearbeiten"+ channel_delete_confirm: "Bist du sicher, dass du diesen Kanal löschen möchtest? Alle dazugehörigen Regeln werden gelöscht."+ test_modal:+ title: "Test-Nachricht senden"+ topic: "Thema"+ send: "Test-Nachricht senden"+ close: "Schließen"+ error: "Ein unbekannter Fehler ist beim Senden der Nachricht aufgetreten. Bitte überprüfe die Website-Protokolle für weitere Informationen."+ success: "Nachricht erfolgreich versendet"+ type:+ normal: Normal+ group_message: Gruppennachricht+ group_mention: Gruppenerwähnung+ filter:+ mute: 'Stummschalten'+ follow: 'Nur der erste Beitrag'+ watch: 'Alle Beiträge und Antworten'+ thread: 'Alle Beiträge mit Thread-Antworten'+ rule_table:+ filter: "Filter"+ category: "Kategorie"+ tags: "Schlagwörter"+ edit_rule: "Bearbeiten"+ delete_rule: "Löschen"+ edit_channel_modal:+ title: "Kanal bearbeiten"+ save: "Kanal speichern"+ cancel: "Abbrechen"+ provider: "Provider"+ channel_validation:+ ok: "Gültig"+ fail: "Ungültiges Format"+ edit_rule_modal:+ title: Regel bearbeiten+ save: Regel speichern+ cancel: Abbrechen+ provider: Provider+ type: Typ+ channel: Kanal+ filter: Filter+ category: Kategorie+ group: Gruppe+ tags: Schlagwörter+ instructions:+ type: "Ändere den Typ, um Benachrichtigungen für Gruppennachrichten und -erwähnungen auszulösen"+ filter: "Benachrichtigungsstufe. „Stummschalten“ überschreibt andere zutreffende Regeln"+ category: "Diese Regel wird nur auf Themen in der angegebenen Kategorie angewendet"+ group: "Diese Regel wird auf Beiträge angewendet, die diese Gruppe referenzieren"+ tags: "Wenn angegeben, wird diese Regel nur auf Themen angewendet, die mindestens eines der angegebenen Schlagwörter haben"+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: Kanal+ help: "z. B. #kanal, @benutzername."+ errors:+ action_prohibited: "Der Bot hat keine Berechtigung, in diesem Kanal zu schreiben"+ channel_not_found: "Der angegebene Kanal existiert nicht auf Slack"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "Name"+ help: "Ein Name, um den Kanal zu beschreiben. Dieser wird nicht verwendet, um die Verbindung mit Telegram herzustellen."+ chat_id:+ title: Chat-ID+ help: Eine Nummer, die du vom Bot erhalten hast, oder eine Broadcast-Kanal-Kennung in der Form @channelname+ errors:+ channel_not_found: "Der angegebene Kanal existiert nicht auf Telegram"+ forbidden: "Der Bot hat keine Berechtigung, in diesem Kanal zu schreiben"+ discord:+ title: "Discord"+ param:+ name:+ title: "Name"+ help: "Ein Name, um den Kanal zu beschreiben. Dieser wird nicht verwendet, um die Verbindung mit Discord herzustellen."+ webhook_url:+ title: Webhook-URL+ help: Die Webhook-URL, die in den Einstellungen deines Discord-Servers erstellt wurde+ guilded:+ title: "Guilded"+ param:+ name:+ title: "Name"+ help: "Ein Name, um den Kanal zu beschreiben. Dieser wird nicht verwendet, um die Verbindung mit Guilded herzustellen"+ webhook_url:+ title: Webhook-URL+ help: Die Webhook-URL, die in den Einstellungen deines Guilded-Servers erstellt wurde+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: Kanal+ help: "z. B. #kanal, @benutzername."+ errors:+ channel_not_found: "Der angegebene Kanal existiert nicht in Mattermost"+ matrix:+ title: "Matrix"+ param:+ name:+ title: "Name"+ help: "Ein Name, um den Kanal zu beschreiben. Dieser wird nicht verwendet, um die Verbindung zu Matrix herzustellen."+ room_id:+ title: "Raum-ID"+ help: "Die „private Kennung“ für den Raum. Sie sollte etwa so aussehen: !abcdefg:matrix.org"+ errors:+ unknown_token: "Zugriffstoken ist ungültig"+ unknown_room: "Raum-ID ist ungültig"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "Stream"+ help: "Der Name des Zulip-Streams, an den die Nachricht gesendet werden soll, z. B. „allgemein“"+ subject:+ title: "Betreff"+ help: "Der Betreff, den die Nachrichten haben sollen, die der Bot versendet"+ errors:+ does_not_exist: "Dieser Stream existiert nicht auf Zulip"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: Kanal+ help: "z. B. #kanal, @benutzername."+ errors:+ invalid_channel: "Dieser Kanal exisitert nicht in Rocket Chat"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "Name"+ help: "Der Name eines Gitter-Raums, z. B. gitterHQ/services"+ webhook_url:+ title: "Webhook-URL"+ help: "Die URL, welche beim Erstellen einer neuen Integration in einem Gitter-Raum angegeben wird."+ flowdock:+ title: "Flowdock"+ param:+ flow_token:+ title: "Flow-Token"+ help: "Das Flow-Token, das nach dem Erstellen einer Quelle für einen Flow angegeben wird, an den du Nachrichten senden möchtest."+ groupme:+ title: "GroupMe"+ param:+ groupme_instance_name:+ title: "Name der GroupMe-Instanz"+ help: "Name der GroupMe-Instanz, wie er in den Website-Einstellungen aufgeführt ist. Verwende „all“, um an alle Instanzen zu senden"+ errors:+ not_found: "Der Pfad, unter dem du versucht hast, deine Nachricht zu veröffentlichen, wurde nicht gefunden. Überprüfe die Bot-ID in den Website-Einstellungen."+ teams:+ title: "Microsoft Teams"+ param:+ name:+ title: "Name"+ help: "Ein Teams-Kanalname, z. B. „Discourse“"+ webhook_url:+ title: "Webhook-URL"+ help: "Die URL, welche beim Erstellen eines neuen eingehenden Webhook angegeben wird"+ errors:+ invalid_channel: "Dieser Kanal existiert nicht in Microsoft Teams"+ powerautomate:+ title: "Microsoft Power Automate"+ param:+ name:+ title: "Name"+ help: "Ein Name für den Kanal (wird nur in der Discourse-Administrationsoberfläche angezeigt)"+ webhook_url:+ title: "Webhook-URL"+ help: "Die URL, welche beim Erstellen eines neuen eingehenden Webhook angegeben wird"+ errors:+ invalid_webhook: "Diese Webhook-URL ist ungültig."+ webex:+ title: "Webex Teams"+ param:+ name:+ title: "Name"+ help: "Ein Webex-Raumname, z. B. „Discourse“"+ webhook_url:+ title: "Webhook-URL"+ help: "Die URL, welche beim Erstellen eines neuen eingehenden Webhook angegeben wird"+ errors:+ invalid_channel: "Dieser Kanal existiert nicht in Webex"+ google:+ title: "Google Chat"+ param:+ name:+ title: "Name"+ help: "Ein Name für den Kanal (wird nur in der Discourse-Administrationsoberfläche angezeigt)"+ webhook_url:+ title: "Webhook-URL"+ help: "Die URL, welche beim Erstellen eines neuen Webhook angegeben wird"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Slack-Nachricht senden+ fields:+ message:+ label: Nachricht+ description: >-+ Nutze ${TOPIC} für den Themennamen, ${URL} für die verwendete URL, ${REMOVED_TAGS} für entfernte Schlagwörter, ${ADDED_TAGS} für hinzugefügte Schlagwörter, ${ADDED_AND_REMOVED} für den Standardtext. Nur verfügbar, wenn der Auslöser auf „Schlagwörter eines Themas geändert“ eingestellt ist.+ url:+ label: URL+ channel:+ label: Kanal+ send_chat_integration_message:+ title: Chat-Integration-Nachricht senden+ fields:+ channel_name:+ label: Kanalname+ description: "Du findest den Kanalnamen in den Chat-Integration-Einstellungen"+ provider:+ label: Anbieterdiff --git a/plugins/discourse-chat-integration/config/locales/client.el.yml b/plugins/discourse-chat-integration/config/locales/client.el.ymlnew file mode 100644index 00000000000..6e81cb0bd4b--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.el.yml@@ -0,0 +1,89 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++el:+ js:+ chat_integration:+ settings: "Ρυθμίσεις"+ all_categories: "(όλες οι κατηγορίες)"+ all_tags: "(όλες οι ετικέτες)"+ delete_channel: "Σβήσιμο"+ test_channel: "Δοκιμή"+ edit_channel: "Επεξεργασία"+ test_modal:+ topic: "Νήμα"+ close: "Κλείσιμο"+ type:+ normal: Φυσιολογικά+ filter:+ mute: 'Σίγαση'+ rule_table:+ filter: "Φίλτρο"+ category: "Κατηγορία"+ tags: "Ετικέτες"+ edit_rule: "Επεξεργασία"+ delete_rule: "Σβήσιμο"+ edit_channel_modal:+ cancel: "Άκυρο"+ edit_rule_modal:+ cancel: Άκυρο+ type: Τύπος+ filter: Φίλτρο+ category: Κατηγορία+ group: Ομάδα+ tags: Ετικέτες+ provider:+ telegram:+ param:+ name:+ title: "Όνομα"+ discord:+ title: "Discord"+ param:+ name:+ title: "Όνομα"+ guilded:+ param:+ name:+ title: "Όνομα"+ matrix:+ param:+ name:+ title: "Όνομα"+ zulip:+ param:+ subject:+ title: "Αντικείμενο"+ gitter:+ param:+ name:+ title: "Όνομα"+ teams:+ param:+ name:+ title: "Όνομα"+ powerautomate:+ param:+ name:+ title: "Όνομα"+ webhook_url:+ title: "Webhook URL"+ webex:+ param:+ name:+ title: "Όνομα"+ google:+ param:+ name:+ title: "Όνομα"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Μήνυμα+ url:+ label: URLdiff --git a/plugins/discourse-chat-integration/config/locales/client.en.yml b/plugins/discourse-chat-integration/config/locales/client.en.ymlnew file mode 100644index 00000000000..a65c7bd85a2--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.en.yml@@ -0,0 +1,291 @@+en:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Chat Integrations"+ js:+ chat_integration:+ menu_title: "Chat Integrations"+ settings: "Settings"+ no_providers: "You need to enable some providers in the plugin settings"+ channels_with_errors: "Some channels for this provider failed last time messages were sent. Click the error icon(s) to learn more."+ channel_exception: "An unknown error occured when a message was last sent to this channel."+ group_mention_template: "Mentions of: @%{name}"+ group_message_template: "Messages to: @%{name}"+ choose_group: "(choose a group)"+ all_categories: "(all categories)"+ all_tags: "(all tags)"+ create_rule: "Create Rule"+ create_channel: "Create Channel"+ delete_channel: "Delete"+ test_channel: "Test"+ edit_channel: "Edit"+ channel_delete_confirm: "Are you sure you want to delete this channel? All associated rules will be deleted."+ test_modal:+ title: "Send a test message"+ topic: "Topic"+ send: "Send Test Message"+ close: "Close"+ error: "An unknown error occured while sending the message. Check the site logs for more information."+ success: "Message sent successfully"+ type:+ normal: Normal+ group_message: Group Message+ group_mention: Group Mention+ filter:+ mute: 'Mute'+ follow: 'First post only'+ watch: 'All posts and replies'+ thread: 'All posts with threaded replies'+ rule_table:+ filter: "Filter"+ category: "Category"+ tags: "Tags"+ edit_rule: "Edit"+ delete_rule: "Delete"+ edit_channel_modal:+ title: "Edit Channel"+ save: "Save Channel"+ cancel: "Cancel"+ provider: "Provider"+ channel_validation:+ ok: "Valid"+ fail: "Invalid format"+ edit_rule_modal:+ title: Edit Rule+ save: Save Rule+ cancel: Cancel+ provider: Provider+ type: Type+ channel: Channel+ filter: Filter+ category: Category+ group: Group+ tags: Tags+ instructions:+ type: "Change the type to trigger notifications for group messages or mentions"+ filter: "Notification level. Mute overrides other matching rules"+ category: "This rule will only apply to topics in the specified category"+ group: "This rule will apply to posts referencing this group"+ tags: "If specified, this rule will only apply to topics which have at least one of these tags"++ provider:+ #######################################+ ########### SLACK STRINGS #############+ #######################################+ slack:+ title: "Slack"+ param:+ identifier:+ title: Channel+ help: "e.g. #channel, @username."+ errors:+ action_prohibited: "The bot does not have permission to post to that channel"+ channel_not_found: "The specified channel does not exist on slack"++ #######################################+ ########## TELEGRAM STRINGS ###########+ #######################################+ telegram:+ title: "Telegram"+ param:+ name:+ title: "Name"+ help: "A name to describe the channel. It is not used for the connection to Telegram."+ chat_id:+ title: Chat ID+ help: A number given to you by the bot, or a broadcast channel identifier in the form @channelname+ errors:+ channel_not_found: "The specified channel does not exist on Telegram"+ forbidden: "The bot does not have permission to post to this channel"++ #######################################+ ########### DISCORD STRINGS ###########+ #######################################+ discord:+ title: "Discord"+ param:+ name:+ title: "Name"+ help: "A name to describe the channel. It is not used for the connection to Discord."+ webhook_url:+ title: Webhook URL+ help: The webhook URL created in your Discord server settings++ #######################################+ ########### GUILDED STRINGS ###########+ #######################################+ guilded:+ title: "Guilded"+ param:+ name:+ title: "Name"+ help: "A name to describe the channel. It is not used for the connection to Guilded"+ webhook_url:+ title: Webhook URL+ help: The webhook URL created in your Guilded server settings++ #######################################+ ######### MATTERMOST STRINGS ##########+ #######################################+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: Channel+ help: "e.g. #channel, @username."+ errors:+ channel_not_found: "The specified channel does not exist on Mattermost"++ #######################################+ ############ MATRIX STRINGS ###########+ #######################################+ matrix:+ title: "Matrix"+ param:+ name:+ title: "Name"+ help: "A name to describe the channel. It is not used for the connection to Matrix."+ room_id:+ title: "Room ID"+ help: "The 'private identifier' for the room. It should look something like !abcdefg:matrix.org"+ errors:+ unknown_token: "Access token is invalid"+ unknown_room: "Room ID is invalid"++ #######################################+ ############# ZULIP STRINGS ###########+ #######################################+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "Stream"+ help: "The name of the Zulip stream the message should be sent to. e.g. 'general'"+ subject:+ title: "Subject"+ help: "The subject that these messages sent by the bot should be given"+ errors:+ does_not_exist: "That stream does not exist on Zulip"++ #######################################+ ######## ROCKET CHAT STRINGS ##########+ #######################################+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: Channel+ help: "e.g. #channel, @username."+ errors:+ invalid_channel: "That channel does not exist on Rocket Chat"++ #######################################+ ############ GITTER STRINGS ###########+ #######################################+ gitter:+ title: "Gitter"+ param:+ name:+ title: "Name"+ help: "A Gitter room's name e.g. gitterHQ/services."+ webhook_url:+ title: "Webhook URL"+ help: "The URL provided when you create a new integration in a Gitter room."++ #######################################+ ########## FLOWDOCK STRINGS ###########+ #######################################+ flowdock:+ title: "Flowdock"+ param:+ flow_token:+ title: "Flow Token"+ help: "The flow token provided after creating a source for a flow into which you want to send messages."+ #######################################+ ########## GROUPME STRINGS ###########+ #######################################+ groupme:+ title: "GroupMe"+ param:+ groupme_instance_name:+ title: "GroupMe Instance Name"+ help: "name of the Groupme instance as listed in Site Settings. use 'all' to send to all instances"+ errors:+ not_found: "The path you attempted to post your message to was not found. Check the Bot ID in Site Settings."+ ############################################+ ######### MICROSOFT TEAMS STRINGS ##########+ ############################################+ teams:+ title: "Microsoft Teams"+ param:+ name:+ title: "Name"+ help: "A Teams channel name e.g. discourse"+ webhook_url:+ title: "Webhook URL"+ help: "The URL provided when you create a new incoming webhook"+ errors:+ invalid_channel: "That channel does not exist on Microsoft Teams"+ #####################################################+ ######### MICROSOFT POWER AUTOMATE STRINGS ##########+ #####################################################+ powerautomate:+ title: "Microsoft Power Automate"+ param:+ name:+ title: "Name"+ help: "A name for the channel (only shown in the Discourse admin interface)"+ webhook_url:+ title: "Webhook URL"+ help: "The URL provided when you create a new incoming webhook"+ errors:+ invalid_webhook: "That webhook URL is not valid."+ ########################################+ ######### CISCO WEBEX STRINGS ##########+ ########################################+ webex:+ title: "Webex Teams"+ param:+ name:+ title: "Name"+ help: "A Webex space name e.g. discourse"+ webhook_url:+ title: "Webhook URL"+ help: "The URL provided when you create a new incoming webhook"+ errors:+ invalid_channel: "That channel does not exist on Webex"+ google:+ title: "Google Chat"+ param:+ name:+ title: "Name"+ help: "A name for the channel (only shown in the Discourse admin interface)"+ webhook_url:+ title: "Webhook URL"+ help: "The URL provided when you create a new webhook"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Send Slack message+ fields:+ message:+ label: Message+ description: >-+ Use ${TOPIC} for topic name, ${URL} for used URL, ${REMOVED_TAGS} for removed tags, ${ADDED_TAGS} for added tags,+ ${ADDED_AND_REMOVED} for default text.+ only available if trigger is set to Topic tags changed.+ url:+ label: URL+ channel:+ label: Channel++ send_chat_integration_message:+ title: Send Chat-Integration message+ fields:+ channel_name:+ label: Channel name+ description: "You can find the channel name in the Chat Integration settings"+ provider:+ label: Providerdiff --git a/plugins/discourse-chat-integration/config/locales/client.en_GB.yml b/plugins/discourse-chat-integration/config/locales/client.en_GB.ymlnew file mode 100644index 00000000000..2d4fa180ec7--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.en_GB.yml@@ -0,0 +1,7 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++en_GB:diff --git a/plugins/discourse-chat-integration/config/locales/client.es.yml b/plugins/discourse-chat-integration/config/locales/client.es.ymlnew file mode 100644index 00000000000..427b4b89c32--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.es.yml@@ -0,0 +1,242 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++es:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Integraciones de chat"+ js:+ chat_integration:+ menu_title: "Integraciones de chat"+ settings: "Ajustes"+ no_providers: "Necesitas habilitar algún proveedor en los ajustes del plugin"+ channels_with_errors: "Algunos canales de este proveedor fallaron la última vez que se enviaron mensajes. Haz clic en los iconos de error para obtener más información."+ channel_exception: "Se produjo un error desconocido la última vez que se envió un mensaje a este canal."+ group_mention_template: "Menciones de: @%{name}"+ group_message_template: "Mensajes a: @%{name}"+ choose_group: "(elige un grupo)"+ all_categories: "(todas las categorías)"+ all_tags: "(todas las etiquetas)"+ create_rule: "Crear regla"+ create_channel: "Crear canal"+ delete_channel: "Eliminar"+ test_channel: "Probar"+ edit_channel: "Editar"+ channel_delete_confirm: "¿Seguro que quieres eliminar este canal? Todas las reglas relacionadas se eliminarán."+ test_modal:+ title: "Enviar un mensaje de prueba"+ topic: "Tema"+ send: "Enviar mensaje de prueba"+ close: "Cerrar"+ error: "Se ha producido un error desconocido al enviar el mensaje. Comprueba los registros del sitio para obtener más información."+ success: "Mensaje enviado correctamente."+ type:+ normal: Normal+ group_message: Mensaje grupal+ group_mention: Mención grupal+ filter:+ mute: 'Silenciar'+ follow: 'Solo la primera publicación'+ watch: 'Todas las publicaciones y respuestas'+ thread: 'Todas las publicaciones con respuestas en hilo'+ rule_table:+ filter: "Filtrar"+ category: "Categoría"+ tags: "Etiquetas"+ edit_rule: "Editar"+ delete_rule: "Eliminar"+ edit_channel_modal:+ title: "Editar canal"+ save: "Guardar canal"+ cancel: "Cancelar"+ provider: "Proveedor"+ channel_validation:+ ok: "Válido"+ fail: "Formato no válido"+ edit_rule_modal:+ title: Editar regla+ save: Guardar regla+ cancel: Cancelar+ provider: Proveedor+ type: Tipo+ channel: Canal+ filter: Filtro+ category: Categoría+ group: Grupo+ tags: Etiquetas+ instructions:+ type: "Cambia el tipo para que aparezcan notificaciones de menciones o mensajes de grupo"+ filter: "Nivel de notificación. El silenciamiento anula otras reglas de coincidencia"+ category: "Esta regla solo se aplicará a los temas en la categoría especificada."+ group: "Esta regla se aplicará a las publicaciones que hagan referencia a este grupo."+ tags: "Si se especifica, esta regla solo se aplicará a los temas que tengan al menos una de estas etiquetas"+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: Canal+ help: "por ejemplo, #canal, @nombredeusuario."+ errors:+ action_prohibited: "Este bot no tiene permiso para publicar en ese canal."+ channel_not_found: "El canal especificado no existe en Slack"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "Nombre"+ help: "Un nombre para describir el canal. No se usa en la conexión con Telegram."+ chat_id:+ title: ID del chat+ help: Un número que el bot te ha dado o un identificador de canal de difusión en forma de @nombredelcanal+ errors:+ channel_not_found: "El canal especificado no existe en Telegram"+ forbidden: "El bot no tiene permiso para publicar en este canal"+ discord:+ title: "Discord"+ param:+ name:+ title: "Nombre"+ help: "Un nombre para describir el canal. No se usará para la conexión con Discord."+ webhook_url:+ title: URL del webhook+ help: La URL del webhook creada en los ajustes de tu servidor de Discord+ guilded:+ title: "Guilded"+ param:+ name:+ title: "Nombre"+ help: "Un nombre para describir el canal. No se usará para la conexión con Guilded"+ webhook_url:+ title: URL del webhook+ help: La URL del webhook creada en los ajustes de tu servidor de Guilded+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: Canal+ help: "por ejemplo, #canal, @nombredeusuario."+ errors:+ channel_not_found: "El canal especificado no existe en Mattermost"+ matrix:+ title: "Matrix"+ param:+ name:+ title: "Nombre"+ help: "Un nombre para describir el canal. No se usa para la conexión con Matrix."+ room_id:+ title: "ID de la sala"+ help: "El «identificador privado» de la sala. Debería ser algo como !abcdefg:matrix.org"+ errors:+ unknown_token: "Token de acceso no válido"+ unknown_room: "La ID de la sala no es válida"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "Stream"+ help: "El nombre del stream de Zulip al que el mensaje debería enviarse. Ejemplo: «general»"+ subject:+ title: "Asunto"+ help: "El asunto que el mensaje enviado por el bot debería tener"+ errors:+ does_not_exist: "El stream especificado no existe en Zulip"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: Canal+ help: "por ejemplo, #canal, @nombredeusuario."+ errors:+ invalid_channel: "Ese canal no existe en Rocket Chat"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "Nombre"+ help: "El nombre de la sala de Gitter. Por ejemplo: gitterHQ/services."+ webhook_url:+ title: "URL del webhook"+ help: "La URL que se proporciona al crear una nueva integración en una sala de Gitter."+ flowdock:+ title: "Flowdock"+ param:+ flow_token:+ title: "Token del flujo"+ help: "El token de flujo que se proporciona después de crear un origen para un flujo al que deseas enviar mensajes."+ groupme:+ title: "GroupMe"+ param:+ groupme_instance_name:+ title: "Nombre de instancia de GroupMe"+ help: "nombre de la instancia de Groupme tal como se indica en Configuración del sitio. Utiliza 'all' para enviar a todas las instancias"+ errors:+ not_found: "No se encontró la ruta en la que intentaste publicar tu mensaje. Comprueba el ID del bot en la configuración del sitio."+ teams:+ title: "Microsoft Teams"+ param:+ name:+ title: "Nombre"+ help: "Un nombre de canal de Teams, por ejemplo, discourse"+ webhook_url:+ title: "URL del webhook"+ help: "La URL proporcionada al crear un nuevo webhook entrante"+ errors:+ invalid_channel: "Ese canal no existe en Microsoft Teams"+ powerautomate:+ title: "Microsoft Power Automate"+ param:+ name:+ title: "Nombre"+ help: "Un nombre para el canal (solo se muestra en la interfaz de administración de Discourse)"+ webhook_url:+ title: "URL del webhook"+ help: "La URL proporcionada al crear un nuevo webhook entrante"+ errors:+ invalid_webhook: "Esa URL de webhook no es válida."+ webex:+ title: "Webex Teams"+ param:+ name:+ title: "Nombre"+ help: "Un nombre de espacio de Webex, por ejemplo, discourse"+ webhook_url:+ title: "URL del webhook"+ help: "La URL proporcionada al crear un nuevo webhook entrante"+ errors:+ invalid_channel: "Ese canal no existe en Webex"+ google:+ title: "Google Chat"+ param:+ name:+ title: "Nombre"+ help: "Un nombre para el canal (solo se muestra en la interfaz de administración de Discourse)"+ webhook_url:+ title: "URL del webhook"+ help: "La URL proporcionada al crear un nuevo webhook"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Enviar mensaje de Slack+ fields:+ message:+ label: Mensaje+ description: >-+ Utiliza ${TOPIC} para el nombre del tema, ${URL} para la URL utilizada, ${REMOVED_TAGS} para las etiquetas eliminadas, ${ADDED_TAGS} para las etiquetas añadidas, ${ADDED_AND_REMOVED} para el texto por defecto. Solo disponible si el activador que está configurado como Etiquetas del tema ha cambiado.+ url:+ label: URL+ channel:+ label: Canal+ send_chat_integration_message:+ title: Enviar mensaje de Chat-Integration+ fields:+ channel_name:+ label: Nombre del canal+ description: "Puedes encontrar el nombre del canal en los ajustes de Chat Integration"+ provider:+ label: Proveedordiff --git a/plugins/discourse-chat-integration/config/locales/client.et.yml b/plugins/discourse-chat-integration/config/locales/client.et.ymlnew file mode 100644index 00000000000..cf83e438bf6--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.et.yml@@ -0,0 +1,142 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++et:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Jututoa integratsioonid"+ js:+ chat_integration:+ menu_title: "Jututoa integratsioonid"+ settings: "Seaded"+ choose_group: "(vali grupp)"+ all_categories: "(kõik kategooriad)"+ all_tags: "(kõik sildid)"+ create_rule: "Loo reegel"+ create_channel: "Loo kanal"+ delete_channel: "Kustuta"+ test_channel: "Proovi"+ edit_channel: "Muuda"+ test_modal:+ title: "Saada proovisõnum"+ topic: "Teema"+ send: "Saada proovisõnum"+ close: "Sulge"+ success: "Sõnum on saadetud"+ type:+ normal: Tavaline+ group_message: Grupisõnumid+ filter:+ mute: 'Vaigista'+ follow: 'Ainult esimene postitus'+ watch: 'Kõik postitused ja vastused'+ rule_table:+ filter: "Filter"+ category: "Kategooria"+ tags: "Sildid"+ edit_rule: "Muuda"+ delete_rule: "Kustuta"+ edit_channel_modal:+ title: "Muuda kanalit"+ save: "Salvesta kanal"+ cancel: "Loobu"+ provider: "Teenusepakkuja"+ channel_validation:+ ok: "Kehtiv"+ fail: "Vigane vorming"+ edit_rule_modal:+ title: Muuda reeglit+ save: Salvesta reegel+ cancel: Tühista+ provider: Teenusepakkuja+ type: Tüüp+ channel: Kanal+ filter: Filter+ category: Kategooria+ group: Grupp+ tags: Sildid+ provider:+ slack:+ param:+ identifier:+ title: Kanal+ help: "nt. #channel, @username."+ telegram:+ title: "Telegramm"+ param:+ name:+ title: "Nimi"+ chat_id:+ title: Vestluse ID+ discord:+ param:+ name:+ title: "Nimi"+ guilded:+ param:+ name:+ title: "Nimi"+ mattermost:+ param:+ identifier:+ title: Kanal+ help: "nt. #kanal, @kasutajanimi."+ matrix:+ param:+ name:+ title: "Nimi"+ room_id:+ title: "Toa ID"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "Voog"+ subject:+ title: "Teema"+ rocketchat:+ param:+ identifier:+ title: Kanal+ help: "nt. #channel, @username."+ gitter:+ param:+ name:+ title: "Nimi"+ flowdock:+ title: "Flowdock"+ teams:+ param:+ name:+ title: "Nimi"+ powerautomate:+ param:+ name:+ title: "Nimi"+ webex:+ param:+ name:+ title: "Nimi"+ google:+ param:+ name:+ title: "Nimi"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Sõnum+ url:+ label: URL+ channel:+ label: Kanal+ send_chat_integration_message:+ fields:+ provider:+ label: Teenusepakkujadiff --git a/plugins/discourse-chat-integration/config/locales/client.fa_IR.yml b/plugins/discourse-chat-integration/config/locales/client.fa_IR.ymlnew file mode 100644index 00000000000..006503a44ab--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.fa_IR.yml@@ -0,0 +1,158 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++fa_IR:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "یکپارچگی گفتگو"+ js:+ chat_integration:+ menu_title: "یکپارچگی گفتگو"+ settings: "تنظیمات"+ group_mention_template: "اشاره شده: @%{name}"+ group_message_template: "پیغامها به: @%{name}"+ choose_group: "(یک گروه را انتخاب کنید)"+ all_categories: "(تمام دسته بندی ها)"+ all_tags: "(تمام برچسبها)"+ create_rule: "ایجاد قانون"+ create_channel: "ایجاد کانال"+ delete_channel: "حذف"+ test_channel: "آزمایش"+ edit_channel: "ویرایش"+ channel_delete_confirm: "آیا از حذف این کانال مطمئن هستید؟ تمام قوانین مرتبط حذف خواهد شد."+ test_modal:+ title: "ارسال پیغام آزمایشی"+ topic: "موضوعات"+ send: "ارسال پیغام آزمایشی"+ close: "بستن"+ success: "پیغام با موفقیت ارسال شد"+ type:+ normal: معمولی+ group_message: پیغام گروه+ group_mention: اشاره گروهی+ filter:+ mute: 'بی صدا'+ follow: 'فقط اولین نوشته'+ watch: 'همه نوشتهها و پاسخها'+ rule_table:+ filter: "فیلتر"+ category: "دستهبندی"+ tags: "برچسبها"+ edit_rule: "ویرایش"+ delete_rule: "حذف"+ edit_channel_modal:+ title: "ویرایش کانال"+ save: "ذخیره کانال"+ cancel: "لغو کردن"+ provider: "ارائهدهنده"+ channel_validation:+ ok: "معتبر"+ edit_rule_modal:+ title: ویرایش قانون+ save: ذخیره قانون+ cancel: لغو کردن+ provider: ارائهدهنده+ type: نوع+ channel: کانال+ filter: فیلتر+ category: دستهبندی+ group: گروه+ tags: برچسبها+ provider:+ slack:+ title: "اسلک"+ param:+ identifier:+ title: کانال+ help: "به عنوان مثال #channel، @username."+ telegram:+ title: "تلگرام"+ param:+ name:+ title: "نام"+ discord:+ title: "دیسکورد"+ param:+ name:+ title: "نام"+ webhook_url:+ title: نشانی اینترنتی وبهوک+ guilded:+ title: "Guilded"+ param:+ name:+ title: "نام"+ help: "نامی برای توصیف کانال. برای اتصال به Guilded استفاده نمیشود"+ webhook_url:+ title: نشانی اینترنتی وبهوک+ help: نشانی اینترنتی وبهوک که در سرور Guilded شما ایجاد شده+ mattermost:+ param:+ identifier:+ title: کانال+ help: "به عنوان مثال #channel، @username."+ matrix:+ param:+ name:+ title: "نام"+ zulip:+ param:+ subject:+ title: "موضوع"+ rocketchat:+ param:+ identifier:+ title: کانال+ help: "به عنوان مثال #channel، @username."+ gitter:+ param:+ name:+ title: "نام"+ webhook_url:+ title: "نشانی اینترنتی وبهوک"+ teams:+ param:+ name:+ title: "نام"+ webhook_url:+ title: "نشانی اینترنتی وبهوک"+ powerautomate:+ param:+ name:+ title: "نام"+ webhook_url:+ title: "نشانی اینترنتی وبهوک"+ webex:+ param:+ name:+ title: "نام"+ webhook_url:+ title: "نشانی اینترنتی وبهوک"+ google:+ param:+ name:+ title: "نام"+ webhook_url:+ title: "نشانی اینترنتی وبهوک"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: ارسال پیام اسلک+ fields:+ message:+ label: پیام+ url:+ label: نشانی اینترنتی+ channel:+ label: کانال+ send_chat_integration_message:+ fields:+ channel_name:+ label: نام کانال+ provider:+ label: ارائهدهندهdiff --git a/plugins/discourse-chat-integration/config/locales/client.fi.yml b/plugins/discourse-chat-integration/config/locales/client.fi.ymlnew file mode 100644index 00000000000..a171edd358a--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.fi.yml@@ -0,0 +1,242 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++fi:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Chat-integraatiot"+ js:+ chat_integration:+ menu_title: "Chat-integraatiot"+ settings: "Asetukset"+ no_providers: "Sinun täytyy sallia jotkin palveluntarjoajat lisäosien asetuksissa"+ channels_with_errors: "Jotkin tämän palveluntuottajan kanavista pettivät viimeksi, kun viestejä lähetettiin. Klikkaa vikaikonia/ikoneita saadaksesi lisää tietoa."+ channel_exception: "Tuntematon virhe tapahtui viimeksi, kun viesti lähetettiin tälle kanavalle. "+ group_mention_template: "Maininnat: @%{name}"+ group_message_template: "Viestejä käyttäjälle: @%{name}"+ choose_group: "(valitse ryhmä) "+ all_categories: "(kaikki alueet)"+ all_tags: "(kaikki tunnisteet) "+ create_rule: "Luo sääntö"+ create_channel: "Luo kanava"+ delete_channel: "Poista"+ test_channel: "Testi"+ edit_channel: "Muokkaa"+ channel_delete_confirm: "Oletko varma, että haluat poistaa tämän kanavan? Kaikki kanavaan liittyvät säännöt poistetaan. "+ test_modal:+ title: "Lähetä testiviesti"+ topic: "Ketju"+ send: "Lähetä testiviesti"+ close: "Sulje"+ error: "Tuntematon virhe tapahtui viestiä lähetettäessä. Tarkasta sivuston loki saadaksesi lisätietoa."+ success: "Viesti lähetetty onnistuneesti"+ type:+ normal: Normaali+ group_message: Ryhmäviesti+ group_mention: Ryhmämaininta+ filter:+ mute: 'Vaimenna'+ follow: 'Vain ensimmäinen viesti'+ watch: 'Kaikki viestit ja vastaukset'+ thread: 'Kaikki viestit, joissa on ketjutettuja vastauksia'+ rule_table:+ filter: "Suodatin"+ category: "Alue"+ tags: "Tunnisteet"+ edit_rule: "Muokkaa"+ delete_rule: "Poista"+ edit_channel_modal:+ title: "Muokkaa kanavaa"+ save: "Tallenna kanava"+ cancel: "Peru"+ provider: "Palveluntarjoaja"+ channel_validation:+ ok: "Voimassa"+ fail: "Formaatti ei kelpaa"+ edit_rule_modal:+ title: Muokkaa sääntöä+ save: Tallenna sääntö+ cancel: Peru+ provider: Palveluntarjoaja+ type: Tyyppi+ channel: Kanava+ filter: Suodatin+ category: Alue+ group: Ryhmä+ tags: Tunnisteet+ instructions:+ type: "Muuta tyyppiä laukaistaksesi ilmoituksia ryhmäviesteistä tai maininnoista"+ filter: "Muistutusten taso. Vaimennus syrjäyttää muut vastaavat asetukset"+ category: "Tämä sääntö koskee vain ketjuja määritellyllä alueella"+ group: "Tämä sääntö koskee tähän ryhmään viittaavia viestejä"+ tags: "Jos määritelty, tämä sääntö koskee vain ketjuja, joissa on vähintään yksi näistä tunnisteista"+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: Kanava+ help: "esim. #kanava, @käyttäjänimi."+ errors:+ action_prohibited: "Botilla ei ole oikeuksia lähettää viestejä tälle kanavalle"+ channel_not_found: "Kyseistä kanavaa ei ole olemassa Slackissa"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "Nimi"+ help: "Kanavaa kuvaava nimi. Sitä ei käytetä Telegramiin yhdistämiseen."+ chat_id:+ title: Keskustelutunnus+ help: Botin antama numero tai julkisen kanavan tunnus muodossa @kanavannimi+ errors:+ channel_not_found: "Kyseistä kanavaa ei ole olemassa Telegramissa"+ forbidden: "Botilla ei ole oikeuksia lähettää viestejä tälle kanavalle"+ discord:+ title: "Discord"+ param:+ name:+ title: "Nimi"+ help: "Kanavaa kuvaava nimi. Sitä ei käytetä Discordiin yhdistämiseen."+ webhook_url:+ title: Webhookin URL+ help: Webhookin URL, joka on luotu Discordin palvelinasetuksissa+ guilded:+ title: "Guilded"+ param:+ name:+ title: "Nimi"+ help: "Kanavaa kuvaava nimi. Sitä ei käytetä Guildediin yhdistämiseen"+ webhook_url:+ title: Webhookin URL+ help: Webhookin URL, joka on luotu Guildedin palvelinasetuksissa+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: Kanava+ help: "esim. #kanava, @käyttäjänimi."+ errors:+ channel_not_found: "Kyseistä kanavaa ei ole olemassa Mattermostissa"+ matrix:+ title: "Matrix"+ param:+ name:+ title: "Nimi"+ help: "Kanavaa kuvaava nimi. Sitä ei käytetä Matrixiin yhdistämiseen."+ room_id:+ title: "Huoneen tunnus"+ help: "Huoneen \"yksityinen tunniste\". Sen pitäisi näyttää tältä: !abcdefg:matrix.org"+ errors:+ unknown_token: "Käyttöoikeustunnus on virheellinen"+ unknown_room: "Huoneen tunnus ei kelpaa"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "Virta"+ help: "Sen Zulip-virran nimi, johon viesti tuisi lähettää, esim. \"yleinen\""+ subject:+ title: "Otsikko"+ help: "Aihe, joka tulisi antaa näille botin lähettämille viesteille"+ errors:+ does_not_exist: "Tätä virtaa ei ole olemassa Zulipissa"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: Kanava+ help: "esim. #kanava, @käyttäjänimi"+ errors:+ invalid_channel: "Tätä kanavaa ei ole olemassa Rocket Chatissa"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "Nimi"+ help: "Gitter-huoneen nimi, esim. gitterHQ/services."+ webhook_url:+ title: "Webhookin URL"+ help: "URL-osoite, joka annetaan, kun luot uuden integraation Gitter-huoneessa."+ flowdock:+ title: "Flowdock"+ param:+ flow_token:+ title: "Kulun tunnus"+ help: "Kulun tunnus, joka annetaan sen jälkeen, kun olet luonut lähteen kululle, johon haluat lähettää viestejä."+ groupme:+ title: "GroupMe"+ param:+ groupme_instance_name:+ title: "GroupMe-esiintymän nimi"+ help: "Groupme-esiintymän nimi, joka on ilmoitettu sivuston asetuksissa. Lähetä kaikkiin esiintymiin käyttämällä \"kaikki\"-valintaa."+ errors:+ not_found: "Polkua, johon yritit lähettää viestisi, ei löytynyt. Tarkista botin tunnus sivuston asetuksista."+ teams:+ title: "Microsoft Teams"+ param:+ name:+ title: "Nimi"+ help: "Teams-kanavan nimi, esim. discourse"+ webhook_url:+ title: "Webhookin URL"+ help: "URL-osoite, joka annetaan, kun luot uuden saapuvan webhookin"+ errors:+ invalid_channel: "Tätä kanavaa ei ole olemassa Microsoft Teamsissa"+ powerautomate:+ title: "Microsoft Power Automate"+ param:+ name:+ title: "Nimi"+ help: "Kanavan nimi (näkyy vain Discoursen ylläpitäjän käyttöliittymässä)"+ webhook_url:+ title: "Webhookin URL-osoite"+ help: "URL-osoite, joka annetaan, kun luot uuden saapuvan webhookin"+ errors:+ invalid_webhook: "Tämä webhookin URL ei ole kelvollinen."+ webex:+ title: "Webex Teams"+ param:+ name:+ title: "Nimi"+ help: "Webex-tilan nimi, esim. discourse"+ webhook_url:+ title: "Webhookin URL"+ help: "URL-osoite, joka annetaan, kun luot uuden saapuvan webhookin"+ errors:+ invalid_channel: "Tätä kanavaa ei ole olemassa Webexissä"+ google:+ title: "Google Chat"+ param:+ name:+ title: "Nimi"+ help: "Kanavan nimi (näkyy vain Discoursen ylläpitäjän käyttöliittymässä)"+ webhook_url:+ title: "Webhookin URL"+ help: "URL-osoite, joka annetaan, kun luot uuden webhookin"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Lähetä Slack-viesti+ fields:+ message:+ label: Viesti+ description: >-+ Käytä ${TOPIC} ketjun nimelle, ${URL} käytetylle URL-osoitteelle, ${REMOVED_TAGS} poistetuille tunnisteille, ${ADDED_TAGS} lisätyille tunnisteille, ${ADDED_AND_REMOVED} oletustekstille. Käytettävissä vain, jos triggeriksi on asetettu ketjun tunnisteiden muutos.+ url:+ label: URL+ channel:+ label: Kanava+ send_chat_integration_message:+ title: Lähetä chat-integraatioviesti+ fields:+ channel_name:+ label: Kanavan nimi+ description: "Löydät kanavan nimen chat-integraation asetuksista"+ provider:+ label: Palveluntarjoajadiff --git a/plugins/discourse-chat-integration/config/locales/client.fr.yml b/plugins/discourse-chat-integration/config/locales/client.fr.ymlnew file mode 100644index 00000000000..bba9c540cfb--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.fr.yml@@ -0,0 +1,242 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++fr:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Intégrations du chat"+ js:+ chat_integration:+ menu_title: "Intégrations du chat"+ settings: "Paramètres"+ no_providers: "Vous devez activer certains fournisseurs dans les paramètres de l'extension"+ channels_with_errors: "Certains canaux de ce fournisseur ont échoué la dernière fois que des messages ont été envoyés. Cliquez sur les icônes d'erreur pour en savoir plus."+ channel_exception: "Une erreur inconnue s'est produite lors du dernier envoi d'un message à ce canal."+ group_mention_template: "Mentions de : @%{name}"+ group_message_template: "Messages à : @%{name}"+ choose_group: "(choisir un groupe)"+ all_categories: "(toutes les catégories)"+ all_tags: "(toutes les étiquettes)"+ create_rule: "Créer une règle"+ create_channel: "Créer un canal"+ delete_channel: "Supprimer"+ test_channel: "Test"+ edit_channel: "Modifier"+ channel_delete_confirm: "Voulez-vous vraiment supprimer ce canal ? Toutes les règles associées seront supprimées."+ test_modal:+ title: "Envoyer un message de test"+ topic: "Sujet"+ send: "Envoyer message de test"+ close: "Fermer"+ error: "Une erreur inconnue s'est produite lors de l'envoi du message. Consultez les journaux du site pour plus d'informations."+ success: "Message envoyé avec succès"+ type:+ normal: Normal+ group_message: Message de groupe+ group_mention: Mention de groupe+ filter:+ mute: 'Mettre en sourdine'+ follow: 'Premier message seulement'+ watch: 'Tous les messages et réponses'+ thread: 'Tous les messages avec des réponses par fil'+ rule_table:+ filter: "Filtrer"+ category: "Catégorie"+ tags: "Étiquettes"+ edit_rule: "Modifier"+ delete_rule: "Supprimer"+ edit_channel_modal:+ title: "Modifier le canal"+ save: "Enregistrer le canal"+ cancel: "Annuler"+ provider: "Fournisseur"+ channel_validation:+ ok: "Valide"+ fail: "Format invalide"+ edit_rule_modal:+ title: Modifier la règle+ save: Enregistrer la règle+ cancel: Annuler+ provider: Fournisseur+ type: Type+ channel: Canal+ filter: Filtrer+ category: Catégorie+ group: Groupe+ tags: Étiquettes+ instructions:+ type: "Modifiez le type pour déclencher des notifications en cas de message ou mention de groupe."+ filter: "Niveau de notification. La mise en sourdine prévaut sur les autres règles correspondantes"+ category: "Cette règle ne s'appliquera qu'aux sujets de la catégorie spécifiée"+ group: "Cette règle s'appliquera aux messages qui font référence à ce groupe"+ tags: "Si elle est spécifiée, cette règle ne s'appliquera qu'aux sujets qui ont au moins une de ces étiquettes"+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: Canal+ help: "p. ex., #canal, @utilisateur."+ errors:+ action_prohibited: "Ce bot n'a pas l'autorisation de publier dans ce canal"+ channel_not_found: "Le canal spécifié n'existe pas dans Slack"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "Nom"+ help: "Un nom pour décrire le canal. Il n'est pas utilisé pour la connexion à Telegram."+ chat_id:+ title: ID du chat+ help: Un numéro qui vous est donné par le bot ou un identifiant de canal de diffusion sous la forme de @channelname+ errors:+ channel_not_found: "Le canal spécifié n'existe pas sur Telegram"+ forbidden: "Ce bot n'a pas l'autorisation de publier dans ce canal"+ discord:+ title: "Discord"+ param:+ name:+ title: "Nom"+ help: "Un nom pour décrire le canal. Il n'est pas utilisé pour la connexion à Discord."+ webhook_url:+ title: URL du webhook+ help: L'URL du Webhook créée dans les paramètres de votre serveur Discord+ guilded:+ title: "Guilded"+ param:+ name:+ title: "Nom"+ help: "Un nom pour décrire le canal. Il n'est pas utilisé pour la connexion à Guilded"+ webhook_url:+ title: URL du webhook+ help: L'URL du webhook créée dans les paramètres de votre serveur Guilded+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: Canal+ help: "p. ex., #canal, @utilisateur."+ errors:+ channel_not_found: "Le canal spécifié n'existe pas sur Mattermost"+ matrix:+ title: "Matrix"+ param:+ name:+ title: "Nom"+ help: "Un nom pour décrire le canal. Il n'est pas utilisé pour la connexion à Matrix."+ room_id:+ title: "ID du salon"+ help: "L'« identifiant privé » du salon. Il devrait ressembler à !abcdefg:matrix.org"+ errors:+ unknown_token: "Le jeton d'accès est invalide"+ unknown_room: "L'ID du salon est invalide"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "Stream"+ help: "Le nom du flux Zulip dans lequel le message devrait être envoyé. P. ex., « général »"+ subject:+ title: "Sujet"+ help: "Le sujet que devraient avoir ces messages envoyés par le bot"+ errors:+ does_not_exist: "Ce flux n'existe pas dans Zulip"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: Canal+ help: "p. ex., #canal, @utilisateur."+ errors:+ invalid_channel: "Le canal spécifié n'existe pas sur Rocket.Chat"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "Nom"+ help: "Un nom d'espace de discussion Gitter. P. ex., gitterHQ/services."+ webhook_url:+ title: "URL du webhook"+ help: "L'adresse URL fournie lorsque vous créez une nouvelle intégration dans un espace de discussion Gitter."+ flowdock:+ title: "Flowdock"+ param:+ flow_token:+ title: "Jeton de flux"+ help: "Le jeton de flux fourni après avoir créé une source pour un flux dans lequel vous souhaitez envoyer des messages."+ groupme:+ title: "GroupMe"+ param:+ groupme_instance_name:+ title: "Nom de l'instance GroupMe"+ help: "nom de l'instance GroupMe tel qu'indiqué dans les paramètres du site. Utilisez « tous » pour envoyer à toutes les instances"+ errors:+ not_found: "Le chemin vers lequel vous avez tenté de publier votre message n'a pas été trouvé. Vérifiez l'ID du bot dans les paramètres du site."+ teams:+ title: "Microsoft Teams"+ param:+ name:+ title: "Nom"+ help: "Un nom de canal Teams, p. ex., « discourse »"+ webhook_url:+ title: "URL du webhook"+ help: "L'adresse URL fournie lorsque vous créez un nouveau webhook entrant"+ errors:+ invalid_channel: "Ce canal n'existe pas sur Microsoft Teams"+ powerautomate:+ title: "Microsoft Power Automate"+ param:+ name:+ title: "Nom"+ help: "Un nom pour le canal (uniquement affiché dans l'interface d'administration Discourse)"+ webhook_url:+ title: "URL du webhook"+ help: "L'adresse URL fournie lorsque vous créez un nouveau webhook entrant"+ errors:+ invalid_webhook: "Cette URL de webhook n'est pas valide."+ webex:+ title: "Webex Teams"+ param:+ name:+ title: "Nom"+ help: "Un nom d'espace Webex, p. ex., « discourse »"+ webhook_url:+ title: "URL du webhook"+ help: "L'adresse URL fournie lorsque vous créez un nouveau webhook entrant"+ errors:+ invalid_channel: "Le canal spécifié n'existe pas sur Webex"+ google:+ title: "Google Chat"+ param:+ name:+ title: "Nom"+ help: "Un nom pour le canal (uniquement affiché dans l'interface d'administration Discourse)"+ webhook_url:+ title: "URL du webhook"+ help: "L'adresse URL fournie lorsque vous créez un nouveau webhook"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Envoyer un message Slack+ fields:+ message:+ label: Message+ description: >-+ Utilisez ${TOPIC} pour le nom du sujet, ${URL} pour l'URL utilisée, ${REMOVED_TAGS} pour les étiquettes supprimées, ${ADDED_TAGS} pour les étiquettes ajoutées, ${ADDED_AND_REMOVED} pour le texte par défaut. Disponible uniquement si le déclencheur est défini sur Étiquettes de sujet modifiées.+ url:+ label: URL+ channel:+ label: Canal+ send_chat_integration_message:+ title: Envoyer un message d'intégration de discussion+ fields:+ channel_name:+ label: Nom du canal+ description: "Vous pouvez trouver le nom du canal dans les paramètres d'intégration de discussion"+ provider:+ label: Fournisseurdiff --git a/plugins/discourse-chat-integration/config/locales/client.gl.yml b/plugins/discourse-chat-integration/config/locales/client.gl.ymlnew file mode 100644index 00000000000..0d07a65c2ef--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.gl.yml@@ -0,0 +1,226 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++gl:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Integracións de chat"+ js:+ chat_integration:+ menu_title: "Integracións de chat"+ settings: "Configuración"+ no_providers: "Cómpre activar algúns fornecedores na configuración do complemento"+ channels_with_errors: "Algunhas das canles deste fornecedor fallaron a última vez que se enviaron mensaxes. Prema na icona(s) de erro para saber máis."+ channel_exception: "Produciuse un erro descoñecido a última vez que se enviou unha mensaxe por esta canle."+ group_mention_template: "Mencións de: @%{name}"+ group_message_template: "Mensaxes a: @%{name}"+ choose_group: "(escolla un grupo)"+ all_categories: "(todas as categorías)"+ all_tags: "(todas as etiquetas)"+ create_rule: "Crear regra"+ create_channel: "Crear canle"+ delete_channel: "Eliminar"+ test_channel: "Proba"+ edit_channel: "Editar"+ channel_delete_confirm: "Confirma que quere eliminar esta canle? Todas as regras asociadas serán eliminadas."+ test_modal:+ title: "Enviar unha mensaxe de proba"+ topic: "Tema"+ send: "Enviar mensaxe de proba"+ close: "Pechar"+ error: "Produciuse un erro descoñecido ao enviar a mensaxe. Consulte os rexistros do sitio para obter máis información."+ success: "A mensaxe enviouse correctamente"+ type:+ normal: Normal+ group_message: Mensaxe de grupo+ group_mention: Mención de grupo+ filter:+ mute: 'Silenciar'+ follow: 'Só a primeira publicación'+ watch: 'Todas as publicacións e respostas'+ thread: 'Todas as publicacións cos fíos de resposta'+ rule_table:+ filter: "Filtro"+ category: "Categoría"+ tags: "Etiquetas"+ edit_rule: "Editar"+ delete_rule: "Eliminar"+ edit_channel_modal:+ title: "Editar canle"+ save: "Gardar canle"+ cancel: "Cancelar"+ provider: "Fornecedor"+ channel_validation:+ ok: "Correcto"+ fail: "Formato incorrecto"+ edit_rule_modal:+ title: Editar regra+ save: Gardar regra+ cancel: Cancelar+ provider: Fornecedor+ type: Tipo+ channel: Canle+ filter: Filtro+ category: Categoría+ group: Grupo+ tags: Etiquetas+ instructions:+ type: "Cambiar o tipo que dispara avisos para mensaxes de grupos ou mencións"+ filter: "Nivel de aviso. O silenciamento sobrescribe outras regras que coincidan"+ category: "Esta regra soamente se aplicará a asunto na categoría especificada"+ group: "Esta regra aplicaráselles ás publicacións que teñan referenciado a este grupo"+ tags: "Se é así especificado, esta regra soamente se lle aplicará aos asuntos que teñan cando menos unha destas etiquetas"+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: Canle+ help: "i.e. #canle, @usuario."+ errors:+ action_prohibited: "O bot non ten permisos para publicar nesta canle"+ channel_not_found: "A canle especificada non existe en Slack"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "Nome"+ help: "Un nome para describir a canle. Non se utiliza para conectar co Telegram."+ chat_id:+ title: ID de chat+ help: Un número que lle ofreceu o bot, ou un identificador dunha canle de difusión na forma @nomedacanle+ errors:+ channel_not_found: "A canle especificada non existe no Telegram"+ forbidden: "O bot non ten permisos para publicar nesta canle"+ discord:+ title: "Discord"+ param:+ name:+ title: "Nome"+ help: "Un nome para describir a canle. Non se utiliza para a conexión co Discord."+ webhook_url:+ title: URL do gancho+ help: O URL do gancho creado na configuración do seu servidor Discord+ guilded:+ param:+ name:+ title: "Nome"+ webhook_url:+ title: URL do gancho+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: Canle+ help: "i.e. #canle, @usuario."+ errors:+ channel_not_found: "A canle especificada non existe no Mattermost"+ matrix:+ title: "Matrix"+ param:+ name:+ title: "Nome"+ help: "Un nome para describir a canle. Non se utiliza para a conexión con Matrix."+ room_id:+ title: "ID de sala"+ help: "O «identificador privado» da sala. Debería parecerse a algo como !abcdefg:matrix.org"+ errors:+ unknown_token: "O token de acceso non é correcto"+ unknown_room: "O ID da sala non é correcto"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "Stream"+ help: "O nome do fluxo Zulip ao que debería enviarse a mensaxe. i.e. «xeral»"+ subject:+ title: "Asunto"+ help: "O asunto que deben ter estas mensaxes enviadas polo bot"+ errors:+ does_not_exist: "Ese fluxo non existe en Zulip"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: Canle+ help: "i.e. #canle, @usuario."+ errors:+ invalid_channel: "Esa canle non existe en Rocket Chat"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "Nome"+ help: "O nome dunha sala Gitter, i.e. gitterHQ/servizos."+ webhook_url:+ title: "URL do gancho"+ help: "O URL ofrecido cando vostede crea unha nova integración nunha sala do Gitter."+ flowdock:+ title: "Flowdock"+ param:+ flow_token:+ title: "Token de fluxo"+ help: "O token de fluxo ofrecido despois de crear unha fonte para un fluxo ao que desexa enviar mensaxes."+ groupme:+ title: "GroupMe"+ param:+ groupme_instance_name:+ title: "Nome da instancia do GroupMe"+ help: "nome da instancia do Groupme como aparece na configuración do sitio. Utilice «todos» para enviala a todas as instancias"+ errors:+ not_found: "Non se atopou o camiño no que intentou publicar a súa mensaxe. Comprobe o ID do bot na configuración do sitio."+ teams:+ title: "Microsoft Teams"+ param:+ name:+ title: "Nome"+ help: "Un nome de canle do Teams i.e. discourse"+ webhook_url:+ title: "URL do gancho"+ errors:+ invalid_channel: "Esa canle non existe en Microsoft Teams"+ powerautomate:+ param:+ name:+ title: "Nome"+ help: "Un nome para a canle (só se mostra na interface de administración do Discourse)"+ webhook_url:+ title: "URL do gancho"+ webex:+ title: "Webex Teams"+ param:+ name:+ title: "Nome"+ help: "Un nome de espazo Webex i.e. discourse"+ webhook_url:+ title: "URL do gancho"+ errors:+ invalid_channel: "Esa canle non existe en Webex"+ google:+ title: "Google Chat"+ param:+ name:+ title: "Nome"+ help: "Un nome para a canle (só se mostra na interface de administración do Discourse)"+ webhook_url:+ title: "URL do gancho"+ help: "O URL ofrecido cando vostede crea un novo gancho"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Mensaxe+ url:+ label: URL+ channel:+ label: Canle+ send_chat_integration_message:+ fields:+ provider:+ label: Fornecedordiff --git a/plugins/discourse-chat-integration/config/locales/client.he.yml b/plugins/discourse-chat-integration/config/locales/client.he.ymlnew file mode 100644index 00000000000..da9ac8ddf12--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.he.yml@@ -0,0 +1,242 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++he:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "שילובי צ׳אט"+ js:+ chat_integration:+ menu_title: "שילובי צ׳אט"+ settings: "הגדרות"+ no_providers: "עליך לאפשר מספר ספקים בהגדרות התוסף"+ channels_with_errors: "בפעם האחרונה שנשלחו מסרים כמה ערוצים נכשלו עבור הספר הזה. לחץ על סמליל(י) השגיאה כדי לקבל עוד מידע"+ channel_exception: "אירעה שגיאה בלתי מזוהה בפעם האחרונה שנשלחה הודעה בערוץ זה."+ group_mention_template: "אזכורים של: @%{name}"+ group_message_template: "הודעות אל: @%{name}"+ choose_group: "(נא לבחור קבוצה)"+ all_categories: "(כל הקטגוריות)"+ all_tags: "(כל התגיות)"+ create_rule: "יצירת כלל"+ create_channel: "יצירת ערוץ"+ delete_channel: "הסרה"+ test_channel: "נסיון"+ edit_channel: "עריכה"+ channel_delete_confirm: "למחוק את הערוץ הזה? כל הכללים המקושרים אליו ימחקו."+ test_modal:+ title: "שליחת הודעת ניסיון"+ topic: "נושא"+ send: "שליחת הודעת ניסיון"+ close: "סגירה"+ error: "שגיאה לא מזוהה התרחשה בעת שליחת ההודעה. יש לבדוק את הלוגים של האתר עבור מידע נוסף."+ success: "ההודעה נשלחה בהצלחה"+ type:+ normal: רגיל+ group_message: הודעה קבוצתית+ group_mention: איזכור קבוצה+ filter:+ mute: 'השתק'+ follow: 'הודעה ראשונה בלבד'+ watch: 'כל הפוסטים והתגובות'+ thread: 'כל הפוסטים עם תגובות בשרשרת'+ rule_table:+ filter: "סינון"+ category: "קטגוריה"+ tags: "תגיות"+ edit_rule: "עריכה"+ delete_rule: "הסרה"+ edit_channel_modal:+ title: "עריכת ערוץ"+ save: "שמירת ערוץ"+ cancel: "ביטול"+ provider: "ספק"+ channel_validation:+ ok: "מאומת"+ fail: "פורמט לא חוקי"+ edit_rule_modal:+ title: שינוי כלל+ save: שמירת כלל+ cancel: ביטול+ provider: ספק+ type: סוג+ channel: ערוץ+ filter: סינון+ category: קטגוריה+ group: קבוצה+ tags: תגיות+ instructions:+ type: "יש לשנות את הסוג כדי להפעיל התראות עבור הודעות קבוצתיות או איזכורים"+ filter: "רמת התראה. השתקה דורסת כללים תואמים נוספים"+ category: "כלל זה יחול על נושאים בקטגוריה המצוינת"+ group: "כלל זה חל על פוסטים שמפנים לקבוצה זו"+ tags: "אם צוין, כלל זה יחול רק כל נושאים שיש להם לפחות אחת מהתגיות האלה."+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: ערוץ+ help: "למשל #ערוץ, @שם_משתמש."+ errors:+ action_prohibited: "לבוט אין הרשה לפרסם לערוץ הזה"+ channel_not_found: "הערוץ שצוין לא קיים ב־Slack"+ telegram:+ title: "טלגרם"+ param:+ name:+ title: "שם"+ help: "שם לתיאור הערוץ. לא בשימוש בחיבור לטלגרם."+ chat_id:+ title: מזהה שיחה+ help: מספר שהעניק לך הבוט או מזהה פרסום ערוצים בתצורה @שם_ערוץ+ errors:+ channel_not_found: "הערוץ שצוין לא קיים בטלגרם"+ forbidden: "לבוט אין הרשאה לפרסם לערוץ הזה"+ discord:+ title: "Discord"+ param:+ name:+ title: "שם"+ help: "שם לתיאור הערוץ. הוא לא משמש לחיבור אל Discord."+ webhook_url:+ title: כתובת התלייה+ help: כתובת ההתלייה נוצרה בהגדרות שרת ה־Discord שלך+ guilded:+ title: "Guilded"+ param:+ name:+ title: "שם"+ help: "שם לתיאור הערוץ. לא משמש לחיבור אל Guilded"+ webhook_url:+ title: כתובת התלייה+ help: כתובת ההתלייה נוצרה בהגדרות שרת ה־Guilded שלך+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: ערוץ+ help: "למשל #ערוץ, @שם_משתמש."+ errors:+ channel_not_found: "הערוץ שצוין לא קיים ב־Mattermost"+ matrix:+ title: "Matrix"+ param:+ name:+ title: "שם"+ help: "שם לתיאור הערוץ. הוא לא משמש לחיבור אל Matrix."+ room_id:+ title: "מזהה חדר"+ help: "ה‚מזהה הפרטי’ של החדר. הוא אמור להיראות בערך ככה: !abcdefg:matrix.org"+ errors:+ unknown_token: "אסימון הגישה שגוי"+ unknown_room: "מזהה החדר שגוי"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "תזרים"+ help: "שם תזרים ה־Zulip שאליו אמורה להישלח ההודעה, למשל: ‚general’"+ subject:+ title: "נושא"+ help: "הנושא שיינתן להודעות אלו שנשלחות על ידי הבוט"+ errors:+ does_not_exist: "תזרים זה לא קיים ב־Zulip"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: ערוץ+ help: "למשל #ערוץ, @שם_משתמש."+ errors:+ invalid_channel: "ערוץ זה לא קיים ב־Rocket Chat"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "שם"+ help: "שם חדר ב־Gitter למשל gitterHQ/services."+ webhook_url:+ title: "כתובת התלייה"+ help: "הכתובת שסופקה בעת יצירת שילוב בחדר Gitter."+ flowdock:+ title: "Flowdock"+ param:+ flow_token:+ title: "אסימון Flow"+ help: "אסימון ה־flow לאחר יצירת המשאב ל־flow אליו ברצונך לשלוח הודעות."+ groupme:+ title: "GroupMe"+ param:+ groupme_instance_name:+ title: "שם עותק ה־GroupMe"+ help: "שם עותק ה־Groupme כפי שמופיע בהגדרות האתר. יש להשתמש ב־‚all’ (הכול) כדי לשלוח לכל העותקים"+ errors:+ not_found: "הנתיב אליו ניסית לפרסם את ההודעה שלך לא נמצא. נא לבדוק את מזהה הבוט בהגדרות האתר."+ teams:+ title: "Microsoft Teams"+ param:+ name:+ title: "שם"+ help: "שם ערוץ ב־Teams, למשל: discourse"+ webhook_url:+ title: "כתובת התלייה"+ help: "הכתובת שתסופק ביצירת התליית רשת נכנסת חדשה"+ errors:+ invalid_channel: "ערוץ זה לא קיים ב־Microsoft Teams"+ powerautomate:+ title: "Microsoft Power Automate"+ param:+ name:+ title: "שם"+ help: "שם לערוץ (מופיע רק במנשק הניהול של Discourse)"+ webhook_url:+ title: "כתובת התלייה"+ help: "הכתובת שתסופק ביצירת התליית רשת נכנסת חדשה"+ errors:+ invalid_webhook: "כתובת ההתלייה שגויה."+ webex:+ title: "Webex Teams"+ param:+ name:+ title: "שם"+ help: "שם מתחם ב־WebEx, למשל: discourse"+ webhook_url:+ title: "כתובת התלייה"+ help: "הכתובת שתסופק ביצירת התליית רשת נכנסת חדשה"+ errors:+ invalid_channel: "ערוץ זה לא קיים ב־WebEx"+ google:+ title: "Google Chat"+ param:+ name:+ title: "שם"+ help: "שם לערוץ (מופיע רק במנשק הניהול של Discourse)"+ webhook_url:+ title: "כתובת התלייה"+ help: "הכתובת שתסופק ביצירת התליית רשת חדשה"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: שליחת הודעה ב־Slack+ fields:+ message:+ label: הודעה+ description: >-+ להשתמש בביטוי ${TOPIC} לשם הנושא, ${URL} לכתובות לשימוש, ${REMOVED_TAGS} לתגיות שהוסרו, ${ADDED_TAGS} לתגיות שנוספו, ${ADDED_AND_REMOVED} לטקסט ברירת המחדל. זמין רק אם ההזנקה מוגדרת לשינוי תגיות נושא.+ url:+ label: כתובת+ channel:+ label: ערוץ+ send_chat_integration_message:+ title: שליחת הודעת שילוב צ׳אט+ fields:+ channel_name:+ label: שם הערוץ+ description: "אפשר למצוא את שם הערוץ בהגדרות שילוב הצ׳אט"+ provider:+ label: ספקdiff --git a/plugins/discourse-chat-integration/config/locales/client.hr.yml b/plugins/discourse-chat-integration/config/locales/client.hr.ymlnew file mode 100644index 00000000000..655f68683eb--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.hr.yml@@ -0,0 +1,164 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++hr:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Chat integracije"+ js:+ chat_integration:+ menu_title: "Chat integracije"+ settings: "Postavke"+ no_providers: "Morate omogućiti neke davatelje usluga u postavkama dodatka"+ channels_with_errors: "Neki kanali za tog davatelja usluga nisu uspjeli zadnji put kada su poruke poslane. Kliknite ikon(u) pogreške da biste saznali više."+ channel_exception: "Došlo je do nepoznate pogreške kada je poruka zadnji put poslana na ovaj kanal."+ group_mention_template: "Spominjanje: @%{name}"+ group_message_template: "Poruke na: @%{name}"+ choose_group: "(odaberite grupu)"+ all_categories: "(sve kategorije)"+ all_tags: "(sve oznake)"+ create_rule: "Stvori pravilo"+ create_channel: "Stvori kanal"+ delete_channel: "Pobriši"+ test_channel: "Test"+ edit_channel: "Izmijeni"+ channel_delete_confirm: "Jeste li sigurni da želite izbrisati ovaj kanal? Sva pridružena pravila bit će izbrisana."+ test_modal:+ title: "Pošaljite probnu poruku"+ topic: "Teme"+ send: "Pošalji testnu poruku"+ close: "Zatvori"+ error: "Došlo je do nepoznate pogreške prilikom slanja poruke. Više podataka potražite u zapisnicima web mjesta."+ success: "Poruka je uspješno poslana"+ type:+ normal: Normalno+ group_message: Grupna poruka+ group_mention: Spomena grupe+ filter:+ mute: 'Utišaj'+ follow: 'Samo prvi post'+ watch: 'Svi postovi i odgovori'+ thread: 'Svi postovi s navojnim odgovorima'+ rule_table:+ filter: "Filter"+ category: "Kategorija"+ tags: "Oznake"+ edit_rule: "Izmijeni"+ delete_rule: "Pobriši"+ edit_channel_modal:+ title: "Uredi kanal"+ save: "Spremi kanal"+ cancel: "Odustani"+ provider: "Pružatelj usluga"+ channel_validation:+ ok: "Vrijedi"+ fail: "Neispravan format"+ edit_rule_modal:+ title: Uredi pravilo+ save: Spremi pravilo+ cancel: Odustani+ provider: Pružatelj usluga+ type: Tip+ channel: Kanal+ filter: Filter+ category: Kategorija+ group: Grupa+ tags: Oznake+ instructions:+ type: "Promijenite vrstu da biste pokrenuli obavijesti za grupne poruke ili spominjanja"+ filter: "Razina obavijesti. Isključivanje zvuka nadjačava druga pravila podudaranja"+ category: "Ovo pravilo će se primjenjivati samo na teme u navedenoj kategoriji"+ group: "Ovo pravilo će se primjenjivati na postove koji se odnose na ovu grupu"+ tags: "Ako je navedeno, ovo pravilo će se primjenjivati samo na teme koje imaju barem jednu od tih oznaka"+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: Kanal+ help: "npr. #channel, @username."+ errors:+ action_prohibited: "Bot nema dozvolu za objavljivanje na tom kanalu"+ channel_not_found: "Navedeni kanal ne postoji na slacku"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "Ime"+ help: "Naziv za opis kanala. Ne koristi se za vezu s Telegramom."+ chat_id:+ title: ID chata+ help: Broj koji vam je dodijelio bot ili identifikator kanala emitiranog kanala u obliku @channelname+ errors:+ channel_not_found: "Navedeni kanal ne postoji na Telegramu"+ forbidden: "Bot nema dozvolu za objavljivanje na ovom kanalu"+ discord:+ title: "Discord"+ param:+ name:+ title: "Ime"+ guilded:+ param:+ name:+ title: "Ime"+ mattermost:+ param:+ identifier:+ title: Kanal+ help: "npr. #channel, @username."+ matrix:+ param:+ name:+ title: "Ime"+ zulip:+ param:+ subject:+ title: "predmet"+ rocketchat:+ param:+ identifier:+ title: Kanal+ help: "npr. #channel, @username."+ gitter:+ param:+ name:+ title: "Ime"+ teams:+ param:+ name:+ title: "Ime"+ powerautomate:+ param:+ name:+ title: "Ime"+ webex:+ param:+ name:+ title: "Ime"+ google:+ param:+ name:+ title: "Ime"+ webhook_url:+ help: "URL koji ste dobili prilikom izrade novog webhooka"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Poruka+ url:+ label: URL+ channel:+ label: Kanal+ send_chat_integration_message:+ fields:+ channel_name:+ label: Naziv kanala+ provider:+ label: Pružatelj uslugadiff --git a/plugins/discourse-chat-integration/config/locales/client.hu.yml b/plugins/discourse-chat-integration/config/locales/client.hu.ymlnew file mode 100644index 00000000000..5b815dab5d0--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.hu.yml@@ -0,0 +1,155 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++hu:+ js:+ chat_integration:+ settings: "Beállítások"+ choose_group: "(válassz egy csoportot)"+ all_categories: "(összes kategória)"+ all_tags: "(összes címke)"+ delete_channel: "Töröl"+ test_channel: "Teszt"+ edit_channel: "Szerkeszt"+ test_modal:+ title: "Tesztüzenet küldése"+ topic: "Téma"+ send: "Szöveges üzenet küldése"+ close: "Bezár"+ success: "Üzenet sikeresen elküldve"+ type:+ normal: Normális+ group_message: Csoportos üzenet+ group_mention: Csoportos megemlítés+ filter:+ mute: 'Lenémít'+ rule_table:+ filter: "Szűr"+ category: "Kategória"+ tags: "Címkék"+ edit_rule: "Szerkeszt"+ delete_rule: "Töröl"+ edit_channel_modal:+ cancel: "Visszavon"+ provider: "Szolgáltató"+ channel_validation:+ ok: "Érvényes"+ fail: "Érvénytelen formátum"+ edit_rule_modal:+ title: Szabály Szerkesztése+ save: Szabály Mentése+ cancel: Visszavon+ provider: Szolgáltató+ type: Típus+ channel: Csatorna+ filter: Szűr+ category: Kategória+ group: Csoport+ tags: Címkék+ provider:+ slack:+ param:+ identifier:+ title: Csatorna+ help: "pl. #csatorna, @felhasználónév"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "Név"+ chat_id:+ title: Chat ID+ discord:+ title: "Discord"+ param:+ name:+ title: "Név"+ webhook_url:+ title: Webhook URL+ guilded:+ param:+ name:+ title: "Név"+ webhook_url:+ title: Webhook URL+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: Csatorna+ help: "pl. #csatorna, @felhasználónév"+ matrix:+ title: "Matrix"+ param:+ name:+ title: "Név"+ room_id:+ title: "Szoba ID"+ errors:+ unknown_room: "Szoba ID érvénytelen"+ zulip:+ title: "Zulip"+ param:+ subject:+ title: "Tárgy"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: Csatorna+ help: "pl. #csatorna, @felhasználónév"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "Név"+ webhook_url:+ title: "Webhook URL"+ flowdock:+ title: "Flowdock"+ teams:+ param:+ name:+ title: "Név"+ webhook_url:+ title: "Webhook URL"+ help: "Az új bejövő webhook létrehozásakor megadott URL"+ powerautomate:+ param:+ name:+ title: "Név"+ webhook_url:+ title: "Webhook URL"+ help: "Az új bejövő webhook létrehozásakor megadott URL"+ webex:+ param:+ name:+ title: "Név"+ webhook_url:+ title: "Webhook URL"+ help: "Az új bejövő webhook létrehozásakor megadott URL"+ google:+ param:+ name:+ title: "Név"+ webhook_url:+ title: "Webhook URL"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Üzenet+ url:+ label: URL+ channel:+ label: Csatorna+ send_chat_integration_message:+ fields:+ channel_name:+ label: Csatorna neve+ provider:+ label: Szolgáltatódiff --git a/plugins/discourse-chat-integration/config/locales/client.hy.yml b/plugins/discourse-chat-integration/config/locales/client.hy.ymlnew file mode 100644index 00000000000..8c08e1d95f0--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.hy.yml@@ -0,0 +1,205 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++hy:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Զրույցի ինտեգրումներ"+ js:+ chat_integration:+ menu_title: "Զրույցի ինտեգրումներ"+ settings: "Կարգավորումներ"+ no_providers: "Դուք պետք է միացնեք որոշ մատակարարների պլագինի կարգավորումներում"+ channels_with_errors: "Այս մատակարարի որոշ ալիքներ ձախողվել են վերջին անգամ հաղորդագրությունները ուղարկելիս: Սեղմեք սխալի պատկերակ(ներ)ին՝ ավելին իմանալու համար:"+ channel_exception: "Վերջին անգամ այս ալիքին հաղորդագրություն ուղարկելիս տեղի է ունեցել անհայտ սխալ:"+ group_mention_template: "Նշումներ՝ @%{name}"+ group_message_template: "Հաղորդագրություն դեպի՝ @%{name}"+ choose_group: "(ընտրեք խումբ)"+ all_categories: "(բոլոր կատեգորիաները)"+ all_tags: "(բոլոր թեգերը)"+ create_rule: "Ստեղծել Կանոն"+ create_channel: "Ստեղծել Ալիք"+ delete_channel: "Ջնջել"+ test_channel: "Փորձարկել"+ edit_channel: "Խմբագրել"+ channel_delete_confirm: "Դուք համոզվա՞ծ եք, որ ցանկանում եք ջնջել այս ալիքը: Բոլոր կապակցված կանոնները կջնջվեն:"+ test_modal:+ title: "Ուղարկել փորձնական հաղորդագրություն"+ topic: "Թեմա"+ send: "Ուղարկել Փորձնական Հաղորդագրություն"+ close: "Փակել"+ error: "Հաղորդագրությունն ուղարկելիս տեղի է ունեցել անհայտ սխալ: Ստուգեք կայքի գրառումները՝ հավելյալ տեղեկատվություն ստանալու համար:"+ success: "Հաղորդագրությունը հաջողությամբ ուղարկված է"+ type:+ normal: Նորմալ+ group_message: Խմբային Հաղորդագրություն+ group_mention: Խմբային նշում+ filter:+ mute: 'Խլացնել'+ follow: 'Միայն առաջին գրառումը'+ watch: 'Բոլոր գրառումները և պատասխանները'+ rule_table:+ filter: "Ֆիլտր"+ category: "Կատեգորիա"+ tags: "Թեգեր"+ edit_rule: "Խմբագրել"+ delete_rule: "Ջնջել"+ edit_channel_modal:+ title: "Խմբագրել Ալիքը"+ save: "Պահպանել Ալիքը"+ cancel: "Չեղարկել"+ provider: "Մատակարար"+ channel_validation:+ ok: "Վավեր"+ fail: "Անվավեր ֆորմատ"+ edit_rule_modal:+ title: Խմբագրել Կանոնը+ save: Պահպանել Կանոնը+ cancel: Չեղարկել+ provider: Մատակարար+ type: Տիպ+ channel: Ալիք+ filter: Ֆիլտրել+ category: Կատեգորիա+ group: Խումբ+ tags: Թեգեր+ instructions:+ type: "Փոփոխել տիպը՝ ծանուցումներ գործարկելու խմբային հաղորդագրությունների կամ նշումների համար"+ filter: "Ծանուցումների մակարդակ: Խլացումը վերասահմանում է այլ համընկնող կանոնները"+ category: "ԱՅս կանոնը կկիրառվի միայն տվյալ կատեգորիայի թեմաների նկատմամբ"+ group: "Այս կանոնը կկիրառվի այս խմբին վերաբերող գրառումներին"+ tags: "Եթե սահմանված է, այս կանոնը կկիրառվի միայն այն թեմաների նկատմամբ, որոնք ունեն հետևյալ թեգերից առնվազն մեկը"+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: Ալիք+ help: "օրինակ՝ #ալիք, @օգտանուն:"+ errors:+ action_prohibited: "Բոտ այդ ալիքում գրառում կատարելու թույլտվություն չունի"+ channel_not_found: "Տվյալ ալիքը գոյություն չունի slack-wum"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "Անուն"+ help: "Անուն ալիքը նկարագրելու համար: Այն չի օգտագործվում Telegram-ին միանալու համար:"+ chat_id:+ title: Զրույցի ID+ help: Բոտի կամ հեռարձակման ալիքի նույնականացնողի կողմից Ձեզ տրվող համար հետևյալ ձևով՝ @channelname+ errors:+ channel_not_found: "Տվյալ ալիքը գոյություն չունի Telegram-ում"+ forbidden: "Բոտը չունի այս ալիքում գրառում կատարելու թույլտվույթուն:"+ discord:+ title: "Discord"+ param:+ name:+ title: "Անուն"+ help: "Անուն ալիքը նկարագրելու համար: Այն չի օգտագործվում Discord-ին միանալու համար: "+ webhook_url:+ title: Webhook -ի URL+ help: Ձեր Discord սերվերի կարգավորումներում ստեղծված webhook -ի URL -ը+ guilded:+ param:+ name:+ title: "Անուն"+ webhook_url:+ title: Webhook -ի URL+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: Ալիք+ help: "օրինակ՝ #ալիք, @օգտանուն:"+ errors:+ channel_not_found: "Տվյալ ալիքը գոյություն չունի Mattermost-ում"+ matrix:+ title: "Matrix"+ param:+ name:+ title: "Անուն"+ help: "Անուն ալիքը նկարագրելու համար: Այն չի օգտագործվում Matrix-ին միանալու համար: "+ room_id:+ title: "Սենյակի ID"+ help: "'Մասնավոր նույնականացնող' սենյակի համար: Այն պետք է ունենա մոտավորապես հետևյալ տեսքը՝ !abcdefg:matrix.org"+ errors:+ unknown_token: "Հասանելիության տոկենը անվավեր է"+ unknown_room: "Սենյակի ID -ն անվավեր է"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "Հոսք"+ help: "Zulip հոսքի անունը, որին պետք է ուղարկվի հաղորդագրությունը, օրինակ՝ 'general'"+ subject:+ title: "Թեմա"+ help: "Այն թեման, որը պետք է տրվի բոտի կողմից ուղարկված հաղորդագրություններին"+ errors:+ does_not_exist: "Այդ հոսքը գոյություն չունի Zulip -ում"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: Ալիք+ help: "օրինակ՝ #ալիք, @օգտանուն:"+ errors:+ invalid_channel: "Այդ ալիքը գոյություն չունի Rocket Chat-ում"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "Անուն"+ help: "Gitter -ի սենյակի անուն, օրինակ՝ gitterHQ/services."+ webhook_url:+ title: "Webhook -ի URL"+ help: "URL -ը, որը տրվում է Gitter սենյակում նոր ինտեգրում ստեղծելիս:"+ flowdock:+ title: "Flowdock"+ param:+ flow_token:+ title: "Հոսքի Տոկեն"+ help: "Հոսքի տոկեն, որը տրամադրվում է հոսքի համար սկզբնաղյուր ստեղծելուց հետո, որի մեջ Դուք ցանկանում եք ուղարկել հաղորդագրություններ:"+ teams:+ param:+ name:+ title: "Անուն"+ webhook_url:+ title: "Webhook -ի URL"+ powerautomate:+ param:+ name:+ title: "Անուն"+ webhook_url:+ title: "Webhook -ի URL"+ webex:+ param:+ name:+ title: "Անուն"+ webhook_url:+ title: "Webhook -ի URL"+ google:+ param:+ name:+ title: "Անուն"+ webhook_url:+ title: "Webhook -ի URL"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Ուղարկել+ url:+ label: URL+ channel:+ label: Ալիք+ send_chat_integration_message:+ fields:+ provider:+ label: Մատակարարdiff --git a/plugins/discourse-chat-integration/config/locales/client.id.yml b/plugins/discourse-chat-integration/config/locales/client.id.ymlnew file mode 100644index 00000000000..cd6a8cd5c63--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.id.yml@@ -0,0 +1,82 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++id:+ js:+ chat_integration:+ settings: "Pengaturan"+ all_categories: "(semua kategori)"+ delete_channel: "Hapus"+ edit_channel: "Ubah"+ test_modal:+ topic: "Topik"+ close: "Tutup"+ type:+ normal: normal+ filter:+ mute: 'Bisu'+ rule_table:+ filter: "Filter"+ category: "Kategori"+ tags: "Label"+ edit_rule: "Ubah"+ delete_rule: "Hapus"+ edit_channel_modal:+ cancel: "Batal"+ edit_rule_modal:+ cancel: Batal+ type: Tipe+ filter: Filter+ category: Kategori+ tags: Label+ provider:+ telegram:+ param:+ name:+ title: "Nama"+ discord:+ title: "Discord"+ param:+ name:+ title: "Nama"+ guilded:+ param:+ name:+ title: "Nama"+ matrix:+ param:+ name:+ title: "Nama"+ zulip:+ param:+ subject:+ title: "Judul"+ gitter:+ param:+ name:+ title: "Nama"+ teams:+ param:+ name:+ title: "Nama"+ powerautomate:+ param:+ name:+ title: "Nama"+ webex:+ param:+ name:+ title: "Nama"+ google:+ param:+ name:+ title: "Nama"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: pesandiff --git a/plugins/discourse-chat-integration/config/locales/client.it.yml b/plugins/discourse-chat-integration/config/locales/client.it.ymlnew file mode 100644index 00000000000..ff3dc9ff48e--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.it.yml@@ -0,0 +1,242 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++it:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Integrazioni chat"+ js:+ chat_integration:+ menu_title: "Integrazioni chat"+ settings: "Impostazioni"+ no_providers: "È necessario abilitare alcuni fornitori nelle impostazioni del plugin"+ channels_with_errors: "L'invio di messaggi per alcuni canali di questo fornitore non ha funzionato. Fai clic sull'icona/e di errore per saperne di più."+ channel_exception: "Si è verificato un errore sconosciuto l'ultima volta che un messaggio è stato inviato a questo canale."+ group_mention_template: "Menzioni di: @%{name}"+ group_message_template: "Messaggi a: @%{name}"+ choose_group: "(scegli un gruppo)"+ all_categories: "(tutte le categorie)"+ all_tags: "(tutte le etichette)"+ create_rule: "Crea Regola"+ create_channel: "Crea Canale"+ delete_channel: "Elimina"+ test_channel: "Test"+ edit_channel: "Modifica"+ channel_delete_confirm: "Sicuro di voler eliminare questo canale? Saranno eliminate anche tutte le regole associate."+ test_modal:+ title: "Invia un messaggio di prova"+ topic: "Argomento"+ send: "Invia messaggio di prova"+ close: "Chiudi"+ error: "Si è verificato un errore sconosciuto durante l'invio del messaggio. Controlla i log del sito per maggiori informazioni."+ success: "Messaggio inviato correttamente"+ type:+ normal: Normale+ group_message: Messaggio di gruppo+ group_mention: Menzione di gruppo+ filter:+ mute: 'Silenzia'+ follow: 'Solo il primo messaggio'+ watch: 'Tutti i messaggi e le risposte'+ thread: 'Tutti i messaggi con risposte in thread'+ rule_table:+ filter: "Filtro"+ category: "Categoria"+ tags: "Etichette"+ edit_rule: "Modifica"+ delete_rule: "Elimina"+ edit_channel_modal:+ title: "Modifica Canale"+ save: "Salva Canale"+ cancel: "Annulla"+ provider: "Fornitore"+ channel_validation:+ ok: "Valido"+ fail: "Formato non valido"+ edit_rule_modal:+ title: Modifica regola+ save: Salva regola+ cancel: Annulla+ provider: Fornitore+ type: Tipo+ channel: Canale+ filter: Filtro+ category: Categoria+ group: Gruppo+ tags: Etichette+ instructions:+ type: "Cambia il tipo di attivazione delle notifiche per i messaggi o le menzioni di gruppo"+ filter: "Livello di notifica. Il silenziamento sovrascrive le altre regole"+ category: "Questa regola si applica solo agli argomenti nella categoria specificata"+ group: "Questa regola si applica ai messaggi che fanno riferimento a questo gruppo"+ tags: "Se specificata, questa regola si applica solo agli argomenti che hanno almeno una di queste etichette"+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: Canale+ help: "es. #canale, @nomeutente."+ errors:+ action_prohibited: "Il bot non ha il permesso di pubblicare su quel canale"+ channel_not_found: "Il canale specificato non esiste su Slack"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "Nome"+ help: "Un nome per descrivere il canale. Non è utilizzato per la connessione a Telegram."+ chat_id:+ title: ID chat+ help: Un numero fornito dal bot o un identificatore del canale di trasmissione nella forma @channelname+ errors:+ channel_not_found: "Il canale specificato non esiste su Telegram"+ forbidden: "Il bot non ha il permesso di pubblicare su questo canale"+ discord:+ title: "Discord"+ param:+ name:+ title: "Nome"+ help: "Un nome per descrivere il canale. Non è usato per la connessione a Discord."+ webhook_url:+ title: URL Webhook+ help: L'URL del webhook creato nelle impostazioni del server Discord+ guilded:+ title: "Guilded"+ param:+ name:+ title: "Nome"+ help: "Un nome per descrivere il canale. Non è usato per la connessione a Guilded"+ webhook_url:+ title: URL Webhook+ help: L'URL del webhook creato nelle impostazioni del server Guilded+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: Canale+ help: "es. #canale, @nomeutente."+ errors:+ channel_not_found: "Il canale specificato non esiste in Mattermost"+ matrix:+ title: "Matrix"+ param:+ name:+ title: "Nome"+ help: "Un nome per descrivere il canale. Non è utilizzato per la connessione a Matrix."+ room_id:+ title: "ID stanza"+ help: "L' \"identificatore privato\" per la stanza. Dovrebbe essere qualcosa di simile a !abcdefg:matrix.org"+ errors:+ unknown_token: "Il token di accesso non è valido"+ unknown_room: "L'ID stanza non è valido"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "Stream"+ help: "Il nome dello stream di Zulip al quale il messaggio deve essere inviato. es. 'general'"+ subject:+ title: "Oggetto"+ help: "L'oggetto che i messaggi inviati dal bot dovrebbero avere"+ errors:+ does_not_exist: "Questo stream non esiste su Zulip"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: Canale+ help: "es. #canale, @nomeutente."+ errors:+ invalid_channel: "Quel canale non esiste su Rocket Chat"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "Nome"+ help: "Il nome di una stanza Gitter, ad esempio gitterHQ/servizi."+ webhook_url:+ title: "URL Webhook"+ help: "L'URL fornito quando si crea una nuova integrazione in una stanza Gitter."+ flowdock:+ title: "Flowdock"+ param:+ flow_token:+ title: "Token di flusso"+ help: "Il token di flusso fornito dopo aver creato un'origine per un flusso in cui inviare messaggi."+ groupme:+ title: "GroupMe"+ param:+ groupme_instance_name:+ title: "Nome istanza GroupMe"+ help: "nome dell'istanza GroupMe come mostrata nell'elenco in Impostazioni sito. Usa l'opzione 'all' per inviare a tutte le istanze"+ errors:+ not_found: "Il percorso in cui hai tentato di pubblicare il tuo messaggio non è stato trovato. Controlla l'ID del bot in Impostazioni sito."+ teams:+ title: "Microsoft Teams"+ param:+ name:+ title: "Nome"+ help: "Il nome di un canale Teams, ad es., discourse"+ webhook_url:+ title: "URL Webhook"+ help: "L'URL fornito quando si crea una nuovo webhook in ingresso"+ errors:+ invalid_channel: "Quel canale non esiste su Microsoft Teams"+ powerautomate:+ title: "Microsoft Power Automate"+ param:+ name:+ title: "Nome"+ help: "Un nome per il canale (mostrato solo nell'interfaccia di amministrazione di Discourse)"+ webhook_url:+ title: "URL webhook"+ help: "L'URL fornito quando si crea una nuovo webhook in ingresso"+ errors:+ invalid_webhook: "L'URL del webhook non è valido."+ webex:+ title: "Webex Teams"+ param:+ name:+ title: "Nome"+ help: "Il nome di uno spazio Webex, ad es., discourse"+ webhook_url:+ title: "URL Webhook"+ help: "L'URL fornito quando si crea una nuovo webhook in ingresso"+ errors:+ invalid_channel: "Quel canale non esiste su Webex"+ google:+ title: "Google Chat"+ param:+ name:+ title: "Nome"+ help: "Un nome per il canale (mostrato solo nell'interfaccia di amministrazione di Discourse)"+ webhook_url:+ title: "URL Webhook"+ help: "L'URL fornito quando si crea una nuovo webhook"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Invia messaggio Slack+ fields:+ message:+ label: Messaggio+ description: >-+ Utilizza ${TOPIC} per il nome dell'argomento, ${URL} per l'URL utilizzato, ${REMOVED_TAGS} per i tag rimossi, ${ADDED_TAGS} per i tag aggiunti, ${ADDED_AND_REMOVED} per il testo predefinito. Disponibile solo se il trigger è impostato su Etichette argomento modificate.+ url:+ label: URL+ channel:+ label: Canale+ send_chat_integration_message:+ title: Invia messaggio di Chat-Integration+ fields:+ channel_name:+ label: Nome del canale+ description: "Puoi trovare il nome del canale nelle impostazioni di Chat Integration"+ provider:+ label: Fornitorediff --git a/plugins/discourse-chat-integration/config/locales/client.ja.yml b/plugins/discourse-chat-integration/config/locales/client.ja.ymlnew file mode 100644index 00000000000..7df652ab984--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.ja.yml@@ -0,0 +1,242 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ja:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "チャットの統合"+ js:+ chat_integration:+ menu_title: "チャットの統合"+ settings: "設定"+ no_providers: "プラグイン設定でいくつかのプロバイダーを有効にする必要があります"+ channels_with_errors: "このプロバイダーの一部のチャンネルは、最後にメッセージが送信されたときに失敗しました。詳細については、エラーアイコンをクリックしてください。"+ channel_exception: "メッセージがこのチャンネルに最後に送信されたときに、不明なエラーが発生しました。"+ group_mention_template: "メンション: @%{name}"+ group_message_template: "メッセージの宛先: @%{name}"+ choose_group: "(グループを選択)"+ all_categories: "(すべてのカテゴリ)"+ all_tags: "(すべてのタグ)"+ create_rule: "ルールを作成"+ create_channel: "チャンネルを作成"+ delete_channel: "削除"+ test_channel: "テスト"+ edit_channel: "編集"+ channel_delete_confirm: "このチャンネルを削除してもよろしいですか?関連するすべてのルールが削除されます。"+ test_modal:+ title: "テストメッセージの送信"+ topic: "トピック"+ send: "テストメッセージを送信"+ close: "閉じる"+ error: "メッセージの送信中に不明なエラーが発生しました。詳細については、サイトログをご覧ください。"+ success: "メッセージは正常に送信されました"+ type:+ normal: 標準+ group_message: グループメッセージ+ group_mention: グループメンション+ filter:+ mute: 'ミュート'+ follow: '最初の投稿のみ'+ watch: 'すべての投稿と返信'+ thread: '返信スレッドのあるすべての投稿'+ rule_table:+ filter: "フィルター"+ category: "カテゴリ"+ tags: "タグ"+ edit_rule: "編集"+ delete_rule: "削除"+ edit_channel_modal:+ title: "チャンネルを編集"+ save: "チャンネルを保存"+ cancel: "キャンセル"+ provider: "プロバイダー"+ channel_validation:+ ok: "有効"+ fail: "無効な形式"+ edit_rule_modal:+ title: ルールを編集+ save: ルールを保存+ cancel: キャンセル+ provider: プロバイダー+ type: タイプ+ channel: チャンネル+ filter: フィルター+ category: カテゴリ+ group: グループ+ tags: タグ+ instructions:+ type: "グループメッセージまたはメンションの通知をトリガーするタイプを変更します"+ filter: "通知レベル。ミュートは他の一致するルールをオーバーライドします"+ category: "個のルールは指定されたカテゴリのトピックにのみ適用されます"+ group: "このルールはこのグループを参照する投稿に適用されます"+ tags: "指定された場合、このルールは少なくとも以下のいずれかのタグを持つトピックにのみ適用されます"+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: チャンネル+ help: "例: #channel、@username。"+ errors:+ action_prohibited: "ボットには、そのチャンネルに投稿する権限がありません"+ channel_not_found: "指定されたチャンネルは Slack に存在しません"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "名前"+ help: "チャンネルを説明する名前。Telegram への接続には使用されません。"+ chat_id:+ title: チャット ID+ help: ボットから提供された番号、または @channelname の形式のブロードキャストチャンネル識別子+ errors:+ channel_not_found: "指定されたチャンネルは Telegram に存在しません"+ forbidden: "ボットには、このチャンネルに投稿する権限がありません"+ discord:+ title: "Discord"+ param:+ name:+ title: "名前"+ help: "チャンネルを説明する名前。Discord への接続には使用されません。"+ webhook_url:+ title: Webhook の URL+ help: Discord サーバー設定で作成された Webhook URL+ guilded:+ title: "Guilded"+ param:+ name:+ title: "名前"+ help: "チャンネルを説明する名前。Guilded への接続には使用されません。"+ webhook_url:+ title: Webhook の URL+ help: Guilded サーバー設定で作成された Webhook URL+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: チャンネル+ help: "例: #channel、@username。"+ errors:+ channel_not_found: "指定されたチャンネルは Mattermost に存在しません"+ matrix:+ title: "Matrix"+ param:+ name:+ title: "名前"+ help: "チャンネルを説明する名前。Matrix への接続には使用されません。"+ room_id:+ title: "ルーム ID"+ help: "ルームの「プライベート識別子」。!abcdefg:matrix.org のような形式です"+ errors:+ unknown_token: "アクセストークンが無効です"+ unknown_room: "ルーム ID が無効です"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "ストリーム"+ help: "メッセージの送信先となる Zulip ストリームの名前。例: 「general」"+ subject:+ title: "件名"+ help: "ボットが送信するこれらのメッセージに指定する件名"+ errors:+ does_not_exist: "そのストリームは Zulip に存在しません"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: チャンネル+ help: "例: #channel、@username。"+ errors:+ invalid_channel: "そのチャンネルは Rocket Chat に存在しません"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "名前"+ help: "Gitter ルームの名前。例: gitterHQ/services。"+ webhook_url:+ title: "Webhook の URL"+ help: "Gitter ルームで新しい統合を作成するときに提供される URL。"+ flowdock:+ title: "Flowdock"+ param:+ flow_token:+ title: "Flow トークン"+ help: "メッセージの送信先となる Flow のソースを作成した後に提供される Flow トークン。"+ groupme:+ title: "GroupMe"+ param:+ groupme_instance_name:+ title: "GroupMe インスタンス名"+ help: "サイト設定にリストされている GroupMe インスタンスの名前。すべてのインスタンスに送信するには「all」を使用します"+ errors:+ not_found: "メッセージの投稿先のパスが見つかりません。サイト設定でボット ID を確認してください。"+ teams:+ title: "Microsoft Teams"+ param:+ name:+ title: "名前"+ help: "Teams チャンネル名。例: discourse"+ webhook_url:+ title: "Webhook の URL"+ help: "新しい着信 Webhook を作成するときに提供される URL"+ errors:+ invalid_channel: "そのチャンネルは Microsoft Teams に存在しません"+ powerautomate:+ title: "Microsoft Power Automate"+ param:+ name:+ title: "名前"+ help: "チャンネルの名前(Discourse 管理者インターフェースにのみ表示)"+ webhook_url:+ title: "Webhook URL"+ help: "新しい着信 Webhook を作成するときに提供される URL"+ errors:+ invalid_webhook: "その webhook URL は有効ではありません。"+ webex:+ title: "Webex Teams"+ param:+ name:+ title: "名前"+ help: "Webex スペース名。例: discourse"+ webhook_url:+ title: "Webhook の URL"+ help: "新しい着信 Webhook を作成するときに提供される URL"+ errors:+ invalid_channel: "そのチャンネルは Webex に存在しません"+ google:+ title: "Google チャット"+ param:+ name:+ title: "名前"+ help: "チャンネルの名前(Discourse 管理者インターフェースにのみ表示)"+ webhook_url:+ title: "Webhook の URL"+ help: "新しい Webhook を作成するときに提供される URL"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Slack メッセージを送信する+ fields:+ message:+ label: メッセージ+ description: >-+ トピック名に ${TOPIC}、使用されている URL に ${URL}、削除されたタグに ${REMOVED_TAGS}、追加されたタグに ${ADDED_TAGS}、デフォルトのテキストに ${ADDED_AND_REMOVED} を使用します。トリガーが「トピックタグの変更」に設定されている場合にのみ使用できます。+ url:+ label: URL+ channel:+ label: チャンネル+ send_chat_integration_message:+ title: チャット統合メッセージの送信+ fields:+ channel_name:+ label: チャンネル名+ description: "チャンネル名はチャット統合の設定で確認できます"+ provider:+ label: プロバイダーdiff --git a/plugins/discourse-chat-integration/config/locales/client.ko.yml b/plugins/discourse-chat-integration/config/locales/client.ko.ymlnew file mode 100644index 00000000000..81bc60fb075--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.ko.yml@@ -0,0 +1,191 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ko:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "채팅 통합"+ js:+ chat_integration:+ menu_title: "채팅 통합"+ settings: "설정"+ no_providers: "플러그인 설정에서 일부 제공자를 활성화해야합니다"+ channels_with_errors: "이 제공자의 일부 채널은 마지막으로 메시지를 송신 할 때 실패했습니다. 자세한 내용을 보려면 오류 아이콘을 클릭하십시오."+ channel_exception: "메시지가이 채널로 마지막으로 전송 될 때 알 수없는 오류가 발생했습니다."+ group_mention_template: "언급 : @ %{name}"+ group_message_template: "메시지 : @ %{name}"+ choose_group: "(그룹을 선택하십시오)"+ all_categories: "(전체 카테고리)"+ all_tags: "(모든 태그)"+ create_rule: "규칙 만들기"+ create_channel: "채널 만들기"+ delete_channel: "삭제"+ test_channel: "테스트"+ edit_channel: "수정"+ channel_delete_confirm: "이 채널을 삭제 하시겠습니까? 관련된 모든 규칙이 삭제됩니다."+ test_modal:+ title: "테스트 메시지 보내기"+ topic: "토픽"+ send: "테스트 메시지 보내기"+ close: "닫기"+ error: "메시지를 보내는 동안 알 수없는 오류가 발생했습니다. 자세한 내용은 사이트 로그를 확인하십시오."+ success: "메세지가 성공적으로 전송되었습니다"+ type:+ normal: '알림 : 일반'+ group_message: 그룹 메시지+ group_mention: 그룹 언급+ filter:+ mute: '알림 끄기'+ follow: '첫 번째 게시물 만'+ watch: '모든 게시물과 답글'+ rule_table:+ filter: "필터"+ category: "카테고리"+ tags: "태그"+ edit_rule: "수정"+ delete_rule: "삭제"+ edit_channel_modal:+ title: "채널 수정"+ save: "채널 저장"+ cancel: "취소"+ provider: "공급자"+ channel_validation:+ ok: "유효한"+ fail: "잘못된 형식"+ edit_rule_modal:+ title: 규칙 수정+ save: 규칙 저장+ cancel: 취소+ provider: 공급자+ type: 형식+ channel: 채널+ filter: 필터+ category: 카테고리+ group: 그룹+ tags: 태그+ instructions:+ type: "그룹 메시지 또는 멘션에 대한 알림을 트리거하도록 유형 변경"+ filter: "알림 수준. 음소거는 다른 일치 규칙보다 우선합니다."+ category: "이 규칙은 지정된 카테고리의 주제에만 적용됩니다."+ group: "이 규칙은이 그룹을 참조하는 게시물에 적용됩니다."+ tags: "지정된 경우이 규칙은 이러한 태그 중 하나 이상을 가진 주제에만 적용됩니다."+ provider:+ slack:+ title: "느슨하게"+ param:+ identifier:+ title: 채널+ help: "예 : #channel, @username"+ errors:+ action_prohibited: "봇은 해당 채널에 게시 할 권한이 없습니다"+ channel_not_found: "지정된 채널이 여유 시간에 존재하지 않습니다"+ telegram:+ title: "텔레그램"+ param:+ name:+ title: "이름"+ help: "채널을 설명하는 이름입니다. Telegram에 연결하는 데 사용되지 않습니다."+ chat_id:+ title: 채팅 ID+ help: 봇이 제공 한 번호 또는 @channelname 형식의 브로드 캐스트 채널 식별자+ errors:+ channel_not_found: "지정된 채널이 텔레 그램에 없습니다"+ forbidden: "봇은이 채널에 게시 할 권한이 없습니다"+ discord:+ title: "불일치"+ param:+ name:+ title: "이름"+ help: "채널을 설명하는 이름입니다. Discord 연결에는 사용되지 않습니다."+ webhook_url:+ title: 웹 후크 URL+ help: Discord 서버 설정에서 생성 된 웹 후크 URL+ guilded:+ param:+ name:+ title: "그룹명"+ webhook_url:+ title: 웹 후크 URL+ mattermost:+ title: "가장 중요한"+ param:+ identifier:+ title: 채널+ help: "예 : #channel, @username"+ errors:+ channel_not_found: "지정된 채널이 Mattermost에 존재하지 않습니다"+ matrix:+ title: "매트릭스"+ param:+ name:+ title: "이름"+ help: "채널을 설명하는 이름입니다. Matrix에 연결하는 데 사용되지 않습니다."+ room_id:+ title: "방 ID"+ help: "회의실의 '개인 식별자'입니다. ! abcdefg : matrix.org와 같은 형식이어야합니다."+ errors:+ unknown_token: "액세스 토큰이 유효하지 않습니다"+ unknown_room: "방 ID가 잘못되었습니다"+ zulip:+ title: "줄립"+ param:+ stream:+ title: "흐름"+ subject:+ title: "제목"+ rocketchat:+ param:+ identifier:+ title: 채널+ help: "예 : #channel, @username"+ gitter:+ param:+ name:+ title: "이름"+ webhook_url:+ title: "웹 후크 URL"+ teams:+ param:+ name:+ title: "그룹명"+ webhook_url:+ title: "웹 후크 URL"+ powerautomate:+ param:+ name:+ title: "그룹명"+ webhook_url:+ title: "웹 후크 URL"+ webex:+ param:+ name:+ title: "그룹명"+ webhook_url:+ title: "웹 후크 URL"+ google:+ param:+ name:+ title: "그룹명"+ webhook_url:+ title: "웹 후크 URL"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: 메시지 보내기+ url:+ label: URL+ channel:+ label: 채널+ send_chat_integration_message:+ fields:+ channel_name:+ label: 채널명+ provider:+ label: 공급자diff --git a/plugins/discourse-chat-integration/config/locales/client.lt.yml b/plugins/discourse-chat-integration/config/locales/client.lt.ymlnew file mode 100644index 00000000000..9cc5fc6cae8--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.lt.yml@@ -0,0 +1,92 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++lt:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Pokalbių integracijos"+ js:+ chat_integration:+ menu_title: "Pokalbių integracijos"+ settings: "Nustatymai"+ all_categories: "(Visos kategorijos)"+ delete_channel: "Pašalinti"+ test_channel: "Bandymas"+ edit_channel: "Redaguoti"+ test_modal:+ topic: "Tema"+ close: "Uždaryti"+ type:+ normal: Įprastas+ filter:+ mute: 'Nutildyti'+ rule_table:+ filter: "Filtruoti"+ category: "Kategorija"+ tags: "Žymos"+ edit_rule: "Redaguoti"+ delete_rule: "Pašalinti"+ edit_channel_modal:+ cancel: "Atšaukti"+ edit_rule_modal:+ cancel: Atšaukti+ type: Tipas+ filter: Filtruoti+ category: Kategorija+ group: Grupė+ tags: Žymos+ provider:+ telegram:+ param:+ name:+ title: "Vardas"+ discord:+ title: "Discord"+ param:+ name:+ title: "Vardas"+ guilded:+ param:+ name:+ title: "Vardas"+ matrix:+ param:+ name:+ title: "Vardas"+ zulip:+ param:+ subject:+ title: "Tema"+ gitter:+ param:+ name:+ title: "Vardas"+ teams:+ param:+ name:+ title: "Vardas"+ powerautomate:+ param:+ name:+ title: "Vardas"+ webex:+ param:+ name:+ title: "Vardas"+ google:+ param:+ name:+ title: "Vardas"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Žinutės+ url:+ label: Nuorodadiff --git a/plugins/discourse-chat-integration/config/locales/client.lv.yml b/plugins/discourse-chat-integration/config/locales/client.lv.ymlnew file mode 100644index 00000000000..a70acde9952--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.lv.yml@@ -0,0 +1,85 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++lv:+ js:+ chat_integration:+ settings: "Iestatījumi"+ all_categories: "(Visas kategorijas)"+ delete_channel: "Dzēst"+ edit_channel: "Labot"+ test_modal:+ topic: "Tēmas"+ close: "Aizvērt"+ type:+ normal: Normāls+ filter:+ mute: 'Noklusināt'+ rule_table:+ filter: "Filtrs"+ category: "Sadaļa"+ tags: "Birkas"+ edit_rule: "Labot"+ delete_rule: "Dzēst"+ edit_channel_modal:+ cancel: "Atcelt"+ edit_rule_modal:+ cancel: Atcelt+ type: Tips+ filter: Filtrs+ category: Sadaļa+ group: Grupa+ tags: Birkas+ provider:+ telegram:+ param:+ name:+ title: "Vārds"+ discord:+ title: "Discord"+ param:+ name:+ title: "Vārds"+ guilded:+ param:+ name:+ title: "Vārds"+ matrix:+ param:+ name:+ title: "Vārds"+ zulip:+ param:+ subject:+ title: "Tēma"+ gitter:+ param:+ name:+ title: "Vārds"+ teams:+ param:+ name:+ title: "Vārds"+ powerautomate:+ param:+ name:+ title: "Vārds"+ webex:+ param:+ name:+ title: "Vārds"+ google:+ param:+ name:+ title: "Vārds"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Ziņa+ url:+ label: URLdiff --git a/plugins/discourse-chat-integration/config/locales/client.nb_NO.yml b/plugins/discourse-chat-integration/config/locales/client.nb_NO.ymlnew file mode 100644index 00000000000..e246ceb8caa--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.nb_NO.yml@@ -0,0 +1,157 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++nb_NO:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Sludreintegreringer"+ js:+ chat_integration:+ menu_title: "Sludreintegreringer"+ settings: "Innstillinger"+ no_providers: "Du må skru på noen tilbydere i proramtilleggsinnstillingene"+ channels_with_errors: "Noen kanaler for denne tilbyderen mislyktes sist meldinger ble sendt. Klikk på feil-ikon(ene) for å lære mer."+ choose_group: "(velg en gruppe)"+ all_categories: "(alle kategorier)"+ all_tags: "(alle stikkord)"+ create_rule: "Lag regel"+ create_channel: "Opprett kanal"+ delete_channel: "Slett"+ test_channel: "Test"+ edit_channel: "Rediger"+ channel_delete_confirm: "Er du sikker på at du ønsker å slette denne kanalen? Alle tilknyttede regler vil bli slettet."+ test_modal:+ title: "Send en testmelding"+ topic: "Emne"+ send: "Send testmelding"+ close: "Lukk"+ error: "En ukjent feil inntraff under forsendelse av meldingen. Sjekk sideloggen for mer informasjon."+ success: "Melding sendt"+ type:+ normal: Normal+ group_message: Gruppemelding+ group_mention: Gruppeomtale+ filter:+ mute: 'Ignorer'+ follow: 'Kun første innlegg'+ watch: 'Alle innlegg og svar'+ rule_table:+ filter: "Filter"+ category: "Kategori"+ tags: "Stikkord"+ edit_rule: "Rediger"+ delete_rule: "Slett"+ edit_channel_modal:+ title: "Rediger kanal"+ save: "Lagre kanal"+ cancel: "Avbryt"+ provider: "Tilbyder"+ channel_validation:+ ok: "Gyldig"+ fail: "Ugyldig format"+ edit_rule_modal:+ title: Rediger regel+ save: Lagre regel+ cancel: Avbryt+ provider: Tilbyder+ type: Type+ channel: Kanal+ filter: Filter+ category: Kategori+ group: Gruppe+ tags: Stikkord+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: Kanal+ help: "f.eks. #kanal, @brukernavn."+ telegram:+ title: "Telegram"+ param:+ name:+ title: "Navn"+ chat_id:+ title: Sludre-ID+ discord:+ title: "Discord"+ param:+ name:+ title: "Navn"+ guilded:+ param:+ name:+ title: "Navn"+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: Kanal+ help: "f.eks. #kanal, @brukernavn."+ matrix:+ title: "Matrix"+ param:+ name:+ title: "Navn"+ room_id:+ title: "Rom-ID"+ errors:+ unknown_token: "Tilgangssymbolet er ugyldig"+ unknown_room: "Ugyldig rom-ID"+ zulip:+ title: "Zulip"+ param:+ subject:+ title: "Emne"+ errors:+ does_not_exist: "Den strømmen finnes ikke på Zulip"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: Kanal+ help: "f.eks. #kanal, @brukernavn."+ errors:+ invalid_channel: "Den kanalen finnes ikke på Rocket Chat"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "Navn"+ help: "Et Gitter-romnavn f.eks. gitterHQ/services."+ teams:+ param:+ name:+ title: "Navn"+ powerautomate:+ param:+ name:+ title: "Navn"+ webex:+ param:+ name:+ title: "Navn"+ google:+ param:+ name:+ title: "Navn"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Send+ url:+ label: URL+ channel:+ label: Kanal+ send_chat_integration_message:+ fields:+ provider:+ label: Tilbyderdiff --git a/plugins/discourse-chat-integration/config/locales/client.nl.yml b/plugins/discourse-chat-integration/config/locales/client.nl.ymlnew file mode 100644index 00000000000..d1eb420614c--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.nl.yml@@ -0,0 +1,242 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++nl:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Chatintegraties"+ js:+ chat_integration:+ menu_title: "Chatintegraties"+ settings: "Instellingen"+ no_providers: "Je moet enkele providers inschakelen in de plug-ininstellingen"+ channels_with_errors: "De laatste keer dat berichten werden gestuurd, werkten sommige kanalen niet voor deze provider. Klik op de foutpictogrammen voor meer informatie."+ channel_exception: "De laatste keer dat een bericht naar dit kanaal werd gestuurd, is een onbekende fout opgetreden."+ group_mention_template: "Vermeldingen van: @%{name}"+ group_message_template: "Berichten naar: @%{name}"+ choose_group: "(kies een groep)"+ all_categories: "(alle categorieën)"+ all_tags: "(alle tags)"+ create_rule: "Regel maken"+ create_channel: "Kanaal maken"+ delete_channel: "Verwijderen"+ test_channel: "Testen"+ edit_channel: "Bewerken"+ channel_delete_confirm: "Weet je zeker dat je dit kanaal wilt verwijderen? Alle bijbehorende regels worden verwijderd."+ test_modal:+ title: "Stuur een testbericht"+ topic: "Topic"+ send: "Testbericht sturen"+ close: "Sluiten"+ error: "Tijdens het verzenden van het bericht is een onbekende fout opgetreden. Zie de sitelogs voor meer informatie."+ success: "Bericht verzonden"+ type:+ normal: Normaal+ group_message: Groepsbericht+ group_mention: Groepsvermelding+ filter:+ mute: 'Dempen'+ follow: 'Alleen eerste bericht'+ watch: 'Alle berichten en antwoorden'+ thread: 'Alle berichten met antwoorden in draad'+ rule_table:+ filter: "Filter"+ category: "Categorie"+ tags: "Tags"+ edit_rule: "Bewerken"+ delete_rule: "Verwijderen"+ edit_channel_modal:+ title: "Kanaal bewerken"+ save: "Kanaal opslaan"+ cancel: "Annuleren"+ provider: "Provider"+ channel_validation:+ ok: "Geldig"+ fail: "Ongeldige notatie"+ edit_rule_modal:+ title: Regel bewerken+ save: Regel opslaan+ cancel: Annuleren+ provider: Provider+ type: Type+ channel: Kanaal+ filter: Filter+ category: Categorie+ group: Groep+ tags: Tags+ instructions:+ type: "Wijzig het type om meldingen te activeren voor groepsberichten of -vermeldingen"+ filter: "Meldingsniveau. Dempen heeft voorrang op andere matchingregels"+ category: "Deze regel wordt alleen toegepast op topics in de opgegeven categorie"+ group: "Deze regel wordt toegepast op alle berichten die naar deze groep verwijzen"+ tags: "Wanneer opgegeven, wordt deze regel alleen toegepast op topics die minimaal een van deze tags bevatten"+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: Kanaal+ help: "bijvoorbeeld #kanaal, @gebruikersnaam."+ errors:+ action_prohibited: "De bot heeft geen toestemming om berichten in dat kanaal te plaatsen"+ channel_not_found: "Het opgegeven kanaal bestaat niet op Slack"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "Naam"+ help: "Een naam om het kanaal te beschrijven. Deze wordt niet gebruikt voor de verbinding met Telegram."+ chat_id:+ title: Chat-ID+ help: Een door de bot aan jou gegeven nummer, of een broadcastkanaal-ID in de vorm @kanaalnaam+ errors:+ channel_not_found: "Het opgegeven kanaal bestaat niet op Telegram"+ forbidden: "De bot heeft geen toestemming om berichten in dit kanaal te plaatsen"+ discord:+ title: "Discord"+ param:+ name:+ title: "Naam"+ help: "Een naam om het kanaal te beschrijven. Deze wordt niet gebruikt voor de verbinding met Discord."+ webhook_url:+ title: Webhook-URL+ help: De in je Discourse-serverinstellingen gemaakte webhook-URL+ guilded:+ title: "Guilded"+ param:+ name:+ title: "Naam"+ help: "Een naam om het kanaal te beschrijven. Deze wordt niet gebruikt voor de verbinding met Guilded"+ webhook_url:+ title: Webhook-URL+ help: De in je Guilded-serverinstellingen gemaakte webhook-URL+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: Kanaal+ help: "bijvoorbeeld #kanaal, @gebruikersnaam."+ errors:+ channel_not_found: "Het opgegeven kanaal bestaat niet op Mattermost"+ matrix:+ title: "Matrix"+ param:+ name:+ title: "Naam"+ help: "Een naam om het kanaal te beschrijven. Deze wordt niet gebruikt voor de verbinding met Matrix."+ room_id:+ title: "Ruimte-ID"+ help: "De 'privé-ID' voor de ruimte. Deze dient eruit te zien als !abcdefg:matrix.org"+ errors:+ unknown_token: "Toegangstoken is ongeldig"+ unknown_room: "Ruimte-ID is ongeldig"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "Stream"+ help: "De naam van de Zulip-stream waarnaar het bericht moet worden gestuurd, bijvoorbeeld 'algemeen'"+ subject:+ title: "Onderwerp"+ help: "Het onderwerp dat aan deze door de bot gestuurde berichten moet worden gegeven"+ errors:+ does_not_exist: "Die stream bestaat niet op Zulip"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: Kanaal+ help: "bijvoorbeeld #kanaal, @gebruikersnaam."+ errors:+ invalid_channel: "Dat kanaal bestaat niet op Rocket Chat"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "Naam"+ help: "De naam van een Gitter-ruimte, bijvoorbeeld gitterHQ/services."+ webhook_url:+ title: "Webhook-URL"+ help: "De opgegeven URL wanneer je een nieuwe integratie maakt in een Gitter-ruimte."+ flowdock:+ title: "Flowdock"+ param:+ flow_token:+ title: "Flowtoken"+ help: "Het opgegeven flowtoken na het maken van een bron voor een flow waarin je berichten wilt sturen."+ groupme:+ title: "GroupMe"+ param:+ groupme_instance_name:+ title: "Naam van GroupMe-instantie"+ help: "Naam van de Groupme-instantie zoals vermeld in Site-instellingen. Gebruik 'all' om naar alle instanties te sturen."+ errors:+ not_found: "Het pad waarin je je bericht probeerde te plaatsen, kon niet worden gevonden. Controleer de Bot-ID in Site-instellingen."+ teams:+ title: "Microsoft Teams"+ param:+ name:+ title: "Naam"+ help: "Een Teams-kanaalnaam, bijvoorbeeld Discourse"+ webhook_url:+ title: "Webhook-URL"+ help: "De opgegeven URL wanneer je een nieuwe inkomende webhook maakt"+ errors:+ invalid_channel: "Dat kanaal bestaat niet op Microsoft Teams"+ powerautomate:+ title: "Microsoft Power Automate"+ param:+ name:+ title: "Naam"+ help: "Een naam voor het kanaal (alleen weergegeven in de beheerinterface van Discourse)"+ webhook_url:+ title: "Webhook-URL"+ help: "De opgegeven URL wanneer je een nieuwe inkomende webhook maakt"+ errors:+ invalid_webhook: "Deze webhook-URL is ongeldig."+ webex:+ title: "Webex Teams"+ param:+ name:+ title: "Naam"+ help: "Een Webex-ruimtenaam, bijvoorbeeld Discourse"+ webhook_url:+ title: "Webhook-URL"+ help: "De opgegeven URL wanneer je een nieuwe inkomende webhook maakt"+ errors:+ invalid_channel: "Dat kanaal bestaat niet op Webex"+ google:+ title: "Google Chat"+ param:+ name:+ title: "Naam"+ help: "Een naam voor het kanaal (alleen weergegeven in de beheerinterface van Discourse)"+ webhook_url:+ title: "Webhook-URL"+ help: "De opgegeven URL wanneer je een nieuwe webhook maakt"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Slack-bericht sturen+ fields:+ message:+ label: Bericht+ description: >-+ Gebruik ${TOPIC} voor de topicnaam, ${URL} voor de gebruikte URL, ${REMOVED_TAGS} voor verwijderde tags, ${ADDED_TAGS} voor toegevoegde tags, ${ADDED_AND_REMOVED} voor standaardtekst. Alleen beschikbaar als de trigger is ingesteld op Topictags gewijzigd.+ url:+ label: URL+ channel:+ label: Kanaal+ send_chat_integration_message:+ title: Chatintegratiebericht verzenden+ fields:+ channel_name:+ label: Kanaalnaam+ description: "Je kunt de kanaalnaam vinden in de Chatintegratie-instellingen"+ provider:+ label: Providerdiff --git a/plugins/discourse-chat-integration/config/locales/client.pl_PL.yml b/plugins/discourse-chat-integration/config/locales/client.pl_PL.ymlnew file mode 100644index 00000000000..fe321ea53b0--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.pl_PL.yml@@ -0,0 +1,235 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++pl_PL:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Integracje czatu"+ js:+ chat_integration:+ menu_title: "Integracje czatu"+ settings: "Ustawienia"+ no_providers: "Musisz włączyć niektórych dostawców w ustawieniach wtyczki"+ channels_with_errors: "Niektóre kanały dla tego dostawcy nie powiodły się, gdy zostały wysłane ostatnie wiadomości. Kliknij ikonę błędu, aby dowiedzieć się więcej."+ channel_exception: "Wystąpił nieznany błąd, gdy wiadomość została ostatnio wysłana na ten kanał."+ group_mention_template: "Wzmianki o: @%{name}"+ group_message_template: "Wiadomości do: @%{name}"+ choose_group: "(wybierz grupę)"+ all_categories: "(wszystkie kategorie)"+ all_tags: "(wszystkie tagi)"+ create_rule: "Stwórz Regułę"+ create_channel: "Stwórz Kanał"+ delete_channel: "Usuń"+ test_channel: "Sprawdź"+ edit_channel: "Edytuj"+ channel_delete_confirm: "Jesteś pewien, że chcesz usunąć ten kanał? Wszystkie połączone reguły zostaną usunięte."+ test_modal:+ title: "Wyślij wiadomość testową"+ topic: "Temat"+ send: "Wyślij Wiadomość Testową"+ close: "Zamknij"+ error: "Wystąpił nieznany błąd, w trakcie wysyłania wiadomości na ten kanał. Sprawdź logi witryny, aby uzyskać więcej informacji."+ success: "Wiadomość wysłana poprawnie"+ type:+ normal: Normalny+ group_message: Wiadomość Grupowa+ group_mention: Wzmianka grupy+ filter:+ mute: 'Wycisz'+ follow: 'Tylko pierwszy wpis'+ watch: 'Wszystkie wpisy i odpowiedzi'+ thread: 'Wszystkie posty z odpowiedziami w wątkach'+ rule_table:+ filter: "Filtr"+ category: "Kategoria"+ tags: "Tagi"+ edit_rule: "Edytuj"+ delete_rule: "Usuń"+ edit_channel_modal:+ title: "Edytuj Kanał"+ save: "Zapisz Kanał"+ cancel: "Anuluj"+ provider: "Dostawca"+ channel_validation:+ ok: "Poprawny"+ fail: "Niepoprawny format"+ edit_rule_modal:+ title: Edytuj Regułę+ save: Zapisz Regułę+ cancel: Anuluj+ provider: Dostawca+ type: Typ+ channel: Kanał+ filter: Filtr+ category: Kategoria+ group: Grupa+ tags: Tagi+ instructions:+ type: "Zmień typ, aby wyświetlał powiadomienia o grupowych wiadomościach lub wzmiankach"+ filter: "Poziom powiadomień. Wyciszenie zastępuje inne pasujące reguły"+ category: "Ta reguła dotyczy tylko tematów w określonej kategorii"+ group: "Ta reguła będzie miała zastosowanie do postów odnoszących się do tej grupy"+ tags: "Jeśli zostanie określona, ta reguła będzie dotyczyć tylko tematów, które zawierają co najmniej jeden z tych tagów"+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: Kanał+ help: "np. #kanał, @użytkownik."+ errors:+ action_prohibited: "Bot nie ma uprawnień do publikowania na tym kanale"+ channel_not_found: "Ten kanał nie istnieje na Slacku"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "Nazwa"+ help: "Nazwa opisująca kanał. Nie jest używana do połączenia z Telegramem."+ chat_id:+ title: ID czatu+ help: Numer nadany przez bota lub identyfikator kanału nadawania w formie @nazwakanału+ errors:+ channel_not_found: "Określony kanał nie istnieje w Telegramie"+ forbidden: "Bot nie ma uprawnień do publikowania na tym kanale"+ discord:+ title: "Discord"+ param:+ name:+ title: "Nazwa"+ help: "Nazwa opisująca kanał. Nie służy do połączenia z Discord."+ webhook_url:+ title: Adres URL webhooka+ help: URL webhooka stworzony w ustawienia serwera Discorda.+ guilded:+ title: "Guilded"+ param:+ name:+ title: "Nazwa"+ help: "Nazwa opisująca kanał. Nie jest używana do połączenia z Guilded"+ webhook_url:+ title: URL webhooka+ help: URL webhook'a utworzony w ustawieniach serwera Guilded+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: Kanał+ help: "np. #kanał, @użytkownik."+ errors:+ channel_not_found: "Określony kanał nie istnieje w Mattermost"+ matrix:+ title: "Matrix"+ param:+ name:+ title: "Nazwa"+ help: "Nazwa opisująca kanał. Nie jest używana do połączenia z Matrix."+ room_id:+ title: "ID pokoju"+ help: "\"Prywatny identyfikator\" pokoju. Powinien wyglądać mniej więcej tak: !abcdefg:matrix.org"+ errors:+ unknown_token: "Token dostępu jest nieprawidłowy"+ unknown_room: "ID pokoju jest nieprawidłowy"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "Stream"+ help: "Nazwa streamu Zulip, na który powinna zostać wysłana wiadomość, np. 'general'"+ subject:+ title: "Temat"+ help: "Powinieneś nadać tytuł wiadomości wysyłanych przez bota"+ errors:+ does_not_exist: "Ten kanał nie istnieje na Zulip"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: Kanał+ help: "np. #kanał, @użytkownik."+ errors:+ invalid_channel: "Ten kanał nie istnieje na Rocket Chat"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "Nazwa"+ help: "Nazwa pokoju Glitter, np. gitterHQ/services."+ webhook_url:+ title: "Adres URL webhooka"+ help: "Adres URL podany podczas tworzenia nowej integracji w pokoju Gitter."+ flowdock:+ title: "Flowdock"+ param:+ flow_token:+ title: "Flow Token"+ help: "Flow token nadany w trakcie tworzenia źródła flowu w którym zamierzasz wysyłać wiadomości."+ groupme:+ title: "GroupMe"+ param:+ groupme_instance_name:+ title: "Nazwa instancji GroupMe"+ help: "Nazwa instancji GroupMe wymieniona w ustawieniach witryny. Użyj 'all', aby wysłać do wszystkich instancji."+ errors:+ not_found: "Nie znaleziono ścieżki, na którą próbujesz wysłać wiadomość. Sprawdź identyfikator bota w ustawieniach witryny."+ teams:+ title: "Microsoft Teams"+ param:+ name:+ title: "Nazwa"+ help: "Nazwa kanału Teams, np. discourse"+ webhook_url:+ title: "URL webhooka"+ help: "Adres URL podany podczas tworzenia nowego przychodzącego webhooka"+ errors:+ invalid_channel: "Ten kanał nie istnieje w Microsoft Teams"+ powerautomate:+ param:+ name:+ title: "Nazwa"+ help: "Nazwa kanału (wyświetlana tylko w interfejsie administratora Discourse)"+ webhook_url:+ title: "URL webhook"+ help: "Adres URL podany podczas tworzenia nowego przychodzącego webhooka"+ webex:+ title: "Zespoły Webex"+ param:+ name:+ title: "Nazwa"+ help: "Nazwa miejsca Webex np. discourse"+ webhook_url:+ title: "URL webhooka"+ help: "Adres URL podany podczas tworzenia nowego przychodzącego webhooka"+ errors:+ invalid_channel: "Ten kanał nie istnieje w Webex"+ google:+ title: "Google Chat"+ param:+ name:+ title: "Nazwa"+ help: "Nazwa kanału (wyświetlana tylko w interfejsie administratora Discourse)"+ webhook_url:+ title: "URL webhook"+ help: "Adres URL podany podczas tworzenia nowego webhooka"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Wyślij wiadomość Slack+ fields:+ message:+ label: Wiadomość+ url:+ label: URL+ channel:+ label: Kanał+ send_chat_integration_message:+ fields:+ channel_name:+ label: Nazwa kanału+ provider:+ label: Dostawcadiff --git a/plugins/discourse-chat-integration/config/locales/client.pt.yml b/plugins/discourse-chat-integration/config/locales/client.pt.ymlnew file mode 100644index 00000000000..cf02948f909--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.pt.yml@@ -0,0 +1,194 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++pt:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Integrações de conversação"+ js:+ chat_integration:+ menu_title: "Integrações de conversação"+ settings: "Configurações"+ no_providers: "Precisa de ativar alguns provedores nas definições do ''plug-in''"+ channel_exception: "Ocorreu um erro desconhecido quando foi enviada uma mensagem para este canal."+ group_mention_template: "Menções de: @%{name}"+ group_message_template: "Mensagens para: @%{name}"+ choose_group: "(escolher um grupo)"+ all_categories: "(todas as categorias)"+ all_tags: "(todas as etiquetas)"+ create_rule: "Criar Regra"+ create_channel: "Criar Canal"+ delete_channel: "Eliminar"+ test_channel: "Testar"+ edit_channel: "Editar"+ channel_delete_confirm: "Tem a certeza que deseja eliminar este canal? Todas as regras associadas serão eliminadas."+ test_modal:+ title: "Enviar uma mensagem de teste"+ topic: "Tópico"+ send: "Enviar Mensagem de Teste"+ close: "Fechar"+ error: "Ocorreu um erro desconhecido enquanto enviava a mensagem. Verifique os registos do ''site'' para mais informação."+ success: "Mensagem enviada com sucesso"+ type:+ normal: Normal+ group_message: Mensagens de Grupo+ group_mention: Menção de Grupo+ filter:+ mute: 'Silenciar'+ follow: 'Apenas a primeira mensagem'+ watch: 'Todas as mensagens e respostas'+ rule_table:+ filter: "Filtrar"+ category: "Categoria"+ tags: "Etiquetas"+ edit_rule: "Editar"+ delete_rule: "Eliminar"+ edit_channel_modal:+ title: "Editar Canal"+ save: "Guardar Canal"+ cancel: "Cancelar"+ provider: "Provedor"+ channel_validation:+ ok: "Válida"+ fail: "Formato inválido"+ edit_rule_modal:+ title: Editar Regra+ save: Guardar Regra+ cancel: Cancelar+ provider: Provedor+ type: Tipo+ channel: Canal+ filter: Filtrar+ category: Categoria+ group: Grupo+ tags: Etiquetas+ instructions:+ type: "Alterar o tipo para acionar as notificações para as mensagens ou menções de grupo"+ filter: "Nível de notificação. Silêncio sobrepõe-se a outras regras correspondentes"+ category: "Esta regra aplica-se apenas para os tópicos na categoria especificada"+ group: "Esta regra será aplicada às mensagens que fazem referência a este grupo"+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: Canal+ help: "exemplo:. #channel, @username."+ errors:+ action_prohibited: "O robô não tem permissão para publicar para esse canal"+ channel_not_found: "O canal especificado não existe no slack"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "Nome"+ help: "O nome para descrever o canal. Este não é utilizado para a ligação ao Telegram"+ chat_id:+ title: Id. da Conversa+ errors:+ channel_not_found: "O canal especificado não existe no Telegram"+ forbidden: "O robô não tem permissão para publicar neste canal"+ discord:+ title: "Discord"+ param:+ name:+ title: "Nome"+ webhook_url:+ title: URL de Webhook+ help: O URL de ''webhook'' criado nas definições do seu servidor Discord+ guilded:+ param:+ name:+ title: "Nome"+ webhook_url:+ title: URL de Webhook+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: Canal+ help: "exemplo:. #channel, @username."+ errors:+ channel_not_found: "O canal especificado não existe no Mattermost"+ matrix:+ title: "Matrix"+ param:+ name:+ title: "Nome"+ room_id:+ title: "Id. da Sala"+ errors:+ unknown_token: "O código de acesso é inválido"+ unknown_room: "A Id. da Sala é inválida"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "Fluxo"+ help: "O nome do fluxo Zulip ao qual a mensagem deveria ser enviada. por exemplo. 'geral'"+ subject:+ title: "Assunto"+ help: "O assunto que estas mensagens enviadas pelo robô deveriam receber"+ errors:+ does_not_exist: "Esse fluxo não existe no Zulip"+ rocketchat:+ title: "Conversação Rocket"+ param:+ identifier:+ title: Canal+ help: "exemplo:. #channel, @username."+ errors:+ invalid_channel: "Esse canal não existe na Conversação Rocket"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "Nome"+ help: "Um nome da sala do Gitter, exemplo: gitterHQ/services."+ webhook_url:+ title: "URL de Webhook"+ flowdock:+ title: "Flowdock"+ teams:+ param:+ name:+ title: "Nome"+ webhook_url:+ title: "URL de Webhook"+ powerautomate:+ param:+ name:+ title: "Nome"+ webhook_url:+ title: "URL de Webhook"+ webex:+ param:+ name:+ title: "Nome"+ webhook_url:+ title: "URL de Webhook"+ google:+ param:+ name:+ title: "Nome"+ webhook_url:+ title: "URL de Webhook"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Mensagem+ url:+ label: URL+ channel:+ label: Canal+ send_chat_integration_message:+ fields:+ provider:+ label: Provedordiff --git a/plugins/discourse-chat-integration/config/locales/client.pt_BR.yml b/plugins/discourse-chat-integration/config/locales/client.pt_BR.ymlnew file mode 100644index 00000000000..5acdd6e107f--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.pt_BR.yml@@ -0,0 +1,242 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++pt_BR:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Integrações de bate-papo"+ js:+ chat_integration:+ menu_title: "Integrações de bate-papo"+ settings: "Configurações"+ no_providers: "Você precisa habilitar alguns provedores nas configurações do plugin"+ channels_with_errors: "Alguns canais deste provedor falharam na última vez em que as mensagens foram enviadas. Clique no(s) ícone(s) de erro para saber mais."+ channel_exception: "Um erro desconhecido ocorreu na última vez que uma mensagem foi enviada para este canal."+ group_mention_template: "Menções de: @%{name}"+ group_message_template: "Mensagens para: @%{name}"+ choose_group: "(escolha um grupo)"+ all_categories: "(todas as categorias)"+ all_tags: "(todas as etiquetas)"+ create_rule: "Criar Regra"+ create_channel: "Criar Canal"+ delete_channel: "Excluir"+ test_channel: "Testar"+ edit_channel: "Editar"+ channel_delete_confirm: "Você tem certeza de que deseja excluir este canal? Todas as regras associadas serão excluídas."+ test_modal:+ title: "Enviar uma mensagem de teste"+ topic: "Tópico"+ send: "Enviar Mensagem de Teste"+ close: "Fechar"+ error: "Um erro desconhecido ocorreu durante o envio da mensagem. Verifique os logs do site para mais informações."+ success: "Mensagem enviada com sucesso"+ type:+ normal: Normal+ group_message: Mensagem de Grupo+ group_mention: Menção de Grupo+ filter:+ mute: 'Silenciar'+ follow: 'Somente a primeira postagem'+ watch: 'Todas as postagens e respostas'+ thread: 'Todas as postagens encadeadas'+ rule_table:+ filter: "Filtro"+ category: "Categoria"+ tags: "Etiquetas"+ edit_rule: "Editar"+ delete_rule: "Excluir"+ edit_channel_modal:+ title: "Editar Canal"+ save: "Salvar Canal"+ cancel: "Cancelar"+ provider: "Provedor"+ channel_validation:+ ok: "Válido"+ fail: "Formato inválido"+ edit_rule_modal:+ title: Editar Regra+ save: Salvar Regra+ cancel: Cancelar+ provider: Provedor+ type: Tipo+ channel: Canal+ filter: Filtro+ category: Categoria+ group: Grupo+ tags: Etiquetas+ instructions:+ type: "Alterar o tipo para acionar notificações para mensagens de grupo ou menções"+ filter: "Nível de notificação. Silenciar sobrescreve outras regras correspondentes"+ category: "Esta regra será aplicada apenas a tópicos na categoria especificada"+ group: "Esta regra será aplicada a postagens que referenciem este grupo"+ tags: "Se especificado, esta regra será aplicada apenas a tópicos que possuem pelo menos uma destas etiquetas"+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: Canal+ help: "ex.: #canal, @username."+ errors:+ action_prohibited: "Este robô não tem permissão para postar naquele canal"+ channel_not_found: "O canal especificado não existe no Slack"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "Nome"+ help: "Um nome para descrever o canal. Não é usado para a conexão ao Telegram."+ chat_id:+ title: ID do Bate-Papo+ help: Um número dado a você pelo robô, ou um identificador do canal de transmissão no formato @nome_do_canal+ errors:+ channel_not_found: "O canal especificado não existe no Telegram"+ forbidden: "O robô não tem permissão para postar neste canal"+ discord:+ title: "Discord"+ param:+ name:+ title: "Nome"+ help: "Um nome para descrever o canal. Não é usado para a conexão ao Discord."+ webhook_url:+ title: URL do Webhook+ help: A URL do webhook criada nas configurações do seu servidor Discord+ guilded:+ title: "Guilded"+ param:+ name:+ title: "Nome"+ help: "Um nome para descrever o canal. Não é usado para a conexão ao Guilded"+ webhook_url:+ title: URL do Webhook+ help: A URL do webhook criada nas configurações do seu servidor Guilded+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: Canal+ help: "ex.: #canal, @username."+ errors:+ channel_not_found: "O canal especificado não existe no Mattermost"+ matrix:+ title: "Matrix"+ param:+ name:+ title: "Nome"+ help: "Um nome para descrever o canal. Não é usado para a conexão com o Matrix."+ room_id:+ title: "ID da Sala"+ help: "O \"identificador privado\" para a sala. Precisa ser algo como !abcdefg:matrix.org"+ errors:+ unknown_token: "O token de acesso é inválido"+ unknown_room: "O ID da sala é inválido"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "Transmissão"+ help: "O nome da transmissão do Zulip para a qual a mensagem deve ser enviada. ex.: \"geral'"+ subject:+ title: "Assunto"+ help: "O assunto com que estas mensagens enviadas pelo robô devem ser dadas"+ errors:+ does_not_exist: "Esta transmissão não existe no Zulip"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: Canal+ help: "ex.: #canal, @username."+ errors:+ invalid_channel: "Este canal não existe no Rocket Chat"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "Nome"+ help: "O nome de uma sala Gitter, ex.: gitterHQ/services."+ webhook_url:+ title: "URL do Webhook"+ help: "A URL fornecida quando você cria uma nova integração em uma sala Gitter."+ flowdock:+ title: "Flowdock"+ param:+ flow_token:+ title: "Token de Fluxo"+ help: "O token de fluxo fornecido depois de criar uma fonte para um fluxo no qual você deseja enviar mensagens."+ groupme:+ title: "GroupMe"+ param:+ groupme_instance_name:+ title: "Nome da instância GroupMe"+ help: "o nome da instância GroupMe como listado nas configurações do site. Use \"todas\" para enviar a todas as instâncias"+ errors:+ not_found: "O caminho para qual você tentou publicar sua mensagem não foi encontrado. Verifique o ID de Robô nas Configurações do Site."+ teams:+ title: "Microsoft Teams"+ param:+ name:+ title: "Nome"+ help: "Um nome de canal do Teams, por exemplo: discourse"+ webhook_url:+ title: "Webhook URL"+ help: "A URL fornecida ao criar um novo webhook de entrada"+ errors:+ invalid_channel: "Este canal não existe no Microsoft Teams"+ powerautomate:+ title: "Microsoft Power Automate"+ param:+ name:+ title: "Nome"+ help: "Um nome para o canal (exibido apenas na interface de administração do Discourse)"+ webhook_url:+ title: "URL do webhook"+ help: "A URL fornecida ao criar um novo webhook de entrada"+ errors:+ invalid_webhook: "A URL desse webhook não é válida."+ webex:+ title: "Webex Teams"+ param:+ name:+ title: "Nome"+ help: "Um nome de espaço do Webex, exemplo: discourse"+ webhook_url:+ title: "URL do Webhook"+ help: "A URL fornecida ao criar um novo webhook de entrada"+ errors:+ invalid_channel: "Este canal não existe no Webex"+ google:+ title: "Bate-papo do Google"+ param:+ name:+ title: "Nome"+ help: "Um nome para o canal (exibido apenas na interface de administração do Discourse)"+ webhook_url:+ title: "URL do Webhook"+ help: "A URL fornecida quando você cria um novo webhook de entrada"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Enviar uma mensagem do Slack+ fields:+ message:+ label: Mensagem+ description: >-+ Use ${TOPIC} para o nome do tópico, ${URL} para a URL utilizada, ${REMOVED_TAGS} para etiquetas removidas, ${ADDED_TAGS} para etiquetas adicionadas, ${ADDED_AND_REMOVED} para texto padrão. Disponível apenas se o gatilho estiver definido como etiquetas de tópico alteradas.+ url:+ label: URL+ channel:+ label: Canal+ send_chat_integration_message:+ title: Enviar mensagem de integração com chat+ fields:+ channel_name:+ label: Nome do canal+ description: "O nome do canal está nas configurações de integração do chat"+ provider:+ label: Provedordiff --git a/plugins/discourse-chat-integration/config/locales/client.ro.yml b/plugins/discourse-chat-integration/config/locales/client.ro.ymlnew file mode 100644index 00000000000..07156a9c81c--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.ro.yml@@ -0,0 +1,135 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ro:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Integrări pentru Chat"+ js:+ chat_integration:+ menu_title: "Integrări pentru Chat"+ settings: "Setări"+ no_providers: "Trebuie să activezi niște furnizori în setările pluginului"+ channels_with_errors: "Unele canale pentru acest furnizor au eșuat când au fost trimise mesaje ultima dată. Apăsați pictograma(ele) de eroare pentru a afla mai mult."+ choose_group: "(selectează un grup)"+ all_categories: "(toate categoriile)"+ all_tags: "(toate etichetele)"+ create_rule: "Creează regulă"+ create_channel: "Creează canal"+ delete_channel: "Șterge"+ test_channel: "Test"+ edit_channel: "Editează"+ channel_delete_confirm: "Ești sigur că vrei să ștergi acest canal? Toate regulile asociate vor fi șterse."+ test_modal:+ title: "Trimiteți un mesaj de test"+ topic: "Subiect"+ send: "Trimiteți un mesaj de test"+ close: "Închide"+ error: "O eroare necunoscută a apărut atunci când mesajul era în curs de trimitere. Verifică jurnalele site-ului pentru mai multe informații."+ success: "Mesajul a fost trimis cu succes"+ type:+ normal: Normal+ group_message: Mesaj de grup+ group_mention: Mențiune de grup+ filter:+ mute: 'Silențios'+ follow: 'Doar prima postare'+ watch: 'Toate postările și răspunsurile'+ rule_table:+ filter: "Filtrează"+ category: "Categorie"+ tags: "Etichete"+ edit_rule: "Editează"+ delete_rule: "Șterge"+ edit_channel_modal:+ title: "Editează canal"+ save: "Salvează canal"+ cancel: "Anulează"+ provider: "Furnizor"+ channel_validation:+ ok: "Corect"+ fail: "Format incorect"+ edit_rule_modal:+ title: Editează regulă+ save: Salvează regulă+ cancel: Anulează+ provider: Furnizor+ type: Tip+ channel: Canal+ filter: Filtru+ category: Categorie+ group: Grup+ tags: Etichete+ provider:+ slack:+ param:+ identifier:+ title: Canal+ telegram:+ param:+ name:+ title: "Nume"+ discord:+ title: "Discord"+ param:+ name:+ title: "Nume"+ guilded:+ param:+ name:+ title: "Nume"+ mattermost:+ param:+ identifier:+ title: Canal+ matrix:+ param:+ name:+ title: "Nume"+ zulip:+ param:+ subject:+ title: "Subiect"+ rocketchat:+ param:+ identifier:+ title: Canal+ gitter:+ param:+ name:+ title: "Nume"+ teams:+ param:+ name:+ title: "Nume"+ powerautomate:+ param:+ name:+ title: "Nume"+ webex:+ param:+ name:+ title: "Nume"+ google:+ param:+ name:+ title: "Nume"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Mesaj+ url:+ label: URL+ channel:+ label: Canal+ send_chat_integration_message:+ fields:+ provider:+ label: Furnizordiff --git a/plugins/discourse-chat-integration/config/locales/client.ru.yml b/plugins/discourse-chat-integration/config/locales/client.ru.ymlnew file mode 100644index 00000000000..8e56a7e92ca--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.ru.yml@@ -0,0 +1,242 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ru:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Интеграция с чатами"+ js:+ chat_integration:+ menu_title: "Интеграция с чатами"+ settings: "Настройки"+ no_providers: "Вам нужно включить некоторых провайдеров в настройках плагина"+ channels_with_errors: "Некоторые каналы этого провайдера не работали в последний раз, когда были отправлены сообщения. Нажмите на иконку(и), чтобы узнать больше."+ channel_exception: "В момент последней отправки сообщения на этот канал произошла непредвиденная ошибка."+ group_mention_template: "Упоминания о: @ %{name}"+ group_message_template: "Сообщения: @ %{name}"+ choose_group: "(выберите группу)"+ all_categories: "(все категории)"+ all_tags: "(все теги)"+ create_rule: "Создать правило"+ create_channel: "Создать канал"+ delete_channel: "Удалить"+ test_channel: "Тест"+ edit_channel: "Изменить"+ channel_delete_confirm: "Вы действительно хотите удалить этот канал? Все связанные правила будут удалены."+ test_modal:+ title: "Отправить тестовое сообщение"+ topic: "Тема"+ send: "Послать ТЕСТОВОЕ сообщение"+ close: "Закрыть"+ error: "При отправке сообщения произошла неизвестная ошибка. Проверьте логи сайта для получения дополнительной информации."+ success: "Сообщение успешно отправлено"+ type:+ normal: Нормальный+ group_message: Групповое сообщение+ group_mention: Групповая рассылка+ filter:+ mute: 'Отключить'+ follow: 'Только первый пост'+ watch: 'Все сообщения и ответы'+ thread: 'Все сообщения с ответами'+ rule_table:+ filter: "Фильтр"+ category: "Раздел"+ tags: "Теги"+ edit_rule: "Редактировать"+ delete_rule: "Удалить"+ edit_channel_modal:+ title: "Редактировать канал"+ save: "Сохранить канал"+ cancel: "Отмена"+ provider: "Провайдер"+ channel_validation:+ ok: "Валидный"+ fail: "Неверный формат"+ edit_rule_modal:+ title: Изменить правило+ save: Сохранить правило+ cancel: Отмена+ provider: Провайдер+ type: Тип+ channel: Канал+ filter: Фильтр+ category: Категория+ group: Группа+ tags: Теги+ instructions:+ type: "Измените тип, чтобы вызвать уведомления для групповых сообщений или упоминаний"+ filter: "Уровень уведомлений. Уровень 'Без уведомлений' переопределяет другие правила"+ category: "Это правило будет применяться только к темам в указанном разделе"+ group: "Это правило будет применяться к сообщениям, ссылающимся на эту группу"+ tags: "Если указано, то правило будет применяться к темам, которые имеют хотя бы один из этих тегов"+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: Канал+ help: "например, #channel, @username."+ errors:+ action_prohibited: "Бот не имеет разрешения на публикацию в этот канал"+ channel_not_found: "Указанный канал не существует в Slack"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "Название"+ help: "Имя для описания канала. Оно не используется для подключения к Telegram."+ chat_id:+ title: ID чата+ help: Номер, данный вам ботом, или идентификатор канала вещания в виде @channelname+ errors:+ channel_not_found: "Указанный канал не существует в Telegram"+ forbidden: "Бот не имеет разрешения на публикацию на этот канал"+ discord:+ title: "Discord"+ param:+ name:+ title: "Название"+ help: "Имя для описания канала. Оно не используется для подключения к Discord."+ webhook_url:+ title: URL вебхука+ help: URL-адрес вебхука, созданный в настройках сервера Discord+ guilded:+ title: "Guilded"+ param:+ name:+ title: "Название"+ help: "Имя для описания канала. Оно не используется для подключения к Guilded"+ webhook_url:+ title: URL вебхука+ help: URL-адрес вебхука, созданный в настройках сервера Guilded+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: Канал+ help: "например, #channel, @username."+ errors:+ channel_not_found: "Указанный канал не существует в Mattermost"+ matrix:+ title: "Matrix"+ param:+ name:+ title: "Название"+ help: "Имя для описания канала. Оно не используется для подключения к Matrix."+ room_id:+ title: "ID комнаты"+ help: "'Частный идентификатор' для комнаты. Это должно выглядеть примерно как !abcdefg:matrix.org"+ errors:+ unknown_token: "Неверный токен доступа"+ unknown_room: "Номер комнаты недействителен"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "Stream"+ help: "Имя потока Zulip, которому должно быть отправлено сообщение. например, «общий»"+ subject:+ title: "Тема"+ help: "Тема, уведомляющая о том, что, должно быть указано сообщение, отправляемое ботом"+ errors:+ does_not_exist: "Этот поток не существует в Zulip"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: Канал+ help: "например, #channel, @username."+ errors:+ invalid_channel: "Этот канал не существует в Rocket Chat"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "Название"+ help: "Название комнаты Gitter, например, gitterHQ/services."+ webhook_url:+ title: "URL вебхука"+ help: "URL, указанный при создании новой интеграции в комнате Gitter."+ flowdock:+ title: "Flowdock"+ param:+ flow_token:+ title: "Flow Token"+ help: "Токен потока предоставляется после создания источника для потока, в который вы хотите отправлять сообщения."+ groupme:+ title: "GroupMe"+ param:+ groupme_instance_name:+ title: "Имя экземпляра GroupMe"+ help: "Имя экземпляра Groupme, указанное в настройках сайта. Используйте «все» для отправки всем экземплярам"+ errors:+ not_found: "Путь, по которому вы пытались опубликовать ваше сообщение, не найден. Проверьте идентификатор бота в настройках сайта."+ teams:+ title: "Microsoft Teams"+ param:+ name:+ title: "Название"+ help: "Наименование канала, например 'Дискурс'."+ webhook_url:+ title: "URL вебхука"+ help: "URL-адрес, указанный при создании нового входящего вебхука"+ errors:+ invalid_channel: "Этот канал не существует в Microsoft Teams"+ powerautomate:+ title: "Microsoft Power Automate"+ param:+ name:+ title: "Название"+ help: "Имя канала (отображается только в интерфейсе администратора Discourse)"+ webhook_url:+ title: "URL вебхука"+ help: "URL-адрес, указанный при создании нового входящего вебхука"+ errors:+ invalid_webhook: "Этот URL-адрес вебхука недействителен."+ webex:+ title: "Webex Teams"+ param:+ name:+ title: "Название"+ help: "Название пространства для общения, например, 'discourse'"+ webhook_url:+ title: "URL вебхука"+ help: "URL-адрес, указанный при создании нового входящего вебхука"+ errors:+ invalid_channel: "Этот канал не существует в Webex"+ google:+ title: "Google Chat"+ param:+ name:+ title: "Название"+ help: "Имя канала (отображается только в интерфейсе администратора Discourse)"+ webhook_url:+ title: "URL вебхука"+ help: "URL-адрес, указанный при создании нового вебхука"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Отправить Slack-сообщение+ fields:+ message:+ label: Сообщение+ description: >-+ Используйте ${TOPIC} для названия темы, ${URL} для используемого URL-адреса, ${REMOVED_TAGS} для удаленных тегов, ${ADDED_TAGS} для добавленных тегов, ${ADDED_AND_REMOVED} для текста по умолчанию. Доступно, только если триггер настроен на изменение тегов темы.+ url:+ label: URL+ channel:+ label: Канал+ send_chat_integration_message:+ title: Отправка сообщения с помощью плагина Chat-Integration+ fields:+ channel_name:+ label: Название канала+ description: "Название канала можно найти в настройках плагина Chat Integration."+ provider:+ label: Поставщикdiff --git a/plugins/discourse-chat-integration/config/locales/client.sk.yml b/plugins/discourse-chat-integration/config/locales/client.sk.ymlnew file mode 100644index 00000000000..841bdb72008--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.sk.yml@@ -0,0 +1,155 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sk:+ js:+ chat_integration:+ settings: "Nastavenia"+ no_providers: "Musíte povoliť niektorích poskytovateľov v nastavení zásuvných modulov"+ choose_group: "(vyberte skupinu)"+ all_categories: "(všetky kategórie)"+ all_tags: "(všetky štítky)"+ create_rule: "Vytvoriť pravidlo"+ create_channel: "Vytvoriť kanál"+ delete_channel: "Vymazať"+ test_channel: "Test"+ edit_channel: "Upraviť"+ test_modal:+ topic: "Téma"+ send: "Odoslať testovaciu správu"+ close: "Zatvoriť"+ success: "Správa úspešne odoslaná"+ type:+ normal: Bežné+ group_message: Skupinová správa+ group_mention: Skupinová zmienka+ filter:+ mute: 'Ignorovať'+ follow: 'Iba prvý príspevok'+ watch: 'Všetky príspevky a odpovede'+ rule_table:+ filter: "Filter"+ category: "Kategória"+ tags: "Štítky"+ edit_rule: "Upraviť"+ delete_rule: "Odstrániť"+ edit_channel_modal:+ title: "Upraviť kanál"+ save: "Uložiť kanál"+ cancel: "Zrušiť"+ provider: "Poskytovateľ"+ channel_validation:+ ok: "Platné"+ fail: "Nesprávny formát"+ edit_rule_modal:+ title: Upraviť pravidlo+ save: Uložiť pravidlo+ cancel: Zrušiť+ provider: Poskytovateľ+ type: Typ+ channel: Kanál+ filter: Filter+ category: Kategória+ group: Skupina+ tags: Štítky+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: Kanál+ help: "napr. #kanál, @používateľské_meno"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "Meno"+ errors:+ channel_not_found: "Zvolený kanál na Telegrame neexistuje"+ forbidden: "Bot nemá práva na posielanie príspevkov na tento kanál"+ discord:+ title: "Discord"+ param:+ name:+ title: "Meno"+ webhook_url:+ title: Webová adresa URL+ guilded:+ param:+ name:+ title: "Meno"+ webhook_url:+ title: Webová adresa URL+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: Kanál+ help: "napr. #kanál, @používateľské_meno"+ errors:+ channel_not_found: "Zvolený kanál neexistuje na Mattermoste."+ matrix:+ param:+ name:+ title: "Meno"+ zulip:+ title: "Zulip"+ param:+ subject:+ title: "Predmet"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: Kanál+ help: "napr. #kanál, @používateľské_meno"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "Meno"+ webhook_url:+ title: "Webová adresa URL"+ teams:+ param:+ name:+ title: "Meno"+ webhook_url:+ title: "Webová adresa URL"+ powerautomate:+ param:+ name:+ title: "Meno"+ webhook_url:+ title: "Webová adresa URL"+ webex:+ param:+ name:+ title: "Meno"+ webhook_url:+ title: "Webová adresa URL"+ google:+ param:+ name:+ title: "Meno"+ webhook_url:+ title: "Webová adresa URL"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Správa+ url:+ label: URL+ channel:+ label: Kanál+ send_chat_integration_message:+ fields:+ channel_name:+ label: Názov kanála+ provider:+ label: Poskytovateľdiff --git a/plugins/discourse-chat-integration/config/locales/client.sl.yml b/plugins/discourse-chat-integration/config/locales/client.sl.ymlnew file mode 100644index 00000000000..c391f02a0db--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.sl.yml@@ -0,0 +1,87 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sl:+ js:+ chat_integration:+ settings: "Nastavitve"+ choose_group: "(izberite skupino)"+ all_categories: "(vse kategorije)"+ all_tags: "(vse oznake)"+ delete_channel: "Izbriši"+ edit_channel: "Uredi"+ test_modal:+ topic: "Tema"+ close: "Zapri"+ type:+ normal: Običajno+ filter:+ mute: 'Utišano'+ rule_table:+ filter: "Filter"+ category: "Kategorija"+ tags: "Oznake"+ edit_rule: "Uredi"+ delete_rule: "Izbriši"+ edit_channel_modal:+ cancel: "Prekliči"+ edit_rule_modal:+ cancel: Prekliči+ type: Tip+ filter: Filter+ category: Kategorija+ group: Skupina+ tags: Oznake+ provider:+ telegram:+ param:+ name:+ title: "Polno ime"+ discord:+ title: "Discord"+ param:+ name:+ title: "Polno ime"+ guilded:+ param:+ name:+ title: "Ime"+ matrix:+ param:+ name:+ title: "Polno ime"+ zulip:+ param:+ subject:+ title: "Naslov"+ gitter:+ param:+ name:+ title: "Polno ime"+ teams:+ param:+ name:+ title: "Ime"+ powerautomate:+ param:+ name:+ title: "Ime"+ webex:+ param:+ name:+ title: "Ime"+ google:+ param:+ name:+ title: "Ime"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Opozorilo+ url:+ label: URLdiff --git a/plugins/discourse-chat-integration/config/locales/client.sq.yml b/plugins/discourse-chat-integration/config/locales/client.sq.ymlnew file mode 100644index 00000000000..77a3fc12d7b--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.sq.yml@@ -0,0 +1,84 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sq:+ js:+ chat_integration:+ settings: "Rregullimet"+ all_categories: "(të gjitha kategoritë)"+ delete_channel: "Fshij"+ edit_channel: "Redakto"+ test_modal:+ topic: "Topic"+ close: "Mbyll"+ type:+ normal: Normal+ filter:+ mute: 'Hesht'+ rule_table:+ filter: "Filtro"+ category: "Kategori"+ tags: "Etiketat"+ edit_rule: "Redakto"+ delete_rule: "Fshij"+ edit_channel_modal:+ cancel: "Anulo"+ edit_rule_modal:+ cancel: Anulo+ type: Lloji+ filter: Filtro+ category: Kategori+ group: Grupi+ tags: Etiketat+ provider:+ telegram:+ param:+ name:+ title: "Emri"+ discord:+ param:+ name:+ title: "Emri"+ guilded:+ param:+ name:+ title: "Emri"+ matrix:+ param:+ name:+ title: "Emri"+ zulip:+ param:+ subject:+ title: "Subjekti"+ gitter:+ param:+ name:+ title: "Emri"+ teams:+ param:+ name:+ title: "Emri"+ powerautomate:+ param:+ name:+ title: "Emri"+ webex:+ param:+ name:+ title: "Emri"+ google:+ param:+ name:+ title: "Emri"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Mesazh+ url:+ label: URLdiff --git a/plugins/discourse-chat-integration/config/locales/client.sr.yml b/plugins/discourse-chat-integration/config/locales/client.sr.ymlnew file mode 100644index 00000000000..a6411a3b835--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.sr.yml@@ -0,0 +1,81 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sr:+ js:+ chat_integration:+ settings: "Podešavanje"+ delete_channel: "Obriši"+ edit_channel: "Izmeni"+ test_modal:+ topic: "Tema"+ close: "Zatvori"+ type:+ normal: Normalno+ filter:+ mute: 'Utišaj'+ rule_table:+ filter: "Filter"+ category: "Kategorija"+ edit_rule: "Izmeni"+ delete_rule: "Obriši"+ edit_channel_modal:+ cancel: "Odustani"+ edit_rule_modal:+ cancel: Odustani+ type: Tip+ filter: Filter+ category: Kategorija+ group: Grupa+ provider:+ telegram:+ param:+ name:+ title: "Ime foruma"+ discord:+ param:+ name:+ title: "Ime foruma"+ guilded:+ param:+ name:+ title: "Ime foruma"+ matrix:+ param:+ name:+ title: "Ime foruma"+ zulip:+ param:+ subject:+ title: "Predmet"+ gitter:+ param:+ name:+ title: "Ime foruma"+ teams:+ param:+ name:+ title: "Ime foruma"+ powerautomate:+ param:+ name:+ title: "Ime foruma"+ webex:+ param:+ name:+ title: "Ime foruma"+ google:+ param:+ name:+ title: "Ime foruma"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Privatna poruka+ url:+ label: URLdiff --git a/plugins/discourse-chat-integration/config/locales/client.sv.yml b/plugins/discourse-chat-integration/config/locales/client.sv.ymlnew file mode 100644index 00000000000..c15636a9a8b--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.sv.yml@@ -0,0 +1,232 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sv:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Chattintegreringar"+ js:+ chat_integration:+ menu_title: "Chattintegreringar"+ settings: "Inställningar"+ no_providers: "Du måste aktivera vissa leverantörer i tilläggsinställningarna"+ channels_with_errors: "Vissa kanaler för denna leverantör misslyckades förra gången meddelanden skickades. Klicka på felikonen/-erna för att få veta mer."+ channel_exception: "Det uppstod ett okänt fel när ett meddelande senast skickades till den här kanalen."+ group_mention_template: "Omnämnanden av: @%{name}"+ group_message_template: "Meddelanden till: @%{name}"+ choose_group: "(välj en grupp)"+ all_categories: "(alla kategorier)"+ all_tags: "(alla taggar)"+ create_rule: "Skapa regel"+ create_channel: "Skapa kanal"+ delete_channel: "Radera"+ test_channel: "Testa"+ edit_channel: "Redigera"+ channel_delete_confirm: "Är du säker på att du vill radera den här kanalen? Alla tillhörande regler kommer att raderas."+ test_modal:+ title: "Skicka ett testmeddelande"+ topic: "Ämne"+ send: "Skicka testmeddelande"+ close: "Stäng"+ error: "Ett okänt fel uppstod när meddelandet skickades. Kontrollera webbplatsloggarna för mer information."+ success: "Meddelandet har skickats"+ type:+ normal: Normal+ group_message: Gruppmeddelande+ group_mention: Gruppomnämnande+ filter:+ mute: 'Tysta'+ follow: 'Endast första inlägget'+ watch: 'Alla inlägg och svar'+ thread: 'Alla inlägg med trådade svar'+ rule_table:+ filter: "Filter"+ category: "Kategori"+ tags: "Taggar"+ edit_rule: "Redigera"+ delete_rule: "Radera"+ edit_channel_modal:+ title: "Redigera kanal"+ save: "Spara kanal"+ cancel: "Avbryt"+ provider: "Leverantör"+ channel_validation:+ ok: "Giltig"+ fail: "Ogiltigt format"+ edit_rule_modal:+ title: Redigera regel+ save: Spara regel+ cancel: Avbryt+ provider: Leverantör+ type: Typ+ channel: Kanal+ filter: Filter+ category: Kategori+ group: Grupp+ tags: Taggar+ instructions:+ type: "Ändra typen för att utlösa aviseringar för gruppmeddelanden eller omnämnanden"+ filter: "Aviseringsnivå. Tysta åsidosätter andra matchningsregler"+ category: "Denna regel gäller endast för ämnen i den angivna kategorin"+ group: "Denna regel gäller för inlägg som hänvisar till denna grupp"+ tags: "Om den anges gäller denna regel endast för ämnen som har minst en av dessa taggar"+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: Kanal+ help: "t.ex. #kanal, @användarnamn."+ errors:+ action_prohibited: "Hjälpredan har inte behörighet att publicera inlägg i den kanalen"+ channel_not_found: "Den angivna kanalen finns inte på Slack"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "Namn"+ help: "Ett namn som beskriver kanalen. Det används inte för anslutningen till Telegram."+ chat_id:+ title: Chatt-ID+ help: Ett nummer som du har fått av hjälpredan eller en kanalidentifierare i formen @kanalnamn+ errors:+ channel_not_found: "Den angivna kanalen finns inte på Telegram"+ forbidden: "Hjälpredan har inte behörighet att publicera inlägg till den här kanalen"+ discord:+ title: "Discord"+ param:+ name:+ title: "Namn"+ help: "Ett namn för att beskriva kanalen. Det används inte för anslutningen till Discord."+ webhook_url:+ title: Webhook-URL+ help: Webhook-URL som skapats i dina Discord-serverinställningar+ guilded:+ param:+ name:+ title: "Namn"+ webhook_url:+ title: Webhook-URL+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: Kanal+ help: "t.ex. #kanal, @användarnamn."+ errors:+ channel_not_found: "Den angivna kanalen finns inte på Mattermost"+ matrix:+ title: "Matrix"+ param:+ name:+ title: "Namn"+ help: "Ett namn som beskriver kanalen. Det används inte för anslutningen till Matrix."+ room_id:+ title: "Rums-ID"+ help: "Den 'privata identifieraren' för rummet. Den borde vara något i stil med !abcdefg:matrix.org"+ errors:+ unknown_token: "Åtkomstbevis är ogiltigt"+ unknown_room: "Rums-ID är ogiltigt"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "Ström"+ help: "Namnet på Zulip-strömmen som meddelandet ska skickas till. t.ex. 'general'"+ subject:+ title: "Ämne"+ help: "Ämnet som dessa meddelanden, som skickas av hjälpredan, bör ges"+ errors:+ does_not_exist: "Den strömmen finns inte på Zulip"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: Kanal+ help: "t.ex. #kanal, @användarnamn."+ errors:+ invalid_channel: "Den kanalen finns inte på Rocket Chat"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "Namn"+ help: "Ett Gitter-rums namn, t.ex. gitterHQ/services."+ webhook_url:+ title: "Webhook-URL"+ help: "URL-adressen som tillhandahålls när du skapar en ny integrering i ett Gitter-rum."+ flowdock:+ title: "Flowdock"+ param:+ flow_token:+ title: "Flödesbevis"+ help: "Flödesbeviset som tillhandahålls efter att du har skapat en källa för ett flöde till vilket du vill skicka meddelanden."+ groupme:+ title: "GroupMe"+ param:+ groupme_instance_name:+ title: "GroupMe-instansnamn"+ help: "namn på Groupme-instans som visas i listan i webbplatsinställningar. använd 'all' för att skicka till alla instanser"+ errors:+ not_found: "Adressen du försökte skicka ditt meddelande till hittades inte. Kontrollera Bot-ID i webbplatsinställningar."+ teams:+ title: "Microsoft Teams"+ param:+ name:+ title: "Namn"+ help: "Ett kanalnamn för Teams, t.ex. Discourse"+ webhook_url:+ title: "Webhook-URL"+ help: "URL som tillhandahålls när du skapar en ny inkommande webhook"+ errors:+ invalid_channel: "Den kanalen finns inte hos Microsoft Teams"+ powerautomate:+ param:+ name:+ title: "Namn"+ help: "Ett namn på kanalen (visas endast i Discourse-administratörspanelen)"+ webhook_url:+ title: "Webhook-URL"+ help: "URL som tillhandahålls när du skapar en ny inkommande webhook"+ webex:+ title: "Webex-team"+ param:+ name:+ title: "Namn"+ help: "Ett utrymmesnamn för Webex, t.ex. Discourse"+ webhook_url:+ title: "Webhook-URL"+ help: "URL som tillhandahålls när du skapar en ny inkommande webhook"+ errors:+ invalid_channel: "Den kanalen finns inte på Webex"+ google:+ title: "Google Chatt"+ param:+ name:+ title: "Namn"+ help: "Ett namn på kanalen (visas endast i Discourse-administratörspanelen)"+ webhook_url:+ title: "Webhook-URL"+ help: "URL som tillhandahålls när du skapar en ny inkommande webhook"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Skicka Slack-meddelande+ fields:+ message:+ label: Meddelande+ url:+ label: URL+ channel:+ label: Kanal+ send_chat_integration_message:+ fields:+ channel_name:+ label: Kanalnamn+ provider:+ label: Leverantördiff --git a/plugins/discourse-chat-integration/config/locales/client.sw.yml b/plugins/discourse-chat-integration/config/locales/client.sw.ymlnew file mode 100644index 00000000000..b92c2737cd0--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.sw.yml@@ -0,0 +1,193 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sw:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Uwezo wa kuwasiliana"+ js:+ chat_integration:+ menu_title: "Maongezi Shirikizo"+ settings: "Mipangilio"+ no_providers: "Unahitaji kuwawezesha baadhi ya watoa huduma kwenye mpangilio wa programu-jalizi"+ channels_with_errors: "Baadha ya chaneli za huyu mtumiaji zilishindwa mara ya mwisho zilipotumiwa ujumbe. Bonyeza ikoni za njano kupata taarifa zaidi za (ma)kosa."+ group_mention_template: "@%{name} Ametajwa:"+ group_message_template: "Ujumbe kwenda kwa: @%{name}"+ choose_group: "(chagua kikundi)"+ all_categories: "(Makundi yote)"+ all_tags: "(lebo)"+ create_rule: "Tengeneza Kanuni"+ create_channel: "Tengeneza Chaneli"+ delete_channel: "Futa"+ test_channel: "Majaribio"+ edit_channel: "Hariri"+ channel_delete_confirm: "Una uhakika kuwa unataka kuifuta hii chaneli? Kanuni zote zitafutwa."+ test_modal:+ title: "Jaribu kutuma ujumbe"+ topic: "Mada"+ send: "Tuma Ujumbe wa Kujaribu"+ close: "Funga"+ error: "Hitilafu isilojulikana limetokea wakati wa kutuma ujumbe. Angalia logi ya mtandao kwa ajili ya taarifa zaidi."+ success: "Ujumbe umetumwa Vizuri"+ type:+ normal: Kawaida+ group_message: Ujumbe wa Kikundi+ group_mention: Kikundi Kimetajwa+ filter:+ mute: 'Nyamazisha'+ follow: 'Taarifa ya kwanza pekee'+ watch: 'Machapisho yote na majibu'+ rule_table:+ filter: "Chuja"+ category: "Kikundi"+ tags: "Lebo"+ edit_rule: "Hariri"+ delete_rule: "Futa"+ edit_channel_modal:+ title: "Hariri Chaneli"+ save: "Hifadhi Chaneli"+ cancel: "Batili"+ provider: "Mkimu"+ channel_validation:+ ok: "Sahihi"+ fail: "Umbiza Batili"+ edit_rule_modal:+ title: Hariri Kanuni+ save: Hifadhi Kanuni+ cancel: Katisha+ provider: Mkimu+ type: Aina+ channel: Chaneli+ filter: Chuja+ category: Kikundi+ group: Kikundi+ tags: Lebo+ instructions:+ type: "Badilisha jinsi ya kuonyesha aina za taarifa za vikundi au mtu akitajwa"+ filter: "Kiwango cha Taarifa. Zima kanuni nyongeza"+ category: "Kanuni hii itatumika kwenye mada zilizo ndani ya kategoria iliyoainika"+ tags: "Kama ikitumika, kanuni hii itatumika kwenye mada zenye lebo hizi au hii"+ provider:+ slack:+ title: "uzembe"+ param:+ identifier:+ title: Chaneli+ help: "mfano. #chaneli, @jinalamtumiaji."+ errors:+ action_prohibited: "Roboti hana ruhusa kuchapisha ndani ya hiyo chaneli"+ channel_not_found: "Chaneli iliyochaguliwa haipo slack"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "Jina"+ help: "Jina linaloelezea chaneli hii. Haitatumika kuunganisha na Telegram."+ chat_id:+ title: Utambulisho wa Mawasiliano+ errors:+ channel_not_found: "Njia ya mawasiliano uliyoiandika haipo Telegram, mtandao wa kijamii"+ forbidden: "roboti haruhusiwi kuandika kwenye njia hii ya mawasiliano"+ discord:+ title: "Matatizo"+ param:+ name:+ title: "Jina"+ help: "Jina ulilotumia kuelezea njia ya mawasiliano halitambuliki na Discord"+ webhook_url:+ title: Anwani ya Webhook+ guilded:+ param:+ name:+ title: "Jina"+ webhook_url:+ title: Anwani ya Webhook+ mattermost:+ title: "Umuhimu zaidi"+ param:+ identifier:+ title: Chaneli+ help: "e.g. #jinalamawasiliano, @jinalamtumiaji."+ errors:+ channel_not_found: "Njia hiyo ya mawasiliano haipo kwenye Mattermost"+ matrix:+ title: "Matrix"+ param:+ name:+ title: "Jina"+ help: "Jina la kuelezea chaneli. Haitumiki kuunganisha na Matrix."+ room_id:+ title: "Utambulisho wa Chumba"+ help: "'Kitambulishi Binafsi' kwa ajili ya chumba. Inabidi kifanane na hivi !abcdefg:matrix.org"+ errors:+ unknown_token: "Ishara ya Ufikivu ni batili"+ unknown_room: "Utambulisho wa Chumba ni batili"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "Mfululizo"+ subject:+ title: "Hoja"+ help: "Udhui wa ujumbe kutoka kwa roboti wakati wa kutuma ujumbe"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: Chaneli+ help: "mfano. #chaneli, @jinalamtumiaji."+ errors:+ invalid_channel: "Hii chaneli haipo kwenye Njia ya Mawasiliano ya Rocket Chat"+ gitter:+ title: "Gusa"+ param:+ name:+ title: "Jina"+ help: "Jina la chumba cha Gitter e.g. gitterHQ/huduma."+ webhook_url:+ title: "Anwani ya Webhook"+ flowdock:+ title: "Flowdock"+ teams:+ param:+ name:+ title: "Jina"+ webhook_url:+ title: "Anwani ya Webhook"+ powerautomate:+ param:+ name:+ title: "Jina"+ webhook_url:+ title: "Anwani ya Webhook"+ webex:+ param:+ name:+ title: "Jina"+ webhook_url:+ title: "Anwani ya Webhook"+ google:+ param:+ name:+ title: "Jina"+ webhook_url:+ title: "Anwani ya Webhook"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Ujumbe+ url:+ label: Anwani ya mtandao+ channel:+ label: Chaneli+ send_chat_integration_message:+ fields:+ provider:+ label: Mkimudiff --git a/plugins/discourse-chat-integration/config/locales/client.te.yml b/plugins/discourse-chat-integration/config/locales/client.te.ymlnew file mode 100644index 00000000000..a47116c204b--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.te.yml@@ -0,0 +1,86 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++te:+ js:+ chat_integration:+ settings: "అమరికలు"+ all_categories: "(అన్ని వర్గాలు)"+ delete_channel: "తొలగించు"+ test_channel: "పరీక్షించండి"+ edit_channel: "సవరించు"+ test_modal:+ topic: "విషయం"+ close: "మూసివేయి"+ type:+ normal: సాధారణ పరిమాణం+ filter:+ mute: 'నిశ్శబ్దం'+ rule_table:+ filter: "జల్లెడ"+ category: "వర్గం"+ tags: "ట్యాగులు"+ edit_rule: "సవరించు"+ delete_rule: "తొలగించు"+ edit_channel_modal:+ cancel: "రద్దుచేయి"+ edit_rule_modal:+ cancel: రద్దుచేయి+ type: రకం+ filter: జల్లెడ+ category: వర్గం+ group: సమూహం+ tags: ట్యాగులు+ provider:+ telegram:+ param:+ name:+ title: "పేరు"+ discord:+ title: "డిస్కోర్డ్"+ param:+ name:+ title: "పేరు"+ guilded:+ param:+ name:+ title: "పేరు"+ matrix:+ param:+ name:+ title: "పేరు"+ zulip:+ param:+ subject:+ title: "సబ్జెక్టు"+ gitter:+ param:+ name:+ title: "పేరు"+ teams:+ param:+ name:+ title: "పేరు"+ powerautomate:+ param:+ name:+ title: "పేరు"+ webex:+ param:+ name:+ title: "పేరు"+ google:+ param:+ name:+ title: "పేరు"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: సందేశం పంపించండి+ url:+ label: యూఆర్ యల్diff --git a/plugins/discourse-chat-integration/config/locales/client.th.yml b/plugins/discourse-chat-integration/config/locales/client.th.ymlnew file mode 100644index 00000000000..56ae3cf5b8c--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.th.yml@@ -0,0 +1,82 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++th:+ js:+ chat_integration:+ settings: "การตั้งค่า"+ all_categories: "(หมวดหมู่ทั้งหมด)"+ delete_channel: "ลบ"+ edit_channel: "แก้ไข"+ test_modal:+ topic: "หัวข้อ"+ close: "ปิด"+ type:+ normal: ปกติ+ filter:+ mute: 'ปิด'+ rule_table:+ category: "หมวดหมู่"+ tags: "ป้าย"+ edit_rule: "แก้ไข"+ delete_rule: "ลบ"+ edit_channel_modal:+ cancel: "ยกเลิก"+ edit_rule_modal:+ cancel: ยกเลิก+ type: ชนิด+ category: หมวดหมู่+ group: กลุ่ม+ tags: ป้าย+ provider:+ telegram:+ param:+ name:+ title: "ชื่อ"+ discord:+ param:+ name:+ title: "ชื่อ"+ guilded:+ param:+ name:+ title: "ชื่อ"+ matrix:+ param:+ name:+ title: "ชื่อ"+ zulip:+ param:+ subject:+ title: "หัวข้อ"+ gitter:+ param:+ name:+ title: "ชื่อ"+ teams:+ param:+ name:+ title: "ชื่อ"+ powerautomate:+ param:+ name:+ title: "ชื่อ"+ webex:+ param:+ name:+ title: "ชื่อ"+ google:+ param:+ name:+ title: "ชื่อ"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: ข้อความ+ url:+ label: URLdiff --git a/plugins/discourse-chat-integration/config/locales/client.tr_TR.yml b/plugins/discourse-chat-integration/config/locales/client.tr_TR.ymlnew file mode 100644index 00000000000..2b31094203b--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.tr_TR.yml@@ -0,0 +1,242 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++tr_TR:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Sohbet Entegrasyonları"+ js:+ chat_integration:+ menu_title: "Sohbet Entegrasyonları"+ settings: "Ayarlar"+ no_providers: "Eklenti ayarlarında bazı sağlayıcıları etkinleştirmeniz gerekiyor"+ channels_with_errors: "Bu sağlayıcı için bazı kanallar en son mesaj gönderildiğinde başarısız oldu. Daha fazla bilgi edinmek için hata simgelerine tıklayın."+ channel_exception: "Bu kanala en son mesaj gönderildiğinde bilinmeyen bir hata oluştu."+ group_mention_template: "Şu kullanıcıdan bahsedildi: @%{name}"+ group_message_template: "Şu kullanıcıya mesaj gönderildi: @%{name}"+ choose_group: "(bir grup seçin)"+ all_categories: "(tüm kategoriler)"+ all_tags: "(tüm etiketler)"+ create_rule: "Kural Oluştur"+ create_channel: "Kanal Oluştur"+ delete_channel: "Sil"+ test_channel: "Test"+ edit_channel: "Düzenle"+ channel_delete_confirm: "Bu kanalı silmek istediğinizden emin misiniz? İlişkili tüm kurallar silinecek."+ test_modal:+ title: "Test mesajı gönderin"+ topic: "Konu"+ send: "Test Mesajı gönderin"+ close: "Kapat"+ error: "Mesaj gönderilirken bilinmeyen bir hata oluştu. Daha fazla bilgi için site günlüklerine bakın."+ success: "Mesaj başarıyla gönderildi"+ type:+ normal: Normal+ group_message: Grup Mesajı+ group_mention: Grup Bahsetmesi+ filter:+ mute: 'Sessize al'+ follow: 'Yalnızca ilk gönderi'+ watch: 'Tüm gönderiler ve yanıtlar'+ thread: 'Başlıklı yanıt içeren tüm gönderiler'+ rule_table:+ filter: "Filtre"+ category: "Kategori"+ tags: "Etiketler"+ edit_rule: "Düzenle"+ delete_rule: "Sil"+ edit_channel_modal:+ title: "Kanalı Düzenle"+ save: "Kanalı Kaydet"+ cancel: "İptal et"+ provider: "Sağlayıcı"+ channel_validation:+ ok: "Geçerli"+ fail: "Geçersiz biçim"+ edit_rule_modal:+ title: Kuralı Düzenle+ save: Kuralı Kaydet+ cancel: İptal et+ provider: Sağlayıcı+ type: Tür+ channel: Kanal+ filter: Filtre+ category: Kategori+ group: Grup+ tags: Etiketler+ instructions:+ type: "Grup mesajları veya bahsetmeleri için bildirimleri tetikleyecek türü değiştirin"+ filter: "Bildirim seviyesi. Sessiz, eşleşen diğer kuralları geçersiz kılar"+ category: "Bu kural yalnızca belirtilen kategorideki konular için geçerlidir"+ group: "Bu kural, bu grubu referans alan yayınlar için geçerli olacak"+ tags: "Belirtilirse bu kural yalnızca bu etiketlerden en az birine sahip konular için geçerlidir"+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: Kanal+ help: "ör. #kanal, @kullanıcıadı."+ errors:+ action_prohibited: "Botun bu kanala gönderi yapma izni yok"+ channel_not_found: "Belirtilen kanal Slack'te mevcut değil"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "İsim"+ help: "Kanalı tanımlamak için bir ad. Telegram bağlantısı için kullanılmaz."+ chat_id:+ title: Sohbet Kimliği+ help: Bot tarafından size verilen bir numara veya @channelname biçimindeki bir yayın kanalı tanımlayıcısı+ errors:+ channel_not_found: "Belirtilen kanal Telegram'da mevcut değil"+ forbidden: "Botun bu kanala gönderi yapma izni yok"+ discord:+ title: "Discord"+ param:+ name:+ title: "İsim"+ help: "Kanalı tanımlayan bir ad. Discord bağlantısı için kullanılmaz."+ webhook_url:+ title: Web kancası URL'si+ help: Discord sunucu ayarlarınızda oluşturulan web kancası URL'si+ guilded:+ title: "Guilded"+ param:+ name:+ title: "Ad"+ help: "Kanalı tanımlamak için bir isim. Guilded bağlantısı için kullanılmaz"+ webhook_url:+ title: Web kancası URL'si+ help: Guilded sunucu ayarlarınızda oluşturulan web kancası URL'si+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: Kanal+ help: "ör. #kanal, @kullanıcıadı."+ errors:+ channel_not_found: "Belirtilen kanal Mattermost'ta mevcut değil"+ matrix:+ title: "Matrix"+ param:+ name:+ title: "Ad"+ help: "Kanalı tanımlamak için bir ad. Matrix bağlantısı için kullanılmaz."+ room_id:+ title: "Oda Kimliği"+ help: "Oda için “özel tanımlayıcı”. Şuna benzer !abcdefg:matrix.org"+ errors:+ unknown_token: "Erişim jetonu geçersiz"+ unknown_room: "Oda Kimliği geçersiz"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "Akış"+ help: "Mesajın gönderilmesi gereken Zulip akışının adı. ör. \"genel\""+ subject:+ title: "Konu"+ help: "Bot tarafından gönderilen bu mesajlara verilmesi gereken konu"+ errors:+ does_not_exist: "Bu akış Zulip'te mevcut değil"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: Kanal+ help: "ör. #kanal, @kullanıcıadı."+ errors:+ invalid_channel: "Bu kanal Rocket Chat'te mevcut değil"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "Ad"+ help: "Gitter odasının adı ör. gitterHQ/services."+ webhook_url:+ title: "Web kancası URL'si"+ help: "Bir Gitter odasında yeni bir entegrasyon oluşturduğunuzda sağlanan URL."+ flowdock:+ title: "Flowdock"+ param:+ flow_token:+ title: "Akış Token'ı"+ help: "Mesaj göndermek istediğiniz bir akış için bir kaynak oluşturduktan sonra sağlanan akış token'ı."+ groupme:+ title: "GroupMe"+ param:+ groupme_instance_name:+ title: "GroupMe Örnek Adı"+ help: "Site Ayarları'nda listelenen Groupme örneğinin adı. Tüm örneklere göndermek için \"all\" kullanın"+ errors:+ not_found: "Mesajınızı göndermeye çalıştığınız yol bulunamadı. Site Ayarları'nda Bot Kimliğini kontrol edin."+ teams:+ title: "Microsoft Teams"+ param:+ name:+ title: "Ad"+ help: "Teams kanal adı, ör. discourse"+ webhook_url:+ title: "Web kancası URL'si"+ help: "Yeni bir gelen web kancası oluşturduğunuzda sağlanan URL"+ errors:+ invalid_channel: "Bu kanal Microsoft Teams'te mevcut değil"+ powerautomate:+ title: "Microsoft Power Automate"+ param:+ name:+ title: "Ad"+ help: "Kanal için bir ad (yalnızca Discourse yönetici arayüzünde gösterilir)"+ webhook_url:+ title: "Web kancası URL'si"+ help: "Yeni bir gelen web kancası oluşturduğunuzda sağlanan URL"+ errors:+ invalid_webhook: "Bu web kancası URL'si geçerli değil."+ webex:+ title: "Webex Ekipleri"+ param:+ name:+ title: "Ad"+ help: "Bir Webex alanı adı, ör. discourse"+ webhook_url:+ title: "Web kancası URL'si"+ help: "Yeni bir gelen web kancası oluşturduğunuzda sağlanan URL"+ errors:+ invalid_channel: "Bu kanal Webex'te mevcut değil"+ google:+ title: "Google Sohbet"+ param:+ name:+ title: "Ad"+ help: "Kanal için bir ad (yalnızca Discourse yönetici arayüzünde gösterilir)"+ webhook_url:+ title: "Web kancası URL'si"+ help: "Yeni bir gelen web kancası oluşturduğunuzda sağlanan URL"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Slack mesajı gönder+ fields:+ message:+ label: Mesaj+ description: >-+ Konu adı için ${TOPIC}, kullanılan URL için ${URL}, kaldırılan etiketler için ${REMOVED_TAGS}, eklenen etiketler için ${ADDED_TAGS}, varsayılan metin için ${ADDED_AND_REMOVED} kullanın. Yalnızca tetikleyici, Konu etiketleri değiştirildi olarak ayarlanmışsa kullanılabilir.+ url:+ label: URL+ channel:+ label: Kanal+ send_chat_integration_message:+ title: Chat-Integration mesajı gönderin+ fields:+ channel_name:+ label: Kanal adı+ description: "Kanal adını Chat Integration ayarlarında bulabilirsiniz"+ provider:+ label: Sağlayıcıdiff --git a/plugins/discourse-chat-integration/config/locales/client.ug.yml b/plugins/discourse-chat-integration/config/locales/client.ug.ymlnew file mode 100644index 00000000000..388c3c8b402--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.ug.yml@@ -0,0 +1,106 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ug:+ js:+ chat_integration:+ settings: "تەڭشەكلەر"+ all_categories: "(ھەممە سەھىپە)"+ all_tags: "(ھەممە بەلگە)"+ delete_channel: "ئۆچۈر"+ test_channel: "سىنا"+ edit_channel: "تەھرىر"+ test_modal:+ topic: "تېما"+ close: "تاقا"+ type:+ normal: ئادەتتىكى+ filter:+ mute: 'ئۈنسىز'+ follow: 'تۇنجى يازمىغىلا'+ rule_table:+ filter: "سۈزگۈچ"+ category: "سەھىپە"+ tags: "بەلگە"+ edit_rule: "تەھرىر"+ delete_rule: "ئۆچۈر"+ edit_channel_modal:+ cancel: "ۋاز كەچ"+ edit_rule_modal:+ cancel: ۋاز كەچ+ type: تىپى+ filter: سۈزگۈچ+ category: سەھىپە+ group: گۇرۇپپا+ tags: بەلگە+ provider:+ telegram:+ param:+ name:+ title: "ئىسمى"+ discord:+ title: "Discord"+ param:+ name:+ title: "ئىسمى"+ webhook_url:+ title: تور ئىلمىكى تور ئادرېسى+ guilded:+ param:+ name:+ title: "ئىسمى"+ webhook_url:+ title: تور ئىلمىكى تور ئادرېسى+ matrix:+ param:+ name:+ title: "ئىسمى"+ zulip:+ param:+ subject:+ title: "ماۋزۇ"+ gitter:+ param:+ name:+ title: "ئىسمى"+ webhook_url:+ title: "تور ئىلمىكى تور ئادرېسى"+ teams:+ param:+ name:+ title: "ئىسمى"+ webhook_url:+ title: "تور ئىلمىكى تور ئادرېسى"+ powerautomate:+ param:+ name:+ title: "ئىسمى"+ webhook_url:+ title: "تور ئىلمىكى تور ئادرېسى"+ webex:+ param:+ name:+ title: "ئىسمى"+ webhook_url:+ title: "تور ئىلمىكى تور ئادرېسى"+ google:+ param:+ name:+ title: "ئىسمى"+ webhook_url:+ title: "تور ئىلمىكى تور ئادرېسى"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: ئۇچۇر+ url:+ label: تور ئادرېسى+ send_chat_integration_message:+ fields:+ channel_name:+ label: قانال ئىسمىdiff --git a/plugins/discourse-chat-integration/config/locales/client.uk.yml b/plugins/discourse-chat-integration/config/locales/client.uk.ymlnew file mode 100644index 00000000000..06712d49a43--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.uk.yml@@ -0,0 +1,206 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++uk:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Інтеграція чату"+ js:+ chat_integration:+ menu_title: "Інтеграція чату"+ settings: "Налаштування"+ no_providers: "Потрібно включити деяких постачальників у налаштуваннях плагіна"+ channels_with_errors: "Деякі канали цього провайдера не вдавалися, коли останній раз надсилалися повідомлення. Клацніть піктограму помилок, щоб дізнатися більше."+ channel_exception: "Невідома помилка сталася під час останнього надсилання повідомлення на цей канал."+ group_message_template: "Повідомлення до: @ %{name}"+ choose_group: "(виберіть групу)"+ all_categories: "(усі категорії)"+ all_tags: "(усі теги)"+ create_rule: "Створити правило"+ create_channel: "Створити канал"+ delete_channel: "Видалити"+ test_channel: "Тест"+ edit_channel: "Редагувати"+ channel_delete_confirm: "Справді видалити цей канал? Усі пов’язані правила будуть видалені."+ test_modal:+ title: "Надіслати тестове повідомлення"+ topic: "Тема"+ send: "Надіслати тестове повідомлення"+ close: "Закрити"+ error: "Під час надсилання повідомлення сталася невідома помилка. Перегляньте журнали сайту для отримання додаткової інформації."+ success: "Повідомлення успішно надіслано"+ type:+ normal: Нормальний+ group_message: Групове повідомлення+ group_mention: Згадування групи+ filter:+ mute: 'Приглушено'+ follow: 'Лише перший пост'+ watch: 'Усі повідомлення та відповіді'+ rule_table:+ filter: "Фільтр"+ category: "Категорія"+ tags: "Теги"+ edit_rule: "Редагувати"+ delete_rule: "Видалити"+ edit_channel_modal:+ title: "Редагувати канал"+ save: "Зберегти канал"+ cancel: "Скасувати"+ provider: "Постачальник"+ channel_validation:+ ok: "Дійсний"+ fail: "Недійсний формат"+ edit_rule_modal:+ title: Редагувати правило+ save: Збережіть правило+ cancel: Скасувати+ provider: Постачальник+ type: Тип+ channel: Канал+ filter: Фільтр+ category: Категорія+ group: Група+ tags: Теги+ instructions:+ type: "Змініть тип для запуску сповіщень для групових повідомлень чи згадок"+ filter: "Рівень сповіщення. Приглушення замінює інші правила"+ category: "Це правило стосується лише тем у зазначеній категорії"+ group: "Це правило застосовується до публікацій, на які посилається ця група"+ tags: "Якщо зазначено, це правило застосовуватиметься лише до тем, які мають принаймні один із цих тегів"+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: Канал+ help: "наприклад #channel, @username."+ errors:+ action_prohibited: "Бот не має дозволу на публікацію в цьому каналі"+ channel_not_found: "Зазначений канал не існує у slack"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "Ім'я"+ help: "Назва для опису каналу. Він не використовується для з’єднання з Telegram."+ chat_id:+ title: Chat ID+ help: Номер, який вам надає бот, або ідентифікатор трансляційного каналу у формі @channelname+ errors:+ channel_not_found: "Зазначений канал не існує в Telegram"+ forbidden: "Бот не має дозволу публікувати в цей канал"+ discord:+ title: "Discord"+ param:+ name:+ title: "Ім'я"+ help: "Назва для опису каналу. Він не використовується для з’єднання з Discord."+ webhook_url:+ title: Webhook URL+ help: URL-адреса webhook, створена у налаштуваннях вашого сервера Discord+ guilded:+ param:+ name:+ title: "Імʼя"+ webhook_url:+ title: Webhook URL+ mattermost:+ title: "Найважливіше"+ param:+ identifier:+ title: Канал+ help: "наприклад #channel, @username."+ errors:+ channel_not_found: "Зазначений канал не існує в Найважливіших"+ matrix:+ title: "Матриця"+ param:+ name:+ title: "Ім'я"+ help: "Назва для опису каналу. Він не використовується для з’єднання з Matrix."+ room_id:+ title: "Room ID"+ help: "'private identifier' для кімнати. Це має виглядати приблизно так !abcdefg:matrix.org"+ errors:+ unknown_token: "Маркер доступу недійсний"+ unknown_room: "Room ID недійсний"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "Потік"+ help: "Ім’я потоку Zulip, на яке слід надіслати повідомлення. Наприклад, 'general'"+ subject:+ title: "Тема"+ help: "Тема повідомлення, що надсилаються ботом"+ errors:+ does_not_exist: "Цей потік не існує на Zulip"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: Канал+ help: "наприклад #channel, @username."+ errors:+ invalid_channel: "Цей канал не існує в Rocket Chat"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "Ім'я"+ help: "Назва кімнати Gitter, наприклад gitterHQ/services."+ webhook_url:+ title: "Webhook URL"+ help: "URL-адреса, яка створюється під час створення нової інтеграції з Gitter кімнатою."+ flowdock:+ title: "Flowdock"+ param:+ flow_token:+ title: "Flow Token"+ help: "Token потоку надається після створення джерела для потоку, в який потрібно відправляти повідомлення."+ teams:+ param:+ name:+ title: "Імʼя"+ webhook_url:+ title: "Webhook URL"+ powerautomate:+ param:+ name:+ title: "Імʼя"+ webhook_url:+ title: "URL-адреса веб-хука"+ webex:+ param:+ name:+ title: "Імʼя"+ webhook_url:+ title: "Webhook URL"+ google:+ param:+ name:+ title: "Імʼя"+ webhook_url:+ title: "Webhook URL"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Повідомлення+ url:+ label: Посилання+ channel:+ label: Канал+ send_chat_integration_message:+ fields:+ channel_name:+ label: Назва каналу+ provider:+ label: Постачальникdiff --git a/plugins/discourse-chat-integration/config/locales/client.ur.yml b/plugins/discourse-chat-integration/config/locales/client.ur.ymlnew file mode 100644index 00000000000..8649f0bcb3b--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.ur.yml@@ -0,0 +1,205 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ur:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "چَیٹ اِنٹیگرَیشَن"+ js:+ chat_integration:+ menu_title: "چَیٹ اِنٹیگرَیشَن"+ settings: "سیٹِنگ"+ no_providers: "آپ کو پلَگ اِن کی سیٹِنگ میں کچھ پرووَائیڈرز کو فعال کرنے کی ضرورت ہے"+ channels_with_errors: "پچھلی دفعہ پیغامات بھیجنے پر اِس پرووَائیڈر کے کچھ چینلز ناکام ہوگئے تھے۔ مزید جاننے کیلئے خرابی کے آئکن پر کلک کریں۔"+ channel_exception: "آخری دفعہ اِس چینل کو پیغام بھیجنے پر ایک نامعلوم خرابی کا سامنا کرنا پڑا۔"+ group_mention_template: "ذکر: @%{name} کے"+ group_message_template: "پیغامات: @%{name} کیلئے"+ choose_group: "(ایک گروپ منتخب کریں)"+ all_categories: "(تمام زُمرَہ جات)"+ all_tags: "(تمام ٹَیگز)"+ create_rule: "اصول بنائیں"+ create_channel: "چینل بنائیں"+ delete_channel: "حذف کریں"+ test_channel: "ٹیسٹ"+ edit_channel: "ترمیم کریں"+ channel_delete_confirm: "کیا آپ واقعی یہ چینل حذف کرنا چاہتے ہیں؟ تمام منسلک اصول حذف ہو جائیں گے۔"+ test_modal:+ title: "ایک ٹیسٹ پیغام بھیجیں"+ topic: "ٹاپک"+ send: "ٹیسٹ پیغام بھیجیں"+ close: "بند کریں"+ error: "پیغام بھیجنے پر ایک نامعلوم خرابی کا سامنا کرنا پڑا۔ مزید جاننے کیلئے سائٹ لاگز چیک کریں۔"+ success: "پیغام کامیابی سے بھیجا گیا"+ type:+ normal: عمومی+ group_message: گروپ پیغام+ group_mention: گروپ ذکر+ filter:+ mute: 'خاموش کریں'+ follow: 'صرف پہلی پوسٹ'+ watch: 'تمام پوسٹس اور جوابات'+ rule_table:+ filter: "فِلٹر"+ category: "زُمرَہ"+ tags: "ٹیگز"+ edit_rule: "ترمیم کریں"+ delete_rule: "حذف کریں"+ edit_channel_modal:+ title: "چینل ترمیم کریں"+ save: "چَینل محفوظ کریں"+ cancel: "منسوخ"+ provider: "پرووَائیڈر"+ channel_validation:+ ok: "درست"+ fail: "غلط فارمَیٹ"+ edit_rule_modal:+ title: اصول ترمیم کریں+ save: اصول محفوظ کریں+ cancel: منسوخ+ provider: پرووَائیڈر+ type: قِسم+ channel: چَینل+ filter: فِلٹر+ category: زُمرَہ+ group: گروپ+ tags: ٹیگز+ instructions:+ type: "گروپ پیغامات یا ذکر کے بارے میں اطلاعات کو متحرک کرنے والی قِسم کو تبدیل کریں"+ filter: "اطلاعات کا لیول۔ خاموشی دوسرے مماثل اصولوں کو منسوخ کردیتی ہے"+ category: "یہ اصول صرف مخصوص زُمرہ کے ٹاپکس پر لاگو ہو گا"+ group: "یہ اصول اِس گروپ کا حوالہ دینے والی پوسٹس پر لاگو ہو گا"+ tags: "اگر متعین ہو، تو یہ اصول صرف ایسے ٹاپکس پر لاگو ہو گا جن پر اِن ٹیگز میں سے کم از کم ایک موجود ہو"+ provider:+ slack:+ title: "سلَّیک"+ param:+ identifier:+ title: چَینل+ help: "ثال کے طور پر #چینل، @صارف نام۔"+ errors:+ action_prohibited: "بَوٹ کو اُس چینل پر پوسٹ کرنے کی اجازت نہیں ہے"+ channel_not_found: "یہ مخصوص چینل سلَّیک پر موجود نہیں ہے"+ telegram:+ title: "ٹَیلیگرام"+ param:+ name:+ title: "نام"+ help: "چَینل کی وضاحت کرنے کیلئے نام۔ یہ ٹَیلیگرام کے ساتھ کنکشن کیلئے استعمال نہیں کیا جاتا ہے۔"+ chat_id:+ title: چَیٹ ID+ help: بَوٹ کی طرف سے آپ کو دیا گیا نمبر، یا @channelname کی فارم میں ایک براڈکاسٹ چینل آئیڈَینٹِیفائر+ errors:+ channel_not_found: "یہ مخصوص چینل ٹَیلیگرام پر موجود نہیں ہے"+ forbidden: "بَوٹ کو اِس چینل پر پوسٹ کرنے کی اجازت نہیں ہے"+ discord:+ title: "ڈِسکَورڈ"+ param:+ name:+ title: "نام"+ help: "چَینل کی وضاحت کرنے کیلئے نام۔ یہ ڈِسکَورڈ کے ساتھ کنکشن کیلئے استعمال نہیں کیا جاتا ہے۔"+ webhook_url:+ title: وَیب ھُوک URL+ help: آپ کے ڈِسکَورڈ سروَر کی سیٹِنگ میں بنایا گیا وَیب ھُوک URL+ guilded:+ param:+ name:+ title: "نام"+ webhook_url:+ title: وَیب ھُوک URL+ mattermost:+ title: "مَیٹرمَوسٹ"+ param:+ identifier:+ title: چَینل+ help: "ثال کے طور پر #چینل، @صارف نام۔"+ errors:+ channel_not_found: "یہ مخصوص چینل مَیٹرمَوسٹ پر موجود نہیں ہے"+ matrix:+ title: "مَیٹرِکس"+ param:+ name:+ title: "نام"+ help: "چَینل کی وضاحت کرنے کیلئے نام۔ یہ مَیٹرِکس کے ساتھ کنکشن کیلئے استعمال نہیں کیا جاتا ہے۔"+ room_id:+ title: "رُوم ID"+ help: "رُوم کا 'پرائیوَِیٹ آئیڈَینٹِیفائر'۔ یہ کچھ abcdefg:matrix.org! کی طرح نظر آنا چاہئے"+ errors:+ unknown_token: "ایکسَیس ٹوکن غلط ہے"+ unknown_room: "رُوم ID غلط ہے"+ zulip:+ title: "زُولِپ"+ param:+ stream:+ title: "سٹریم"+ help: "زُولِپ سٹریم کا نام جس پر پیغام بھیجا جانا چاہئے۔ مثال کے طور پر 'general'"+ subject:+ title: "موضوع"+ help: "بذریعہ بَوٹ بھیجے گئے اِن پیغامات کا موضوع دیا جانا چاہئیے"+ errors:+ does_not_exist: "وہ سٹریم زُولِپ پر موجود نہیں ہے"+ rocketchat:+ title: "راکٹ.چَیٹ"+ param:+ identifier:+ title: چَینل+ help: "مثال کے طور پر #چینل، @صارف نام۔"+ errors:+ invalid_channel: "وہ چینل راکٹ چَیٹ پر موجود نہیں ہے"+ gitter:+ title: "گِیٹر"+ param:+ name:+ title: "نام"+ help: "ایک گِیٹر روم کا نام مثال کے طور پر gitterHQ/services۔"+ webhook_url:+ title: "وَیب ھُوک URL"+ help: "فراہم کیے جانے والا URL، جب آپ گِیٹر روم میں ایک نئی اِنٹیگرَیشَن بناتے ہیں۔"+ flowdock:+ title: "فلَوڈَوک"+ param:+ flow_token:+ title: "فلَو ٹوکن"+ help: "ایک فلَو کا سَورس بنانے کے بعد فراہم ہونے والا فلَو ٹوکن جس میں آپ پیغامات بھیجنا چاہتے ہیں"+ teams:+ param:+ name:+ title: "نام"+ webhook_url:+ title: "وَیب ھُوک URL"+ powerautomate:+ param:+ name:+ title: "نام"+ webhook_url:+ title: "وَیب ھُوک URL"+ webex:+ param:+ name:+ title: "نام"+ webhook_url:+ title: "وَیب ھُوک URL"+ google:+ param:+ name:+ title: "نام"+ webhook_url:+ title: "وَیب ھُوک URL"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: پیغام+ url:+ label: URL+ channel:+ label: چَینل+ send_chat_integration_message:+ fields:+ provider:+ label: پرووَائیڈرdiff --git a/plugins/discourse-chat-integration/config/locales/client.vi.yml b/plugins/discourse-chat-integration/config/locales/client.vi.ymlnew file mode 100644index 00000000000..c057d1ca8ee--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.vi.yml@@ -0,0 +1,116 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++vi:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "Bạn cần thêm một vài dịch vụ Chat trong phần thiết lập plugin."+ js:+ chat_integration:+ menu_title: "Bạn cần thêm một vài dịch vụ Chat trong phần thiết lập plugin."+ settings: "Xác lập"+ no_providers: "Bạn cần thêm một vài dịch vụ Chat trong phần thiết lập plugin."+ channels_with_errors: "Một vài channels từ dịch vụ chat này đã thất bại trong lần gửi tin nhắn cuối cùng. Nhấn chuột vào biểu tượng lỗi để xem thêm."+ choose_group: "(chọn một nhóm)"+ all_categories: "(tất cả danh mục)"+ all_tags: "(tất cả từ khoá)"+ delete_channel: "Xóa"+ edit_channel: "Sửa"+ test_modal:+ title: "Gửi một tin nhắn kiểm tra dịch vụ"+ topic: "Chủ đề"+ send: "Gửi tin nhắn kiểm tra"+ close: "Đóng lại"+ type:+ normal: Bình thường+ filter:+ mute: 'Im lặng'+ follow: 'Chỉ chủ đề đầu tiên'+ watch: 'Tất cả bài viết và trả lời'+ rule_table:+ filter: "Lọc"+ category: "Danh mục"+ tags: "Thẻ"+ edit_rule: "Sửa"+ delete_rule: "Xóa"+ edit_channel_modal:+ cancel: "Hủy"+ channel_validation:+ ok: "Hợp lệ"+ fail: "Định dạng không hợp lệ"+ edit_rule_modal:+ title: Sửa quy tắc+ save: Lưu quy tắc+ cancel: Hủy+ type: Loại+ filter: Lọc+ category: Danh mục+ group: Nhóm+ tags: Thẻ+ provider:+ slack:+ param:+ identifier:+ help: "Ví dụ #channel, @username"+ telegram:+ param:+ name:+ title: "Tên"+ discord:+ title: "Discord"+ param:+ name:+ title: "Tên"+ guilded:+ param:+ name:+ title: "Tên"+ mattermost:+ param:+ identifier:+ help: "Ví dụ #channel, @username"+ matrix:+ param:+ name:+ title: "Tên"+ zulip:+ param:+ subject:+ title: "Tiêu đề"+ rocketchat:+ param:+ identifier:+ help: "Ví dụ #channel, @username"+ gitter:+ param:+ name:+ title: "Tên"+ teams:+ param:+ name:+ title: "Tên"+ powerautomate:+ param:+ name:+ title: "Tên"+ webex:+ param:+ name:+ title: "Tên"+ google:+ param:+ name:+ title: "Tên"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: Tin nhắn+ url:+ label: URLdiff --git a/plugins/discourse-chat-integration/config/locales/client.zh_CN.yml b/plugins/discourse-chat-integration/config/locales/client.zh_CN.ymlnew file mode 100644index 00000000000..7ded73b0e25--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.zh_CN.yml@@ -0,0 +1,242 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++zh_CN:+ admin_js:+ admin:+ site_settings:+ categories:+ chat_integration: "聊天集成"+ js:+ chat_integration:+ menu_title: "聊天集成"+ settings: "设置"+ no_providers: "您需要在插件设置中启用一些提供商"+ channels_with_errors: "上次发送消息时,此提供商的一些频道失败。点击错误图标了解详情。"+ channel_exception: "上次向此频道发送消息时发生未知错误。"+ group_mention_template: "提及:@%{name}"+ group_message_template: "发送消息给:@%{name}"+ choose_group: "(选择一个群组)"+ all_categories: "(所有类别)"+ all_tags: "(所有标签)"+ create_rule: "创建规则"+ create_channel: "创建频道"+ delete_channel: "删除"+ test_channel: "测试"+ edit_channel: "编辑"+ channel_delete_confirm: "确定要删除此频道吗?所有关联规则都会被删除。"+ test_modal:+ title: "发送测试消息"+ topic: "话题"+ send: "发送测试信息"+ close: "关闭"+ error: "发送消息时遇到未知错误。检查站点日志了解详情。"+ success: "消息已成功发送"+ type:+ normal: 正常+ group_message: 群发消息+ group_mention: 群组提及+ filter:+ mute: '免打扰'+ follow: '仅第一个帖子'+ watch: '所有帖子和回复'+ thread: '所有带有按线索组织的回复的帖子'+ rule_table:+ filter: "筛选器"+ category: "类别"+ tags: "标签"+ edit_rule: "编辑"+ delete_rule: "删除"+ edit_channel_modal:+ title: "编辑频道"+ save: "保存频道"+ cancel: "取消"+ provider: "提供商"+ channel_validation:+ ok: "有效"+ fail: "格式无效"+ edit_rule_modal:+ title: 编辑规则+ save: 保存规则+ cancel: 取消+ provider: 提供商+ type: 类型+ channel: 频道+ filter: 筛选器+ category: 类别+ group: 群组+ tags: 标签+ instructions:+ type: "更改类型以触发群发消息或提及的通知"+ filter: "通知级别。免打扰会覆盖其他匹配规则"+ category: "此规则仅适用于指定类别中的话题"+ group: "此规则将适用于引用此群组的帖子"+ tags: "如果指定,此规则将仅适用于至少具有这些标签之一的话题"+ provider:+ slack:+ title: "Slack"+ param:+ identifier:+ title: 频道+ help: "例如:#channel、@username。"+ errors:+ action_prohibited: "机器人没有权限在该频道发帖"+ channel_not_found: "指定的频道在 Slack 上不存在"+ telegram:+ title: "Telegram"+ param:+ name:+ title: "名称"+ help: "用于描述频道的名称。它不用于连接到 Telegram。"+ chat_id:+ title: 聊天 ID+ help: 一个由机器人提供的号码,或一个 @channelname 格式的广播频道标识符+ errors:+ channel_not_found: "指定的频道在 Telegram 上不存在"+ forbidden: "机器人没有权限在此频道发帖"+ discord:+ title: "Discord"+ param:+ name:+ title: "名称"+ help: "用于描述频道的名称。它不用于连接到 Discord。"+ webhook_url:+ title: 网络钩子 URL+ help: 在您的 Discord 服务器设置中创建的网络钩子 URL+ guilded:+ title: "Guilded"+ param:+ name:+ title: "名称"+ help: "用于描述频道的名称。它不用于连接到 Guilded"+ webhook_url:+ title: 网络钩子 URL+ help: 在您的 Guilded 服务器设置中创建的网络钩子 URL+ mattermost:+ title: "Mattermost"+ param:+ identifier:+ title: 频道+ help: "例如:#channel、@username。"+ errors:+ channel_not_found: "指定的频道在 Mattermost 上不存在"+ matrix:+ title: "Matrix"+ param:+ name:+ title: "名称"+ help: "用于描述频道的名称。它不用于连接到 Matrix。"+ room_id:+ title: "房间 ID"+ help: "房间的“私有标识符”。看起来应该像 !abcdefg:matrix.org"+ errors:+ unknown_token: "访问令牌无效"+ unknown_room: "房间 ID 无效"+ zulip:+ title: "Zulip"+ param:+ stream:+ title: "流"+ help: "消息应发送到的 Zulip 流的名称。例如 'general'"+ subject:+ title: "主题"+ help: "应提供机器人发送的这些消息的主题"+ errors:+ does_not_exist: "流在 Zulip 上不存在"+ rocketchat:+ title: "Rocket.Chat"+ param:+ identifier:+ title: 频道+ help: "例如:#channel、@username。"+ errors:+ invalid_channel: "该频道在 Rocket Chat 上不存在"+ gitter:+ title: "Gitter"+ param:+ name:+ title: "名称"+ help: "Gitter 房间的名称,例如 gitterHQ/services。"+ webhook_url:+ title: "网络钩子 URL"+ help: "在 Gitter 房间中创建新集成时提供的 URL。"+ flowdock:+ title: "Flowdock"+ param:+ flow_token:+ title: "流令牌"+ help: "在为要向其发送消息的流创建源后提供的流令牌。"+ groupme:+ title: "GroupMe"+ param:+ groupme_instance_name:+ title: "GroupMe 实例名称"+ help: "站点设置中列出的 Groupme 实例的名称。使用 'all' 可以发送到所有实例"+ errors:+ not_found: "未找到您尝试将消息发布到的路径。检查站点设置中的机器人 ID。"+ teams:+ title: "Microsoft Teams"+ param:+ name:+ title: "名称"+ help: "Teams 频道名称,例如 discourse"+ webhook_url:+ title: "网络钩子 URL"+ help: "创建新的入站网络钩子时提供的 URL"+ errors:+ invalid_channel: "该频道在 Microsoft Teams 上不存在"+ powerautomate:+ title: "Microsoft Power Automate"+ param:+ name:+ title: "名称"+ help: "频道名称(仅在 Discourse 管理界面中显示)"+ webhook_url:+ title: "网络钩子 URL"+ help: "创建新的入站网络钩子时提供的 URL"+ errors:+ invalid_webhook: "该网络钩子 URL 无效。"+ webex:+ title: "Webex Teams"+ param:+ name:+ title: "名称"+ help: "Webex 空间名称,例如 discourse"+ webhook_url:+ title: "网络钩子 URL"+ help: "创建新的入站网络钩子时提供的 URL"+ errors:+ invalid_channel: "该频道在 Webex 上不存在"+ google:+ title: "Google Chat"+ param:+ name:+ title: "名称"+ help: "频道名称(仅在 Discourse 管理界面中显示)"+ webhook_url:+ title: "网络钩子 URL"+ help: "创建新的网络钩子时提供的 URL"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: 发送 Slack 消息+ fields:+ message:+ label: 消息+ description: >-+ 为话题名称使用 ${TOPIC},为使用的 URL 使用 ${URL},为移除的标签使用 ${REMOVED_TAGS},为添加的标签使用 ${ADDED_TAGS},为默认文本使用 ${ADDED_AND_REMOVED}。仅在触发器设置为“话题标签已更改”时可用。+ url:+ label: URL+ channel:+ label: 频道+ send_chat_integration_message:+ title: 发送聊天集成消息+ fields:+ channel_name:+ label: 频道名称+ description: "您可以在聊天集成设置中找到频道名称"+ provider:+ label: 提供程序diff --git a/plugins/discourse-chat-integration/config/locales/client.zh_TW.yml b/plugins/discourse-chat-integration/config/locales/client.zh_TW.ymlnew file mode 100644index 00000000000..d6732ad7c2c--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/client.zh_TW.yml@@ -0,0 +1,91 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++zh_TW:+ js:+ chat_integration:+ settings: "設定"+ all_categories: "(所有分類)"+ all_tags: "(所有標籤)"+ delete_channel: "刪除"+ test_channel: "測試"+ edit_channel: "編輯"+ test_modal:+ topic: "話題"+ close: "關閉"+ type:+ normal: 一般+ filter:+ mute: '靜音'+ rule_table:+ filter: "過濾"+ category: "分類"+ tags: "標籤"+ edit_rule: "編輯"+ delete_rule: "刪除"+ edit_channel_modal:+ cancel: "取消"+ edit_rule_modal:+ cancel: 取消+ type: 類型+ filter: 過濾+ category: 分類+ group: 群組+ tags: 標籤+ provider:+ telegram:+ param:+ name:+ title: "名稱"+ discord:+ title: "Discord"+ param:+ name:+ title: "名稱"+ guilded:+ param:+ name:+ title: "名稱"+ matrix:+ param:+ name:+ title: "名稱"+ zulip:+ param:+ subject:+ title: "主旨"+ gitter:+ param:+ name:+ title: "名稱"+ teams:+ param:+ name:+ title: "名稱"+ powerautomate:+ param:+ name:+ title: "名稱"+ webex:+ param:+ name:+ title: "名稱"+ google:+ param:+ name:+ title: "名稱"+ discourse_automation:+ scriptables:+ send_slack_message:+ fields:+ message:+ label: 訊息+ url:+ label: 網址+ send_chat_integration_message:+ fields:+ channel_name:+ label: 變更名稱diff --git a/plugins/discourse-chat-integration/config/locales/server.ar.yml b/plugins/discourse-chat-integration/config/locales/server.ar.ymlnew file mode 100644index 00000000000..52138354880--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.ar.yml@@ -0,0 +1,237 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ar:+ site_settings:+ chat_integration_enabled: 'تفعيل المكوِّن الإضافي لتكامل الدردشة في Discourse'+ chat_integration_discourse_username: 'اسم المستخدم الذي سيظهر به المستخدم عند جلب المحتوى'+ chat_integration_delay_seconds: 'عدد الثواني التي يجب انتظارها بعد إنشاء المنشور قبل إرسال إشعارات الدردشة'+ chat_integration_slack_username: "اسم المستخدم لبرنامج الروبوت للنشر تحته على Slack"+ chat_integration_slack_enabled: 'تفعيل مقدِّم خدمة تكامل الدردشة Slack'+ chat_integration_slack_access_token: 'رمز وصول OAuth للمصادقة مع Slack'+ chat_integration_slack_incoming_webhook_token: 'رمز التحقُّق المُستخدَم لمصادقة الطلبات الواردة'+ chat_integration_slack_excerpt_length: 'طول المقتطف من منشور Slack'+ chat_integration_slack_icon_url: 'أيقونة لاستخدامها في النشر في Slack (الأيقونة الافتراضية هي أيقونة المنتدى)'+ chat_integration_slack_outbound_webhook_url: "لاستخدام نظام \"خطاف الويب الوارد\" من Slack بدلًا من OAuth API. لا يوصى بذلك."+ chat_integration_slack_transcript_quote: هل تريد تضمين نص Slack في علامات [quote]؟+ errors:+ chat_integration_slack_api_configs_are_empty: "يجب عليك إدخال عنوان URL لخطاف ويب صادر أو رمز وصول"+ chat_integration_telegram_enabled: "تفعيل مقدِّم خدمة تكامل الدردشة Telegram"+ chat_integration_telegram_access_token: "رمز وصول برنامج الروبوت الخاص بك من botfather@ على Telegram"+ chat_integration_telegram_excerpt_length: "طول المقتطف من منشور Telegram"+ chat_integration_telegram_enable_slash_commands: "السماح بإدارة اشتراكات Telegram باستخدام \"الأوامر التي تبدأ بشرطة مائلة\""+ chat_integration_discord_enabled: "تفعيل مقدِّم خدمة تكامل الدردشة Discord"+ chat_integration_discord_message_content: "الرسالة التي سيتم تضمينها أعلى الملخص عند إرسال إشعار إلى Discord"+ chat_integration_discord_excerpt_length: "طول المقتطف من منشور Discord"+ chat_integration_guilded_enabled: "تفعيل مقدِّم خدمة تكامل الدردشة Guilded"+ chat_integration_guilded_excerpt_length: "طول المقتطف من منشور Guilded"+ chat_integration_mattermost_enabled: "تفعيل مقدِّم خدمة تكامل الدردشة Mattermost"+ chat_integration_mattermost_webhook_url: 'عنوان URL لخطاف الويب من Mattermost'+ chat_integration_mattermost_incoming_webhook_token: 'رمز التحقُّق المُستخدَم لمصادقة الطلبات الواردة'+ chat_integration_mattermost_icon_url: "أيقونة المنشورات في Mattermost (الأيقونة الافتراضية هي أيقونة المنتدى)"+ chat_integration_mattermost_excerpt_length: "طول المقتطف من منشور Mattermost"+ chat_integration_matrix_enabled: "تفعيل مقدِّم خدمة تكامل الدردشة Matrix"+ chat_integration_matrix_homeserver: "خادم منزلي للاتصال به. تأكَّد من تضمين البروتوكول"+ chat_integration_matrix_access_token: "رمز الوصول لحساب Matrix لبرنامج الروبوت"+ chat_integration_matrix_excerpt_length: "طول المقتطف من منشور Matrix"+ chat_integration_matrix_use_notice: "استخدام الإشعار بدلًا من الرسالة العادية"+ chat_integration_zulip_enabled: "تفعيل مقدِّم خدمة تكامل الدردشة Zulip"+ chat_integration_zulip_server: "عنوان URL الأساسي لخادم Zulip الخاص بك. تأكَّد من تضمين http(s)://"+ chat_integration_zulip_bot_email_address: "عنوان البريد الإلكتروني المرتبط ببرنامج روبوت Zulip الخاص بك"+ chat_integration_zulip_bot_api_key: "مفتاح API لبرنامج روبوت Zulip الخاص بك"+ chat_integration_zulip_excerpt_length: "طول المقتطف من منشور Zulip"+ chat_integration_rocketchat_enabled: "تفعيل مقدِّم خدمة تكامل الدردشة Rocket Chat"+ chat_integration_rocketchat_webhook_url: "عنوان URL لخطاف الويب لتكامل الدردشة Rocket Chat"+ chat_integration_rocketchat_excerpt_length: "طول المقتطف من منشور Rocket Chat"+ chat_integration_gitter_enabled: "تفعيل مقدِّم خدمة تكامل الدردشة Gitter"+ chat_integration_flowdock_enabled: "تفعيل مقدِّم خدمة تكامل الدردشة Flowdock"+ chat_integration_flowdock_excerpt_length: "طول المقتطف من منشور Flowdock"+ chat_integration_groupme_enabled: "تفعيل مقدِّم خدمة تكامل الدردشة Groupme"+ chat_integration_groupme_excerpt_length: "طول المقتطف من منشور Groupme"+ chat_integration_groupme_bot_ids: "*مطلوب* مُعرِّفات برامج الروبوت، مفصولة بالرمز \",\" إذا كانت عديدة"+ chat_integration_groupme_instance_names: " * مطلوب * أسماء دردشات GroupMe، مفصولة بالرمز \",\" إذا كانت عديدة (بنفس ترتيب مُعرِّفات برامج الروبوت)"+ chat_integration_teams_enabled: "تفعيل مقدِّم خدمة تكامل الدردشة Microsoft Teams"+ chat_integration_teams_excerpt_length: "طول المقتطف من منشور Microsoft Teams"+ chat_integration_powerautomate_enabled: "تفعيل مقدِّم خدمة تكامل Microsoft Power Automate"+ chat_integration_powerautomate_excerpt_length: "طول المقتطف من منشور Microsoft Power Automate"+ chat_integration_webex_enabled: "تفعيل مقدِّم خدمة تكامل الدردشة Webex Teams"+ chat_integration_webex_excerpt_length: "طول المقتطف من منشور Webex Team"+ chat_integration_google_enabled: "تفعيل مقدِّم خدمة تكامل الدردشة Google Chat"+ chat_integration_google_excerpt_length: "طول المقتطف من منشور Google Chat"+ dashboard:+ problem:+ channel_errors: "هناك أخطاء في بعض قنوات تكاملات الدردشة. انتقل إلى <a href='%{base_path}/admin/plugins/chat-integration'>قسم تكامل الدردشة</a> لمعرفة المزيد."+ discourse_automation:+ scriptables:+ send_slack_message:+ title: إرسال رسالة Slack+ send_chat_integration_message:+ title: إرسال رسالة Chat-Integration+ chat_integration:+ all_categories: "(جميع الفئات)"+ deleted_category: "(فئة محذوفة)"+ deleted_group: "(مجموعة محذوفة)"+ group_mention_template: "الإشارات إلى: @%{name}"+ group_message_template: "الرسائل إلى: @%{name}"+ topic_tag_changed:+ added_and_removed: "تمت إضافة %{added} وإزالة %{removed}"+ added: "تمت إضافة %{added}"+ removed: "تمت إزالة %{removed}"+ provider:+ slack:+ status:+ header: |+ *قواعد هذه القناة*+ (إذا تطابقت عدة قواعد مع منشور، فسيتم تنفيذ القاعدة العلوية)+ no_rules: "لا توجد قواعد معدَّة لهذه القناة. شغِّل `/discourse help` للحصول على التعليمات."+ rule_string: "*%{index})* *%{filter}* المنشورات في *%{category}*"+ rule_string_tags_suffix: " يحمل الوسوم: *%{tags}*"+ parse_error: "عذرًا، لم أفهم ذلك. شغِّل `/discourse help` للحصول على التعليمات."+ create:+ created: "تم إنشاء القاعدة بنجاح"+ updated: "تم تحديث القاعدة بنجاح"+ error: "عذرًا، حدث خطأ في أثناء إنشاء هذه القاعدة."+ delete:+ success: "تم حذف القاعدة بنجاح"+ error: "عذرًا، حدث خطأ في أثناء حذف هذه القاعدة. شغِّل `/discourse status` للحصول على قائمة بالقواعد."+ not_found:+ tag: "يتعذَّر العثور على الوسم *%{name}*."+ category: "يتعذَّر العثور على الفئة *%{name}*. الفئات المتوفرة: *%{list}*"+ help: |+ *قاعدة جديدة:* `/discourse [thread|watch|follow|mute] [category] [tag:name]`+ (يجب عليك تحديد نوع قاعدة وفئة أو وسم واحد على الأقل)+ - *السلسلة* – إرسال إشعار إلى هذه القناة بالموضوعات الجديدة والردود المسلسلة إن أمكن+ - *المراقبة* – إرسال إشعار إلى هذه القناة بالموضوعات والردود الجديدة+ - *المتابعة* – إرسال إشعار إلى هذه القناة بالموضوعات الجديدة+ - *الكتم* – حظر الإشعارات إلى هذه القناة++ *قاعدة الإزالة:* `/discourse remove [rule number]`+ (يمكن العثور على `[rule number]` بتشغيل `/discourse status`)++ *إدراج القواعد:* `/discourse status`++ *[Experimental] نص المنشور:* `/discourse post [n]`+ إنشاء مسودة موضوع على Discourse تحتوي على آخر `n` من المنشورات في هذه القناة++ *المساعدة:* `/discourse help`+ transcript:+ modal_title: "إنشاء نص"+ modal_description: "سيتم تجميع كل الرسائل الموجودة في السلسلة في منشور واحد على المنتدى. ستُتاح لك الفرصة لتعديل النص قبل النشر."+ transcript_ready: "النص جاهز"+ continue_on_discourse: "المتابعة في المنتدى"+ error: "عذرًا، حدث خطأ في أثناء إنشاء النص!"+ post_to_discourse: "انقر هنا لصياغة منشور على Discourse باستخدام نص"+ api_required: "عذرًا، لم يتم إعداد هذا التكامل لدعم نشر النصوص."+ view_on_slack: "العرض في %{name} على Slack"+ first_message_pretext: "بدأ قبل %{n} من الرسائل:"+ last_message_pretext: "وانتهى قبل %{n} من الرسائل:"+ posted_in: "نشر في %{name}"+ change_first_message: "تغيير أول رسالة..."+ change_last_message: "تغيير آخر رسالة..."+ loading: "جارٍ تحميل النص..."+ error_users: "خطأ: يتعذَّر جلب المستخدمين من Slack"+ error_history: "خطأ: يتعذَّر جلب سجل القناة من Slack"+ error_ts: "خطأ: يتعذَّر جلب الرسالة المطلوبة من Slack"+ messaging:+ topic_tag_changed:+ added_and_removed: "تمت إضافة %{added} وإزالة %{removed}"+ added: "تمت إضافة %{added}"+ removed: "تمت إزالة %{removed}"+ telegram:+ unknown_chat: "لم يتم إعداد الدردشة على %{site_title}. اطلب من المسؤول إضافة قناة باستخدام \"مُعرِّف الدردشة\" %{chat_id}."+ known_chat: "تم إعداد هذه الدردشة على %{site_title}. يمكنك إعدادها في لوحة المسؤول. (مُعرِّف الدردشة: %{chat_id})"+ message: |-+ نشر <b>%{user}</b> في <a href="%{post_url}">%{title}</a>++ <pre>%{post_excerpt}</pre>+ status:+ header: |+ <b>قواعد هذه القناة</b>+ (إذا تطابقت عدة قواعد مع منشور، فسيتم تنفيذ القاعدة العلوية)+ no_rules: "لا توجد قواعد معدَّة لهذه القناة. شغِّل <code>/help</code> للحصول على التعليمات."+ rule_string: "<b>%{index})</b> <b>%{filter}</b> المنشورات في <b>%{category}</b>"+ rule_string_tags_suffix: " يحمل الوسوم: <b>%{tags}</b>"+ parse_error: "عذرًا، لم أفهم ذلك. شغِّل <code>/help</code> للحصول على التعليمات."+ create:+ created: "تم إنشاء القاعدة بنجاح"+ updated: "تم تحديث القاعدة بنجاح"+ error: "عذرًا، حدث خطأ في أثناء إنشاء هذه القاعدة."+ delete:+ success: "تم حذف القاعدة بنجاح"+ error: "عذرًا، حدث خطأ في أثناء حذف هذه القاعدة. شغِّل <code>/status</code> للحصول على قائمة بالقواعد."+ not_found:+ tag: "يتعذَّر العثور على الوسم <b>%{name}</b>."+ category: "يتعذَّر العثور على الفئة <b>%{name}</b>. الفئات المتوفرة: <b>%{list}</b>"+ help: |+ <b>قاعدة جديدة:</b> <code>/[watch|follow|mute] [category] [tag:name]</code>+ (يجب عليك تحديد نوع قاعدة وفئة أو وسم واحد على الأقل)+ - <b>المراقبة</b> – إرسال إشعار إلى هذه القناة بالموضوعات والردود الجديدة+ - <b>المتابعة</b> – nإرسال إشعار إلى هذه القناة بالموضوعات الجديدة+ - <b>الكتم</b> – حظر الإشعارات إلى هذه القناة++ <b>قاعدة الإزالة:</b> <code>/remove [rule number]</code>+ (يمكن العثور على <code>[rule number]</code> بتشغيل <code>/status</code>)++ <b>إدراج القواعد:</b> <code>/status</code>++ <b>المساعدة:</b> <code>/help</code>+ hipchat:+ message: نشر <b>%{user}</b> في <a href="%{post_url}">%{title}</a>+ mattermost:+ status:+ header: |+ *قواعد هذه القناة*+ (إذا تطابقت عدة قواعد مع منشور، فسيتم تنفيذ القاعدة العلوية)+ no_rules: "لا توجد قواعد معدَّة لهذه القناة. شغِّل `/discourse help` للحصول على التعليمات."+ rule_string: "*%{index})* *%{filter}* المنشورات في *%{category}*"+ rule_string_tags_suffix: " يحمل الوسوم: *%{tags}*"+ parse_error: "عذرًا، لم أفهم ذلك. شغِّل `/discourse help` للحصول على التعليمات."+ create:+ created: "تم إنشاء القاعدة بنجاح"+ updated: "تم تحديث القاعدة بنجاح"+ error: "عذرًا، حدث خطأ في أثناء إنشاء هذه القاعدة."+ delete:+ success: "تم حذف القاعدة بنجاح"+ error: "عذرًا، حدث خطأ في أثناء حذف هذه القاعدة. شغِّل `/discourse status` للحصول على قائمة بالقواعد."+ not_found:+ tag: "يتعذَّر العثور على الوسم *%{name}*."+ category: "يتعذَّر العثور على الفئة *%{name}*. الفئات المتوفرة: *%{list}*"+ help: |+ *قاعدة جديدة:* `/discourse [watch|follow|mute] [category] [tag:name]`+ (يجب عليك تحديد نوع قاعدة وفئة أو وسم واحد على الأقل)+ - *المراقبة* – إرسال إشعار إلى هذه القناة بالموضوعات والردود الجديدة+ - *المتابعة* – إرسال إشعار إلى هذه القناة بالموضوعات الجديدة+ - *الكتم* – حظر الإشعارات إلى هذه القناة++ *قاعدة الإزالة:* `/discourse remove [rule number]`+ (يمكن العثور على `[rule number]` بتشغيل `/discourse status`)++ *إدراج القواعد:* `/discourse status`++ *المساعدة:* `/discourse help`+ matrix:+ text_message: "نشر %{user} في %{title} - %{post_url}"+ formatted_message: |+ نشر <b>%{user}</b> في <b><a href='%{post_url}'>%{title}</a></b>+ <blockquote>+ %{excerpt}+ </blockquote>+ zulip:+ message: |+ نشر **%{user}** في **[%{title}](%{post_url})**+ ~~~الاقتباس+ %{excerpt}+ ~~~+ flowdock:+ message_title: "تم النشر"+ google:+ new_post: "منشور جديد على %{site_title}"+ new_topic: "منشور جديد على %{site_title}"+ author: "من قِبل @%{username}"+ link: "العرض على %{site_title}"+ groupme:+ errors:+ instance_names_issue: "لم يتم إدخال أسماء المثيلات أو أن تنسيقاتها غير صحيحة"diff --git a/plugins/discourse-chat-integration/config/locales/server.be.yml b/plugins/discourse-chat-integration/config/locales/server.be.ymlnew file mode 100644index 00000000000..3e79c84503f--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.be.yml@@ -0,0 +1,138 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++be:+ site_settings:+ chat_integration_enabled: 'Ўключыць дыскурс-чат-інтэграцыі убудова'+ chat_integration_discourse_username: 'Імя карыстальніка карыстальніка, каб дзейнічаць як пры атрыманні ўтрымання.'+ chat_integration_delay_seconds: 'Колькасць секунд чакання пасля стварэння паштовага перад адпраўкай апавяшчэнняў чата'+ chat_integration_slack_enabled: 'Ўключэнне слабіну пастаўшчыка чат-інтэграцыі'+ chat_integration_slack_access_token: 'OAuth маркер доступу для аўтэнтыфікацыі з Слэк'+ chat_integration_slack_incoming_webhook_token: 'Маркер пацверджання выкарыстоўваецца для праверкі сапраўднасці ўваходзяць запытаў'+ chat_integration_slack_excerpt_length: 'Нацяжныя паведамленне даўжыня вытрымкі'+ chat_integration_slack_icon_url: 'Абразок да паведамлення цкаваць з (па змаўчанні форум лагатыпа)'+ chat_integration_slack_outbound_webhook_url: "Для выкарыстання сістэмы слабіны ў «Уваходныя Webhook» замест ад OAuth API. Не рэкамендуецца."+ errors:+ chat_integration_slack_api_configs_are_empty: "Вы павінны ўвесці альбо выходны webhook URL або маркер доступу"+ chat_integration_telegram_enabled: "Ўключэнне Тэлеграма правайдэра чат-інтэграцыі"+ chat_integration_telegram_access_token: "Маркер доступу вашага бота ад botfather Тэлеграмы"+ chat_integration_telegram_excerpt_length: "Тэлеграма даўжыня пасля вытрымкі"+ chat_integration_telegram_enable_slash_commands: "Дазволіць падпіскі тэлеграм будуць кіравацца з дапамогай «каманды слэша»"+ chat_integration_discord_enabled: "Ўключэнне дысананс пастаўшчыка чат-інтэграцыі"+ chat_integration_discord_message_content: "Паведамленне ўключыць вышэй рэзюмэ пры адпраўцы апавяшчэння разладу"+ chat_integration_discord_excerpt_length: "Разлад паведамленне даўжыня вытрымкі"+ chat_integration_mattermost_enabled: "Ўключэнне Mattermost пастаўшчыка чат-інтэграцыі"+ chat_integration_mattermost_webhook_url: 'URL для webhook Mattermost'+ chat_integration_mattermost_incoming_webhook_token: 'Маркер пацверджання выкарыстоўваецца для праверкі сапраўднасці ўваходзяць запытаў'+ chat_integration_mattermost_icon_url: "Значок для паведамленняў у Mattermost (па змаўчанні форум лагатыпа)"+ chat_integration_mattermost_excerpt_length: "Mattermost паведамленне даўжыня вытрымкі"+ chat_integration_matrix_enabled: "Уключыце Matrix чат пастаўшчыка інтэграцыі"+ chat_integration_matrix_homeserver: "HomeServer падлучыцца. Пераканайцеся ў тым, каб уключыць пратакол"+ chat_integration_matrix_access_token: "маркер доступу для ўліковага запісу Матрыцы бота"+ chat_integration_matrix_excerpt_length: "Матрыца даўжыня пасля вытрымкі"+ chat_integration_matrix_use_notice: "Выкарыстоўвайце апавяшчэнне замест звычайнага паведамлення"+ chat_integration_zulip_enabled: "Ўключэнне Zulip чат правайдэра інтэграцыі"+ chat_integration_zulip_server: "Базавы URL для вашага сервера Zulip. Пераканайцеся ў тым, каб уключыць HTTP (S):"+ chat_integration_zulip_bot_email_address: "Адрас электроннай пошты, звязаны з вашым Zulip ботам"+ chat_integration_zulip_bot_api_key: "Ключ API для Zulip бота"+ chat_integration_zulip_excerpt_length: "Zulip Даўжыня паведамлення ўрывак"+ chat_integration_rocketchat_enabled: "Уключыце Ракетна чат пастаўшчык інтэграцыі чата"+ chat_integration_rocketchat_webhook_url: "URL для Ракетна інтэграцыі чата webhook"+ chat_integration_rocketchat_excerpt_length: "Ракетна чат даўжыня пасля вытрымкі"+ chat_integration_gitter_enabled: "Ўключэнне GITTER чат правайдэра інтэграцыі"+ chat_integration_flowdock_enabled: "Ўключэнне Flowdock чат правайдэра інтэграцыі"+ chat_integration_flowdock_excerpt_length: "Flowdock даўжыня пасля вытрымкі"+ chat_integration:+ all_categories: "(Усе катэгорыі)"+ deleted_category: "(Сцёрта катэгорыя)"+ deleted_group: "(Сцёрта група)"+ group_mention_template: "згадвання: @% {імя}"+ group_message_template: "паведамленні ў: @% {імя}"+ provider:+ slack:+ status:+ header: |+ * Правілы для гэтага канала *(Калі некалькі правілаў адпавядаюць пасадзе, верхняе правіла выконваецца)+ no_rules: "Там няма правілы, устаноўленага для гэтага канала. Run `"+ rule_string: "*% {Індэкс}) * *% {фільтр} * паведамленняў у *% {катэгорыя} *"+ rule_string_tags_suffix: "з тэгамі: *% {тэгі} *"+ parse_error: "На жаль, я не разумею. Run `"+ create:+ created: "Правіла створана паспяхова"+ updated: "Правіла паспяхова абноўлены"+ error: "На жаль, памылка пры стварэнні гэтага правіла адбылося."+ delete:+ success: "Правіла паспяхова выдалены"+ error: "На жаль, адбылася памылка падчас выдалення гэтага правіла. Run `"+ not_found:+ tag: "*% {Імя} * Тэг не можа быць знойдзены."+ category: "*% {Імя} * катэгорыя не можа быць знойдзены. Даступныя катэгорыі: *% {спіс} *"+ transcript:+ error: "Нешта пайшло не так пры стварэнні транскрыптаў, прабачце!"+ post_to_discourse: "Націсніце тут, каб падрыхтаваць паведамленне на дыскурсе з транскрыптаў"+ api_required: "На жаль, гэтая інтэграцыя не настроена для падтрымкі аб'явы транскрыптаў."+ view_on_slack: "Прагляд у% {імя} на Слэк"+ first_message_pretext: "пачынаючы% {N} паведамлення таму:"+ last_message_pretext: "і заканчваючы% {N} паведамлення таму:"+ posted_in: "Адказвалі ў% {імя}"+ change_first_message: "Змяніць першае паведамленне ..."+ change_last_message: "Апошняе паведамленне ..."+ loading: "Загрузка расшыфроўкі ..."+ telegram:+ unknown_chat: "Гэты чат не настроены на% {SITE_TITLE}. Папытаеце адміністратара дадаць канал з «Chat ID»% {chat_id}."+ known_chat: "Гэты чат настроены на% {SITE_TITLE}. Наладзьце яго ў панэлі адміністратара. (Чат ID:% {chat_id})"+ message: |-+ <Ь>% {карыстальнік} <+ status:+ header: |+ <B> Правілы для гэтага канала <+ no_rules: "Там няма правілы, устаноўленага для гэтага канала. Выканаць <код>"+ rule_string: "<Ь>% {індэкс}) <"+ rule_string_tags_suffix: "з тэгамі: <б>% {тэгі} <"+ parse_error: "На жаль, я не разумею. Выканаць <код>"+ create:+ created: "Правіла створана паспяхова"+ updated: "Правіла паспяхова абноўлены"+ error: "На жаль, памылка пры стварэнні гэтага правіла адбылося."+ delete:+ success: "Правіла паспяхова выдалены"+ error: "На жаль, адбылася памылка падчас выдалення гэтага правіла. Выканаць <код>"+ not_found:+ tag: "<Ь>% {імя} <"+ category: "<Ь>% {імя} <"+ help: |+ <Б> Новае правіла: <+ hipchat:+ message: <Ь>% {карыстальнік} <+ mattermost:+ status:+ header: |+ * Правілы для гэтага канала *(Калі некалькі правілаў адпавядаюць пасадзе, верхняе правіла выконваецца)+ no_rules: "Там няма правілы, устаноўленага для гэтага канала. Run `"+ rule_string: "*% {Індэкс}) * *% {фільтр} * паведамленняў у *% {катэгорыя} *"+ rule_string_tags_suffix: "з тэгамі: *% {тэгі} *"+ parse_error: "На жаль, я не разумею. Run `"+ create:+ created: "Правіла створана паспяхова"+ updated: "Правіла паспяхова абноўлены"+ error: "На жаль, памылка пры стварэнні гэтага правіла адбылося."+ delete:+ success: "Правіла паспяхова выдалены"+ error: "На жаль, адбылася памылка падчас выдалення гэтага правіла. Run `"+ not_found:+ tag: "*% {Імя} * Тэг не можа быць знойдзены."+ category: "*% {Імя} * катэгорыя не можа быць знойдзены. Даступныя катэгорыі: *% {спіс} *"+ help: |+ * Новае правіла: * `+ matrix:+ text_message: "% {Карыстальнік} адказваў у% {назву} - {%} POST_URL"+ formatted_message: |+ <Ь>% {карыстальнік} <+ zulip:+ message: |+ **% {} карыстальнік ** адказваў у ** [% {назву}] (% {POST_URL}) **~~~ цытата% {Вытрымка}~~~+ flowdock:+ message_title: "адправіў"diff --git a/plugins/discourse-chat-integration/config/locales/server.bg.yml b/plugins/discourse-chat-integration/config/locales/server.bg.ymlnew file mode 100644index 00000000000..bd298a91d43--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.bg.yml@@ -0,0 +1,22 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++bg:+ chat_integration:+ all_categories: "(всички категории)"+ topic_tag_changed:+ added_and_removed: "Добавен е %{added} и е премахнат %{removed}"+ added: "Добавен %{added}"+ removed: "Премахнат %{removed}"+ provider:+ slack:+ messaging:+ topic_tag_changed:+ added_and_removed: "Добавен е %{added} и е премахнат %{removed}"+ added: "Добавен %{added}"+ removed: "Премахнат %{removed}"+ flowdock:+ message_title: "публикувано"diff --git a/plugins/discourse-chat-integration/config/locales/server.bs_BA.yml b/plugins/discourse-chat-integration/config/locales/server.bs_BA.ymlnew file mode 100644index 00000000000..8864dc89415--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.bs_BA.yml@@ -0,0 +1,27 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++bs_BA:+ site_settings:+ chat_integration_enabled: 'Omogućite dodatak za integraciju diskursa'+ chat_integration_discourse_username: 'Korisničko ime korisnika da se ponaša kao prilikom preuzimanja sadržaja.'+ chat_integration_delay_seconds: 'Broj sekundi za čekanje nakon kreiranja posta prije slanja obavijesti o chatu'+ chat_integration_slack_enabled: 'Omogućite dobavljača slabe chat integracije'+ chat_integration_slack_access_token: 'OAuth pristupni token za autentifikaciju sa Slack'+ chat_integration_slack_incoming_webhook_token: 'Token verifikacije koji se koristi za provjeru autentičnosti dolaznih zahtjeva'+ chat_integration_slack_excerpt_length: 'Slack length of excerpt'+ chat_integration_slack_icon_url: 'Ikona za objavljivanje u slacku sa (podrazumevano na logotip foruma)'+ chat_integration_slack_outbound_webhook_url: "Za korištenje Slackovog 'Incoming Webhook' sustava umjesto OAuth API-ja. Nije preporuceno."+ errors:+ chat_integration_slack_api_configs_are_empty: "Morate unijeti ili izlazni webhook URL ili pristupni token"+ chat_integration_telegram_enabled: "Omogućite provajdera integracije čavrljanja Telegramom"+ chat_integration_telegram_access_token: "Pristupni bot vašeg bot-a iz bot-oca Telegrama"+ chat_integration_mattermost_incoming_webhook_token: 'Token verifikacije koji se koristi za provjeru autentičnosti dolaznih zahtjeva'+ chat_integration:+ all_categories: "(sve kategorije)"+ provider:+ flowdock:+ message_title: "zadnja objava"diff --git a/plugins/discourse-chat-integration/config/locales/server.ca.yml b/plugins/discourse-chat-integration/config/locales/server.ca.ymlnew file mode 100644index 00000000000..35ae228ab3a--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.ca.yml@@ -0,0 +1,172 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ca:+ site_settings:+ chat_integration_enabled: 'Habilita el connector d''integració de xat de Discourse'+ chat_integration_discourse_username: 'Nom d''usuari per a identificar-se quan s''obté contingut. '+ chat_integration_delay_seconds: 'Nombre de segons que cal esperar després de la creació de publicacions abans d''enviar les notificacions de xat'+ chat_integration_slack_username: "Nom d'usuari de bot per a publicar en Slack"+ chat_integration_slack_enabled: 'Habilita el proveïdor d''integració de xats de Slack'+ chat_integration_slack_access_token: 'Token d''accés OAuth per a autenticar-se amb Slack'+ chat_integration_slack_incoming_webhook_token: 'El testimoni de verificació que s''utilitza per a autenticar les sol·licituds entrants'+ chat_integration_slack_excerpt_length: 'Longitud de l''extracte de publicació de Slack'+ chat_integration_slack_icon_url: 'Icona per a publicar en Slack (per defecte és el logotip del fòrum)'+ chat_integration_slack_outbound_webhook_url: "Per a utilitzar el sistema 'Incoming Webhook' de Slack en comptes de l'API OAuth. No es recomana."+ errors:+ chat_integration_slack_api_configs_are_empty: "Heu d'introduir l'URL de webhook de sortida o un testimoni d'accés"+ chat_integration_telegram_enabled: "Habilita el proveïdor d'integració de xat de Telegram"+ chat_integration_telegram_access_token: "El testimoni d'accés del vostre bot des del BotFather de Telegram"+ chat_integration_telegram_excerpt_length: "Longitud de l'extracte de publicació de Telegram"+ chat_integration_telegram_enable_slash_commands: "Permet gestionar les subscripcions de Telegram mitjançant ordres de barra inclinada"+ chat_integration_discord_enabled: "Habilita el proveïdor d'integració de xat de Discord"+ chat_integration_discord_message_content: "El missatge que s'inclou sobre el resum en enviar una notificació a Discord"+ chat_integration_discord_excerpt_length: "Longitud de l'extracte de publicació de Discord"+ chat_integration_mattermost_enabled: "Habiliteu el proveïdor de la integració de xat de Mattermost"+ chat_integration_mattermost_webhook_url: 'URL per al webhook de Mattermost'+ chat_integration_mattermost_incoming_webhook_token: 'El testimoni de verificació que s''utilitza per a autenticar les sol·licituds entrants'+ chat_integration_mattermost_icon_url: "Icona per a publicacions en Mattermost (per defecte el logo del fòrum)"+ chat_integration_mattermost_excerpt_length: "Longitud de l'extracte de publicació de Mattermost"+ chat_integration_matrix_enabled: "Habilita el proveïdor d'integració de xat de Matrix"+ chat_integration_matrix_homeserver: "Servidor domèstic al qual es connecta. Assegureu-vos d'incloure-hi el protocol."+ chat_integration_matrix_access_token: "Testimoni d'accés per al compte Matrix del bot"+ chat_integration_matrix_excerpt_length: "Longitud de l'extracte de publicació de Matrix"+ chat_integration_matrix_use_notice: "Utilitza un avís en comptes d'un missatge simple"+ chat_integration_zulip_enabled: "Habiliteu el proveïdor de la integració de xat de Zulip"+ chat_integration_zulip_server: "L'URL base del vostre servidor Zulip. Assegureu-vos d'incloure-hi http(s): //"+ chat_integration_zulip_bot_email_address: "L'adreça de correu electrònic associada al vostre bot Zulip"+ chat_integration_zulip_bot_api_key: "La clau d'API per al vostre bot Zulip"+ chat_integration_zulip_excerpt_length: "Longitud de l'extracte de publicació de Zulip"+ chat_integration_rocketchat_enabled: "Activa el proveïdor d'integració de xat de Rocket Chat"+ chat_integration_rocketchat_webhook_url: "L'URL per al webhook d'integració de Rocket Chat"+ chat_integration_rocketchat_excerpt_length: "Longitud de l'extracte de publicació de Rocket Chat"+ chat_integration_gitter_enabled: "Habilita el proveïdor d'integració de xat de Gitter"+ chat_integration_flowdock_enabled: "Habiliteu el proveïdor de la integració de xat de Flowdock"+ chat_integration_flowdock_excerpt_length: "Longitud de l'extracte de publicació de Flowdock"+ chat_integration:+ all_categories: "(totes les categories)"+ deleted_category: "(categoria suprimida)"+ deleted_group: "(grup suprimit)"+ group_mention_template: "mencions de: @ %{name}"+ group_message_template: "missatges a: @%{name}"+ provider:+ slack:+ status:+ header: |+ *Regles per a aquest canal*+ (si hi ha diverses regles que coincideixen amb una publicació, s'executa la regla prioritària)+ no_rules: "No hi ha cap regla establerta per a aquest canal. Executeu `/discourse help` per a obtenir instruccions."+ rule_string: "*%{index})* *%{filter}* publicacions en *%{category}*"+ rule_string_tags_suffix: "amb les etiquetes: *%{tags}*"+ parse_error: "Ho sento, no ho he entès. Executeu `/discourse help` per a obtenir instruccions."+ create:+ created: "Regla creada amb èxit"+ updated: "Regla actualitzada amb èxit"+ error: "Ho sentim. Hi ha hagut un error en crear-se la regla."+ delete:+ success: "Regla suprimida amb èxit"+ error: "Ho sentim, s'ha produït un error en esborrar aquesta regla. Executeu `/discourse status` per a veure una llista de regles."+ not_found:+ tag: "No es pot trobar l'etiqueta *%{name}*."+ category: "No es pot trobar la categoria *%{name}*. Categories disponibles: *%{list}*"+ transcript:+ error: "Alguna cosa ha fallat en construir la transcripció, disculpeu!"+ post_to_discourse: "Feu clic aquí per a esbossar una publicació en Discourse amb una transcripció"+ api_required: "Ho sentim. Aquesta integració no s'ha configurat per a donar suport a la publicació de transcripcions."+ view_on_slack: "Mostra en %{name} en Slack"+ first_message_pretext: "començant %{n} missatges enrere:"+ last_message_pretext: "i acabant fa %{n} missatges:"+ posted_in: "publicat en %{name}"+ change_first_message: "Canvia el primer missatge..."+ change_last_message: "Canvia el darrer missatge..."+ loading: "Carregant la transcripció..."+ telegram:+ unknown_chat: "Aquest xat no està configurat en %{site_title}. Demaneu a un administrador que afegeixi un canal amb l'ID de xat %{chat_id}."+ known_chat: "Aquest xat està configurat en %{site_title}. Configureu-lo en el tauler d'administració. (ID de xat: %{chat_id})"+ message: |-+ <b>%{user}</b> ha publicat en <a href="%{post_url}">%{title}</a>++ <pre> %{post_excerpt} </pre>+ status:+ header: |+ <b>Regles per a aquest canal</b>+ (si hi ha diverses regles que coincideixen amb una publicació, s'executa la regla prioritària)+ no_rules: "No hi ha cap regla establerta per a aquest canal. Executeu <code>/help</code> per a obtenir instruccions."+ rule_string: "<b>%{index})</b> <b>%{filter}</b> publicacions en <b>%{category}</b>"+ rule_string_tags_suffix: "amb etiquetes: <b>%{tags}</b>"+ parse_error: "Ho sento, no ho he entès. Executeu <code>/help</code> per a obtenir instruccions."+ create:+ created: "Regla creada amb èxit"+ updated: "Regla actualitzada amb èxit"+ error: "Ho sentim. Hi ha hagut un error en crear-se la regla."+ delete:+ success: "Regla suprimida amb èxit"+ error: "Ho sentim, s'ha produït un error en esborrar aquesta regla. Executa <code>/status</code> per a una llista de regles."+ not_found:+ tag: "No es pot trobar l'etiqueta <b>%{name}</b>."+ category: "No es pot trobar la categoria <b>%{name}</b>. Categories disponibles: <b>%{list}</b>"+ help: |+ <b>Regla nova:</b> <code>/discourse [watch|follow|mute] [category] [tag:name]</code>+ (cal especificar un tipus de regla i almenys una categoria o etiqueta)+ - <b>watch</b> - notificar aquest canal per a respostes i temes nous+ - <b>follow</b> - notificar a aquest canal per a temes nous+ - <b>mute</b> - blocar notificacions a aquest canal++ <b>Eliminar regla:</b> <code>/discourse remove [número de regla]</code>+ (<code>[número de regla]</code> es pot trobar executant <code>/discourse status</code>)++ <b>Llista de regles:</b> <code>/discourse status</code>++ <b>Ajuda:</b> <code>/discourse help</code>+ hipchat:+ message: <b>%{user}</b> publicat en <a href="%{post_url}">%{title}</a>+ mattermost:+ status:+ header: |+ *Regles per a aquest canal*+ (si hi ha diverses regles que coincideixen amb una publicació, s'executa la regla prioritària)+ no_rules: "No hi ha cap regla establerta per a aquest canal. Executeu `/discourse help` per a obtenir instruccions."+ rule_string: "*%{index})* *%{filter}* publicacions en *%{category}*"+ rule_string_tags_suffix: "amb les etiquetes: *%{tags}*"+ parse_error: "Ho sento, no ho he entès. Executeu `/discourse help` per a obtenir instruccions."+ create:+ created: "Regla creada amb èxit"+ updated: "Regla actualitzada amb èxit"+ error: "Ho sentim. Hi ha hagut un error en crear-se la regla."+ delete:+ success: "Regla suprimida amb èxit"+ error: "Ho sentim, s'ha produït un error en esborrar aquesta regla. Executeu `/discourse status` per a veure una llista de regles."+ not_found:+ tag: "No es pot trobar l'etiqueta *%{name}*."+ category: "No es pot trobar la categoria *%{name}*. Categories disponibles: *%{list}*"+ help: |+ *Regla nova:* `/discourse [watch|follow|mute] [category] [tag:name]`+ (cal especificar un tipus de regla i almenys una categoria o etiqueta)+ - *watch* - notificar aquest canal per a respostes i temes nous+ - *follow* - notificar a aquest canal per a temes nous+ - *mute* - blocar notificacions a aquest canal++ *Eliminar regla:* `/discourse remove [número de regla]`+ (`[número de regla]` es pot trobar executant `/discourse status`)++ *Llista de regles:* `/discourse status`++ *Ajuda:* `/discourse help`+ matrix:+ text_message: "%{user} publicat en %{title} - %{post_url}"+ formatted_message: |+ <b>%{user}</b> ha publicat en <b><a href='%{post_url}'>%{title}</a></b>+ <blockquote>+ %{excerpt}+ </blockquote>+ zulip:+ message: |+ **%{user}** publicat en **[%{title}](%{post_url})**+ ~~~citació+ %{excerpt}+ ~~~+ flowdock:+ message_title: "publicat"diff --git a/plugins/discourse-chat-integration/config/locales/server.cs.yml b/plugins/discourse-chat-integration/config/locales/server.cs.ymlnew file mode 100644index 00000000000..6aeabf06a4b--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.cs.yml@@ -0,0 +1,22 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++cs:+ chat_integration:+ all_categories: "(všechny kategorie)"+ topic_tag_changed:+ added_and_removed: "Přidáno %{added} a odebráno %{removed}"+ added: "Přidáno %{added}"+ removed: "Odebráno %{removed}"+ provider:+ slack:+ messaging:+ topic_tag_changed:+ added_and_removed: "Přidáno %{added} a odebráno %{removed}"+ added: "Přidáno %{added}"+ removed: "Odebráno %{removed}"+ flowdock:+ message_title: "zveřejněno"diff --git a/plugins/discourse-chat-integration/config/locales/server.da.yml b/plugins/discourse-chat-integration/config/locales/server.da.ymlnew file mode 100644index 00000000000..2ea68d34273--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.da.yml@@ -0,0 +1,24 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++da:+ chat_integration:+ all_categories: "(alle kategorier)"+ group_message_template: "meddelelser til: @%{name}"+ topic_tag_changed:+ added: "Tilføjet %{added}"+ provider:+ slack:+ transcript:+ modal_title: "Opret afskrift"+ modal_description: "Alle meddelelser i tråden samles i et enkelt forumindlæg. Du får mulighed for at redigere afskriften, inden du sender det."+ transcript_ready: "Afskrift klar"+ continue_on_discourse: "Fortsæt på Forum"+ messaging:+ topic_tag_changed:+ added: "Tilføjet %{added}"+ flowdock:+ message_title: "sidste indlæg"diff --git a/plugins/discourse-chat-integration/config/locales/server.de.yml b/plugins/discourse-chat-integration/config/locales/server.de.ymlnew file mode 100644index 00000000000..003b35c18a2--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.de.yml@@ -0,0 +1,237 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++de:+ site_settings:+ chat_integration_enabled: 'Aktiviere das discourse-chat-integration-Plug-in'+ chat_integration_discourse_username: 'Benutzername des Benutzers, der verwendet wird, um Inhalte abzurufen.'+ chat_integration_delay_seconds: 'Anzahl der Sekunden, die nach der Erstellung des Beitrags gewartet wird, bevor Chat-Benachrichtigungen gesendet werden'+ chat_integration_slack_username: "Bot-Benutzername zum Posten auf Slack"+ chat_integration_slack_enabled: 'Aktiviere den Chat-Integration-Provider für Slack'+ chat_integration_slack_access_token: 'OAuth-Zugriffstoken zur Authentifizierung mit Slack'+ chat_integration_slack_incoming_webhook_token: 'Das Verifizierungstoken, das zur Authentifizierung eingehender Anfragen verwendet wird'+ chat_integration_slack_excerpt_length: 'Auszugslänge für Slack-Beiträge'+ chat_integration_slack_icon_url: 'Icon, mit dem auf Slack geschrieben wird (standardmäßig das Forenlogo)'+ chat_integration_slack_outbound_webhook_url: "Zur Verwendung des „Eingehender Webhook“-Systems von Slack statt der OAuth-API. Nicht empfohlen."+ chat_integration_slack_transcript_quote: Slack-Transkript in [quote]-Tags einbetten?+ errors:+ chat_integration_slack_api_configs_are_empty: "Du musst entweder eine ausgehende Webhook-URL eingeben oder ein Zugriffstoken"+ chat_integration_telegram_enabled: "Aktiviere den Chat-Integration-Provider für Telegram"+ chat_integration_telegram_access_token: "Das Zugriffstoken deines Bots vom Telegram @BotFather"+ chat_integration_telegram_excerpt_length: "Auszugslänge für Telegram-Beiträge"+ chat_integration_telegram_enable_slash_commands: "Erlaube die Verwaltung von Telegram-Abos über „Slash-Befehle“"+ chat_integration_discord_enabled: "Aktiviere den Chat-Integration-Provider für Discord"+ chat_integration_discord_message_content: "Die Nachricht, die beim Versenden einer Benachrichtigung an Discord oberhalb der Zusammenfassung eingefügt wird"+ chat_integration_discord_excerpt_length: "Auszugslänge für Discord-Beiträge"+ chat_integration_guilded_enabled: "Aktiviere den Chat-Integration-Provider für Guilded"+ chat_integration_guilded_excerpt_length: "Auszugslänge für Guilded-Beiträge"+ chat_integration_mattermost_enabled: "Aktiviere den Chat-Integration-Provider für Mattermost"+ chat_integration_mattermost_webhook_url: 'URL für den Mattermost-Webhook'+ chat_integration_mattermost_incoming_webhook_token: 'Das Verifizierungstoken, das zur Authentifizierung eingehender Anfragen verwendet wird'+ chat_integration_mattermost_icon_url: "Icons für Beiträge an Mattermost (standardmäßig das Forenlogo)"+ chat_integration_mattermost_excerpt_length: "Auszugslänge für Mattermost-Beiträge"+ chat_integration_matrix_enabled: "Aktiviere den Chat-Integration-Provider für Matrix"+ chat_integration_matrix_homeserver: "Homeserver, mit dem du dich verbinden willst. Achte darauf, dass du das Protokoll angibst"+ chat_integration_matrix_access_token: "Zugriffstoken für das Matrix-Konto des Bots"+ chat_integration_matrix_excerpt_length: "Auszugslänge für Matrix-Beiträge."+ chat_integration_matrix_use_notice: "Verwende Notiz statt einfacher Nachricht"+ chat_integration_zulip_enabled: "Aktiviere den Chat-Integration-Provider für Zulip"+ chat_integration_zulip_server: "Die Basis-URL für deinen Zulip-Server. Achte darauf, dass sie http(s):// enthält."+ chat_integration_zulip_bot_email_address: "Die E-Mail-Adresse, die mit deinem Zulip-Bot verknüpft ist"+ chat_integration_zulip_bot_api_key: "Der API-Schlüssel für deinen Zulip-Bot"+ chat_integration_zulip_excerpt_length: "Auszugslänge für Zulip-Beiträge"+ chat_integration_rocketchat_enabled: "Aktiviere den Chat-Integration-Provider für Rocket Chat"+ chat_integration_rocketchat_webhook_url: "Die URL für den Webhook der „Rocket Chat“-Integration"+ chat_integration_rocketchat_excerpt_length: "Auszugslänge für „Rocket Chat“-Beiträge"+ chat_integration_gitter_enabled: "Aktiviere den Chat-Integration-Provider für Gitter"+ chat_integration_flowdock_enabled: "Aktiviere den Chat-Integration-Provider für Flowdock"+ chat_integration_flowdock_excerpt_length: "Auszugslänge für Flowdock-Beiträge"+ chat_integration_groupme_enabled: "Aktiviere den Chat-Integration-Provider für Groupme"+ chat_integration_groupme_excerpt_length: "Auszugslänge für Groupme-Beiträge"+ chat_integration_groupme_bot_ids: "*erforderlich* Bot-IDs getrennt durch „,“ (Komma), falls mehrere vorhanden sind"+ chat_integration_groupme_instance_names: " *erforderlich* Name des GroupMe-Chats getrennt durch „,“ (Komma), falls mehrere vorhanden sind (gleiche Reihenfolge wie Bot-IDs)"+ chat_integration_teams_enabled: "Aktiviere den Chat-Integration-Provider für Microsoft Teams"+ chat_integration_teams_excerpt_length: "Auszugslänge für „Microsoft Teams“-Beiträge"+ chat_integration_powerautomate_enabled: "„Microsoft Power Automate“-Integrationsanbieter aktivieren"+ chat_integration_powerautomate_excerpt_length: "Auszugslänge für „Microsoft Power Automate“-Beiträge"+ chat_integration_webex_enabled: "Aktiviere den Chat-Integration-Provider für Webex Teams"+ chat_integration_webex_excerpt_length: "Auszugslänge für „Webex Teams“-Beiträge"+ chat_integration_google_enabled: "Aktiviere den Chat-Integration-Provider für Google Chat"+ chat_integration_google_excerpt_length: "Auszugslänge für „Google Chat“-Beiträge"+ dashboard:+ problem:+ channel_errors: "Einige Chat-Integration-Kanäle weisen Fehler auf. Besuche <a href='%{base_path}/admin/plugins/chat-integration'>den Bereich zur Chat-Integration</a>, um mehr darüber herauszufinden."+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Slack-Nachricht senden+ send_chat_integration_message:+ title: Chat-Integration-Nachricht senden+ chat_integration:+ all_categories: "(alle Kategorien)"+ deleted_category: "(Kategorie gelöscht)"+ deleted_group: "(Gruppe gelöscht)"+ group_mention_template: "Erwähnungen von: @%{name}"+ group_message_template: "Nachrichten an: @%{name}"+ topic_tag_changed:+ added_and_removed: "%{added} hinzugefügt und %{removed} entfernt"+ added: "%{added} hinzugefügt"+ removed: "%{removed} entfernt"+ provider:+ slack:+ status:+ header: |+ *Regeln für diesen Kanal*+ (Wenn mehrere Regeln für einen Beitrag passen, wird die oberste ausgeführt.)+ no_rules: "Es sind keine Regeln für diesen Kanal eingerichtet. Führe `/discourse help` aus für weitere Anweisungen."+ rule_string: "*%{index})* *%{filter}* Beiträge in *%{category}*"+ rule_string_tags_suffix: " mit Schlagwörtern: *%{tags}*"+ parse_error: "Entschuldige, das habe ich nicht verstanden. Führe `/discourse help` aus für weitere Anweisungen."+ create:+ created: "Regel erfolgreich erstellt"+ updated: "Regel erfolgreich aktualisiert"+ error: "Entschuldige, ein Fehler ist beim Erstellen der Regel aufgetreten"+ delete:+ success: "Regel erfolgreich gelöscht"+ error: "Leider ist beim Löschen dieser Regel ein Fehler aufgetreten. Führe `/discourse status` aus, um eine Liste der Regeln einzusehen."+ not_found:+ tag: "Das Schlagwort *%{name}* kann nicht gefunden werden."+ category: "Die Kategorie *%{name}* kann nicht gefunden werden. Verfügbare Kategorien: *%{list}*"+ help: |+ *Neue Regel:* `/discourse [thread|watch|follow|mute] [category] [tag:name]`+ (Du musst einen Regeltyp und mindestens eine Kategorie oder ein Schlagwort angeben.)+ - *thread* – benachrichtige diesen Kanal über neue Themen und Antworten auf Threads, falls möglich+ - *watch* – benachrichtige diesen Kanal über neue Themen und neue Antworten+ - *follow* – benachrichtige diesen Kanal über neue Themen+ - *mute* – Benachrichtigungen für diesen Kanal blockieren++ *Regel entfernen:* `/discourse remove [rule number]`+ (`[rule number]` kann durch Ausführen von `/discourse status` eingesehen werden.)++ *Regeln auflisten:* `/discourse status`++ *[Experimentell] Beitragsabschrift:* `/discourse post [n]`+ Erstelle einen Themenentwurf in Discourse, der die letzten `n` Beiträge in diesem Kanal enthält.++ *Hilfe:* `/discourse help`+ transcript:+ modal_title: "Abschrift erstellen"+ modal_description: "Alle Nachrichten in dem Thread werden in einem einzigen Forenbeitrag zusammengefasst. Du hast die Möglichkeit, die Abschrift vor dem Veröffentlichen zu bearbeiten."+ transcript_ready: "Abschrift bereit"+ continue_on_discourse: "Weiter im Forum"+ error: "Entschuldige, beim Erstellen der Abschrift ist etwas schiefgelaufen!"+ post_to_discourse: "Klicke hier, um auf Discourse einen Beitragsentwurf mit einer Abschrift zu erstellen"+ api_required: "Entschuldige, diese Integration ist nicht dafür eingerichtet, Abschriften zu veröffentlichen."+ view_on_slack: "In %{name} auf Slack anzeigen"+ first_message_pretext: "beginnt vor %{n} Nachrichten:"+ last_message_pretext: "und endet vor %{n} Nachrichten:"+ posted_in: "geschrieben in %{name}"+ change_first_message: "Erste Nachricht ändern …"+ change_last_message: "Letzte Nachricht ändern …"+ loading: "Abschrift wird geladen …"+ error_users: "Fehler: Benutzer können nicht von Slack abgerufen werden"+ error_history: "Fehler: Kanalverlauf kann nicht von Slack abgerufen werden"+ error_ts: "Fehler: Angeforderte Nachricht kann nicht von Slack abgerufen werden"+ messaging:+ topic_tag_changed:+ added_and_removed: "%{added} hinzugefügt und %{removed} entfernt"+ added: "%{added} hinzugefügt"+ removed: "%{removed} entfernt"+ telegram:+ unknown_chat: "Dieser Chat ist auf %{site_title} nicht eingerichtet. Bitte einen Administrator, einen Kanal mit der „Chat-ID“ %{chat_id} hinzuzufügen."+ known_chat: "Dieser Chat ist auf %{site_title} eingerichtet. Konfiguriere ihn im Administrationsbereich. (Chat-ID: %{chat_id})"+ message: |-+ <b>%{user}</b> hat geschrieben in <a href="%{post_url}">%{title}</a>++ <pre>%{post_excerpt}</pre>+ status:+ header: |+ <b>Regeln für diesen Kanal</b>+ (Wenn mehrere Regeln für einen Beitrag passen, wird die oberste ausgeführt.)+ no_rules: "Es sind keine Regeln für diesen Kanal eingerichtet. Führe <code>/help</code> aus für Anweisungen."+ rule_string: "<b>%{index})</b> <b>%{filter}</b> Beiträge in <b>%{category}</b>"+ rule_string_tags_suffix: " mit den Schlagwörtern: <b>%{tags}</b>"+ parse_error: "Entschuldige, das habe ich nicht verstehen. Führe <code>/help</code> aus für Anweisungen."+ create:+ created: "Regel erfolgreich erstellt"+ updated: "Regel erfolgreich aktualisiert"+ error: "Entschuldige, ein Fehler ist beim Erstellen dieser Regel aufgetreten."+ delete:+ success: "Regel erfolgreich gelöscht"+ error: "Entschuldige, ein Fehler ist beim Löschen dieser Regel aufgetreten. Führe <code>/status</code> aus für eine Liste der Regeln."+ not_found:+ tag: "Das Schlagwort <b>%{name}</b> kann nicht gefunden werden."+ category: "Die Kategorie <b>%{name}</b> kann nicht gefunden werden. Verfügbare Kategorien: <b>%{list}</b>"+ help: |+ <b>Neue Regel:</b> <code>/[watch|follow|mute] [category] [tag:name]</code>+ (Du musst einen Regeltyp und mindestens eine Kategorie oder ein Schlagwort angeben.)+ - <b>watch</b> – benachrichtige diesen Kanal über neue Themen und neue Antworten+ - <b>follow</b> – benachrichtige diesen Kanal über neue Themen+ - <b>mute</b> – Benachrichtigungen für diesen Kanal blockieren++ <b>Regel entfernen:</b> <code>/remove [rule number]</code>+ (<code>[rule number]</code> kann durch Ausführen von <code>/status</code> eingesehen werden.)++ <b>Regeln auflisten:</b> <code>/status</code>++ <b>Hilfe:</b> <code>/help</code>+ hipchat:+ message: <b>%{user}</b> hat geschrieben in <a href="%{post_url}">%{title}</a>+ mattermost:+ status:+ header: |+ *Regeln für diesen Kanal*+ (Wenn mehrere Regeln für einen Beitrag passen, wird die oberste ausgeführt.)+ no_rules: "Es sind keine Regeln für diesen Kanal konfiguriert. Führe `/discourse help` aus für Anweisungen."+ rule_string: "*%{index})* *%{filter}* Beiträge in *%{category}*"+ rule_string_tags_suffix: " mit den Schlagwörtern: *%{tags}*"+ parse_error: "Entschuldige, das habe ich nicht verstanden. Führe `/discourse help` aus für Anweisungen."+ create:+ created: "Regel erfolgreich erstellt"+ updated: "Regel erfolgreich aktualisiert"+ error: "Entschuldige, beim Erstellen dieser Regel ist ein Fehler aufgetreten."+ delete:+ success: "Regel erfolgreich gelöscht"+ error: "Leider ist beim Löschen dieser Regel ein Fehler aufgetreten. Führe `/discourse status` aus, um eine Liste der Regeln einzusehen."+ not_found:+ tag: "Das Schlagwort *%{name}* kann nicht gefunden werden."+ category: "Die Kategorie *%{name}* kann nicht gefunden werden. Verfügbare Kategorien: *%{list}*"+ help: |+ *Neue Regel:* `/discourse [watch|follow|mute] [category] [tag:name]`+ (Du musst einen Regeltyp und mindestens eine Kategorie oder ein Schlagwort angeben.)+ - *watch* – benachrichtige diesen Kanal über neue Themen und neue Antworten+ - *follow* – benachrichtige diesen Kanal über neue Themen+ - *mute* – Benachrichtigungen für diesen Kanal blockieren++ *Regel entfernen:* `/discourse remove [rule number]`+ (`[rule number]` kann durch Ausführen von `/discourse status` eingesehen werden.)++ *Regeln auflisten:* `/discourse status`++ *Hilfe:* `/discourse help`+ matrix:+ text_message: "%{user} hat geschrieben in %{title} – %{post_url}"+ formatted_message: |+ <b>%{user}</b> hat geschrieben in <b><a href='%{post_url}'>%{title}</a></b>+ <blockquote>+ %{excerpt}+ </blockquote>+ zulip:+ message: |+ **%{user}** hat geschrieben in **[%{title}](%{post_url})**+ ~~~quote+ %{excerpt}+ ~~~+ flowdock:+ message_title: "hat geschrieben"+ google:+ new_post: "Neuer Beitrag auf %{site_title}"+ new_topic: "Neues Thema auf %{site_title}"+ author: "von @%{username}"+ link: "Auf %{site_title} anzeigen"+ groupme:+ errors:+ instance_names_issue: "Instanznamen falsch formatiert oder nicht angegeben"diff --git a/plugins/discourse-chat-integration/config/locales/server.el.yml b/plugins/discourse-chat-integration/config/locales/server.el.ymlnew file mode 100644index 00000000000..0992e71b8f5--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.el.yml@@ -0,0 +1,22 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++el:+ chat_integration:+ all_categories: "(όλες οι κατηγορίες)"+ topic_tag_changed:+ added_and_removed: "Προστέθηκε %{added} και αφαιρέθηκε %{removed}"+ added: "Προστέθηκε %{added}"+ removed: "Αφαιρέθηκε %{removed}"+ provider:+ slack:+ messaging:+ topic_tag_changed:+ added_and_removed: "Προστέθηκε %{added} και αφαιρέθηκε %{removed}"+ added: "Προστέθηκε %{added}"+ removed: "Αφαιρέθηκε %{removed}"+ flowdock:+ message_title: "αναρτήθηκε"diff --git a/plugins/discourse-chat-integration/config/locales/server.en.yml b/plugins/discourse-chat-integration/config/locales/server.en.ymlnew file mode 100644index 00000000000..157810ee291--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.en.yml@@ -0,0 +1,336 @@+en:+ site_settings:+ chat_integration_enabled: 'Enable the discourse-chat-integration plugin'+ chat_integration_discourse_username: 'Username of user to act as when fetching content.'+ chat_integration_delay_seconds: 'Number of seconds to wait after post creation before sending chat notitifications'++ #######################################+ ########## SLACK SETTINGS #############+ #######################################+ chat_integration_slack_username: "Bot's username to post to slack with"+ chat_integration_slack_enabled: 'Enable the slack chat-integration provider'+ chat_integration_slack_access_token: 'OAuth Access Token for authenticating with Slack'+ chat_integration_slack_incoming_webhook_token: 'The verification token used to authenticate incoming requests'+ chat_integration_slack_excerpt_length: 'Slack post excerpt length'+ chat_integration_slack_icon_url: 'Icon to post to slack with (defaults to forum logo)'+ chat_integration_slack_outbound_webhook_url: "For using Slack's 'Incoming Webhook' system instead of of the OAuth API. Not recommended."+ chat_integration_slack_transcript_quote: Wrap slack transcript in [quote] tags?++ errors:+ chat_integration_slack_api_configs_are_empty: "You must enter either an outbound webhook URL, or an access token"++ #######################################+ ######### TELEGRAM SETTINGS ###########+ #######################################+ chat_integration_telegram_enabled: "Enable the Telegram chat-integration provider"+ chat_integration_telegram_access_token: "Your bot's access token from the Telegram botfather"+ chat_integration_telegram_excerpt_length: "Telegram post excerpt length"+ chat_integration_telegram_enable_slash_commands: "Allow telegram subscriptions to be managed using 'slash commands'"++ #######################################+ ########## DISCORD SETTINGS ###########+ #######################################+ chat_integration_discord_enabled: "Enable the Discord chat-integration provider"+ chat_integration_discord_message_content: "The message to include above the summary when sending a notification to Discord"+ chat_integration_discord_excerpt_length: "Discord post excerpt length"++ #######################################+ ########## GUILDED SETTINGS ###########+ #######################################+ chat_integration_guilded_enabled: "Enable the Guilded chat-integration provider"+ chat_integration_guilded_excerpt_length: "Guilded post excerpt length"++ #######################################+ ######## MATTERMOST SETTINGS ##########+ #######################################+ chat_integration_mattermost_enabled: "Enable the Mattermost chat-integration provider"+ chat_integration_mattermost_webhook_url: 'URL for the Mattermost webhook'+ chat_integration_mattermost_incoming_webhook_token: 'The verification token used to authenticate incoming requests'+ chat_integration_mattermost_icon_url: "Icon for posts to Mattermost (defaults to forum logo)"+ chat_integration_mattermost_excerpt_length: "Mattermost post excerpt length"++ #######################################+ ############ MATRIX SETTINGS ##########+ #######################################+ chat_integration_matrix_enabled: "Enable the Matrix chat integration provider"+ chat_integration_matrix_homeserver: "Homeserver to connect to. Make sure to include the protocol"+ chat_integration_matrix_access_token: "Access token for the bot's Matrix account"+ chat_integration_matrix_excerpt_length: "Matrix post excerpt length"+ chat_integration_matrix_use_notice: "Use notice instead of plain message"++ #######################################+ ########### ZULIP SETTINGS ############+ #######################################+ chat_integration_zulip_enabled: "Enable the Zulip chat integration provider"+ chat_integration_zulip_server: "The base URL for your Zulip server. Make sure to include http(s)://"+ chat_integration_zulip_bot_email_address: "The email address associated with your Zulip bot"+ chat_integration_zulip_bot_api_key: "The API key for your Zulip bot"+ chat_integration_zulip_excerpt_length: "Zulip post excerpt length"++ #######################################+ ###### ROCKET CHAT SETTINGS ###########+ #######################################+ chat_integration_rocketchat_enabled: "Enable the Rocket Chat chat integration provider"+ chat_integration_rocketchat_webhook_url: "The URL for the Rocket Chat integration webhook"+ chat_integration_rocketchat_excerpt_length: "Rocket Chat post excerpt length"++ #######################################+ ############ GITTER SETTINGS ##########+ #######################################+ chat_integration_gitter_enabled: "Enable the Gitter chat integration provider"++ #######################################+ ########## FLOWDOCK SETTINGS ##########+ #######################################+ chat_integration_flowdock_enabled: "Enable the Flowdock chat integration provider"+ chat_integration_flowdock_excerpt_length: "Flowdock post excerpt length"++ #######################################+ ########## GROUPME SETTINGS ##########+ #######################################+ chat_integration_groupme_enabled: "Enable the Groupme chat integration provider"+ chat_integration_groupme_excerpt_length: "Groupme post excerpt length"+ chat_integration_groupme_bot_ids: "*required* Bot IDs, seperated by ',' if there are multiple"+ chat_integration_groupme_instance_names: " *required* Name of the GroupMe chat, seperated by ',' if there are multiple (same order as Bot IDs)"++ ###########################################+ ######## MICROSOFT TEAMS SETTINGS #########+ ###########################################+ chat_integration_teams_enabled: "Enable the Microsoft Teams chat integration provider"+ chat_integration_teams_excerpt_length: "Microsoft Team post excerpt length"++ ####################################################+ ######## MICROSOFT POWER AUTOMATE SETTINGS #########+ ####################################################+ chat_integration_powerautomate_enabled: "Enable the Microsoft Power Automate integration provider"+ chat_integration_powerautomate_excerpt_length: "Microsoft Power Automate post excerpt length"++ ###########################################+ ######## WEBEX TEAMS SETTINGS #########+ ###########################################+ chat_integration_webex_enabled: "Enable the Webex Teams chat integration provider"+ chat_integration_webex_excerpt_length: "Webex Team post excerpt length"++ ###########################################+ ######## GOOGLE SETTINGS #########+ ###########################################+ chat_integration_google_enabled: "Enable the 'Google Chat' chat integration provider"+ chat_integration_google_excerpt_length: "Google Chat post excerpt length"++ dashboard:+ problem:+ channel_errors: "Some chat integration channels have errors. Visit <a href='%{base_path}/admin/plugins/chat-integration'>the chat integration section</a> to find out more."++ discourse_automation:+ scriptables:+ send_slack_message:+ title: Send Slack message+ send_chat_integration_message:+ title: Send Chat-Integration message+ chat_integration:++ all_categories: "(all categories)"+ deleted_category: "(deleted category)"+ deleted_group: "(deleted group)"++ group_mention_template: "mentions of: @%{name}"+ group_message_template: "messages to: @%{name}"+++ topic_tag_changed:+ added_and_removed: "Added %{added} and removed %{removed}"+ added: "Added %{added}"+ removed: "Removed %{removed}"++ provider:++ #######################################+ ########## SLACK STRINGS ##############+ #######################################+ slack:+ status:+ header: |+ *Rules for this channel*+ (if multiple rules match a post, the topmost rule is executed)+ no_rules: "There are no rules set up for this channel. Run `/discourse help` for instructions."+ rule_string: "*%{index})* *%{filter}* posts in *%{category}*"+ rule_string_tags_suffix: " with tags: *%{tags}*"+ parse_error: "Sorry, I didn't understand that. Run `/discourse help` for instructions."+ create:+ created: "Rule created successfully"+ updated: "Rule updated successfully"+ error: "Sorry, an error occured while creating that rule."+ delete:+ success: "Rule deleted successfully"+ error: "Sorry, an error occured while deleting that rule. Run `/discourse status` for a list of rules."+ not_found:+ tag: "The *%{name}* tag cannot be found."+ category: "The *%{name}* category cannot be found. Available categories: *%{list}*"+ help: |+ *New rule:* `/discourse [thread|watch|follow|mute] [category] [tag:name]`+ (you must specify a rule type and at least one category or tag)+ - *thread* – notify this channel for new topics, thread replies if possible+ - *watch* – notify this channel for new topics and new replies+ - *follow* – notify this channel for new topics+ - *mute* – block notifications to this channel++ *Remove rule:* `/discourse remove [rule number]`+ (`[rule number]` can be found by running `/discourse status`)++ *List rules:* `/discourse status`++ *[Experimental] Post transcript:* `/discourse post [n]`+ Create a draft topic on discourse containing the last `n` posts in this channel++ *Help:* `/discourse help`+ transcript:+ modal_title: "Create Transcript"+ modal_description: "All messages in the thread will be assembled into a single forum post. You will be given the opportunity to edit the transcript before posting."+ transcript_ready: "Transcript ready"+ continue_on_discourse: "Continue on Forum"+ error: "Something went wrong when building the transcript, sorry!"+ post_to_discourse: "Click here to draft a post on Discourse with a transcript"+ api_required: "Sorry, this integration isn't setup to support posting transcripts."+ view_on_slack: "View in %{name} on Slack"+ first_message_pretext: "starting %{n} messages ago:"+ last_message_pretext: "and ending %{n} messages ago:"+ posted_in: "posted in %{name}"+ change_first_message: "Change first message..."+ change_last_message: "Change last message..."+ loading: "Loading the transcript..."+ error_users: "Error: unable to fetch users from Slack"+ error_history: "Error: unable to fetch channel history from Slack"+ error_ts: "Error: unable to fetch requested message from Slack"+ messaging:+ topic_tag_changed:+ added_and_removed: "Added %{added} and removed %{removed}"+ added: "Added %{added}"+ removed: "Removed %{removed}"++ #######################################+ ########## TELEGRAM STRINGS ###########+ #######################################+ telegram:+ unknown_chat: "This chat isn't setup on %{site_title}. Ask an administrator to add a channel with 'Chat ID' %{chat_id}."+ known_chat: "This chat is setup on %{site_title}. Configure it in the admin panel. (Chat ID: %{chat_id})"+ message: |-+ <b>%{user}</b> posted in <a href="%{post_url}">%{title}</a>++ <pre>%{post_excerpt}</pre>++ status:+ header: |+ <b>Rules for this channel</b>+ (if multiple rules match a post, the topmost rule is executed)+ no_rules: "There are no rules set up for this channel. Run <code>/help</code> for instructions."+ rule_string: "<b>%{index})</b> <b>%{filter}</b> posts in <b>%{category}</b>"+ rule_string_tags_suffix: " with tags: <b>%{tags}</b>"+ parse_error: "Sorry, I didn't understand that. Run <code>/help</code> for instructions."+ create:+ created: "Rule created successfully"+ updated: "Rule updated successfully"+ error: "Sorry, an error occured while creating that rule."+ delete:+ success: "Rule deleted successfully"+ error: "Sorry, an error occured while deleting that rule. Run <code>/status</code> for a list of rules."+ not_found:+ tag: "The <b>%{name}</b> tag cannot be found."+ category: "The <b>%{name}</b> category cannot be found. Available categories: <b>%{list}</b>"+ help: |+ <b>New rule:</b> <code>/[watch|follow|mute] [category] [tag:name]</code>+ (you must specify a rule type and at least one category or tag)+ - <b>watch</b> – notify this channel for new topics and new replies+ - <b>follow</b> – notify this channel for new topics+ - <b>mute</b> – block notifications to this channel++ <b>Remove rule:</b> <code>/remove [rule number]</code>+ (<code>[rule number]</code> can be found by running <code>/status</code>)++ <b>List rules:</b> <code>/status</code>++ <b>Help:</b> <code>/help</code>++ #######################################+ ########### HIPCHAT STRINGS ###########+ #######################################+ hipchat:+ message: <b>%{user}</b> posted in <a href="%{post_url}">%{title}</a>++ #######################################+ ######## MATTERMOST STRINGS ###########+ #######################################+ mattermost:+ status:+ header: |+ *Rules for this channel*+ (if multiple rules match a post, the topmost rule is executed)+ no_rules: "There are no rules set up for this channel. Run `/discourse help` for instructions."+ rule_string: "*%{index})* *%{filter}* posts in *%{category}*"+ rule_string_tags_suffix: " with tags: *%{tags}*"+ parse_error: "Sorry, I didn't understand that. Run `/discourse help` for instructions."+ create:+ created: "Rule created successfully"+ updated: "Rule updated successfully"+ error: "Sorry, an error occured while creating that rule."+ delete:+ success: "Rule deleted successfully"+ error: "Sorry, an error occured while deleting that rule. Run `/discourse status` for a list of rules."+ not_found:+ tag: "The *%{name}* tag cannot be found."+ category: "The *%{name}* category cannot be found. Available categories: *%{list}*"+ help: |+ *New rule:* `/discourse [watch|follow|mute] [category] [tag:name]`+ (you must specify a rule type and at least one category or tag)+ - *watch* – notify this channel for new topics and new replies+ - *follow* – notify this channel for new topics+ - *mute* – block notifications to this channel++ *Remove rule:* `/discourse remove [rule number]`+ (`[rule number]` can be found by running `/discourse status`)++ *List rules:* `/discourse status`++ *Help:* `/discourse help`++ #######################################+ ############ MATRIX STRINGS ###########+ #######################################+ matrix:+ text_message: "%{user} posted in %{title} - %{post_url}"+ formatted_message: |+ <b>%{user}</b> posted in <b><a href='%{post_url}'>%{title}</a></b>+ <blockquote>+ %{excerpt}+ </blockquote>++ #######################################+ ############# ZULIP STRINGS ###########+ #######################################+ zulip:+ message: |+ **%{user}** posted in **[%{title}](%{post_url})**+ ~~~quote+ %{excerpt}+ ~~~++ #######################################+ ########### FLOWDOCK STRINGS ##########+ #######################################+ flowdock:+ message_title: "posted"++ #######################################+ ############ GOOGLE STRINGS ###########+ #######################################+ google:+ new_post: "New post on %{site_title}"+ new_topic: "New topic on %{site_title}"+ author: "by @%{username}"+ link: "View on %{site_title}"++ #######################################+ ########## GROUPME STRINGS ###########+ #######################################+ groupme:+ errors:+ instance_names_issue: "instance names incorrectly formatted or not provided"diff --git a/plugins/discourse-chat-integration/config/locales/server.en_GB.yml b/plugins/discourse-chat-integration/config/locales/server.en_GB.ymlnew file mode 100644index 00000000000..2d4fa180ec7--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.en_GB.yml@@ -0,0 +1,7 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++en_GB:diff --git a/plugins/discourse-chat-integration/config/locales/server.es.yml b/plugins/discourse-chat-integration/config/locales/server.es.ymlnew file mode 100644index 00000000000..66623e89c55--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.es.yml@@ -0,0 +1,237 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++es:+ site_settings:+ chat_integration_enabled: 'Habilitar el complemento discourse-chat-integration'+ chat_integration_discourse_username: 'Nombre de usuario con el que se actuará cuando se obtenga el contenido.'+ chat_integration_delay_seconds: 'Número de segundos que se deben esperar después de la creación de una publicación antes de empezar a enviar notificaciones de chat.'+ chat_integration_slack_username: "Nombre de usuario del bot que publica en Slack"+ chat_integration_slack_enabled: 'Habilitar el proveedor de integración de chat de Slack'+ chat_integration_slack_access_token: 'Token de acceso de OAuth para autenticación con Slack'+ chat_integration_slack_incoming_webhook_token: 'El token de verificación usado para autenticar solicitudes entrantes'+ chat_integration_slack_excerpt_length: 'Longitud del extracto de publicaciones de Slack'+ chat_integration_slack_icon_url: 'Icono para publicaciones en Slack (por defecto el logo del foro)'+ chat_integration_slack_outbound_webhook_url: "Para usar el sistema de «webhook entrante» de Slack en vez de la API OAuth. No recomendado."+ chat_integration_slack_transcript_quote: '¿Envolver la transcripción de Slack en etiquetas [quote]?'+ errors:+ chat_integration_slack_api_configs_are_empty: "Debes introducir una URL del webhook de salida, o un token de acceso"+ chat_integration_telegram_enabled: "Habilitar el proveedor de integración de chat de Telegram"+ chat_integration_telegram_access_token: "El token de acceso de tu bot del botfather de Telegram"+ chat_integration_telegram_excerpt_length: "Longitud del extracto de publicaciones de Telegram"+ chat_integration_telegram_enable_slash_commands: "Permitir que las suscripciones de Telegram se administren mediante 'comandos de barra'"+ chat_integration_discord_enabled: "Habilitar el proveedor de integración de chat de Discord"+ chat_integration_discord_message_content: "El mensaje que se incluye encima del resumen al enviar una notificación a Discord"+ chat_integration_discord_excerpt_length: "Longitud del extracto de la publicación de Discord"+ chat_integration_guilded_enabled: "Habilitar el proveedor de integración de chat de Guilded"+ chat_integration_guilded_excerpt_length: "Longitud del extracto de la publicación de Guilded"+ chat_integration_mattermost_enabled: "Habilitar el proveedor de integración de chat de Mattermost"+ chat_integration_mattermost_webhook_url: 'URL del webhook de Mattermost'+ chat_integration_mattermost_incoming_webhook_token: 'El token de verificación usando para autentificar solicitudes entrantes'+ chat_integration_mattermost_icon_url: "Icono para publicaciones en Mattermost (por defecto el logo del foro)"+ chat_integration_mattermost_excerpt_length: "Longitud del extracto de publicaciones de Mattermost"+ chat_integration_matrix_enabled: "Habilitar el proveedor de integración de chat de Matrix"+ chat_integration_matrix_homeserver: "Servidor doméstico al que conectarse. Asegúrate de incluir el protocolo"+ chat_integration_matrix_access_token: "Token de acceso para la cuenta de Matrix del bot"+ chat_integration_matrix_excerpt_length: "Longitud del extracto de la publicación de Matrix"+ chat_integration_matrix_use_notice: "Usar aviso en lugar de un mensaje simple"+ chat_integration_zulip_enabled: "Habilitar el proveedor de integración de chat de Zulip"+ chat_integration_zulip_server: "La URL base de tu servidor de Zulip. Asegúrate de incluir http(s)://"+ chat_integration_zulip_bot_email_address: "La dirección de correo electrónico asociada con tu bot de Zulip"+ chat_integration_zulip_bot_api_key: "La clave API para tu bot de Zulip"+ chat_integration_zulip_excerpt_length: "Longitud del extracto de la publicación de Zulip"+ chat_integration_rocketchat_enabled: "Habilitar el proveedor de integración de chat de Rocket Chat"+ chat_integration_rocketchat_webhook_url: "La URL del webhook de integración de Rocket Chat"+ chat_integration_rocketchat_excerpt_length: "Longitud del extracto de la publicación de Rocket Chat"+ chat_integration_gitter_enabled: "Habilitar el proveedor de integración de chat de Gitter"+ chat_integration_flowdock_enabled: "Habilitar el proveedor de integración de chat de Flowdock"+ chat_integration_flowdock_excerpt_length: "Longitud del extracto de la publicación de Flowdock"+ chat_integration_groupme_enabled: "Habilitar el proveedor de integración de chat de Groupme"+ chat_integration_groupme_excerpt_length: "Longitud del extracto de la publicación de Groupme"+ chat_integration_groupme_bot_ids: "ID de bots *requeridos*, separados por ',' si hay varios"+ chat_integration_groupme_instance_names: "Nombre del chat de GroupMe *obligatorio*, separado por ',' si hay varios (en el mismo orden que los ID de los bots)"+ chat_integration_teams_enabled: "Habilitar el proveedor de integración de chat de Microsoft Teams"+ chat_integration_teams_excerpt_length: "Longitud del extracto de la publicación de Microsoft Team"+ chat_integration_powerautomate_enabled: "Activar el proveedor de integración Microsoft Power Automate"+ chat_integration_powerautomate_excerpt_length: "Longitud del extracto de la publicación de Microsoft Power Automate"+ chat_integration_webex_enabled: "Habilitar el proveedor de integración de chat de Webex Teams"+ chat_integration_webex_excerpt_length: "Longitud del extracto de la publicación de Webex Team"+ chat_integration_google_enabled: "Habilitar el proveedor de integración de chat «Google Chat»"+ chat_integration_google_excerpt_length: "Longitud del extracto de la publicación de Google Chat"+ dashboard:+ problem:+ channel_errors: "Algunos canales de integración de chat tienen errores. Visita <a href='%{base_path}/admin/plugins/chat-integration'>la sección de integración de chat</a> para saber más."+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Enviar mensaje de Slack+ send_chat_integration_message:+ title: Enviar mensaje de Chat-Integration+ chat_integration:+ all_categories: "(todas las categorías)"+ deleted_category: "(categoría eliminada)"+ deleted_group: "(grupo eliminado)"+ group_mention_template: "menciones de: @%{name}"+ group_message_template: "mensajes a: @%{name}"+ topic_tag_changed:+ added_and_removed: "Añadido %{added} y eliminado %{removed}"+ added: "Añadido %{added}"+ removed: "Eliminado %{removed}"+ provider:+ slack:+ status:+ header: |+ *Reglas para este canal*+ (si varias reglas coinciden con una publicación, se ejecuta la regla superior)+ no_rules: "No hay reglas establecidas para este canal. Ejecuta `/discourse help` para obtener instrucciones."+ rule_string: "*%{index})* *%{filter}* publicaciones en *%{category}*"+ rule_string_tags_suffix: "con las etiquetas: *%{tags}*"+ parse_error: "Lo siento, no lo he entendido. Ejecuta `/discourse help` para obtener instrucciones."+ create:+ created: "Regla creada con éxito"+ updated: "Regla actualizada con éxito"+ error: "Lo sentimos, se produjo un error al crear esa regla."+ delete:+ success: "Regla creada con éxito"+ error: "Lo sentimos, se produjo un error al eliminar esa regla. Ejecuta `/discourse status` para obtener una lista de reglas."+ not_found:+ tag: "La etiqueta *%{name}* no se encuentra."+ category: "No se puede encontrar la categoría *%{name}Categorías disponibles: *%{list}*"+ help: |+ *Nueva regla:* `/discourse [thread|watch|follow|mute] [category] [tag:name]`+ (debes especificar un tipo de regla y al menos una categoría o etiqueta)+ - *thread*: notifica a este canal los nuevos temas, las respuestas al hilo si es posible+ - *watch*: notificar a este canal los nuevos temas y las nuevas respuestas+ - *follow*: notificar a este canal los nuevos temas+ - *mute*: bloquear las notificaciones a este canal++ *Eliminar regla:* `/discourse remove [rule number]`+ (`[rule number]` se puede encontrar ejecutando `/discourse status`)++ *Lista de reglas:* `/discourse status`++ *[Experimental] Transcripción de la publicación:* `/discourse post [n]`+ Crea un tema borrador en discourse que contenga los últimos `n` mensajes de este canal++ *Ayuda:* `/discourse help`+ transcript:+ modal_title: "Crear transcripción"+ modal_description: "Todos los mensajes del hilo se agruparán en una única publicación del foro. Se te dará la oportunidad de editar la transcripción antes de publicarla."+ transcript_ready: "Transcripción lista"+ continue_on_discourse: "Continuar en el foro"+ error: "Algo salió mal al generar la transcripción, ¡lo sentimos!"+ post_to_discourse: "Haz clic aquí para generar un borrador de publicación en Discourse con una transcripción"+ api_required: "Lo sentimos, esta integración no está configurada para admitir la publicación de transcripciones."+ view_on_slack: "Ver en %{name} en Slack"+ first_message_pretext: "comenzando hace %{n} mensajes:"+ last_message_pretext: "y terminando hace %{n} mensajes:"+ posted_in: "publicado en %{name}"+ change_first_message: "Cambiar el primer mensaje..."+ change_last_message: "Cambiar el último mensaje.."+ loading: "Cargando la transcripción..."+ error_users: "Error: no se pueden obtener los usuarios de Slack"+ error_history: "Error: no se puede recuperar el historial del canal de Slack"+ error_ts: "Error: no se puede obtener el mensaje solicitado de Slack"+ messaging:+ topic_tag_changed:+ added_and_removed: "Añadido %{added} y eliminado %{removed}"+ added: "Añadido %{added}"+ removed: "Eliminado %{removed}"+ telegram:+ unknown_chat: "Este chat no está configurado en %{site_title}. Pide a un administrador que añada un canal con «ID de chat» %{chat_id}."+ known_chat: "Este chat está configurado en %{site_title}. Configúralo en el panel del administrador. (ID del chat: %{chat_id})"+ message: |-+ <b>%{user}</b> publicó en <a href="%{post_url}">%{title}</a>++ <pre>%{post_excerpt}</pre>+ status:+ header: |+ <b>Reglas para este canal</b>+ (si varias reglas coinciden con una publicación, se ejecuta la regla superior)+ no_rules: "No hay reglas configuradas para este canal. Ejecuta <code>/help</code> para obtener instrucciones."+ rule_string: "<b>%{index})</b> <b>%{filter}</b> publicaciones en <b>%{category}</b>"+ rule_string_tags_suffix: " con etiquetas: <b>%{tags}</b>"+ parse_error: "Lo siento, no lo he entendido. Ejecuta <code>/help</code> para obtener instrucciones."+ create:+ created: "Regla creada con éxito"+ updated: "Regla actualizada con éxito"+ error: "Lo sentimos, se produjo un error al crear esa regla."+ delete:+ success: "Regla eliminada con éxito"+ error: "Lo sentimos, se produjo un error al eliminar esta regla. Ejecuta <code>/status</code> para obtener una lista de reglas."+ not_found:+ tag: "No se puede encontrar la etiqueta <b>%{name}</b>."+ category: "No se encuentra la categoría <b>%{name}</b>. Categorías disponibles: <b>%{list}</b>"+ help: |+ <b>Nueva regla:</b> <code>/[watch|follow|mute] [category] [tag:name]</code>+ (debes especificar un tipo de regla y al menos una categoría o etiqueta)+ - <b>watch</b>: notifica a este canal en cada nuevo tema y respuesta+ - <b>follow</b>: notifica a este canal en cada nuevo tema+ - <b>mute</b>: bloquear notificaciones a este canal++ <b>Eliminar regla:</b> <code>/remove [rule number]</code>+ (el <code>[rule number]</code> puede encontrarse ejecutando <code>/status</code>)++ <b>Lista de reglas:</b> <code>/status</code>++ <b>Ayuda:</b> <code>/help</code>+ hipchat:+ message: <b>%{user}</b> publicó en <a href="%{post_url}">%{title}</a>+ mattermost:+ status:+ header: |+ *Reglas para este canal*+ (si varias reglas coinciden con una publicación, se ejecuta la regla superior)+ no_rules: "No hay reglas establecidas para este canal. Ejecuta `/discourse help` para obtener instrucciones."+ rule_string: "*%{index})* *%{filter}* publicaciones en *%{category}*"+ rule_string_tags_suffix: " con etiquetas: *%{tags}*"+ parse_error: "Lo siento, no lo he entendido. Ejecuta `/discourse help` para obtener instrucciones."+ create:+ created: "Regla creada con éxito"+ updated: "Regla actualizada con éxito"+ error: "Lo sentimos, se produjo un error al crear esa regla."+ delete:+ success: "Regla eliminada con éxito"+ error: "Lo sentimos, se produjo un error al eliminar esa regla. Ejecuta `/discourse status` para obtener una lista de reglas."+ not_found:+ tag: "La etiqueta *%{name}* no se encuentra."+ category: "No se puede encontrar la categoría *%{name} Categorías disponibles: *%{list}*"+ help: |+ *Nueva regla:* `/discourse [watch|follow|mute] [category] [tag:name]`+ (debes especificar un tipo de regla y al menos una categoría o etiqueta)+ - *watch*: notifica a este canal en cada nuevo tema y respuesta+ - *follow*: notifica a este canal en cada nuevo tema+ - *mute*: bloquear notificaciones a este canal++ *Eliminar regla:* `/discourse remove [rule number]`+ (el `[rule number]` puede encontrarse ejecutando `/discourse status`)++ *Lista de reglas:* `/discourse status`++ *Ayuda:* `/discourse help`+ matrix:+ text_message: "%{user} publicó en %{title} - %{post_url}"+ formatted_message: |+ <b>%{user}</b> publicó en <b><a href='%{post_url}'>%{title}</a></b>+ <blockquote>+ %{excerpt}+ </blockquote>+ zulip:+ message: |+ **%{user}** publicó en **[%{title}](%{post_url})**+ ~~~quote+ %{excerpt}+ ~~~+ flowdock:+ message_title: "publicó"+ google:+ new_post: "Nueva publicación en %{site_title}"+ new_topic: "Nuevo tema en %{site_title}"+ author: "por @%{username}"+ link: "Ver en %{site_title}"+ groupme:+ errors:+ instance_names_issue: "nombres de instancias con formato incorrecto o no proporcionadas"diff --git a/plugins/discourse-chat-integration/config/locales/server.et.yml b/plugins/discourse-chat-integration/config/locales/server.et.ymlnew file mode 100644index 00000000000..5bcb154ff93--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.et.yml@@ -0,0 +1,25 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++et:+ chat_integration:+ all_categories: "(kõik kategooriad)"+ deleted_category: "(kustutatud kategooria)"+ deleted_group: "(kustutatud grupp)"+ provider:+ slack:+ delete:+ success: "Reegel on kustutatud"+ transcript:+ loading: "Käsikirja laadimine..."+ telegram:+ delete:+ success: "Reegel on kustutatud"+ mattermost:+ delete:+ success: "Reegel on kustutatud"+ flowdock:+ message_title: "postitatud"diff --git a/plugins/discourse-chat-integration/config/locales/server.fa_IR.yml b/plugins/discourse-chat-integration/config/locales/server.fa_IR.ymlnew file mode 100644index 00000000000..c49389d7432--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.fa_IR.yml@@ -0,0 +1,37 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++fa_IR:+ site_settings:+ chat_integration_enabled: 'فعال کردن افزونه یکپارچگی گفتگو دیسکورس'+ chat_integration_guilded_enabled: "فعال کردن ارائه دهنده یکپارچهسازی گفتگوی Guilded"+ chat_integration_guilded_excerpt_length: "طول چکیده نوشته Guilded"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: ارسال پیام اسلک+ chat_integration:+ all_categories: "(تمام دسته بندی ها)"+ group_mention_template: "اشاره شده: @%{name}"+ group_message_template: "پیغامها به: @%{name}"+ topic_tag_changed:+ added: "%{added} اضافه شد"+ provider:+ slack:+ status:+ rule_string: "*%{index})* *%{filter}* نوشته در *%{category}*"+ transcript:+ posted_in: "نوشته شده در %{name}"+ messaging:+ topic_tag_changed:+ added: "%{added} اضافه شد"+ mattermost:+ status:+ rule_string: "*%{index})* *%{filter}* نوشته در *%{category}*"+ flowdock:+ message_title: "ارسال شده"+ google:+ new_post: "نوشته جدید در %{site_title}"diff --git a/plugins/discourse-chat-integration/config/locales/server.fi.yml b/plugins/discourse-chat-integration/config/locales/server.fi.ymlnew file mode 100644index 00000000000..774320c6b2e--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.fi.yml@@ -0,0 +1,237 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++fi:+ site_settings:+ chat_integration_enabled: 'Ota discourse-chat-integrointilisäosa käyttöön.'+ chat_integration_discourse_username: 'Sen käyttäjän käyttäjätunnus, jona toimitaan sisältöä haettaessa.'+ chat_integration_delay_seconds: 'Odotuksen pituus sekunneissa kirjoituksen luomisen jälkeen ennen chat ilmoituksen lähettämistä'+ chat_integration_slack_username: "Botin käyttäjätunnus, jolla lähetetään viesti Slackiin"+ chat_integration_slack_enabled: 'Ota Slackin chat-integraatiopalveluntarjoaja käyttöön'+ chat_integration_slack_access_token: 'OAuth Access Token Slackin todentamiseen'+ chat_integration_slack_incoming_webhook_token: 'Saapuvien pyyntöjen todentamiseen käytetty vahvistustunnus'+ chat_integration_slack_excerpt_length: 'Slack-viestin otteen pituus'+ chat_integration_slack_icon_url: 'Kuvake, jolla viesti lähetetään Slackiin (oletuksena foorumin logo)'+ chat_integration_slack_outbound_webhook_url: "Slackin \"Incoming Webhook\" -järjestelmän käyttämiseen OAuth APIn sijaan. Ei suositeltu."+ chat_integration_slack_transcript_quote: Kääritäänkö Slack-transkriptio [quote]-tunnisteisiin?+ errors:+ chat_integration_slack_api_configs_are_empty: "Sinun täytyy antaa joko lähtevän webhookin URL-osoite tai käyttöoikeustunnus"+ chat_integration_telegram_enabled: "Ota Telegram chat-integrointi palveluntarjoaja käyttöön."+ chat_integration_telegram_access_token: "Bottisi käyttöoikeustunnus Telegram botfatherilta"+ chat_integration_telegram_excerpt_length: "Telegram-viestin otteen pituus"+ chat_integration_telegram_enable_slash_commands: "Salli telegram tilausten hallinnointi 'kauttaviiva käskyjä' käyttäen"+ chat_integration_discord_enabled: "Ota Discordin chat-integraatiopalveluntarjoaja käyttöön"+ chat_integration_discord_message_content: "Viesti, joka sisällytetään yhteenvedon yläpuolelle lähetettäessä ilmoitusta Discordiin"+ chat_integration_discord_excerpt_length: "Discord-viestin otteen pituus"+ chat_integration_guilded_enabled: "Ota Guildedin chat-integraatiopalveluntarjoaja käyttöön"+ chat_integration_guilded_excerpt_length: "Guilded-viestin otteen pituus"+ chat_integration_mattermost_enabled: "Ota Mattermostin chat-integraatiopalveluntarjoaja käyttöön"+ chat_integration_mattermost_webhook_url: 'Mattermost-webhookin URL-osoite'+ chat_integration_mattermost_incoming_webhook_token: 'Saapuvien pyyntöjen todentamiseen käytetty vahvistustunnus'+ chat_integration_mattermost_icon_url: "Mattermost-viestien kuvake (oletuksena foorumin logo)"+ chat_integration_mattermost_excerpt_length: "Mattermost-viestin otteen pituus"+ chat_integration_matrix_enabled: "Ota Matrixin chat-integraatiopalveluntarjoaja käyttöön"+ chat_integration_matrix_homeserver: "Yhdistettävä kotipalvelin. Varmista, että sisällytit protokollan"+ chat_integration_matrix_access_token: "Botin Matrix-tilin käyttöoikeustunnus"+ chat_integration_matrix_excerpt_length: "Matrix-viestin otteen pituus"+ chat_integration_matrix_use_notice: "Käytä huomautusta pelkän viestin sijaan"+ chat_integration_zulip_enabled: "Ota Zulipin chat-integraatiopalveluntarjoaja käyttöön"+ chat_integration_zulip_server: "Zulip-palvelimesi perus-URL. Muista sisällyttää http(s)://"+ chat_integration_zulip_bot_email_address: "Zulip-bottiisi liitetty sähköpostiosoite"+ chat_integration_zulip_bot_api_key: "API-avain Zulip-botille"+ chat_integration_zulip_excerpt_length: "Zulip-viestin otteen pituus"+ chat_integration_rocketchat_enabled: "Ota Rocket Chatin chat-integraatiopalveluntarjoaja käyttöön"+ chat_integration_rocketchat_webhook_url: "Rocket Chat -integraation webhookin URL-osoite"+ chat_integration_rocketchat_excerpt_length: "Rocket Chat -viestin otteen pituus"+ chat_integration_gitter_enabled: "Ota Gitterin chat-integraatiopalveluntarjoaja käyttöön"+ chat_integration_flowdock_enabled: "Ota Flowdockin chat-integraatiopalveluntarjoaja käyttöön"+ chat_integration_flowdock_excerpt_length: "Flowdock-viestin otteen pituus"+ chat_integration_groupme_enabled: "Ota Groupmen chat-integraatiopalveluntarjoaja käyttöön"+ chat_integration_groupme_excerpt_length: "Groupme-viestin otteen pituus"+ chat_integration_groupme_bot_ids: "*pakollinen* Bottitunnukset, erotettu pilkulla, jos niitä on useita"+ chat_integration_groupme_instance_names: " *pakollinen* GroupMe-keskutelun nimi, erotettuna pilkulla, jos niitä on useita (sama järjestys kuin bottitunnuksilla)"+ chat_integration_teams_enabled: "Ota Microsoft Teamsin chat-integraatiopalveluntarjoaja käyttöön"+ chat_integration_teams_excerpt_length: "Microsoft Teams -viestin otteen pituus"+ chat_integration_powerautomate_enabled: "Ota Microsoft Power Automate -integraatiopalveluntarjoaja käyttöön"+ chat_integration_powerautomate_excerpt_length: "Microsoft Power Automate -viestin otteen pituus"+ chat_integration_webex_enabled: "Ota Webexin chat-integraatiopalveluntarjoaja käyttöön"+ chat_integration_webex_excerpt_length: "Webex Team -viestin otteen pituus"+ chat_integration_google_enabled: "Ota Google Chatin chat-integraatiopalveluntarjoaja käyttöön"+ chat_integration_google_excerpt_length: "Google Chat -viestin otteen pituus"+ dashboard:+ problem:+ channel_errors: "Joissakin chat-integraatokanavissa on virheitä. Lisätietoja saat <a href='%{base_path}/admin/plugins/chat-integration'>chatin integrointiosiossa</a>."+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Lähetä Slack-viesti+ send_chat_integration_message:+ title: Lähetä chat-integraatioviesti+ chat_integration:+ all_categories: "(kaikki alueet)"+ deleted_category: "(poistettu alue)"+ deleted_group: "(poistettu ryhmä)"+ group_mention_template: "@%{name} mainittu"+ group_message_template: "Viestejä käyttäjälle: @%{name}"+ topic_tag_changed:+ added_and_removed: "Lisättiin %{added} ja poistettiin %{removed}"+ added: "Lisättiin %{added}"+ removed: "Poistettiin %{removed}"+ provider:+ slack:+ status:+ header: |+ *Tämän kanavan säännöt*+ (jos viestiä vastaa useampi sääntö, ylin sääntö suoritetaan)+ no_rules: "Tälle kanavalle ei ole asetettu sääntöjä. Katso ohjeita suorittamalla `/discourse help'."+ rule_string: "*%{index})* *%{filter}* viestit alueella *%{category}*"+ rule_string_tags_suffix: " tunnisteilla: *%{tags}*"+ parse_error: "Anteeksi, en ymmärtänyt tätä. Katso ohjeita suorittamalla `/discourse help'."+ create:+ created: "Säännön luominen onnistui"+ updated: "Säännön päivittäminen onnistui"+ error: "Virhe luotaessa tätä sääntöä."+ delete:+ success: "Säännön poistaminen onnistui"+ error: "Sääntöä poistettaessa tapahtui virhe. Katso sääntöjen luettelo suorittamalla `/discourse status'."+ not_found:+ tag: "Tunnistetta *%{name}* ei löydy."+ category: "Aluetta *%{name}* ei löydy. Käytettävissä olevat alueet: *%{list}*"+ help: |+ *Uusi sääntö:* `/discourse [thread|watch|follow|mute] [alue] [tunnisteen:nimi]`+ (sinun täytyy määrittää säännön tyyppi ja vähintään yksi alue tai tunniste)+ – *thread* – ilmoita tälle kanavalle uusista ketjuista, ketjuta vastaukset mahdollisuuksien mukaan+ – *watch* – ilmoita tälle kanavalle uusista ketjuista ja uusista vastauksista+ – *follow* – ilmoita tälle kanavalle uusista ketjuista+ – *mute* – estä ilmoitukset tälle kanavalle++ *Poista sääntö:* `/discourse remove [säännön numero]`+ (`[säännön numero]` löytyy suorittamalla `/discourse status`)++ *Listaa säännöt:* `/discourse status`++ *[Kokeellinen] Viestin transkriptio:* `/discourse post [n]`+ Luo luonnosketju Discoursessa, joka sisältää viimeiset n viestiä tällä kanavalla++ *Ohje:* `/discourse help`+ transcript:+ modal_title: "Luo transkriptio"+ modal_description: "Kaikki ketjun viestit kootaan yhdeksi foorumin viestiksi. Sinulla on mahdollisuus muokata transkriptiota ennen julkaisua."+ transcript_ready: "Transkriptio on valmis"+ continue_on_discourse: "Jatka foorumilla"+ error: "Jokin meni vikaan luotaessa transkriptiota"+ post_to_discourse: "Tee viestiluonnos Discoursessa transkriptiolla napsauttamalla tätä"+ api_required: "Tätä integraatiota ei ole määritetty tukemaan transkriptioiden lähettämistä."+ view_on_slack: "Katso kanavalla %{name} Slackissa"+ first_message_pretext: "alkaen %{n} viestiä sitten:"+ last_message_pretext: "ja päättyen %{n} viestiä sitten:"+ posted_in: "julkaistu kanavalla %{name}"+ change_first_message: "Vaihda ensimmäinen viesti..."+ change_last_message: "Vaihda viimeinen viesti..."+ loading: "Ladataan transkriptiota..."+ error_users: "Virhe: käyttäjiä ei voitu hakea Slackista"+ error_history: "Virhe: kanavahistoriaa ei voitu hakea Slackista"+ error_ts: "Virhe: pyydettyä viestiä ei voitu hakea Slackista"+ messaging:+ topic_tag_changed:+ added_and_removed: "Lisättiin %{added} ja poistettiin %{removed}"+ added: "Lisättiin %{added}"+ removed: "Poistettiin %{removed}"+ telegram:+ unknown_chat: "Tätä keskustelua ei ole määritetty sivustolla %{site_title}. Pyydä järjestelmänvalvojaa lisäämään kanava keskustelutunnuksella %{chat_id}."+ known_chat: "Tämä keskustelu on määritetty sivustolla %{site_title}. Määritä se hallintapaneelissa. (Keskustelutunnus: %{chat_id})"+ message: |-+ <b>%{user}</b> lähetti viestin kohteessa <a href="%{post_url}">%{title}</a>++ <pre>%{post_excerpt}</pre>+ status:+ header: |+ <b>Tämän kanavan säännöt</b>+ (jos viestiä vastaa useampi sääntö, ylin sääntö suoritetaan)+ no_rules: "Tälle kanavalle ei ole asetettu sääntöjä. Katso ohjeita suorittamalla <code>/help</code>."+ rule_string: "<b>%{index})</b> <b>%{filter}</b> viestit alueella <b>%{category}</b>"+ rule_string_tags_suffix: " tunnisteilla: <b>%{tags}</b>"+ parse_error: "Anteeksi, en ymmärtänyt tätä. Katso ohjeita suorittamalla <code>/help</code>."+ create:+ created: "Säännön luominen onnistui"+ updated: "Säännön päivittäminen onnistui"+ error: "Virhe luotaessa tätä sääntöä."+ delete:+ success: "Säännön poistaminen onnistui"+ error: "Sääntöä poistettaessa tapahtui virhe. Katso sääntöjen luettelo suorittamalla <code>/status</code>."+ not_found:+ tag: "Tunnistetta <b>%{name}</b> ei löydy."+ category: "Aluetta <b>%{name}</b> ei löydy. Käytettävissä olevat alueet: <b>%{list}</b>"+ help: |+ <b>Uusi sääntö:</b> <code>/[watch|follow|mute] [alue] [tunnisteen:nimi]</code>+ (sinun täytyy määrittää säännön tyyppi ja vähintään yksi alue tai tunniste)+ – <b>watch</b> – ilmoita tälle kanavalle uusista ketjuista ja uusista vastauksista+ – <b>follow</b> – ilmoita tälle kanavalle uusista ketjuista+ – <b>mute</b> – estä ilmoitukset tälle kanavalle++ <b>Poista sääntö:</b> <code>/remove [säännön numero]</code>+ (<code>[säännön numero]</code> löytyy suorittamalla <code>/status</code>)++ <b>Listaa säännöt:</b> <code>/status</code>++ <b>Ohje:</b> <code>/help</code>+ hipchat:+ message: <b>%{user}</b> lähetti viestin kohteessa <a href="%{post_url}">%{title}</a>+ mattermost:+ status:+ header: |+ *Tämän kanavan säännöt*+ (jos viestiä vastaa useampi sääntö, ylin sääntö suoritetaan)+ no_rules: "Tälle kanavalle ei ole asetettu sääntöjä. Katso ohjeita suorittamalla `/discourse help'."+ rule_string: "*%{index})* *%{filter}* viestit alueella *%{category}*"+ rule_string_tags_suffix: " tunnisteilla: *%{tags}*"+ parse_error: "Anteeksi, en ymmärtänyt tätä. Katso ohjeita suorittamalla `/discourse help'."+ create:+ created: "Säännön luominen onnistui"+ updated: "Säännön päivittäminen onnistui"+ error: "Virhe luotaessa tätä sääntöä."+ delete:+ success: "Säännön poistaminen onnistui"+ error: "Sääntöä poistettaessa tapahtui virhe. Katso sääntöjen luettelo suorittamalla `/discourse status'."+ not_found:+ tag: "Tunnistetta *%{name}* ei löydy."+ category: "Aluetta *%{name}* ei löydy. Käytettävissä olevat alueet: *%{list}*"+ help: |+ *Uusi sääntö: `/discourse [watch|follow|mute] [alue] [tunnisteen:nimi]`+ (sinun täytyy määrittää säännön tyyppi ja vähintään yksi alue tai tunniste)+ – *watch* – ilmoita tälle kanavalle uusista ketjuista ja uusista vastauksista+ – *follow* – ilmoita tälle kanavalle uusista ketjuista+ – *mute* – estä ilmoitukset tälle kanavalle++ *Poista sääntö*:`/discourse remove [säännön numero]`+ (`[säännön numero]` löytyy suorittamalla `/discourse status`)++ *Listaa säännöt*: `/discourse status`++ *Ohje:* `/discourse help`+ matrix:+ text_message: "%{user} lähetti viestin kohteessa %{title} – %{post_url}"+ formatted_message: |+ <b>%{user}</b> lähetti viestin kohteessa <b><a href='%{post_url}'>%{title}</a></b>+ <blockquote>+ %{excerpt}+ </blockquote>+ zulip:+ message: |+ **%{user}** lähetti viestin kohteessa **[%{title}](%{post_url})**+ ~~~quote+ %{excerpt}+ ~~~+ flowdock:+ message_title: "lähetti viestin"+ google:+ new_post: "Uusi viesti sivustolla %{site_title}"+ new_topic: "Uusi ketju sivustolla %{site_title}"+ author: "käyttäjältä @%{username}"+ link: "Näytä sivustolla %{site_title}"+ groupme:+ errors:+ instance_names_issue: "Esiintymien nimet on muotoiltu väärin tai niitä ei ole annettu"diff --git a/plugins/discourse-chat-integration/config/locales/server.fr.yml b/plugins/discourse-chat-integration/config/locales/server.fr.ymlnew file mode 100644index 00000000000..b95570e398c--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.fr.yml@@ -0,0 +1,237 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++fr:+ site_settings:+ chat_integration_enabled: 'Activer l''extension discourse-chat-integration'+ chat_integration_discourse_username: 'Nom d''utilisateur utilisé pour récupérer le contenu.'+ chat_integration_delay_seconds: 'Nombre de secondes à attendre après la création d''un message avant d''envoyer des notifications de chat'+ chat_integration_slack_username: "Nom d'utilisateur du bot utilisé pour publier sur Slack"+ chat_integration_slack_enabled: 'Activer le fournisseur d''intégration de chat Slack'+ chat_integration_slack_access_token: 'Jeton d''accès OAuth pour l''authentification sur Slack'+ chat_integration_slack_incoming_webhook_token: 'Le jeton de vérification utilisé pour authentifier les demandes entrantes'+ chat_integration_slack_excerpt_length: 'Longueur des extraits de messages Slack'+ chat_integration_slack_icon_url: 'Icône à utiliser pour publier sur Slack (par défaut, le logo du forum est utilisé)'+ chat_integration_slack_outbound_webhook_url: "Pour utiliser le système « Webhook entrant » de Slack au lieu de l'API OAuth. Non recommandé."+ chat_integration_slack_transcript_quote: Envelopper la transcription de Slack dans [quote] étiquettes ?+ errors:+ chat_integration_slack_api_configs_are_empty: "Vous devez saisir soit une URL de webhook sortant, soit un jeton d'accès"+ chat_integration_telegram_enabled: "Activer le fournisseur d'intégration de chat Telegram"+ chat_integration_telegram_access_token: "Le jeton d'accès de votre bot fourni par le botfather Telegram"+ chat_integration_telegram_excerpt_length: "Longueur des extraits de messages Telegram"+ chat_integration_telegram_enable_slash_commands: "Autoriser la gestion des abonnements Telegram à l'aide de « commandes slash »"+ chat_integration_discord_enabled: "Activer le fournisseur d'intégration de chat Discord"+ chat_integration_discord_message_content: "Message à inclure au-dessus du résumé lors de l'envoi d'une notification à Discord"+ chat_integration_discord_excerpt_length: "Longueur des extraits de messages Discord"+ chat_integration_guilded_enabled: "Activer le fournisseur d'intégration de chat Guilded"+ chat_integration_guilded_excerpt_length: "Longueur des extraits de messages Guilded"+ chat_integration_mattermost_enabled: "Activer le fournisseur d'intégration de chat Mattermost"+ chat_integration_mattermost_webhook_url: 'URL pour le webhook Mattermost'+ chat_integration_mattermost_incoming_webhook_token: 'Le jeton de vérification utilisé pour authentifier les demandes entrantes'+ chat_integration_mattermost_icon_url: "Icône à utiliser pour publier des messages sur Mattermost (par défaut, le logo du forum est utilisé)"+ chat_integration_mattermost_excerpt_length: "Longueur des extraits de messages Mattermost"+ chat_integration_matrix_enabled: "Activer le fournisseur d'intégration de chat Matrix"+ chat_integration_matrix_homeserver: "Serveur local auquel se connecter. Assurez-vous d'inclure le protocole"+ chat_integration_matrix_access_token: "Jeton d'accès au compte Matrix du bot"+ chat_integration_matrix_excerpt_length: "Longueur des extraits de messages Matrix"+ chat_integration_matrix_use_notice: "Utiliser la notification au lieu d'un message simple"+ chat_integration_zulip_enabled: "Activer le fournisseur d'intégration de chat Zulip"+ chat_integration_zulip_server: "L'adresse URL de base pour votre serveur Zulip. Assurez-vous d'y inclure http(s)://"+ chat_integration_zulip_bot_email_address: "L'adresse e-mail associée à votre bot Zulip"+ chat_integration_zulip_bot_api_key: "La clé d'API pour votre bot Zulip"+ chat_integration_zulip_excerpt_length: "Longueur des extraits de messages Zulip"+ chat_integration_rocketchat_enabled: "Activer le fournisseur d'intégration de chat Rocket.Chat"+ chat_integration_rocketchat_webhook_url: "L'URL du webhook d'intégration de Rocket.Chat"+ chat_integration_rocketchat_excerpt_length: "Longueur des extraits de messages Rocket.Chat"+ chat_integration_gitter_enabled: "Activer le fournisseur d'intégration de chat Gitter"+ chat_integration_flowdock_enabled: "Activer le fournisseur d'intégration de chat Flowdock"+ chat_integration_flowdock_excerpt_length: "Longueur des extraits de messages Flowdock"+ chat_integration_groupme_enabled: "Activer le fournisseur d'intégration de chat GroupMe"+ chat_integration_groupme_excerpt_length: "Longueur des extraits de message GroupMe"+ chat_integration_groupme_bot_ids: "*obligatoire* ID du ou des bots, séparés pour des virgules s'il y en a plusieurs"+ chat_integration_groupme_instance_names: " *obligatoire* Nom du ou des chats GroupMe, séparés par des virgules s'il y en a plusieurs (même ordre que les ID des bots)"+ chat_integration_teams_enabled: "Activer le fournisseur d'intégration de chat Microsoft Teams"+ chat_integration_teams_excerpt_length: "Longueur des extraits de messages Microsoft Teams"+ chat_integration_powerautomate_enabled: "Activer le fournisseur d'intégration Microsoft Power Automate"+ chat_integration_powerautomate_excerpt_length: "Longueur de l'extrait de publication Microsoft Power Automate"+ chat_integration_webex_enabled: "Activer le fournisseur d'intégration de chat Webex Teams"+ chat_integration_webex_excerpt_length: "Longueur des extraits de messages Webex Teams"+ chat_integration_google_enabled: "Activer le fournisseur d'intégration de chat Google Chat"+ chat_integration_google_excerpt_length: "Longueur des extraits de messages Google Chat"+ dashboard:+ problem:+ channel_errors: "Certains canaux d'intégration du chat comportent des erreurs. Visitez <a href='%{base_path}/admin/plugins/chat-integration'>la section relative à l'intégration du chat</a> pour en savoir plus."+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Envoyer un message Slack+ send_chat_integration_message:+ title: Envoyer un message d'intégration de discussion+ chat_integration:+ all_categories: "(toutes les catégories)"+ deleted_category: "(catégorie supprimée)"+ deleted_group: "(groupe supprimé)"+ group_mention_template: "mentions de : @%{name}"+ group_message_template: "messages à : @%{name}"+ topic_tag_changed:+ added_and_removed: "Ajout de %{added} et suppression de %{removed}"+ added: "Ajout de %{added}"+ removed: "Suppression de %{removed}"+ provider:+ slack:+ status:+ header: |+ *Règles pour ce canal*+ (si plusieurs règles correspondent à un message, la première règle sera appliquée)+ no_rules: "Aucune règle n'est définie pour ce canal. Exécutez « /discourse help » pour obtenir des instructions."+ rule_string: "*%{index})* *%{filter}* messages dans *%{category}*"+ rule_string_tags_suffix: " avec les étiquettes : *%{tags}*"+ parse_error: "Désolé, je n'ai pas compris. Exécutez « /discourse help » pour obtenir des instructions."+ create:+ created: "Règle créée avec succès"+ updated: "Règle mise à jour avec succès"+ error: "Désolé, une erreur est survenue lors de la création de cette règle."+ delete:+ success: "Règle supprimée avec succès"+ error: "Désolé, une erreur est survenue lors de la suppression de cette règle. Exécutez « /discourse help » pour obtenir des instructions."+ not_found:+ tag: "L'étiquette *%{name}* est introuvable."+ category: "La catégorie *%{name}* est introuvable. Catégories disponibles : *%{list}*"+ help: |+ *Nouvelle règle :* « /discourse [thread|watch|follow|mute] [category] [tag:name] »+ (vous devez spécifier un type de règle et au moins une catégorie ou étiquette)+ - *thread* : avertir ce canal en cas de nouveau sujet ou de nouvelle réponse au fil si possible+ - *watch* : avertir ce canal en cas de nouveau sujet ou de nouvelle réponse+ - *follow* : avertir ce canal en cas de nouveau sujet+ - *mute* : bloquer les notifications de ce canal++ *Supprimer la règle :* « /discourse remove [rule number] »+ (exécutez « /discourse status » pour trouver « [rule number] »)++ *Lister les règles :* « /discourse status »++ *[Experimental] Transcription de message :* « /discourse post [n] »+ Créer un brouillon de sujet sur Discourse contenant les « n » derniers messages de ce canal++ *Aide :* « /discourse help »+ transcript:+ modal_title: "Créer une transcription"+ modal_description: "Tous les messages du fil seront rassemblés dans un seul message sur le forum. Vous aurez la possibilité de modifier la transcription avant de la publier."+ transcript_ready: "Transcription prête"+ continue_on_discourse: "Continuer sur le forum"+ error: "Désolé, une erreur est survenue lors de la création de la transcription !"+ post_to_discourse: "Cliquez ici pour créer un message sur Discourse avec une transcription"+ api_required: "Désolé, cette intégration n'est pas configurée pour prendre en charge la publication de transcriptions."+ view_on_slack: "Visualiser dans %{name} sur Slack"+ first_message_pretext: "commençant il y a %{n} messages :"+ last_message_pretext: "et terminant il y a %{n} messages :"+ posted_in: "publié dans %{name}"+ change_first_message: "Modifier le premier message…"+ change_last_message: "Modifier le dernier message…"+ loading: "Chargement de la transcription…"+ error_users: "Erreur : impossible de récupérer les utilisateurs à partir de Slack"+ error_history: "Erreur : impossible de récupérer l'historique du canal à partir de Slack"+ error_ts: "Erreur : impossible de récupérer le message demandé à partir de Slack"+ messaging:+ topic_tag_changed:+ added_and_removed: "Ajout de %{added} et suppression de %{removed}"+ added: "Ajout de %{added}"+ removed: "Suppression de %{removed}"+ telegram:+ unknown_chat: "Ce chat n'est pas configuré sur %{site_title}. Demandez à un administrateur d'ajouter un canal avec l'ID de chat %{chat_id}."+ known_chat: "Ce chat est configuré sur %{site_title}. Configurez-le dans le panneau d'administration. (ID de chat : %{chat_id})"+ message: |-+ <b>%{user}</b> a publié dans <a href="%{post_url}">%{title}</a>++ <pre>%{post_excerpt}</pre>+ status:+ header: |+ <b>Règles pour ce canal</b>+ (si plusieurs règles correspondent à un message, la première règle sera appliquée)+ no_rules: "Aucune règle n'est définie pour ce canal. Exécutez <code>/help</code> pour obtenir des instructions."+ rule_string: "<b>%{index})</b> <b>%{filter}</b> messages dans la catégorie <b>%{category}</b>"+ rule_string_tags_suffix: " avec les étiquettes : <b>%{tags}</b>"+ parse_error: "Désolé, je n'ai pas compris. Exécutez <code>/help</code> pour obtenir des instructions."+ create:+ created: "Règle créée avec succès"+ updated: "Règle mise à jour avec succès"+ error: "Désolé, une erreur est survenue lors de la création de cette règle."+ delete:+ success: "Règle supprimée avec succès"+ error: "Désolé, une erreur est survenue lors de la suppression de cette règle. Exécutez <code>/status</code> pour obtenir une liste des règles."+ not_found:+ tag: "L'étiquette <b>%{name}</b> est introuvable."+ category: "La catégorie <b>%{name}</b> est introuvable. Catégories disponibles : <b>%{list}</b>"+ help: |+ <b>Nouvelle règle :</b> <code>/[watch|follow|mute] [category] [tag:name]</code>+ (vous devez spécifier un type de règle et au moins une catégorie ou étiquette)+ - <b>watch</b> : avertir ce canal en cas de nouveau sujets ou de nouvelle réponse+ - <b>follow</b> : avertir ce canal en cas de nouveau sujet+ - <b>mute</b> : bloquer les notifications adressées à ce canal++ <b>Supprimer une règle :</b> <code>/remove [rule number]</code>+ (exécutez <code>/status</code> pour trouver <code>[rule number]</code>)++ <b>Lister les règles :</b> <code>/status</code>++ <b>Aide :</b> <code>/help</code>+ hipchat:+ message: <b>%{user}</b> a publié dans <a href="%{post_url}">%{title}</a>+ mattermost:+ status:+ header: |+ *Règles pour ce canal*+ (si plusieurs règles correspondent à un message, la première règle sera appliquée)+ no_rules: "Aucune règle n'est définie pour ce canal. Exécutez « /discourse help » pour obtenir des instructions."+ rule_string: "*%{index})* *%{filter}* messages dans la catégorie *%{category}*"+ rule_string_tags_suffix: " avec les étiquettes : *%{tags}*"+ parse_error: "Désolé, je n'ai pas compris. Exécutez « /discourse help » pour obtenir des instructions."+ create:+ created: "Règle créée avec succès"+ updated: "Règle mise à jour avec succès"+ error: "Désolé, une erreur est survenue lors de la création de cette règle."+ delete:+ success: "Règle supprimée avec succès"+ error: "Désolé, une erreur est survenue lors de la suppression de cette règle. Exécutez « /discourse help » pour obtenir des instructions."+ not_found:+ tag: "L'étiquette *%{name}* est introuvable."+ category: "La catégorie *%{name}* est introuvable. Catégories disponibles : *%{list}*"+ help: |+ *Nouvelle règle :* « /discourse [watch|follow|mute] [category] [tag:name] »+ (vous devez spécifier un type de règle et au moins une catégorie ou étiquette)+ - *watch* : avertir ce canal en cas de nouveau sujet ou de nouvelle réponse+ - *follow* : avertir ce canal en cas de nouveau sujet+ - *mute* : bloquer les notifications adressées à ce canal++ *Supprimer une règle :* « /discourse remove [rule number] »+ (exécutez « /discourse status » pour trouver « [rule number] »)++ *Lister les règles :* « /discourse status »++ *Aide :* « /discourse help »+ matrix:+ text_message: "%{user} a publié un message dans %{title} - %{post_url}"+ formatted_message: |+ <b>%{user}</b> a publié un message dans <b><a href='%{post_url}'>%{title}</a></b>+ <blockquote>+ %{excerpt}+ </blockquote>+ zulip:+ message: |+ **%{user}** a publié un message dans **[%{title}](%{post_url})**+ ~~~citation+ %{excerpt}+ ~~~+ flowdock:+ message_title: "publié"+ google:+ new_post: "Nouveau message sur %{site_title}"+ new_topic: "Nouveau sujet sur %{site_title}"+ author: "par @%{username}"+ link: "Voir sur %{site_title}"+ groupme:+ errors:+ instance_names_issue: "les noms d'instance sont incorrectement formatés ou non renseignés"diff --git a/plugins/discourse-chat-integration/config/locales/server.gl.yml b/plugins/discourse-chat-integration/config/locales/server.gl.ymlnew file mode 100644index 00000000000..0d2d5c16a44--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.gl.yml@@ -0,0 +1,207 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++gl:+ site_settings:+ chat_integration_enabled: 'Active o complemento discourse-chat-integration'+ chat_integration_discourse_username: 'Nome de usuario do usuario para actuar como cando se busca contido.'+ chat_integration_delay_seconds: 'Número de segundos de espera tras a creación da publicación antes de enviar notificacións de chat'+ chat_integration_slack_username: "Nome de usuario do bot co que publicar en Slack"+ chat_integration_slack_enabled: 'Activar o fornecedor de chat-integration para Slack'+ chat_integration_slack_access_token: 'Token de acceso OAuth para autenticarse con Slack'+ chat_integration_slack_incoming_webhook_token: 'O token de verificación que se utiliza para autenticar peticións entrantes'+ chat_integration_slack_excerpt_length: 'Lonxitude do resumo da publicación en Slack'+ chat_integration_slack_icon_url: 'Icona coa que publicar en Slack (predeterminada a do logo do foro)'+ chat_integration_slack_outbound_webhook_url: "Par utilizar o sistema «Incoming Webhook» de Slack en lugar da API de OAuth. Non recomendado."+ errors:+ chat_integration_slack_api_configs_are_empty: "Debe introducir un enganche URLde saída web ou un token de acceso"+ chat_integration_telegram_enabled: "Activar o fornecedor de chat-integration con Telegram"+ chat_integration_telegram_access_token: "O seu token de acceso parar o bot de Telegram botfather"+ chat_integration_telegram_excerpt_length: "Lonxitude do resumo da publicación en Telegram"+ chat_integration_telegram_enable_slash_commands: "Permitir que se xestionen as subscricións de Telegram utilizando «slash commands»"+ chat_integration_discord_enabled: "Activar o fornecedor de chat-integration para Discord"+ chat_integration_discord_message_content: "A mensaxe que se incluirá enriba do resumo ao enviar unha notificación a Discord"+ chat_integration_discord_excerpt_length: "Lonxitude do resumo da publicación en Discord"+ chat_integration_mattermost_enabled: "Activar o fornecedor de chat-integration para Mattermost"+ chat_integration_mattermost_webhook_url: 'URL para o enganche (webhook) con Mattermost'+ chat_integration_mattermost_incoming_webhook_token: 'O token de verificación que se utiliza para autenticar peticións entrantes'+ chat_integration_mattermost_icon_url: "Icona coa que publicar en Mattermost (predeterminada a do logo do foro)"+ chat_integration_mattermost_excerpt_length: "Lonxitude do resumo da publicación en Mattermost"+ chat_integration_matrix_enabled: "Activar o fornecedor de chat-integration para Matrix"+ chat_integration_matrix_homeserver: "Servidor doméstico ao que conectarse. Asegúrese de incluír o protocolo"+ chat_integration_matrix_access_token: "Token de acceso para o bot da conta Matrix"+ chat_integration_matrix_excerpt_length: "Lonxitude do resumo da publicación en Matrix"+ chat_integration_matrix_use_notice: "Utilice aviso en vez de mensaxe simple"+ chat_integration_zulip_enabled: "Activar o fornecedor de chat-integration para Zulip"+ chat_integration_zulip_server: "O URL base do seu servidor Zulip. Asegúrese de incluír http(s)://"+ chat_integration_zulip_bot_email_address: "O enderezo de correo electrónico asociado ao seu bot Zulip"+ chat_integration_zulip_bot_api_key: "A clave API do seu bot Zulip"+ chat_integration_zulip_excerpt_length: "Lonxitude do resumo da publicación en Zulip"+ chat_integration_rocketchat_enabled: "Activar o fornecedor de chat-integration para Rocket Chat"+ chat_integration_rocketchat_webhook_url: "O URL do enganche (webhook) para integración de Rocket Chat"+ chat_integration_rocketchat_excerpt_length: "Lonxitude do resumo da publicación en Rocket Chat"+ chat_integration_gitter_enabled: "Activar o fornecedor de chat-integration para Gitter"+ chat_integration_flowdock_enabled: "Activar o fornecedor de chat-integration para Flowdock"+ chat_integration_flowdock_excerpt_length: "Lonxitude do resumo da publicación en Flowdock"+ chat_integration_groupme_enabled: "Activar o fornecedor de chat-integration para Groupme"+ chat_integration_groupme_excerpt_length: "Lonxitude do resumo da publicación en Groupme"+ chat_integration_groupme_bot_ids: "* obrigatorios * Os ID de bot, separados por ',' se hai varios"+ chat_integration_groupme_instance_names: " * obrigatorio * Nome do chat de GroupMe, separado por ',' se hai varios (a mesma orde que os ID do bot)"+ chat_integration_teams_enabled: "Activar o fornecedor de chat-integration para Microsft Teams"+ chat_integration_teams_excerpt_length: "Lonxitude do resumo da publicación en Microsft Team"+ chat_integration_webex_enabled: "Activar o fornecedor de chat-integration con Webex Teams"+ chat_integration_webex_excerpt_length: "Lonxitude do resumo da publicación en Webex Team"+ chat_integration_google_enabled: "Activar o fornecedor de chat-integration para «Google Chat»"+ chat_integration_google_excerpt_length: "Lonxitude do resumo da publicación en Google Chat"+ chat_integration:+ all_categories: "(todas as categorías)"+ deleted_category: "(categoría eliminada)"+ deleted_group: "(grupo eliminado)"+ group_mention_template: "mencións de: @%{name}"+ group_message_template: "mensaxes a: @%{name}"+ provider:+ slack:+ status:+ header: |+ * Regras desta canle *+ (se varias regras coinciden cunha publicación, execútase a regra máis alta)+ no_rules: "Non hai regras estabelecidas para esta canle. Execute «/discourse help» para obter as instrucións."+ rule_string: "*%{index}) * *%{filter}* publicacións en *%{category}*"+ rule_string_tags_suffix: " coas etiquetas: *%{tags}*"+ parse_error: "Desculpe, non o entendín. Execute «/discourse help» para obter as instrucións."+ create:+ created: "A regra creouse correctamente"+ updated: "A regra actualizouse correctamente"+ error: "Desculpe pero produciuse un erro ao crear esa regra."+ delete:+ success: "A regra eliminouse correctamente"+ error: "Desculpe, produciuse un erro ao eliminar esa regra. Execute «/discourse status» para unha listaxe de regras."+ not_found:+ tag: "Non se pode atopar a etiqueta *%{name}*."+ category: "Non foi posíbel atopar a categoría *%{name}*. Categorías dispoñíbeis: *%{list}*"+ help: |+ * Nova regra:*«/discouse [fío|observar|seguir|silenciar] [category] [tag: nome]`+ (debe especificar un tipo de regra e polo menos unha categoría ou etiqueta)+ - *fío* - notificar a esta canle para de novos temas, respostas a fíos se é posible+ - *observar* - notificar a esta canle de novos temas e novas respostas+ - *seguir* - notificar a esta canle de temas novos+ - * silenciar * - bloquear notificacións desta esta canle++ *Retirar regra:*«/discourse remove [número da regra]»+ (pódese atopar o «[número da regra»] executando «/discourse status»)++ * Listar as regras:*«/discourse status»++ *[Experimental] Transcrición da publicación:*«/discourse publicación [n]»+ Crear un borrador de tema sobre o discurso que conteña as últimas publicacións «n» nesta canle++ *Axuda:*«/axuda de Discourse»+ transcript:+ error: "Produciuse un erro ao construír a transcrición. Sentímolo!"+ post_to_discourse: "Prema aquí para facer un borrador dunha publicación en Discourse cunha transcrición"+ api_required: "Desculpe, esta integración non está configurada para admitir a publicación de transcricións."+ view_on_slack: "Ver en %{name} en Slack"+ first_message_pretext: "comezando %{n} mensaxes atrás:"+ last_message_pretext: "e rematando %{n} mensaxes atrás:"+ posted_in: "publicado en %{name}"+ change_first_message: "Cambiar a primeira mensaxe ..."+ change_last_message: "Cambiar a última mensaxe ..."+ loading: "Cargando a transcrición ..."+ telegram:+ unknown_chat: "Este chat non está configurado en %{site_title}. Pídelle a un administrador que engada unha canle co «ID de chat» %{chat_id}."+ known_chat: "Este chat está configurado en %{site_title}. Configúrao no panel de administración. (ID de chat: %{chat_id})"+ message: |-+ <b>%{user}</b> publicado en <a href="%{post_url}">%{title}</a>++ <pre>%{post_excerpt}</pre>+ status:+ header: |+ <b>Regras desta canle</b>+ (se varias regras coinciden cunha publicación, execútase a regra máis alta)+ no_rules: "Non hai regras estabelecidas para esta canle. Execute <code>/help</code> para obter as instrucións."+ rule_string: "<b>%{index})</b> <b>%{filter}</b> publicacións en <b>%{category}</b>"+ rule_string_tags_suffix: " coas etiquetas: <b>%{tags}</b>"+ parse_error: "Desculpe, non o entendín. Execute <code>/help</code> para obter as instrucións."+ create:+ created: "A regra creouse correctamente"+ updated: "A regra actualizouse correctamente"+ error: "Desculpe pero produciuse un erro ao crear esa regra."+ delete:+ success: "A regra eliminouse correctamente"+ error: "Desculpe, produciuse un erro ao eliminar esa regra. Execute <code>/status</code> para unha listaxe de regras."+ not_found:+ tag: "Non se pode atopar a etiqueta <b>%{name}</b>"+ category: "Non foi posíbel atopar a categoría <b>%{name}</b>. Categorías dispoñíbeis: <b>%{list}</b>"+ help: |+ <b>Nova regra:</b> <code>/ [observar|seguir|silenciar] [category] [tag:name]</code>+ (debe especificar un tipo de regra e polo menos unha categoría ou etiqueta)+ - <b>observar</b> - notificar a esta canle de temas novos e novas respostas+ - <b>seguir</b> - notificar a esta canle de temas novos+ - <b>silenciar</b> - bloquear as notificacións a esta canle++ <b>Retirar regra:</b> <code>/remove [regra número]</code>+ (<code>[regra número]</code> pódese atopar executando <code>/status</code>)++ <b>Listar regras:</b> <code>/status</code>++ <b>Axuda:</b> <code>/help</code>+ hipchat:+ message: <b>%{user}</b> publicado en <a href="%{post_url}">%{title}</a>+ mattermost:+ status:+ header: |+ * Regras desta canle *+ (se varias regras coinciden cunha publicación, execútase a regra máis alta)+ no_rules: "Non hai regras estabelecidas para esta canle. Execute «/discourse help» para obter as instrucións."+ rule_string: "*%{index})* *%{filter}* publicacións en *%{category}*"+ rule_string_tags_suffix: " coas etiquetas: *%{tags}*"+ parse_error: "Desculpe, non o entendín. Execute «/discourse help» para obter as instrucións."+ create:+ created: "A regra creouse correctamente"+ updated: "A regra actualizouse correctamente"+ error: "Desculpe pero produciuse un erro ao crear esa regra."+ delete:+ success: "A regra eliminouse correctamente"+ error: "Desculpe, produciuse un erro ao eliminar esa regra. Execute «/discourse status» para unha listaxe de regras."+ not_found:+ tag: "Non se pode atopar a etiqueta *%{name}*."+ category: "Non foi posíbel atopar a categoría *%{name}*. Categorías dispoñíbeis: *%{list}*"+ help: |+ *Nova regra:*«/discourse[observar|seguir|silenciar] [category] [tag:name]»+ (debe especificar un tipo de regra e polo menos unha categoría ou etiqueta)+ - *observar* - notificar a esta canle de temas novos e novas respostas+ - *seguir* - notificar a esta canle de temas novos+ - *silenciar* - bloquear as notificacións a esta canle++ *Retirar regra:* «/discourse remove [regra número]»+ («[regra número]» pódese atopar executando «/discourse status»)++ *Listar regras:*«/discourse status»++ *Axuda:* «/discourse help»+ matrix:+ text_message: "%{user} publicou en %{title} - %{post_url}"+ formatted_message: |+ <b>%{user}</b> publicado en <b><a href='%{post_url}'>%{title}</a></b>+ <blockquote>+ %{excerpt}+ </blockquote>+ zulip:+ message: |+ **%{user}** publicado en ** [%{title}] (%{post_url}) **+ ~~~ cita+ %{excerpt}+ ~~~+ flowdock:+ message_title: "publicado"+ google:+ new_post: "Nova publicación en %{site_title}"+ new_topic: "Novo tema en %{site_title}"+ author: "de %{username}"+ link: "Ver en %{site_title}"+ groupme:+ errors:+ instance_names_issue: "nomes de instancias con formato incorrecto ou non proporcionados"diff --git a/plugins/discourse-chat-integration/config/locales/server.he.yml b/plugins/discourse-chat-integration/config/locales/server.he.ymlnew file mode 100644index 00000000000..73682b87a7b--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.he.yml@@ -0,0 +1,237 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++he:+ site_settings:+ chat_integration_enabled: 'הפעלת התוסף discourse-chat-integration (שילוב צ׳אט ב־Discourse)'+ chat_integration_discourse_username: 'שם המשתמש להתחקות אליו בעת קבלת תוכן.'+ chat_integration_delay_seconds: 'מספר השניות להמתין לאחר יצירת פוסט בטרם שליחת התראות לצ׳אט'+ chat_integration_slack_username: "שם המשתמש של הבוט לפרסום דרך slack"+ chat_integration_slack_enabled: 'הפעלת ספק שילוב הצ׳אט עם Slack'+ chat_integration_slack_access_token: 'אסימון גישה OAuth לאימות מול Slack'+ chat_integration_slack_incoming_webhook_token: 'אסימון הווידוא שמשמש לאמת בקשות נכנסות'+ chat_integration_slack_excerpt_length: 'אורך מהפוסט שמופיע בתקציר ב־Slack'+ chat_integration_slack_icon_url: 'סמל לצד ההודעות שנשלחות ל־Slack (בררת המחדל היא לוגו הפורום)'+ chat_integration_slack_outbound_webhook_url: "לטובת שימוש במערכת ‚ההתליות הנכנסות’ במקום ב־API של OAuth. לא מומלץ."+ chat_integration_slack_transcript_quote: לעטוף את התמלול מ־Slack בתגיות [quote]?+ errors:+ chat_integration_slack_api_configs_are_empty: "עליך לציין כתובת התלייה יוצאת או אסימון גישה"+ chat_integration_telegram_enabled: "הפעלת ספק שילוב הצ׳אט עם טלגרם"+ chat_integration_telegram_access_token: "אסימון הגישה לבוט שלך מה־botfather של טלגרם"+ chat_integration_telegram_excerpt_length: "אורך מהפוסט שמופיע בתקציר בטלגרם"+ chat_integration_telegram_enable_slash_commands: "לאפשר ניהול מינויים בטלגרם דרך ‚פקודות לוכסן’"+ chat_integration_discord_enabled: "הפעלת ספק שילוב הצ׳אט עם Discord"+ chat_integration_discord_message_content: "ההודעה שיש לכלול מעל לסיכום בעת שליחת התראות ל־Discord"+ chat_integration_discord_excerpt_length: "אורך מהפוסט שמופיע בתקציר ב־Discord"+ chat_integration_guilded_enabled: "הפעלת ספק שילוב הצ׳אט עם Guilded"+ chat_integration_guilded_excerpt_length: "אורך מהפוסט שמופיע בתקציר ב־Guilded"+ chat_integration_mattermost_enabled: "הפעלת ספק שילוב הצ׳אט עם Mattermost"+ chat_integration_mattermost_webhook_url: 'כתובת התלייה של Mattermost'+ chat_integration_mattermost_incoming_webhook_token: 'אסימון הווידוא שמשמש לאמת בקשות נכנסות'+ chat_integration_mattermost_icon_url: "סמל לפרסומים אל Mattermost (בררת המחדל היא לוגו הפורום)"+ chat_integration_mattermost_excerpt_length: "אורך מהפוסט שמופיע בתקציר ב־Mattermost"+ chat_integration_matrix_enabled: "הפעלת ספק שילוב הצ׳אט עם Matrix"+ chat_integration_matrix_homeserver: "שרת בית לחיבור. נא לוודא שכללת את הפרוטוקול."+ chat_integration_matrix_access_token: "אסימון גישה לחשבון ה־Matrix של הבוט"+ chat_integration_matrix_excerpt_length: "אורך מהפוסט שמופיע בתקציר ב־Matrix"+ chat_integration_matrix_use_notice: "להשתמש בהתראה במקום בהודעה פשוטה"+ chat_integration_zulip_enabled: "הפעלת ספק שילוב הצ׳אט עם Zulip"+ chat_integration_zulip_server: "כתובת הבסיס לשרת ה־Zulip. נא לוודא שכללת גם את ה־http(s)://"+ chat_integration_zulip_bot_email_address: "כתובת הדוא״ל שמשויכת לבוט שלך ב־Zulip"+ chat_integration_zulip_bot_api_key: "מפתח ה־API לבוט ה־Zulip שלך"+ chat_integration_zulip_excerpt_length: "אורך מהפוסט שמופיע בתקציר ב־Zulip"+ chat_integration_rocketchat_enabled: "הפעלת ספק שילוב הצ׳אט עם Rocket Chat"+ chat_integration_rocketchat_webhook_url: "כתובת התליית השילוב עם Rocket Chat"+ chat_integration_rocketchat_excerpt_length: "אורך מהפוסט שמופיע בתקציר ב־Rocket Chat"+ chat_integration_gitter_enabled: "הפעלת ספק שילוב הצ׳אט עם Gitter"+ chat_integration_flowdock_enabled: "הפעלת ספק שילוב הצ׳אט עם Flowdock"+ chat_integration_flowdock_excerpt_length: "אורך מהפוסט שמופיע בתקציר ב־Flowdock"+ chat_integration_groupme_enabled: "הפעלת ספק שילוב הצ׳אט עם Groupme"+ chat_integration_groupme_excerpt_length: "אורך מהפוסט שמופיע בתקציר ב־Groupme"+ chat_integration_groupme_bot_ids: "*נדרש* מזהי הבוטים, מופרדים ב־, אם יש כמה כאלה"+ chat_integration_groupme_instance_names: "*נדרש* שמות הצ׳אטים ב־GroupMe, מופרדים ב־, אם יש כמה כאלה (באותו הסדר כמו מזהי הבוטים)"+ chat_integration_teams_enabled: "הפעלת ספק שילוב הצ׳אט עם Microsoft Teams"+ chat_integration_teams_excerpt_length: "אורך מהפוסט שמופיע בתקציר Microsoft Teams"+ chat_integration_powerautomate_enabled: "הפעלת ספק השילוב עם Microsoft Power Automate"+ chat_integration_powerautomate_excerpt_length: "אורך מהפוסט שמופיע בתקציר Microsoft Power Automate"+ chat_integration_webex_enabled: "הפעלת ספק שילוב הצ׳אט עם Webex Teams"+ chat_integration_webex_excerpt_length: "אורך מהפוסט שמופיע בתקציר Webex Teams"+ chat_integration_google_enabled: "הפעלת ספק שילוב הצ׳אט עם ‚Google Chat’"+ chat_integration_google_excerpt_length: "אורך מהפוסט שמופיע בתקציר ב־Google Chat"+ dashboard:+ problem:+ channel_errors: "בחלק מערוצי שילובי הצ׳אט יש שגיאות. נא לבקר ב<a href='%{base_path}/admin/plugins/chat-integration'>אגף שילובי הצ׳אט</a> כדי להבין יותר."+ discourse_automation:+ scriptables:+ send_slack_message:+ title: שליחת הודעה ב־Slack+ send_chat_integration_message:+ title: שליחת הודעת שילוב צ׳אט+ chat_integration:+ all_categories: "(כל הקטגוריות)"+ deleted_category: "(קטגוריה שנמחקה)"+ deleted_group: "(קבוצה שנמחקה)"+ group_mention_template: "אזכורים של: @%{name}"+ group_message_template: "הודעות אל: @%{name}"+ topic_tag_changed:+ added_and_removed: "נוספו %{added} והוסרו %{removed}"+ added: "נוספו %{added}"+ removed: "הוסרו %{removed}"+ provider:+ slack:+ status:+ header: |+ *כללים לערוץ זה*+ (אם מספר כללים תואמים לפוסט, יופעל הכלל העליון מביניהם)+ no_rules: "לא מוגדרים כללים לערוץ זה. יש להריץ את הפקודה `/discourse help` להנחיות."+ rule_string: "*%{index})* *%{filter}* פוסטים תחת *%{category}*"+ rule_string_tags_suffix: " עם תגיות: *%{tags}*"+ parse_error: "לא הצלחתי להבין את זה, סליחה. יש להריץ את הפקודה `/discourse help` לקבלת הנחיות."+ create:+ created: "כלל נוצר בהצלחה"+ updated: "כלל עודכן בהצלחה"+ error: "אירעה שגיאה בעת יצירת כלל זה, עמך הסליחה."+ delete:+ success: "כלל נמחק בהצלחה"+ error: "אירעה שגיאה בעת מחיקת הכלל הזה, עמך הסליחה. נא להריץ את הפקודה `/discourse status` לרשימת הכללים."+ not_found:+ tag: "לא ניתן למצוא את התגית *%{name}*."+ category: "לא ניתן למצוא את הקטגוריה *%{name}*. קטגוריות זמינות: *%{list}*"+ help: |+ *כלל חדש:* `/discourse [thread|watch|follow|mute] [קטגוריה] [tag:שם]`+ (עליך לציין סוג כלל ולפחות קטגוריה או תגית אחת)+ - *thread* – להודיע לערוץ הזה אם יש נושאים חדשים, תגובות לשרשור אם ניתן+ - *watch* – להודיע לערוץ הזה אם יש נושאים חדשים או תגובות חדשות+ - *follow* – להודיע לערוץ הזה אם יש נושאים חדשים+ - *mute* – חסימת התראות לערוץ זה++ *הסרת כלל:* `/discourse remove [מספר כלל]`+ (`[מספר כלל]` ניתן למצוא בעזרת `/discourse status`)++ *הצגת כללים:* `/discourse status`++ *[ניסיוני] פרסומים אחרונים:* `/discourse post [n]`+ יצירת נושא טיוטה ב־Discourse שמציג את `n` הפוסטים האחרונים בערוץ זה++ *עזרה:* `/discourse help`+ transcript:+ modal_title: "יצירת תמליל"+ modal_description: "כל ההודעות בשרשור יורכבו לפוסט יחיד בפורום. תינתן לך האפשרות לערוך את התמליל לפני הפרסום."+ transcript_ready: "התמליל מוכן"+ continue_on_discourse: "להמשיך בפורום"+ error: "משהו השתבש במהלך בניית מהלך השיחה, עמך הסליחה!"+ post_to_discourse: "יש ללחוץ כאן כדי ליצור פוסט טיוטה ב־Discourse עם תמלול"+ api_required: "שילוב זה אינו מוגדר לתמוך בפרסום תמלולים, עמך הסליחה."+ view_on_slack: "הצגה בתוך %{name} ב־Slack"+ first_message_pretext: "התחיל לפני %{n} הודעות:"+ last_message_pretext: "והסתיים לפני %{n} הודעות:"+ posted_in: "פורסם תחת %{name}"+ change_first_message: "עריכת ההודעה הראשונה…"+ change_last_message: "עריכת ההודעה האחרונה…"+ loading: "מהלך השיחה נטען…"+ error_users: "שגיאה: לא ניתן למשוך את המשתמשים מ־Slack"+ error_history: "שגיאה: לא ניתן למשוך את היסטוריית הערוץ מ־Slack"+ error_ts: "שגיאה: לא ניתן למשוך את ההודעה המבוקשת מ־Slack"+ messaging:+ topic_tag_changed:+ added_and_removed: "נוספו %{added} והוסרו %{removed}"+ added: "נוספו %{added}"+ removed: "הוסרו %{removed}"+ telegram:+ unknown_chat: "צ׳אט זה אינו מוגדר באתר %{site_title}. נא לבקש מההנהלה להוסיף ערוץ עם ‚מזהה צ׳אט’ כזה %{chat_id}."+ known_chat: "צ׳אט זה מוגדר באתר %{site_title}. יש להגדיר אותו דרך לוח ההנהלה. (מזהה צ׳אט: %{chat_id})"+ message: |-+ <a href="%{post_url}">%{title}</a> פורסם על ידי <b>%{user}</b>++ <pre>%{post_excerpt}</pre>+ status:+ header: |+ <b>כללים לערוץ זה</b>+ (אם מספר כללים תואמים לפוסט, יופעל הכלל העליון מביניהם)+ no_rules: "לא מוגדרים כללים לערוץ זה. יש להריץ את הפקודה <code>/help</code> להנחיות."+ rule_string: "<b>%{index})</b> <b>%{filter}</b> פוסטים תחת<b>%{category}</b>"+ rule_string_tags_suffix: " עם התגיות: <b>%{tags}</b>"+ parse_error: "לא הבנתי במה מדובר, עמך הסליחה. יש להריץ את הפקודה <code>/help</code> לקבלת הנחיות."+ create:+ created: "כלל נוצר בהצלחה"+ updated: "כלל עודכן בהצלחה"+ error: "אירעה שגיאה בעת יצירת כלל זה, עמך הסליחה."+ delete:+ success: "כלל נמחק בהצלחה"+ error: "אירעה שגיאה בעת מחיקת הכלל, עמך הסליחה. יש להריץ את הפקודה <code>/status</code> לקבלת רשימת הכללים."+ not_found:+ tag: "לא ניתן למצוא את התגית <b>%{name}</b>."+ category: "לא ניתן למצוא את הקטגוריה <b>%{name}</b>. הקטגוריות הזמינות: <b>%{list}</b>"+ help: |+ <b>כלל חדש:</b> <code>/[watch|follow|mute] [קטגוריה] [tag:שם]</code>+ (עליך לציין סוג כלל ולפחות קטגוריה או תגית אחת)+ - <b>watch</b> – להודיע לערוץ הזה אם יש נושאים חדשים או תגובות חדשות+ - <b>follow</b> – להודיע לערוץ הזה אם יש נושאים חדשים+ - <b>mute</b> – חסימת התראות לערוץ זה++ <b>הסרת כלל:</b> <code>/remove [מספר כלל]</code>+ (<code>[מספר כלל]</code> ניתן למצוא בעזרת <code>/status</code>)++ <b>הצגת כללים:</b> <code>/status</code>++ <b>עזרה:</b> <code>/help</code>+ hipchat:+ message: <a href="%{post_url}">%{title}</a> פורסם על ידי <b>%{user}</b>+ mattermost:+ status:+ header: |+ *כללים לערוץ זה*+ (אם מספר כללים תואמים לפוסט, יופעל הכלל העליון מביניהם)+ no_rules: "לא מוגדרים כללים לערוץ זה. יש להריץ את הפקודה `/discourse help` להנחיות."+ rule_string: "*%{index})* *%{filter}* פוסטים תחת *%{category}*"+ rule_string_tags_suffix: " עם התגיות: *%{tags}*"+ parse_error: "לא הצלחתי להבין את זה, סליחה. יש להריץ את הפקודה `/discourse help` לקבלת הנחיות."+ create:+ created: "כלל נוצר בהצלחה"+ updated: "כלל עודכן בהצלחה"+ error: "אירעה שגיאה בעת יצירת כלל זה, עמך הסליחה."+ delete:+ success: "כלל נמחק בהצלחה"+ error: "אירעה שגיאה בעת מחיקת הכלל הזה, עמך הסליחה. נא להריץ את הפקודה `/discourse status` לרשימת הכללים."+ not_found:+ tag: "לא ניתן למצוא את התגית *%{name}*."+ category: "לא ניתן למצוא את הקטגוריה *%{name}*. קטגוריות זמינות: *%{list}*"+ help: |+ *כלל חדש:* `/discourse [watch|follow|mute] [קטגוריה] [tag:שם]`+ (עליך לציין סוג כלל ולפחות קטגוריה או תגית אחת)+ - *watch* – להודיע לערוץ הזה אם יש נושאים חדשים או תגובות חדשות+ - *follow* – להודיע לערוץ הזה אם יש נושאים חדשים+ - *mute* – חסימת התראות לערוץ זה++ *הסרת כלל:* `/discourse remove [מספר כלל]`+ (`[מספר כלל]` ניתן למצוא בעזרת `/discourse status`)++ *הצגת כללים:* `/discourse status`++ *עזרה:* `/discourse help`+ matrix:+ text_message: "פרסום חדש תחת %{title} על ידי %{user} - %{post_url}"+ formatted_message: |+ פרסום חדש תחת <b><a href='%{post_url}'>%{title}</a></b> על ידי <b>%{user}</b>+ <blockquote>+ %{excerpt}+ </blockquote>+ zulip:+ message: |+ פרסום חדש תחת **[%{title}](%{post_url})** על ידי **%{user}**+ ~~~quote+ %{excerpt}+ ~~~+ flowdock:+ message_title: "פורסם"+ google:+ new_post: "פוסט חדש באתר %{site_title}"+ new_topic: "נושא חדש באתר %{site_title}"+ author: "מאת @%{username}"+ link: "לצפייה באתר %{site_title}"+ groupme:+ errors:+ instance_names_issue: "שם העותק אינו בתצורה הנכונה או שלא סופק"diff --git a/plugins/discourse-chat-integration/config/locales/server.hr.yml b/plugins/discourse-chat-integration/config/locales/server.hr.ymlnew file mode 100644index 00000000000..a9c07197fc7--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.hr.yml@@ -0,0 +1,24 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++hr:+ chat_integration:+ all_categories: "(sve kategorije)"+ group_mention_template: "spominjanje: @%{name}"+ group_message_template: "poruke na: @%{name}"+ topic_tag_changed:+ added_and_removed: "Dodano %{added} i uklonjeno %{removed}"+ added: "Dodano %{added}"+ removed: "je uklonio %{removed}"+ provider:+ slack:+ messaging:+ topic_tag_changed:+ added_and_removed: "Dodano %{added} i uklonjeno %{removed}"+ added: "Dodano %{added}"+ removed: "je uklonio %{removed}"+ flowdock:+ message_title: "objavljeno"diff --git a/plugins/discourse-chat-integration/config/locales/server.hu.yml b/plugins/discourse-chat-integration/config/locales/server.hu.ymlnew file mode 100644index 00000000000..eb9e7e84792--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.hu.yml@@ -0,0 +1,22 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++hu:+ chat_integration:+ all_categories: "(összes kategória)"+ topic_tag_changed:+ added_and_removed: "Hozzáadva %{added} és eltávolítva %{removed}"+ added: "Hozzáadva %{added}"+ removed: "Eltávolítva %{removed}"+ provider:+ slack:+ messaging:+ topic_tag_changed:+ added_and_removed: "Hozzáadva %{added} és eltávolítva %{removed}"+ added: "Hozzáadva %{added}"+ removed: "Eltávolítva %{removed}"+ flowdock:+ message_title: "közzétett"diff --git a/plugins/discourse-chat-integration/config/locales/server.hy.yml b/plugins/discourse-chat-integration/config/locales/server.hy.ymlnew file mode 100644index 00000000000..98e632e40c3--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.hy.yml@@ -0,0 +1,171 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++hy:+ site_settings:+ chat_integration_enabled: 'Միացրեք discourse-զրույցի-ինտեգրումների մատակարարը'+ chat_integration_discourse_username: 'Օգտատիրոջ օգտանուն, որով նա հանդես կգա բովանդակության բեռնման ժամանակ'+ chat_integration_delay_seconds: 'Վայրկյանների քանակը, որ անհրաժեշտ է սպասել գրառման ստեղծումից հետո՝ մինչև զրույցի ծանուցումներ ուղարկելը'+ chat_integration_slack_enabled: 'Միացրեք slack-զրույցի-ինտեգրումների մատակարարը'+ chat_integration_slack_access_token: 'OAuth Թույլտվության Տոկեն Slack -ի հետ նույնականացման համար'+ chat_integration_slack_incoming_webhook_token: 'Մուտքային հարցումների նույնականացման համար օգտագործվող հաստատման տոկենը'+ chat_integration_slack_excerpt_length: 'Slack գրառման հատվածի երկարություն'+ chat_integration_slack_icon_url: 'slack-ում գրառում կատարելու պատկերակ (լռելյայն նույնն է, ինչ ֆորումի լոգոն)'+ chat_integration_slack_outbound_webhook_url: "Slack -ի 'Մուտքային Webhook' համակարգ OAuth API օգտագործելու փոխարեն: Խորհուրդ չի տրվում:"+ errors:+ chat_integration_slack_api_configs_are_empty: "Դուք պետք է մուտքագրեք կա՛մ դուրս եկող webhook -ի URL, կամ հասանելիության տոկեն:"+ chat_integration_telegram_enabled: "Միացրեք Telegram զրույցի-ինտեգրումների մատակարարը"+ chat_integration_telegram_access_token: "Ձեր բոտի հասանելիության տոկենը Telegram հայր-բոտից"+ chat_integration_telegram_excerpt_length: "Telegram գրառման հատվածի երկարություն"+ chat_integration_telegram_enable_slash_commands: "Թույլատրել telegram-ի բաժանորդագրություններին կառավարվել 'slash commands' -ի միջոցով:"+ chat_integration_discord_enabled: "Միացրեք Discord զրույցի-ինտեգրումների մատակարարը"+ chat_integration_discord_message_content: "Հաղորդագրություն, որը պետք է ներառվի ամփոփման մեջ Discord -ին ծանուցում ուղարկելիս "+ chat_integration_discord_excerpt_length: "Discord գրառման հատվածի երկարություն"+ chat_integration_mattermost_enabled: "Միացրեք Mattermost զրույցի-ինտեգրումների մատակարարը"+ chat_integration_mattermost_webhook_url: 'URL Mattermost webhook -ի համար'+ chat_integration_mattermost_incoming_webhook_token: 'Մուտքային հարցումների նույնականացման համար օգտագործվող վավերացման տոկեն'+ chat_integration_mattermost_icon_url: "Mattermost-ում գրառում կատարելու պատկերակ (լռելյայն նույնն է, ինչ ֆորումի լոգոն)"+ chat_integration_mattermost_excerpt_length: "Mattermost գրառման հատվածի երկարություն"+ chat_integration_matrix_enabled: "Միացրեք Matrix զրույցի-ինտեգրումների մատակարարը"+ chat_integration_matrix_homeserver: "Հոմսերվեր, որի հետ պետք է կապվել: Համոզվեք, որ ներառել եք պրոտոկոլը:"+ chat_integration_matrix_access_token: "Բոտի Matrix հաշվին հասանելիության տոկեն"+ chat_integration_matrix_excerpt_length: "Matrix գրառման հատվածի երկարություն"+ chat_integration_matrix_use_notice: "Հասարակ հաղորդագրության փոխարեն պգտագործեք նշում"+ chat_integration_zulip_enabled: "Միացրեք Zulip զրույցի-ինտեգրումների մատակարարը"+ chat_integration_zulip_server: "Ձեր Zulip սերվերի համար հիմնական URL -ը: Համոզվեք, որ ներառել եք http(s)://"+ chat_integration_zulip_bot_email_address: "Ձեր Zulip բոտի հետ կապակցված էլ. հասցե"+ chat_integration_zulip_bot_api_key: "Ձեր Zulip բոտի API key-ը"+ chat_integration_zulip_excerpt_length: "Zulip գրառման հատվածի երկարություն"+ chat_integration_rocketchat_enabled: "Միացրեք Rocket Chat զրույցի ինտեգրումների մատակարարը"+ chat_integration_rocketchat_webhook_url: "Rocket Chat ինտեգրման webhook -ի URL -ը"+ chat_integration_rocketchat_excerpt_length: "Rocket Chat գրառման հատվածի երկարություն"+ chat_integration_gitter_enabled: "Միացրեք Gitter զրույցի-ինտեգրումների մատակարարը"+ chat_integration_flowdock_enabled: "Միացրեք Flowdock զրույցի-ինտեգրումների մատակարարը"+ chat_integration_flowdock_excerpt_length: "Flowdock գրառման հատվածի երկարություն"+ chat_integration:+ all_categories: "(Բոլոր կատեգորիաները)"+ deleted_category: "(ջնջված կատեգորիա)"+ deleted_group: "(ջնջված խումբ)"+ group_mention_template: "նշումներ՝ @%{name}"+ group_message_template: "հաղորդագրություն դեպի՝ @%{name}"+ provider:+ slack:+ status:+ header: |+ *Կանոններ այս ալիքի համար*+ (եթե գրառմանը համընկնում են բազմակի կանոններ, դուրս է բերվում ամենավերին կանոնը)+ no_rules: "Այս ալիքի համար սահմանված կանոններ չկան: Գործարկեք `/discourse help` հրահանգների համար: "+ rule_string: "*%{index})* *%{filter}* գրառում *%{category}* -ում"+ rule_string_tags_suffix: "հետևյալ թեգերով՝ *%{tags}*"+ parse_error: "Ներողություն, ես չհասկացա դա: Գործարկեք `/discourse help` հրահանգների համար:"+ create:+ created: "Կանոնը հաջողությամբ ստեղված է"+ updated: "Կանոնը հաջողությամբ թարմացված է"+ error: "Ներողություն, այդ կանոնը ստեղծելիս տեղի է ունեցել սխալ:"+ delete:+ success: "Կանոնը հաջողությամբ ջնջվել է"+ error: "Ներողություն, այդ կանոնը ջնջելիս տեղի է ունեցել սխալ: Գործարկեք `/discourse status` կանոնների ցանկի համար:"+ not_found:+ tag: " *%{name}* թեգը չի գտնվել:"+ category: "*%{name}* կատեգորիան չի գտնվել: Հասանելի կատեգորիաներ՝ *%{list}*"+ transcript:+ error: "Ինչ-որ սխալ է տեղի ունեցել կրկնօրինակը ստեղծելիս, ներողություն!"+ post_to_discourse: "Սեղմեք այստեղ՝ Discourse -ում կրնկօրինակի հետ միասին գրառում սևագրելու համար"+ api_required: "Ներողություն, այս ինտեգրումը նախատեսված չէ գրառումների կրնկօրինակների ապահովման համար:"+ view_on_slack: "Դիտել %{name} -ում Slack -ում"+ first_message_pretext: "սկսված %{n} հաղորդագրություն առաջ՝"+ last_message_pretext: "և %{n} հաղորդագրություն առաջ վերջացող՝"+ posted_in: "հրապարակված է %{name}-ում"+ change_first_message: "Փոփոխել առաջին հաղորդագրությունը"+ change_last_message: "Փոփոխել վերջին հաղորդագրությունը..."+ loading: "Կրնկօրինակի բեռնում..."+ telegram:+ unknown_chat: "Այս զրույցը տեղակայված չէ %{site_title}-ում: Խնդրեք ադմինիստրատորին ավելացնել ալիք %{chat_id}'Զրույցի ID' -ով:"+ known_chat: "Այս զրույցը տեղակայված է %{site_title} -ում: Կարգավորեք այն ադմինի կառավարման հարթակում (Զրույցի ID՝ %{chat_id})"+ message: |-+ <b>%{user}</b>-ը գրառում է կատարել <a href="%{post_url}">%{title}</a> -ում++ <pre>%{post_excerpt}</pre>+ status:+ header: |+ <b>Կանոններ այս ալիքի համար</b>+ (եթե գրառմանը համընկնում են բազմակի կանոններ, դուրս է բերվում ամենավերին կանոնը)+ no_rules: "Այս ալիքի համար տեղադրված կանոններ չկան: Գործարկեք <code>/help</code> հրահանգների համար:"+ rule_string: "<b>%{index})</b> <b>%{filter}</b> գրառում <b>%{category}</b> -ում"+ rule_string_tags_suffix: "հետևյալ թեգերով՝ <b>%{tags}</b>"+ parse_error: "Ներողություն, Ես չհասկացա դա: Գործարկեք <code>/help</code> հրահանգների համար:"+ create:+ created: "Կանոնը հաջողությամբ ստեղծված է"+ updated: "Կանոնը հաջողությամբ թարմացված է"+ error: "Ներողություն, այդ կանոնը ստեղծելիս տեղի է ունեցել սխալ:"+ delete:+ success: "Կանոնը հաջողությամբ ջնջվել է"+ error: "Ներողություն, այդ կանոնը ջնջելիս տեղի է ունեցել սխալ: Գործարկեք <code>/status</code> կանոնների ցանկի համար:"+ not_found:+ tag: "<b>%{name}</b> թեգը չի գտնվել:"+ category: "<b>%{name}</b> կատեգորիան չի գտնվել: Հասանելի կատեգորիաներ՝ <b>%{list}</b>"+ help: |+ <b>Նոր կանոն՝</b> <code>/[watch|follow|mute] [category] [tag:name]</code>+ (Դուք պետք է սահմանեք կանոնի տիպ և առնվազն մեկ կատեգորիա կամ թեգ)+ - <b>դիտել</b> – ծանուցել այս ալիքին նոր թեմաների և պատասխանների մասին+ - <b>հետևել</b> – ծանուցել այս ալիքին նոր թեմաների մասին+ - <b>խլացնել</b> – արգելափակել ծանուցումները այս ալիքին++ <b>Հեռացնել կանոնը՝</b> <code>/remove [rule number]</code>+ (<code>[rule number]</code> can be found by running <code>/status</code>)++ <b>Ցուցակավորել կանոնները՝</b> <code>/status</code>++ <b>Օգնություն՝</b> <code>/help</code>+ hipchat:+ message: <b>%{user}</b> -ը գրառում է կատարել <a href="%{post_url}">%{title}</a> -ում+ mattermost:+ status:+ header: |+ *Կանոններ այս ալիքի համարl*+ (եթե գրառմանը համընկնում են բազմակի կանոններ, դուրս է բերվում ամենավերին կանոնը)+ no_rules: "Այս ալիքի համար սահմանված կանոններ չկան: Գործարկեք `/discourse help` հրահանգների համար: "+ rule_string: "*%{index})* *%{filter}* գրառումները *%{category}* -ում"+ rule_string_tags_suffix: "հետևյալ թեգերով՝ *%{tags}*"+ parse_error: "Ներողություն, ես չհասկացա դա: Գործարկեք `/discourse help` հրահանգների համար:"+ create:+ created: "Կանոնը հաջողությամբ ստեղծվել է"+ updated: "Կանոնը հաջողությամբ թարմացված է"+ error: "Ներողություն, այդ կանոնը ստեղծելիս տեղի է ունեցել սխալ:"+ delete:+ success: "Կանոնը հաջողությամբ ջնջվել է"+ error: "Ներողություն, այդ կանոնը ջնջելիս տեղի է ունեցել սխալ: Գործարկեք `/discourse status` կանոնների ցանկի համար:"+ not_found:+ tag: " *%{name}* թեգը չի գտնվել"+ category: " *%{name}* կատեգորիան չի գտնվել: Հասանելի կատեգորիաներ՝ *%{list}*"+ help: |+ *Նոր կանոն՝* `/discourse [watch|follow|mute] [category] [tag:name]`+ (Դուք պետք է սահմանեք կանոնի տիպ և առնվազն մեկ կատեգորիա կամ թեգ )+ - *դիտել* – ծանուցել այս ալիքին նոր թեմաների և պատասխանների մասին+ - *հետևել* – ծանուցել այս ալիքին նոր թեմաների մասին+ - *խլացնել* – արգելափակել ծանուցումները այս ալիքին++ *Հեռացնել կանոնը՝* `/discourse remove [rule number]`+ (`[rule number]` can be found by running `/discourse status`)++ *Ցուցակավորել կանոնները՝* `/discourse status`++ *Օգնություն՝* `/discourse help`+ matrix:+ text_message: "%{user} -ը գրառում է կատարել %{title} -ում - %{post_url}"+ formatted_message: |+ <b>%{user}</b> -ը գրառում է կատարել՝ <b><a href='%{post_url}'>%{title}</a></b>+ <blockquote>+ %{excerpt}+ </blockquote>+ zulip:+ message: |+ **%{user}** -ը գրառում է կատարել **[%{title} -ում](%{post_url})**+ ~~~մեջբերում+ %{excerpt}+ ~~~+ flowdock:+ message_title: "հրապարակված"diff --git a/plugins/discourse-chat-integration/config/locales/server.id.yml b/plugins/discourse-chat-integration/config/locales/server.id.ymlnew file mode 100644index 00000000000..8e87b88d848--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.id.yml@@ -0,0 +1,20 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++id:+ chat_integration:+ all_categories: "(semua kategori)"+ topic_tag_changed:+ added_and_removed: "Ditambahkan %{added} dan dihapus %{removed}"+ added: "Ditambahkan %{added}"+ removed: "Dihapus %{removed}"+ provider:+ slack:+ messaging:+ topic_tag_changed:+ added_and_removed: "Ditambahkan %{added} dan dihapus %{removed}"+ added: "Ditambahkan %{added}"+ removed: "Dihapus %{removed}"diff --git a/plugins/discourse-chat-integration/config/locales/server.it.yml b/plugins/discourse-chat-integration/config/locales/server.it.ymlnew file mode 100644index 00000000000..ddcd6ceaa92--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.it.yml@@ -0,0 +1,237 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++it:+ site_settings:+ chat_integration_enabled: 'Attiva il plugin discourse-chat-integration'+ chat_integration_discourse_username: 'Nome utente da impersonare per il recupero del contenuto'+ chat_integration_delay_seconds: 'Dopo la creazione di un messaggio, numero di secondi di attesa prima di inviare una notifica chat'+ chat_integration_slack_username: "Nome utente del Bot con cui pubblicare su Slack"+ chat_integration_slack_enabled: 'Abilita il fornitore per l''integrazione della chat Slack'+ chat_integration_slack_access_token: 'Token di Accesso OAuth per l''autenticazione con Slack'+ chat_integration_slack_incoming_webhook_token: 'Il token di verifica utilizzato per autenticare le richieste in arrivo'+ chat_integration_slack_excerpt_length: 'Lunghezza dell''estratto del messaggio Slack'+ chat_integration_slack_icon_url: 'Icona da usare nei messaggi su Slack (impostazione predefinita logo del forum)'+ chat_integration_slack_outbound_webhook_url: "Per usare il sistema Slack 'Incoming Webhook' invece delle API OAuth. Sconsigliato."+ chat_integration_slack_transcript_quote: Includere la trascrizione slack tra le etichette [quote]?+ errors:+ chat_integration_slack_api_configs_are_empty: "Devi inserire una URL per il webhook uscente o un token di accesso "+ chat_integration_telegram_enabled: "Abilita il provider per l'integrazione con Telegram"+ chat_integration_telegram_access_token: "Il token di accesso del tuo bot dal botfather di Telegram"+ chat_integration_telegram_excerpt_length: "Lunghezza dell'estratto del messaggio Telegram"+ chat_integration_telegram_enable_slash_commands: "Abilita la gestione delle sottoscrizioni Telegram usando 'comandi slash'"+ chat_integration_discord_enabled: "Abilita il fornitore per l'integrazione con la chat Discord"+ chat_integration_discord_message_content: "Il messaggio da includere sopra il sommario quando si invia una notifica a Discord"+ chat_integration_discord_excerpt_length: "Lunghezza dell'estratto del messaggio Discord"+ chat_integration_guilded_enabled: "Abilita il fornitore per l'integrazione con la chat Guilded"+ chat_integration_guilded_excerpt_length: "Lunghezza dell'estratto del messaggio Guilded"+ chat_integration_mattermost_enabled: "Abilita il fornitore per l'integrazione con la chat Mattermost"+ chat_integration_mattermost_webhook_url: 'URL per il webhook di Mattermost'+ chat_integration_mattermost_incoming_webhook_token: 'Il token di verifica utilizzato per autenticare le richieste in arrivo'+ chat_integration_mattermost_icon_url: "Icona per i messaggi su Mattermost (impostazione predefinita logo del forum)"+ chat_integration_mattermost_excerpt_length: "Lunghezza dell'estratto del messaggio Mattermost"+ chat_integration_matrix_enabled: "Abilita il provider per l'integrazione con Matrix"+ chat_integration_matrix_homeserver: "Homeserver a cui connettersi. Assicurati di includere il protocollo"+ chat_integration_matrix_access_token: "Token di accesso per l'account Matrix del bot"+ chat_integration_matrix_excerpt_length: "Lunghezza dell'estratto del messaggio Matrix"+ chat_integration_matrix_use_notice: "Usa la notifica invece del semplice messaggio"+ chat_integration_zulip_enabled: "Abilita il fornitore per l'integrazione con la chat Zulip"+ chat_integration_zulip_server: "L'URL di base per il tuo server Zulip. Assicurati di includere http(s)://"+ chat_integration_zulip_bot_email_address: "L'indirizzo email associato al tuo bot Zulip"+ chat_integration_zulip_bot_api_key: "La chiave API per il tuo bot Zulip"+ chat_integration_zulip_excerpt_length: "Lunghezza dell'estratto del messaggio Zulip"+ chat_integration_rocketchat_enabled: "Abilita il fornitore per l'integrazione con Rocket Chat"+ chat_integration_rocketchat_webhook_url: "L'URL per il webhook di integrazione di Rocket Chat"+ chat_integration_rocketchat_excerpt_length: "Lunghezza dell'estratto del messaggio Rocket Chat"+ chat_integration_gitter_enabled: "Abilita il fornitore per l'integrazione con la chat Gitter"+ chat_integration_flowdock_enabled: "Abilita il fornitore per l'integrazione con la chat Flowdock"+ chat_integration_flowdock_excerpt_length: "Lunghezza dell'estratto del messaggio Flowdock"+ chat_integration_groupme_enabled: "Abilita il fornitore per l'integrazione della chat Groupme"+ chat_integration_groupme_excerpt_length: "Lunghezza dell'estratto del messaggio Groupme"+ chat_integration_groupme_bot_ids: "ID Bot *richiesti*, separati da ',' se più di uno"+ chat_integration_groupme_instance_names: " Nome della chat GroupMe *richiesto*, separati da ',' se sono più di uno (nello stesso ordine degli ID Bot)"+ chat_integration_teams_enabled: "Abilita il fornitore per l'integrazione della chat Microsoft Teams"+ chat_integration_teams_excerpt_length: "Lunghezza dell'estratto del messaggio Microsoft Team"+ chat_integration_powerautomate_enabled: "Abilita il fornitore per l'integrazione di Microsoft Power Automate"+ chat_integration_powerautomate_excerpt_length: "Lunghezza dell'estratto del messaggio di Microsoft Power Automate"+ chat_integration_webex_enabled: "Abilita il fornitore per l'integrazione della chat WebexTeams"+ chat_integration_webex_excerpt_length: "Lunghezza dell'estratto del messaggio Webex Team"+ chat_integration_google_enabled: "Abilita il fornitore per l'integrazione della chat 'Google Chat'"+ chat_integration_google_excerpt_length: "Lunghezza dell'estratto del messaggio Google Chat"+ dashboard:+ problem:+ channel_errors: "Alcuni canali di integrazione della chat presentano errori. Visita <a href='%{base_path}/admin/plugins/chat-integration'>la sezione di integrazione della chat</a> per saperne di più."+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Invia messaggio Slack+ send_chat_integration_message:+ title: Invia messaggio di Chat-Integration+ chat_integration:+ all_categories: "(tutte le categorie)"+ deleted_category: "(categoria eliminata)"+ deleted_group: "(gruppo eliminato)"+ group_mention_template: "Menzioni di: @%{name}"+ group_message_template: "messaggi a: @%{name}"+ topic_tag_changed:+ added_and_removed: "Aggiunto %{added} e rimosso %{removed}"+ added: "Aggiunto %{added}"+ removed: "Rimosso %{removed}"+ provider:+ slack:+ status:+ header: |+ * Regole per questo canale *+ (se ad un messaggio si applicano più regole, viene eseguita la regola più in alto)+ no_rules: "Non ci sono regole per questo canale. Lancia `/discourse help` per ulteriori istruzioni."+ rule_string: "*%{index})* *%{filter}* messaggi in *%{category}*"+ rule_string_tags_suffix: " con le etichette: *%{tags}*"+ parse_error: "Scusa, non ho capito. Lancia '/discourse help' per le istruzioni."+ create:+ created: "Regola creata con successo"+ updated: "Regola aggiornata con successo"+ error: "Spiacenti, si è verificato un errore durante la creazione della regola."+ delete:+ success: "Regola cancellata con successo"+ error: "Siamo spiacenti, si è verificato un errore durante l'eliminazione della regola. Lancia `/discourse status` per vedere l'elenco delle regole. "+ not_found:+ tag: "Non è stato possibile trovare l'Etichetta *%{name}*."+ category: "La categoria *%{name}* non può essere trovata. Categorie disponibili: *%{list}*"+ help: |+ *Nuova regola:* `/discourse [thread|watch|follow|mute] [category] [tag:name]`+ (devi specificare un tipo di regola e almeno una categoria o tag)+ - *thread* – notifica questo canale per nuovi argomenti, risposte ai thread se possibile+ - *watch* – notifica questo canale per nuovi argomenti e nuove risposte+ - *follow* – notifica questo canale per nuovi argomenti+ - *mute* – blocca le notifiche a questo canale++ *Rimuovi regola:* `/discourse remove [numero regola]`+ (`[numero regola]` può essere trovato eseguendo `/discourse status`)++ *Elenca regole:* `/discourse status`++ *[Experimental] Trascrizione messaggio:* `/discourse post [n]`+ Crea una bozza di argomento su discourse contenente gli ultimi `n` messaggi in questo canale++ *Guida:* `/discourse help`+ transcript:+ modal_title: "Crea trascrizione"+ modal_description: "Tutti i messaggi nel thread verranno raggruppati in un singolo messaggio del forum. Avrai la possibilità di modificare la trascrizione prima della pubblicazione."+ transcript_ready: "Trascrizione pronta"+ continue_on_discourse: "Continua sul forum"+ error: "Spiacenti, qualcosa è andato storto durante la costruzione della trascrizione!"+ post_to_discourse: "Fai clic qui per creare una bozza su Discourse con una trascrizione"+ api_required: "Spiacenti, questa integrazione non è configurata per supportare la pubblicazione di trascrizioni."+ view_on_slack: "Visualizzato in %{name} su Slack"+ first_message_pretext: "iniziato %{n} messaggi fa:"+ last_message_pretext: "e finito %{n} messaggi fa:"+ posted_in: "pubblicato in %{name}"+ change_first_message: "Cambia il primo messaggio..."+ change_last_message: "Cambia l'ultimo messaggio..."+ loading: "Sto caricando la trascrizione..."+ error_users: "Errore: impossibile recuperare gli utenti da Slack"+ error_history: "Errore: impossibile recuperare la cronologia del canale da Slack"+ error_ts: "Errore: impossibile recuperare il messaggio richiesto da Slack"+ messaging:+ topic_tag_changed:+ added_and_removed: "Aggiunto %{added} e rimosso %{removed}"+ added: "Aggiunto %{added}"+ removed: "Rimosso %{removed}"+ telegram:+ unknown_chat: "Questa chat non è configurata su %{site_title}. Chiedi a un amministratore di aggiungere un canale con 'Chat ID' %{chat_id}."+ known_chat: "Questa chat è configurata su %{site_title}. Configurala nel pannello di amministrazione. (Chat ID: %{chat_id})"+ message: |-+ <b>%{user}</b> pubblicato in <a href="%{post_url}">%{title}</a>++ <pre>%{post_excerpt}</pre>+ status:+ header: |+ <b>Regole per questo canale</b>+ (se ad un messaggio si applicano più regole, viene eseguita la regola più in alto)+ no_rules: "Non si sono regole impostate per questo canale. Lancia <code>/help</code> per le istruzioni."+ rule_string: "<b>%{index})</b> <b>%{filter}</b> messaggi in <b>%{category}</b>"+ rule_string_tags_suffix: "con le etichette: <b>%{tags}</b>"+ parse_error: "Scusa, non ho capito. Lancia <code>/help</code> per le istruzioni."+ create:+ created: "Regola creata con successo"+ updated: "Regola aggiornata con successo"+ error: "Spiacenti, si è verificato un errore durante la creazione della regola."+ delete:+ success: "Regola cancellata con successo"+ error: "Spiacenti, si è verificato un errore durante l'eliminazione della regola. Lancia <code>/status</code> per vedere l'elenco delle regole."+ not_found:+ tag: "L'etichetta <b>%{name}</b> non è stata trovata."+ category: "La categoria <b>%{name}</b> non è stata trovata. Categorie disponibili: <b>%{list}</b>"+ help: |+ <b>Nuova regola:</b> <code>/[watch|follow|mute] [category] [tag:name]</code>+ (devi specificare un tipo di regola e almeno una categoria o una etichetta)+ - <b>watch</b> – invia una notifica su questo canale per nuovi argomenti e nuove risposte+ - <b>follow</b> – invia una notifica su questo canale per nuovi argomenti+ - <b>mute</b> – blocca le notifiche su questo canale++ <b>Rimuovi regola:</b> <code>/remove [rule number]</code>+ (<code>[rule number]</code> può essere trovato lanciando <code>/status</code>)++ <b>Elenco delle regole:</b> <code>/status</code>++ <b>Aiuto:</b> <code>/help</code>+ hipchat:+ message: <b>%{user}</b> pubblicato in <a href="%{post_url}">%{title}</a>+ mattermost:+ status:+ header: |+ *Regole per questo canale*+ (se a un messaggio si applicano più regole, viene eseguita la regola più in alto)+ no_rules: "Non ci sono regole per questo canale. Lancia `/discourse help` per ulteriori istruzioni."+ rule_string: "*%{index})* *%{filter}* messaggi in *%{category}*"+ rule_string_tags_suffix: " con le etichette: *%{tags}*"+ parse_error: "Scusa, non ho capito. Lancia '/discourse help' per le istruzioni."+ create:+ created: "Regola creata con successo"+ updated: "Regola aggiornata con successo"+ error: "Spiacenti, si è verificato un errore durante la creazione della regola."+ delete:+ success: "Regola cancellata con successo"+ error: "Siamo spiacenti, si è verificato un errore durante l'eliminazione di tale regola. Lancia `/discourse status` per vedere l'elenco delle regole. "+ not_found:+ tag: "Non è stato possibile trovare l'etichetta *%{name}*."+ category: "La categoria *%{name}* non è stata trovata. Categorie disponibili: *%{list}*"+ help: |+ *Nuova regola:* `/discourse [watch|follow|mute] [category] [tag:name]`+ (devi specificare un tipo di regola e almeno una categoria o una etichetta)+ - *watch* – invia una notifica su questo canale per nuovi argomenti e nuove risposte+ - *follow* – invia una notifica su questo canale per nuovi argomenti+ - *mute* – blocca le notifiche su questo canale++ *Rimuovi regola:* `/discourse remove [rule number]`+ (`[rule number]` può essere trovato lanciando `/discourse status`)++ *Elenco delle regole::* `/discourse status`++ *Aiuto:* `/discourse help`+ matrix:+ text_message: "%{user} pubblicato in %{title} - %{post_url}"+ formatted_message: |+ <b>%{user}</b> pubblicato in <b><a href='%{post_url}'>%{title}</a></b>+ <blockquote>+ %{excerpt}+ </blockquote>+ zulip:+ message: |+ **%{user}** pubblicato in **[%{title}](%{post_url})**+ ~~~quote+ %{excerpt}+ ~~~+ flowdock:+ message_title: "pubblicato"+ google:+ new_post: "Nuovo messaggio su %{site_title}"+ new_topic: "Nuovo argomento su %{site_title}"+ author: "da @%{username}"+ link: "Visualizza su %{site_title}"+ groupme:+ errors:+ instance_names_issue: "nomi di istanze formattati erroneamente o non forniti"diff --git a/plugins/discourse-chat-integration/config/locales/server.ja.yml b/plugins/discourse-chat-integration/config/locales/server.ja.ymlnew file mode 100644index 00000000000..3d2f5a0760e--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.ja.yml@@ -0,0 +1,225 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ja:+ site_settings:+ chat_integration_enabled: 'discourse-chat-integration プラグインを有効にする'+ chat_integration_discourse_username: 'コンテンツを取得するときのユーザーのユーザー名。'+ chat_integration_delay_seconds: '投稿が作成されてからチャット通知を送信するまでの秒数'+ chat_integration_slack_username: "Slack に投稿するボットのユーザー名"+ chat_integration_slack_enabled: 'Slack の chat-integration プロバイダーを有効にする'+ chat_integration_slack_access_token: 'Slack で認証するための OAuth アクセストークン'+ chat_integration_slack_incoming_webhook_token: '着信リクエストの認証に使用される検証トークン'+ chat_integration_slack_excerpt_length: 'Slack 投稿の抜粋の長さ'+ chat_integration_slack_icon_url: 'Slack に投稿する際のアイコン(デフォルトはフォーラムのロゴ)'+ chat_integration_slack_outbound_webhook_url: "OAuth API の代わりに Slack の「着信 Webhook」システムを使用する場合。推奨されません。"+ chat_integration_slack_transcript_quote: Slack トランスクリプトを [quote] タグで囲みますか?+ errors:+ chat_integration_slack_api_configs_are_empty: "送信 Webhook URL またはアクセストークンを入力する必要があります"+ chat_integration_telegram_enabled: "Telegram の chat-integration プロバイダーを有効にする"+ chat_integration_telegram_access_token: "Telegram ボットファーザーからのボットのアクセストークン"+ chat_integration_telegram_excerpt_length: "Telegram 投稿の抜粋の長さ"+ chat_integration_telegram_enable_slash_commands: "「スラッシュコマンド」を使用した Telegram のサブスクリプション管理を許可する"+ chat_integration_discord_enabled: "Discord の chat-integration プロバイダーを有効にする"+ chat_integration_discord_message_content: "Discord に通知を送信するときに要約の上に含めるメッセージ"+ chat_integration_discord_excerpt_length: "Discord 投稿の抜粋の長さ"+ chat_integration_guilded_enabled: "Guilded チャット統合プロバイダーを有効にする"+ chat_integration_guilded_excerpt_length: "Guilded 投稿の抜粋の長さ"+ chat_integration_mattermost_enabled: "Mattermost の chat-integration プロバイダーを有効にする"+ chat_integration_mattermost_webhook_url: 'Mttermost の Webhook の URL'+ chat_integration_mattermost_incoming_webhook_token: '着信リクエストの認証に使用される検証トークン'+ chat_integration_mattermost_icon_url: "Mattermost に投稿する際のアイコン(デフォルトはフォーラムのロゴ)"+ chat_integration_mattermost_excerpt_length: "Mattermost 投稿の抜粋の長さ"+ chat_integration_matrix_enabled: "Matrix チャット統合プロバイダーを有効にする"+ chat_integration_matrix_homeserver: "接続先のホームサーバー。必ずプロトコルを含めてください"+ chat_integration_matrix_access_token: "ボットの Matrix アカウントのアクセストークン"+ chat_integration_matrix_excerpt_length: "Matrix 投稿の抜粋の長さ"+ chat_integration_matrix_use_notice: "プレーンメッセージの代わりに通知を使用する"+ chat_integration_zulip_enabled: "Zulip チャット統合プロバイダーを有効にする"+ chat_integration_zulip_server: "Zulip サーバーのベース URL。必ず http(s):// を含めてください"+ chat_integration_zulip_bot_email_address: "Zulip ボットに関連付けられているメールアドレス"+ chat_integration_zulip_bot_api_key: "Zulip ボットの API キー"+ chat_integration_zulip_excerpt_length: "Zulip 投稿の抜粋の長さ"+ chat_integration_rocketchat_enabled: "Rocket Chat チャット統合プロバイダーを有効にする"+ chat_integration_rocketchat_webhook_url: "Rocket Chat 統合 Webhook の URL"+ chat_integration_rocketchat_excerpt_length: "Rocket Chat 投稿の抜粋の長さ"+ chat_integration_gitter_enabled: "Gitter チャット統合プロバイダーを有効にする"+ chat_integration_flowdock_enabled: "Flowdock チャット統合プロバイダーを有効にする"+ chat_integration_flowdock_excerpt_length: "Flowdock 投稿の抜粋の長さ"+ chat_integration_groupme_enabled: "Groupme チャット統合プロバイダーを有効にする"+ chat_integration_groupme_excerpt_length: "Groupme 投稿の抜粋の長さ"+ chat_integration_groupme_bot_ids: "*必須*のボット ID。複数ある場合は「,」で区切ります"+ chat_integration_groupme_instance_names: " *必須*の GroupMe チャットの名前。複数ある場合は「,」で区切ります(ボット ID と同じ順序)。"+ chat_integration_teams_enabled: "Microsoft Teams チャット統合プロバイダーを有効にする"+ chat_integration_teams_excerpt_length: "Microsoft Teams 投稿の抜粋の長さ"+ chat_integration_powerautomate_enabled: "Microsoft Power Automate 統合プロバイダーを有効にする"+ chat_integration_powerautomate_excerpt_length: "Microsoft Power Automate 投稿の抜粋の長さ"+ chat_integration_webex_enabled: "Webex Teams チャット統合プロバイダーを有効にする"+ chat_integration_webex_excerpt_length: "Webex Teams 投稿の抜粋の長さ"+ chat_integration_google_enabled: "Google チャット チャット統合プロバイダーを有効にする"+ chat_integration_google_excerpt_length: "Google チャット投稿の抜粋の長さ"+ dashboard:+ problem:+ channel_errors: "一部のチャット統合チャンネルにエラーがあります。詳細については、<a href='%{base_path}/admin/plugins/chat-integration'>チャット統合のセクション</a>をご覧ください。"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Slack メッセージを送信する+ send_chat_integration_message:+ title: チャット統合メッセージの送信+ chat_integration:+ all_categories: "(すべてのカテゴリ)"+ deleted_category: "(削除されたカテゴリ)"+ deleted_group: "(削除されたグループ)"+ group_mention_template: "メンション: @%{name}"+ group_message_template: "メッセージの宛先: @%{name}"+ topic_tag_changed:+ added_and_removed: "%{added} を追加して %{removed} を削除しました"+ added: "%{added} を追加しました"+ removed: "%{removed} を削除しました"+ provider:+ slack:+ status:+ header: |+ *このチャンネルのルール*+ (複数のルールが投稿に一致する場合、最上位のルールが実行されます)+ no_rules: "このチャンネルに設定されたルールはありません。`/discourse help` で手順を確認できます。"+ rule_string: "*%{index})* *%{category}* の投稿を*%{filter}*"+ rule_string_tags_suffix: " タグ: *%{tags}*"+ parse_error: "そのコマンドは存在しません。 `/discource help' で利用できるコマンドを確認できます。"+ create:+ created: "ルールを正常に作成しました"+ updated: "ルールを正常に更新しました"+ error: "申し訳ありませんが、ルールの作成中にエラーが発生しました。"+ delete:+ success: "ルールを正常に削除しました"+ error: "申し訳ありませんが、ルールの削除中にエラーが発生しました。\nルール一覧は `/discourse status`で確認できます。"+ not_found:+ tag: "*%{name}* タグが見つかりません。"+ category: "*%{name}* カテゴリが見つかりません。使用可能なカテゴリ: *%{list}*"+ help: |+ *新しいルール:* `/discourse [thread|watch|follow|mute] [category] [tag:name]`+ (ルールの種類と少なくとも 1 つのカテゴリまたはタグを指定する必要があります)+ - *thread* - 新しいトピックのためにこのチャンネルに通知し、可能であればスレッドの返信を行う+ - *watch* - 新しいトピックと新しい返信をこのチャンネルに通知する+ - *follow* - 新しいトピックをこのチャンネルに通知する+ - *mute* - このチャンネルへの通知をブロックする++ *ルールの削除:* `/discourse remove [ルール番号]`+ (`[ルール番号]` は `/discourse status` で確認できます。)++ *ルールの一覧:* `/discourse status`++ *[実験] 投稿のトランスクリプト:* `/discourse post [n]`+ Discourse にこのチャンネルの最後の `n` 件の投稿を含む下書きトピックを作成する++ *ヘルプ:* `/discourse help`+ transcript:+ modal_title: "トランスクリプトの作成"+ modal_description: "スレッド内のすべてのメッセージは 1 つのフォーラム投稿にまとめられます。投稿する前にトランスクリプトを編集する機会があります。"+ transcript_ready: "トランスクリプトの準備完了"+ continue_on_discourse: "フォーラムに進む"+ error: "トランスクリプトの作成中に問題が発生しました!"+ post_to_discourse: "トランスクリプトを使用して Discourse の投稿の下書きを作成するにはここをクリックします"+ api_required: "申し訳ありませんが、この統合はトランスクリプトの投稿をサポートするように設定されていません。"+ view_on_slack: "Slack で %{name} を表示"+ first_message_pretext: "%{n} 件前のメッセージから開始:"+ last_message_pretext: "%{n} 件前のメッセージで終了:"+ posted_in: "%{name} に投稿しました"+ change_first_message: "最初のメッセージを変更..."+ change_last_message: "最後のメッセージを変更..."+ loading: "トランスクリプトを読み込み中..."+ error_users: "エラー: Slack からユーザーを取得できません"+ error_history: "エラー: Slack からチャンネル履歴を取得できません"+ error_ts: "エラー: Slack からリクエストされたメッセージを取得できません"+ messaging:+ topic_tag_changed:+ added_and_removed: "%{added} を追加して %{removed} を削除しました"+ added: "%{added} を追加しました"+ removed: "%{removed} を削除しました"+ telegram:+ unknown_chat: "このチャットは %{site_title} でセットアップされていません。「チャット ID」%{chat_id} のチャンネルを追加するよう、管理者に依頼してください。"+ known_chat: "このチャットは %{site_title} でセットアップ済みです。管理者パネルで構成してください。(チャット ID: %{chat_id})"+ message: |-+ <b>%{user}</b> が「<a href="%{post_url}">%{title}</a>」に投稿しました++ <pre>%{post_excerpt}</pre>+ status:+ header: |+ <b>このチャンネルのルール</b>+ (複数のルールが投稿に一致する場合、最上位のルールが実行されます)+ no_rules: "このチャンネルに設定されたルールはありません。<code>/help</code> で手順を確認できます。"+ rule_string: "<b>%{index})</b> <b>%{category}</b> 内の投稿を<b>%{filter}</b>"+ rule_string_tags_suffix: " タグ: <b>%{tags}</b>"+ parse_error: "残念ながら、そのコマンドを理解できません。<code>/help</code> で手順を確認できます。"+ create:+ created: "ルールを正常に作成しました"+ updated: "ルールを正常に更新しました"+ error: "申し訳ありませんが、ルールの作成中にエラーが発生しました。"+ delete:+ success: "ルールを正常に削除しました"+ error: "申し訳ありませんが、ルールの削除中にエラーが発生しました。<code>/status</code> でルールの一覧を確認できます。"+ not_found:+ tag: "<b>%{name}</b> タグが見つかりません。"+ category: "<b>%{name}</b> カテゴリが見つかりません。使用可能なカテゴリ: <b>%{list}</b>"+ help: |+ <b>新しいルール:</b> <code>/[watch|follow|mute] [category] [tag:name]</code>+ (ルールの種類と少なくとも 1 つのカテゴリまたはタグを指定する必要があります)+ - <b>watch</b> - 新しいトピックや新しい返信をこのチャンネルに通知する+ - <b>follow</b> - 新しいトピックをこのチャンネルに通知する+ - <b>mute</b> - このチャンネルへの通知をミュートにする++ <b>ルールの削除:</b> <code>/remove [ルール番号]</code>+ (<code>[ルール番号]</code>は <code>/status</code> を実行することで見つけることができます)++ <b>ルール一覧:</b> <code>/status</code>++ <b>ヘルプ:</b> <code>/help</code>+ hipchat:+ message: <b>%{user}</b> が「<a href="%{post_url}">%{title}</a>」に投稿しました+ mattermost:+ status:+ header: |+ *このチャンネルのルール*+ (複数のルールが投稿に一致する場合、最上位のルールが実行されます)+ no_rules: "このチャンネルに設定されたルールはありません。`/discourse help` で手順を確認できます。"+ rule_string: "*%{index})* *%{category}* の投稿を*%{filter}*"+ rule_string_tags_suffix: " タグ: *%{tags}*"+ parse_error: "残念ながら、そのコマンドを理解できません。`/discourse help` で手順を確認できます。"+ create:+ created: "ルールを正常に作成しました"+ updated: "ルールを正常に更新しました"+ error: "申し訳ありませんが、ルールの作成中にエラーが発生しました。"+ delete:+ success: "ルールを正常に削除しました"+ error: "申し訳ありませんが、ルールの削除中にエラーが発生しました。`/discourse status` でルールの一覧を確認できます。"+ not_found:+ tag: "*%{name}* タグが見つかりません。"+ category: "*%{name}* カテゴリが見つかりません。使用可能なカテゴリ: *%{list}*"+ help: "*新しいルール:* `/discourse [watch|follow|mute] [category] [tag:name]`\n(ルールの種類と少なくとも 1 つのカテゴリまたはタグを指定する必要があります)\n- *watch* - 新しいトピックと新しい返信をこのチャンネルに通知する\n- *follow* - 新しいトピックをこのチャンネルに通知する\n- *mute* - このチャンネルへの通知をミュートにする\n\n*ルールの削除:* `/discourse remove [ルール番号]` \n(`[ルール番号]` は `/discourse status` で確認できます。)\n\n*ルール一覧:* `/discourse status`\n\n*ヘルプ:* `/discourse help`\n"+ matrix:+ text_message: "%{user} が「%{title}」に投稿しました - %{post_url}"+ formatted_message: |+ <b>%{user}</b> が「<b><a href='%{post_url}'>%{title}</a></b>」に投稿しました+ <blockquote>+ %{excerpt}+ </blockquote>+ zulip:+ message: |+ **%{user}** が「**[%{title}]」(%{post_url})**に投稿しました+ ~~~quote+ %{excerpt}+ ~~~+ flowdock:+ message_title: "投稿しました"+ google:+ new_post: "「%{site_title}」に新しい投稿があります"+ new_topic: "「%{site_title}」に新しいトピックがあります"+ author: "作成者: @%{username}"+ link: "「%{site_title}」で表示"+ groupme:+ errors:+ instance_names_issue: "インスタンス名のフォーマットが誤っているか、指定されていません"diff --git a/plugins/discourse-chat-integration/config/locales/server.ko.yml b/plugins/discourse-chat-integration/config/locales/server.ko.ymlnew file mode 100644index 00000000000..dccb22ac5d6--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.ko.yml@@ -0,0 +1,124 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ko:+ site_settings:+ chat_integration_enabled: '담론 채팅 통합 플러그인 사용'+ chat_integration_discourse_username: '컨텐츠를 가져올 때 작동 할 사용자의 사용자 이름입니다.'+ chat_integration_delay_seconds: '채팅 알림을 보내기 전에 포스트 작성 후 대기하는 시간 (초)'+ chat_integration_slack_username: "느슨하게 게시 할 봇의 사용자 이름"+ chat_integration_slack_enabled: '슬랙 채팅 통합 제공자 사용'+ chat_integration_slack_access_token: '슬랙으로 인증하기위한 OAuth 액세스 토큰'+ chat_integration_slack_incoming_webhook_token: '들어오는 요청을 인증하는 데 사용되는 확인 토큰'+ chat_integration_slack_excerpt_length: '느슨한 게시물 발췌 길이'+ chat_integration_slack_icon_url: '느슨하게 게시 할 아이콘 (기본값은 포럼 로고)'+ chat_integration_slack_outbound_webhook_url: "OAuth API 대신 Slack의 'Incoming Webhook'시스템을 사용합니다. 권장하지 않습니다."+ errors:+ chat_integration_slack_api_configs_are_empty: "발신 웹 후크 URL 또는 액세스 토큰을 입력해야합니다"+ chat_integration_telegram_enabled: "텔레 그램 채팅 통합 제공자 사용"+ chat_integration_telegram_access_token: "Telegram botfather의 봇 액세스 토큰"+ chat_integration_telegram_excerpt_length: "전보 게시물 발췌 길이"+ chat_integration_telegram_enable_slash_commands: "'슬래시 명령'을 사용하여 전보 구독을 관리 할 수 있습니다."+ chat_integration_discord_enabled: "Discord 채팅 통합 공급자를 사용하도록 설정"+ chat_integration_discord_message_content: "Discord에 알림을 보낼 때 요약 위에 포함 할 메시지"+ chat_integration_discord_excerpt_length: "불일치 포스트 발췌 길이"+ chat_integration_mattermost_enabled: "Mattermost 채팅 통합 제공자 사용"+ chat_integration_mattermost_webhook_url: 'Mattermost 웹 후크의 URL'+ chat_integration_mattermost_incoming_webhook_token: '들어오는 요청을 인증하는 데 사용되는 확인 토큰'+ chat_integration_mattermost_icon_url: "Mattermost에 대한 게시물 아이콘 (기본값은 포럼 로고)"+ chat_integration_mattermost_excerpt_length: "가장 중요한 포스트 발췌 길이"+ chat_integration_matrix_enabled: "매트릭스 채팅 통합 제공자 사용"+ chat_integration_matrix_homeserver: "연결할 홈 서버. 프로토콜을 포함해야합니다"+ chat_integration_matrix_access_token: "봇의 매트릭스 계정에 대한 액세스 토큰"+ chat_integration_matrix_excerpt_length: "매트릭스 포스트 발췌 길이"+ chat_integration_matrix_use_notice: "일반 메시지 대신 알림 사용"+ chat_integration_zulip_enabled: "Zulip 채팅 통합 제공자 사용"+ chat_integration_zulip_server: "Zulip 서버의 기본 URL입니다. http (s) : //를 포함해야합니다."+ chat_integration_zulip_bot_email_address: "Zulip 봇과 관련된 이메일 주소"+ chat_integration_zulip_bot_api_key: "Zulip 봇의 API 키"+ chat_integration_zulip_excerpt_length: "Zulip 포스트 발췌 길이"+ chat_integration_rocketchat_enabled: "로켓 채팅 채팅 통합 공급자 사용"+ chat_integration_rocketchat_webhook_url: "로켓 채팅 통합 웹 후크의 URL"+ chat_integration_rocketchat_excerpt_length: "로켓 채팅 게시물 발췌 길이"+ chat_integration_gitter_enabled: "Gitter chat 통합 제공자 사용"+ chat_integration_flowdock_enabled: "Flowdock 채팅 통합 공급자 사용"+ chat_integration_flowdock_excerpt_length: "Flowdock 포스트 발췌 길이"+ chat_integration:+ all_categories: "(전체 카테고리)"+ deleted_category: "(삭제 된 카테고리)"+ deleted_group: "(삭제 된 그룹)"+ group_mention_template: "언급 : @ %{name}"+ group_message_template: "메시지 : @ %{name}"+ provider:+ slack:+ status:+ no_rules: "이 채널에 설정된 규칙이 없습니다. 지침을 보려면`/ discourse help`를 실행하십시오."+ rule_string: "* %{index}) * * %{filter} * * %{category}의 게시물 *"+ rule_string_tags_suffix: "태그 포함 : * %{tags} *"+ parse_error: "죄송합니다. 이해가되지 않았습니다. 지침을 보려면`/ discourse help`를 실행하십시오."+ create:+ created: "규칙이 성공적으로 생성되었습니다"+ updated: "규칙이 성공적으로 업데이트되었습니다"+ error: "해당 규칙을 만드는 중 오류가 발생했습니다."+ delete:+ success: "규칙이 성공적으로 삭제되었습니다"+ error: "해당 규칙을 삭제하는 중에 오류가 발생했습니다. 규칙 목록을 보려면`/ discourse status`를 실행하십시오."+ not_found:+ tag: "* %{name} * 태그를 찾을 수 없습니다."+ category: "* %{name} * 카테고리를 찾을 수 없습니다. 사용 가능한 카테고리 : * %{list} *"+ transcript:+ error: "대화 내용을 작성할 때 문제가 발생했습니다. 죄송합니다."+ post_to_discourse: "대화 내용으로 담론에 대한 게시물을 작성하려면 여기를 클릭하십시오."+ api_required: "죄송합니다.이 통합은 대화 내용 게시를 지원하도록 설정되지 않았습니다."+ view_on_slack: "View in %{name} 슬랙"+ first_message_pretext: "%{n} 메시지 시작하기 :"+ last_message_pretext: "및 종료 %{n} 메시지 :"+ posted_in: "%{name}에 게시"+ change_first_message: "첫 번째 메시지 변경 ..."+ change_last_message: "마지막 메시지 변경 ..."+ loading: "성적표로드 중 ..."+ telegram:+ unknown_chat: "이 채팅은 %{site_title}에 설정되어 있지 않습니다. 관리자에게 '채팅 ID'%{chat_id}의 채널을 추가하도록 요청하십시오."+ known_chat: "이 채팅은 %{site_title}에 설정되어 있습니다. 관리자 패널에서 구성하십시오. (채팅 ID : %{chat_id})"+ message: |-+ <b>%{title}에</b> 게시 된 <a href="%{post_url}">%{user}</a> <pre> %{post_excerpt} </pre>+ status:+ no_rules: "이 채널에 설정된 규칙이 없습니다. 지침을 보려면 <code>/help</code> 를 실행하십시오."+ rule_string: "<b>%{index})</b> <b>%{filter}의</b> 게시물 <b>%{category}</b>"+ rule_string_tags_suffix: "태그와 함께 : <b>%{tags}</b>"+ parse_error: "죄송합니다. 이해가되지 않았습니다. 지침을 보려면 <code>/help</code> 를 실행하십시오."+ create:+ created: "규칙이 성공적으로 생성되었습니다"+ updated: "규칙이 성공적으로 업데이트되었습니다"+ error: "해당 규칙을 만드는 중 오류가 발생했습니다."+ delete:+ success: "규칙이 성공적으로 삭제되었습니다"+ error: "해당 규칙을 삭제하는 중에 오류가 발생했습니다. 규칙 목록을 보려면 <code>/status</code> 를 실행하십시오."+ not_found:+ tag: "<b>%{name}</b> 태그를 찾을 수 없습니다."+ category: "<b>%{name}</b> 카테고리를 찾을 수 없습니다. 사용 가능한 카테고리 : <b>%{list}</b>"+ hipchat:+ message: <b>%{title}에</b> 게시 된 <a href="%{post_url}">%{user}</a>+ mattermost:+ status:+ no_rules: "이 채널에 설정된 규칙이 없습니다. 지침을 보려면`/ discourse help`를 실행하십시오."+ rule_string: "* %{index}) * * %{filter} * * %{category}의 게시물 *"+ rule_string_tags_suffix: "태그 포함 : * %{tags} *"+ parse_error: "죄송합니다. 이해가되지 않았습니다. 지침을 보려면`/ discourse help`를 실행하십시오."+ create:+ created: "규칙이 성공적으로 생성되었습니다"+ updated: "규칙이 성공적으로 업데이트되었습니다"+ error: "해당 규칙을 만드는 중 오류가 발생했습니다."+ delete:+ success: "규칙이 성공적으로 삭제되었습니다"+ error: "해당 규칙을 삭제하는 중에 오류가 발생했습니다. 규칙 목록을 보려면`/ discourse status`를 실행하십시오."+ not_found:+ tag: "* %{name} * 태그를 찾을 수 없습니다."+ category: "* %{name} * 카테고리를 찾을 수 없습니다. 사용 가능한 카테고리 : * %{list} *"+ matrix:+ text_message: "%{title}-%{post_url}에 게시 된 %{user}"+ flowdock:+ message_title: "게시"diff --git a/plugins/discourse-chat-integration/config/locales/server.lt.yml b/plugins/discourse-chat-integration/config/locales/server.lt.ymlnew file mode 100644index 00000000000..0fbcb42e8ad--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.lt.yml@@ -0,0 +1,12 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++lt:+ chat_integration:+ all_categories: "(Visos kategorijos)"+ provider:+ flowdock:+ message_title: "paskelbta"diff --git a/plugins/discourse-chat-integration/config/locales/server.lv.yml b/plugins/discourse-chat-integration/config/locales/server.lv.ymlnew file mode 100644index 00000000000..902697c6acb--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.lv.yml@@ -0,0 +1,12 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++lv:+ chat_integration:+ all_categories: "(Visas kategorijas)"+ provider:+ flowdock:+ message_title: "ierakstīts"diff --git a/plugins/discourse-chat-integration/config/locales/server.nb_NO.yml b/plugins/discourse-chat-integration/config/locales/server.nb_NO.ymlnew file mode 100644index 00000000000..47e6f96b10b--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.nb_NO.yml@@ -0,0 +1,14 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++nb_NO:+ chat_integration:+ all_categories: "(alle kategorier)"+ topic_tag_changed:+ added: "Lagt til %{added}"+ provider:+ flowdock:+ message_title: "skrevet"diff --git a/plugins/discourse-chat-integration/config/locales/server.nl.yml b/plugins/discourse-chat-integration/config/locales/server.nl.ymlnew file mode 100644index 00000000000..234ab7dcdac--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.nl.yml@@ -0,0 +1,237 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++nl:+ site_settings:+ chat_integration_enabled: 'Discourse-chatintegratieplug-in inschakelen'+ chat_integration_discourse_username: 'Gebruikersnaam om te gebruiken bij het ophalen van inhoud.'+ chat_integration_delay_seconds: 'Aantal seconden dat moet worden gewacht na het maken van een bericht voordat chatmeldingen worden gestuurd'+ chat_integration_slack_username: "De gebruikersnaam van de bot om mee te Slacken"+ chat_integration_slack_enabled: 'Slack-chatintegratieprovider inschakelen'+ chat_integration_slack_access_token: 'OAuth-toegangstoken voor Slack-verificatie'+ chat_integration_slack_incoming_webhook_token: 'Het verificatietoken dat wordt gebruikt om binnenkomende verzoeken te verifiëren'+ chat_integration_slack_excerpt_length: 'Lengte uittreksel Slack-bericht'+ chat_integration_slack_icon_url: 'Pictogram voor berichten op Slack (standaard ingesteld op forumlogo)'+ chat_integration_slack_outbound_webhook_url: "Voor gebruik van het 'Incoming Webhook'-systeem van Slack in plaats van de OAuth-API. Wordt niet aangeraden."+ chat_integration_slack_transcript_quote: Slack-transcript tussen [quote]-tags plaatsen?+ errors:+ chat_integration_slack_api_configs_are_empty: "Je moet een uitgaande webhook-URL invoeren of een toegangstoken"+ chat_integration_telegram_enabled: "Telegram-chatintegratieprovider inschakelen"+ chat_integration_telegram_access_token: "Het toegangstoken van je bot van de Telegram-botfather"+ chat_integration_telegram_excerpt_length: "Lengte uittreksel Telegram-bericht"+ chat_integration_telegram_enable_slash_commands: "Toestaan dat Telegram-abonnementen worden beheerd met behulp van 'slash-opdrachten'"+ chat_integration_discord_enabled: "Discord-chatintegratieprovider inschakelen"+ chat_integration_discord_message_content: "Het bericht dat boven de samenvatting moet worden opgenomen bij het sturen van een melding naar Discord"+ chat_integration_discord_excerpt_length: "Lengte uittreksel Discord-bericht"+ chat_integration_guilded_enabled: "Guilded-chatintegratieprovider inschakelen"+ chat_integration_guilded_excerpt_length: "Lengte uittreksel Guilded-bericht"+ chat_integration_mattermost_enabled: "Mattermost-chatintegratieprovider inschakelen"+ chat_integration_mattermost_webhook_url: 'URL voor de Mattermost-webhook'+ chat_integration_mattermost_incoming_webhook_token: 'Het verificatietoken dat wordt gebruikt om binnenkomende verzoeken te verifiëren'+ chat_integration_mattermost_icon_url: "Pictogram voor berichten op Mattermost (standaard ingesteld op forumlogo)"+ chat_integration_mattermost_excerpt_length: "Lengte uittreksel Mattermost-bericht"+ chat_integration_matrix_enabled: "Matrix-chatintegratieprovider inschakelen"+ chat_integration_matrix_homeserver: "Homeserver om verbinding mee te maken. Zorg dat je het protocol vermeldt"+ chat_integration_matrix_access_token: "Toegangstoken voor het Matrix-account van de bot"+ chat_integration_matrix_excerpt_length: "Lengte uittreksel Matrix-bericht"+ chat_integration_matrix_use_notice: "Melding gebruiken in plaats van gewoon bericht"+ chat_integration_zulip_enabled: "Zulip-chatintegratieprovider inschakelen"+ chat_integration_zulip_server: "De basis-URL voor je Zulip-server. Zorg dat je http(s):// vermeldt"+ chat_integration_zulip_bot_email_address: "Het e-mailadres dat is gekoppeld aan je Zulip-bot"+ chat_integration_zulip_bot_api_key: "De API-sleutel voor je Zulip-bot"+ chat_integration_zulip_excerpt_length: "Lengte uittreksel Zulip-bericht"+ chat_integration_rocketchat_enabled: "Rocket Chat-chatintegratieprovider inschakelen"+ chat_integration_rocketchat_webhook_url: "De URL voor de Rocket Chat-integratiewebhook"+ chat_integration_rocketchat_excerpt_length: "Lengte uittreksel Rocket Chat-bericht"+ chat_integration_gitter_enabled: "Gitter-chatintegratieprovider inschakelen"+ chat_integration_flowdock_enabled: "Flowdock-chatintegratieprovider inschakelen"+ chat_integration_flowdock_excerpt_length: "Lengte uittreksel Flowdock-bericht"+ chat_integration_groupme_enabled: "Groupme-chatintegratieprovider inschakelen"+ chat_integration_groupme_excerpt_length: "Lengte uittreksel Groupme-bericht"+ chat_integration_groupme_bot_ids: "*vereist* Bot-ID's, gescheiden door ',' als er meerdere zijn"+ chat_integration_groupme_instance_names: " *vereist* Naam van de GroupMe-chat, gescheiden door ',' als er meerdere zijn (zelfde volgorde als bot-ID's)"+ chat_integration_teams_enabled: "Microsoft Teams-chatintegratieprovider inschakelen"+ chat_integration_teams_excerpt_length: "Lengte uittreksel Microsoft Teams-bericht"+ chat_integration_powerautomate_enabled: "Microsoft Power Automate-integratieprovider inschakelen"+ chat_integration_powerautomate_excerpt_length: "Lengte uittreksel Microsoft Power Automate-bericht"+ chat_integration_webex_enabled: "Webex-chatintegratieprovider inschakelen"+ chat_integration_webex_excerpt_length: "Lengte uittreksel Webex-bericht"+ chat_integration_google_enabled: "Google Chat-chatintegratieprovider inschakelen"+ chat_integration_google_excerpt_length: "Lengte uittreksel Google Chat-bericht"+ dashboard:+ problem:+ channel_errors: "Sommige chatintegratiekanalen hebben fouten. Ga naar <a href='%{base_path}/admin/plugins/chat-integration'>de sectie chatintegratie</a> voor meer informatie."+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Slack-bericht sturen+ send_chat_integration_message:+ title: Chatintegratiebericht verzenden+ chat_integration:+ all_categories: "(alle categorieën)"+ deleted_category: "(verwijderde categorie)"+ deleted_group: "(verwijderde groep)"+ group_mention_template: "vermeldingen van: @%{name}"+ group_message_template: "berichten naar: @%{name}"+ topic_tag_changed:+ added_and_removed: "%{added} toegevoegd en %{removed} verwijderd"+ added: "%{added} toegevoegd"+ removed: "%{removed} verwijderd"+ provider:+ slack:+ status:+ header: |+ *Regels voor dit kanaal*+ (als meerdere regels overeenkomen met een bericht, wordt de bovenste regel uitgevoerd)+ no_rules: "Er zijn geen regels ingesteld voor dit kanaal. Voer '/discourse help' uit voor instructies."+ rule_string: "*%{index})* *%{filter}* berichten in *%{category}*"+ rule_string_tags_suffix: " met tags: *%{tags}*"+ parse_error: "Sorry, dat heb ik niet begrepen. Voer '/discourse help' uit voor instructies."+ create:+ created: "Regel gemaakt"+ updated: "Regel bijgewerkt"+ error: "Sorry, er is een fout opgetreden bij het maken van die regel."+ delete:+ success: "Regel verwijderd"+ error: "Sorry, er is een fout opgetreden bij het verwijderen van die regel. Voer '/discourse status' uit voor een lijst van regels."+ not_found:+ tag: "De tag *%{name}* kon niet worden gevonden."+ category: "De categorie *%{name}* kon niet worden gevonden. Beschikbare categorieën: *%{list}*"+ help: |+ *Nieuwe regel:* '/discourse [thread|watch|follow|mute] [category] [tag:naam]'+ (je moet een regeltype opgeven en minimaal één categorie of tag)+ - *thread* – informeer dit kanaal over nieuwe topics, plaats antwoorden in een draad indien mogelijk+ - *watch* – informeer dit kanaal over nieuwe topics en nieuwe antwoorden+ - *follow* – informeer dit kanaal over nieuwe topics+ - *mute* – blokkeer meldingen geadresseerd aan dit kanaal++ *Regel verwijderen: * '/discourse remove [regelnummer]'+ ('[regelnummer]' kan worden gevonden door '/discourse status' uit te voeren)++ *Lijst van regels:* '/discourse status'++ *[Experimenteel] Berichttranscript:* '/discourse post [n]'+ Maak een concepttopic op Discourse met de laatste 'n' berichten in dit kanaal++ *Help:* '/discourse help'+ transcript:+ modal_title: "Transcript maken"+ modal_description: "Alle berichten in de draad worden samengevoegd tot één forumbericht. Je hebt de mogelijkheid om het transcript te bewerken voordat je het plaatst."+ transcript_ready: "Transcript gereed"+ continue_on_discourse: "Doorgaan op forum"+ error: "Er is iets misgegaan bij het maken van het transcript, sorry!"+ post_to_discourse: "Klik hier om een bericht op Discourse op te stellen met een transcript"+ api_required: "Sorry, deze integratie is niet ingesteld om het plaatsen van transcripten te ondersteunen."+ view_on_slack: "Bekijken in %{name} op Slack"+ first_message_pretext: "vanaf %{n} berichten geleden:"+ last_message_pretext: "en tot %{n} berichten geleden:"+ posted_in: "geplaatst in %{name}"+ change_first_message: "Eerste bericht wijzigen..."+ change_last_message: "Laatste bericht wijzigen..."+ loading: "Transcript laden..."+ error_users: "Fout: kan gebruikers niet ophalen van Slack"+ error_history: "Fout: kan kanaalgeschiedenis niet ophalen van Slack"+ error_ts: "Fout: kan verzochte bericht niet ophalen van Slack"+ messaging:+ topic_tag_changed:+ added_and_removed: "%{added} toegevoegd en %{removed} verwijderd"+ added: "%{added} toegevoegd"+ removed: "%{removed} verwijderd"+ telegram:+ unknown_chat: "Deze chat is niet ingesteld op %{site_title}. Vraag een beheerder om een kanaal toe te voegen met chat-ID %{chat_id}."+ known_chat: "Deze chat is ingesteld op %{site_title}. Configureer hem in het beheerscherm. (Chat-ID: %{chat_id})"+ message: |-+ <b>%{user}</b> heeft een bericht geplaatst in <a href="%{post_url}">%{title}</a>++ <pre>%{post_excerpt}</pre>+ status:+ header: |+ <b>Regels voor dit kanaal</b>+ (als meerdere regels overeenkomen met een bericht, wordt de bovenste regel uitgevoerd)+ no_rules: "Er zijn geen regels ingesteld voor dit kanaal. Voer <code>/help</code> uit voor instructies."+ rule_string: "<b>%{index})</b> <b>%{filter}</b> berichten in <b>%{category}</b>"+ rule_string_tags_suffix: " met tags: <b>%{tags}</b>"+ parse_error: "Sorry, dat heb ik niet begrepen. Voer <code>/help</code> uit voor instructies."+ create:+ created: "Regel gemaakt"+ updated: "Regel bijgewerkt"+ error: "Sorry, er is een fout opgetreden bij het maken van die regel."+ delete:+ success: "Regel verwijderd"+ error: "Sorry, er is een fout opgetreden bij het verwijderen van die regel. Voer <code>/status</code> uit voor een lijst van regels."+ not_found:+ tag: "De tag <b>%{name}</b> kon niet worden gevonden."+ category: "De categorie <b>%{name}</b> kon niet worden gevonden. Beschikbare categorieën: <b>%{list}</b>"+ help: |+ <b>Nieuwe regel:</b> <code>/[watch|follow|mute] [category] [tag:naam]</code>+ (je moet een regeltype opgeven en minimaal één categorie of tag)+ - <b>watch</b> – informeer dit kanaal over nieuwe topics en nieuwe antwoorden+ - <b>follow</b> – informeer dit kanaal over nieuwe topics+ - <b>mute</b> – blokkeer meldingen geadresseerd aan dit kanaal++ <b>Regel verwijderen:</b> <code>/remove [regelnummer]</code>+ (<code>[regelnummer]</code> kan worden gevonden door <code>/status</code> uit te voeren)++ <b>Lijst van regels:</b> <code>/status</code>++ <b>Help:</b> <code>/help</code>+ hipchat:+ message: <b>%{user}</b> heeft een bericht geplaatst in <a href="%{post_url}">%{title}</a>+ mattermost:+ status:+ header: |+ *Regels voor dit kanaal*+ (als meerdere regels overeenkomen met een bericht, wordt de bovenste regel uitgevoerd)+ no_rules: "Er zijn geen regels ingesteld voor dit kanaal. Voer '/discourse help' uit voor instructies."+ rule_string: "*%{index})* *%{filter}* berichten in *%{category}*"+ rule_string_tags_suffix: " met tags: *%{tags}*"+ parse_error: "Sorry, dat heb ik niet begrepen. Voer '/discourse help' uit voor instructies."+ create:+ created: "Regel gemaakt"+ updated: "Regel bijgewerkt"+ error: "Sorry, er is een fout opgetreden bij het maken van die regel."+ delete:+ success: "Regel verwijderd"+ error: "Sorry, er is een fout opgetreden bij het verwijderen van die regel. Voer '/discourse status' uit voor een lijst van regels."+ not_found:+ tag: "De tag *%{name}* kon niet worden gevonden."+ category: "De categorie *%{name}* kon niet worden gevonden. Beschikbare categorieën: *%{list}*"+ help: |+ *Nieuwe regel:* '/discourse [watch|follow|mute] [category] [tag:naam]'+ (je moet een regeltype opgeven en minimaal één categorie of tag)+ - *watch* – informeer dit kanaal over nieuwe topics en nieuwe antwoorden+ - *follow* – informeer dit kanaal over nieuwe topics+ - *mute* – blokkeer meldingen geadresseerd aan dit kanaal++ *Regel verwijderen: * '/discourse remove [regelnummer]'+ ('[regelnummer]' kan worden gevonden door '/discourse status' uit te voeren)++ *Lijst van regels:* '/discourse status'++ *Help:* '/discourse help'+ matrix:+ text_message: "%{user} heeft een bericht geplaatst in %{title} - %{post_url}"+ formatted_message: |+ <b>%{user}</b> heeft een bericht geplaatst in <b><a href='%{post_url}'>%{title}</a></b>+ <blockquote>+ %{excerpt}+ </blockquote>+ zulip:+ message: |+ **%{user}** heeft een bericht geplaatst in **[%{title}](%{post_url})**+ ~~~quote+ %{excerpt}+ ~~~+ flowdock:+ message_title: "geplaatst"+ google:+ new_post: "Nieuw bericht op %{site_title}"+ new_topic: "Nieuw topic op %{site_title}"+ author: "van @%{username}"+ link: "Weergeven op %{site_title}"+ groupme:+ errors:+ instance_names_issue: "instantienamen onjuist geschreven of niet opgegeven"diff --git a/plugins/discourse-chat-integration/config/locales/server.pl_PL.yml b/plugins/discourse-chat-integration/config/locales/server.pl_PL.ymlnew file mode 100644index 00000000000..a37cd3ee741--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.pl_PL.yml@@ -0,0 +1,226 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++pl_PL:+ site_settings:+ chat_integration_enabled: 'Włącz wtyczkę discourse‐chat‐integration'+ chat_integration_discourse_username: 'Nazwa użytkownika przy pobieraniu wiadomości'+ chat_integration_delay_seconds: 'Liczba sekund do odczekania po stworzeniu wpisu do wysłania powiadomienia na czacie'+ chat_integration_slack_username: "Nazwa bota do publikowania wiadomości na Slacku"+ chat_integration_slack_enabled: 'Włącz integrację ze Slackiem'+ chat_integration_slack_access_token: 'Token dostępu OAuth do połączenia ze Slackiem'+ chat_integration_slack_incoming_webhook_token: 'Token weryfikacji używany do weryfikacji żądań przychodzących'+ chat_integration_slack_excerpt_length: 'Długość skrótu wpisu na Slacku'+ chat_integration_slack_icon_url: 'Ikona do wysyłania wiadomości na Slacku (domyślna to logo forum)'+ chat_integration_slack_outbound_webhook_url: "Dla używania slackowego systemu \"Incoming Webhook\" zamiast API OAuth. Niezalecane."+ errors:+ chat_integration_slack_api_configs_are_empty: "Musisz wpisać URL wychodzącego webhooka albo token dostępu."+ chat_integration_telegram_enabled: "Włącz integrację z Telegramem"+ chat_integration_telegram_access_token: "Token dostępu Twojego bota od botfathera Telegramu"+ chat_integration_telegram_excerpt_length: "Długość skrótu wpisu na Telegramie"+ chat_integration_telegram_enable_slash_commands: "Zezwól na zarządzanie subskrypcjami Telegramu przy użyciu komend ze slashem"+ chat_integration_discord_enabled: "Włącz integrację z Discordem"+ chat_integration_discord_message_content: "Wiadomość do dołączenia powyżej podsumowania przy wysyłaniu powiadomienia na Discorda"+ chat_integration_discord_excerpt_length: "Długość skrótu wpisu na Discordzie"+ chat_integration_mattermost_enabled: "Włącz integrację z Mattermost"+ chat_integration_mattermost_webhook_url: 'URL webhooka Mattermost'+ chat_integration_mattermost_incoming_webhook_token: 'Token weryfikacji używany do weryfikacji żądań przychodzących'+ chat_integration_mattermost_icon_url: "Ikona do wysyłania wiadomości na Mattermost (domyślna to logo forum)"+ chat_integration_mattermost_excerpt_length: "Długość skrótu wpisu na Telegramie"+ chat_integration_matrix_enabled: "Włącz integrację z Matrix"+ chat_integration_matrix_homeserver: "Serwer domowy do dołączenia. Upewnij się, że załączasz protokół"+ chat_integration_matrix_access_token: "Token dostępu dla konta bota Matrix"+ chat_integration_matrix_excerpt_length: "Długość skrótu wpisu na Matrix"+ chat_integration_matrix_use_notice: "Użyj zgłoszenia zamiast pustej wiadomości"+ chat_integration_zulip_enabled: "Włącz integrację z Zulip"+ chat_integration_zulip_server: "Bazowy URL serwera Zulip. Upewnij się, że dołącasz http(s)://"+ chat_integration_zulip_bot_email_address: "Adres e‐mail połączony z botem Zulip"+ chat_integration_zulip_bot_api_key: "Klucz API dla twojego bota Zulip"+ chat_integration_zulip_excerpt_length: "Długość skrótu wpisu na Zulip"+ chat_integration_rocketchat_enabled: "Włącz integrację z Rocket Chat"+ chat_integration_rocketchat_webhook_url: "URL webhooka integracyjnego Rocket Chat"+ chat_integration_rocketchat_excerpt_length: "Długość skrótu wpisu na Rocket Chat"+ chat_integration_gitter_enabled: "Włącz integrację z Glitter"+ chat_integration_flowdock_enabled: "Włącz integrację z Flowdock"+ chat_integration_flowdock_excerpt_length: "Długość skrótu wpisu na Flowdock"+ chat_integration_groupme_enabled: "Włącz integrację z GroupMe"+ chat_integration_groupme_excerpt_length: "Długość fragmentu postu GroupMe"+ chat_integration_groupme_bot_ids: "*wymagane* Identyfikatory botów, oddzielone przez ',' jeśli jest ich wiele"+ chat_integration_groupme_instance_names: " *wymagana* Nazwa czatu GroupMe, rozdzielona przez ',' jeśli istnieje wiele (taka sama kolejność jak identyfikatory botów)"+ chat_integration_teams_enabled: "Włącz integrację z Microsoft Teams"+ chat_integration_teams_excerpt_length: "Długość fragmentu postu Microsoft Team"+ chat_integration_webex_enabled: "Włącz dostawcę integracji czatu Webex Teams"+ chat_integration_webex_excerpt_length: "Długość skrótu wpisu na Webex Team"+ chat_integration_google_enabled: "Włącz integrację z Google Chat"+ chat_integration_google_excerpt_length: "Długość fragmentu posta na czacie Google Chat"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Wyślij wiadomość Slack+ chat_integration:+ all_categories: "(wszystkie kategorie)"+ deleted_category: "(usunięta kategoria)"+ deleted_group: "(usunięta grupa)"+ group_mention_template: "Wzmianki o: @%{name}"+ group_message_template: "Wiadomości do: @%{name}"+ topic_tag_changed:+ added_and_removed: "Dodano %{added} i usunięto %{removed}"+ added: "Dodano %{added}"+ removed: "Usunięto %{removed}"+ provider:+ slack:+ status:+ header: |+ *Reguły dla tego kanału*+ (Jeśli wpis spełnia założenia kilku reguł, wykorzystywana jest pierwsza od góry)+ no_rules: "Nie ma reguł ustawionych dla tego kanału. Użyj `/discourse help`, by uzyskać pomoc."+ rule_string: "*%{index})* *%{filter}* postów w kategorii *%{category}*"+ rule_string_tags_suffix: "z tagami: *%{tags}*"+ parse_error: "Przepraszam, nie rozumiem. Użyj `/discourse help`, by uzyskać pomoc."+ create:+ created: "Reguła utworzona z powodzeniem"+ updated: "Reguła zaktualizowana z powodzeniem"+ error: "Podczas tworzenia reguły wystąpił błąd."+ delete:+ success: "Reguła usunięta"+ error: "Podczas usuwania reguły wystąpił błąd. Użyj `/discourse status`, by uzyskać listę reguł."+ not_found:+ tag: "Tag o nazwie *%{name}* nie może zostać znaleziony."+ category: "Kategoria o nazwie *%{name}* nie może zostać znaleziona. Dostępne kategorie: *%{list}*"+ help: |+ *Nowa reguła:* `/discourse [thread|watch|follow|mute] [category] [tag:name]`+ (musisz określić typ reguły i co najmniej jedną kategorię lub tag)+ - *thread* - powiadamiaj ten kanał o nowych tematach, oraz odpowiedziach, jeśli to możliwe+ - *watch* - powiadamiaj ten kanał o nowych tematach i nowych odpowiedziach+ - *follow* - powiadamiaj ten kanał o nowych tematach+ - *mute* - blokuj powiadomienia na tym kanale++ *Usuń regułę:* `/discourse remove [reguła]`+ (`[numer reguły]` można znaleźć poprzez użycie `/discourse status`)++ *Lista reguł:* `/discourse status`++ *[Experimental] Transkrypcja postu:* `/discourse post [n]`+ Utwórz projekt tematu na dysku zawierającego ostatnie `n` posty na tym kanale++ *Pomoc:* `/discourse help`+ transcript:+ modal_description: "Wszystkie wiadomości w wątku zostaną zebrane w jeden post na forum. Będziesz mieć możliwość edytowania transkrypcji przed opublikowaniem."+ transcript_ready: "Transkrypcja gotowa"+ continue_on_discourse: "Kontynuuj na forum"+ error: "Coś poszło nie tak podczas tworzenia transkryptu, przepraszamy!"+ post_to_discourse: "Kliknij tutaj, by szkicować wpis Discourse’a z transkryptem"+ api_required: "Przepraszamy, ta integracja czatu nie wspiera tworzenia transkryptów."+ view_on_slack: "Zobacz w %{name}na Slacku"+ first_message_pretext: "rozpoczęto %{n} wiadomości temu:"+ last_message_pretext: "i zakończono %{n}wiadomości temu:"+ posted_in: "opublikował wpis w %{name}"+ change_first_message: "Zmień pierwszą wiadomość…"+ change_last_message: "Zmień ostatnią wiadomość…"+ loading: "Ładowanie transkryptu…"+ error_users: "Błąd: nie można pobrać użytkowników ze Slacka"+ error_history: "Błąd: nie można pobrać historii kanału ze Slacka"+ error_ts: "Błąd: nie można pobrać żądanej wiadomości ze Slacka"+ messaging:+ topic_tag_changed:+ added_and_removed: "Dodano %{added} i usunięto %{removed}"+ added: "Dodano %{added}"+ removed: "Usunięto %{removed}"+ telegram:+ unknown_chat: "Czat nie jest skonfigurowany na %{site_title}. Poproś administratora o dodanie kanału z ID czatu: %{chat_id}."+ known_chat: "Czat nie jest skonfigurowany na %{site_title}. Skonfiguruj go w panelu administratora. (ID czatu: %{chat_id})"+ message: |-+ <b>%{user}</b>opublikował wpis w <a href="%{post_url}">%{title}</a>++ <pre>%{post_excerpt}</pre>+ status:+ header: |+ <b>Reguły dla tego kanału</b>+ (Jeśli wpis spełnia założenia kilku reguł, wykorzystywana jest pierwsza od góry)+ no_rules: "Nie ma reguł ustawionych dla tego kanału. Użyj <code>/help</code>, by uzyskać pomoc."+ rule_string: "<b>%{index}</b><b>%{filter}</b>wpisów w ktaegorii <b>%{category}</b>"+ rule_string_tags_suffix: "z tagami: <b>%{tags}</b>"+ parse_error: "Przepraszam, nie rozumiem. Użyj <code>/help</code>, by uzyskać pomoc."+ create:+ created: "Reguła utworzona z powodzeniem"+ updated: "Reguła zaktualizowana z powodzeniem"+ error: "Podczas tworzenia reguły wystąpił błąd."+ delete:+ success: "Reguła usunięta"+ error: "Podczas usuwania reguły wystąpił błąd. Użyj <code>/status</code>, by uzyskać listę reguł."+ not_found:+ tag: "Tag <b>%{name}</b> nie może zostać znaleziony."+ category: "Kategoria <b>%{name}</b> nie może zostać znaleziona. Dostępne kategorie: <b>%{list}</b>"+ help: |+ <b>Nowa reguła:</b> <code>/[watch|follow|mute] [category] [tag:name]</code>+ (musisz określić przynajmniej jedną regułę i jedną kategorię do tagowania)+ - <b>obserwuj wpisy</b> – informuj ten kanał o nowych wpisach i odpowiedziach+ - <b>obserwuj tematy</b> – informuj ten kanał o nowych tematach+ - <b>wycisz</b> – zablokuj powiadomienia w tym kanale++ <b>Usuń regułę:</b> <code>/remove [numer reguły]+ (<code>[numer reguły]</code> może zostać znaleziony przy użyciu <code>/status</code>`)++ <b>Lista reguł:</b> <code>/status++ <b>Pomoc:</b> <code>/help</code>+ hipchat:+ message: <b>%{user}</b> opublikował wpis w temacie <a href="%{post_url}">%{title}</a>+ mattermost:+ status:+ header: |+ *Reguły dla tego kanału*+ (Jeśli wpis spełnia założenia kilku reguł, wykorzystywana jest pierwsza od góry)+ no_rules: "Nie ma reguł ustawionych dla tego kanału. Użyj `/discourse help`, by uzyskać pomoc."+ rule_string: "*%{index})* *%{filter}* postów w kategorii *%{category}*"+ rule_string_tags_suffix: "z tagami: *%{tags}*"+ parse_error: "Przepraszam, nie rozumiem. Użyj `/discourse help`, by uzyskać pomoc."+ create:+ created: "Reguła utworzona z powodzeniem"+ updated: "Reguła zaktualizowana z powodzeniem"+ error: "Podczas tworzenia reguły wystąpił błąd."+ delete:+ success: "Reguła usunięta"+ error: "Podczas usuwania reguły wystąpił błąd. Użyj `/discourse status`, by uzyskać listę reguł."+ not_found:+ tag: "Tag o nazwie *%{name}* nie może zostać znaleziony."+ category: "Kategoria o nazwie *%{name}* nie może zostać znaleziona. Dostępne kategorie: *%{list}*"+ help: |+ *Nowa reguła:* `/discourse [watch|follow|mute] [category] [tag:name]`+ (musisz określić przynajmniej jedną regułę i jedną kategorię do tagowania)+ - *obserwuj wpisy* – informuj ten kanał o nowych wpisach i odpowiedziach+ - *obserwuj tematy* – informuj ten kanał o nowych tematach+ - *wycisz* – zablokuj powiadomienia w tym kanale++ *Usuń regułę:* `/discourse remove [numer reguły]`+ (`[numer reguły]` może zostać znaleziony przy użyciu `/discourse status`)++ *Lista reguł:* `/discourse status`++ *Pomoc:* `/discourse help`+ matrix:+ text_message: "%{user}opublikował wpis w %{title} - %{post_url}"+ formatted_message: |+ <b>%{user}</b>opublikował wpis w <b><a href='%{post_url}'>%{title}</a></b>+ <blockquote>+ %{excerpt}+ </blockquote>+ zulip:+ message: |+ **%{user}** opublikował wpis w temacie **%{title}%{post_url}**+ ~~~quote+ %{excerpt}+ ~~~+ flowdock:+ message_title: "wysłano"+ google:+ new_post: "Nowy post na %{site_title}"+ new_topic: "Nowy temat na %{site_title}"+ author: "przez @%{username}"+ link: "Zobacz na %{site_title}"+ groupme:+ errors:+ instance_names_issue: "nazwy instancji są nieprawidłowo sformatowane lub nie zostały podane"diff --git a/plugins/discourse-chat-integration/config/locales/server.pt.yml b/plugins/discourse-chat-integration/config/locales/server.pt.ymlnew file mode 100644index 00000000000..3c634357512--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.pt.yml@@ -0,0 +1,113 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++pt:+ site_settings:+ chat_integration_enabled: 'Ativar o ''''plug-in'''' de integração de conversação discourse'+ chat_integration_slack_enabled: 'Ativar provedor de integração de conversação slack'+ chat_integration_slack_access_token: 'O «Código de Acesso» de OAuth para a autenticação com Slack'+ chat_integration_slack_incoming_webhook_token: 'O código de verificação utilizado para autenticar pedidos a receber'+ chat_integration_slack_excerpt_length: 'Comprimento do excerto da mensagem de Slack'+ chat_integration_telegram_enabled: "Ativar provedor de integração de conversação Telegram"+ chat_integration_telegram_excerpt_length: "Comprimento do excerto da mensagem de Telegram"+ chat_integration_discord_enabled: "Ativar provedor de integração de conversação Discord"+ chat_integration_discord_excerpt_length: "Comprimento do excerto da mensagem de Discord"+ chat_integration_mattermost_enabled: "Ativar provedor de integração de conversação Mattermost"+ chat_integration_mattermost_webhook_url: 'URL para o ''''webhook'''' de Mattermost'+ chat_integration_mattermost_incoming_webhook_token: 'O código de verificação utilizado para autenticar pedidos a receber'+ chat_integration_mattermost_icon_url: "Ícone para as mensagens de Mattermost (predefine para logótipo do fórum)"+ chat_integration_matrix_enabled: "Ativar provedor de integração de conversação Matrix"+ chat_integration_zulip_enabled: "Ativar provedor de integração de conversação Zulip"+ chat_integration_zulip_bot_email_address: "O endereço de ''e-mail'' associado com o seu robô Zulip"+ chat_integration_zulip_bot_api_key: "A chave da API para o seu robô Zulip"+ chat_integration_zulip_excerpt_length: "Comprimento do excerto da mensagem de Zulip"+ chat_integration_rocketchat_excerpt_length: "Comprimento do excerto da mensagem de Rocket Chat"+ chat_integration_gitter_enabled: "Ativar provedor de integração de conversação Gitter"+ chat_integration_flowdock_enabled: "Ativar provedor de integração de conversação Flowdock"+ chat_integration_flowdock_excerpt_length: "Comprimento do excerto da mensagem de Flowdock"+ chat_integration:+ all_categories: "(todas as categorias)"+ deleted_category: "(categoria eliminada)"+ deleted_group: "(grupo eliminado)"+ group_mention_template: "menções de: @%{name}"+ group_message_template: "mensagens para: @%{name}"+ provider:+ slack:+ status:+ no_rules: "Não existem regras configuradas para este canal. Execute <code>/discourse help</code> para instruções."+ rule_string: "*%{index})* *%{filter}* publica na *%{category}*"+ rule_string_tags_suffix: " com etiquetas: *%{tags}*"+ parse_error: "Desculpe, eu não compreendi isso. Execute '/discourse help' para instruções."+ create:+ created: "Regra criada com sucesso"+ updated: "Regra atualizada com sucesso"+ error: "Desculpe, ocorreu um erro enquanto criava a regra."+ delete:+ success: "Regra eliminada com sucesso"+ error: "Desculpe, ocorreu um erro enquanto eliminava a regra. Execute `/discourse status` para uma lista de regras."+ not_found:+ tag: "Não é possível encontrar a etiqueta \"%{name}\"."+ category: "Não foi possível encontrar a categoria *%{name}*. Categorias disponíveis: *%{list}*"+ transcript:+ view_on_slack: "Ver em %{name} no Slack"+ posted_in: "publicou em %{name}"+ change_first_message: "Alterar a primeira mensagem..."+ change_last_message: "Alterar a última mensagem..."+ loading: "A carregar a transcrição..."+ telegram:+ message: |-+ <b>%{user}</b> publicou no <a href="%{post_url}">%{title}</a>++ <pre>%{post_excerpt}</pre>+ status:+ header: |+ <b>Regras para este canall+ (Se múltiplas regras corresponderem a uma mensagem, a regra superior será executada)+ no_rules: "Não existem regras configuradas para este canal. Execute <code>/help</code> para instruções."+ rule_string: "<b>%{index})</b> <b>%{filter}</b> publica na <b>%{category}</b>"+ rule_string_tags_suffix: " com etiquetas: <b>%{tags}</b>"+ parse_error: "Desculpe, eu não compreendi isso. Execute <code>/help</code> para instruções."+ create:+ created: "Regra criada com sucesso"+ updated: "Regra atualizada com sucesso"+ error: "Desculpe, ocorreu um erro enquanto criava a regra."+ delete:+ success: "Regra eliminada com sucesso"+ not_found:+ tag: "Não é possível encontrar a etiqueta <b>%{name}</b>."+ hipchat:+ message: <b>%{user}</b> publicou em <a href="%{post_url}">%{title}</a>+ mattermost:+ status:+ no_rules: "Não existem regras configuradas para este canal. Execute <code>/discourse help</code> para instruções."+ rule_string: "*%{index})* *%{filter}* publica na *%{category}*"+ rule_string_tags_suffix: " com etiquetas: *%{tags}*"+ parse_error: "Desculpe, eu não compreendi isso. Execute '/discourse help' para instruções."+ create:+ created: "Regra criada com sucesso"+ updated: "Regra atualizada com sucesso"+ error: "Desculpe, ocorreu um erro enquanto criava a regra."+ delete:+ success: "Regra eliminada com sucesso"+ error: "Desculpe, ocorreu um erro enquanto eliminava a regra. Execute `/discourse status` para uma lista de regras."+ not_found:+ tag: "Não é possível encontrar a etiqueta \"%{name}\"."+ category: "Não foi possível encontrar a categoria *%{name}*. Categorias disponíveis: *%{list}*"+ matrix:+ text_message: "%{user} publicou em %{title} - %{post_url}"+ formatted_message: |+ <b>%{user}</b> publicou no <b><a href='%{post_url}'>%{title}</a></b>+ <blockquote>+ %{excerpt}+ </blockquote>+ zulip:+ message: |+ **%{user}** publicou em **[%{title}](%{post_url})**+ ~~~citação+ %{excerpt}+ ~~~+ flowdock:+ message_title: "publicou"diff --git a/plugins/discourse-chat-integration/config/locales/server.pt_BR.yml b/plugins/discourse-chat-integration/config/locales/server.pt_BR.ymlnew file mode 100644index 00000000000..7986ad897ec--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.pt_BR.yml@@ -0,0 +1,237 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++pt_BR:+ site_settings:+ chat_integration_enabled: 'Ativar o plugin discourse-chat-integration'+ chat_integration_discourse_username: 'Nome do(a) usuário(a) do(a) usuário(a) para atuar na busca de conteúdo.'+ chat_integration_delay_seconds: 'Número de segundos a aguardar após a criação de uma postagem antes de enviar notificações de bate-papo'+ chat_integration_slack_username: "O nome do(a) usuário(a) do robô com o qual postar o Slack"+ chat_integration_slack_enabled: 'Ativar o provedor de integração de bate-papo do Slack'+ chat_integration_slack_access_token: 'Token de Acesso OAuth para autenticação com o Slack'+ chat_integration_slack_incoming_webhook_token: 'O token de verificação usado para autenticar solicitações recebidas'+ chat_integration_slack_excerpt_length: 'Tamanho do trecho da postagem do Slack'+ chat_integration_slack_icon_url: 'Ícone para postagens no Slack (padrão é logotipo do fórum)'+ chat_integration_slack_outbound_webhook_url: "Para usar o sistema \"Incoming Webhook\" do Slack em vez da API OAuth. Não recomendado."+ chat_integration_slack_transcript_quote: Envolver transcrição de slack nas tags [quote]?+ errors:+ chat_integration_slack_api_configs_are_empty: "Você precisa inserir uma URL de webhook de saída, ou um token de acesso"+ chat_integration_telegram_enabled: "Ativar o provedor de integração de bate-papo do Telegram"+ chat_integration_telegram_access_token: "O token de acesso do seu robô do botfather do Telegram"+ chat_integration_telegram_excerpt_length: "Tamanho do trecho da postagem do Telegram"+ chat_integration_telegram_enable_slash_commands: "Permitir que as assinaturas do Telegram sejam gerenciadas usando \"slash commands\""+ chat_integration_discord_enabled: "Ativar o provedor de integração de bate-papo do Discord"+ chat_integration_discord_message_content: "A mensagem a ser incluída acima do resumo ao enviar uma notificação para Discord"+ chat_integration_discord_excerpt_length: "Tamanho do treco da postagem do Discord"+ chat_integration_guilded_enabled: "Ativar o provedor de integração de bate-papo do Guilded"+ chat_integration_guilded_excerpt_length: "Tamanho do trecho da postagem do Guilded"+ chat_integration_mattermost_enabled: "Ativar o provedor de integração de bate-papo do Mattermost"+ chat_integration_mattermost_webhook_url: 'URL para o webhook do Mattermost'+ chat_integration_mattermost_incoming_webhook_token: 'O token de verificação usado para autenticar solicitações recebidas'+ chat_integration_mattermost_icon_url: "Ícone para postagens no Mattermost (padrão é logotipo do fórum)"+ chat_integration_mattermost_excerpt_length: "Tamanho do treco da postagem do Mattermost"+ chat_integration_matrix_enabled: "Ativar o provedor de integração de bate-papo do Matrix"+ chat_integration_matrix_homeserver: "Homeserver para se conectar. Certifique-se de incluir o protocolo"+ chat_integration_matrix_access_token: "Token de acesso para o robô da conta Matrix"+ chat_integration_matrix_excerpt_length: "Tamanho do trecho da postagem do Matrix"+ chat_integration_matrix_use_notice: "Usar aviso em vez de mensagem simples"+ chat_integration_zulip_enabled: "Ativar o provedor de integração de bate-papo do Zulip"+ chat_integration_zulip_server: "A URL básica do seu servidor Zulip. Certifique-se de incluir http(s)://"+ chat_integration_zulip_bot_email_address: "O endereço de e-mail associado ao seu robô Zulip"+ chat_integration_zulip_bot_api_key: "A chave da API do seu robô Zulip"+ chat_integration_zulip_excerpt_length: "Tamanho do trecho da postagem do Zulip"+ chat_integration_rocketchat_enabled: "Ativar o provedor de integração de bate-papo do Rocket Chat"+ chat_integration_rocketchat_webhook_url: "A URL do webhook de integração do Rocket Chat"+ chat_integration_rocketchat_excerpt_length: "Tamanho do trecho da postagem do Rocket Chat"+ chat_integration_gitter_enabled: "Ativar o provedor de integração de bate-papo do Gitter"+ chat_integration_flowdock_enabled: "Ativar o provedor de integração de bate-papo do Flowdock"+ chat_integration_flowdock_excerpt_length: "Tamanho do trecho da postagem do Flowdock"+ chat_integration_groupme_enabled: "Ative o provedor de integração de bate-papo do GroupMe"+ chat_integration_groupme_excerpt_length: "Tamanho do trecho da postagem do GroupMe"+ chat_integration_groupme_bot_ids: "IDs de Robô *necessárias*, separadas por \",\", se houver várias"+ chat_integration_groupme_instance_names: " Nome do bate-papo do GroupMe *necessário*, separado por \",\", se houver vários (mesma ordem de IDs de Robô)"+ chat_integration_teams_enabled: "Ativar o provedor de integração de bate-papo do Microsoft Teams"+ chat_integration_teams_excerpt_length: "Tamanho do trecho da publicação do Microsoft Teams"+ chat_integration_powerautomate_enabled: "Ativar o provedor de integração de bate-papo do Microsoft Power Automate"+ chat_integration_powerautomate_excerpt_length: "Tamanho do trecho da publicação do Microsoft Power Automate"+ chat_integration_webex_enabled: "Ativar o provedor de integração de bate-papo do Webex Teams"+ chat_integration_webex_excerpt_length: "Tamanho do trecho da postagem do Webex Teams"+ chat_integration_google_enabled: "Ative o provedor de integração de bate-papo do \"Google Chat\""+ chat_integration_google_excerpt_length: "Tamanho do trecho da postagem do Google Chat"+ dashboard:+ problem:+ channel_errors: "Alguns canais de integração de bate-papo contêm erros. Acesse <a href='%{base_path}/admin/plugins/chat-integration'>the chat integration section</a> para descobrir mais."+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Enviar uma mensagem do Slack+ send_chat_integration_message:+ title: Enviar mensagem de integração com chat+ chat_integration:+ all_categories: "(todas as categorias)"+ deleted_category: "(categoria excluída)"+ deleted_group: "(grupo excluído)"+ group_mention_template: "menções de: @%{name}"+ group_message_template: "mensagens para: @%{name}"+ topic_tag_changed:+ added_and_removed: "Adicionou %{added} e removeu %{removed}"+ added: "Adicionou %{added}"+ removed: "Removeu %{removed}"+ provider:+ slack:+ status:+ header: |+ *Regras para este canal*+ (se várias regras corresponderem a uma postagem, a regra mais alta será executada)+ no_rules: "Não há regras configuradas para este canal. Execute `/discourse help` para instruções."+ rule_string: "*%{index})* *%{filter}* postagens em *%{category}*"+ rule_string_tags_suffix: " com etiquetas: *%{tags}*"+ parse_error: "Desculpe, eu não entendi isso. Execute `/discourse help` para instruções."+ create:+ created: "Regra criada com sucesso"+ updated: "Regra atualizada com sucesso"+ error: "Desculpe, ocorreu um erro ao criar essa regra."+ delete:+ success: "Regra excluída com sucesso"+ error: "Desculpe, ocorreu um erro ao excluir essa regra. Execute `/discourse status` para uma lista de regras."+ not_found:+ tag: "A etiqueta *%{name}* não pode ser encontrada."+ category: "A categoria *%{name}* não pode ser encontrada. Categorias disponíveis: *%{list}*"+ help: |+ *Nova Regra:* `/discourse [thread|watch|follow|mute] [category] [tag:name]`+ (você deve especificar um tipo de regra e pelo menos uma categoria ou etiqueta)+ - *thread* – notificar este canal para novos tópicos, respostas encadeadas, se possível+ - *watch* – notificar este canal para novos tópicos e respostas+ - *follow* – notificar este canal para novos tópicos+ - *mute* – bloquear notificações para este canal++ *Remover regra:* `/discourse remove [rule number]`+ (`[rule number]` pode ser encontrado executando `/discourse status`)++ *Regras de lista:* `/discourse status`++ *[Experimental] Transcrição de publicação:* `/discourse post [n]`+ Cria um tópico de rascunho contendo as últimas "n" postagens neste canal++ *Ajuda:* `/discourse help`+ transcript:+ modal_title: "Criar transcrição"+ modal_description: "Todas as mensagens na conversa serão reunidas em uma única publicação no fórum. Você terá oportunidade de editar a transcrição antes de postar."+ transcript_ready: "Transcrição pronta"+ continue_on_discourse: "Continuar no fórum"+ error: "Algo deu errado ao criar a transcrição, desculpe!"+ post_to_discourse: "Clique aqui para elaborar uma postagem no Discourse com uma transcrição"+ api_required: "Desculpe, esta integração não está configurada para suportar postagens de transcrições."+ view_on_slack: "Visualizar em %{name} no Slack"+ first_message_pretext: "começando %{n} mensagens atrás:"+ last_message_pretext: "e terminando %{n} mensagens atrás:"+ posted_in: "postado em %{name}"+ change_first_message: "Alterar a primeira mensagem…"+ change_last_message: "Alterar a última mensagem…"+ loading: "Carregando a transcrição…"+ error_users: "Erro: não é possível buscar no Slack"+ error_history: "Erro: não é possível buscar histórico de canais no Slack"+ error_ts: "Erro: não é possível buscar mensagem solicitada no Slack"+ messaging:+ topic_tag_changed:+ added_and_removed: "Adicionou %{added} e removeu %{removed}"+ added: "Adicionou %{added}"+ removed: "Removeu %{removed}"+ telegram:+ unknown_chat: "Este bate-papo não está configurado em %{site_title}. Peça a um administrador para adicionar um canal com \"ID de Bate-Papo\" %{chat_id}."+ known_chat: "Este bate-papo está configurado em %{site_title}. Configure-o no painel de administração. (ID do Bate-Papo: %{chat_id})"+ message: |-+ <b>%{user}</b> postou em <a href="%{post_url}">%{title}</a>++ <pre>%{post_excerpt}</pre>+ status:+ header: |+ <b>Regras para este canal</b>+ (se várias regras corresponderem a uma postagem, a regra mais alta será executada)+ no_rules: "Não há regras configuradas para este canal. Execute <code>/help</code> para instruções."+ rule_string: "<b>%{index})</b> <b>%{filter}</b> postagens em <b>%{category}</b>"+ rule_string_tags_suffix: " com etiquetas: <b>%{tags}</b>"+ parse_error: "Desculpe, eu não entendi isso. Execute <code>/help</code> para instruções."+ create:+ created: "Regra criada com sucesso"+ updated: "Regra atualizada com sucesso"+ error: "Desculpe, ocorreu um erro ao criar essa regra."+ delete:+ success: "Regra excluída com sucesso"+ error: "Desculpe, ocorreu um erro ao excluir essa regra. Execute <code>/status</code> para uma lista de regras."+ not_found:+ tag: "A etiqueta <b>%{name}</b> não pode ser encontrada."+ category: "A categoria <b>%{name}</b> não pode ser encontrada. Categorias disponíveis: <b>%{list}</b>"+ help: |+ <b>Nova regra:</b> <code>/[watch|follow|mute] [categoria] [etiqueta:nome]</code>+ (você precisa especificar um tipo de regra e pelo menos uma categoria ou etiqueta)+ - <b>watch</b> – notificar este canal sobre novos tópicos e novas respostas+ - <b>follow</b> – notificar este canal sobre novos tópicos+ - <b>mute</b> – bloquear notificações para este canal++ <b>Remover regra:</b> <code>/remove [número da regra]</code>+ (<code>[número da regra]</code> pode ser encontrado executando <code>/status</code>)++ <b>Listar regras:</b> <code>/status</code>++ <b>Ajuda:</b> <code>/help</code>+ hipchat:+ message: <b>%{user}</b> postou em <a href="%{post_url}">%{title}</a>+ mattermost:+ status:+ header: |+ *Regras para este canal*+ (se várias regras corresponderem a uma postagem, a regra mais alta será executada)+ no_rules: "Não há regras configuradas para este canal. Execute `/discourse help` para instruções."+ rule_string: "*%{index})* *%{filter}* postagens em *%{category}*"+ rule_string_tags_suffix: "com etiquetas: *%{tags}*"+ parse_error: "Desculpe, eu não entendi isso. Execute /help para instruções."+ create:+ created: "Regra criada com sucesso"+ updated: "Regra atualizada com sucesso"+ error: "Desculpe, ocorreu um erro ao criar essa regra."+ delete:+ success: "Regra excluída com sucesso"+ error: "Desculpe, ocorreu um erro ao excluir aquela regra. Execute `/discourse status` para uma lista de regras."+ not_found:+ tag: "A etiqueta *%{name}* não pode ser encontrada."+ category: "A categoria *%{name}* não pode ser encontrada. Categorias disponíveis: *%{list}*"+ help: |+ *Nova regra:* `/discourse [watch|follow|mute] [categoria] [etiqueta:nome]`+ (você precisa especificar um tipo de regra e pelo menos uma categoria ou etiqueta)+ - *watch* – notificar este canal sobre novos tópicos e novas respostas+ - *follow* – notificar este canal sobre novos tópicos+ - *mute* – bloquear notificações para este canal++ *Remover regra:* `/discourse remove [número da regra]`+ (`[número da regra]` pode ser encontrado executando `/discourse status`)++ *Listar regras:* `/discourse status`++ *Ajuda:* `/discourse help`+ matrix:+ text_message: "%{user} postou em %{title} - %{post_url}"+ formatted_message: |+ <b>%{user}</b> postou em <b><a href='%{post_url}'>%{title}</a></b>+ <blockquote>+ %{excerpt}+ </blockquote>+ zulip:+ message: |+ **%{user}** postou em **[%{title}](%{post_url})**+ ~~~quote+ %{excerpt}+ ~~~+ flowdock:+ message_title: "postou"+ google:+ new_post: "Nova publicação em %{site_title}"+ new_topic: "Novo tópico em %{site_title}"+ author: "por @%{username}"+ link: "Visualizar em %{site_title}"+ groupme:+ errors:+ instance_names_issue: "Nomes de instância formatados incorretamente ou não fornecidos"diff --git a/plugins/discourse-chat-integration/config/locales/server.ro.yml b/plugins/discourse-chat-integration/config/locales/server.ro.ymlnew file mode 100644index 00000000000..11d73634552--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.ro.yml@@ -0,0 +1,20 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ro:+ chat_integration:+ all_categories: "(toate categoriile)"+ topic_tag_changed:+ added: "Adăugată în %{added}"+ removed: "A eliminat pe %{removed}"+ provider:+ slack:+ messaging:+ topic_tag_changed:+ added: "Adăugată în %{added}"+ removed: "A eliminat pe %{removed}"+ flowdock:+ message_title: "postat(e)"diff --git a/plugins/discourse-chat-integration/config/locales/server.ru.yml b/plugins/discourse-chat-integration/config/locales/server.ru.ymlnew file mode 100644index 00000000000..9d57b313a18--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.ru.yml@@ -0,0 +1,232 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ru:+ site_settings:+ chat_integration_enabled: 'Включить плагин discourse-chat-integration'+ chat_integration_discourse_username: 'Имя пользователя, используемое при загрузке контента.'+ chat_integration_delay_seconds: 'Количество секунд ожидания после создания записи перед отправкой уведомлений в чат'+ chat_integration_slack_username: "Имя бота для отправки сообщения в Slack"+ chat_integration_slack_enabled: 'Включить провайдера для чат-интеграции со Slack'+ chat_integration_slack_access_token: 'OAuth-токен доступа для аутентификации в Slack'+ chat_integration_slack_incoming_webhook_token: 'Токен подтверждения, используемый для аутентификации входящих запросов'+ chat_integration_slack_excerpt_length: 'Размер сообщения в Slack'+ chat_integration_slack_icon_url: 'URL логотипа для отображения в Slack (по умолчанию используется логотип форума)'+ chat_integration_slack_outbound_webhook_url: "URL для использования входящих вебхуков в Slack вместо API OAuth. Использовать не рекомендуется."+ chat_integration_slack_transcript_quote: Помещать slack-содержимое в теги [quote]?+ errors:+ chat_integration_slack_api_configs_are_empty: "Вы должны ввести либо исходящий URL-адрес вебхука, либо токен доступа"+ chat_integration_telegram_enabled: "Включить чат-интеграцию с Telegram"+ chat_integration_telegram_access_token: "Токен доступа вашего бота от Telegram"+ chat_integration_telegram_excerpt_length: "Размер сообщения в Telegram"+ chat_integration_telegram_enable_slash_commands: "Разрешить управление подписками Telegram с помощью 'slash commands'"+ chat_integration_discord_enabled: "Включить провайдера для чат-интеграции c Discord"+ chat_integration_discord_message_content: "Сообщение, размещаемое над сводкой при отправке уведомления в Discord"+ chat_integration_discord_excerpt_length: "Размер сообщения в Discord"+ chat_integration_guilded_enabled: "Включить провайдера для чат-интеграции с Guilded"+ chat_integration_guilded_excerpt_length: "Размер сообщения в Guilded"+ chat_integration_mattermost_enabled: "Включить провайдера для чат-интеграции c Mattermost"+ chat_integration_mattermost_webhook_url: 'URL для вебхука в Mattermost'+ chat_integration_mattermost_incoming_webhook_token: 'Токен подтверждения, используемый для аутентификации входящих запросов'+ chat_integration_mattermost_icon_url: "URL логотипа для отображения в Mattermost (по умолчанию используется логотип форума)"+ chat_integration_mattermost_excerpt_length: "Размер сообщения в Mattermost"+ chat_integration_matrix_enabled: "Включить провайдера для чат-интеграции с Matrix"+ chat_integration_matrix_homeserver: "Настройка homeserver для подключения. Не забудьте указать протокол"+ chat_integration_matrix_access_token: "Токен доступа для бота Matrix"+ chat_integration_matrix_excerpt_length: "Размер сообщения в Matrix"+ chat_integration_matrix_use_notice: "Используйте уведомление вместо простого сообщения"+ chat_integration_zulip_enabled: "Включить провайдера для чат-интеграции с Zulip"+ chat_integration_zulip_server: "Базовый URL для вашего сервера Zulip. Обязательно укажите префикс http(s)://"+ chat_integration_zulip_bot_email_address: "Адрес электронной почты, связанный с вашим ботом Zulip"+ chat_integration_zulip_bot_api_key: "Ключ API для бота Zulip"+ chat_integration_zulip_excerpt_length: "Размер сообщения в Zulip"+ chat_integration_rocketchat_enabled: "Включить провайдера для чат-интеграции с Rocket Chat"+ chat_integration_rocketchat_webhook_url: "URL для вебхука интеграции с Rocket Chat"+ chat_integration_rocketchat_excerpt_length: "Размер сообщения в Rocket Chat"+ chat_integration_gitter_enabled: "Включить провайдера для чат-интеграции с Gitter"+ chat_integration_flowdock_enabled: "Включить провайдера для чат-интеграции с Flowdock"+ chat_integration_flowdock_excerpt_length: "Размер сообщения в Flowdock"+ chat_integration_groupme_enabled: "Включить провайдера для чат-интеграции с Groupme"+ chat_integration_groupme_excerpt_length: "Размер сообщения в Groupme"+ chat_integration_groupme_bot_ids: "*требуются* идентификаторы ботов, разделенные запятыми, при наличии нескольких ботов"+ chat_integration_groupme_instance_names: " *требуются* имена GroupMe, разделенные запятыми, при наличии нескольких элементов (в том же порядке, что и идентификаторы ботов)"+ chat_integration_teams_enabled: "Включить интеграцию с Microsoft Teams"+ chat_integration_teams_excerpt_length: "Размер сообщения в Microsoft Team"+ chat_integration_powerautomate_enabled: "Включить интеграцию с Microsoft Power Automate"+ chat_integration_powerautomate_excerpt_length: "Размер публикации в Microsoft Power Automate"+ chat_integration_webex_enabled: "Включить службу интеграции с чатом Webex Teams"+ chat_integration_webex_excerpt_length: "Размер сообщения в Webex Teams"+ chat_integration_google_enabled: "Включить провайдера для чат-интеграции c Google Chat"+ chat_integration_google_excerpt_length: "Размер сообщения в Google Chat"+ dashboard:+ problem:+ channel_errors: "В некоторых каналах интеграции чата есть ошибки. Подробнее — в <a href='%{base_path}/admin/plugins/chat-integration'>разделе интеграции чата</a>."+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Отправить Slack-сообщение+ send_chat_integration_message:+ title: Отправка сообщения с помощью плагина Chat-Integration+ chat_integration:+ all_categories: "(все категории)"+ deleted_category: "(удаленный раздел)"+ deleted_group: "(удаленная группа)"+ group_mention_template: "Упоминания о: @ %{name}"+ group_message_template: "сообщения для: @%{name}"+ topic_tag_changed:+ added_and_removed: "Добавлено — %{added}, удалено — %{removed}"+ added: "Добавлено: %{added}"+ removed: "Удалено: %{removed}"+ provider:+ slack:+ status:+ header: |+ Этот чат настроен на %{site_title}. Настройте его в панели администратора. (Идентификатор чата: %{chat_id})+ no_rules: "Для этого канала нет правил. Запустите `/discourse help` для получения инструкций."+ rule_string: "*%{index})* *%{filter}* сообщений в разделе *%{category}*"+ rule_string_tags_suffix: " с тегами: *%{tags}*"+ parse_error: "Непонятно. Для получения инструкций запустите `/discourse help`."+ create:+ created: "Правило успешно создано"+ updated: "Правило успешно обновлено"+ error: "Извините, при создании этого правила произошла ошибка."+ delete:+ success: "Правило успешно удалено"+ error: "При удалении этого правила произошла ошибка. Запустите `/discourse status` для получения списка правил."+ not_found:+ tag: "Тег *%{name}* не найден."+ category: "Раздел *%{name}* не найден. Доступные разделы: *%{list}*"+ help: |+ *Новое правило:* `/discourse [thread|watch|follow|mute] [категория] [tag:название]`+ (необходимо указать тип правила и хотя бы одну категорию или тег)+ - *thread* — уведомлять канал о новых темах, ответы по возможности в цепочках.+ - *watch* — уведомлять этот канал о новых темах и новых ответах.+ - *follow* — уведомлять этот канал о новых темах.+ - *mute* — не уведомлять этот канал.++ *Удаление правила:* `/discourse remove [номер правила]`+ (`[номер правила]` можно найти, запустив `/discourse status`)++ *Вывести правила:* `/discourse status`++ *[Экспериментальная функция] Содержимое записи:* `/discourse post [n]`+ Создать черновик темы на Discourse с последними `n` сообщениями в этом канале.++ *Справка:* `/discourse help`+ transcript:+ modal_title: "Создать стенограмму"+ modal_description: "Все сообщения в ветке обсуждения будут собраны в единое сообщение на форуме. Вам будет предоставлена возможность отредактировать стенограмму перед публикацией."+ transcript_ready: "Стенограмма готова"+ continue_on_discourse: "Продолжить на форуме"+ error: "Что-то пошло не так при создании стенограммы, извините!"+ post_to_discourse: "Нажмите здесь, чтобы создать черновик записи на Discourse с содержимым"+ api_required: "Эта интеграция не настроена для поддержки публикации содержимого."+ view_on_slack: "Посмотреть в %{name} на Slack"+ first_message_pretext: "начало, сообщений назад — %{n}:"+ last_message_pretext: "и конец, сообщений назад — %{n}:"+ posted_in: "размещено в %{name}"+ change_first_message: "Изменить первое сообщение..."+ change_last_message: "Изменить последнее сообщение..."+ loading: "Загрузка стенограммы..."+ error_users: "Ошибка: не удается получить пользователей из Slack"+ error_history: "Ошибка: не удается получить историю канала из Slack"+ error_ts: "Ошибка: не удается получить запрошенное сообщение из Slack"+ messaging:+ topic_tag_changed:+ added_and_removed: "Добавлено — %{added}, удалено — %{removed}"+ added: "Добавлено: %{added}"+ removed: "Удалено: %{removed}"+ telegram:+ unknown_chat: "Этот чат не настроен на %{site_title}. Попросите администратора добавить канал с идентификатором чата %{chat_id}."+ known_chat: "Этот чат настроен на %{site_title}. Настройте его в панели администратора. (Идентификатор чата: %{chat_id})"+ message: |-+ <b>%{user}</b> размещено в <a href="%{post_url}">%{title}</a>++ <pre>%{post_excerpt}</pre>+ status:+ header: |+ <b>Правила для этого канала</b>+ (если сообщение соответствует нескольким правилам, то выполняется самое верхнее правило)+ no_rules: "Для этого канала нет правил. Запустите <code>/help</code> для получения инструкций."+ rule_string: "<b>%{index})</b> <b>%{filter}</b> сообщений в разделе <b>%{category}</b>"+ rule_string_tags_suffix: " с тегами: <b>%{tags}</b>"+ parse_error: "Непонятно. Для получения инструкций запустите <code>/help</code>."+ create:+ created: "Правило успешно создано"+ updated: "Правило успешно обновлено"+ error: "Извините, произошла ошибка при создании этого правила."+ delete:+ success: "Правило успешно удалено"+ error: "При удалении этого правила произошла ошибка. Запустить <code>/status</code> для получения списка правил."+ not_found:+ tag: "Тег <b>%{name}</b> не найден."+ category: "Раздел <b>%{name}</b> не найден. Доступные разделы: <b>%{list}</b>"+ help: |+ <b>Новое правило:</b> <code>/[watch|follow|mute] [категория] [tag:название]</code>+ (необходимо указать тип правила и хотя бы одну категорию или тег)+ - <b>watch</b> — уведомлять этот канал о новых темах и новых ответах.+ - <b>follow</b> — уведомлять этот канал о новых темах.+ - <b>mute</b> — не уведомлять этот канал.++ <b>Удаление правила:</b> <code>/remove [номер правила]</code>+ (<code>[номер правила]</code> можно найти, запустив <code>/status</code>)++ <b>Вывести правила:</b> <code>/status</code>++ <b>Справка:</b> <code>/help</code>+ hipchat:+ message: <b>%{user}</b> разместил(а) запись в <a href="%{post_url}">%{title}</a>+ mattermost:+ status:+ header: |+ *Правила для этого канала*+ (если сообщение соответствует нескольким правилам, то выполняется самое верхнее правило)+ no_rules: "Для этого канала нет правил. Запустите `/discourse help` для получения инструкций."+ rule_string: "*%{index})* *%{filter} *сообщений в разделе *%{category}*"+ rule_string_tags_suffix: " с тегами: *%{tags}*"+ parse_error: "Извини, я этого не понял. Запустите `/discourse help` для получения инструкций."+ create:+ created: "Правило успешно создано"+ updated: "Правило успешно обновлено"+ error: "Извините, произошла ошибка при создании этого правила."+ delete:+ success: "Правило успешно удалено"+ error: "При удалении этого правила произошла ошибка. Запустите `/discourse status` для получения списка правил."+ not_found:+ tag: "Тег *%{name}* не найден."+ category: "Категория * %{name} * не найдена. Доступные категории: * %{list} *"+ help: |+ *Новое правило:* `/discourse [watch|follow|mute] [категория] [tag:название]`+ (необходимо указать тип правила и хотя бы одну категорию или тег)+ - *watch* — уведомлять этот канал о новых темах и новых ответах.+ - *follow* — уведомлять этот канал о новых темах.+ - *mute* — не уведомлять этот канал.++ *Удаление правила:* `/discourse remove [номер правила]`+ (`[номер правила]` можно найти, запустив `/discourse status`)++ *Вывести правила:* `/discourse status`++ *Справка:* `/discourse help`+ matrix:+ text_message: "%{user} размещено в %{title} - %{post_url}"+ formatted_message: |+ <b>%{user}</b> разместил(а) запись <b><a href='%{post_url}'>%{title}</a></b>+ <blockquote>+ %{excerpt}+ </blockquote>+ zulip:+ message: "**%{user}** опубликовано в **[%{title}] (%{post_url})**\n~~~ цитата \n%{excerpt}\n~~~\n"+ flowdock:+ message_title: "отправлено"+ google:+ new_post: "Новое сообщение на %{site_title}"+ new_topic: "Новая тема на %{site_title}"+ author: "от @%{username}"+ link: "Посмотреть на %{site_title}"+ groupme:+ errors:+ instance_names_issue: "Имена экземпляров неправильно отформатированы или не указаны"diff --git a/plugins/discourse-chat-integration/config/locales/server.sk.yml b/plugins/discourse-chat-integration/config/locales/server.sk.ymlnew file mode 100644index 00000000000..8db3450b042--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.sk.yml@@ -0,0 +1,22 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sk:+ chat_integration:+ all_categories: "(všetky kategórie)"+ topic_tag_changed:+ added_and_removed: "Pridané %{added} a odstránené %{removed}"+ added: "Pridané %{added}"+ removed: "Odstránené %{removed}"+ provider:+ slack:+ messaging:+ topic_tag_changed:+ added_and_removed: "Pridané %{added} a odstránené %{removed}"+ added: "Pridané %{added}"+ removed: "Odstránené %{removed}"+ flowdock:+ message_title: "odoslané"diff --git a/plugins/discourse-chat-integration/config/locales/server.sl.yml b/plugins/discourse-chat-integration/config/locales/server.sl.ymlnew file mode 100644index 00000000000..ff501876154--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.sl.yml@@ -0,0 +1,14 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sl:+ site_settings:+ chat_integration_enabled: 'Vključi discourse-chat-integration vtičnik'+ chat_integration:+ all_categories: "(vse kategorije)"+ provider:+ flowdock:+ message_title: "objavljeno"diff --git a/plugins/discourse-chat-integration/config/locales/server.sq.yml b/plugins/discourse-chat-integration/config/locales/server.sq.ymlnew file mode 100644index 00000000000..bc9c79ebc35--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.sq.yml@@ -0,0 +1,9 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sq:+ chat_integration:+ all_categories: "(të gjitha kategoritë)"diff --git a/plugins/discourse-chat-integration/config/locales/server.sr.yml b/plugins/discourse-chat-integration/config/locales/server.sr.ymlnew file mode 100644index 00000000000..a17aac3dd81--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.sr.yml@@ -0,0 +1,11 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sr:+ chat_integration:+ provider:+ flowdock:+ message_title: "pisao"diff --git a/plugins/discourse-chat-integration/config/locales/server.sv.yml b/plugins/discourse-chat-integration/config/locales/server.sv.ymlnew file mode 100644index 00000000000..2eb89a00f02--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.sv.yml@@ -0,0 +1,228 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sv:+ site_settings:+ chat_integration_enabled: 'Aktivera discourse-chattintegrerings-tillägget'+ chat_integration_discourse_username: 'Användarnamn för användaren att fungera som vid hämtning av innehåll.'+ chat_integration_delay_seconds: 'Väntan, uttryckt i sekunder, efter inläggets skapande innan chattaviseringar skickas'+ chat_integration_slack_username: "Bots användarnamn att skriva till Slack under"+ chat_integration_slack_enabled: 'Aktivera chattintegreringsleverantören för Slack'+ chat_integration_slack_access_token: 'OAuth-tillträdesbevis för autentisering med Slack'+ chat_integration_slack_incoming_webhook_token: 'Verifieringsbevis som används för att autentisera inkommande förfrågningar'+ chat_integration_slack_excerpt_length: 'Slack-inläggsutdragets längd'+ chat_integration_slack_icon_url: 'Ikon för inlägg till Slack (standard är forumets logotyp)'+ chat_integration_slack_outbound_webhook_url: "För att använda Slacks 'inkommande webhook' som system istället för OAuth API. Rekommenderas inte."+ chat_integration_slack_transcript_quote: Slå in slack transkript i [quote] -taggar?+ errors:+ chat_integration_slack_api_configs_are_empty: "Du måste ange antingen en utgående webhook-URL, eller ett behörighetsbevis"+ chat_integration_telegram_enabled: "Aktivera chattintegreringsleverantören för Telegram"+ chat_integration_telegram_access_token: "Din hjälpredas åtkomstbevis från Telegram-hjälpredefadern"+ chat_integration_telegram_excerpt_length: "Telegram-inläggsutdragets längd"+ chat_integration_telegram_enable_slash_commands: "Tillåt att Telegram-prenumerationer hanteras genom 'slash commands'"+ chat_integration_discord_enabled: "Aktivera chattintegreringsleverantören för Discord"+ chat_integration_discord_message_content: "Meddelande att inkludera ovanför sammanfattningen vid sändning av en avisering till Discord"+ chat_integration_discord_excerpt_length: "Discord-inläggsutdragets längd"+ chat_integration_mattermost_enabled: "Aktivera chattintegreringsleverantören för Mattermost"+ chat_integration_mattermost_webhook_url: 'URL för Mattermost-webhook'+ chat_integration_mattermost_incoming_webhook_token: 'Verifieringsbevis som används för att autentisera inkommande förfrågningar'+ chat_integration_mattermost_icon_url: "Ikon för inlägg till Mattermost (standard är forumets logotyp)"+ chat_integration_mattermost_excerpt_length: "Mattermost-inläggsutdragets längd"+ chat_integration_matrix_enabled: "Aktivera chattintegreringsleverantör för Matrix"+ chat_integration_matrix_homeserver: "Hemserver att ansluta till. Se till att inkludera protokollet"+ chat_integration_matrix_access_token: "Åtkomstbevis för botens Matrix-konto"+ chat_integration_matrix_excerpt_length: "Matrix-inläggsutdragets längd"+ chat_integration_matrix_use_notice: "Använd notis istället för vanligt meddelande"+ chat_integration_zulip_enabled: "Aktivera chattintegreringsleverantör för Zulip"+ chat_integration_zulip_server: "Bas-URL för din Zulip-server. Se till att ta med http(s)://"+ chat_integration_zulip_bot_email_address: "E-postadressen som är kopplad till din Zulip-hjälpreda"+ chat_integration_zulip_bot_api_key: "API-nyckeln för din Zulip-hjälpreda"+ chat_integration_zulip_excerpt_length: "Zulip-inläggsutdragets längd"+ chat_integration_rocketchat_enabled: "Aktivera chattintegreringsleverantör för Rocket Chat"+ chat_integration_rocketchat_webhook_url: "URL för Rocket Chats integrerings-webhook"+ chat_integration_rocketchat_excerpt_length: "Rocket Chat-inläggsutdragets längd"+ chat_integration_gitter_enabled: "Aktivera chattintegreringsleverantör för Gitter"+ chat_integration_flowdock_enabled: "Aktivera chattintegreringsleverantör för Flowdock"+ chat_integration_flowdock_excerpt_length: "Flowdock-inläggsutdragets längd"+ chat_integration_groupme_enabled: "Aktivera chattintegreringsleverantör för Groupme"+ chat_integration_groupme_excerpt_length: "Groupme-inläggsutdragets längd"+ chat_integration_groupme_bot_ids: "*krävs* Bot-id, avgränsade med ',' om det är flera"+ chat_integration_groupme_instance_names: " *krävs* Namn på GroupMe-chatten, avgränsade med ',' om det är flera (samma ordning som Bot-ID)"+ chat_integration_teams_enabled: "Aktivera chattintegreringsleverantören för Microsoft Teams"+ chat_integration_teams_excerpt_length: "Microsoft Team-inläggsutdragets längd"+ chat_integration_webex_enabled: "Aktivera chattintegreringsleverantör för Webex Teams"+ chat_integration_webex_excerpt_length: "Webex Team-inläggsutdragets längd"+ chat_integration_google_enabled: "Aktivera chattintegreringsleverantör för 'Google Chatt'"+ chat_integration_google_excerpt_length: "Google Chatt-inläggsutdragets längd"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Skicka Slack-meddelande+ chat_integration:+ all_categories: "(alla kategorier)"+ deleted_category: "(raderad kategori)"+ deleted_group: "(raderad grupp)"+ group_mention_template: "omnämnanden av: @%{name}"+ group_message_template: "meddelanden till: @%{name}"+ topic_tag_changed:+ added_and_removed: "Lade till %{added} och tog bort %{removed}"+ added: "Lade till %{added}"+ removed: "Tog bort %{removed}"+ provider:+ slack:+ status:+ header: |+ *Regler för denna kanal*+ (om flera regler matchar ett inlägg verkställs den översta regeln)+ no_rules: "Det har inte upprättats några regler för denna kanal. Kör `/discourse help` för instruktioner."+ rule_string: "*%{index})* *%{filter}* inlägg i *%{category}*"+ rule_string_tags_suffix: " med taggar: *%{tags}*"+ parse_error: "Tyvärr förstod jag inte det där. Kör `/discourse help` för instruktioner."+ create:+ created: "Regel har skapats"+ updated: "Regel har uppdaterats"+ error: "Tyvärr uppstod det ett fel när den regeln skapades."+ delete:+ success: "Regel har tagits bort"+ error: "Tyvärr uppstod det ett fel vid radering av den regeln. Kör `/discourse status` för att visa en lista över regler."+ not_found:+ tag: "Taggen *%{name}* kan inte hittas."+ category: "Kategorin *%{name}* kan inte hittas. Tillgängliga kategorier: *%{list}*"+ help: |+ *Ny regel:* `/discourse [thread|watch|follow|mute] [category] [tag:name]`+ (du måste specificera en regeltyp samt minst en kategori eller tagg)+ - *tråd* – avisera denna kanal vid nya ämnen, med trådade svar om möjligt+ - *bevaka* – avisera denna kanal vid nya ämnen eller nya svar+ - *följ* – avisera denna kanal vid nya ämnen+ - *tysta* – blockera aviseringar för denna kanal++ *Ta bort regel:* `/discourse remove [rule number]`+ (`[rule number]` kan tas fram genom att köra `/discourse status`)++ *Lista över regler:* `/discourse status`++ *[Experimentell] Inläggs transkription:* `/discourse post [n]`+ Skapa ett ämnesutkast på discourse som innehåller de senaste `n` inläggen för denna kanal++ *Hjälp:* `/discourse help`+ transcript:+ modal_title: "Skapa transkript"+ modal_description: "Alla meddelanden i tråden kommer att samlas i ett enda foruminlägg. Du kommer att få möjlighet att redigera transkriptet innan du publicerar."+ transcript_ready: "Transkriptet är klart"+ continue_on_discourse: "Fortsätt i forum"+ error: "Tyvärr gick något fel när utskriften skapades!"+ post_to_discourse: "Klicka här för att utarbeta ett inlägg på Discourse genom ett transkript"+ api_required: "Tyvärr är den här integrationen inte konfigurerad till att stödja transkript som inlägg."+ view_on_slack: "Visa i %{name} på Slack"+ first_message_pretext: "startande %{n} meddelanden sedan:"+ last_message_pretext: "och slutande %{n} meddelanden sedan:"+ posted_in: "Inlagt i %{name}"+ change_first_message: "Ändra första meddelandet..."+ change_last_message: "Ändra sista meddelandet..."+ loading: "Laddar transkriptet..."+ error_users: "Fel: Det gick inte att hämta användare från Slack"+ error_history: "Fel: Det gick inte att hämta kanalhistorik från Slack"+ error_ts: "Fel: Det gick inte att hämta begärt meddelande från Slack"+ messaging:+ topic_tag_changed:+ added_and_removed: "Lade till %{added} och tog bort %{removed}"+ added: "Lade till %{added}"+ removed: "Tog bort %{removed}"+ telegram:+ unknown_chat: "Denna chatt är inte konfigurerad för %{site_title}. Be en administratör att lägga till kanalen med 'Chat ID' %{chat_id}."+ known_chat: "Denna chatt är konfigurerad för %{site_title}. Konfigurera den från admin-panelen. (chatt-ID: %{chat_id})"+ message: |-+ <b>%{user}</b> publicerade i <a href="%{post_url}">%{title}</a>++ <pre>%{post_excerpt}</pre>+ status:+ header: |+ <b>Regler för denna kanal</b>+ (om flera regler matchar ett inlägg, kommer den översta regeln att verkställas)+ no_rules: "Det har inte konfigurerats regler för denna kanal. Kör <code>/help</code> för instruktioner."+ rule_string: "<b>%{index})</b><b>%{filter}</b> inlägg i <b>%{category}</b>"+ rule_string_tags_suffix: " med taggar: <b>%{tags}</b>"+ parse_error: "Tyvärr förstod jag inte det där. Kör <code>/help</code> för instruktioner."+ create:+ created: "Regel har skapats"+ updated: "Regel har uppdaterats"+ error: "Tyvärr uppstod det ett fel när den regeln skapades."+ delete:+ success: "Regel har tagits bort"+ error: "Tyvärr uppstod det ett fel vid radering av den regeln. Kör <code>/status</code> för en lista över regler."+ not_found:+ tag: "Taggen <b>%{name}</b> kan inte hittas."+ category: "Kategorin <b>%{name}</b> kan inte hittas. Tillgängliga kategorier: <b>%{list}</b>"+ help: |+ <b>Ny regel:</b> <code>/[watch|follow|mute] [category] [tag:name]</code>+ (du måste specificera en regeltyp och åtminstone en kategori eller tagg)+ -<b>bevaka</b> – avisera denna kanal för nya ämnen och nya svar+ -<b>följ</b> – avisera denna kanal för nya ämnen+ -<b>tysta</b> – blockera aviseringar för denna kanal++ <b>Ta bort regel:</b> <code>/remove [rule number]</code>+ (<code>[rule number]</code> kan hittas genom att köra <code>/status</code>)++ <b>Lista över regler:</b> <code>/status</code>++ <b>Hjälp:</b> <code>/help</code>+ hipchat:+ message: <b>%{user}</b> publicerade i <a href="%{post_url}">%{title}</a>+ mattermost:+ status:+ header: |+ *Regler för denna kanal*+ (om flera regler matchar ett inlägg kommer den översta regeln att verkställas)+ no_rules: "Det har inte upprättats några regler för denna kanal. Kör `/discourse help` för instruktioner."+ rule_string: "*%{index})* *%{filter}* inlägg i *%{category}*"+ rule_string_tags_suffix: " med taggar: *%{tags}*"+ parse_error: "Tyvärr förstod jag inte det där. Kör `/discourse help` för instruktioner."+ create:+ created: "Regel har skapats"+ updated: "Regel har uppdaterats"+ error: "Tyvärr uppstod det ett fel när den regeln skapades."+ delete:+ success: "Regel har tagits bort"+ error: "Tyvärr uppstod det ett fel vid radering av den regeln. Kör `/discourse status` för en lista över regler."+ not_found:+ tag: "Taggen *%{name}* kan inte hittas."+ category: "Kategorin *%{name}* kan inte hittas. Tillgängliga kategorier: *%{list}*"+ help: |+ *Ny regel:* `/discource [watch|follow|mute] [category] [tag:name]`+ (du måste specificera en regeltyp och åtminstone en kategori eller tagg)+ - *bevaka* – avisera denna kanal för nya ämnen och nya svar+ - *följ* – avisera denna kanal för nya ämnen+ - *tysta* – blockera aviseringar för denna kanal++ *Ta bort regel:* `/discource remove [rule number]`+ (`[rule number]` kan hittas genom att köra `/discourse status` )++ *Lista över regler:* `/discource status`++ *Hjälp:* `/discourse help`+ matrix:+ text_message: "%{user} publicerade i %{title} - %{post_url}"+ formatted_message: |+ <b>%{user}</b> publicerade i <b><a href='%{post_url}'>%{title}</a></b>+ <blockquote>+ %{excerpt}+ </blockquote>+ zulip:+ message: |+ **%{user}** publicerade i **[%{title}](%{post_url})**+ ~~~citat+ %{excerpt}+ ~~~+ flowdock:+ message_title: "publicerade"+ google:+ new_post: "Nytt inlägg på %{site_title}"+ new_topic: "Nytt ämne på %{site_title}"+ author: "av @%{username}"+ link: "Visa på %{site_title}"+ groupme:+ errors:+ instance_names_issue: "instansnamn felaktigt formaterade eller är inte angivna"diff --git a/plugins/discourse-chat-integration/config/locales/server.sw.yml b/plugins/discourse-chat-integration/config/locales/server.sw.ymlnew file mode 100644index 00000000000..2aa8e1f5fc7--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.sw.yml@@ -0,0 +1,148 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sw:+ site_settings:+ chat_integration_enabled: 'Ruhusu programu jalizi ya discourse'+ chat_integration_discourse_username: 'Jina la mtumiaji kutumika wakati wakupata taarifa.'+ chat_integration_delay_seconds: 'Namba za sekunde kusubiria baada ya kuandika taarifa kabla ya kutuma tamko '+ chat_integration_slack_enabled: 'Ruhusu watumiaji waweze kuwasiliana kupitia slack'+ chat_integration_slack_incoming_webhook_token: 'Ishara ya uthibitisho inayotumika kusahihisha maombi yanayoingia.'+ chat_integration_telegram_enabled: "Ruhusu watu kuwasiliana kupitia Telegram"+ chat_integration_telegram_access_token: "Uwezo wa kumuona roboti kutoka kwa Telegram"+ chat_integration_telegram_excerpt_length: "Urefu wa taarifa fupi kutoka kwa Telegram"+ chat_integration_discord_message_content: "Ujumbe wakuambatanishwa juu ya muhtasari wakati wa kutuma taarifa kwa Discord"+ chat_integration_discord_excerpt_length: "Urefu wa Kipande cha taarifa za Discord"+ chat_integration_mattermost_webhook_url: 'Anwani ya Mattermost webhook'+ chat_integration_mattermost_incoming_webhook_token: 'Ishara ya uthibitisho inayotumika kusahihisha maombi yanayoingia.'+ chat_integration_mattermost_icon_url: "Ikoni za machapisho kwenye Mattermost (kwa asili ni nembo ya Jamii)"+ chat_integration_matrix_homeserver: "Seva ya Nyumbani ya kuunganishwa. Hakikisha umeweka sheria au protocol"+ chat_integration_zulip_server: "Anwani ya mtandao ya seva ya Zulip. Hakikisha unaandika http(s):// "+ chat_integration_zulip_bot_email_address: "Barua pepe inayotumika kwenye roboti wa Zulip"+ chat_integration_zulip_bot_api_key: "Ufunguo kwa ajili ya roboti wa Zulip"+ chat_integration_rocketchat_enabled: "Ruhusu watu waweze kuwasiliana kwa kutumia Rocket Chat"+ chat_integration:+ all_categories: "(Vikundi Vyote)"+ deleted_category: "(kikundi kilichofutwa)"+ deleted_group: "(kikundi kilichofutwa)"+ group_mention_template: "@%{name} ametajwa:"+ group_message_template: "ujumbe kwenda kwa: @%{name}"+ provider:+ slack:+ status:+ header: |+ *Kanuni cha chaneli*+ (Kama kanuni nyingi zinaendana na taarifa, kanuni ya kwanza itapewa kipaumbele)+ no_rules: "Hii chaneli haina kanuni. Andika `/discourse-help` kupata maelezo zaidi."+ rule_string: "*%{index})* *%{filter}* machapisho ndani ya *%{category}*"+ rule_string_tags_suffix: "na nembo: *%{tags}*"+ parse_error: "Samahani, sijakuelewa. Andika `/discourse help` kupata maelekezo."+ create:+ created: "Kanuni imetengenezwa bila tatizo"+ updated: "Kanuni imesasishwa vizuri"+ error: "Samahani, hitilafu imetokea wakati wa kutengeneza hiyo kanuni."+ delete:+ success: "Kanuni imefutwa kwa mafanikio"+ error: "Samahani, hitilafu imetokea wakati wa kufuta kanuni. Andika `/discourse hali` kupata orodha ya kanuni."+ not_found:+ tag: " *%{name}* nembo haijapatikana"+ category: "*%{name}* kikundi hakipatikani. Vikundi vilivyopo ni: *%{list}*"+ transcript:+ error: "Hitilafu imetokea wakati wa kutengeneza manukuu, samahani!"+ post_to_discourse: "Bonyeza hapa kuandika taarifa kwenye Discourse kwa kutumia manuku"+ view_on_slack: "Angalia ndani ya %{name}kwenye Slack"+ first_message_pretext: "kuanzia ujumbe %{n} uliopita"+ last_message_pretext: "na imeishia ujumbe %{n} uliopita:"+ posted_in: "imeandikwa na %{name}"+ change_first_message: "Badilisha ujumbe kwanza..."+ change_last_message: "Badilisha ujumbe wako wa mwisho..."+ loading: "Manuku yanapakuliwa"+ telegram:+ unknown_chat: "Hii njia ya mawasiliano kwenye %{site_title} haijatengenezwa. Wasiliana na msimazi aongeze njia ya mawasiliano kwa jina la 'Utambulisho wa Mawasiliano' %{chat_id}"+ message: |-+ <b>%{user}</b> amechapisha kwenye <a href="%{post_url}">%{title}</a>++ <pre>%{post_excerpt}</pre>+ status:+ header: |+ <b>Kanuni ya chaneli hii</b>+ (kama kanuni nyingi zinaendana na chapisho, kanuni ya juu itatekelezwa)+ no_rules: "Hii chaneli haina kanuni. Andika <code>/help</code> kupata maelezo zaidi."+ rule_string: "<b>%{index})</b> <b>%{filter}</b> machapisho ndani ya <b>%{category}</b>"+ rule_string_tags_suffix: "na nembo: <b> %{tags} </b>"+ parse_error: "Samahani, Sijaelewa ulichokiandika. Tafadhali andika <code>/msaada</code>kupata maelezo."+ create:+ created: "Kanuni imetengenezwa kwa mafanikio"+ updated: "Kanuni imesasishwa kwa mafanikio"+ error: "Samahani, hitilafu imetokea wakati wa kutengeneza kanuni hiyo."+ delete:+ success: "Kanuni imefutwa kwa mafanikio"+ error: "Samahani, hitilafu imetokea wakati wa kufuta kanuni. Andika <code>/hali</code>kupata orodha ya kanuni."+ not_found:+ tag: "Nembo ya <b>%{name}</b> haipatikani/haipo"+ category: "Kikundi cha <b>%{name}</b>hakipatikani. Vikundi vilivyopo ni: <b>%{list}</b>"+ help: |+ <b>Kanuni Mpya:</b><code>/[watch|follow|mute] [category] [tag:name]</code>+ (Lazima uchague aina ya kanuni na kikundi au lebo moja au zaidi)+ - <b>tazama</b> – ijulishe chaneli kama kuna mada au majibu mapya+ - <b>fuatilia</b> – ijulishe chaneli kama kuna mada mpaya+ - <b>nyamazisha</b> – zuia taarifa zisifikie hii chaneli++ <b>Ondoa kanuni:</b><code> /ondoa [namba ya kanuni]</code>+ (<code>[rule number]</code> inaonekana ukiandika<code>/status</code>)++ <b>Orodha za kanuni:</b> <code>/status</code>++ <b>Msaada:</b> <code>/msaada</code>+ hipchat:+ message: <b>%{user}</b> ameandika kwenye <a href="%{post_url}">%{title}</a>+ mattermost:+ status:+ header: |+ *Kanuni cha chaneli*+ (Kama kanuni nyingi zinaendana na taarifa, kanuni ya kwanza itapewa kipaumbele)+ no_rules: "Hakuna kanuni zilizoandaliwa kwenye hii chaneli. Andika `/discourse msaada` kwa maelezo zaidi."+ rule_string: "*%{index})* *%{filter}* machapisho ndani ya %{category}*"+ rule_string_tags_suffix: "na nembo: *%{tags}*"+ parse_error: "Samahani, Sijakuelewa. Andika `/discourse msaada` kwa maelezo zaidi."+ create:+ created: "Kanuni imetengenezwa kwa mafanikio"+ updated: "Kanuni imesasishwa kwa mafanikio"+ error: "Samahani, hitilafu imetokea wakati wa kutengeneza kanuni hiyo."+ delete:+ success: "Kanuni imefutwa kwa mafanikio"+ error: "Samahani, itilafu imetokea wakati wa kufuta hiyo kanuni. Andika `/discourse hali` kupata orodha ya kanuni."+ not_found:+ tag: "Lebo ya *%{name}* haijapatikana."+ category: "Kikundi kinachoitwa %{name} hakijapatikana. Vikundi vilivyopo ni: *%{list}*"+ help: |+ *Kanuni Mpya:* `/discourse [watch|follow|mute] [category] [tag:name]`+ (Lazima uchague aina ya kanuni na kikundi au lebo moja au zaidi)+ - *tazama* – ipe taarifa chaneli kama kuna mada au majibu mapya+ - *fuatilia* – ijulishe chaneli kama kuna mada mpaya+ - *nyamazisha* – zuia taarifa zisifikie hii chaneli++ *Ondoa kanuni:* `/discourse remove [rule number]`+ (`[rule number]` can be found by running `/discourse status`)++ *List rules:* `/discourse status`++ *Help:* `/discourse help`+ matrix:+ text_message: "%{user} ameandika ndani ya %{title} - %{post_url}"+ formatted_message: |+ <b>%{user}</b> ameandika ndani ya <b><a href='%{post_url}'>%{title}</a></b>+ <blockquote>+ %{excerpt}+ </blockquote>+ zulip:+ message: |+ **%{user}** ameandika ndani ya **[%{title}](%{post_url})**+ ~~~nukulu+ %{excerpt}+ ~~~+ flowdock:+ message_title: "ameandika"diff --git a/plugins/discourse-chat-integration/config/locales/server.te.yml b/plugins/discourse-chat-integration/config/locales/server.te.ymlnew file mode 100644index 00000000000..15136327639--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.te.yml@@ -0,0 +1,20 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++te:+ chat_integration:+ all_categories: "(అన్ని వర్గాలు)"+ topic_tag_changed:+ added: "%{added} జోడించబడింది"+ removed: "తీసివేయబడింది %{removed}"+ provider:+ slack:+ messaging:+ topic_tag_changed:+ added: "%{added} జోడించబడింది"+ removed: "తీసివేయబడింది %{removed}"+ flowdock:+ message_title: "పోస్ట్ చేయబడింది"diff --git a/plugins/discourse-chat-integration/config/locales/server.th.yml b/plugins/discourse-chat-integration/config/locales/server.th.ymlnew file mode 100644index 00000000000..d101243bbb2--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.th.yml@@ -0,0 +1,12 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++th:+ chat_integration:+ all_categories: "(หมวดหมู่ทั้งหมด)"+ provider:+ flowdock:+ message_title: "โพสต์แล้ว"diff --git a/plugins/discourse-chat-integration/config/locales/server.tr_TR.yml b/plugins/discourse-chat-integration/config/locales/server.tr_TR.ymlnew file mode 100644index 00000000000..c53de37da26--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.tr_TR.yml@@ -0,0 +1,237 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++tr_TR:+ site_settings:+ chat_integration_enabled: 'discourse-chat-integration eklentisini etkinleştirin'+ chat_integration_discourse_username: 'İçerik getirilirken işlem yapılacak kullanıcının kullanıcı adı.'+ chat_integration_delay_seconds: 'Sohbet bildirimleri göndermeden önce gönderi oluşturulduktan sonra beklenecek saniye sayısı'+ chat_integration_slack_username: "Slack'te gönderi yapacak botun kullanıcı adı"+ chat_integration_slack_enabled: 'Slack sohbet entegrasyon sağlayıcısını etkinleştirin'+ chat_integration_slack_access_token: 'Slack ile kimlik doğrulama için OAuth Erişim Token''ı'+ chat_integration_slack_incoming_webhook_token: 'Gelen isteklerin kimliğini doğrulamak için kullanılan doğrulama belirteci'+ chat_integration_slack_excerpt_length: 'Slack gönderi alıntı uzunluğu'+ chat_integration_slack_icon_url: 'Slack''e gönderi yapmak için simge (varsayılan olarak forum logosu)'+ chat_integration_slack_outbound_webhook_url: "OAuth API yerine Slack'in \"Gelen Web Kancası\" sistemini kullanmak için. Tavsiye edilmez."+ chat_integration_slack_transcript_quote: Gevşek transkript [quote] etikete kaydırılsın mı?+ errors:+ chat_integration_slack_api_configs_are_empty: "Giden bir web kancası URL'si veya bir erişim token'ı girmelisiniz"+ chat_integration_telegram_enabled: "Telegram sohbet entegrasyon sağlayıcısını etkinleştirin"+ chat_integration_telegram_access_token: "Botunuzun Telegram botfather'dan aldığı erişim token'ı"+ chat_integration_telegram_excerpt_length: "Telegram gönderisi alıntı uzunluğu"+ chat_integration_telegram_enable_slash_commands: "Telegram aboneliklerinin \"eğik çizgi komutları\" kullanılarak yönetilmesine izin verin"+ chat_integration_discord_enabled: "Discord sohbet entegrasyon sağlayıcısını etkinleştirin"+ chat_integration_discord_message_content: "Discord'a bir bildirim gönderirken özetin üzerine eklenecek mesaj"+ chat_integration_discord_excerpt_length: "Discord gönderisi alıntı uzunluğu"+ chat_integration_guilded_enabled: "Guilded sohbet entegrasyon sağlayıcısını etkinleştirin"+ chat_integration_guilded_excerpt_length: "Guilded gönderisi alıntı uzunluğu"+ chat_integration_mattermost_enabled: "Mattermost sohbet entegrasyonu sağlayıcısını etkinleştirin"+ chat_integration_mattermost_webhook_url: 'Mattermost web kancası için URL'+ chat_integration_mattermost_incoming_webhook_token: 'Gelen isteklerin kimliğini doğrulamak için kullanılan doğrulama token''ı'+ chat_integration_mattermost_icon_url: "Mattermost'a gönderiler için simge (varsayılan olarak forum logosu)"+ chat_integration_mattermost_excerpt_length: "Mattermost gönderisi alıntı uzunluğu"+ chat_integration_matrix_enabled: "Matrix sohbet entegrasyon sağlayıcısını etkinleştirin"+ chat_integration_matrix_homeserver: "Bağlanılacak ana sunucu. Protokolü eklediğinizden emin olun"+ chat_integration_matrix_access_token: "Botun Matrix hesabı için erişim token'ı"+ chat_integration_matrix_excerpt_length: "Matrix gönderisi alıntı uzunluğu"+ chat_integration_matrix_use_notice: "Düz mesaj yerine bildirim kullanın"+ chat_integration_zulip_enabled: "Zulip sohbet entegrasyon sağlayıcısını etkinleştirin"+ chat_integration_zulip_server: "Zulip sunucunuz için temel URL. http(s):// eklediğinizden emin olun"+ chat_integration_zulip_bot_email_address: "Zulip botunuzla ilişkili e-posta adresi"+ chat_integration_zulip_bot_api_key: "Zulip botunuz için API anahtarı"+ chat_integration_zulip_excerpt_length: "Zulip gönderisi alıntı uzunluğu"+ chat_integration_rocketchat_enabled: "Rocket Chat sohbet entegrasyon sağlayıcısını etkinleştirin"+ chat_integration_rocketchat_webhook_url: "Rocket Chat entegrasyonu web kancası için URL"+ chat_integration_rocketchat_excerpt_length: "Rocket Chat gönderisi alıntı uzunluğu"+ chat_integration_gitter_enabled: "Gitter sohbet entegrasyon sağlayıcısını etkinleştirin"+ chat_integration_flowdock_enabled: "Flowdock sohbet entegrasyon sağlayıcısını etkinleştirin"+ chat_integration_flowdock_excerpt_length: "Flowdock gönderisi alıntı uzunluğu"+ chat_integration_groupme_enabled: "Groupme sohbet entegrasyon sağlayıcısını etkinleştirin"+ chat_integration_groupme_excerpt_length: "Groupme gönderisi alıntı uzunluğu"+ chat_integration_groupme_bot_ids: "*gerekli* Birden fazla Bot varsa \",\" ile ayrılmış Bot kimlikleri"+ chat_integration_groupme_instance_names: " *gerekli* GroupMe sohbetinin adı, birden fazla varsa \",\" ile ayrılır (Bot Kimlikleri ile aynı sırada)"+ chat_integration_teams_enabled: "Microsoft Teams sohbet tümleştirme sağlayıcısını etkinleştirin"+ chat_integration_teams_excerpt_length: "Microsoft Team gönderisi alıntı uzunluğu"+ chat_integration_powerautomate_enabled: "Microsoft Power Automate entegrasyon sağlayıcısını etkinleştirin"+ chat_integration_powerautomate_excerpt_length: "Microsoft Power Automate gönderi alıntısı uzunluğu"+ chat_integration_webex_enabled: "Webex Teams sohbet tümleştirme sağlayıcısını etkinleştirin"+ chat_integration_webex_excerpt_length: "Webex Team gönderisi alıntı uzunluğu"+ chat_integration_google_enabled: "\"Google Chat\" sohbet entegrasyon sağlayıcısını etkinleştirin"+ chat_integration_google_excerpt_length: "Google Chat gönderisi alıntı uzunluğu"+ dashboard:+ problem:+ channel_errors: "Bazı sohbet entegrasyon kanallarında hatalar var. Daha fazla bilgi edinmek için <a href='%{base_path}/admin/plugins/chat-integration'>sohbet entegrasyonu bölümünü</a> ziyaret edin."+ discourse_automation:+ scriptables:+ send_slack_message:+ title: Slack mesajı gönder+ send_chat_integration_message:+ title: Chat-Integration mesajı gönderin+ chat_integration:+ all_categories: "(tüm kategoriler)"+ deleted_category: "(silinmiş kategori)"+ deleted_group: "(silinmiş grup)"+ group_mention_template: "şu kullanıcıdan bahsedildi: @%{name}"+ group_message_template: "şu kullanıcıya mesaj gönderildi: @%{name}"+ topic_tag_changed:+ added_and_removed: "%{added} eklendi ve %{removed} kaldırıldı"+ added: "%{added} eklendi"+ removed: "%{removed} kaldırıldı"+ provider:+ slack:+ status:+ header: |+ *Bu kanal için kurallar*+ (birden fazla kural bir gönderiyle eşleşirse en üstteki kural uygulanır)+ no_rules: "Bu kanal için belirlenmiş herhangi bir kural yok. Talimatlar için \"/discourse help\" komutunu çalıştırın."+ rule_string: "*%{index})* *%{filter}*%{category}* içindeki gönderiler"+ rule_string_tags_suffix: " şu etiketlerle: *%{tags}*"+ parse_error: "Üzgünüm, bunu anlayamadım. Talimatlar için \"/discourse help\" komutunu çalıştırın."+ create:+ created: "Kural başarıyla oluşturuldu"+ updated: "Kural başarıyla güncellendi"+ error: "Üzgünüz, bu kural oluşturulurken bir hata oluştu."+ delete:+ success: "Kural başarıyla silindi"+ error: "Üzgünüz, bu kuralı silerken bir hata oluştu. Kuralların bir listesi için \"/discourse status\" komutunu çalıştırın."+ not_found:+ tag: "*%{name}* etiketi bulunamadı."+ category: "*%{name}* kategorisi bulunamadı. Mevcut kategoriler: *%{list}*"+ help: |+ *Yeni kural:* "/discourse [thread|watch|follow|mute] [category] [tag:name]"+ (bir kural türü ve en az bir kategori veya etiket belirtmelisiniz)+ - *thread* - yeni konular için bu kanalı bilgilendirin, mümkünse konu yanıtlarıyla+ - *watch* - yeni konular ve yeni yanıtlar için bu kanalı bilgilendirin+ - *follow* - yeni konular için bu kanalı bilgilendirin+ - *mute* - bu kanala bildirimleri engelleyin++ *Remove rule:* "/discourse remove [rule number]"+ ("[kural sayısı]", "/discourse status" çalıştırılarak bulunabilir)++ *List rules:* "/discourse status"++ *[Experimental] Post transcript:* "/discourse post [n]"+ Discourse'ta bu kanalda son "n" gönderiyi içeren bir taslak konu oluşturun++ *Help:* "/discourse help"+ transcript:+ modal_title: "Transkript Oluştur"+ modal_description: "Başlıktaki tüm mesajlar tek bir forum gönderisinde toplanır. Göndermeden önce transkripti düzenleme fırsatı verilir."+ transcript_ready: "Transkript hazır"+ continue_on_discourse: "Forumda devam et"+ error: "Transkript oluşturulurken bir şeyler ters gitti, üzgünüm!"+ post_to_discourse: "Konuşma metni ile forum hakkında bir gönderi hazırlamak için buraya tıklayın"+ api_required: "Maalesef bu entegrasyon, konuşma metni yayınlarını destekleyecek şekilde ayarlanmamış."+ view_on_slack: "Slack'te %{name} içinde görüntüle"+ first_message_pretext: "%{n} mesaj öncesinden başlıyor:"+ last_message_pretext: "ve %{n} mesaj önce bitiyor:"+ posted_in: "%{name} içindeki gönderi"+ change_first_message: "İlk mesajı değiştir..."+ change_last_message: "Son mesajı değiştir..."+ loading: "Transkript yükleniyor..."+ error_users: "Hata: Slack'ten kullanıcı alınamıyor"+ error_history: "Hata: Slack'ten kanal geçmişi alınamıyor"+ error_ts: "Hata: Slack'ten talep edilen mesaj alınamıyor"+ messaging:+ topic_tag_changed:+ added_and_removed: "%{added} eklendi ve %{removed} kaldırıldı"+ added: "%{added} eklendi"+ removed: "%{removed} kaldırıldı"+ telegram:+ unknown_chat: "Bu sohbet %{site_title} adresinde ayarlanmamış. Bir yöneticiden \"Sohbet Kimliği\" %{chat_id} ile bir kanal eklemesini isteyin."+ known_chat: "Bu sohbet %{site_title} adresinde kurulmuş. Yönetici panelinde yapılandırın. (Sohbet Kimliği: %{chat_id})"+ message: |-+ <b>%{user}</b> <a href="%{post_url}">%{title}</a> adresinde gönderi yaptı++ <pre>%{post_excerpt}</pre>+ status:+ header: |+ <b>Bu kanal için kurallar</b>+ (birden fazla kural bir gönderiyle eşleşirse en üstteki kural uygulanır)+ no_rules: "Bu kanal için belirlenmiş bir kural yok. Talimatlar için <code>/help</code> kodunu çalıştırın."+ rule_string: "<b>%{index})</b> <b>%{filter}</b> <b>%{category}</b> kategorisindeki gönderiler"+ rule_string_tags_suffix: " şu etiketlerle: <b>%{tags}</b>"+ parse_error: "Üzgünüm, bunu anlayamadım. Talimatlar için <code>/help</code> komutunu çalıştırın."+ create:+ created: "Kural başarıyla oluşturuldu"+ updated: "Kural başarıyla güncellendi"+ error: "Üzgünüz, bu kural oluşturulurken bir hata oluştu."+ delete:+ success: "Kural başarıyla silindi"+ error: "Maalesef, bu kural silinirken bir hata oluştu. Kurallar listesi için <code>/status</code> komutunu çalıştırın."+ not_found:+ tag: "<b>%{name}</b> etiketi bulunamadı."+ category: "<b>%{name}</b> kategorisi bulunamadı. Mevcut kategoriler: <b>%{list}</b>"+ help: |+ <b>Yeni kural:</b> <code>/[watch|follow|mute] [category] [tag:name]</code>+ (bir kural türü ve en az bir kategori veya etiket belirtmelisiniz)+ - <b>watch</b> - yeni konular ve yeni yanıtlar için bu kanalı bilgilendir+ - <b>follow</b> - yeni konular için bu kanalı bilgilendir+ - <b>mute</b> - bu kanala bildirimleri engelle++ <b>Kural kaldırma:</b> <code>/remove [kural numarası]</code>+ (<code>[kural numarası]</code> <code>/status</code>çalıştırılarak bulunabilir)++ <b>Kuralları listele:</b> <code>/status</code>++ <b>Yardım:</b> <code>/help</code>+ hipchat:+ message: <b>%{user}</b> <a href="%{post_url}">%{title}</a> adresinde gönderi yaptı+ mattermost:+ status:+ header: |+ *Bu kanal için kurallar*+ (birden fazla kural bir gönderiyle eşleşirse en üstteki kural uygulanır)+ no_rules: "Bu kanal için belirlenmiş herhangi bir kural yok. Talimatlar için \"/discourse help\" komutunu çalıştırın."+ rule_string: "*%{index}) * * %{filter} * * %{category} içindeki gönderiler*"+ rule_string_tags_suffix: " şu etiketlerle: *%{tags}*"+ parse_error: "Üzgünüm, bunu anlayamadım. Talimatlar için \"/discourse help\" komutunu çalıştırın."+ create:+ created: "Kural başarıyla oluşturuldu"+ updated: "Kural başarıyla güncellendi"+ error: "Üzgünüz, bu kural oluşturulurken bir hata oluştu."+ delete:+ success: "Kural başarıyla silindi"+ error: "Üzgünüz, bu kuralı silerken bir hata oluştu. Kuralların bir listesi için \"/discourse status\" komutunu çalıştırın."+ not_found:+ tag: "*%{name}* etiketi bulunamadı."+ category: "*%{name}* kategorisi bulunamadı. Mevcut kategoriler: *%{list}*"+ help: |+ *Yeni kural:* "/discourse [watch|follow|mute] [category] [tag:name]"+ (bir kural türü ve en az bir kategori veya etiket belirtmelisiniz)+ - *izle* - yeni konular ve yeni yanıtlar için bu kanalı bilgilendirin+ - *takip et* - yeni konular için bu kanalı bilgilendirin+ - *sessize al* - bu kanala gelen bildirimleri engelleyin++ *Kuralı kaldırın:* "/discourse remove [rule number]"+ ("[rule number]", "/discourse status" çalıştırılarak bulunabilir)++ *Kuralları listele:* "/discourse status"++ *Yardım:* "/discourse help"+ matrix:+ text_message: "%{user} %{title} - %{post_url} adresinde gönderi yaptı"+ formatted_message: |+ <b>%{user}</b> <b><a href='%{post_url}'>%{title}</a></b> adresinde gönderi yaptı+ <blockquote>+ %{excerpt}+ </blockquote>+ zulip:+ message: |+ **%{user}** **[%{title}](%{post_url})** adresinde gönderi yaptı+ ~~~quote+ %{excerpt}+ ~~~+ flowdock:+ message_title: "gönderildi"+ google:+ new_post: "%{site_title} üzerinde yeni gönderi"+ new_topic: "%{site_title} üzerinde yeni konu"+ author: "@%{username} tarafından"+ link: "%{site_title} üzerinde görüntüle"+ groupme:+ errors:+ instance_names_issue: "örnek adları yanlış biçimlendirilmiş veya sağlanmamış"diff --git a/plugins/discourse-chat-integration/config/locales/server.ug.yml b/plugins/discourse-chat-integration/config/locales/server.ug.ymlnew file mode 100644index 00000000000..98e6c0a7f2c--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.ug.yml@@ -0,0 +1,22 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ug:+ chat_integration:+ all_categories: "(ھەممە سەھىپە)"+ topic_tag_changed:+ added_and_removed: "%{added} قوشۇلدى ۋە %{removed} چىقىرىۋېتىلدى"+ added: "%{added} قوشۇلدى"+ removed: "%{removed} چىقىرىۋېتىلدى"+ provider:+ slack:+ messaging:+ topic_tag_changed:+ added_and_removed: "%{added} قوشۇلدى ۋە %{removed} چىقىرىۋېتىلدى"+ added: "%{added} قوشۇلدى"+ removed: "%{removed} چىقىرىۋېتىلدى"+ flowdock:+ message_title: "يوللانغان ۋاقىت"diff --git a/plugins/discourse-chat-integration/config/locales/server.uk.yml b/plugins/discourse-chat-integration/config/locales/server.uk.ymlnew file mode 100644index 00000000000..d2c92495fa7--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.uk.yml@@ -0,0 +1,63 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++uk:+ site_settings:+ chat_integration_enabled: 'Увімкнути плагін інтеграції дискурс-чату'+ chat_integration_telegram_excerpt_length: "Довжина витягу телеграмового повідомлення"+ chat_integration:+ all_categories: "(усі категорії)"+ deleted_category: "(видалена категорія)"+ deleted_group: "(видалена група)"+ group_message_template: "повідомлення до: @ %{name}"+ topic_tag_changed:+ added_and_removed: "Додано %{added} і видалено %{removed}"+ added: "Додано %{added}"+ removed: "Видалено %{removed}"+ provider:+ slack:+ status:+ no_rules: "Для цього каналу немає правил. Запустіть `/discourse help` для отримання інструкцій."+ rule_string_tags_suffix: "з тегами: * %{tags} *"+ create:+ created: "Правило створено успішно"+ updated: "Правило успішно оновлено"+ error: "На жаль, під час створення цього правила сталася помилка."+ delete:+ success: "Правило успішно видалено"+ error: "На жаль, під час видалення цього правила сталася помилка. Запустіть `/discourse status` для списку правил."+ transcript:+ change_first_message: "Змінити перше повідомлення ..."+ change_last_message: "Змінити останнє повідомлення ..."+ messaging:+ topic_tag_changed:+ added_and_removed: "Додано %{added} і видалено %{removed}"+ added: "Додано %{added}"+ removed: "Видалено %{removed}"+ telegram:+ status:+ no_rules: "Для цього каналу немає правил. Запустіть <code>/help</code> для нструкцій."+ rule_string_tags_suffix: "з тегами: <b>%{tags}</b>"+ parse_error: "Вибачте, я цього не зрозумів. Запустіть <code>/help</code> для інструкцій."+ create:+ created: "Правило створено успішно"+ updated: "Правило успішно оновлено"+ error: "На жаль, під час створення цього правила сталася помилка."+ delete:+ success: "Правило успішно видалено"+ mattermost:+ status:+ no_rules: "Для цього каналу немає правил. Запустіть `/discourse help` для отримання інструкцій."+ rule_string_tags_suffix: "з тегами: * %{tags} *"+ create:+ created: "Правило створено успішно"+ updated: "Правило успішно оновлено"+ error: "На жаль, під час створення цього правила сталася помилка."+ delete:+ success: "Правило успішно видалено"+ error: "На жаль, під час видалення цього правила сталася помилка. Запустіть `/discourse status` для списку правил."+ flowdock:+ message_title: "опубліковано"diff --git a/plugins/discourse-chat-integration/config/locales/server.ur.yml b/plugins/discourse-chat-integration/config/locales/server.ur.ymlnew file mode 100644index 00000000000..518563820ce--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.ur.yml@@ -0,0 +1,172 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ur:+ site_settings:+ chat_integration_enabled: 'ڈسکورس-چَیٹ-اِنٹیگرَیشَن پلگ اِن کو فعال کریں'+ chat_integration_discourse_username: 'صارف کا صارف نام جس کی بنیاد پر مواد لایا جائے۔'+ chat_integration_delay_seconds: 'پوسٹ کی تخلیق کے بعد چَیٹ اطلاعات بھیجنے سے پہلے کتنے سیکنڈ کا انتظار کیا جائے'+ chat_integration_slack_username: "سلَیک پر پوسٹ کرنے کیلئے بَوٹ کا صارف نام"+ chat_integration_slack_enabled: 'سلَّیک کا چَیٹ-اِنٹیگرَیشَن پرووَائیڈر فعال کریں'+ chat_integration_slack_access_token: 'سلَّیک کے ساتھ توثیق کیلئے OAuth ایکسَیس ٹوکن'+ chat_integration_slack_incoming_webhook_token: 'آنے والی درخواستوں کی توثیق کرنے کیلئے استعمال ہونے والا توثیقی ٹوکن'+ chat_integration_slack_excerpt_length: 'سلَّیک پوسٹ کے اقتباس کا سائز'+ chat_integration_slack_icon_url: 'جس آئکن کے ساتھ سلَّیک پر پوسٹ کیا جائے (ڈِیفالٹ فورم لوگو ہے)'+ chat_integration_slack_outbound_webhook_url: "OAuth API کے بجائے سلَّیک کے 'اِنکَمینگ وَیب ھُوک' کے سِسٹَم کا استعمال کرنے کیلئے۔ ناپسندیدہ۔"+ errors:+ chat_integration_slack_api_configs_are_empty: "آپ کا ایک آؤٹ باؤنڈ وَیب ھُوک URL، یا ایک ایکسَیس ٹوکن درج کرنا ضروری ہے"+ chat_integration_telegram_enabled: "ٹَیلیگرام کا چَیٹ-اِنٹیگرَیشَن پرووَائیڈر فعال کریں"+ chat_integration_telegram_access_token: "ٹَیلیگرام بَوٹفادر کی طرف سے آپ کے بَوٹ کا ایکسَیس ٹوکن"+ chat_integration_telegram_excerpt_length: "ٹَیلیگرام پوسٹ کے اقتباس کا سائز"+ chat_integration_telegram_enable_slash_commands: "ٹَیلیگرام کی سَبسکرِپشنز کو 'سلَیش کمانڈز' کا استعمال کرتے ہوئے مَینَیج کرنے کی اجازت دیں"+ chat_integration_discord_enabled: "ڈِسکَورڈ کا چَیٹ-اِنٹیگرَیشَن پرووَائیڈر فعال کریں"+ chat_integration_discord_message_content: "ڈِسکَورڈ پر اِطلاع بھیجنے پر، خلاصہ کے اوپر شامل کیے جانے والا پیغام"+ chat_integration_discord_excerpt_length: "ڈِسکَورڈ پوسٹ کے اقتباس کا سائز"+ chat_integration_mattermost_enabled: "مَیٹرمَوسٹ کا چَیٹ-اِنٹیگرَیشَن پرووَائیڈر فعال کریں"+ chat_integration_mattermost_webhook_url: 'مَیٹرمَوسٹ وَیب ھُوک کیلئے URL'+ chat_integration_mattermost_incoming_webhook_token: 'آنے والی درخواستوں کی توثیق کرنے کیلئے استعمال ہونے والا توثیقی ٹوکن'+ chat_integration_mattermost_icon_url: "مَیٹرمَوسٹ پر پوسٹس کیلئے آئکن (ڈِیفالٹ فورَم لوگو ہے)"+ chat_integration_mattermost_excerpt_length: "مَیٹرمَوسٹ پوسٹ کے اقتباس کا سائز"+ chat_integration_matrix_enabled: "مَیٹرِکس کا چَیٹ-اِنٹیگرَیشَن پرووَائیڈر فعال کریں"+ chat_integration_matrix_homeserver: "ہوم سرور جس کے ساتھ کَنیکٹ کرنا ہے۔ پروٹوکول شامل کرنا یقینی بنائیں"+ chat_integration_matrix_access_token: "بَوٹ کے مَیٹرِکس اکاؤنٹ کیلئے ایکسَیس ٹوکن"+ chat_integration_matrix_excerpt_length: "مَیٹرِکس پوسٹ کے اقتباس کا سائز"+ chat_integration_matrix_use_notice: "سادہ پیغام کے بجائے نوٹس کا استعمال کریں"+ chat_integration_zulip_enabled: "زُولِپ کا چَیٹ-اِنٹیگرَیشَن پرووَائیڈر فعال کریں"+ chat_integration_zulip_server: "آپ کے زُولِپ سرور کا بَیس URL۔ http(s):// شامل کرنا یقینی بنائیں"+ chat_integration_zulip_bot_email_address: "آپ کے زُولِپ بَوٹ کے ساتھ منسلک ای میل ایڈریس"+ chat_integration_zulip_bot_api_key: "آپ کے زُولِپ بَوٹ کیلئے API کِی"+ chat_integration_zulip_excerpt_length: "زُولِپ پوسٹ کے اقتباس کا سائز"+ chat_integration_rocketchat_enabled: "راکٹ چَیٹ کا چَیٹ-اِنٹیگرَیشَن پرووَائیڈر فعال کریں"+ chat_integration_rocketchat_webhook_url: "راکٹ چَیٹ اِنٹیگرَیشَن وَیب ھُوک کیلئے URL"+ chat_integration_rocketchat_excerpt_length: "راکٹ چَیٹ پوسٹ کے اقتباس کا سائز"+ chat_integration_gitter_enabled: "گِیٹر کا چَیٹ-اِنٹیگرَیشَن پرووَائیڈر فعال کریں"+ chat_integration_flowdock_enabled: "فلَوڈَوک کا چَیٹ-اِنٹیگرَیشَن پرووَائیڈر فعال کریں"+ chat_integration_flowdock_excerpt_length: "فلَوڈَوک پوسٹ کے اقتباس کا سائز"+ chat_integration:+ all_categories: "(تمام زُمرَہ جات)"+ deleted_category: "(حذف کردہ زُمرہ)"+ deleted_group: "(حذف کردہ گروپ)"+ group_mention_template: "ذکر: @%{name} کے"+ group_message_template: "پیغامات: @%{name} کیلئے"+ provider:+ slack:+ status:+ header: |+ *اِس چینل کیلئے اصول*+ (اگر ایک سے زیادہ اصول ایک پوسٹ سے مماثلت رکھیں گے، تو سب سے اوپر والا اصول فعال ہو گا)+ no_rules: "اِس چینل کیلئے قائم کوئی اصول نہیں ہیں۔ ہدایات کیلئے `discourse help/` رَن کریں۔"+ rule_string: "*%{index})* *%{filter}* پوسٹس *%{category}* میں"+ rule_string_tags_suffix: "ٹیگز کے ساتھ: *%{tags}*"+ parse_error: "معذرت، مجھے یہ سمجھ نہیں آیا۔ ہدایات کیلئے `discourse help/` رَن کریں۔"+ create:+ created: "اصول کامیای سے بنا لیا گیا"+ updated: "اصول کامیای سے اَپ ڈَیٹ ہو گیا"+ error: "معذرت، اصول بناتے ہوے ایک خرابی کا سامنا کرنا پڑا۔"+ delete:+ success: "اصول کامیای سے حذف کر لیا گیا"+ error: "معذرت، اصول حذف کرتے ہوے ایک خرابی کا سامنا کرنا پڑا۔ اصولوں کی فہرست کیلئے `discourse status/` رَن کریں۔"+ not_found:+ tag: "ٹیگ *%{name}* تلاش نہیں کیا جا سکا۔"+ category: "زُمرہ *%{name}* تلاش نہیں کیا جا سکا۔ دستیاب زُمرہ جات: *%{list}*"+ transcript:+ error: "ٹرانسکرِپٹ بناتے وقت کچھ غلط ہو گیا، معذرت!"+ post_to_discourse: "ٹرانسکرِپٹ کے ساتھ ڈِسکورس پر ایک پوسٹ ڈرافٹ کرنے کیلئے یہاں کلک کریں"+ api_required: "معذرت، یہ اِنٹیگرَیشَن ٹرانسکرِپٹس شائع کرنے کیلئے سیٹ اَپ نہیں ہے۔"+ view_on_slack: "%{name}میں سلَّیک پر دیکھیں "+ first_message_pretext: "شروع %{n} پیغامات قبل:"+ last_message_pretext: "اور ختم %{n} پیغامات قبل:"+ posted_in: "%{name}میں پوسٹ کیا گیا "+ change_first_message: "پہلا پیغام تبدیل کریں..."+ change_last_message: "آخری پیغام تبدیل کریں..."+ loading: "ٹرانسکرِپٹ لوڈ ہو رہی ہے..."+ telegram:+ unknown_chat: "یہ چیٹ %{site_title} پر سَیٹ اَپ نہیں ہے۔ 'چیٹ ID' %{chat_id} والا چَینل شامل کرنے کیلئے ایک ایڈمِنِسٹریٹر کو کہیے۔"+ known_chat: "یہ چیٹ %{site_title} پر سَیٹ اَپ ہے۔ اِسے اَیڈمِن پَینل میں ترتیب دیں۔ (چیٹ ID:%{chat_id})"+ message: |-+ <b>%{user}</b>نے <a href="%{post_url}">%{title}</a> میں پوسٹ کیا++ <pre>%{post_excerpt}</pre>+ status:+ header: |+ <b>اِس چَینل کے اصول</b>+ (اگر ایک سے زیادہ اصول ایک پوسٹ سے مماثلت رکھیں گے، تو سب سے اوپر والا اصول فعال ہو گا)+ no_rules: "اِس چینل کیلئے قائم کوئی اصول نہیں ہیں۔ ہدایات کیلئے <code>help/</code> رَن کریں۔"+ rule_string: "<b>%{index})</b> <b>%{filter}</b>پوسٹس <b>%{category}</b> میں "+ rule_string_tags_suffix: "ٹیگز کے ساتھ: <b>%{tags}</b>"+ parse_error: "معذرت، مجھے یہ سمجھ نہیں آیا۔ ہدایات کیلئے <code>help/</code> رَن کریں۔"+ create:+ created: "اصول کامیای سے بنا لیا گیا"+ updated: "اصول کامیای سے اَپ ڈَیٹ ہو گیا"+ error: "معذرت، اصول بناتے ہوے ایک خرابی کا سامنا کرنا پڑا۔"+ delete:+ success: "اصول کامیای سے حذف کر لیا گیا"+ error: "معذرت، اصول حذف کرتے ہوے ایک خرابی کا سامنا کرنا پڑا۔ اصولوں کی فہرست کیلئے <code>status/</code> رَن کریں۔"+ not_found:+ tag: "ٹیگ <b>%{name}</b> تلاش نہیں کیا جا سکا۔"+ category: "زُمرہ <b>%{name}</b> تلاش نہیں کیا جا سکا۔ دستیاب زُمرہ جات: <b>%{list}</b>"+ help: |+ <b>نیا اصول:</b> <code>/discourse [watch|follow|mute] [category] [tag:name]</code>+ (آپ کا اصول کی قسم اور کم از کم ایک زُمرہ یا ٹَیگ کی وضاحت کرنا ضروری ہے)+ - <b>watch</b> – اِس چینل کو نئے ٹاپک اور نئے جوابات پر مطلع کریں+ - <b>follow</b> – نئے ٹاپکس پر اِس چینل کو مطلع کریں+ - <b>mute</b> – اِس چینل پر اطلاعات بلاک کریں++ <b>اصول ہٹائیں:</b> <code>[اصول نمبر] remove/</code>+ (<code>[اصول نمبر]</code> <code>status/</code> رَن کر کہ پتہ چلایا جا سکتا ہے)++ <b>اصولوں کی فہرست:</b> <code>status/</code>++ <b>مدد:</b> <code>help/</code>+ hipchat:+ message: <b>%{user}</b> نے <a href="%{post_url}">%{title}</a> میں پوسٹ کیا۔+ mattermost:+ status:+ header: |+ *اِس چینل کیلئے اصول*+ (اگر ایک سے زیادہ اصول ایک پوسٹ سے مماثلت رکھیں گے، تو سب سے اوپر والا اصول فعال ہو گا)+ no_rules: "اِس چینل کیلئے قائم کوئی اصول نہیں ہیں۔ ہدایات کیلئے `discourse help/` رَن کریں۔"+ rule_string: "*%{index})* *%{filter}* پوسٹس *%{category}* میں"+ rule_string_tags_suffix: "ٹیگز کے ساتھ: *%{tags}*"+ parse_error: "معذرت، مجھے یہ سمجھ نہیں آیا۔ ہدایات کیلئے `discourse help/` رَن کریں۔"+ create:+ created: "اصول کامیای سے بنا لیا گیا"+ updated: "اصول کامیای سے اَپ ڈَیٹ ہو گیا"+ error: "معذرت، اصول بناتے ہوے ایک خرابی کا سامنا کرنا پڑا۔"+ delete:+ success: "اصول کامیای سے حذف کر لیا گیا"+ error: "معذرت، اصول حذف کرتے ہوے ایک خرابی کا سامنا کرنا پڑا۔ اصولوں کی فہرست کیلئے `discourse status/` رَن کریں۔"+ not_found:+ tag: "ٹیگ *%{name}* تلاش نہیں کیا جا سکا۔"+ category: "زُمرہ *%{name}* تلاش نہیں کیا جا سکا۔ دستیاب زُمرہ جات: *%{list}*"+ help: |+ *نیا اصول:* `/discourse [watch|follow|mute] [category] [tag:name]`+ (آپ کا اصول کی قسم اور کم از کم ایک زُمرہ یا ٹَیگ کی وضاحت کرنا ضروری ہے)+ - *watch* – اِس چینل کو نئے ٹاپک اور نئے جوابات پر مطلع کریں+ - *follow* – نئے ٹاپکس پر اِس چینل کو مطلع کریں+ - *mute* – اِس چینل پر اطلاعات بلاک کریں++ *اصول ہٹائیں:* `discourse status/`+ (`[اصول نمبر]` `discourse status/` رَن کر کہ پتہ چلایا جا سکتا ہے)++ *اصولوں کی فہرست:* `discourse status/`++ *مدد:* `discourse help/`+ matrix:+ text_message: "%{user} نے %{title} میں پوسٹ کیا - %{post_url}"+ formatted_message: |+ <b>%{user}</b>نے <b> <a href='%{post_url}'>%{title}</a></b>میں پوسٹ کیا+ <blockquote>+ %{excerpt}+ </blockquote>+ zulip:+ message: |+ **%{user}** نے **[%{title}](%{post_url})** میں پوسٹ کیا+ ~~~اقتباس+ %{excerpt}+ ~~~+ flowdock:+ message_title: "پوسٹ کیا"diff --git a/plugins/discourse-chat-integration/config/locales/server.vi.yml b/plugins/discourse-chat-integration/config/locales/server.vi.ymlnew file mode 100644index 00000000000..e8455742ae7--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.vi.yml@@ -0,0 +1,14 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++vi:+ site_settings:+ chat_integration_mattermost_webhook_url: 'URL cho Mattermost webhook'+ chat_integration:+ all_categories: "(tất cả danh mục)"+ provider:+ flowdock:+ message_title: "được gửi"diff --git a/plugins/discourse-chat-integration/config/locales/server.zh_CN.yml b/plugins/discourse-chat-integration/config/locales/server.zh_CN.ymlnew file mode 100644index 00000000000..034f280aab3--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.zh_CN.yml@@ -0,0 +1,237 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++zh_CN:+ site_settings:+ chat_integration_enabled: '启用 discourse-chat-integration 插件'+ chat_integration_discourse_username: '获取内容时用作的用户的用户名。'+ chat_integration_delay_seconds: '创建帖子后发送聊天通知之前等待的秒数'+ chat_integration_slack_username: "发布到 Slack 时使用的机器人的用户名"+ chat_integration_slack_enabled: '启用 Slack 聊天集成提供程序'+ chat_integration_slack_access_token: '用于向 Slack 进行身份验证的 OAuth 访问令牌'+ chat_integration_slack_incoming_webhook_token: '用于验证传入请求的验证令牌'+ chat_integration_slack_excerpt_length: 'Slack 帖子摘要长度'+ chat_integration_slack_icon_url: '发布到 Slack 时使用的图标(默认为论坛徽标)'+ chat_integration_slack_outbound_webhook_url: "用于使用 Slack 的“传入 Webhook”系统而不是 OAuth API。不建议。"+ chat_integration_slack_transcript_quote: 将 Slack 语音稿包含到“[quote]”标签中?+ errors:+ chat_integration_slack_api_configs_are_empty: "您必须输入出站网络钩子 URL 或访问令牌"+ chat_integration_telegram_enabled: "启用 Telegram 聊天集成提供程序"+ chat_integration_telegram_access_token: "来自 Telegram botfather 的机器人访问令牌"+ chat_integration_telegram_excerpt_length: "Telegram 帖子摘要长度"+ chat_integration_telegram_enable_slash_commands: "允许使用“斜杠命令”管理 Telegram 订阅"+ chat_integration_discord_enabled: "启用 Discord 聊天集成提供程序"+ chat_integration_discord_message_content: "向 Discord 发送通知时要包含在摘要上方的消息"+ chat_integration_discord_excerpt_length: "Discord 帖子摘要长度"+ chat_integration_guilded_enabled: "启用 Guilded 聊天集成提供程序"+ chat_integration_guilded_excerpt_length: "Guilded 帖子摘要长度"+ chat_integration_mattermost_enabled: "启用 Mattermost 聊天集成提供程序"+ chat_integration_mattermost_webhook_url: 'Mattermost 网络钩子的 URL'+ chat_integration_mattermost_incoming_webhook_token: '用于验证传入请求的验证令牌'+ chat_integration_mattermost_icon_url: "发布到 Mattermost 时使用的图标(默认为论坛徽标)"+ chat_integration_mattermost_excerpt_length: "Mattermost 帖子摘要长度"+ chat_integration_matrix_enabled: "启用 Matrix 聊天集成提供程序"+ chat_integration_matrix_homeserver: "要连接的主服务器。请确保包含协议"+ chat_integration_matrix_access_token: "机器人的 Matrix 帐户的访问令牌"+ chat_integration_matrix_excerpt_length: "Matrix 帖子摘要长度"+ chat_integration_matrix_use_notice: "使用通知代替普通消息"+ chat_integration_zulip_enabled: "启用 Zulip 聊天集成提供程序"+ chat_integration_zulip_server: "Zulip 服务器的基础 URL。确保包含 http(s)://"+ chat_integration_zulip_bot_email_address: "与您的 Zulip 机器人关联的电子邮件地址"+ chat_integration_zulip_bot_api_key: "Zulip 机器人的 API 密钥"+ chat_integration_zulip_excerpt_length: "Zulip 帖子摘要长度"+ chat_integration_rocketchat_enabled: "启用 Rocket Chat 聊天集成提供程序"+ chat_integration_rocketchat_webhook_url: "Rocket Chat 集成网络钩子的 URL"+ chat_integration_rocketchat_excerpt_length: "Rocket Chat 帖子摘要长度"+ chat_integration_gitter_enabled: "启用 Gitter 聊天集成提供程序"+ chat_integration_flowdock_enabled: "启用 Flowdock 聊天集成提供程序"+ chat_integration_flowdock_excerpt_length: "Flowdock 帖子摘要长度"+ chat_integration_groupme_enabled: "启用 Groupme 聊天集成提供程序"+ chat_integration_groupme_excerpt_length: "GroupMe 帖子摘要长度"+ chat_integration_groupme_bot_ids: "*必填* 机器人 ID,有多个时使用 ',' 分隔"+ chat_integration_groupme_instance_names: "*必填* GroupMe 聊天的名称,有多个时使用 ',' 分隔(与机器人 ID 的顺序相同)"+ chat_integration_teams_enabled: "启用 Microsoft Teams 聊天集成提供程序"+ chat_integration_teams_excerpt_length: "Microsoft Team 帖子摘要长度"+ chat_integration_powerautomate_enabled: "启用 Microsoft Power Automate 集成提供程序"+ chat_integration_powerautomate_excerpt_length: "Microsoft Power Automate 帖子摘要长度"+ chat_integration_webex_enabled: "启用 Webex Teams 聊天集成提供程序"+ chat_integration_webex_excerpt_length: "Webex Team 帖子摘要长度"+ chat_integration_google_enabled: "启用 Google Chat 聊天集成提供程序"+ chat_integration_google_excerpt_length: "Google Chat 帖子摘要长度"+ dashboard:+ problem:+ channel_errors: "某些聊天集成频道存在错误。请访问<a href='%{base_path}/admin/plugins/chat-integration'>聊天集成</a>部分了解更多信息。"+ discourse_automation:+ scriptables:+ send_slack_message:+ title: 发送 Slack 消息+ send_chat_integration_message:+ title: 发送聊天集成消息+ chat_integration:+ all_categories: "(所有类别)"+ deleted_category: "(已删除的类别)"+ deleted_group: "(已删除的群组)"+ group_mention_template: "提及:@%{name}"+ group_message_template: "发送消息给:@%{name}"+ topic_tag_changed:+ added_and_removed: "添加了 %{added},移除了 %{removed}"+ added: "添加了 %{added}"+ removed: "移除了 %{removed}"+ provider:+ slack:+ status:+ header: |+ *此频道的规则*+ (如果一个帖子匹配多个规则,将执行最顶端的规则)+ no_rules: "此频道没有设置任何规则。运行 `/discourse help` 获取说明。"+ rule_string: "*%{index})* *%{filter}**%{category}*中的帖子"+ rule_string_tags_suffix: "包括标签:*%{tags}*"+ parse_error: "抱歉,无法识别。运行 `/discourse help` 获取说明。"+ create:+ created: "规则成功创建"+ updated: "规则成功更新"+ error: "抱歉,创建该规则时出错。"+ delete:+ success: "规则成功删除"+ error: "抱歉,删除该规则时出错。运行 `/discourse help` 获取规则列表。"+ not_found:+ tag: "找不到标签 *%{name}*"+ category: "找不到类别*%{name}*。可用类别:*%{list}*"+ help: |+ *新建规则*:`/discourse [thread|watch|follow|mute] [category] [tag:name]`+ (您必须指定规则类型和至少一个类别或标签)+ - *thread* – 在此频道有新话题和线索回复(如可能)时通知+ - *watch* – 在此频道有新话题和新回复时通知+ - *follow* – 在此频道有新话题时通知+ - *mute* – 屏蔽此频道的通知++ *移除规则*:`/discourse remove [rule number]`+ (可以通过运行 `/discourse status` 找到 `[rule number]`)++ *列出规则*:`/discourse status`++ *[实验性] 发布语音稿*:`/discourse post [n]`+ 创建关于包含此频道中最近的 `n` 个帖子的 Discourse 的话题草稿++ *帮助*:`/discourse help`+ transcript:+ modal_title: "创建语音稿"+ modal_description: "线索中的所有消息都将汇集到一个论坛帖子中。您将有机会在发布前编辑语音稿。"+ transcript_ready: "语音稿已就绪"+ continue_on_discourse: "在论坛上继续"+ error: "抱歉,创建语音稿时出错!"+ post_to_discourse: "点击此处使用语音稿在 Discourse 上创建帖子的草稿"+ api_required: "抱歉,此集成的设置不支持发布语音稿。"+ view_on_slack: "在 Slack 上查看%{name}"+ first_message_pretext: "开始于 %{n} 条消息之前:"+ last_message_pretext: "并且结束于 %{n} 条消息之前:"+ posted_in: "在%{name}中发帖"+ change_first_message: "更改第一条消息…"+ change_last_message: "更改最后条消息…"+ loading: "正在加载语音稿…"+ error_users: "错误:无法从 Slack 获取用户"+ error_history: "错误:无法从 Slack 获取频道历史记录"+ error_ts: "错误:无法从 Slack 获取请求的消息"+ messaging:+ topic_tag_changed:+ added_and_removed: "添加了 %{added},移除了 %{removed}"+ added: "添加了 %{added}"+ removed: "移除了 %{removed}"+ telegram:+ unknown_chat: "此聊天未在 %{site_title} 上设置。请要求管理员添加一个聊天 ID 为 %{chat_id} 的频道。"+ known_chat: "此聊天已在 %{site_title} 上设置。在管理面板中进行配置。(聊天 ID:%{chat_id})"+ message: |-+ <b>%{user}</b> 在 <a href="%{post_url}">%{title}</a> 中发帖++ <pre>%{post_excerpt}</pre>+ status:+ header: |+ <b>此频道的规则</b>+ (如果一个帖子匹配多个规则,将执行最顶端的规则)+ no_rules: "此频道没有设置任何规则。运行 <code>/help</code> 获取说明。"+ rule_string: "<b>%{index})</b> <b>%{filter}</b><b>%{category}</b>中的帖子"+ rule_string_tags_suffix: "包括标签:<b>%{tags}</b>"+ parse_error: "抱歉,无法识别。运行 <code>/help</code> 获取说明。"+ create:+ created: "规则成功创建"+ updated: "规则成功更新"+ error: "抱歉,创建该规则时出错。"+ delete:+ success: "规则成功删除"+ error: "抱歉,删除该规则时出错。运行 <code>/status</code> 获取规则列表。"+ not_found:+ tag: "找不到标签 <b>%{name}</b>"+ category: "找不到类别<b>%{name}</b>。可用类别:<b>%{list}</b>"+ help: |+ <b>新建规则</b>:<code>/[watch|follow|mute] [category] [tag:name]</code>+ (您必须指定规则类型和至少一个类别或标签)+ -<b>watch</b>– 在此频道有新话题和新回复时通知+ - <b>follow</b>– 在此频道有新话题时通知+ - <b>mute</b>– 屏蔽此频道的通知++ <b>移除规则</b>:<code>/remove [rule number]</code>+ (可以通过运行 <code>/status</code> 找到 <code>[rule number]</code>)++ <b>列出规则</b>:<code>/status</code>++ <b>帮助</b>:<code>/help</code>+ hipchat:+ message: <b>%{user}</b> 在 <a href="%{post_url}">%{title}</a> 中发帖+ mattermost:+ status:+ header: |+ *此频道的规则*+ (如果一个帖子匹配多个规则,将执行最顶端的规则)+ no_rules: "此频道没有设置任何规则。运行 `/discourse help` 获取说明。"+ rule_string: "*%{index})* *%{filter}**%{category}*中的帖子"+ rule_string_tags_suffix: "包括标签:*%{tags}*"+ parse_error: "抱歉,无法识别。运行 `/discourse help` 获取说明。"+ create:+ created: "规则成功创建"+ updated: "规则成功更新"+ error: "抱歉,创建该规则时出错。"+ delete:+ success: "规则成功删除"+ error: "抱歉,删除该规则时出错。运行 `/discourse help` 获取规则列表。"+ not_found:+ tag: "找不到标签 *%{name}*"+ category: "找不到类别*%{name}*。可用类别:*%{list}*"+ help: |+ *新建规则*:`/discourse [watch|follow|mute] [category] [tag:name]`+ (您必须指定规则类型和至少一个类别或标签)+ - *watch* – 在此频道有新话题和新回复时通知+ - *follow* – 在此频道有新话题时通知+ - *mute* – 屏蔽此频道的通知++ *移除规则*:`/discourse remove [rule number]`+ (可以通过运行 `/discourse status` 找到 `[rule number]`)++ *列出规则*:`/discourse status`++ *帮助*:`/discourse help`+ matrix:+ text_message: "%{user} 在 %{title} - %{post_url} 中发帖"+ formatted_message: |+ <b>%{user}</b> 在 <b><a href='%{post_url}'>%{title}</a></b> 中发帖+ <blockquote>+ %{excerpt}+ </blockquote>+ zulip:+ message: |+ **%{user}** 在 **[%{title}](%{post_url})** 中发帖+ ~~~quote+ %{excerpt}+ ~~~+ flowdock:+ message_title: "已发布"+ google:+ new_post: "%{site_title} 上有新帖子"+ new_topic: "%{site_title} 上有新话题"+ author: "作者 @%{username}"+ link: "在 %{site_title} 上查看"+ groupme:+ errors:+ instance_names_issue: "实例名称格式不正确或未提供"diff --git a/plugins/discourse-chat-integration/config/locales/server.zh_TW.yml b/plugins/discourse-chat-integration/config/locales/server.zh_TW.ymlnew file mode 100644index 00000000000..5fb7dbf75f0--- /dev/null+++ b/plugins/discourse-chat-integration/config/locales/server.zh_TW.yml@@ -0,0 +1,20 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++zh_TW:+ chat_integration:+ all_categories: "(所有分類)"+ topic_tag_changed:+ added: "已新增 %{added}"+ removed: "已移除 %{removed}"+ provider:+ slack:+ messaging:+ topic_tag_changed:+ added: "已新增 %{added}"+ removed: "已移除 %{removed}"+ flowdock:+ message_title: "發表於"diff --git a/plugins/discourse-chat-integration/config/settings.yml b/plugins/discourse-chat-integration/config/settings.ymlnew file mode 100644index 00000000000..7e383023a17--- /dev/null+++ b/plugins/discourse-chat-integration/config/settings.yml@@ -0,0 +1,171 @@+chat_integration:+ chat_integration_enabled:+ default: false+ chat_integration_discourse_username:+ default: system+ type: username+ chat_integration_delay_seconds:+ default: 20++#######################################+########## SLACK SETTINGS #############+#######################################+ chat_integration_slack_username:+ default: ''+ chat_integration_slack_enabled:+ default: false+ validator: "ChatIntegrationSlackEnabledSettingValidator"+ chat_integration_slack_access_token:+ default: ''+ chat_integration_slack_incoming_webhook_token:+ default: ''+ chat_integration_slack_excerpt_length:+ default: 400+ chat_integration_slack_outbound_webhook_url:+ default: ''+ regex: '^https:\/\/hooks\.slack\.com\/(services|workflows)\/.+$'+ chat_integration_slack_icon_url:+ default: ''+ chat_integration_slack_transcript_quote:+ default: true++#######################################+######### TELEGRAM SETTINGS ###########+#######################################+ chat_integration_telegram_enabled:+ default: false+ chat_integration_telegram_access_token:+ default: ''+ chat_integration_telegram_excerpt_length:+ default: 400+ chat_integration_telegram_enable_slash_commands:+ default: true+ chat_integration_telegram_secret:+ default: ''+ hidden: true++#######################################+########## DISCORD SETTINGS ###########+#######################################+ chat_integration_discord_enabled:+ default: false+ chat_integration_discord_message_content:+ default: ""+ chat_integration_discord_excerpt_length:+ default: 400++#######################################+########## GUILDED SETTINGS ###########+#######################################+ chat_integration_guilded_enabled:+ default: false+ chat_integration_guilded_excerpt_length:+ default: 400+++#######################################+######## MATTERMOST SETTINGS ##########+#######################################+ chat_integration_mattermost_enabled:+ default: false+ chat_integration_mattermost_webhook_url:+ default: ''+ chat_integration_mattermost_incoming_webhook_token:+ default: ''+ chat_integration_mattermost_icon_url:+ default: ''+ chat_integration_mattermost_excerpt_length:+ default: 400++#######################################+########## MATRIX SETTINGS ############+#######################################+ chat_integration_matrix_enabled:+ default: false+ chat_integration_matrix_homeserver:+ default: 'https://matrix.org'+ chat_integration_matrix_access_token:+ default: ''+ chat_integration_matrix_excerpt_length:+ default: 400+ chat_integration_matrix_use_notice:+ default: true++#######################################+########### ZULIP SETTINGS ############+#######################################+ chat_integration_zulip_enabled:+ default: false+ chat_integration_zulip_server:+ default: ''+ chat_integration_zulip_bot_email_address:+ default: ''+ chat_integration_zulip_bot_api_key:+ default: ''+ chat_integration_zulip_excerpt_length:+ default: 400++#######################################+######## ROCKET CHAT SETTINGS #########+#######################################+ chat_integration_rocketchat_enabled:+ default: false+ chat_integration_rocketchat_webhook_url:+ default: ''+ chat_integration_rocketchat_excerpt_length:+ default: 400++#######################################+########## GITTER SETTINGS ############+#######################################+ chat_integration_gitter_enabled:+ default: false++#######################################+########## FLOWDOCK SETTINGS ##########+#######################################+ chat_integration_flowdock_enabled:+ default: false+ chat_integration_flowdock_excerpt_length:+ default: 400+++#######################################+########## GROUPME SETTINGS ##########+#######################################+ chat_integration_groupme_enabled:+ default: false+ chat_integration_groupme_excerpt_length:+ default: 400+ chat_integration_groupme_bot_ids:+ default: ''+ chat_integration_groupme_instance_names:+ default: ''+###########################################+######## MICROSOFT TEAMS SETTINGS #########+###########################################+ chat_integration_teams_enabled:+ default: false+ chat_integration_teams_excerpt_length:+ default: 400+####################################################+######## MICROSOFT POWER AUTOMATE SETTINGS #########+####################################################+ chat_integration_powerautomate_enabled:+ default: false+ chat_integration_powerautomate_excerpt_length:+ default: 400+#################################+######## WEBEX SETTINGS #########+#################################+ chat_integration_webex_enabled:+ default: false+ chat_integration_webex_excerpt_length:+ default: 400+###########################################+########## GOOGLE CHAT SETTINGS ###########+###########################################+ chat_integration_google_enabled:+ default: false+ chat_integration_google_excerpt_length:+ default: 100diff --git a/plugins/discourse-chat-integration/db/migrate/20211202120030_add_unique_index_to_slack_thread_ts.rb b/plugins/discourse-chat-integration/db/migrate/20211202120030_add_unique_index_to_slack_thread_ts.rbnew file mode 100644index 00000000000..cf374addc9d--- /dev/null+++ b/plugins/discourse-chat-integration/db/migrate/20211202120030_add_unique_index_to_slack_thread_ts.rb@@ -0,0 +1,15 @@+# frozen_string_literal: true++class AddUniqueIndexToSlackThreadTs < ActiveRecord::Migration[6.1]+ def up+ add_index :topic_custom_fields,+ %i[topic_id name],+ unique: true,+ where: "(name LIKE 'slack_thread_id_%')",+ name: "index_topic_custom_fields_on_topic_id_and_slack_thread_id"+ end++ def down+ raise ActiveRecord::IrreversibleMigration+ end+enddiff --git a/plugins/discourse-chat-integration/db/migrate/20220215103720_update_discord_webhook_domains.rb b/plugins/discourse-chat-integration/db/migrate/20220215103720_update_discord_webhook_domains.rbnew file mode 100644index 00000000000..15d92e7bd21--- /dev/null+++ b/plugins/discourse-chat-integration/db/migrate/20220215103720_update_discord_webhook_domains.rb@@ -0,0 +1,19 @@+# frozen_string_literal: true++class UpdateDiscordWebhookDomains < ActiveRecord::Migration[6.1]+ def up+ execute <<~SQL+ UPDATE plugin_store_rows psr+ SET value = REPLACE(value, 'discordapp.com', 'discord.com')+ WHERE psr.plugin_name = 'discourse-chat-integration'+ AND psr.key LIKE 'channel:%'+ AND psr.type_name = 'JSON'+ AND psr.value::json ->> 'provider' = 'discord'+ AND psr.value::json ->> 'data' LIKE '%https://discordapp.com/%'+ SQL+ end++ def down+ raise ActiveRecord::IrreversibleMigration+ end+enddiff --git a/plugins/discourse-chat-integration/db/migrate/20240808175526_migrate_tag_added_from_filter_to_automation.rb b/plugins/discourse-chat-integration/db/migrate/20240808175526_migrate_tag_added_from_filter_to_automation.rbnew file mode 100644index 00000000000..658e4d8d265--- /dev/null+++ b/plugins/discourse-chat-integration/db/migrate/20240808175526_migrate_tag_added_from_filter_to_automation.rb@@ -0,0 +1,96 @@+# frozen_string_literal: true++# The next migration file is a migration that migrates the tag_added filter to an automation.+# this one uses ActiveRecord which is not recommended for migrations.++class MigrateTagAddedFromFilterToAutomation < ActiveRecord::Migration[7.1]+ def up+ # if defined?(DiscourseAutomation) &&+ # DiscourseChatIntegration::Channel.with_provider("slack").exists?+ # begin+ # DiscourseChatIntegration::Rule+ # .where("value::json->>'filter'=?", "tag_added")+ # .each do |rule|+ # channel_id = rule.value["channel_id"]+ # channel_name =+ # DiscourseChatIntegration::Channel.find(channel_id).value["data"]["identifier"] # it _must_ have a channel_id++ # category_id = rule.value["category_id"]+ # tags = rule.value["tags"]++ # automation =+ # DiscourseAutomation::Automation.new(+ # script: "send_slack_message",+ # trigger: "topic_tags_changed",+ # name: "When tags change in topic",+ # enabled: true,+ # last_updated_by_id: Discourse.system_user.id,+ # )++ # automation.save!++ # # Triggers:+ # # Watching categories++ # metadata = (category_id ? { "value" => [category_id] } : {})++ # automation.upsert_field!(+ # "watching_categories",+ # "categories",+ # metadata,+ # target: "trigger",+ # )++ # # Watching tags++ # metadata = (tags ? { "value" => tags } : {})++ # automation.upsert_field!("watching_tags", "tags", metadata, target: "trigger")++ # # Script options:+ # # Message+ # automation.upsert_field!(+ # "message",+ # "message",+ # { "value" => "${ADDED_AND_REMOVED}" },+ # target: "script",+ # )++ # # URL+ # automation.upsert_field!(+ # "url",+ # "text",+ # { "value" => Discourse.current_hostname },+ # target: "script",+ # )++ # # Channel+ # automation.upsert_field!(+ # "channel",+ # "text",+ # { "value" => channel_name },+ # target: "script",+ # )+ # end+ # rescue StandardError+ # Rails.logger.warn("Failed to migrate tag_added rules to automations")+ # end+ # end+ end++ def down+ # if defined?(DiscourseAutomation) &&+ # DiscourseChatIntegration::Channel.with_provider("slack").exists?+ # DiscourseAutomation::Automation+ # .where(script: "send_slack_message", trigger: "topic_tags_changed")+ # .each do |automation|+ # # if is the same name as created and message is the same+ # if automation.name == "When tags change in topic" &&+ # automation.fields.where(name: "message").first.metadata["value"] ==+ # "${ADDED_AND_REMOVED}"+ # automation.destroy!+ # end+ # end+ # end+ end+enddiff --git a/plugins/discourse-chat-integration/db/migrate/20240903184807_migrate_tag_added_filter_to_all_providers.rb b/plugins/discourse-chat-integration/db/migrate/20240903184807_migrate_tag_added_filter_to_all_providers.rbnew file mode 100644index 00000000000..e8b1eb338ae--- /dev/null+++ b/plugins/discourse-chat-integration/db/migrate/20240903184807_migrate_tag_added_filter_to_all_providers.rb@@ -0,0 +1,153 @@+# frozen_string_literal: true+class MigrateTagAddedFilterToAllProviders < ActiveRecord::Migration[7.1]+ def up+ if defined?(DiscourseAutomation)+ begin+ slack_usage_rows = DB.query <<~SQL+ SELECT plugin_store_rows.* FROM plugin_store_rows+ WHERE plugin_store_rows.type_name = 'JSON'+ AND plugin_store_rows.plugin_name = 'discourse-chat-integration'+ AND (key LIKE 'channel:%')+ AND (value::json->>'provider'='slack')+ SQL++ old_migration_delete = <<~SQL+ DELETE FROM discourse_automation_automations+ WHERE id IN (+ SELECT a.id+ FROM discourse_automation_automations a+ JOIN discourse_automation_fields f ON f.automation_id = a.id+ WHERE a.script = 'send_slack_message'+ AND a.trigger = 'topic_tags_changed'+ AND a.name = 'When tags change in topic'+ AND f.name = 'message'+ AND f.metadata->>'value' = '${ADDED_AND_REMOVED}'+ )+ SQL+ # Trash old migration+ DB.exec old_migration_delete if slack_usage_rows.count > 0++ rules_with_tag_added = <<~SQL+ SELECT value+ FROM plugin_store_rows+ WHERE plugin_name = 'discourse-chat-integration'+ AND key LIKE 'rule:%'+ AND value::json->>'filter' = 'tag_added'+ SQL++ channel_query = <<~SQL+ SELECT *+ FROM plugin_store_rows+ WHERE type_name = 'JSON'+ AND plugin_name = 'discourse-chat-integration'+ AND key LIKE 'channel:%'+ AND id = :channel_id+ LIMIT 1+ SQL++ automation_creation = <<~SQL+ INSERT INTO discourse_automation_automations (script, trigger, name, enabled, last_updated_by_id, created_at, updated_at)+ VALUES ('send_chat_integration_message', 'topic_tags_changed', 'When tags change in topic', true, -1, NOW(), NOW())+ RETURNING id+ SQL++ create_automation_field = <<~SQL+ INSERT INTO discourse_automation_fields (automation_id, name, component, metadata, target, created_at, updated_at)+ VALUES (:automation_id, :name, :component, :metadata, :target, NOW(), NOW())+ SQL++ provider_identifier_map = {+ "groupme" => "groupme_instance_name",+ "discord" => "name",+ "guilded" => "name",+ "mattermost" => "identifier",+ "matrix" => "name",+ "teams" => "name",+ "zulip" => "stream",+ "powerautomate" => "name",+ "rocketchat" => "identifier",+ "gitter" => "name",+ "telegram" => "name",+ "flowdock" => "flow_token",+ "google" => "name",+ "webex" => "name",+ "slack" => "identifier",+ }++ DB+ .query(rules_with_tag_added)+ .each do |row|+ rule = JSON.parse(row.value).with_indifferent_access++ channel =+ JSON.parse(+ DB.query(channel_query, channel_id: rule[:channel_id]).first.value,+ ).with_indifferent_access++ provider_name = channel[:provider]+ channel_name = channel[:data][provider_identifier_map[provider_name]]++ category_id = rule[:category_id]+ tags = rule[:tags]++ automation_id = DB.query(automation_creation).first.id++ # Triggers:+ # Watching categories+ metadata = (category_id ? { "value" => [category_id] } : {}).to_json+ DB.exec(+ create_automation_field,+ automation_id: automation_id,+ name: "watching_categories",+ component: "categories",+ metadata: metadata,+ target: "trigger",+ )++ # Watching tags+ metadata = (tags.present? ? { "value" => tags } : {}).to_json+ DB.exec(+ create_automation_field,+ automation_id: automation_id,+ name: "watching_tags",+ component: "tags",+ metadata: metadata,+ target: "trigger",+ )++ # Script options:+ # Provider+ DB.exec(+ create_automation_field,+ automation_id: automation_id,+ name: "provider",+ component: "choices",+ metadata: { "value" => provider_name }.to_json,+ target: "script",+ )++ # Channel name+ DB.exec(+ create_automation_field,+ automation_id: automation_id,+ name: "channel_name",+ component: "text",+ metadata: { "value" => channel_name }.to_json,+ target: "script",+ )+ end+ rescue StandardError+ puts "Error migrating tag_added filters to all providers"+ end+ end+ end++ def down+ DB.exec <<~SQL if defined?(DiscourseAutomation)+ DELETE FROM discourse_automation_automations+ WHERE script = 'send_chat_integration_message'+ AND trigger = 'topic_tags_changed'+ AND name = 'When tags change in topic'+ SQL+ end+enddiff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/chat_integration_reference_post.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/chat_integration_reference_post.rbnew file mode 100644index 00000000000..7aca38d70ce--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/chat_integration_reference_post.rb@@ -0,0 +1,75 @@+# frozen_string_literal: true++module DiscourseChatIntegration+ class ChatIntegrationReferencePost+ def initialize(user:, topic:, kind:, raw: nil, context: {})+ @user = user+ @topic = topic+ @kind = kind+ @raw = raw if raw.present?+ @context = context+ @created_at = Time.current+ end++ def id+ @topic.posts.empty? ? @topic.id : @topic.posts.first.id+ end++ def user+ @user+ end++ def topic+ @topic+ end++ def full_url+ @topic.posts.empty? ? @topic.url : @topic.posts.first.full_url+ end++ def excerpt(maxlength = nil, options = {})+ cooked = PrettyText.cook(raw, { user_id: user.id })+ maxlength ||= SiteSetting.post_excerpt_maxlength+ PrettyText.excerpt(cooked, maxlength, options)+ end++ def is_first_post?+ topic.try(:highest_post_number) == 0+ end++ def created_at+ @created_at+ end++ def raw+ if @raw.nil? && @kind == DiscourseAutomation::Triggers::TOPIC_TAGS_CHANGED+ tag_list_to_raw = ->(tag_list) do+ tag_list.sort.map { |tag_name| "##{tag_name}" }.join(", ")+ end++ added_tags = @context["added_tags"]+ removed_tags = @context["removed_tags"]++ @raw =+ if added_tags.present? && removed_tags.present?+ I18n.t(+ "chat_integration.topic_tag_changed.added_and_removed",+ added: tag_list_to_raw.call(added_tags),+ removed: tag_list_to_raw.call(removed_tags),+ )+ elsif added_tags.present?+ I18n.t(+ "chat_integration.topic_tag_changed.added",+ added: tag_list_to_raw.call(added_tags),+ )+ elsif removed_tags.present?+ I18n.t(+ "chat_integration.topic_tag_changed.removed",+ removed: tag_list_to_raw.call(removed_tags),+ )+ end+ end+ @raw+ end+ end+enddiff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider.rbnew file mode 100644index 00000000000..28427d7a77a--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider.rb@@ -0,0 +1,105 @@+# frozen_string_literal: true++module DiscourseChatIntegration+ class ProviderError < StandardError+ attr_accessor :info++ def initialize(message = nil, info: nil)+ super(message)+ self.info = info.nil? ? {} : info+ end+ end++ module Provider+ def self.providers+ constants.select { |constant| constant.to_s =~ /Provider$/ }.map(&method(:const_get))+ end++ def self.enabled_providers+ self.providers.select { |provider| self.is_enabled(provider) }+ end++ def self.provider_names+ self.providers.map! { |x| x::PROVIDER_NAME }+ end++ def self.enabled_provider_names+ self.enabled_providers.map! { |x| x::PROVIDER_NAME }+ end++ def self.get_by_name(name)+ self.providers.find { |p| p::PROVIDER_NAME == name }+ end++ def self.is_enabled(provider)+ provider = get_by_name(provider) if provider.is_a?(String)++ if defined?(provider::PROVIDER_ENABLED_SETTING)+ SiteSetting.public_send(provider::PROVIDER_ENABLED_SETTING)+ else+ false+ end+ end++ class HookEngine < ::Rails::Engine+ engine_name DiscourseChatIntegration::PLUGIN_NAME + "-hooks"+ isolate_namespace DiscourseChatIntegration::Provider+ end++ class HookController < ::ApplicationController+ requires_plugin DiscourseChatIntegration::PLUGIN_NAME++ class ProviderDisabled < StandardError+ end++ rescue_from ProviderDisabled do+ rescue_discourse_actions(:not_found, 404)+ end++ def self.requires_provider(provider_name)+ before_action do+ raise ProviderDisabled.new if Provider.enabled_provider_names.exclude?(provider_name)+ end+ end++ def respond+ render+ end+ end++ # Automatically mount each provider's engine inside the HookEngine+ def self.mount_engines+ engines = []+ DiscourseChatIntegration::Provider.providers.each do |provider|+ engine =+ provider+ .constants+ .select { |constant| constant.to_s =~ (/Engine$/) && (constant.to_s != "HookEngine") }+ .map(&provider.method(:const_get))+ .first++ engines.push(engine: engine, name: provider::PROVIDER_NAME) if engine+ end++ DiscourseChatIntegration::Provider::HookEngine.routes.draw do+ engines.each { |engine| mount engine[:engine], at: engine[:name] }+ end+ end+ end+end++require_relative "provider/slack/slack_provider"+require_relative "provider/telegram/telegram_provider"+require_relative "provider/discord/discord_provider"+require_relative "provider/mattermost/mattermost_provider"+require_relative "provider/matrix/matrix_provider"+require_relative "provider/zulip/zulip_provider"+require_relative "provider/rocketchat/rocketchat_provider"+require_relative "provider/gitter/gitter_provider"+require_relative "provider/flowdock/flowdock_provider"+require_relative "provider/groupme/groupme_provider"+require_relative "provider/teams/teams_provider"+require_relative "provider/powerautomate/powerautomate_provider"+require_relative "provider/webex/webex_provider"+require_relative "provider/google/google_provider"+require_relative "provider/guilded/guilded_provider"diff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/discord/discord_provider.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/discord/discord_provider.rbnew file mode 100644index 00000000000..e1d155a3524--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/discord/discord_provider.rb@@ -0,0 +1,120 @@+# frozen_string_literal: true++module DiscourseChatIntegration+ module Provider+ module DiscordProvider+ PROVIDER_NAME = "discord".freeze+ PROVIDER_ENABLED_SETTING = :chat_integration_discord_enabled+ CHANNEL_IDENTIFIER_KEY = "name".freeze+ CHANNEL_PARAMETERS = [+ { key: "name", regex: '^\S+' },+ {+ key: "webhook_url",+ regex: '^https:\/\/discord\.com\/api\/webhooks\/',+ unique: true,+ hidden: true,+ },+ ].freeze++ def self.send_message(url, message)+ http = FinalDestination::HTTP.new("discord.com", 443)+ http.use_ssl = true++ uri = URI(url)++ req = Net::HTTP::Post.new(uri, "Content-Type" => "application/json")+ req.body = message.to_json+ response = http.request(req)++ response+ end++ def self.ensure_protocol(url)+ return url if !url.start_with?("//")+ "http:#{url}"+ end++ def self.generate_discord_message(post)+ display_name = ::DiscourseChatIntegration::Helper.formatted_display_name(post.user)++ topic = post.topic++ category = ""+ if topic.category+ category =+ (+ if (topic.category.parent_category)+ "[#{topic.category.parent_category.name}/#{topic.category.name}]"+ else+ "[#{topic.category.name}]"+ end+ )+ end++ message = {+ content: SiteSetting.chat_integration_discord_message_content,+ embeds: [+ {+ title:+ "#{topic.title} #{(category == "[uncategorized]") ? "" : category} #{topic.tags.present? ? topic.tags.map(&:name).join(", ") : ""}",+ color: topic.category ? topic.category.color.to_i(16) : nil,+ description:+ post.excerpt(+ SiteSetting.chat_integration_discord_excerpt_length,+ text_entities: true,+ strip_links: true,+ remap_emoji: true,+ ),+ url: post.full_url,+ author: {+ name: display_name,+ url: Discourse.base_url + "/u/" + post.user.username,+ icon_url: ensure_protocol(post.user.small_avatar_url),+ },+ },+ ],+ }++ message+ end++ def self.trigger_notification(post, channel, rule)+ # Splitting the URL in order to support custom query parameters (e.g. thread_id=1234)+ splitted_url = channel.data["webhook_url"].split("?")+ # Adding ?wait=true means that we actually get a success/failure response, rather than returning asynchronously+ webhook_url = "#{splitted_url[0]}?wait=true"++ webhook_url += "&" + splitted_url[1] if splitted_url.length > 1+ message = generate_discord_message(post)+ response = send_message(webhook_url, message)++ # If the message fails to send, it might be because it's a forum channel.+ if !response.kind_of?(Net::HTTPSuccess)+ error = JSON.parse(response.body)+ # Error code 220001 occurs when trying to post to a forum channel without a thread_name.+ if error["code"] == 220_001+ message[:thread_name] = message[:embeds][0][:title]+ response = send_message(webhook_url, message)+ end+ end++ if !response.kind_of?(Net::HTTPSuccess)+ raise ::DiscourseChatIntegration::ProviderError.new(+ info: {+ error_key: nil,+ message: message,+ response_body: response.body,+ },+ )+ end+ end++ def self.get_channel_by_name(name)+ DiscourseChatIntegration::Channel+ .with_provider(PROVIDER_NAME)+ .with_data_value(CHANNEL_IDENTIFIER_KEY, name)+ .first+ end+ end+ end+enddiff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/flowdock/flowdock_provider.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/flowdock/flowdock_provider.rbnew file mode 100644index 00000000000..59c12f26563--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/flowdock/flowdock_provider.rb@@ -0,0 +1,71 @@+# frozen_string_literal: true++module DiscourseChatIntegration::Provider::FlowdockProvider+ PROVIDER_NAME = "flowdock".freeze+ PROVIDER_ENABLED_SETTING = :chat_integration_flowdock_enabled+ CHANNEL_IDENTIFIER_KEY = "flow_token".freeze # this is really weird but is the only way to identify a channel in this provider+ CHANNEL_PARAMETERS = [{ key: "flow_token", regex: '^\S+', unique: true, hidden: true }]++ def self.send_message(url, message)+ uri = URI(url)++ http = FinalDestination::HTTP.new(uri.host, uri.port)+ http.use_ssl = true++ req = Net::HTTP::Post.new(uri, "Content-Type" => "application/json")+ req.body = message.to_json+ response = http.request(req)++ response+ end++ def self.generate_flowdock_message(post, flow_token)+ display_name = ::DiscourseChatIntegration::Helper.formatted_display_name(post.user)++ message = {+ flow_token: flow_token,+ event: "discussion",+ author: {+ name: display_name,+ avatar: post.user.small_avatar_url,+ },+ title: I18n.t("chat_integration.provider.flowdock.message_title"),+ external_thread_id: post.topic.id,+ body:+ post.excerpt(+ SiteSetting.chat_integration_flowdock_excerpt_length,+ text_entities: true,+ strip_links: false,+ remap_emoji: true,+ ),+ thread: {+ title: post.topic.title,+ external_url: post.full_url,+ },+ }++ message+ end++ def self.trigger_notification(post, channel, rule)+ flow_token = channel.data["flow_token"]+ message = generate_flowdock_message(post, flow_token)+ response = send_message("https://api.flowdock.com/messages", message)++ unless response.kind_of?(Net::HTTPSuccess)+ error_key = nil+ raise ::DiscourseChatIntegration::ProviderError.new info: {+ error_key: error_key,+ message: message,+ response_body: response.body,+ }+ end+ end++ def self.get_channel_by_name(name)+ DiscourseChatIntegration::Channel+ .with_provider(PROVIDER_NAME)+ .with_data_value(CHANNEL_IDENTIFIER_KEY, name)+ .first+ end+enddiff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/gitter/gitter_provider.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/gitter/gitter_provider.rbnew file mode 100644index 00000000000..430377ccc0d--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/gitter/gitter_provider.rb@@ -0,0 +1,56 @@+# frozen_string_literal: true++module DiscourseChatIntegration+ module Provider+ module GitterProvider+ PROVIDER_NAME = "gitter".freeze+ PROVIDER_ENABLED_SETTING = :chat_integration_gitter_enabled+ CHANNEL_IDENTIFIER_KEY = "name".freeze+ CHANNEL_PARAMETERS = [+ { key: "name", regex: '^\S+$', unique: true },+ {+ key: "webhook_url",+ regex: '^https://webhooks\.gitter\.im/e/\S+$',+ unique: true,+ hidden: true,+ },+ ]++ def self.trigger_notification(post, channel, rule)+ message = gitter_message(post)+ response = Net::HTTP.post_form(URI(channel.data["webhook_url"]), message: message)+ unless response.kind_of? Net::HTTPSuccess+ error_key = nil+ raise ::DiscourseChatIntegration::ProviderError.new info: {+ error_key: error_key,+ message: message,+ response_body: response.body,+ }+ end+ end++ def self.gitter_message(post)+ display_name = post.user.username+ topic = post.topic+ parent_category = topic.category.try :parent_category+ category_name =+ (+ if parent_category+ "[#{parent_category.name}/#{topic.category.name}]"+ else+ "[#{topic.category.name}]"+ end+ )++ "[__#{display_name}__ - #{topic.title} - #{category_name}](#{post.full_url})"+ end++ def self.get_channel_by_name(name)+ DiscourseChatIntegration::Channel+ .with_provider(PROVIDER_NAME)+ .with_data_value(CHANNEL_IDENTIFIER_KEY, name)+ .first+ end+ end+ end+enddiff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/google/google_provider.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/google/google_provider.rbnew file mode 100644index 00000000000..fbe54dc80e4--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/google/google_provider.rb@@ -0,0 +1,120 @@+# frozen_string_literal: true++module DiscourseChatIntegration+ module Provider+ module GoogleProvider+ PROVIDER_NAME = "google".freeze+ PROVIDER_ENABLED_SETTING = :chat_integration_google_enabled+ CHANNEL_IDENTIFIER_KEY = "name".freeze+ CHANNEL_PARAMETERS = [+ { key: "name", regex: '^\S+$', unique: true },+ {+ key: "webhook_url",+ regex: '^https:\/\/chat.googleapis.com\/v1\/\S+$',+ unique: true,+ hidden: true,+ },+ ]++ def self.trigger_notification(post, channel, rule)+ message = get_message(post)+ uri = URI(channel.data["webhook_url"])++ http = FinalDestination::HTTP.new(uri.host, uri.port)+ http.use_ssl = (uri.scheme == "https")++ req = Net::HTTP::Post.new(uri, "Content-Type" => "application/json")+ req.body = message.to_json+ response = http.request(req)++ unless response.kind_of? Net::HTTPSuccess+ raise ::DiscourseChatIntegration::ProviderError.new info: {+ request: req.body,+ response_code: response.code,+ response_body: response.body,+ }+ end+ end++ def self.get_message(post)+ {+ cards: [+ {+ sections: [+ {+ widgets: [+ {+ keyValue: {+ topLabel:+ I18n.t(+ "chat_integration.provider.google.new_#{post.is_first_post? ? "topic" : "post"}",+ site_title: SiteSetting.title,+ ),+ content: post.topic.title,+ contentMultiline: "false",+ bottomLabel:+ I18n.t(+ "chat_integration.provider.google.author",+ username: post.user.username,+ ),+ onClick: {+ openLink: {+ url: post.full_url,+ },+ },+ },+ },+ ],+ },+ {+ widgets: [+ {+ textParagraph: {+ text:+ post.excerpt(+ SiteSetting.chat_integration_google_excerpt_length,+ text_entities: true,+ strip_links: true,+ remap_emoji: true,+ ),+ },+ },+ ],+ },+ {+ widgets: [+ {+ buttons: [+ {+ textButton: {+ text:+ I18n.t(+ "chat_integration.provider.google.link",+ site_title: SiteSetting.title,+ ),+ onClick: {+ openLink: {+ url: post.full_url,+ },+ },+ },+ },+ ],+ },+ ],+ },+ ],+ },+ ],+ }+ end++ def self.get_channel_by_name(name)+ DiscourseChatIntegration::Channel+ .with_provider(PROVIDER_NAME)+ .with_data_value(CHANNEL_IDENTIFIER_KEY, name)+ .first+ end+ end+ end+enddiff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/groupme/groupme_provider.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/groupme/groupme_provider.rbnew file mode 100644index 00000000000..c87ed17bc86--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/groupme/groupme_provider.rb@@ -0,0 +1,95 @@+# frozen_string_literal: true+module DiscourseChatIntegration::Provider::GroupmeProvider+ PROVIDER_NAME = "groupme".freeze+ PROVIDER_ENABLED_SETTING = :chat_integration_groupme_enabled+ CHANNEL_IDENTIFIER_KEY = "groupme_instance_name".freeze+ CHANNEL_PARAMETERS = [{ key: "groupme_instance_name", regex: '[\s\S]*', unique: true }]++ def self.generate_groupme_message(post)+ display_name = ::DiscourseChatIntegration::Helper.formatted_display_name(post.user)++ topic = post.topic++ category = ""+ if topic.category&.uncategorized?+ category = "#{I18n.t("uncategorized_category_name")}"+ elsif topic.category+ category =+ (+ if (topic.category.parent_category)+ "#{topic.category.parent_category.name}/#{topic.category.name}"+ else+ "#{topic.category.name}"+ end+ )+ end+ pre_post_text =+ "#{display_name} Posted to #{SiteSetting.title}\n\nTopic: #{topic.title} [#{category}]"+ read_more = "(Read More: #{post.full_url})"+ post_excerpt =+ "#{post.excerpt(SiteSetting.chat_integration_groupme_excerpt_length, text_entities: true, strip_links: true, remap_emoji: true)}"+ data = { text: "#{pre_post_text}\n\n#{post_excerpt}\n#{read_more}" }+ data+ end++ def self.send_via_webhook(message, channel)+ # loop through all the bot IDs+ last_error_raised = nil+ num_errors = 0+ # split on commas, but remove leading/trailing spaces+ bot_ids = SiteSetting.chat_integration_groupme_bot_ids.split(/\s*,\s*/)+ instance_names = SiteSetting.chat_integration_groupme_instance_names.split(/\s*,\s*/)++ unless instance_names.length() == bot_ids.length()+ instance_names =+ [I18n.t("chat_integration.provider.groupme.errors.instance_names_issue")] * bot_ids.length()+ end++ name_to_id = Hash[instance_names.zip(bot_ids)]+ user_input_channel = channel.data["groupme_instance_name"].strip+ instance_names = [user_input_channel] unless user_input_channel.eql? "all"+ instance_names.each do |instance_name|+ bot_id = name_to_id["#{instance_name}"]+ uri = URI("https://api.groupme.com/v3/bots/post")+ http = FinalDestination::HTTP.new(uri.host, uri.port)+ http.use_ssl = (uri.scheme == "https")+ req = Net::HTTP::Post.new(uri, "Content-Type" => "application/json")+ message[:bot_id] = bot_id+ req.body = message.to_json+ response = http.request(req)+ unless response.kind_of? Net::HTTPSuccess+ num_errors += 1+ if response.code.to_s == "404"+ error_key = "chat_integration.provider.groupme.errors.not_found"+ else+ error_key = nil+ end+ last_error_raised = {+ error_key: error_key,+ groupme_name: instance_name,+ bot_id: bot_id,+ request: req.body,+ response_code: response.code,+ response_body: response.body,+ }+ end+ end+ if last_error_raised+ successfully_sent = instance_names.length() - num_errors+ last_error_raised[:success_rate] = "#{successfully_sent}/#{instance_names.length()}"+ raise ::DiscourseChatIntegration::ProviderError.new info: last_error_raised+ end+ end++ def self.trigger_notification(post, channel, rule)+ data_package = generate_groupme_message(post)+ self.send_via_webhook(data_package, channel)+ end++ def self.get_channel_by_name(name)+ DiscourseChatIntegration::Channel+ .with_provider(PROVIDER_NAME)+ .with_data_value(CHANNEL_IDENTIFIER_KEY, name)+ .first+ end+enddiff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/guilded/guilded_provider.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/guilded/guilded_provider.rbnew file mode 100644index 00000000000..8292517fe0b--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/guilded/guilded_provider.rb@@ -0,0 +1,104 @@+# frozen_string_literal: true++module DiscourseChatIntegration+ module Provider+ module GuildedProvider+ PROVIDER_NAME = "guilded".freeze+ PROVIDER_ENABLED_SETTING = :chat_integration_guilded_enabled+ CHANNEL_IDENTIFIER_KEY = "name".freeze+ CHANNEL_PARAMETERS = [+ { key: "name", regex: '^\S+' },+ {+ key: "webhook_url",+ regex: '^https:\/\/media\.guilded\.gg\/webhooks\/',+ unique: true,+ hidden: true,+ },+ ].freeze++ def self.trigger_notification(post, channel, rule)+ webhook_url = channel.data["webhook_url"]+ message = generate_guilded_message(post)+ response = send_message(webhook_url, message)++ if !response.kind_of?(Net::HTTPSuccess)+ raise ::DiscourseChatIntegration::ProviderError.new(+ info: {+ error_key: nil,+ message: message,+ response_body: response.body,+ },+ )+ end+ end++ def self.generate_guilded_message(post)+ topic = post.topic+ category = ""+ if topic.category+ category =+ (+ if (topic.category.parent_category)+ "[#{topic.category.parent_category.name}/#{topic.category.name}]"+ else+ "[#{topic.category.name}]"+ end+ )+ end+ display_name = ::DiscourseChatIntegration::Helper.formatted_display_name(post.user)++ icon_url =+ if (url = (SiteSetting.try(:site_logo_small_url) || SiteSetting.logo_small_url)).present?+ "#{Discourse.base_url}#{url}"+ end++ message = {+ embeds: [+ {+ title:+ "#{topic.title} #{(category == "[uncategorized]") ? "" : category} #{topic.tags.present? ? topic.tags.map(&:name).join(", ") : ""}",+ url: post.full_url,+ description:+ post.excerpt(+ SiteSetting.chat_integration_guilded_excerpt_length,+ text_entities: true,+ strip_links: true,+ remap_emoji: true,+ ),+ footer: {+ icon_url: ensure_protocol(post.user.small_avatar_url),+ text: "#{display_name} | #{post.created_at}",+ },+ },+ ],+ }++ message+ end++ def self.send_message(url, message)+ uri = URI(url)+ http = FinalDestination::HTTP.new(uri.host, uri.port)+ http.use_ssl = (uri.scheme == "https")++ req = Net::HTTP::Post.new(uri, "Content-Type" => "application/json")+ req.body = message.to_json+ response = http.request(req)++ response+ end++ def self.ensure_protocol(url)+ return url if !url.start_with?("//")+ "http:#{url}"+ end++ def self.get_channel_by_name(name)+ DiscourseChatIntegration::Channel+ .with_provider(PROVIDER_NAME)+ .with_data_value(CHANNEL_IDENTIFIER_KEY, name)+ .first+ end+ end+ end+enddiff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/matrix/matrix_provider.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/matrix/matrix_provider.rbnew file mode 100644index 00000000000..5df9f600631--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/matrix/matrix_provider.rb@@ -0,0 +1,101 @@+# frozen_string_literal: true++module DiscourseChatIntegration+ module Provider+ module MatrixProvider+ PROVIDER_NAME = "matrix".freeze+ PROVIDER_ENABLED_SETTING = :chat_integration_matrix_enabled+ CHANNEL_IDENTIFIER_KEY = "name".freeze+ CHANNEL_PARAMETERS = [+ { key: "name", regex: '^\S+' },+ { key: "room_id", regex: '^\!\S+:\S+$', unique: true, hidden: true },+ ]++ def self.send_message(room_id, message)+ homeserver = SiteSetting.chat_integration_matrix_homeserver+ event_type = "m.room.message"+ uid = Time.now.to_i++ url_params =+ URI.encode_www_form(access_token: SiteSetting.chat_integration_matrix_access_token)++ url =+ "#{homeserver}/_matrix/client/r0/rooms/#{CGI.escape(room_id)}/send/#{event_type}/#{uid}"++ uri = URI([url, url_params].join("?"))++ http = FinalDestination::HTTP.new(uri.host, uri.port)+ http.use_ssl = true++ req = Net::HTTP::Put.new(uri, "Content-Type" => "application/json")+ req.body = message.to_json+ response = http.request(req)++ response+ end++ def self.generate_matrix_message(post)+ display_name = ::DiscourseChatIntegration::Helper.formatted_display_name(post.user)++ message = {+ msgtype: SiteSetting.chat_integration_matrix_use_notice ? "m.notice" : "m.text",+ body:+ I18n.t(+ "chat_integration.provider.matrix.text_message",+ user: display_name,+ post_url: post.full_url,+ title: post.topic.title,+ ),+ format: "org.matrix.custom.html",+ formatted_body:+ I18n.t(+ "chat_integration.provider.matrix.formatted_message",+ user: display_name,+ post_url: post.full_url,+ title: post.topic.title,+ excerpt:+ post.excerpt(+ SiteSetting.chat_integration_matrix_excerpt_length,+ text_entities: true,+ strip_links: true,+ remap_emoji: true,+ ),+ ),+ }++ message+ end++ def self.trigger_notification(post, channel, rule)+ message = generate_matrix_message(post)++ response = send_message(channel.data["room_id"], message)++ if !response.kind_of?(Net::HTTPSuccess)+ error_key = nil+ begin+ responseData = JSON.parse(response.body)+ if responseData["errcode"] == "M_UNKNOWN_TOKEN"+ error_key = "chat_integration.provider.matrix.errors.unknown_token"+ elsif responseData["errcode"] == "M_UNKNOWN"+ error_key = "chat_integration.provider.matrix.errors.unknown_room"+ end+ ensure+ raise ::DiscourseChatIntegration::ProviderError.new info: {+ error_key: error_key,+ message: message,+ response_body: response.body,+ }+ end+ end+ end++ def self.get_channel_by_name(name)+ DiscourseChatIntegration::Channel+ .with_provider(PROVIDER_NAME)+ .with_data_value(CHANNEL_IDENTIFIER_KEY, name)+ .first+ end+ end+ end+enddiff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/mattermost/mattermost_command_controller.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/mattermost/mattermost_command_controller.rbnew file mode 100644index 00000000000..64549a27cad--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/mattermost/mattermost_command_controller.rb@@ -0,0 +1,71 @@+# frozen_string_literal: true++module DiscourseChatIntegration::Provider::MattermostProvider+ class MattermostCommandController < DiscourseChatIntegration::Provider::HookController+ requires_provider ::DiscourseChatIntegration::Provider::MattermostProvider::PROVIDER_NAME++ before_action :mattermost_token_valid?, only: :command++ skip_before_action :check_xhr,+ :preload_json,+ :verify_authenticity_token,+ :redirect_to_login_if_required,+ only: :command++ def command+ text = process_command(params)++ render json: { response_type: "ephemeral", text: text }+ end++ def process_command(params)+ tokens = params[:text].split(" ")++ # channel name fix+ channel_id =+ case params[:channel_name]+ when "directmessage"+ "@#{params[:user_name]}"+ when "privategroup"+ params[:channel_id]+ else+ "##{params[:channel_name]}"+ end++ provider = DiscourseChatIntegration::Provider::MattermostProvider::PROVIDER_NAME++ channel =+ DiscourseChatIntegration::Channel+ .with_provider(provider)+ .with_data_value("identifier", channel_id)+ .first++ # Create channel if doesn't exist+ channel ||=+ DiscourseChatIntegration::Channel.create!(+ provider: provider,+ data: {+ identifier: channel_id,+ },+ )++ ::DiscourseChatIntegration::Helper.process_command(channel, tokens)+ end++ def mattermost_token_valid?+ params.require(:token)++ if SiteSetting.chat_integration_mattermost_incoming_webhook_token.blank? ||+ SiteSetting.chat_integration_mattermost_incoming_webhook_token != params[:token]+ raise Discourse::InvalidAccess.new+ end+ end+ end++ class MattermostEngine < ::Rails::Engine+ engine_name DiscourseChatIntegration::PLUGIN_NAME + "-mattermost"+ isolate_namespace DiscourseChatIntegration::Provider::MattermostProvider+ end++ MattermostEngine.routes.draw { post "command" => "mattermost_command#command" }+enddiff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/mattermost/mattermost_provider.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/mattermost/mattermost_provider.rbnew file mode 100644index 00000000000..b378c33956d--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/mattermost/mattermost_provider.rb@@ -0,0 +1,108 @@+# frozen_string_literal: true++module DiscourseChatIntegration+ module Provider+ module MattermostProvider+ PROVIDER_NAME = "mattermost".freeze+ PROVIDER_ENABLED_SETTING = :chat_integration_mattermost_enabled+ CHANNEL_IDENTIFIER_KEY = "identifier".freeze+ CHANNEL_PARAMETERS = [{ key: "identifier", regex: '^[@#]\S*$', unique: true }]++ def self.send_via_webhook(message)+ uri = URI(SiteSetting.chat_integration_mattermost_webhook_url)++ http = FinalDestination::HTTP.new(uri.host, uri.port)+ http.use_ssl = (uri.scheme == "https")+ req = Net::HTTP::Post.new(uri, "Content-Type" => "application/json")+ req.body = message.to_json+ response = http.request(req)++ unless response.kind_of? Net::HTTPSuccess+ if response.body.include? "Couldn't find the channel"+ error_key = "chat_integration.provider.mattermost.errors.channel_not_found"+ else+ error_key = nil+ end+ raise ::DiscourseChatIntegration::ProviderError.new info: {+ error_key: error_key,+ request: req.body,+ response_code: response.code,+ response_body: response.body,+ }+ end+ end++ def self.mattermost_message(post, channel)+ display_name = ::DiscourseChatIntegration::Helper.formatted_display_name(post.user)++ topic = post.topic++ category = ""+ if topic.category&.uncategorized?+ category = "[#{I18n.t("uncategorized_category_name")}]"+ elsif topic.category+ category =+ (+ if (topic.category.parent_category)+ "[#{topic.category.parent_category.name}/#{topic.category.name}]"+ else+ "[#{topic.category.name}]"+ end+ )+ end++ icon_url =+ if SiteSetting.chat_integration_mattermost_icon_url.present?+ UrlHelper.absolute(SiteSetting.chat_integration_mattermost_icon_url)+ elsif (+ url = (SiteSetting.try(:site_logo_small_url) || SiteSetting.logo_small_url)+ ).present?+ UrlHelper.absolute(url)+ end++ message = {+ channel: channel,+ username: SiteSetting.title || "Discourse",+ icon_url: icon_url,+ attachments: [],+ }++ summary = {+ fallback: "#{topic.title} - #{display_name}",+ author_name: display_name,+ author_icon: post.user.small_avatar_url,+ color: topic.category ? "##{topic.category.color}" : nil,+ text:+ post.excerpt(+ SiteSetting.chat_integration_mattermost_excerpt_length,+ text_entities: true,+ strip_links: true,+ remap_emoji: true,+ ),+ title:+ "#{topic.title} #{category} #{topic.tags.present? ? topic.tags.map(&:name).join(", ") : ""}",+ title_link: post.full_url,+ }++ message[:attachments].push(summary)+ message+ end++ def self.trigger_notification(post, channel, rule)+ channel_id = channel.data["identifier"]+ message = mattermost_message(post, channel_id)++ self.send_via_webhook(message)+ end++ def self.get_channel_by_name(name)+ DiscourseChatIntegration::Channel+ .with_provider(PROVIDER_NAME)+ .with_data_value(CHANNEL_IDENTIFIER_KEY, name)+ .first+ end+ end+ end+end++require_relative "mattermost_command_controller.rb"diff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/powerautomate/powerautomate_provider.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/powerautomate/powerautomate_provider.rbnew file mode 100644index 00000000000..d66a344ea3f--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/powerautomate/powerautomate_provider.rb@@ -0,0 +1,141 @@+# frozen_string_literal: true++module DiscourseChatIntegration::Provider::PowerAutomateProvider+ PROVIDER_NAME = "powerautomate"+ PROVIDER_ENABLED_SETTING = :chat_integration_powerautomate_enabled+ CHANNEL_IDENTIFIER_KEY = "name".freeze+ CHANNEL_PARAMETERS = [+ { key: "name", regex: '^\S+$', unique: true },+ { key: "webhook_url", regex: '^https:\/\/\S+$', unique: true, hidden: true },+ ]++ def self.trigger_notification(post, channel, rule)+ message = get_message(post)+ uri = URI(channel.data["webhook_url"])++ http = FinalDestination::HTTP.new(uri.host, uri.port)+ http.use_ssl = (uri.scheme == "https")++ req = Net::HTTP::Post.new(uri, "Content-Type" => "application/json")+ req.body = message.to_json+ response = http.request(req)++ unless response.kind_of? Net::HTTPSuccess+ if response.body.include?("Invalid webhook URL")+ error_key = "chat_integration.provider.powerautomate.errors.invalid_webhook"+ else+ error_key = nil+ end+ raise ::DiscourseChatIntegration::ProviderError.new info: {+ error_key: error_key,+ request: req.body,+ response_code: response.code,+ response_body: response.body,+ }+ end+ end++ def self.get_message(post)+ display_name = "@#{post.user.username}"+ full_name =+ if SiteSetting.enable_names && post.user.name.present?+ post.user.name+ else+ ""+ end++ topic = post.topic++ category = ""+ if topic.category&.uncategorized?+ category = "[#{I18n.t("uncategorized_category_name")}]"+ elsif topic.category+ category =+ (+ if (topic.category.parent_category)+ "[#{topic.category.parent_category.name}/#{topic.category.name}]"+ else+ "[#{topic.category.name}]"+ end+ )+ end++ message = {+ type: "message",+ attachments: [+ {+ contentType: "application/vnd.microsoft.card.adaptive",+ contentUrl: nil,+ content: {+ type: "AdaptiveCard",+ body: [+ {+ type: "TextBlock",+ size: "Large",+ weight: "Bolder",+ text:+ "[#{topic.title} #{category} #{topic.tags.present? ? topic.tags.map(&:name).join(", ") : ""}](#{post.full_url})",+ wrap: true,+ spacing: "None",+ },+ {+ type: "ColumnSet",+ columns: [+ {+ type: "Column",+ items: [+ {+ type: "Image",+ style: "Person",+ url: post.user.small_avatar_url,+ altText: full_name,+ size: " Small",+ },+ ],+ width: "auto",+ },+ {+ type: "Column",+ items: [+ { type: "TextBlock", weight: "Bolder", text: full_name, wrap: true },+ {+ type: "TextBlock",+ spacing: "None",+ text: display_name,+ isSubtle: true,+ wrap: true,+ },+ ],+ width: "stretch",+ },+ ],+ },+ {+ type: "TextBlock",+ text:+ post.excerpt(+ SiteSetting.chat_integration_powerautomate_excerpt_length,+ text_entities: true,+ strip_links: true,+ remap_emoji: true,+ ),+ wrap: true,+ },+ ],+ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",+ version: "1.2",+ },+ },+ ],+ }++ message+ end++ def self.get_channel_by_name(name)+ DiscourseChatIntegration::Channel+ .with_provider(PROVIDER_NAME)+ .with_data_value(CHANNEL_IDENTIFIER_KEY, name)+ .first+ end+enddiff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/rocketchat/rocketchat_provider.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/rocketchat/rocketchat_provider.rbnew file mode 100644index 00000000000..2a9ebd89c8f--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/rocketchat/rocketchat_provider.rb@@ -0,0 +1,92 @@+# frozen_string_literal: true++module DiscourseChatIntegration::Provider::RocketchatProvider+ PROVIDER_NAME = "rocketchat".freeze++ PROVIDER_ENABLED_SETTING = :chat_integration_rocketchat_enabled+ CHANNEL_IDENTIFIER_KEY = "identifier".freeze+ CHANNEL_PARAMETERS = [{ key: "identifier", regex: '^[@#]\S*$', unique: true }]++ def self.rocketchat_message(post, channel)+ display_name = ::DiscourseChatIntegration::Helper.formatted_display_name(post.user)++ topic = post.topic++ category = ""+ if topic.category&.uncategorized?+ category = "[#{I18n.t("uncategorized_category_name")}]"+ elsif topic.category+ category =+ (+ if (topic.category.parent_category)+ "[#{topic.category.parent_category.name}/#{topic.category.name}]"+ else+ "[#{topic.category.name}]"+ end+ )+ end++ message = { channel: channel, attachments: [] }++ summary = {+ fallback: "#{topic.title} - #{display_name}",+ author_name: display_name,+ author_icon: post.user.small_avatar_url,+ color: topic.category ? "##{topic.category.color}" : nil,+ text:+ post.excerpt(+ SiteSetting.chat_integration_rocketchat_excerpt_length,+ text_entities: true,+ strip_links: true,+ remap_emoji: true,+ ),+ mrkdwn_in: ["text"],+ title:+ "#{topic.title} #{category} #{topic.tags.present? ? topic.tags.map(&:name).join(", ") : ""}",+ title_link: post.full_url,+ }++ message[:attachments].push(summary)++ message+ end++ def self.send_via_webhook(message)+ uri = URI(SiteSetting.chat_integration_rocketchat_webhook_url)++ http = FinalDestination::HTTP.new(uri.host, uri.port)+ http.use_ssl = (uri.scheme == "https")++ req = Net::HTTP::Post.new(uri, "Content-Type" => "application/json")+ req.body = message.to_json+ response = http.request(req)++ unless response.kind_of? Net::HTTPSuccess+ if response.body.include?("invalid-channel")+ error_key = "chat_integration.provider.rocketchat.errors.invalid_channel"+ else+ error_key = nil+ end+ raise ::DiscourseChatIntegration::ProviderError.new info: {+ error_key: error_key,+ request: req.body,+ response_code: response.code,+ response_body: response.body,+ }+ end+ end++ def self.trigger_notification(post, channel, rule)+ channel_id = channel.data["identifier"]+ message = rocketchat_message(post, channel_id)++ self.send_via_webhook(message)+ end++ def self.get_channel_by_name(name)+ DiscourseChatIntegration::Channel+ .with_provider(PROVIDER_NAME)+ .with_data_value(CHANNEL_IDENTIFIER_KEY, name)+ .first+ end+enddiff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_command_controller.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_command_controller.rbnew file mode 100644index 00000000000..31d972d4ff7--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_command_controller.rb@@ -0,0 +1,276 @@+# frozen_string_literal: true++module DiscourseChatIntegration::Provider::SlackProvider+ class SlackCommandController < DiscourseChatIntegration::Provider::HookController+ requires_provider ::DiscourseChatIntegration::Provider::SlackProvider::PROVIDER_NAME++ before_action :slack_token_valid?, only: :command+ before_action :slack_payload_token_valid?, only: :interactive++ skip_before_action :check_xhr,+ :preload_json,+ :verify_authenticity_token,+ :redirect_to_login_if_required,+ only: %i[command interactive]++ def command+ message = process_command(params)++ render json: message+ end++ def interactive+ json = JSON.parse(params[:payload], symbolize_names: true)+ process_interactive(json)+ head :ok+ end++ private++ def process_command(params)+ tokens = params[:text].split(" ")++ # channel name fix+ channel_id =+ case params[:channel_name]+ when "directmessage"+ "@#{params[:user_name]}"+ when "privategroup"+ params[:channel_id]+ else+ "##{params[:channel_name]}"+ end++ provider = DiscourseChatIntegration::Provider::SlackProvider::PROVIDER_NAME++ channel =+ DiscourseChatIntegration::Channel+ .with_provider(provider)+ .with_data_value("identifier", channel_id)+ .first++ channel ||=+ DiscourseChatIntegration::Channel.create!(+ provider: provider,+ data: {+ identifier: channel_id,+ },+ )++ if tokens[0] == "post"+ process_post_request(+ channel,+ tokens,+ params[:channel_id],+ channel_id,+ params[:response_url],+ )+ else+ { text: ::DiscourseChatIntegration::Helper.process_command(channel, tokens) }+ end+ end++ def process_post_request(channel, tokens, slack_channel_id, channel_name, response_url)+ if SiteSetting.chat_integration_slack_access_token.empty?+ return { text: I18n.t("chat_integration.provider.slack.transcript.api_required") }+ end++ Scheduler::Defer.later "Processing slack transcript request" do+ response =+ build_post_request_response(channel, tokens, slack_channel_id, channel_name, response_url)+ http = DiscourseChatIntegration::Provider::SlackProvider.slack_api_http+ req = Net::HTTP::Post.new(URI(response_url), "Content-Type" => "application/json")+ req.body = response.to_json+ http.request(req)+ end++ { text: I18n.t("chat_integration.provider.slack.transcript.loading") }+ end++ def build_post_request_response(channel, tokens, slack_channel_id, channel_name, response_url)+ requested_messages = nil+ first_message_ts = nil+ requested_thread_ts = nil++ thread_url_regex =+ /^https:\/\/\S+\.slack\.com\/archives\/\S+\/p[0-9]{16}\?thread_ts=([0-9]{10}.[0-9]{6})\S*$/+ slack_url_regex = /^https:\/\/\S+\.slack\.com\/archives\/\S+\/p([0-9]{16})\/?$/++ if tokens.size > 2 && tokens[1] == "thread" && match = slack_url_regex.match(tokens[2])+ requested_thread_ts = match.captures[0].insert(10, ".")+ elsif tokens.size > 1 && match = thread_url_regex.match(tokens[1])+ requested_thread_ts = match.captures[0]+ elsif tokens.size > 1 && match = slack_url_regex.match(tokens[1])+ first_message_ts = match.captures[0].insert(10, ".")+ elsif tokens.size > 1+ begin+ requested_messages = Integer(tokens[1], 10)+ rescue ArgumentError+ return { text: I18n.t("chat_integration.provider.slack.parse_error") }+ end+ end++ error_key = "chat_integration.provider.slack.transcript.error"++ unless transcript =+ SlackTranscript.new(+ channel_name: channel_name,+ channel_id: slack_channel_id,+ requested_thread_ts: requested_thread_ts,+ )+ return { text: I18n.t(error_key) }+ end+ return { text: I18n.t("#{error_key}_users") } unless transcript.load_user_data+ return { text: I18n.t("#{error_key}_history") } unless transcript.load_chat_history++ if first_message_ts+ unless transcript.set_first_message_by_ts(first_message_ts)+ return { text: I18n.t("#{error_key}_ts") }+ end+ elsif requested_messages+ transcript.set_first_message_by_index(-requested_messages)+ else+ transcript.set_first_message_by_index(-10) unless transcript.guess_first_message+ end++ transcript.build_slack_ui+ end++ def process_interactive(json)+ Scheduler::Defer.later "Processing slack transcript update" do+ http = DiscourseChatIntegration::Provider::SlackProvider.slack_api_http++ if json[:type] == "block_actions" && json[:actions][0][:action_id] == "null_action"+ # Do nothing+ elsif json[:type] == "message_action" && json[:message][:thread_ts]+ # Context menu used on a threaded message+ transcript =+ SlackTranscript.new(+ channel_name: "##{json[:channel][:name]}",+ channel_id: json[:channel][:id],+ requested_thread_ts: json[:message][:thread_ts],+ )++ # Send a loading modal within 3 seconds:+ req =+ Net::HTTP::Post.new(+ "https://slack.com/api/views.open",+ "Content-Type" => "application/json",+ "Authorization" => "Bearer #{SiteSetting.chat_integration_slack_access_token}",+ )+ req.body = { trigger_id: json[:trigger_id], view: transcript.build_modal_ui }.to_json+ response = http.request(req)+ view_id = JSON.parse(response.body).dig("view", "id")++ # Now load the transcript+ error_view = generate_error_view("users") unless transcript.load_user_data+ error_view = generate_error_view("history") unless transcript.load_chat_history++ # Then update the modal with the transcript link:+ req =+ Net::HTTP::Post.new(+ "https://slack.com/api/views.update",+ "Content-Type" => "application/json",+ "Authorization" => "Bearer #{SiteSetting.chat_integration_slack_access_token}",+ )+ req.body = { view_id: view_id, view: error_view || transcript.build_modal_ui }.to_json+ response = http.request(req)+ else+ # Button clicked in one of our interactive messages+ req = Net::HTTP::Post.new(URI(json[:response_url]), "Content-Type" => "application/json")+ req.body = build_interactive_response(json).to_json+ response = http.request(req)+ end+ end+ end++ def build_interactive_response(json)+ requested_thread = first_message = last_message = nil++ if json[:type] == "message_action" # Slack "Shortcut" (for non-threaded messages)+ first_message = json[:message][:ts]+ else # Clicking buttons in our transcript UI message+ action_name = json[:actions][0][:name]++ constant_val = json[:callback_id]+ changed_val = json[:actions][0][:selected_options][0][:value]++ first_message = (action_name == "first_message") ? changed_val : constant_val+ last_message = (action_name == "first_message") ? constant_val : changed_val+ end++ error_key = "chat_integration.provider.slack.transcript.error"++ unless transcript =+ SlackTranscript.new(+ channel_name: "##{json[:channel][:name]}",+ channel_id: json[:channel][:id],+ requested_thread_ts: requested_thread,+ )+ return { text: I18n.t(error_key) }+ end+ return { text: I18n.t("#{error_key}_users") } unless transcript.load_user_data+ return { text: I18n.t("#{error_key}_history") } unless transcript.load_chat_history++ if first_message+ unless transcript.set_first_message_by_ts(first_message)+ return { text: I18n.t("#{error_key}_ts") }+ end+ end++ if last_message+ unless transcript.set_last_message_by_ts(last_message)+ return { text: I18n.t("#{error_key}_ts") }+ end+ end++ transcript.build_slack_ui+ end++ def generate_error_view(type = nil)+ error_key = "chat_integration.provider.slack.transcript.error"+ error_key += "_#{type}" if type++ {+ type: "modal",+ title: {+ type: "plain_text",+ text: I18n.t("chat_integration.provider.slack.transcript.modal_title"),+ },+ blocks: [+ { type: "section", text: { type: "mrkdwn", text: ":warning: *#{I18n.t(error_key)}*" } },+ ],+ }+ end++ def slack_token_valid?+ params.require(:token)++ if SiteSetting.chat_integration_slack_incoming_webhook_token.blank? ||+ SiteSetting.chat_integration_slack_incoming_webhook_token != params[:token]+ raise Discourse::InvalidAccess.new+ end+ end++ def slack_payload_token_valid?+ params.require(:payload)++ json = JSON.parse(params[:payload], symbolize_names: true)++ if SiteSetting.chat_integration_slack_incoming_webhook_token.blank? ||+ SiteSetting.chat_integration_slack_incoming_webhook_token != json[:token]+ raise Discourse::InvalidAccess.new+ end+ end+ end++ class SlackEngine < ::Rails::Engine+ engine_name DiscourseChatIntegration::PLUGIN_NAME + "-slack"+ isolate_namespace DiscourseChatIntegration::Provider::SlackProvider+ end++ SlackEngine.routes.draw do+ post "command" => "slack_command#command"+ post "interactive" => "slack_command#interactive"+ end+enddiff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_enabled_setting_validator.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_enabled_setting_validator.rbnew file mode 100644index 00000000000..4daf442576b--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_enabled_setting_validator.rb@@ -0,0 +1,20 @@+# frozen_string_literal: true++class ChatIntegrationSlackEnabledSettingValidator+ def initialize(opts = {})+ @opts = opts+ end++ def valid_value?(val)+ return true if val == ("f") || val == (false)+ if SiteSetting.chat_integration_slack_outbound_webhook_url.blank? &&+ SiteSetting.chat_integration_slack_access_token.blank?+ return false+ end+ true+ end++ def error_message+ I18n.t("site_settings.errors.chat_integration_slack_api_configs_are_empty")+ end+enddiff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_message.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_message.rbnew file mode 100644index 00000000000..e0be63e34e1--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_message.rb@@ -0,0 +1,133 @@+# frozen_string_literal: true++module DiscourseChatIntegration::Provider::SlackProvider+ class SlackMessage+ def initialize(raw_message, transcript)+ @raw = raw_message+ @transcript = transcript+ end++ def username+ if user+ user["_transcript_username"]+ elsif @raw.key?("username")+ # This is for bot messages+ @raw["username"].gsub(" ", "_")+ end+ end++ def avatar+ user["profile"]["image_24"] if user+ end++ def url+ channel_id = @transcript.channel_id+ ts = @raw["ts"].gsub(".", "")+ "https://slack.com/archives/#{channel_id}/p#{ts}"+ end++ def text+ text = @raw["text"].nil? ? "" : @raw["text"]++ pre = {}++ # Extract code blocks and replace with placeholder+ text =+ text.gsub(/```(.*?)```/m) do |match|+ key = "pre:" + SecureRandom.alphanumeric(50)+ pre[key] = HTMLEntities.new.decode $1+ "\n```\n#{key}\n```\n"+ end++ # # Extract inline code and replace with placeholder+ text =+ text.gsub(/(?<!`)`([^`]+?)`(?!`)/) do |match|+ key = "pre:" + SecureRandom.alphanumeric(50)+ pre[key] = HTMLEntities.new.decode $1+ "`#{key}`"+ end++ # Format links (don't worry about special cases @ # !)+ text =+ text.gsub(/<(.*?)>/) do |match|+ group = $1+ parts = group.split("|")+ link = parts[0].start_with?("@", "#", "!") ? nil : parts[0]+ text = parts.length > 1 ? parts[1] : parts[0]++ if parts[0].start_with?("@")+ user_id = parts[0][1..-1]+ if user = @transcript.users[user_id]+ user_name = user["_transcript_username"]+ else+ user_name = user_id+ end+ next "@#{user_name}"+ end++ if link.nil?+ text+ elsif link == text+ "<#{link}>"+ else+ "[#{text}](#{link})"+ end+ end++ # Add an extra * to each side for bold+ text = text.gsub(/\*.*?\*/) { |match| "*#{match}*" }++ # Add an extra ~ to each side for strikethrough+ text = text.gsub(/~.*?~/) { |match| "~#{match}~" }++ # Replace emoji - with _+ text = text.gsub(/:[a-z0-9_-]+:/) { |match| match.gsub("-") { "_" } }++ # Restore pre-formatted code block content+ pre.each { |key, value| text = text.gsub(key) { value } }++ text+ end++ def attachments_string+ string = ""+ string += "\n" if !attachments.empty?+ attachments.each { |attachment| string += " - #{attachment}\n" }+ string+ end++ def processed_text_with_attachments+ self.text + attachments_string+ end++ def raw_text+ raw_text = @raw["text"].nil? ? "" : @raw["text"]+ raw_text += attachments_string+ raw_text+ end++ def attachments+ attachments = []++ return attachments unless @raw.key?("attachments")++ @raw["attachments"].each do |attachment|+ next unless attachment.key?("fallback")+ attachments << attachment["fallback"]+ end++ attachments+ end++ def ts+ @raw["ts"]+ end++ private++ def user+ return nil unless user_id = @raw["user"]+ @transcript.users[user_id]+ end+ end+enddiff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_message_formatter.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_message_formatter.rbnew file mode 100644index 00000000000..a5737e979d9--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_message_formatter.rb@@ -0,0 +1,58 @@+# frozen_string_literal: true++module DiscourseChatIntegration::Provider::SlackProvider+ class SlackMessageFormatter < Nokogiri::XML::SAX::Document+ attr_reader :excerpt++ def initialize+ @excerpt = +""+ end++ def self.format(html = "")+ me = self.new+ parser = Nokogiri::HTML4::SAX::Parser.new(me, Encoding::UTF_8.to_s)+ parser.parse(html)+ me.excerpt+ end++ def start_element(name, attributes = [])+ case name+ when "a"+ attributes = Hash[*attributes.flatten]+ @in_a = true+ @excerpt << "<#{absolute_url(attributes["href"])}|"+ end+ end++ def end_element(name)+ case name+ when "a"+ @excerpt << ">"+ @in_a = false+ end+ end++ def characters(string)+ string.strip! if @in_a+ @excerpt << string+ end++ private++ def absolute_url(url)+ uri =+ begin+ URI(url)+ rescue StandardError+ nil+ end++ return Discourse.current_hostname unless uri+ return uri.to_s if uri.scheme == "mailto"++ uri.host = Discourse.current_hostname if !uri.host+ uri.scheme = (SiteSetting.force_https ? "https" : "http") if !uri.scheme+ uri.to_s+ end+ end+enddiff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_provider.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_provider.rbnew file mode 100644index 00000000000..6c8ab9b5e3c--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_provider.rb@@ -0,0 +1,354 @@+# frozen_string_literal: true++module DiscourseChatIntegration::Provider::SlackProvider+ PROVIDER_NAME = "slack"+ THREAD_CUSTOM_FIELD_PREFIX = "slack_thread_id_"++ # In the past, only one thread_ts was stored for each topic.+ # Now, we store one thread_ts per Slack channel.+ # Data will be automatically migrated when the next message is sent to the channel+ # This logic could be removed after 2022-12 - it's unlikely people will care about+ # threading messages to more-than-1-year-old Slack threads.+ THREAD_LEGACY = "thread"++ PROVIDER_ENABLED_SETTING = :chat_integration_slack_enabled+ CHANNEL_IDENTIFIER_KEY = "identifier".freeze+ CHANNEL_PARAMETERS = [{ key: "identifier", regex: '^[@#]?\S*$', unique: true }]++ require_dependency "topic"+ ::Topic.register_custom_field_type(+ DiscourseChatIntegration::Provider::SlackProvider::THREAD_LEGACY,+ :string,+ )++ def self.excerpt(post, max_length = SiteSetting.chat_integration_slack_excerpt_length)+ doc =+ Nokogiri::HTML5.fragment(+ post.excerpt(max_length, remap_emoji: true, keep_onebox_source: true),+ )++ SlackMessageFormatter.format(doc.to_html)+ end++ def self.slack_message(post, channel, filter)+ display_name = ::DiscourseChatIntegration::Helper.formatted_display_name(post.user)++ topic = post.topic++ category = ""+ if topic.category&.uncategorized?+ category = "[#{I18n.t("uncategorized_category_name")}]"+ elsif topic.category+ category =+ (+ if (topic.category.parent_category)+ "[#{topic.category.parent_category.name}/#{topic.category.name}]"+ else+ "[#{topic.category.name}]"+ end+ )+ end++ icon_url =+ if SiteSetting.chat_integration_slack_icon_url.present?+ "#{Discourse.base_url}#{SiteSetting.chat_integration_slack_icon_url}"+ elsif (url = (SiteSetting.try(:site_logo_small_url) || SiteSetting.logo_small_url)).present?+ "#{Discourse.base_url}#{url}"+ end++ slack_username =+ if SiteSetting.chat_integration_slack_username.present?+ SiteSetting.chat_integration_slack_username+ else+ SiteSetting.title || "Discourse"+ end++ message = { channel: channel, username: slack_username, icon_url: icon_url, attachments: [] }++ if filter == "thread" && thread_ts = get_slack_thread_ts(topic, channel)+ message[:thread_ts] = thread_ts+ end++ summary = {+ fallback: "#{topic.title} - #{display_name}",+ author_name: display_name,+ author_icon: post.user.small_avatar_url,+ color: topic.category ? "##{topic.category.color}" : nil,+ text: excerpt(post),+ mrkdwn_in: ["text"],+ title:+ "#{topic.title} #{category} #{topic.tags.present? ? topic.tags.map(&:name).join(", ") : ""}",+ title_link: post.full_url,+ thumb_url: post.full_url,+ }++ message[:attachments].push(summary)++ message+ end++ def self.create_slack_message(context:, content:, url:, channel_name:)+ sender = ::DiscourseChatIntegration::Helper.formatted_display_name(Discourse.system_user)++ content = replace_placehoders(content, context) if context["kind"] ==+ DiscourseAutomation::Triggers::TOPIC_TAGS_CHANGED++ full_content =+ if context["kind"] == DiscourseAutomation::Triggers::TOPIC_TAGS_CHANGED+ content+ else+ "#{content} - #{url}"+ end++ icon_url =+ if SiteSetting.chat_integration_slack_icon_url.present?+ "#{Discourse.base_url}#{SiteSetting.chat_integration_slack_icon_url}"+ elsif (url = (SiteSetting.try(:site_logo_small_url) || SiteSetting.logo_small_url)).present?+ "#{Discourse.base_url}#{url}"+ end++ slack_username =+ if SiteSetting.chat_integration_slack_username.present?+ SiteSetting.chat_integration_slack_username+ else+ SiteSetting.title || "Discourse"+ end++ message = {+ channel: "##{channel_name}",+ username: slack_username,+ icon_url: icon_url,+ attachments: [],+ }++ summary = {+ fallback: content.truncate(100),+ author_name: sender,+ color: nil,+ text: full_content,+ mrkdwn_in: ["text"],+ title: content.truncate(100),+ title_link: url,+ thumb_url: nil,+ }++ if context["kind"] == DiscourseAutomation::Triggers::TOPIC_TAGS_CHANGED+ topic = context["topic"]+ category =+ if topic.category&.uncategorized?+ "[#{I18n.t("uncategorized_category_name")}]"+ elsif topic.category+ if (topic.category.parent_category)+ "[#{topic.category.parent_category.name}/#{topic.category.name}]"+ else+ "[#{topic.category.name}]"+ end+ end+ summary[:title_link] = topic.posts.first.full_url+ summary[+ :title+ ] = "#{topic.title} #{category} #{topic.tags.present? ? topic.tags.map(&:name).join(", ") : ""}"+ summary[:thumb_url]+ end++ message[:attachments].push(summary)+ message+ end++ def self.send_via_api(post, channel, message)+ http = slack_api_http++ response = nil+ uri = ""++ # <!--SLACK_CHANNEL_ID=#{@channel_id};SLACK_TS=#{@requested_thread_ts}-->+ slack_thread_regex = /<!--SLACK_CHANNEL_ID=([^;.]+);SLACK_TS=([0-9]{10}.[0-9]{6})-->/++ req = Net::HTTP::Post.new(URI("https://slack.com/api/chat.postMessage"))++ data = {+ token: SiteSetting.chat_integration_slack_access_token,+ username: message[:username],+ icon_url: message[:icon_url],+ channel: message[:channel].gsub("#", ""),+ attachments: message[:attachments].to_json,+ }++ if post+ if message.key?(:thread_ts)+ data[:thread_ts] = message[:thread_ts]+ elsif (match = slack_thread_regex.match(post.raw)) && match.captures[0] == channel+ data[:thread_ts] = match.captures[1]+ set_slack_thread_ts(post.topic, channel, match.captures[1])+ end+ end++ req.set_form_data(data)++ response = http.request(req)++ unless response.kind_of? Net::HTTPSuccess+ raise ::DiscourseChatIntegration::ProviderError.new info: {+ request: uri,+ response_code: response.code,+ response_body: response.body,+ }+ end++ json = JSON.parse(response.body)++ unless json["ok"] == true+ if json.key?("error") &&+ (json["error"] == ("channel_not_found") || json["error"] == ("is_archived"))+ error_key = "chat_integration.provider.slack.errors.channel_not_found"+ else+ error_key = nil+ end+ raise ::DiscourseChatIntegration::ProviderError.new info: {+ error_key: error_key,+ request: uri,+ response_code: response.code,+ response_body: response.body,+ }+ end++ ts = json.dig("message", "thread_ts") || json["ts"]+ set_slack_thread_ts(post.topic, channel, ts) if !ts.nil? && !post.nil?++ response+ end++ def self.send_via_webhook(message)+ http = FinalDestination::HTTP.new("hooks.slack.com", 443)+ http.use_ssl = true+ req =+ Net::HTTP::Post.new(+ URI(SiteSetting.chat_integration_slack_outbound_webhook_url),+ "Content-Type" => "application/json",+ )+ req.body = message.to_json+ response = http.request(req)++ unless response.kind_of? Net::HTTPSuccess+ if response.code.to_s == "403"+ error_key = "chat_integration.provider.slack.errors.action_prohibited"+ elsif response.body == ("channel_not_found") || response.body == ("channel_is_archived")+ error_key = "chat_integration.provider.slack.errors.channel_not_found"+ else+ error_key = nil+ end+ raise ::DiscourseChatIntegration::ProviderError.new info: {+ error_key: error_key,+ request: req.body,+ response_code: response.code,+ response_body: response.body,+ }+ end+ end++ def self.trigger_notification(post, channel, rule)+ channel_id = channel.data["identifier"]+ filter = rule.nil? ? "" : rule.filter+ message = slack_message(post, channel_id, filter)++ if SiteSetting.chat_integration_slack_access_token.empty?+ self.send_via_webhook(message)+ else+ self.send_via_api(post, channel_id, message)+ end+ end++ def self.slack_api_http+ http = FinalDestination::HTTP.new("slack.com", 443)+ http.use_ssl = true+ http.read_timeout = 5 # seconds+ http+ end++ def self.get_slack_thread_ts(topic, channel)+ field = TopicCustomField.where(topic: topic, name: "#{THREAD_CUSTOM_FIELD_PREFIX}#{channel}")+ field.pick(:value) || topic.custom_fields[THREAD_LEGACY]+ end++ def self.set_slack_thread_ts(topic, channel, value)+ TopicCustomField.upsert(+ {+ topic_id: topic.id,+ name: "#{THREAD_CUSTOM_FIELD_PREFIX}#{channel}",+ value: value,+ created_at: Time.zone.now,+ updated_at: Time.zone.now,+ },+ unique_by: :index_topic_custom_fields_on_topic_id_and_slack_thread_id,+ )+ end++ def self.replace_placehoders(content, context)+ if context["topic"] && content.include?("${TOPIC}")+ topic = context["topic"]+ content = content.gsub("${TOPIC}", topic.title)+ end++ if content.include?("${REMOVED_TAGS}")+ if context["removed_tags"].empty?+ raise StandardError.new "No tags but content includes reference."+ end+ removed_tags_names = create_tag_list(context["removed_tags"])+ content = content.gsub("${REMOVED_TAGS}", removed_tags_names)+ end++ if content.include?("${ADDED_TAGS}")+ if context["added_tags"].empty?+ raise StandardError.new "No tags but content includes reference."+ end+ added_tags_names = create_tag_list(context["added_tags"])+ content = content.gsub("${ADDED_TAGS}", added_tags_names)+ end++ if content.include?("${ADDED_AND_REMOVED}")+ added_tags = context["added_tags"]+ missing_tags = context["removed_tags"]++ text =+ if !added_tags.empty? && !missing_tags.empty?+ I18n.t(+ "chat_integration.provider.slack.messaging.topic_tag_changed.added_and_removed",+ added: create_tag_list(added_tags),+ removed: create_tag_list(missing_tags),+ )+ elsif !added_tags.empty?+ I18n.t(+ "chat_integration.provider.slack.messaging.topic_tag_changed.added",+ added: create_tag_list(added_tags),+ )+ elsif !missing_tags.empty?+ I18n.t(+ "chat_integration.provider.slack.messaging.topic_tag_changed.removed",+ removed: create_tag_list(missing_tags),+ )+ end++ content = content.gsub("${ADDED_AND_REMOVED}", text)+ end++ content = content.gsub("${URL}", url) if content.include?("${URL}")++ content+ end++ def self.create_tag_list(tag_list)+ tag_list.map { |tag_name| "<#{Tag.find_by_name(tag_name).full_url}|#{tag_name}>" }.join(", ")+ end++ def self.get_channel_by_name(name)+ DiscourseChatIntegration::Channel+ .with_provider(PROVIDER_NAME)+ .with_data_value(CHANNEL_IDENTIFIER_KEY, name)+ .first+ end+end++require_relative "slack_message_formatter"+require_relative "slack_transcript"+require_relative "slack_message"+require_relative "slack_command_controller"diff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_transcript.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_transcript.rbnew file mode 100644index 00000000000..8b648b587bd--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_transcript.rb@@ -0,0 +1,339 @@+# frozen_string_literal: true++module DiscourseChatIntegration::Provider::SlackProvider+ class SlackTranscript+ class UserFetchError < RuntimeError+ end++ attr_reader :users, :channel_id, :messages++ def initialize(channel_name:, channel_id:, requested_thread_ts: nil)+ @channel_name = channel_name+ @channel_id = channel_id+ @requested_thread_ts = requested_thread_ts++ @first_message_index = 0+ @last_message_index = -1 # We can use negative array indicies to select the last message - fancy!+ end++ def set_first_message_by_ts(ts)+ message_index = @messages.find_index { |m| m.ts == ts }+ @first_message_index = message_index if message_index+ end++ def set_last_message_by_ts(ts)+ message_index = @messages.find_index { |m| m.ts == ts }+ @last_message_index = message_index if message_index+ end++ def set_first_message_by_index(val)+ @first_message_index = val if @messages[val]+ end++ def set_last_message_by_index(val)+ @last_message_index = val if @messages[val]+ end++ # Apply a heuristic to decide which is the first message in the current conversation+ def guess_first_message(skip_messages: 5) # Can skip the last n messages+ return true if @requested_thread_ts # Always start thread on first message+ return false if @messages.blank? || @messages.size < skip_messages++ possible_first_messages = @messages[0..-skip_messages]++ # Work through the messages in order. If a gap is found, this could be the first message+ new_first_message_index = nil+ previous_message_ts = @messages[-skip_messages].ts.split(".").first.to_i+ possible_first_messages.each_with_index do |message, index|+ # Calculate the time since the last message+ this_ts = message.ts.split(".").first.to_i+ time_since_previous_message = this_ts - previous_message_ts++ # If greater than 3 minutes, this could be the first message+ new_first_message_index = index if time_since_previous_message > 3.minutes++ previous_message_ts = this_ts+ end++ if new_first_message_index+ @first_message_index = new_first_message_index+ true+ else+ false+ end+ end++ def first_message+ @messages[@first_message_index]+ end++ def last_message+ @messages[@last_message_index]+ end++ # These two methods convert potentially negative array indices into positive ones+ def first_message_number+ @first_message_index < 0 ? @messages.length + @first_message_index : @first_message_index+ end+ def last_message_number+ @last_message_index < 0 ? @messages.length + @last_message_index : @last_message_index+ end++ def build_transcript+ post_content = +""+ post_content << "[quote]\n" if SiteSetting.chat_integration_slack_transcript_quote+ post_content << "[**#{I18n.t("chat_integration.provider.slack.transcript.view_on_slack", name: @channel_name)}**](#{first_message.url})\n"++ all_avatars = {}++ last_username = ""++ transcript_messages = @messages[@first_message_index..@last_message_index]++ transcript_messages.each do |m|+ same_user = m.username == last_username+ last_username = m.username++ unless same_user+ if avatar = m.avatar+ all_avatars[m.username] ||= avatar+ end++ post_content << "\n"+ post_content << "![#{m.username}] " if m.avatar+ post_content << "**@#{m.username}:** "+ end++ post_content << m.text++ m.attachments.each { |attachment| post_content << "\n> #{attachment}\n" }++ post_content << "\n"+ end++ post_content << "[/quote]" if SiteSetting.chat_integration_slack_transcript_quote+ post_content << "\n\n"++ all_avatars.each { |username, url| post_content << "[#{username}]: #{url}\n" }++ if not @requested_thread_ts.nil?+ post_content << "<!--SLACK_CHANNEL_ID=#{@channel_name};SLACK_TS=#{@requested_thread_ts}-->"+ end++ post_content+ end++ def build_modal_ui+ data = {+ type: "modal",+ title: {+ type: "plain_text",+ text: I18n.t("chat_integration.provider.slack.transcript.modal_title"),+ },+ blocks: [+ {+ type: "section",+ text: {+ type: "mrkdwn",+ text: I18n.t("chat_integration.provider.slack.transcript.modal_description"),+ },+ },+ ],+ }++ if @messages+ post_content = build_transcript+ secret = DiscourseChatIntegration::Helper.save_transcript(post_content)+ link = "#{Discourse.base_url}/chat-transcript/#{secret}"++ data[:blocks] << {+ type: "section",+ text: {+ type: "mrkdwn",+ text:+ ":writing_hand: *#{I18n.t("chat_integration.provider.slack.transcript.transcript_ready")}*",+ },+ accessory: {+ type: "button",+ text: {+ type: "plain_text",+ text: I18n.t("chat_integration.provider.slack.transcript.continue_on_discourse"),+ emoji: true,+ },+ style: "primary",+ url: link,+ action_id: "null_action",+ },+ }+ else+ data[:blocks] << {+ type: "section",+ text: {+ type: "mrkdwn",+ text: ":writing_hand: #{I18n.t("chat_integration.provider.slack.transcript.loading")}",+ },+ }+ end++ data+ end++ def build_slack_ui+ post_content = build_transcript+ secret = DiscourseChatIntegration::Helper.save_transcript(post_content)+ link = "#{Discourse.base_url}/chat-transcript/#{secret}"++ if @requested_thread_ts+ return(+ {+ text:+ "<#{link}|#{I18n.t("chat_integration.provider.slack.transcript.post_to_discourse")}>",+ }+ )+ end++ {+ text: "<#{link}|#{I18n.t("chat_integration.provider.slack.transcript.post_to_discourse")}>",+ attachments: [+ {+ pretext:+ I18n.t(+ "chat_integration.provider.slack.transcript.first_message_pretext",+ n: @messages.length - first_message_number,+ ),+ fallback: "#{first_message.username} - #{first_message.raw_text}",+ color: "#007AB8",+ author_name: first_message.username,+ author_icon: first_message.avatar,+ text: first_message.raw_text,+ footer:+ I18n.t("chat_integration.provider.slack.transcript.posted_in", name: @channel_name),+ ts: first_message.ts,+ callback_id: last_message.ts,+ actions: [+ {+ name: "first_message",+ text: I18n.t("chat_integration.provider.slack.transcript.change_first_message"),+ type: "select",+ options:+ first_message_options =+ @messages[[(first_message_number - 20), 0].max..last_message_number].map do |m|+ { text: "#{m.username}: #{m.processed_text_with_attachments}", value: m.ts }+ end,+ },+ ],+ },+ {+ pretext:+ I18n.t(+ "chat_integration.provider.slack.transcript.last_message_pretext",+ n: @messages.length - last_message_number,+ ),+ fallback: "#{last_message.username} - #{last_message.raw_text}",+ color: "#007AB8",+ author_name: last_message.username,+ author_icon: last_message.avatar,+ text: last_message.raw_text,+ footer:+ I18n.t("chat_integration.provider.slack.transcript.posted_in", name: @channel_name),+ ts: last_message.ts,+ callback_id: first_message.ts,+ actions: [+ {+ name: "last_message",+ text: I18n.t("chat_integration.provider.slack.transcript.change_last_message"),+ type: "select",+ options:+ @messages[first_message_number..(last_message_number + 20)].map do |m|+ { text: "#{m.username}: #{m.processed_text_with_attachments}", value: m.ts }+ end,+ },+ ],+ },+ ],+ }+ end++ def load_user_data+ key =+ "slack_user_info_#{Digest::SHA1.hexdigest(SiteSetting.chat_integration_slack_access_token)}"+ @users = Discourse.cache.fetch(key, expires_in: 10.minutes) { fetch_user_data }+ true+ rescue UserFetchError+ false+ end++ def fetch_user_data+ http = ::DiscourseChatIntegration::Provider::SlackProvider.slack_api_http++ cursor = nil+ req = Net::HTTP::Post.new(URI("https://slack.com/api/users.list"))++ users = {}+ loop do+ break if cursor == ""+ req.set_form_data(+ token: SiteSetting.chat_integration_slack_access_token,+ limit: 200,+ cursor: cursor,+ )+ response = http.request(req)+ raise UserFetchError.new unless response.kind_of? Net::HTTPSuccess+ json = JSON.parse(response.body)+ raise UserFetchError.new unless json["ok"]+ cursor = json["response_metadata"]["next_cursor"]+ json["members"].each do |user|+ # Slack uses display_name and falls back to real_name if it is not set+ if user["profile"]["display_name"].blank?+ user["_transcript_username"] = user["profile"]["real_name"]+ else+ user["_transcript_username"] = user["profile"]["display_name"]+ end+ user["_transcript_username"] = user["_transcript_username"].gsub(" ", "_")+ users[user["id"]] = user+ end+ end+ users+ end++ def load_chat_history(count: 500)+ http = DiscourseChatIntegration::Provider::SlackProvider.slack_api_http++ endpoint = @requested_thread_ts ? "replies" : "history"++ req = Net::HTTP::Post.new(URI("https://slack.com/api/conversations.#{endpoint}"))++ data = {+ token: SiteSetting.chat_integration_slack_access_token,+ channel: @channel_id,+ limit: count,+ }++ data[:ts] = @requested_thread_ts if @requested_thread_ts++ req.set_form_data(data)+ response = http.request(req)+ return false unless response.kind_of? Net::HTTPSuccess+ json = JSON.parse(response.body)+ return false unless json["ok"]++ raw_messages = json["messages"]+ raw_messages = raw_messages.reverse unless @requested_thread_ts++ # Build some message objects+ @messages = []+ raw_messages.each_with_index do |message, index|+ # Only load messages+ next unless message["type"] == "message"++ # Don't load responses to threads unless specifically requested (if ts==thread_ts then it's the thread parent)+ if !@requested_thread_ts && message["thread_ts"] && message["thread_ts"] != message["ts"]+ next+ end++ this_message = SlackMessage.new(message, self)+ @messages << this_message+ end+ end+ end+enddiff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/teams/teams_provider.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/teams/teams_provider.rbnew file mode 100644index 00000000000..cac70da7b8d--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/teams/teams_provider.rb@@ -0,0 +1,93 @@+# frozen_string_literal: true++module DiscourseChatIntegration::Provider::TeamsProvider+ PROVIDER_NAME = "teams".freeze+ PROVIDER_ENABLED_SETTING = :chat_integration_teams_enabled+ CHANNEL_IDENTIFIER_KEY = "name".freeze+ CHANNEL_PARAMETERS = [+ { key: "name", regex: '^\S+$', unique: true },+ { key: "webhook_url", regex: '^https:\/\/\S+$', unique: true, hidden: true },+ ]++ def self.trigger_notification(post, channel, rule)+ message = get_message(post)+ uri = URI(channel.data["webhook_url"])++ http = FinalDestination::HTTP.new(uri.host, uri.port)+ http.use_ssl = (uri.scheme == "https")++ req = Net::HTTP::Post.new(uri, "Content-Type" => "application/json")+ req.body = message.to_json+ response = http.request(req)++ unless response.kind_of? Net::HTTPSuccess+ if response.body.include?("Invalid webhook URL")+ error_key = "chat_integration.provider.teams.errors.invalid_channel"+ else+ error_key = nil+ end+ raise ::DiscourseChatIntegration::ProviderError.new info: {+ error_key: error_key,+ request: req.body,+ response_code: response.code,+ response_body: response.body,+ }+ end+ end++ def self.get_message(post)+ display_name = "@#{post.user.username}"+ full_name =+ if SiteSetting.enable_names && post.user.name.present?+ post.user.name+ else+ ""+ end++ topic = post.topic++ category = ""+ if topic.category&.uncategorized?+ category = "[#{I18n.t("uncategorized_category_name")}]"+ elsif topic.category+ category =+ (+ if (topic.category.parent_category)+ "[#{topic.category.parent_category.name}/#{topic.category.name}]"+ else+ "[#{topic.category.name}]"+ end+ )+ end++ message = {+ "@type": "MessageCard",+ summary: topic.title,+ sections: [+ {+ activityTitle:+ "[#{topic.title} #{category} #{topic.tags.present? ? topic.tags.map(&:name).join(", ") : ""}](#{post.full_url})",+ activitySubtitle:+ post.excerpt(+ SiteSetting.chat_integration_teams_excerpt_length,+ text_entities: true,+ strip_links: true,+ remap_emoji: true,+ ),+ activityImage: post.user.small_avatar_url,+ facts: [{ name: full_name, value: display_name }],+ markdown: true,+ },+ ],+ }++ message+ end++ def self.get_channel_by_name(name)+ DiscourseChatIntegration::Channel+ .with_provider(PROVIDER_NAME)+ .with_data_value(CHANNEL_IDENTIFIER_KEY, name)+ .first+ end+enddiff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/telegram/telegram_command_controller.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/telegram/telegram_command_controller.rbnew file mode 100644index 00000000000..1b8ac8ed66c--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/telegram/telegram_command_controller.rb@@ -0,0 +1,116 @@+# frozen_string_literal: true++module DiscourseChatIntegration::Provider::TelegramProvider+ class TelegramCommandController < DiscourseChatIntegration::Provider::HookController+ requires_provider ::DiscourseChatIntegration::Provider::TelegramProvider::PROVIDER_NAME++ before_action :telegram_token_valid?, only: :command++ skip_before_action :check_xhr,+ :preload_json,+ :verify_authenticity_token,+ :redirect_to_login_if_required,+ only: :command++ def command+ # If it's a new message (telegram also sends hooks for other reasons that we don't care about)+ if params.key?("message")+ chat_id = params["message"]["chat"]["id"]++ message_text = process_command(params["message"])++ if message_text.present?+ message = {+ chat_id: chat_id,+ text: message_text,+ parse_mode: "html",+ disable_web_page_preview: true,+ }++ DiscourseChatIntegration::Provider::TelegramProvider.sendMessage(message)+ end+ elsif params.dig("channel_post", "text")&.include?("/getchatid")+ chat_id = params["channel_post"]["chat"]["id"]++ message_text =+ I18n.t(+ "chat_integration.provider.telegram.unknown_chat",+ site_title: CGI.escapeHTML(SiteSetting.title),+ chat_id: chat_id,+ )++ message = {+ chat_id: chat_id,+ text: message_text,+ parse_mode: "html",+ disable_web_page_preview: true,+ }++ DiscourseChatIntegration::Provider::TelegramProvider.sendMessage(message)+ end++ # Always give telegram a success message, otherwise we'll stop receiving webhooks+ data = { success: true }+ render json: data+ end++ def process_command(message)+ return unless message["text"] # No command to be processed++ chat_id = params["message"]["chat"]["id"]++ provider = DiscourseChatIntegration::Provider::TelegramProvider::PROVIDER_NAME++ channel =+ DiscourseChatIntegration::Channel+ .with_provider(provider)+ .with_data_value("chat_id", chat_id)+ .first++ text_key =+ if channel.nil?+ "unknown_chat"+ elsif !SiteSetting.chat_integration_telegram_enable_slash_commands ||+ !message["text"].start_with?("/")+ "silent"+ else+ ""+ end++ return "" if text_key == "silent"++ if text_key.present?+ return(+ I18n.t(+ "chat_integration.provider.telegram.#{text_key}",+ site_title: CGI.escapeHTML(SiteSetting.title),+ chat_id: chat_id,+ )+ )+ end++ tokens = message["text"].split(" ")++ tokens[0][0] = "" # Remove the slash from the first token+ tokens[0] = tokens[0].split("@")[0] # Remove the bot name from the command (necessary for group chats)++ ::DiscourseChatIntegration::Helper.process_command(channel, tokens)+ end++ def telegram_token_valid?+ params.require(:token)++ if SiteSetting.chat_integration_telegram_secret.blank? ||+ SiteSetting.chat_integration_telegram_secret != params[:token]+ raise Discourse::InvalidAccess.new+ end+ end+ end++ class TelegramEngine < ::Rails::Engine+ engine_name DiscourseChatIntegration::PLUGIN_NAME + "-telegram"+ isolate_namespace DiscourseChatIntegration::Provider::TelegramProvider+ end++ TelegramEngine.routes.draw { post "command/:token" => "telegram_command#command" }+enddiff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/telegram/telegram_provider.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/telegram/telegram_provider.rbnew file mode 100644index 00000000000..46e69c61d5b--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/telegram/telegram_provider.rb@@ -0,0 +1,125 @@+# frozen_string_literal: true++module DiscourseChatIntegration+ module Provider+ module TelegramProvider+ PROVIDER_NAME = "telegram".freeze+ PROVIDER_ENABLED_SETTING = :chat_integration_telegram_enabled+ CHANNEL_IDENTIFIER_KEY = "name".freeze+ CHANNEL_PARAMETERS = [+ { key: "name", regex: '^\S+' },+ { key: "chat_id", regex: '^(-?[0-9]+|@\S+)$', unique: true },+ ]++ def self.setup_webhook+ newSecret = SecureRandom.hex+ SiteSetting.chat_integration_telegram_secret = newSecret++ message = { url: Discourse.base_url + "/chat-integration/telegram/command/" + newSecret }++ response = self.do_api_request("setWebhook", message)++ if response["ok"] != true+ # If setting up webhook failed, disable provider+ SiteSetting.chat_integration_telegram_enabled = false+ Rails.logger.error(+ "Failed to setup telegram webhook. Message data= " + message.to_json + " response=" ++ response.to_json,+ )+ end+ end++ def self.sendMessage(message)+ self.do_api_request("sendMessage", message)+ end++ def self.do_api_request(methodName, message)+ http = FinalDestination::HTTP.new("api.telegram.org", 443)+ http.use_ssl = true++ access_token = SiteSetting.chat_integration_telegram_access_token++ uri = URI("https://api.telegram.org/bot#{access_token}/#{methodName}")++ req = Net::HTTP::Post.new(uri, "Content-Type" => "application/json")+ req.body = message.to_json+ response = http.request(req)++ responseData = JSON.parse(response.body)++ responseData+ end++ def self.message_text(post)+ display_name = ::DiscourseChatIntegration::Helper.formatted_display_name(post.user)++ topic = post.topic++ category = ""+ if topic.category+ category =+ (+ if (topic.category.parent_category)+ "[#{topic.category.parent_category.name}/#{topic.category.name}]"+ else+ "[#{topic.category.name}]"+ end+ )+ end++ tags = ""+ tags = topic.tags.map(&:name).join(", ") if topic.tags.present?++ I18n.t(+ "chat_integration.provider.telegram.message",+ user: display_name,+ post_url: post.full_url,+ title: CGI.escapeHTML(topic.title),+ post_excerpt:+ post.excerpt(+ SiteSetting.chat_integration_telegram_excerpt_length,+ text_entities: true,+ strip_links: true,+ remap_emoji: true,+ ),+ )+ end++ def self.trigger_notification(post, channel, rule)+ chat_id = channel.data["chat_id"]++ message = {+ chat_id: chat_id,+ text: message_text(post),+ parse_mode: "html",+ disable_web_page_preview: true,+ }++ response = sendMessage(message)++ if response["ok"] != true+ error_key = nil+ if response["description"].include? "chat not found"+ error_key = "chat_integration.provider.telegram.errors.channel_not_found"+ elsif response["description"].include? "Forbidden"+ error_key = "chat_integration.provider.telegram.errors.forbidden"+ end+ raise ::DiscourseChatIntegration::ProviderError.new info: {+ error_key: error_key,+ message: message,+ response_body: response,+ }+ end+ end++ def self.get_channel_by_name(name)+ DiscourseChatIntegration::Channel+ .with_provider(PROVIDER_NAME)+ .with_data_value(CHANNEL_IDENTIFIER_KEY, name)+ .first+ end+ end+ end+end++require_relative "telegram_command_controller.rb"diff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/webex/webex_provider.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/webex/webex_provider.rbnew file mode 100644index 00000000000..94ace863a8d--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/webex/webex_provider.rb@@ -0,0 +1,82 @@+# frozen_string_literal: true++module DiscourseChatIntegration::Provider::WebexProvider+ PROVIDER_NAME = "webex".freeze+ PROVIDER_ENABLED_SETTING = :chat_integration_webex_enabled+ CHANNEL_IDENTIFIER_KEY = "name".freeze+ CHANNEL_PARAMETERS = [+ { key: "name", regex: '^\S+$', unique: true },+ {+ key: "webhook_url",+ regex: '^https:\/\/webexapis\.com\/v1\/webhooks\/incoming\/[A-Za-z0-9\-@\/]+\S+$',+ unique: true,+ hidden: true,+ },+ ]++ def self.trigger_notification(post, channel, rule)+ message = get_message(post)+ uri = URI(channel.data["webhook_url"])++ http = FinalDestination::HTTP.new(uri.host, uri.port)+ http.use_ssl = (uri.scheme == "https")++ req = Net::HTTP::Post.new(uri, "Content-Type" => "application/json")+ req.body = message.to_json+ response = http.request(req)++ unless response.kind_of? Net::HTTPSuccess+ if response.body.include?("Invalid webhook URL")+ error_key = "chat_integration.provider.webex.errors.invalid_channel"+ else+ error_key = nil+ end+ raise ::DiscourseChatIntegration::ProviderError.new info: {+ error_key: error_key,+ request: req.body,+ response_code: response.code,+ response_body: response.body,+ }+ end+ end++ def self.get_message(post)+ display_name = ::DiscourseChatIntegration::Helper.formatted_display_name(post.user)++ topic = post.topic++ category = ""+ if topic.category&.uncategorized?+ category = "[#{I18n.t("uncategorized_category_name")}]"+ elsif topic.category+ category =+ (+ if (topic.category.parent_category)+ "[#{topic.category.parent_category.name}/#{topic.category.name}]"+ else+ "[#{topic.category.name}]"+ end+ )+ end++ markdown = "**#{topic.title}**: #{category}"+ markdown += " #{topic.tags.map(&:name).join(", ")} " if topic.tags.present?+ markdown += "(#{post.full_url}) from #{display_name}:\n"+ markdown +=+ post.excerpt(+ SiteSetting.chat_integration_webex_excerpt_length,+ text_entities: true,+ strip_links: true,+ remap_emoji: true,+ )++ { markdown: markdown }+ end++ def self.get_channel_by_name(name)+ DiscourseChatIntegration::Channel+ .with_provider(PROVIDER_NAME)+ .with_data_value(CHANNEL_IDENTIFIER_KEY, name)+ .first+ end+enddiff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/zulip/zulip_provider.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/zulip/zulip_provider.rbnew file mode 100644index 00000000000..9e33cc0d95e--- /dev/null+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/zulip/zulip_provider.rb@@ -0,0 +1,84 @@+# frozen_string_literal: true++module DiscourseChatIntegration+ module Provider+ module ZulipProvider+ PROVIDER_NAME = "zulip".freeze+ PROVIDER_ENABLED_SETTING = :chat_integration_zulip_enabled+ CHANNEL_IDENTIFIER_KEY = "stream".freeze+ CHANNEL_PARAMETERS = [+ { key: "stream", unique: true, regex: '^\S+' },+ { key: "subject", unique: true, regex: '^\S+' },+ ]++ def self.send_message(message)+ uri = URI("#{SiteSetting.chat_integration_zulip_server}/api/v1/messages")++ http = FinalDestination::HTTP.new(uri.host, uri.port)+ http.use_ssl = (uri.scheme == "https")++ req = Net::HTTP::Post.new(uri)+ req.basic_auth(+ SiteSetting.chat_integration_zulip_bot_email_address,+ SiteSetting.chat_integration_zulip_bot_api_key,+ )+ req.set_form_data(message)++ response = http.request(req)++ response+ end++ def self.generate_zulip_message(post, stream, subject)+ display_name = ::DiscourseChatIntegration::Helper.formatted_display_name(post.user)++ message =+ I18n.t(+ "chat_integration.provider.zulip.message",+ user: display_name,+ post_url: post.full_url,+ title: post.topic.title,+ excerpt:+ post.excerpt(+ SiteSetting.chat_integration_zulip_excerpt_length,+ text_entities: true,+ strip_links: true,+ remap_emoji: true,+ ),+ )++ data = { type: "stream", to: stream, subject: subject, content: message }+ end++ def self.trigger_notification(post, channel, rule)+ stream = channel.data["stream"]+ subject = channel.data["subject"]++ message = self.generate_zulip_message(post, stream, subject)++ response = send_message(message)++ if !response.kind_of?(Net::HTTPSuccess)+ error_key = nil+ error_key =+ "chat_integration.provider.zulip.errors.does_not_exist" if response.body.include?(+ "does not exist",+ )+ raise ::DiscourseChatIntegration::ProviderError.new info: {+ error_key: error_key,+ message: message,+ response_code: response.code,+ response_body: response.body,+ }+ end+ end++ def self.get_channel_by_name(name)+ DiscourseChatIntegration::Channel+ .with_provider(PROVIDER_NAME)+ .with_data_value(CHANNEL_IDENTIFIER_KEY, name)+ .first+ end+ end+ end+enddiff --git a/plugins/discourse-chat-integration/plugin.rb b/plugins/discourse-chat-integration/plugin.rbnew file mode 100644index 00000000000..886bad98a47--- /dev/null+++ b/plugins/discourse-chat-integration/plugin.rb@@ -0,0 +1,143 @@+# frozen_string_literal: true++# name: discourse-chat-integration+# about: Allows integration with several external chat system providers+# meta_topic_id: 66522+# version: 0.1+# author: David Taylor+# url: https://github.com/discourse/discourse/tree/main/plugins/discourse-chat-integration++enabled_site_setting :chat_integration_enabled++register_asset "stylesheets/chat-integration.scss"++register_svg_icon "rocket" if respond_to?(:register_svg_icon)+register_svg_icon "arrow-circle-o-right" if respond_to?(:register_svg_icon)++# Site setting validators must be loaded before initialize+require_relative "lib/discourse_chat_integration/provider/slack/slack_enabled_setting_validator"+require_relative "lib/discourse_chat_integration/chat_integration_reference_post"++after_initialize do+ require_relative "app/initializers/discourse_chat_integration"++ require_relative "app/services/problem_check/channel_errors"++ register_problem_check ProblemCheck::ChannelErrors++ on(:site_setting_changed) do |setting_name, old_value, new_value|+ is_enabled_setting = setting_name == :chat_integration_telegram_enabled+ is_access_token = setting_name == :chat_integration_telegram_access_token++ if (is_enabled_setting || is_access_token)+ enabled =+ is_enabled_setting ? new_value == true : SiteSetting.chat_integration_telegram_enabled++ if enabled && SiteSetting.chat_integration_telegram_access_token.present?+ Scheduler::Defer.later("Setup Telegram Webhook") do+ DiscourseChatIntegration::Provider::TelegramProvider.setup_webhook+ end+ end+ end+ end++ on(:post_created) do |post|+ # This will run for every post, even PMs. Don't worry, they're filtered out later.+ time = SiteSetting.chat_integration_delay_seconds.seconds+ Jobs.enqueue_in(time, :notify_chats, post_id: post.id)+ end++ add_admin_route "chat_integration.menu_title", "chat-integration"++ DiscourseChatIntegration::Provider.mount_engines++ if defined?(DiscourseAutomation)+ add_automation_scriptable("send_slack_message") do+ field :message, component: :message, required: true, accepts_placeholders: true+ field :url, component: :text, required: true+ field :channel, component: :text, required: true++ version 1++ triggerables %i[point_in_time recurring topic_tags_changed]++ script do |context, fields, automation|+ channel_name = fields.dig("channel", "value")+ channel =+ DiscourseChatIntegration::Channel.new(+ provider: "slack",+ data: {+ identifier: "##{channel_name}",+ },+ )++ begin+ message =+ DiscourseChatIntegration::Provider::SlackProvider.create_slack_message(+ context: context,+ content: fields.dig("message", "value"),+ url: fields.dig("url", "value"),+ channel_name: channel_name,+ )+ DiscourseChatIntegration::Provider::SlackProvider.send_via_api(nil, channel, message)+ rescue StandardError => _+ # StandardError here is when there are no tags but content includes reference to them.+ end+ end+ end++ add_automation_scriptable("send_chat_integration_message") do+ field :provider,+ component: :choices,+ extra: {+ content:+ DiscourseChatIntegration::Provider.enabled_provider_names.map do |provider|+ { id: provider, name: "chat_integration.provider.#{provider}.title" }+ end,+ },+ required: true+ field :channel_name, component: :text, required: true++ version 1++ triggerables %i[topic_tags_changed]++ script do |context, fields, automation|+ # DiscourseTagging.tag_topic_by_names runs on topic creation and on tags change+ # we only want to send a message when tags change+ next if context["topic"].new_record?++ provider = fields.dig("provider", "value")+ channel_name = fields.dig("channel_name", "value")++ post =+ DiscourseChatIntegration::ChatIntegrationReferencePost.new(+ user: context["user"],+ topic: context["topic"],+ kind: context["kind"],+ context: {+ "added_tags" => context["added_tags"],+ "removed_tags" => context["removed_tags"],+ },+ )+ provider = DiscourseChatIntegration::Provider.get_by_name(provider)++ channel = provider.get_channel_by_name(channel_name) # user must have created a channel in /admin/plugins/chat-integration/<provider> page++ if channel.nil?+ Rails.logger.warn "[discourse-automation] Channel not found. Automation ID: #{automation.id}"+ next+ end++ begin+ provider.trigger_notification(post, channel, nil)+ rescue StandardError => e+ Rails.logger.warn "[discourse-automation] Error while sending chat integration message. Automation ID: #{automation.id}"+ Rails.logger.warn "[discourse-chat-integration] Error: #{e.inspect}"+ Rails.logger.warn "[discourse-chat-integration] Channel: #{channel_name}"+ Rails.logger.warn "[discourse-chat-integration] Reference post: #{post.inspect}"+ end+ end+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/dummy_provider.rb b/plugins/discourse-chat-integration/spec/dummy_provider.rbnew file mode 100644index 00000000000..fcd6b3a5bef--- /dev/null+++ b/plugins/discourse-chat-integration/spec/dummy_provider.rb@@ -0,0 +1,68 @@+# frozen_string_literal: true++RSpec.shared_context "with dummy provider" do+ before(:each) do+ module ::DiscourseChatIntegration::Provider::DummyProvider+ PROVIDER_NAME = "dummy".freeze+ PROVIDER_ENABLED_SETTING = :chat_integration_enabled # Tie to main plugin enabled setting+ CHANNEL_PARAMETERS = []++ @@sent_messages = []+ @@raise_exception = nil++ def self.trigger_notification(post, channel, rule)+ raise @@raise_exception if @@raise_exception++ @@sent_messages.push(post: post.id, channel: channel)+ end++ def self.sent_messages+ @@sent_messages+ end++ def self.sent_to_channel_ids+ @@sent_messages.map { |x| x[:channel].id }+ end++ def self.set_raise_exception(bool)+ @@raise_exception = bool+ end+ end+ end++ after(:each) { ::DiscourseChatIntegration::Provider.send(:remove_const, :DummyProvider) }++ let(:provider) { ::DiscourseChatIntegration::Provider::DummyProvider }+end++RSpec.shared_context "with validated dummy provider" do+ before(:each) do+ module ::DiscourseChatIntegration::Provider::Dummy2Provider+ PROVIDER_NAME = "dummy2".freeze+ PROVIDER_ENABLED_SETTING = :chat_integration_enabled # Tie to main plugin enabled setting+ CHANNEL_IDENTIFIER_KEY = "val".freeze+ CHANNEL_PARAMETERS = [{ key: "val", regex: '^\S+$', unique: true }]++ @@sent_messages = []++ def self.trigger_notification(post, channel, rule)+ @@sent_messages.push(post: post.id, channel: channel)+ end++ def self.sent_messages+ @@sent_messages+ end++ def self.get_channel_by_name(name)+ DiscourseChatIntegration::Channel+ .with_provider(PROVIDER_NAME)+ .with_data_value(CHANNEL_IDENTIFIER_KEY, name)+ .first+ end+ end+ end++ after(:each) { ::DiscourseChatIntegration::Provider.send(:remove_const, :Dummy2Provider) }++ let(:validated_provider) { ::DiscourseChatIntegration::Provider::Dummy2Provider }+enddiff --git a/plugins/discourse-chat-integration/spec/fabricators/channel_fabricator.rb b/plugins/discourse-chat-integration/spec/fabricators/channel_fabricator.rbnew file mode 100644index 00000000000..f5bf73b917f--- /dev/null+++ b/plugins/discourse-chat-integration/spec/fabricators/channel_fabricator.rb@@ -0,0 +1,3 @@+# frozen_string_literal: true++Fabricator(:channel, class_name: "DiscourseChatIntegration::Channel") { error_key { nil } }diff --git a/plugins/discourse-chat-integration/spec/helpers/helper_spec.rb b/plugins/discourse-chat-integration/spec/helpers/helper_spec.rbnew file mode 100644index 00000000000..79674b487e7--- /dev/null+++ b/plugins/discourse-chat-integration/spec/helpers/helper_spec.rb@@ -0,0 +1,434 @@+# frozen_string_literal: true++require "rails_helper"+require_relative "../dummy_provider"++RSpec.describe DiscourseChatIntegration::Manager do+ include_context "with dummy provider"++ let(:chan1) { DiscourseChatIntegration::Channel.create!(provider: "dummy") }+ let(:chan2) { DiscourseChatIntegration::Channel.create!(provider: "dummy") }++ let(:category) { Fabricate(:category) }+ let(:tag1) { Fabricate(:tag) }+ let(:tag2) { Fabricate(:tag) }+ let(:tag3) { Fabricate(:tag) }++ before do+ I18n.backend.store_translations(+ :en,+ { chat_integration: { provider: { dummy: I18n.t("chat_integration.provider.slack") } } },+ )+ end++ describe ".process_command" do+ describe "add new rule" do+ # Not testing how filters are merged here, that's done in .smart_create_rule+ # We just want to make sure the commands are being interpretted correctly++ it "should add a new rule correctly" do+ response = DiscourseChatIntegration::Helper.process_command(chan1, ["watch", category.slug])++ expect(response).to eq(I18n.t("chat_integration.provider.dummy.create.created"))++ rule = DiscourseChatIntegration::Rule.all.first+ expect(rule.channel).to eq(chan1)+ expect(rule.filter).to eq("watch")+ expect(rule.category_id).to eq(category.id)+ expect(rule.tags).to eq(nil)+ end++ it "should work with all four filter types" do+ response =+ DiscourseChatIntegration::Helper.process_command(chan1, ["thread", category.slug])++ rule = DiscourseChatIntegration::Rule.all.first+ expect(rule.filter).to eq("thread")++ response = DiscourseChatIntegration::Helper.process_command(chan1, ["watch", category.slug])++ rule = DiscourseChatIntegration::Rule.all.first+ expect(rule.filter).to eq("watch")++ response =+ DiscourseChatIntegration::Helper.process_command(chan1, ["follow", category.slug])++ rule = DiscourseChatIntegration::Rule.all.first+ expect(rule.filter).to eq("follow")++ response = DiscourseChatIntegration::Helper.process_command(chan1, ["mute", category.slug])++ rule = DiscourseChatIntegration::Rule.all.first+ expect(rule.filter).to eq("mute")+ end++ it "errors on incorrect categories" do+ response = DiscourseChatIntegration::Helper.process_command(chan1, %w[watch blah])++ expect(response).to eq(+ I18n.t(+ "chat_integration.provider.dummy.not_found.category",+ name: "blah",+ list: "uncategorized",+ ),+ )+ end++ context "with tags enabled" do+ before { SiteSetting.tagging_enabled = true }++ it "should add a new tag rule correctly" do+ response =+ DiscourseChatIntegration::Helper.process_command(chan1, ["watch", "tag:#{tag1.name}"])++ expect(response).to eq(I18n.t("chat_integration.provider.dummy.create.created"))++ rule = DiscourseChatIntegration::Rule.all.first+ expect(rule.channel).to eq(chan1)+ expect(rule.filter).to eq("watch")+ expect(rule.category_id).to eq(nil)+ expect(rule.tags).to eq([tag1.name])+ end++ it "should work with a category and multiple tags" do+ response =+ DiscourseChatIntegration::Helper.process_command(+ chan1,+ ["watch", category.slug, "tag:#{tag1.name}", "tag:#{tag2.name}"],+ )++ expect(response).to eq(I18n.t("chat_integration.provider.dummy.create.created"))++ rule = DiscourseChatIntegration::Rule.all.first+ expect(rule.channel).to eq(chan1)+ expect(rule.filter).to eq("watch")+ expect(rule.category_id).to eq(category.id)+ expect(rule.tags).to contain_exactly(tag1.name, tag2.name)+ end++ it "errors on incorrect tags" do+ response =+ DiscourseChatIntegration::Helper.process_command(+ chan1,+ ["watch", category.slug, "tag:blah"],+ )+ expect(response).to eq(+ I18n.t("chat_integration.provider.dummy.not_found.tag", name: "blah"),+ )+ end+ end+ end++ describe "remove rule" do+ it "removes the rule" do+ rule1 =+ DiscourseChatIntegration::Rule.create(+ channel: chan1,+ filter: "watch",+ category_id: category.id,+ tags: [tag1.name, tag2.name],+ )++ expect(DiscourseChatIntegration::Rule.all.size).to eq(1)++ response = DiscourseChatIntegration::Helper.process_command(chan1, %w[remove 1])++ expect(response).to eq(I18n.t("chat_integration.provider.dummy.delete.success"))++ expect(DiscourseChatIntegration::Rule.all.size).to eq(0)+ end++ it "errors correctly" do+ response = DiscourseChatIntegration::Helper.process_command(chan1, %w[remove 1])+ expect(response).to eq(I18n.t("chat_integration.provider.dummy.delete.error"))+ end+ end++ describe "help command" do+ it "should return the right response" do+ response = DiscourseChatIntegration::Helper.process_command(chan1, ["help"])+ expect(response).to eq(I18n.t("chat_integration.provider.dummy.help"))+ end+ end++ describe "status command" do+ it "should return the right response" do+ response = DiscourseChatIntegration::Helper.process_command(chan1, ["status"])+ expect(response).to eq(DiscourseChatIntegration::Helper.status_for_channel(chan1))+ end+ end++ describe "unknown command" do+ it "should return the right response" do+ response = DiscourseChatIntegration::Helper.process_command(chan1, ["somerandomtext"])+ expect(response).to eq(I18n.t("chat_integration.provider.dummy.parse_error"))+ end+ end+ end++ describe ".status_for_channel" do+ context "with no rules" do+ it "includes the heading" do+ string = DiscourseChatIntegration::Helper.status_for_channel(chan1)+ expect(string).to include(I18n.t("chat_integration.provider.dummy.status.header"))+ end++ it "includes the no_rules string" do+ string = DiscourseChatIntegration::Helper.status_for_channel(chan1)+ expect(string).to include(I18n.t("chat_integration.provider.dummy.status.no_rules"))+ end+ end++ context "with some rules" do+ let(:group) { Fabricate(:group) }+ before do+ DiscourseChatIntegration::Rule.create!(+ channel: chan1,+ filter: "watch",+ category_id: category.id,+ tags: nil,+ )+ DiscourseChatIntegration::Rule.create!(+ channel: chan1,+ filter: "mute",+ category_id: nil,+ tags: nil,+ )+ DiscourseChatIntegration::Rule.create!(+ channel: chan1,+ filter: "follow",+ category_id: nil,+ tags: [tag1.name],+ )+ DiscourseChatIntegration::Rule.create!(+ channel: chan1,+ filter: "watch",+ type: "group_message",+ group_id: group.id,+ )+ DiscourseChatIntegration::Rule.create!(+ channel: chan2,+ filter: "watch",+ category_id: 1,+ tags: nil,+ )++ SiteSetting.tagging_enabled = false+ end++ it "displays the correct rules" do+ string = DiscourseChatIntegration::Helper.status_for_channel(chan1)+ expect(string.scan("posts in").size).to eq(4)+ end++ it "only displays tags for rules with tags" do+ string = DiscourseChatIntegration::Helper.status_for_channel(chan1)+ expect(string.scan("with tags").size).to eq(0)++ SiteSetting.tagging_enabled = true+ string = DiscourseChatIntegration::Helper.status_for_channel(chan1)+ expect(string.scan("with tags").size).to eq(1)+ end+ end+ end++ describe ".delete_by_index" do+ let(:category2) { Fabricate(:category) }+ let(:category3) { Fabricate(:category) }++ it "deletes the correct rule" do+ # Three identical rules, with different filters+ # Status will be sorted by precedence+ # be in this order+ rule1 =+ DiscourseChatIntegration::Rule.create(+ channel: chan1,+ filter: "mute",+ category_id: category.id,+ tags: [tag1.name, tag2.name],+ )+ rule2 =+ DiscourseChatIntegration::Rule.create(+ channel: chan1,+ filter: "watch",+ category_id: category2.id,+ tags: [tag1.name, tag2.name],+ )+ rule3 =+ DiscourseChatIntegration::Rule.create(+ channel: chan1,+ filter: "follow",+ category_id: category3.id,+ tags: [tag1.name, tag2.name],+ )++ expect(DiscourseChatIntegration::Rule.all.size).to eq(3)++ expect(DiscourseChatIntegration::Helper.delete_by_index(chan1, 2)).to eq(:deleted)++ expect(DiscourseChatIntegration::Rule.all.size).to eq(2)+ expect(DiscourseChatIntegration::Rule.all.map(&:category_id)).to contain_exactly(+ category.id,+ category3.id,+ )+ end++ it "fails gracefully for out of range indexes" do+ rule1 =+ DiscourseChatIntegration::Rule.create(+ channel: chan1,+ filter: "watch",+ category_id: category.id,+ tags: [tag1.name, tag2.name],+ )++ expect(DiscourseChatIntegration::Helper.delete_by_index(chan1, -1)).to eq(false)+ expect(DiscourseChatIntegration::Helper.delete_by_index(chan1, 0)).to eq(false)+ expect(DiscourseChatIntegration::Helper.delete_by_index(chan1, 2)).to eq(false)++ expect(DiscourseChatIntegration::Helper.delete_by_index(chan1, 1)).to eq(:deleted)+ end+ end++ describe ".smart_create_rule" do+ it "creates a rule when there are none" do+ val =+ DiscourseChatIntegration::Helper.smart_create_rule(+ channel: chan1,+ filter: "watch",+ category_id: category.id,+ tags: [tag1.name],+ )+ expect(val).to eq(:created)++ record = DiscourseChatIntegration::Rule.all.first+ expect(record.channel).to eq(chan1)+ expect(record.filter).to eq("watch")+ expect(record.category_id).to eq(category.id)+ expect(record.tags).to eq([tag1.name])+ end++ it "updates a rule when it has the same category and tags" do+ existing =+ DiscourseChatIntegration::Rule.create!(+ channel: chan1,+ filter: "watch",+ category_id: category.id,+ tags: [tag2.name, tag1.name],+ )++ val =+ DiscourseChatIntegration::Helper.smart_create_rule(+ channel: chan1,+ filter: "mute",+ category_id: category.id,+ tags: [tag1.name, tag2.name],+ )++ expect(val).to eq(:updated)++ expect(DiscourseChatIntegration::Rule.all.size).to eq(1)+ expect(DiscourseChatIntegration::Rule.all.first.filter).to eq("mute")+ end++ it "updates a rule when it has the same category and filter" do+ existing =+ DiscourseChatIntegration::Rule.create(+ channel: chan1,+ filter: "watch",+ category_id: category.id,+ tags: [tag1.name, tag2.name],+ )++ val =+ DiscourseChatIntegration::Helper.smart_create_rule(+ channel: chan1,+ filter: "watch",+ category_id: category.id,+ tags: [tag1.name, tag3.name],+ )++ expect(val).to eq(:updated)++ expect(DiscourseChatIntegration::Rule.all.size).to eq(1)+ expect(DiscourseChatIntegration::Rule.all.first.tags).to contain_exactly(+ tag1.name,+ tag2.name,+ tag3.name,+ )+ end++ it "destroys duplicate rules on save" do+ DiscourseChatIntegration::Rule.create!(channel: chan1, filter: "watch")+ DiscourseChatIntegration::Rule.create!(channel: chan1, filter: "watch")+ expect(DiscourseChatIntegration::Rule.all.size).to eq(2)+ val =+ DiscourseChatIntegration::Helper.smart_create_rule(+ channel: chan1,+ filter: "watch",+ category_id: nil,+ tags: nil,+ )+ expect(val).to eq(:updated)+ expect(DiscourseChatIntegration::Rule.all.size).to eq(1)+ end++ it "returns false on error" do+ val = DiscourseChatIntegration::Helper.smart_create_rule(channel: chan1, filter: "blah")++ expect(val).to eq(false)+ end+ end++ describe ".save_transcript" do+ it "saves a transcript to redis" do+ key = DiscourseChatIntegration::Helper.save_transcript("Some content here")++ expect(Discourse.redis.get("chat_integration:transcript:#{key}")).to eq("Some content here")++ ttl = Discourse.redis.pttl("chat_integration:transcript:#{key}")++ # Slight hack since freeze_time doens't work on redis+ expect(Discourse.redis.pttl("chat_integration:transcript:#{key}")).to be <= (3601 * 1000)+ expect(Discourse.redis.pttl("chat_integration:transcript:#{key}")).to be >= (3599 * 1000)+ end+ end++ describe ".formatted_display_name" do+ let(:user) { Fabricate(:user, name: "John Smith", username: "js1") }++ it "prioritizes correctly" do+ SiteSetting.prioritize_username_in_ux = true+ expect(DiscourseChatIntegration::Helper.formatted_display_name(user)).to eq(+ "@#{user.username} (John Smith)",+ )+ SiteSetting.prioritize_username_in_ux = false+ expect(DiscourseChatIntegration::Helper.formatted_display_name(user)).to eq(+ "John Smith (@#{user.username})",+ )+ end++ it "only displays one when name/username are similar" do+ user.update!(username: "john_smith")+ SiteSetting.prioritize_username_in_ux = true+ expect(DiscourseChatIntegration::Helper.formatted_display_name(user)).to eq(+ "@#{user.username}",+ )+ SiteSetting.prioritize_username_in_ux = false+ expect(DiscourseChatIntegration::Helper.formatted_display_name(user)).to eq("John Smith")+ end++ it "only displays username when names are disabled" do+ SiteSetting.enable_names = false++ SiteSetting.prioritize_username_in_ux = true+ expect(DiscourseChatIntegration::Helper.formatted_display_name(user)).to eq(+ "@#{user.username}",+ )+ SiteSetting.prioritize_username_in_ux = false+ expect(DiscourseChatIntegration::Helper.formatted_display_name(user)).to eq(+ "@#{user.username}",+ )+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/integration/automation_spec.rb b/plugins/discourse-chat-integration/spec/integration/automation_spec.rbnew file mode 100644index 00000000000..081de477f40--- /dev/null+++ b/plugins/discourse-chat-integration/spec/integration/automation_spec.rb@@ -0,0 +1,88 @@+# frozen_string_literal: true+require_relative "../dummy_provider"+RSpec.describe "Triggering notifications" do+ include_context "with validated dummy provider"++ context "with automation installed", if: defined?(DiscourseAutomation) do+ fab!(:admin)+ fab!(:category)+ fab!(:tag)+ let(:valid_attrs) { Fabricate.attributes_for(:topic) }++ fab!(:automation) do+ Fabricate(+ :automation,+ script: "send_chat_integration_message",+ trigger: "topic_tags_changed",+ enabled: true,+ )+ end+ let(:channel1) do+ DiscourseChatIntegration::Channel.create!(provider: "dummy2", data: { val: "channel" })+ end++ before do+ SiteSetting.chat_integration_enabled = true+ SiteSetting.discourse_automation_enabled = true++ SiteSetting.tagging_enabled = true+ SiteSetting.create_tag_allowed_groups = Group::AUTO_GROUPS[:everyone]+ SiteSetting.tag_topic_allowed_groups = Group::AUTO_GROUPS[:everyone]++ automation.upsert_field!(+ "watching_categories",+ "categories",+ { "value" => [category.id] },+ target: "trigger",+ )+ automation.upsert_field!(+ "watching_tags",+ "tags",+ { "value" => [tag.name] },+ target: "trigger",+ )+ automation.upsert_field!(+ "provider",+ "choices",+ { "value" => channel1.provider },+ target: "script",+ )+ automation.upsert_field!("channel_name", "text", { "value" => "channel" }, target: "script")+ end++ it "triggers a notification" do+ topic = Fabricate(:topic, user: admin, tags: [], category: category)++ DiscourseTagging.tag_topic_by_names(topic, Guardian.new(admin), [tag.name])++ expect(validated_provider.sent_messages.length).to eq(1)+ expect(validated_provider.sent_messages.first[:post]).to eq(topic.id)+ expect(validated_provider.sent_messages.first[:channel]).to eq(channel1)+ end++ it "only triggers for the correct tag" do+ topic = Fabricate(:topic, user: admin, tags: [], category: category)++ DiscourseTagging.tag_topic_by_names(topic, Guardian.new(admin), ["other_tag"])++ expect(validated_provider.sent_messages.length).to eq(0)+ end++ it "only triggers for the correct category" do+ topic = Fabricate(:topic, user: admin, tags: [], category: Fabricate(:category))++ DiscourseTagging.tag_topic_by_names(topic, Guardian.new(admin), [tag.name])++ expect(validated_provider.sent_messages.length).to eq(0)+ end++ it "should not trigger a provider notification on topic creation for topic_tags_changed script" do+ TopicCreator.create(+ admin,+ Guardian.new(admin),+ valid_attrs.merge(tags: [tag.name], category: category.id),+ )+ expect(validated_provider.sent_messages.length).to eq(0)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/jobs/onceoff/migrate_from_slack_official_spec.rb b/plugins/discourse-chat-integration/spec/jobs/onceoff/migrate_from_slack_official_spec.rbnew file mode 100644index 00000000000..e52fb913314--- /dev/null+++ b/plugins/discourse-chat-integration/spec/jobs/onceoff/migrate_from_slack_official_spec.rb@@ -0,0 +1,170 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe Jobs::DiscourseChatMigrateFromSlackOfficial do+ let(:category) { Fabricate(:category) }++ describe "site settings" do+ before do+ PluginStoreRow.create!(+ plugin_name: "discourse-slack-official",+ key: "category_#{category.id}",+ type_name: "JSON",+ value: "[{\"channel\":\"#slack-channel\",\"filter\":\"mute\"}]",+ )++ SiteSetting.create!(value: "t", data_type: 5, name: "slack_enabled")+ SiteSetting.create!(value: "token", data_type: 1, name: "slack_access_token")+ SiteSetting.create!(value: "token2", data_type: 1, name: "slack_incoming_webhook_token")+ SiteSetting.create!(value: 300, data_type: 3, name: "slack_discourse_excerpt_length")+ SiteSetting.create!(+ value: "https://hooks.slack.com/services/something",+ data_type: 1,+ name: "slack_outbound_webhook_url",+ )+ SiteSetting.create!(value: "http://outbound2.com", data_type: 1, name: "slack_icon_url")+ SiteSetting.create!(value: 100, data_type: 3, name: "post_to_slack_window_secs")+ SiteSetting.create!(value: User.last.username, data_type: 1, name: "slack_discourse_username")+ end++ it "should migrate the site settings correctly" do+ described_class.new.execute_onceoff({})++ expect(SiteSetting.find_by(name: "slack_enabled").value).to eq("f")+ expect(SiteSetting.chat_integration_slack_access_token).to eq("token")+ expect(SiteSetting.chat_integration_slack_incoming_webhook_token).to eq("token2")+ expect(SiteSetting.chat_integration_slack_excerpt_length).to eq(300)++ expect(SiteSetting.chat_integration_slack_outbound_webhook_url).to eq(+ "https://hooks.slack.com/services/something",+ )++ expect(SiteSetting.chat_integration_slack_icon_url).to eq("http://outbound2.com")++ expect(SiteSetting.chat_integration_delay_seconds).to eq(100)+ expect(SiteSetting.chat_integration_discourse_username).to eq(User.last.username)+ expect(SiteSetting.chat_integration_slack_enabled).to eq(true)+ expect(SiteSetting.chat_integration_enabled).to eq(true)+ end++ describe "when slack_discourse_username is not valid" do+ before { SiteSetting.find_by(name: "slack_discourse_username").update!(value: "someguy") }++ it "should default to the system user" do+ described_class.new.execute_onceoff({})++ expect(SiteSetting.chat_integration_discourse_username).to eq(+ Discourse.system_user.username,+ )+ end+ end+ end++ describe "when a uncategorized filter is present" do+ before do+ PluginStoreRow.create!(+ plugin_name: "discourse-slack-official",+ key: "category_*",+ type_name: "JSON",+ value:+ "[{\"channel\":\"#channel1\",\"filter\":\"watch\"},{\"channel\":\"channel2\",\"filter\":\"follow\"},{\"channel\":\"#channel1\",\"filter\":\"mute\"}]",+ )+ end++ it "should create the right channels and rules" do+ described_class.new.execute_onceoff({})++ expect(DiscourseChatIntegration::Channel.count).to eq(2)+ expect(DiscourseChatIntegration::Rule.count).to eq(2)++ channel = DiscourseChatIntegration::Channel.first++ expect(channel.value["provider"]).to eq("slack")+ expect(channel.value["data"]["identifier"]).to eq("#channel1")++ rule = DiscourseChatIntegration::Rule.first++ expect(rule.value["channel_id"]).to eq(channel.id)+ expect(rule.value["filter"]).to eq("mute")+ expect(rule.value["category_id"]).to eq(nil)++ channel = DiscourseChatIntegration::Channel.last++ expect(channel.value["provider"]).to eq("slack")+ expect(channel.value["data"]["identifier"]).to eq("#channel2")++ rule = DiscourseChatIntegration::Rule.last++ expect(rule.value["channel_id"]).to eq(channel.id)+ expect(rule.value["filter"]).to eq("follow")+ expect(rule.value["category_id"]).to eq(nil)+ end+ end++ describe "when filter contains an invalid tag" do+ let(:tag) { Fabricate(:tag) }++ before do+ PluginStoreRow.create!(+ plugin_name: "discourse-slack-official",+ key: "category_#{category.id}",+ type_name: "JSON",+ value:+ "[{\"channel\":\"#slack-channel\",\"filter\":\"mute\",\"tags\":[\"#{tag.name}\",\"random-tag\"]}]",+ )+ end++ it "should discard invalid tags" do+ described_class.new.execute_onceoff({})++ rule = DiscourseChatIntegration::Rule.first++ expect(rule.value["tags"]).to eq([tag.name])+ end+ end++ describe "when a category filter is present" do+ before do+ PluginStoreRow.create!(+ plugin_name: "discourse-slack-official",+ key: "category_#{category.id}",+ type_name: "JSON",+ value: "[{\"channel\":\"#slack-channel\",\"filter\":\"mute\"}]",+ )+ end++ it "should migrate the settings correctly" do+ described_class.new.execute_onceoff({})++ channel = DiscourseChatIntegration::Channel.first++ expect(channel.value["provider"]).to eq("slack")+ expect(channel.value["data"]["identifier"]).to eq("#slack-channel")++ rule = DiscourseChatIntegration::Rule.first++ expect(rule.value["channel_id"]).to eq(channel.id)+ expect(rule.value["filter"]).to eq("mute")+ expect(rule.value["category_id"]).to eq(category.id)+ end+ end++ describe "when a category has been deleted" do+ before do+ PluginStoreRow.create!(+ plugin_name: "discourse-slack-official",+ key: "category_9999",+ type_name: "JSON",+ value: "[{\"channel\":\"#slack-channel\",\"filter\":\"mute\"}]",+ )+ end++ it "should not migrate the settings" do+ described_class.new.execute_onceoff({})++ expect(DiscourseChatIntegration::Channel.count).to eq(0)+ expect(DiscourseChatIntegration::Rule.count).to eq(0)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/jobs/regular/notify_chats_spec.rb b/plugins/discourse-chat-integration/spec/jobs/regular/notify_chats_spec.rbnew file mode 100644index 00000000000..bc3bc093d2a--- /dev/null+++ b/plugins/discourse-chat-integration/spec/jobs/regular/notify_chats_spec.rb@@ -0,0 +1,39 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe PostCreator do+ let(:topic) { Fabricate(:post).topic }++ before { Jobs::NotifyChats.jobs.clear }++ describe "when a post is created" do+ describe "when plugin is enabled" do+ before { SiteSetting.chat_integration_enabled = true }++ it "should schedule a chat notification job" do+ freeze_time Time.now.beginning_of_day++ post = PostCreator.new(topic.user, raw: "Some post content", topic_id: topic.id).create!++ job = Jobs::NotifyChats.jobs.last++ expect(job["at"]).to eq(+ Time.now.to_f + SiteSetting.chat_integration_delay_seconds.seconds.to_f,+ )++ expect(job["args"].first["post_id"]).to eq(post.id)+ end+ end++ describe "when plugin is not enabled" do+ before { SiteSetting.chat_integration_enabled = false }++ it "should not schedule a job for chat notifications" do+ PostCreator.new(topic.user, raw: "Some post content", topic_id: topic.id).create!++ expect(Jobs::NotifyChats.jobs).to eq([])+ end+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/chat_integration_reference_post_spec.rb b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/chat_integration_reference_post_spec.rbnew file mode 100644index 00000000000..8b27f583d7b--- /dev/null+++ b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/chat_integration_reference_post_spec.rb@@ -0,0 +1,130 @@+# frozen_string_literal: true++RSpec.describe DiscourseChatIntegration::ChatIntegrationReferencePost do+ fab!(:topic)+ fab!(:first_post) { Fabricate(:post, topic: topic) }+ let!(:context) do+ {+ "user" => Fabricate(:user),+ "topic" => topic,+ # every rule will add a kind and their context params+ }+ end++ describe "when creating when topic tags change" do+ before do+ context["kind"] = DiscourseAutomation::Triggers::TOPIC_TAGS_CHANGED+ context["added_tags"] = %w[tag1 tag2]+ context["removed_tags"] = %w[tag3 tag4]+ end++ it "creates a post with the correct .raw" do+ post =+ described_class.new(+ user: context["user"],+ topic: context["topic"],+ kind: context["kind"],+ context: {+ "added_tags" => context["added_tags"],+ "removed_tags" => context["removed_tags"],+ },+ )+ expect(post.raw).to eq("Added #tag1, #tag2 and removed #tag3, #tag4")+ end++ it "has a working .excerpt" do+ post =+ described_class.new(+ user: context["user"],+ topic: context["topic"],+ kind: context["kind"],+ context: {+ "added_tags" => context["added_tags"],+ "removed_tags" => context["removed_tags"],+ },+ )+ expect(post.excerpt).to eq("Added #tag1, #tag2 and removed #tag3, #tag4")+ end++ it "has a working .full_url" do+ post =+ described_class.new(+ user: context["user"],+ topic: context["topic"],+ kind: context["kind"],+ context: {+ "added_tags" => context["added_tags"],+ "removed_tags" => context["removed_tags"],+ },+ )+ expect(post.full_url).to eq(topic.posts.first.full_url)++ new_topic = Fabricate(:topic)+ post =+ described_class.new(+ user: context["user"],+ topic: new_topic,+ kind: context["kind"],+ context: {+ "added_tags" => context["added_tags"],+ "removed_tags" => context["removed_tags"],+ },+ )+ expect(post.full_url).to eq(new_topic.url)+ end++ it "has a working .is_first_post?" do+ post =+ described_class.new(+ user: context["user"],+ topic: context["topic"],+ kind: context["kind"],+ context: {+ "added_tags" => context["added_tags"],+ "removed_tags" => context["removed_tags"],+ },+ )+ expect(post.is_first_post?).to eq(false) # we had a post already++ new_topic = Fabricate(:topic)+ post =+ described_class.new(+ user: context["user"],+ topic: new_topic,+ kind: context["kind"],+ context: {+ "added_tags" => context["added_tags"],+ "removed_tags" => context["removed_tags"],+ },+ )+ expect(post.is_first_post?).to eq(true)+ end++ it "has a working .id" do+ new_topic = Fabricate(:topic)+ post =+ described_class.new(+ user: context["user"],+ topic: new_topic,+ kind: context["kind"],+ context: {+ "added_tags" => context["added_tags"],+ "removed_tags" => context["removed_tags"],+ },+ )+ expect(post.id).to eq(new_topic.id)++ post =+ described_class.new(+ user: context["user"],+ topic: context["topic"],+ kind: context["kind"],+ context: {+ "added_tags" => context["added_tags"],+ "removed_tags" => context["removed_tags"],+ },+ )+ expect(post.id).to eq(first_post.id)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/discord/discord_provider_spec.rb b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/discord/discord_provider_spec.rbnew file mode 100644index 00000000000..d50debcf6d5--- /dev/null+++ b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/discord/discord_provider_spec.rb@@ -0,0 +1,81 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe DiscourseChatIntegration::Provider::DiscordProvider do+ let(:post) { Fabricate(:post) }++ describe ".trigger_notifications" do+ before { SiteSetting.chat_integration_discord_enabled = true }++ let(:chan1) do+ DiscourseChatIntegration::Channel.create!(+ provider: "discord",+ data: {+ name: "Awesome Channel",+ webhook_url: "https://discord.com/api/webhooks/1234/abcd",+ },+ )+ end++ it "sends a webhook request" do+ stub1 =+ stub_request(:post, "https://discord.com/api/webhooks/1234/abcd?wait=true").to_return(+ status: 200,+ )+ described_class.trigger_notification(post, chan1, nil)+ expect(stub1).to have_been_requested.once+ end++ it "includes the protocol in the avatar URL" do+ stub1 =+ stub_request(:post, "https://discord.com/api/webhooks/1234/abcd?wait=true").with(+ body:+ hash_including(embeds: [hash_including(author: hash_including(url: %r{^https?://}))]),+ ).to_return(status: 200)+ described_class.trigger_notification(post, chan1, nil)+ expect(stub1).to have_been_requested.once+ end++ it "handles errors correctly" do+ stub1 =+ stub_request(:post, "https://discord.com/api/webhooks/1234/abcd?wait=true").to_return(+ status: 400,+ body: '{"message": "This is an error!", "code": 400}',+ )+ expect(stub1).to have_been_requested.times(0)+ expect { described_class.trigger_notification(post, chan1, nil) }.to raise_exception(+ ::DiscourseChatIntegration::ProviderError,+ )+ expect(stub1).to have_been_requested.once+ end++ it "handles posting to forum channels" do+ stub1 =+ stub_request(:post, "https://discord.com/api/webhooks/1234/abcd?wait=true")+ .with { |request| !JSON.parse(request.body)["thread_name"].present? }+ .to_return(status: 400, body: '{"message": "This is an error!", "code": 220001}')+ stub2 =+ stub_request(:post, "https://discord.com/api/webhooks/1234/abcd?wait=true")+ .with { |request| JSON.parse(request.body)["thread_name"].present? }+ .to_return(status: 200)+ described_class.trigger_notification(post, chan1, nil)+ expect(stub1).to have_been_requested.once+ expect(stub2).to have_been_requested.once+ end+ end++ describe ".get_channel_by_name" do+ it "returns the right channel" do+ expected =+ DiscourseChatIntegration::Channel.create!(+ provider: "discord",+ data: {+ name: "Awesome Channel",+ webhook_url: "https://discord.com/api/webhooks/1234/abcd",+ },+ )+ expect(described_class.get_channel_by_name("Awesome Channel")).to eq(expected)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/flowdock/flowdock_provider_spec.rb b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/flowdock/flowdock_provider_spec.rbnew file mode 100644index 00000000000..f19949d1782--- /dev/null+++ b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/flowdock/flowdock_provider_spec.rb@@ -0,0 +1,54 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe DiscourseChatIntegration::Provider::FlowdockProvider do+ let(:post) { Fabricate(:post) }++ describe ".trigger_notifications" do+ before { SiteSetting.chat_integration_flowdock_enabled = true }++ let(:chan1) do+ DiscourseChatIntegration::Channel.create!(+ provider: "flowdock",+ data: {+ flow_token: "5d1fe04cf66e078d6a2b579ddb8a465b",+ },+ )+ end++ it "sends a request" do+ stub1 = stub_request(:post, "https://api.flowdock.com/messages").to_return(status: 200)+ described_class.trigger_notification(post, chan1, nil)+ expect(stub1).to have_been_requested.once+ end++ it "handles errors correctly" do+ stub1 =+ stub_request(:post, "https://api.flowdock.com/messages").to_return(+ status: 404,+ body: "{ \"error\": \"Not Found\"}",+ )+ expect(stub1).to have_been_requested.times(0)+ expect { described_class.trigger_notification(post, chan1, nil) }.to raise_exception(+ ::DiscourseChatIntegration::ProviderError,+ )+ expect(stub1).to have_been_requested.once+ end+ end++ describe ".get_channel_by_name" do+ it "returns the right channel" do+ expected =+ DiscourseChatIntegration::Channel.create!(+ provider: "flowdock",+ data: {+ flow_token: "5d1fe04cf66e078d6a2b579ddb8a465b",+ },+ )+ expect(described_class.get_channel_by_name("5d1fe04cf66e078d6a2b579ddb8a465b")).to eq(+ expected,+ )+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/gitter/gitter_provider_spec.rb b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/gitter/gitter_provider_spec.rbnew file mode 100644index 00000000000..06bac81cb50--- /dev/null+++ b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/gitter/gitter_provider_spec.rb@@ -0,0 +1,54 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe DiscourseChatIntegration::Provider::GitterProvider do+ let(:post) { Fabricate(:post) }++ describe ".trigger_notifications" do+ before { SiteSetting.chat_integration_gitter_enabled = true }++ let(:chan1) do+ DiscourseChatIntegration::Channel.create!(+ provider: "gitter",+ data: {+ name: "gitterHQ/services",+ webhook_url: "https://webhooks.gitter.im/e/a1e2i3o4u5",+ },+ )+ end++ it "sends a webhook request" do+ stub1 = stub_request(:post, chan1.data["webhook_url"]).to_return(body: "OK")+ described_class.trigger_notification(post, chan1, nil)+ expect(stub1).to have_been_requested.once+ end++ it "handles errors correctly" do+ stub1 =+ stub_request(:post, chan1.data["webhook_url"]).to_return(+ status: 404,+ body: "{ \"error\": \"Not Found\"}",+ )+ expect(stub1).to have_been_requested.times(0)+ expect { described_class.trigger_notification(post, chan1, nil) }.to raise_exception(+ ::DiscourseChatIntegration::ProviderError,+ )+ expect(stub1).to have_been_requested.once+ end+ end++ describe ".get_channel_by_name" do+ it "returns the right channel" do+ expected =+ DiscourseChatIntegration::Channel.create!(+ provider: "gitter",+ data: {+ name: "gitterHQ/services",+ webhook_url: "https://webhooks.gitter.im/e/a1e2i3o4u5",+ },+ )+ expect(described_class.get_channel_by_name("gitterHQ/services")).to eq(expected)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/google/google_provider_spec.rb b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/google/google_provider_spec.rbnew file mode 100644index 00000000000..c06053ebcaa--- /dev/null+++ b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/google/google_provider_spec.rb@@ -0,0 +1,50 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe DiscourseChatIntegration::Provider::GoogleProvider do+ let(:post) { Fabricate(:post) }++ describe ".trigger_notifications" do+ before { SiteSetting.chat_integration_google_enabled = true }++ let(:chan1) do+ DiscourseChatIntegration::Channel.create!(+ provider: "google",+ data: {+ name: "discourse",+ webhook_url: "https://chat.googleapis.com/v1/abcdefg",+ },+ )+ end++ it "sends a webhook request" do+ stub1 = stub_request(:post, chan1.data["webhook_url"]).to_return(body: "1")+ described_class.trigger_notification(post, chan1, nil)+ expect(stub1).to have_been_requested.once+ end++ it "handles errors correctly" do+ stub1 = stub_request(:post, chan1.data["webhook_url"]).to_return(status: 400, body: "{}")+ expect(stub1).to have_been_requested.times(0)+ expect { described_class.trigger_notification(post, chan1, nil) }.to raise_exception(+ ::DiscourseChatIntegration::ProviderError,+ )+ expect(stub1).to have_been_requested.once+ end+ end++ describe ".get_channel_by_name" do+ it "returns the right channel" do+ expected =+ DiscourseChatIntegration::Channel.create!(+ provider: "google",+ data: {+ name: "discourse",+ webhook_url: "https://chat.googleapis.com/v1/abcdefg",+ },+ )+ expect(described_class.get_channel_by_name("discourse")).to eq(expected)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/groupme/groupme_provider_spec.rb b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/groupme/groupme_provider_spec.rbnew file mode 100644index 00000000000..0d827470509--- /dev/null+++ b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/groupme/groupme_provider_spec.rb@@ -0,0 +1,55 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe DiscourseChatIntegration::Provider::GroupmeProvider do+ let(:post) { Fabricate(:post) }++ describe ".trigger_notifications" do+ before do+ SiteSetting.chat_integration_groupme_enabled = true+ SiteSetting.chat_integration_groupme_bot_ids = "1a2b3c4d5e6f7g"+ end++ let(:chan1) do+ DiscourseChatIntegration::Channel.create!(+ provider: "groupme",+ data: {+ groupme_instance_name: "my instance",+ },+ )+ end++ it "sends a request" do+ stub1 = stub_request(:post, "https://api.groupme.com/v3/bots/post").to_return(status: 200)+ described_class.trigger_notification(post, chan1, nil)+ expect(stub1).to have_been_requested.once+ end++ it "handles errors correctly" do+ stub1 =+ stub_request(:post, "https://api.groupme.com/v3/bots/post").to_return(+ status: 404,+ body: "{ \"error\": \"Not Found\"}",+ )+ expect(stub1).to have_been_requested.times(0)+ expect { described_class.trigger_notification(post, chan1, nil) }.to raise_exception(+ ::DiscourseChatIntegration::ProviderError,+ )+ expect(stub1).to have_been_requested.once+ end+ end++ describe ".get_channel_by_name" do+ it "returns the right channel" do+ expected =+ DiscourseChatIntegration::Channel.create!(+ provider: "groupme",+ data: {+ groupme_instance_name: "my instance",+ },+ )+ expect(described_class.get_channel_by_name("my instance")).to eq(expected)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/guilded/guilded_provider_spec.rb b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/guilded/guilded_provider_spec.rbnew file mode 100644index 00000000000..9fa7b49f08d--- /dev/null+++ b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/guilded/guilded_provider_spec.rb@@ -0,0 +1,52 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe DiscourseChatIntegration::Provider::GuildedProvider do+ let(:post) { Fabricate(:post) }++ describe ".trigger_notifications" do+ before { SiteSetting.chat_integration_guilded_enabled = true }++ let(:chan1) do+ DiscourseChatIntegration::Channel.create!(+ provider: "guilded",+ data: {+ name: "Awesome Channel",+ webhook_url: "https://media.guilded.gg/webhooks/1234/abcd",+ },+ )+ end++ it "sends a webhook request" do+ stub1 =+ stub_request(:post, "https://media.guilded.gg/webhooks/1234/abcd").to_return(status: 200)+ described_class.trigger_notification(post, chan1, nil)+ expect(stub1).to have_been_requested.once+ end++ it "handles errors correctly" do+ stub1 =+ stub_request(:post, "https://media.guilded.gg/webhooks/1234/abcd").to_return(status: 400)+ expect(stub1).to have_been_requested.times(0)+ expect { described_class.trigger_notification(post, chan1, nil) }.to raise_exception(+ ::DiscourseChatIntegration::ProviderError,+ )+ expect(stub1).to have_been_requested.once+ end+ end++ describe ".get_channel_by_name" do+ it "returns the right channel" do+ expected =+ DiscourseChatIntegration::Channel.create!(+ provider: "guilded",+ data: {+ name: "Awesome Channel",+ webhook_url: "https://media.guilded.gg/webhooks/1234/abcd",+ },+ )+ expect(described_class.get_channel_by_name("Awesome Channel")).to eq(expected)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/matrix/matrix_provider_spec.rb b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/matrix/matrix_provider_spec.rbnew file mode 100644index 00000000000..0605ed49fc3--- /dev/null+++ b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/matrix/matrix_provider_spec.rb@@ -0,0 +1,61 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe DiscourseChatIntegration::Provider::MatrixProvider do+ let(:post) { Fabricate(:post) }++ describe ".trigger_notifications" do+ before do+ SiteSetting.chat_integration_matrix_enabled = true+ SiteSetting.chat_integration_matrix_access_token = "abcd"+ end++ let(:chan1) do+ DiscourseChatIntegration::Channel.create!(+ provider: "matrix",+ data: {+ name: "Awesome Channel",+ room_id: "!blah:matrix.org",+ },+ )+ end++ it "sends the message" do+ stub1 =+ stub_request(+ :put,+ %r{https://matrix.org/_matrix/client/r0/rooms/!blah:matrix.org/send/m.room.message/*},+ ).to_return(status: 200)+ described_class.trigger_notification(post, chan1, nil)+ expect(stub1).to have_been_requested.once+ end++ it "handles errors correctly" do+ stub1 =+ stub_request(+ :put,+ %r{https://matrix.org/_matrix/client/r0/rooms/!blah:matrix.org/send/m.room.message/*},+ ).to_return(status: 400, body: '{"errmsg":"M_UNKNOWN"}')+ expect(stub1).to have_been_requested.times(0)+ expect { described_class.trigger_notification(post, chan1, nil) }.to raise_exception(+ ::DiscourseChatIntegration::ProviderError,+ )+ expect(stub1).to have_been_requested.once+ end+ end++ describe ".get_channel_by_name" do+ it "returns the right channel" do+ expected =+ DiscourseChatIntegration::Channel.create!(+ provider: "matrix",+ data: {+ name: "Awesome Channel",+ room_id: "!blah:matrix.org",+ },+ )+ expect(described_class.get_channel_by_name("Awesome Channel")).to eq(expected)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/mattermost/mattermost_command_controller_spec.rb b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/mattermost/mattermost_command_controller_spec.rbnew file mode 100644index 00000000000..8ef25b37945--- /dev/null+++ b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/mattermost/mattermost_command_controller_spec.rb@@ -0,0 +1,135 @@+# frozen_string_literal: true++require "rails_helper"++describe "Mattermost Command Controller", type: :request do+ let(:category) { Fabricate(:category) }+ let(:tag) { Fabricate(:tag) }+ let(:tag2) { Fabricate(:tag) }+ let!(:chan1) do+ DiscourseChatIntegration::Channel.create!(+ provider: "mattermost",+ data: {+ identifier: "#welcome",+ },+ )+ end++ describe "with plugin disabled" do+ it "should return a 404" do+ post "/chat-integration/mattermost/command.json"+ expect(response.status).to eq(404)+ end+ end++ describe "with plugin enabled and provider disabled" do+ before do+ SiteSetting.chat_integration_enabled = true+ SiteSetting.chat_integration_mattermost_enabled = false+ end++ it "should return a 404" do+ post "/chat-integration/mattermost/command.json"+ expect(response.status).to eq(404)+ end+ end++ describe "slash commands endpoint" do+ before do+ SiteSetting.chat_integration_enabled = true+ SiteSetting.chat_integration_mattermost_webhook_url =+ "https://hooks.mattermost.com/services/abcde"+ SiteSetting.chat_integration_mattermost_enabled = true+ end++ describe "when forum is private" do+ it "should not redirect to login page" do+ SiteSetting.login_required = true+ token = "sometoken"+ SiteSetting.chat_integration_mattermost_incoming_webhook_token = token++ post "/chat-integration/mattermost/command.json", params: { text: "help", token: token }++ expect(response.status).to eq(200)+ end+ end++ describe "when the token is invalid" do+ it "should raise the right error" do+ post "/chat-integration/mattermost/command.json", params: { text: "help" }+ expect(response.status).to eq(400)+ end+ end++ describe "when incoming webhook token has not been set" do+ it "should raise the right error" do+ post "/chat-integration/mattermost/command.json",+ params: {+ text: "help",+ token: "some token",+ }++ expect(response.status).to eq(403)+ end+ end++ describe "when token is valid" do+ let(:token) { "Secret Sauce" }++ # No need to test every single command here, that's tested+ # by helper_spec upstream++ before { SiteSetting.chat_integration_mattermost_incoming_webhook_token = token }++ describe "add new rule" do+ it "should add a new rule correctly" do+ post "/chat-integration/mattermost/command.json",+ params: {+ text: "watch #{category.slug}",+ channel_name: "welcome",+ token: token,+ }++ json = response.parsed_body++ expect(json["text"]).to eq(I18n.t("chat_integration.provider.mattermost.create.created"))++ rule = DiscourseChatIntegration::Rule.all.first+ expect(rule.channel).to eq(chan1)+ expect(rule.filter).to eq("watch")+ expect(rule.category_id).to eq(category.id)+ expect(rule.tags).to eq(nil)+ end++ describe "from an unknown channel" do+ it "creates the channel" do+ post "/chat-integration/mattermost/command.json",+ params: {+ text: "watch #{category.slug}",+ channel_name: "general",+ token: token,+ }++ json = response.parsed_body++ expect(json["text"]).to eq(+ I18n.t("chat_integration.provider.mattermost.create.created"),+ )++ chan =+ DiscourseChatIntegration::Channel+ .with_provider("mattermost")+ .with_data_value("identifier", "#general")+ .first+ expect(chan.provider).to eq("mattermost")++ rule = chan.rules.first+ expect(rule.filter).to eq("watch")+ expect(rule.category_id).to eq(category.id)+ expect(rule.tags).to eq(nil)+ end+ end+ end+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/mattermost/mattermost_provider_spec.rb b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/mattermost/mattermost_provider_spec.rbnew file mode 100644index 00000000000..425fcee6a3e--- /dev/null+++ b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/mattermost/mattermost_provider_spec.rb@@ -0,0 +1,73 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe DiscourseChatIntegration::Provider::MattermostProvider do+ let(:post) { Fabricate(:post) }++ describe ".trigger_notifications" do+ let(:upload) { Fabricate(:upload) }++ before do+ SiteSetting.chat_integration_mattermost_enabled = true+ SiteSetting.chat_integration_mattermost_webhook_url = "https://mattermost.blah/hook/abcd"+ SiteSetting.logo_small = upload+ end++ let(:chan1) do+ DiscourseChatIntegration::Channel.create!(+ provider: "mattermost",+ data: {+ identifier: "#awesomechannel",+ },+ )+ end++ it "sends a webhook request" do+ stub1 = stub_request(:post, "https://mattermost.blah/hook/abcd").to_return(status: 200)+ described_class.trigger_notification(post, chan1, nil)+ expect(stub1).to have_been_requested.once+ end++ describe "when mattermost icon is not configured" do+ it "defaults to the right icon" do+ message = described_class.mattermost_message(post, chan1)+ expect(message[:icon_url]).to eq(UrlHelper.absolute(upload.url))+ end+ end++ describe "when mattermost icon has been configured" do+ it "should use the right icon" do+ SiteSetting.chat_integration_mattermost_icon_url = "https://specific_logo"+ message = described_class.mattermost_message(post, chan1)+ expect(message[:icon_url]).to eq(SiteSetting.chat_integration_mattermost_icon_url)+ end+ end++ it "handles errors correctly" do+ stub1 =+ stub_request(:post, "https://mattermost.blah/hook/abcd").to_return(+ status: 500,+ body: "error",+ )+ expect(stub1).to have_been_requested.times(0)+ expect { described_class.trigger_notification(post, chan1, nil) }.to raise_exception(+ ::DiscourseChatIntegration::ProviderError,+ )+ expect(stub1).to have_been_requested.once+ end+ end++ describe ".get_channel_by_name" do+ it "returns the right channel" do+ expected =+ DiscourseChatIntegration::Channel.create!(+ provider: "mattermost",+ data: {+ identifier: "#awesomechannel",+ },+ )+ expect(described_class.get_channel_by_name("#awesomechannel")).to eq(expected)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/powerautomate/powerautomate_provider_spec.rb b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/powerautomate/powerautomate_provider_spec.rbnew file mode 100644index 00000000000..b5c9e56837c--- /dev/null+++ b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/powerautomate/powerautomate_provider_spec.rb@@ -0,0 +1,52 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe DiscourseChatIntegration::Provider::PowerAutomateProvider do+ let(:post) { Fabricate(:post) }++ describe ".trigger_notifications" do+ before { SiteSetting.chat_integration_powerautomate_enabled = true }++ let(:chan1) do+ DiscourseChatIntegration::Channel.create!(+ provider: "powerautomate",+ data: {+ name: "discourse",+ webhook_url:+ "https://prod-189.westus.logic.azure.com:443/workflows/c94b462906e64fe8a7299043706be96e/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=-cmkg1oG-88dP3Yqdh62yTG1LUtJFcB91rQisorfw_w",+ },+ )+ end++ it "sends a webhook request" do+ stub1 = stub_request(:post, chan1.data["webhook_url"]).to_return(body: "1")+ described_class.trigger_notification(post, chan1, nil)+ expect(stub1).to have_been_requested.once+ end++ it "handles errors correctly" do+ stub1 = stub_request(:post, chan1.data["webhook_url"]).to_return(status: 400, body: "{}")+ expect(stub1).to have_been_requested.times(0)+ expect { described_class.trigger_notification(post, chan1, nil) }.to raise_exception(+ ::DiscourseChatIntegration::ProviderError,+ )+ expect(stub1).to have_been_requested.once+ end+ end++ describe ".get_channel_by_name" do+ it "returns the right channel" do+ expected =+ DiscourseChatIntegration::Channel.create!(+ provider: "powerautomate",+ data: {+ name: "discourse",+ webhook_url:+ "https://prod-189.westus.logic.azure.com:443/workflows/c94b462906e64fe8a7299043706be96e/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=-cmkg1oG-88dP3Yqdh62yTG1LUtJFcB91rQisorfw_w",+ },+ )+ expect(described_class.get_channel_by_name("discourse")).to eq(expected)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/rocketchat/rocketchat_provider_spec.rb b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/rocketchat/rocketchat_provider_spec.rbnew file mode 100644index 00000000000..73585dd5aec--- /dev/null+++ b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/rocketchat/rocketchat_provider_spec.rb@@ -0,0 +1,51 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe DiscourseChatIntegration::Provider::RocketchatProvider do+ let(:post) { Fabricate(:post) }++ describe ".trigger_notifications" do+ before do+ SiteSetting.chat_integration_rocketchat_enabled = true+ SiteSetting.chat_integration_rocketchat_webhook_url = "https://example.com/abcd"+ end++ let(:chan1) do+ DiscourseChatIntegration::Channel.create!(+ provider: "rocketchat",+ data: {+ identifier: "#general",+ },+ )+ end++ it "sends a webhook request" do+ stub1 = stub_request(:post, "https://example.com/abcd").to_return(body: "{\"success\":true}")+ described_class.trigger_notification(post, chan1, nil)+ expect(stub1).to have_been_requested.once+ end++ it "handles errors correctly" do+ stub1 = stub_request(:post, "https://example.com/abcd").to_return(status: 400, body: "{}")+ expect(stub1).to have_been_requested.times(0)+ expect { described_class.trigger_notification(post, chan1, nil) }.to raise_exception(+ ::DiscourseChatIntegration::ProviderError,+ )+ expect(stub1).to have_been_requested.once+ end+ end++ describe ".get_channel_by_name" do+ it "returns the right channel" do+ expected =+ DiscourseChatIntegration::Channel.create!(+ provider: "rocketchat",+ data: {+ identifier: "#general",+ },+ )+ expect(described_class.get_channel_by_name("#general")).to eq(expected)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/slack/slack_command_controller_spec.rb b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/slack/slack_command_controller_spec.rbnew file mode 100644index 00000000000..18ddec66764--- /dev/null+++ b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/slack/slack_command_controller_spec.rb@@ -0,0 +1,414 @@+# frozen_string_literal: true++require "rails_helper"++describe "Slack Command Controller", type: :request do+ before { Discourse.cache.clear }++ let(:category) { Fabricate(:category) }+ let(:tag) { Fabricate(:tag) }+ let(:tag2) { Fabricate(:tag) }+ let!(:chan1) do+ DiscourseChatIntegration::Channel.create!(provider: "slack", data: { identifier: "#welcome" })+ end++ describe "with plugin disabled" do+ it "should return a 404" do+ post "/chat-integration/slack/command.json"+ expect(response.status).to eq(404)+ end+ end++ describe "with plugin enabled and provider disabled" do+ before do+ SiteSetting.chat_integration_enabled = true+ SiteSetting.chat_integration_slack_enabled = false+ end++ it "should return a 404" do+ post "/chat-integration/slack/command.json"+ expect(response.status).to eq(404)+ end+ end++ describe "slash commands endpoint" do+ before do+ SiteSetting.chat_integration_enabled = true+ SiteSetting.chat_integration_slack_outbound_webhook_url =+ "https://hooks.slack.com/services/abcde"+ SiteSetting.chat_integration_slack_enabled = true+ end++ describe "when forum is private" do+ it "should not redirect to login page" do+ SiteSetting.login_required = true+ token = "sometoken"+ SiteSetting.chat_integration_slack_incoming_webhook_token = token++ post "/chat-integration/slack/command.json", params: { text: "help", token: token }++ expect(response.status).to eq(200)+ end+ end++ describe "when the token is invalid" do+ it "should raise the right error" do+ post "/chat-integration/slack/command.json", params: { text: "help" }+ expect(response.status).to eq(400)+ end+ end++ describe "backwards compatibility with discourse-slack-official" do+ it "should return the right response" do+ token = "secret sauce"+ SiteSetting.chat_integration_slack_incoming_webhook_token = token++ post "/slack/command.json", params: { text: "help", token: token }++ expect(response.status).to eq(200)+ expect(response.parsed_body["text"]).to be_present+ end+ end++ describe "when incoming webhook token has not been set" do+ it "should raise the right error" do+ post "/chat-integration/slack/command.json", params: { text: "help", token: "some token" }++ expect(response.status).to eq(403)+ end+ end++ describe "when token is valid" do+ let(:token) { "Secret Sauce" }++ # No need to test every single command here, that's tested+ # by helper_spec upstream++ before { SiteSetting.chat_integration_slack_incoming_webhook_token = token }++ describe "add new rule" do+ it "should add a new rule correctly" do+ post "/chat-integration/slack/command.json",+ params: {+ text: "watch #{category.slug}",+ channel_name: "welcome",+ token: token,+ }++ json = response.parsed_body++ expect(json["text"]).to eq(I18n.t("chat_integration.provider.slack.create.created"))++ rule = DiscourseChatIntegration::Rule.all.first+ expect(rule.channel).to eq(chan1)+ expect(rule.filter).to eq("watch")+ expect(rule.category_id).to eq(category.id)+ expect(rule.tags).to eq(nil)+ end++ describe "from an unknown channel" do+ it "creates the channel" do+ post "/chat-integration/slack/command.json",+ params: {+ text: "watch #{category.slug}",+ channel_name: "general",+ token: token,+ }++ json = response.parsed_body++ expect(json["text"]).to eq(I18n.t("chat_integration.provider.slack.create.created"))++ chan =+ DiscourseChatIntegration::Channel+ .with_provider("slack")+ .with_data_value("identifier", "#general")+ .first+ expect(chan.provider).to eq("slack")++ rule = chan.rules.first+ expect(rule.filter).to eq("watch")+ expect(rule.category_id).to eq(category.id)+ expect(rule.tags).to eq(nil)+ end+ end+ end++ describe "post transcript" do+ let(:messages_fixture) do+ [+ {+ type: "message",+ user: "U6JSSESES",+ text: "Yeah, should make posting slack transcripts much easier",+ ts: "1501801665.062694",+ },+ {+ type: "message",+ user: "U5Z773QLS",+ text: "Oooh a new discourse plugin???",+ ts: "1501801643.056375",+ },+ { type: "message", user: "U6E2W7R8C", text: "Which one?", ts: "1501801634.053761" },+ {+ type: "message",+ user: "U6JSSESES",+ text:+ "So, who's interested in the new <https://meta.discourse.org|discourse plugin>?",+ ts: "1501801629.052212",+ },+ {+ text: "",+ username: "Test Community",+ bot_id: "B6C6JNUDN",+ attachments: [+ {+ author_name: "@david",+ fallback: "Discourse can now be integrated with Mattermost! - @david",+ text: "Hey <http://localhost/groups/team|@team>, what do you think about this?",+ title: "Discourse can now be integrated with Mattermost! [Announcements] ",+ id: 1,+ title_link:+ "http://localhost:3000/t/discourse-can-now-be-integrated-with-mattermost/51/4",+ color: "283890",+ mrkdwn_in: ["text"],+ },+ ],+ type: "message",+ subtype: "bot_message",+ ts: "1501615820.949638",+ },+ {+ type: "message",+ user: "U5Z773QLS",+ text: "Let’s try some *bold text*",+ ts: "1501093331.439776",+ },+ ]+ end++ before { SiteSetting.chat_integration_slack_access_token = "abcde" }++ context "with valid slack responses" do+ before do+ stub_request(:post, "https://slack.com/api/users.list").to_return(+ body:+ '{"ok":true,"members":[{"id":"U5Z773QLS","profile":{"display_name":"david","real_name":"david","icon_24":"https://example.com/avatar"}}],"response_metadata":{"next_cursor":""}}',+ )+ stub_request(:post, "https://slack.com/api/conversations.history").to_return(+ body: { ok: true, messages: messages_fixture }.to_json,+ )+ end++ it "generates the transcript UI properly" do+ command_stub =+ stub_request(:post, "https://slack.com/commands/1234").with(+ body: /attachments/,+ ).to_return(body: { ok: true }.to_json)++ post "/chat-integration/slack/command.json",+ params: {+ text: "post",+ response_url: "https://hooks.slack.com/commands/1234",+ channel_name: "general",+ channel_id: "C6029G78F",+ token: token,+ }++ expect(command_stub).to have_been_requested+ end++ it "can select by url" do+ command_stub =+ stub_request(:post, "https://slack.com/commands/1234").with(+ body: /1501801629\.052212/,+ ).to_return(body: { ok: true }.to_json)++ post "/chat-integration/slack/command.json",+ params: {+ text:+ "post https://sometestslack.slack.com/archives/C6029G78F/p1501801629052212",+ response_url: "https://hooks.slack.com/commands/1234",+ channel_name: "general",+ channel_id: "C6029G78F",+ token: token,+ }++ expect(command_stub).to have_been_requested+ end++ it "can select by url with thread parameter" do+ replies_stub =+ stub_request(:post, "https://slack.com/api/conversations.replies").with(+ body: /1501801629\.052212/,+ ).to_return(body: { ok: true, messages: messages_fixture }.to_json)++ command_stub =+ stub_request(:post, "https://slack.com/commands/1234").to_return(+ body: { ok: true }.to_json,+ )++ post "/chat-integration/slack/command.json",+ params: {+ text:+ "post https://sometestslack.slack.com/archives/C6029G78F/p1501201669054212?thread_ts=1501801629.052212",+ response_url: "https://hooks.slack.com/commands/1234",+ channel_name: "general",+ channel_id: "C6029G78F",+ token: token,+ }++ expect(command_stub).to have_been_requested+ expect(replies_stub).to have_been_requested+ end++ it "can select by thread" do+ replies_stub =+ stub_request(:post, "https://slack.com/api/conversations.replies").with(+ body: /1501801629\.052212/,+ ).to_return(body: { ok: true, messages: messages_fixture }.to_json)++ command_stub =+ stub_request(:post, "https://slack.com/commands/1234").to_return(+ body: { ok: true }.to_json,+ )++ post "/chat-integration/slack/command.json",+ params: {+ text:+ "post thread https://sometestslack.slack.com/archives/C6029G78F/p1501801629052212",+ response_url: "https://hooks.slack.com/commands/1234",+ channel_name: "general",+ channel_id: "C6029G78F",+ token: token,+ }++ expect(command_stub).to have_been_requested+ expect(replies_stub).to have_been_requested+ end++ it "can select by count" do+ command_stub =+ stub_request(:post, "https://slack.com/commands/1234").with(+ body: /1501801629\.052212/,+ ).to_return(body: { ok: true }.to_json)++ post "/chat-integration/slack/command.json",+ params: {+ text: "post 4",+ response_url: "https://hooks.slack.com/commands/1234",+ channel_name: "general",+ channel_id: "C6029G78F",+ token: token,+ }++ expect(command_stub).to have_been_requested+ end++ it "can auto select" do+ command_stub =+ stub_request(:post, "https://slack.com/commands/1234").with(+ body: /1501615820\.949638/,+ ).to_return(body: { ok: true }.to_json)++ post "/chat-integration/slack/command.json",+ params: {+ text: "post",+ response_url: "https://hooks.slack.com/commands/1234",+ channel_name: "general",+ channel_id: "C6029G78F",+ token: token,+ }++ expect(command_stub).to have_been_requested+ end++ it "supports using shortcuts to create a thread transcript" do+ replies_stub =+ stub_request(:post, "https://slack.com/api/conversations.replies").with(+ body: /1501801629\.052212/,+ ).to_return(body: { ok: true, messages: messages_fixture }.to_json)++ view_open_stub =+ stub_request(:post, "https://slack.com/api/views.open").with(+ body: /TRIGGERID/,+ ).to_return(body: { ok: true, view: { id: "VIEWID" } }.to_json)++ view_update_stub =+ stub_request(:post, "https://slack.com/api/views.update").with(+ body: /VIEWID/,+ ).to_return(body: { ok: true }.to_json)++ post "/chat-integration/slack/interactive.json",+ params: {+ payload: {+ type: "message_action",+ channel: {+ name: "general",+ id: "C6029G78F",+ },+ trigger_id: "TRIGGERID",+ message: {+ thread_ts: "1501801629.052212",+ },+ token: token,+ }.to_json,+ }++ expect(response.status).to eq(200)++ expect(view_open_stub).to have_been_requested+ expect(view_update_stub).to have_been_requested+ end+ end++ it "deals with failed API calls correctly" do+ command_stub =+ stub_request(:post, "https://slack.com/commands/1234").with(+ body: {+ text: I18n.t("chat_integration.provider.slack.transcript.error_users"),+ },+ ).to_return(body: { ok: true }.to_json)++ stub_request(:post, "https://slack.com/api/users.list").to_return(status: 403)++ post "/chat-integration/slack/command.json",+ params: {+ text: "post 2",+ response_url: "https://hooks.slack.com/commands/1234",+ channel_name: "general",+ channel_id: "C6029G78F",+ token: token,+ }++ json = response.parsed_body++ expect(json["text"]).to include(+ I18n.t("chat_integration.provider.slack.transcript.loading"),+ )++ expect(command_stub).to have_been_requested+ end++ it "errors correctly if there is no api key" do+ SiteSetting.chat_integration_slack_access_token = ""++ post "/chat-integration/slack/command.json",+ params: {+ text: "post 2",+ response_url: "https://hooks.slack.com/commands/1234",+ channel_name: "general",+ channel_id: "C6029G78F",+ token: token,+ }++ json = response.parsed_body++ expect(json["text"]).to include(+ I18n.t("chat_integration.provider.slack.transcript.api_required"),+ )+ end+ end+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/slack/slack_message_formatter_spec.rb b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/slack/slack_message_formatter_spec.rbnew file mode 100644index 00000000000..755449a6a58--- /dev/null+++ b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/slack/slack_message_formatter_spec.rb@@ -0,0 +1,33 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe DiscourseChatIntegration::Provider::SlackProvider::SlackMessageFormatter do+ describe ".format" do+ context "with links" do+ it "should return the right message" do+ expect(described_class.format("<a href='http://somepath.com'>test</a>")).to eq(+ "<http://somepath.com|test>",+ )+ end++ describe "when text contains a link with an incomplete URL" do+ it "should return the right message" do+ expect(described_class.format("test <a href='//localhost:3000/some/path'></a>")).to eq(+ "test <http://localhost:3000/some/path|>",+ )++ SiteSetting.force_https = true++ expect(described_class.format("test <a href='//localhost:3000/some/path'></a>")).to eq(+ "test <https://localhost:3000/some/path|>",+ )+ end+ end++ it "should not raise an error with unparseable urls" do+ expect(described_class.format("<a>test</a>")).to eq("<test.localhost|test>")+ end+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/slack/slack_provider_spec.rb b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/slack/slack_provider_spec.rbnew file mode 100644index 00000000000..d3c8a97a00e--- /dev/null+++ b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/slack/slack_provider_spec.rb@@ -0,0 +1,362 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe DiscourseChatIntegration::Provider::SlackProvider do+ let(:post) { Fabricate(:post) }++ describe ".excerpt" do+ describe "when post contains emoijs" do+ before { post.update!(raw: ":slight_smile: This is a test") }++ it "should return the right excerpt" do+ expect(described_class.excerpt(post)).to eq("🙂 This is a test")+ end+ end++ describe "when post contains onebox" do+ it "should return the right excerpt" do+ post.update!(cooked: <<~COOKED)+ <aside class=\"onebox whitelistedgeneric\">+ <header class=\"source\">+ <a href=\"http://somesource.com\">+ meta.discourse.org+ </a>+ </header>++ <article class=\"onebox-body\">+ <img src=\"http://somesource.com\" width=\"\" height=\"\" class=\"thumbnail\">++ <h3>+ <a href=\"http://somesource.com\">+ Some text+ </a>+ </h3>++ <p>+ some text+ </p>++ </article>++ <div class=\"onebox-metadata\">\n \n \n</div>+ <div style=\"clear: both\"></div>+ </aside>+ COOKED++ expect(described_class.excerpt(post)).to eq("<http://somesource.com|meta.discourse.org>")+ end+ end++ describe "when post contains an email" do+ it "should return the right excerpt" do+ post.update!(cooked: <<~COOKED)+ The address is <a href=\"mailto:[email protected]\">my email</a>+ COOKED++ expect(described_class.excerpt(post)).to eq(+ "The address is <mailto:[email protected]|my email>",+ )+ end+ end+ end++ describe ".trigger_notifications" do+ before do+ SiteSetting.chat_integration_slack_outbound_webhook_url =+ "https://hooks.slack.com/services/abcde"+ SiteSetting.chat_integration_slack_enabled = true+ end++ let(:chan1) do+ DiscourseChatIntegration::Channel.create!(provider: "slack", data: { identifier: "#general" })+ end++ it "sends a webhook request" do+ stub1 =+ stub_request(:post, SiteSetting.chat_integration_slack_outbound_webhook_url).to_return(+ body: "success",+ )+ described_class.trigger_notification(post, chan1, nil)+ expect(stub1).to have_been_requested.once+ end++ it "handles errors correctly" do+ stub1 =+ stub_request(:post, SiteSetting.chat_integration_slack_outbound_webhook_url).to_return(+ status: 400,+ body: "error",+ )+ expect(stub1).to have_been_requested.times(0)+ expect { described_class.trigger_notification(post, chan1, nil) }.to raise_exception(+ ::DiscourseChatIntegration::ProviderError,+ )+ expect(stub1).to have_been_requested.once+ end++ describe "with api token" do+ before do+ SiteSetting.chat_integration_slack_access_token = "magic"+ @ts = "#{Time.now.to_i}.012345"+ @ts2 = "#{Time.now.to_i}.012346"+ @ts3 = "#{Time.now.to_i}.0123467"+ @stub1 =+ stub_request(:post, SiteSetting.chat_integration_slack_outbound_webhook_url).to_return(+ body: "success",+ )+ @stub2 =+ stub_request(:post, %r{https://slack.com/api/chat.postMessage}).to_return(+ body:+ "{\"ok\":true, \"ts\": \"#{@ts}\", \"message\": {\"attachments\": [], \"username\":\"blah\", \"text\":\"blah2\"} }",+ headers: {+ "Content-Type" => "application/json",+ },+ )+ @thread_stub =+ stub_request(:post, %r{https://slack.com/api/chat.postMessage}).with(+ body: hash_including("thread_ts" => @ts),+ ).to_return(+ body:+ "{\"ok\":true, \"ts\": \"#{@ts}\", \"message\": {\"attachments\": [], \"username\":\"blah\", \"text\":\"blah2\", \"thread_ts\":\"#{@ts}\"} }",+ headers: {+ "Content-Type" => "application/json",+ },+ )+ @thread_stub2 =+ stub_request(:post, %r{https://slack.com/api/chat.postMessage}).with(+ body: hash_including("thread_ts" => @ts),+ ).to_return(+ body:+ "{\"ok\":true, \"ts\": \"#{@ts3}\", \"message\": {\"attachments\": [], \"username\":\"blah\", \"text\":\"blah2\", \"thread_ts\":\"#{@ts}\"} }",+ headers: {+ "Content-Type" => "application/json",+ },+ )+ end++ it "sends an api request" do+ expect(@stub2).to have_been_requested.times(0)+ expect(@thread_stub).to have_been_requested.times(0)++ described_class.trigger_notification(post, chan1, nil)+ expect(@stub1).to have_been_requested.times(0)+ expect(@stub2).to have_been_requested.once+ expect(described_class.get_slack_thread_ts(post.topic, chan1.data["identifier"])).to eq(@ts)+ expect(@thread_stub).to have_been_requested.times(0)+ end++ it "sends thread id for thread" do+ expect(@thread_stub).to have_been_requested.times(0)++ rule = DiscourseChatIntegration::Rule.create(channel: chan1, filter: "thread")+ described_class.set_slack_thread_ts(post.topic, chan1.data["identifier"], @ts)++ described_class.trigger_notification(post, chan1, rule)+ expect(@thread_stub).to have_been_requested.once+ end++ it "tracks threading in different channels separately" do+ expect(@thread_stub).to have_been_requested.times(0)+ chan2 =+ DiscourseChatIntegration::Channel.create(+ provider: "dummy2",+ data: {+ "identifier" => "#random",+ },+ )++ rule = DiscourseChatIntegration::Rule.create(channel: chan1, filter: "thread")+ rule2 = DiscourseChatIntegration::Rule.create(channel: chan2, filter: "thread")+ described_class.set_slack_thread_ts(post.topic, chan1.data["identifier"], @ts)+ described_class.set_slack_thread_ts(post.topic, chan2.data["identifier"], @ts2)++ described_class.trigger_notification(post, chan1, rule)+ described_class.trigger_notification(post, chan2, rule2)+ expect(@thread_stub).to have_been_requested.once+ expect(@thread_stub2).to have_been_requested.once++ post.topic.reload+ expect(described_class.get_slack_thread_ts(post.topic, "#general")).to eq(@ts)+ expect(described_class.get_slack_thread_ts(post.topic, "#random")).to eq(@ts)+ end++ it "recognizes slack thread ts in comment" do+ post.update!(cooked: "cooked", raw: <<~RAW)+ My fingers are typing words that improve `raw_quality`+ <!--SLACK_CHANNEL_ID=#general;SLACK_TS=#{@ts}-->+ RAW++ rule = DiscourseChatIntegration::Rule.create(channel: chan1, filter: "thread")++ described_class.trigger_notification(post, chan1, rule)+ expect(described_class.get_slack_thread_ts(post.topic, chan1.data["identifier"])).to eq(@ts)++ expect(@thread_stub).to have_been_requested.times(1)+ end++ it "handles errors correctly" do+ @stub2 =+ stub_request(:post, %r{https://slack.com/api/chat.postMessage}).to_return(+ body: "{\"ok\":false }",+ headers: {+ "Content-Type" => "application/json",+ },+ )+ expect { described_class.trigger_notification(post, chan1, nil) }.to raise_exception(+ ::DiscourseChatIntegration::ProviderError,+ )+ expect(@stub2).to have_been_requested.once+ end+ end+ end++ describe ".create_slack_message" do+ it "should work with a simple message" do+ content = "Simple message"+ url = "http://example.com"+ message = { channel: "#general", username: "Discourse", content: "#{content} - #{url}" }+ result =+ described_class.create_slack_message(+ context: {+ },+ content: content,+ channel_name: "general",+ url: url,+ )+ expect(+ {+ channel: result[:channel],+ username: result[:username],+ content: result[:attachments][0][:text],+ },+ ).to eq(message)+ end++ it "should do the replacements" do+ topic = Fabricate(:topic)+ topic.posts << Fabricate(:post, topic: topic)+ tag1, tag2, tag3, tag4 = [Fabricate(:tag), Fabricate(:tag), Fabricate(:tag), Fabricate(:tag)]+ content =+ "The topic title is: ${TOPIC}+ removed tags: ${REMOVED_TAGS}+ added tags: ${ADDED_TAGS}"++ result =+ described_class.create_slack_message(+ context: {+ "topic" => topic,+ "removed_tags" => [tag1.name, tag2.name],+ "added_tags" => [tag3.name, tag4.name],+ "kind" => DiscourseAutomation::Triggers::TOPIC_TAGS_CHANGED,+ },+ content: content,+ channel_name: "general",+ url: "http://example.com",+ )+ text = result[:attachments][0][:text]+ expect(text).to include(topic.title)+ expect(text).to include("<#{tag1.full_url}|#{tag1.name}>, <#{tag2.full_url}|#{tag2.name}>")+ expect(text).to include("<#{tag3.full_url}|#{tag3.name}>, <#{tag4.full_url}|#{tag4.name}>")+ end++ it "should do the replacements for ${ADDED_AND_REMOVED}" do+ topic = Fabricate(:topic)+ topic.posts << Fabricate(:post, topic: topic)+ tag1, tag2 = [Fabricate(:tag), Fabricate(:tag)]+ content = "${ADDED_AND_REMOVED}"+ result =+ described_class.create_slack_message(+ context: {+ "topic" => topic,+ "added_tags" => [tag2.name],+ "removed_tags" => [tag1.name],+ "kind" => DiscourseAutomation::Triggers::TOPIC_TAGS_CHANGED,+ },+ content: content,+ channel_name: "general",+ url: "http://example.com",+ )+ text = result[:attachments][0][:text]+ expect(text).to include(+ I18n.t(+ "chat_integration.provider.slack.messaging.topic_tag_changed.added_and_removed",+ added: "<#{tag2.full_url}|#{tag2.name}>",+ removed: "<#{tag1.full_url}|#{tag1.name}>",+ ),+ )++ result =+ described_class.create_slack_message(+ context: {+ "topic" => topic,+ "added_tags" => [],+ "removed_tags" => [tag1.name],+ "kind" => DiscourseAutomation::Triggers::TOPIC_TAGS_CHANGED,+ },+ content: content,+ channel_name: "general",+ url: "http://example.com",+ )+ text = result[:attachments][0][:text]+ expect(text).to include(+ I18n.t(+ "chat_integration.provider.slack.messaging.topic_tag_changed.removed",+ removed: "<#{tag1.full_url}|#{tag1.name}>",+ ),+ )++ result =+ described_class.create_slack_message(+ context: {+ "topic" => topic,+ "added_tags" => [tag2.name],+ "removed_tags" => [],+ "kind" => DiscourseAutomation::Triggers::TOPIC_TAGS_CHANGED,+ },+ content: content,+ channel_name: "general",+ url: "http://example.com",+ )+ text = result[:attachments][0][:text]+ expect(text).to include(+ I18n.t(+ "chat_integration.provider.slack.messaging.topic_tag_changed.added",+ added: "<#{tag2.full_url}|#{tag2.name}>",+ ),+ )+ end++ it "should raise errors if tags are not present but uses in content" do+ topic = Fabricate(:topic)+ topic.posts << Fabricate(:post, topic: topic)+ content = "This should not work ${ADDED_TAGS}"++ expect {+ described_class.create_slack_message(+ context: {+ "topic" => topic,+ "kind" => DiscourseAutomation::Triggers::TOPIC_TAGS_CHANGED,+ "added_tags" => [],+ "removed_tags" => [],+ },+ content: content,+ channel_name: "general",+ url: "http://example.com",+ )+ }.to raise_error(StandardError)+ end+ end++ describe ".get_channel_by_name" do+ it "returns the right channel" do+ expected =+ DiscourseChatIntegration::Channel.create!(+ provider: "slack",+ data: {+ identifier: "#general",+ },+ )+ expect(described_class.get_channel_by_name("#general")).to eq(expected)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/slack/slack_transcript_spec.rb b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/slack/slack_transcript_spec.rbnew file mode 100644index 00000000000..62cbe1bba17--- /dev/null+++ b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/slack/slack_transcript_spec.rb@@ -0,0 +1,496 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe DiscourseChatIntegration::Provider::SlackProvider::SlackTranscript do+ before { Discourse.cache.clear }++ let(:messages_fixture) do+ [+ {+ type: "message",+ user: "U6JSSESES",+ text: "Yeah, should make posting slack transcripts much easier",+ ts: "1501801665.062694",+ },+ {+ type: "message",+ user: "U5Z773QLZ",+ text: "Oooh a new discourse plugin <@U5Z773QLS> ???",+ ts: "1501801643.056375",+ },+ { type: "message", user: "U6E2W7R8C", text: "Which one?", ts: "1501801635.053761" },+ {+ type: "message",+ user: "U6JSSESES",+ text: "So, who's interested in the new <https://meta.discourse.org|discourse plugin>?",+ ts: "1501801629.052212",+ },+ {+ type: "message",+ user: "U820GH3LA",+ text: "I'm interested!!",+ ts: "1501801634.053761",+ thread_ts: "1501801629.052212",+ },+ {+ text: "Check this out!",+ username: "Test Community",+ bot_id: "B6C6JNUDN",+ attachments: [+ {+ author_name: "@david",+ fallback: "Discourse can now be integrated with Mattermost! - @david",+ text: "Hey <http://localhost/groups/team|@team>, what do you think about this?",+ title: "Discourse can now be integrated with Mattermost! [Announcements] ",+ id: 1,+ title_link:+ "http://localhost:3000/t/discourse-can-now-be-integrated-with-mattermost/51/4",+ color: "283890",+ mrkdwn_in: ["text"],+ },+ ],+ type: "message",+ subtype: "bot_message",+ ts: "1501615820.949638",+ },+ {+ type: "message",+ user: "U5Z773QLS",+ text: "Let’s try some *bold text* <@U5Z773QLZ> <@someotheruser>",+ ts: "1501093331.439776",+ },+ ]+ end++ let(:users_fixture) do+ [+ {+ id: "U6JSSESES",+ name: "threader",+ profile: {+ image_24: "https://example.com/avatar",+ display_name: "Threader",+ real_name: "A. Threader",+ },+ },+ {+ id: "U820GH3LA",+ name: "responder",+ profile: {+ image_24: "https://example.com/avatar",+ display_name: "Responder",+ real_name: "A. Responder",+ },+ },+ {+ id: "U5Z773QLS",+ name: "awesomeguyemail",+ profile: {+ image_24: "https://example.com/avatar",+ display_name: "awesomeguy",+ real_name: "actually just a guy",+ },+ },+ {+ id: "U5Z773QLZ",+ name: "otherguyemail",+ profile: {+ image_24: "https://example.com/avatar",+ display_name: "",+ real_name: "another guy",+ },+ },+ ]+ end++ let(:transcript) { described_class.new(channel_name: "#general", channel_id: "G1234") }+ before { SiteSetting.chat_integration_slack_access_token = "abcde" }++ it "doesn't raise an error when there are no messages to guess" do+ transcript.instance_variable_set(:@messages, [])+ expect(transcript.guess_first_message(skip_messages: 1)).to eq(false)+ end++ describe "loading users" do+ it "loads users correctly" do+ stub_request(:post, "https://slack.com/api/users.list").with(+ body: {+ token: "abcde",+ cursor: nil,+ limit: "200",+ },+ ).to_return(+ status: 200,+ body: { ok: true, members: users_fixture, response_metadata: { next_cursor: "" } }.to_json,+ )++ expect(transcript.load_user_data).to be_truthy+ end++ it "handles failed connection" do+ stub_request(:post, "https://slack.com/api/users.list").to_return(status: 500, body: "")++ expect(transcript.load_user_data).to eq(false)+ end++ it "handles slack failure" do+ stub_request(:post, "https://slack.com/api/users.list").to_return(+ status: 200,+ body: { ok: false }.to_json,+ )++ expect(transcript.load_user_data).to eq(false)+ end+ end++ context "with loaded users" do+ before do+ stub_request(:post, "https://slack.com/api/users.list").to_return(+ status: 200,+ body: { ok: true, members: users_fixture, response_metadata: { next_cursor: "" } }.to_json,+ )+ transcript.load_user_data+ end++ describe "loading history" do+ it "loads messages correctly" do+ stub_request(:post, "https://slack.com/api/conversations.history").with(+ body: hash_including(token: "abcde", channel: "G1234"),+ ).to_return(status: 200, body: { ok: true, messages: messages_fixture }.to_json)++ expect(transcript.load_chat_history).to be_truthy+ end++ it "handles failed connection" do+ stub_request(:post, "https://slack.com/api/conversations.history").to_return(+ status: 500,+ body: {}.to_json,+ )++ expect(transcript.load_chat_history).to be_falsey+ end++ it "handles slack failure" do+ stub_request(:post, "https://slack.com/api/conversations.history").to_return(+ status: 200,+ body: { ok: false }.to_json,+ )++ expect(transcript.load_chat_history).to be_falsey+ end+ end++ context "with thread_ts specified" do+ let(:thread_transcript) do+ described_class.new(+ channel_name: "#general",+ channel_id: "G1234",+ requested_thread_ts: "1501801629.052212",+ )+ end++ before do+ thread_transcript.load_user_data+ stub_request(:post, "https://slack.com/api/conversations.replies").with(+ body: hash_including(token: "abcde", channel: "G1234", ts: "1501801629.052212"),+ ).to_return(status: 200, body: { ok: true, messages: messages_fixture[3..4] }.to_json)+ thread_transcript.load_chat_history+ end++ it "includes messages in a thread" do+ expect(thread_transcript.messages.length).to eq(2)+ end++ it "loads in chronological order" do # replies API presents messages in actual chronological order+ expect(thread_transcript.messages.first.ts).to eq("1501801629.052212")+ end++ it "includes slack thread identifiers in body" do+ text = thread_transcript.build_transcript+ expect(text).to include("<!--SLACK_CHANNEL_ID=#general;SLACK_TS=1501801629.052212-->")+ end+ end++ context "with loaded messages" do+ before do+ stub_request(:post, "https://slack.com/api/conversations.history").with(+ body: hash_including(token: "abcde", channel: "G1234"),+ ).to_return(status: 200, body: { ok: true, messages: messages_fixture }.to_json)+ transcript.load_chat_history+ end++ it "ignores messages in a thread" do+ expect(transcript.messages.length).to eq(6)+ end++ it "loads in chronological order" do # API presents in reverse chronological+ expect(transcript.messages.first.ts).to eq("1501093331.439776")+ end++ it "handles bold text" do+ expect(transcript.messages.first.text).to start_with("Let’s try some **bold text** ")+ end++ it "handles links" do+ expect(transcript.messages[2].text).to eq(+ "So, who's interested in the new [discourse plugin](https://meta.discourse.org)?",+ )+ end++ it "includes attachments" do+ expect(transcript.messages[1].attachments.first).to eq(+ "Discourse can now be integrated with Mattermost! - @david",+ )+ end++ it "can generate URL" do+ expect(transcript.messages.first.url).to eq(+ "https://slack.com/archives/G1234/p1501093331439776",+ )+ end++ it "includes attachments in raw text" do+ transcript.set_first_message_by_ts("1501615820.949638")+ expect(transcript.first_message.raw_text).to eq(+ "Check this out!\n - Discourse can now be integrated with Mattermost! - @david\n",+ )+ end++ it "gives correct first and last messages" do+ expect(transcript.first_message_number).to eq(0)+ expect(transcript.last_message_number).to eq(transcript.messages.length - 1)++ expect(transcript.first_message.ts).to eq("1501093331.439776")+ expect(transcript.last_message.ts).to eq("1501801665.062694")+ end++ it "can change first and last messages by index" do+ expect(transcript.set_first_message_by_index(999)).to be_falsey+ expect(transcript.set_first_message_by_index(1)).to be_truthy++ expect(transcript.set_last_message_by_index(-2)).to be_truthy++ expect(transcript.first_message.ts).to eq("1501615820.949638")+ expect(transcript.last_message.ts).to eq("1501801643.056375")+ end++ it "can change first and last messages by ts" do+ expect(transcript.set_first_message_by_ts("blah")).to be_falsey+ expect(transcript.set_first_message_by_ts("1501615820.949638")).to be_truthy++ expect(transcript.set_last_message_by_ts("1501801629.052212")).to be_truthy++ expect(transcript.first_message_number).to eq(1)+ expect(transcript.last_message_number).to eq(2)+ end++ it "can guess the first message" do+ expect(transcript.guess_first_message(skip_messages: 1)).to eq(true)+ expect(transcript.first_message.ts).to eq("1501801629.052212")+ end++ it "handles usernames correctly" do+ expect(transcript.first_message.username).to eq("awesomeguy") # Normal user+ expect(transcript.messages[1].username).to eq("Test_Community") # Bot user+ expect(transcript.messages[3].username).to eq(nil) # Unknown normal user+ # Normal user, display_name not set (fall back to real_name)+ expect(transcript.messages[4].username).to eq("another_guy")+ end++ it "handles user mentions correctly" do+ # User with display_name not set, unrecognized user+ expect(transcript.first_message.text).to eq(+ "Let’s try some **bold text** @another_guy @someotheruser",+ )+ # Normal user+ expect(transcript.messages[4].text).to eq("Oooh a new discourse plugin @awesomeguy ???")+ end++ it "handles avatars correctly" do+ expect(transcript.first_message.avatar).to eq("https://example.com/avatar") # Normal user+ expect(transcript.messages[1].avatar).to eq(nil) # Bot user+ end++ it "creates a transcript correctly" do+ transcript.set_last_message_by_index(1)++ text = transcript.build_transcript++ expected = <<~END+ [quote]+ [**View in #general on Slack**](https://slack.com/archives/G1234/p1501093331439776)++ ![awesomeguy] **@awesomeguy:** Let’s try some **bold text** @another_guy @someotheruser++ **@Test_Community:** Check this out!+ > Discourse can now be integrated with Mattermost! - @david++ [/quote]++ [awesomeguy]: https://example.com/avatar+ END++ expect(text).to eq(expected)+ end++ it "omits quote tags when disabled" do+ transcript.set_last_message_by_index(1)++ text = transcript.build_transcript+ expect(text).to include("[quote]")+ expect(text).to include("[/quote]")++ SiteSetting.chat_integration_slack_transcript_quote = false++ text = transcript.build_transcript+ expect(text).not_to include("[quote]")+ expect(text).not_to include("[/quote]")+ end++ it "creates the slack UI correctly" do+ transcript.set_last_message_by_index(1)+ ui = transcript.build_slack_ui++ first_ui = ui[:attachments][0]+ last_ui = ui[:attachments][1]++ # The callback IDs are used to keep track of what the other option is+ expect(first_ui[:callback_id]).to eq(transcript.last_message.ts)+ expect(last_ui[:callback_id]).to eq(transcript.first_message.ts)++ # The timestamps should match up to the actual messages+ expect(first_ui[:ts]).to eq(transcript.first_message.ts)+ expect(last_ui[:ts]).to eq(transcript.last_message.ts)++ # Raw text should be used+ expect(first_ui[:text]).to eq(transcript.first_message.raw_text)+ end+ end++ describe "message formatting" do+ it "handles code block newlines" do+ message =+ DiscourseChatIntegration::Provider::SlackProvider::SlackMessage.new(+ {+ "type" => "message",+ "user" => "U5Z773QLS",+ "text" => "Here is some code```my code\nwith newline```",+ "ts" => "1501093331.439776",+ },+ transcript,+ )+ expect(message.text).to eq(<<~MD)+ Here is some code+ ```+ my code+ with newline+ ```+ MD+ end++ it "handles multiple code blocks" do+ message =+ DiscourseChatIntegration::Provider::SlackProvider::SlackMessage.new(+ {+ "type" => "message",+ "user" => "U5Z773QLS",+ "text" =>+ "Here is some code```my code\nwith newline```and another```some more code```",+ "ts" => "1501093331.439776",+ },+ transcript,+ )+ expect(message.text).to eq(<<~MD)+ Here is some code+ ```+ my code+ with newline+ ```+ and another+ ```+ some more code+ ```+ MD+ end++ it "handles strikethrough" do+ message =+ DiscourseChatIntegration::Provider::SlackProvider::SlackMessage.new(+ {+ "type" => "message",+ "user" => "U5Z773QLS",+ "text" => "Some ~strikethrough~",+ "ts" => "1501093331.439776",+ },+ transcript,+ )+ expect(message.text).to eq("Some ~~strikethrough~~")+ end++ it "handles slack links" do+ message =+ DiscourseChatIntegration::Provider::SlackProvider::SlackMessage.new(+ {+ "type" => "message",+ "user" => "U5Z773QLS",+ "text" =>+ "A link to <https://google.com|google>, <https://autolinked.com|https://autolinked.com>, <https://notext.com>, <#channel>, <@user>",+ "ts" => "1501093331.439776",+ },+ transcript,+ )+ expect(message.text).to eq(+ "A link to [google](https://google.com), <https://autolinked.com>, <https://notext.com>, #channel, @user",+ )+ end++ it "does not format things inside backticks" do+ message =+ DiscourseChatIntegration::Provider::SlackProvider::SlackMessage.new(+ {+ "type" => "message",+ "user" => "U5Z773QLS",+ "text" =>+ "You can strikethrough like `~this~`, bold like `*this*` and link like `[https://example.com](https://example.com)`",+ "ts" => "1501093331.439776",+ },+ transcript,+ )+ expect(message.text).to eq(+ "You can strikethrough like `~this~`, bold like `*this*` and link like `[https://example.com](https://example.com)`",+ )+ end++ it "unescapes html in backticks" do+ # Because Slack escapes HTML entities, even in backticks+ message =+ DiscourseChatIntegration::Provider::SlackProvider::SlackMessage.new(+ {+ "type" => "message",+ "user" => "U5Z773QLS",+ "text" => "The code is `<stuff>`",+ "ts" => "1501093331.439776",+ },+ transcript,+ )+ expect(message.text).to eq("The code is `<stuff>`")+ end++ it "updates emoji dashes to underscores" do+ # Discourse does not allow dashes in emoji names, so this helps communities have matching custom emojis+ message =+ DiscourseChatIntegration::Provider::SlackProvider::SlackMessage.new(+ {+ "type" => "message",+ "user" => "U5Z773QLS",+ "text" => "This is :my-emoji:",+ "ts" => "1501093331.439776",+ },+ transcript,+ )+ expect(message.text).to eq("This is :my_emoji:")+ end+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/teams/teams_provider_spec.rb b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/teams/teams_provider_spec.rbnew file mode 100644index 00000000000..cb4b5c924bd--- /dev/null+++ b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/teams/teams_provider_spec.rb@@ -0,0 +1,62 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe DiscourseChatIntegration::Provider::TeamsProvider do+ let(:post) { Fabricate(:post) }++ describe ".trigger_notifications" do+ before { SiteSetting.chat_integration_teams_enabled = true }++ let(:chan1) do+ DiscourseChatIntegration::Channel.create!(+ provider: "teams",+ data: {+ name: "discourse",+ webhook_url:+ "https://outlook.office.com/webhook/677980e4-e03b-4a5e-ad29-dc1ee0c32a80@9e9b5238-5ab2-496a-8e6a-e9cf05c7eb5c/IncomingWebhook/e7a1006ded44478992769d0c4f391e34/e028ca8a-e9c8-4c6c-a4d8-578f881a3cff",+ },+ )+ end++ it "sends a webhook request" do+ stub1 = stub_request(:post, chan1.data["webhook_url"]).to_return(body: "1")+ described_class.trigger_notification(post, chan1, nil)+ expect(stub1).to have_been_requested.once+ end++ it "handles errors correctly" do+ stub1 = stub_request(:post, chan1.data["webhook_url"]).to_return(status: 400, body: "{}")+ expect(stub1).to have_been_requested.times(0)+ expect { described_class.trigger_notification(post, chan1, nil) }.to raise_exception(+ ::DiscourseChatIntegration::ProviderError,+ )+ expect(stub1).to have_been_requested.once+ end++ describe "with nil user.name" do+ before { post.user.update!(name: nil) }++ it "handles nil username correctly" do+ message = described_class.get_message(post)+ name = message[:sections].first[:facts].first[:name]+ expect(name).to eq("")+ end+ end+ end++ describe ".get_channel_by_name" do+ it "returns the right channel" do+ expected =+ DiscourseChatIntegration::Channel.create!(+ provider: "teams",+ data: {+ name: "discourse",+ webhook_url:+ "https://outlook.office.com/webhook/677980e4-e03b-4a5e-ad29-dc1ee0c32a80@9e9b5238-5ab2-496a-8e6a-e9cf05c7eb5c/IncomingWebhook/e7a1006ded44478992769d0c4f391e34/e028ca8a-e9c8-4c6c-a4d8-578f881a3cff",+ },+ )+ expect(described_class.get_channel_by_name("discourse")).to eq(expected)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/telegram/telegram_command_controller_spec.rb b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/telegram/telegram_command_controller_spec.rbnew file mode 100644index 00000000000..62e3ff3184d--- /dev/null+++ b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/telegram/telegram_command_controller_spec.rb@@ -0,0 +1,218 @@+# frozen_string_literal: true++require "rails_helper"++describe "Telegram Command Controller", type: :request do+ let(:category) { Fabricate(:category) }+ let!(:chan1) do+ DiscourseChatIntegration::Channel.create!(+ provider: "telegram",+ data: {+ name: "Amazing Channel",+ chat_id: "123",+ },+ )+ end+ let!(:webhook_stub) do+ stub_request(:post, "https://api.telegram.org/botTOKEN/setWebhook").to_return(+ body: "{\"ok\":true}",+ )+ end++ describe "with plugin disabled" do+ it "should return a 404" do+ post "/chat-integration/telegram/command/abcd.json"+ expect(response.status).to eq(404)+ end+ end++ describe "with plugin enabled and provider disabled" do+ before do+ SiteSetting.chat_integration_enabled = true+ SiteSetting.chat_integration_telegram_enabled = false+ end++ it "should return a 404" do+ post "/chat-integration/telegram/command/abcd.json"+ expect(response.status).to eq(404)+ end+ end++ describe "slash commands endpoint" do+ before do+ SiteSetting.chat_integration_enabled = true+ SiteSetting.chat_integration_telegram_access_token = "TOKEN"+ SiteSetting.chat_integration_telegram_enabled = true+ SiteSetting.chat_integration_telegram_secret = "shhh"+ end++ let!(:stub) do+ stub_request(:post, "https://api.telegram.org/botTOKEN/sendMessage").to_return(+ body: "{\"ok\":true}",+ )+ end++ describe "when forum is private" do+ it "should not redirect to login page" do+ SiteSetting.login_required = true++ post "/chat-integration/telegram/command/shhh.json",+ params: {+ message: {+ chat: {+ id: 123,+ },+ text: "/help",+ },+ }++ expect(response.status).to eq(200)+ end+ end++ describe "when the token is invalid" do+ it "should raise the right error" do+ post "/chat-integration/telegram/command/blah.json",+ params: {+ message: {+ chat: {+ id: 123,+ },+ text: "/help",+ },+ }++ expect(response.status).to eq(403)+ end+ end++ describe "when token has not been set" do+ it "should raise the right error" do+ SiteSetting.chat_integration_telegram_access_token = ""+ post "/chat-integration/telegram/command/blah.json",+ params: {+ message: {+ chat: {+ id: 123,+ },+ text: "/help",+ },+ }++ expect(response.status).to eq(403)+ end+ end++ describe "when token is valid" do+ let(:token) { "TOKEN" }++ before { SiteSetting.chat_integration_telegram_enable_slash_commands = true }++ describe "add new rule" do+ it "should add a new rule correctly" do+ post "/chat-integration/telegram/command/shhh.json",+ params: {+ message: {+ chat: {+ id: 123,+ },+ text: "/watch #{category.slug}",+ },+ }++ expect(response.status).to eq(200)+ expect(stub).to have_been_requested.once++ rule = DiscourseChatIntegration::Rule.all.first+ expect(rule.channel).to eq(chan1)+ expect(rule.filter).to eq("watch")+ expect(rule.category_id).to eq(category.id)+ expect(rule.tags).to eq(nil)+ end++ it "should add a new rule correctly using group chat syntax" do+ post "/chat-integration/telegram/command/shhh.json",+ params: {+ message: {+ chat: {+ id: 123,+ },+ text: "/watch@my-awesome-bot #{category.slug}",+ },+ }++ expect(response.status).to eq(200)+ expect(stub).to have_been_requested.once++ rule = DiscourseChatIntegration::Rule.all.first+ expect(rule.channel).to eq(chan1)+ expect(rule.filter).to eq("watch")+ expect(rule.category_id).to eq(category.id)+ expect(rule.tags).to eq(nil)+ end++ describe "from an unknown channel" do+ it "does nothing" do+ post "/chat-integration/telegram/command/shhh.json",+ params: {+ message: {+ chat: {+ id: 456,+ },+ text: "/watch #{category.slug}",+ },+ }++ expect(DiscourseChatIntegration::Rule.all.size).to eq(0)+ expect(DiscourseChatIntegration::Channel.all.size).to eq(1)+ end+ end+ end++ it "should respond only to a specific command in a broadcast channel" do+ post "/chat-integration/telegram/command/shhh.json",+ params: {+ channel_post: {+ chat: {+ id: 123,+ },+ text: "something",+ },+ }++ expect(response.status).to eq(200)+ expect(stub).to have_been_requested.times(0)++ post "/chat-integration/telegram/command/shhh.json",+ params: {+ channel_post: {+ chat: {+ id: 123,+ },+ text: "/getchatid",+ },+ }++ expect(response.status).to eq(200)+ expect(stub).to have_been_requested.times(1)+ end++ context "when 'text' is missing" do+ it "does not break" do+ post "/chat-integration/telegram/command/shhh.json",+ params: {+ message: {+ chat: {+ id: 123,+ },+ },+ }++ expect(response).to have_http_status :ok+ expect(DiscourseChatIntegration::Rule.count).to eq(0)+ expect(DiscourseChatIntegration::Channel.count).to eq(1)+ end+ end+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/telegram/telegram_provider_spec.rb b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/telegram/telegram_provider_spec.rbnew file mode 100644index 00000000000..08f94ed020c--- /dev/null+++ b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/telegram/telegram_provider_spec.rb@@ -0,0 +1,65 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe DiscourseChatIntegration::Provider::TelegramProvider do+ let(:post) { Fabricate(:post) }+ let!(:webhook_stub) do+ stub_request(:post, "https://api.telegram.org/botTOKEN/setWebhook").to_return(+ body: "{\"ok\":true}",+ )+ end++ describe ".trigger_notifications" do+ before do+ SiteSetting.chat_integration_telegram_access_token = "TOKEN"+ SiteSetting.chat_integration_telegram_enabled = true+ SiteSetting.chat_integration_telegram_secret = "shhh"+ end++ let(:chan1) do+ DiscourseChatIntegration::Channel.create!(+ provider: "telegram",+ data: {+ name: "Awesome Channel",+ chat_id: "123",+ },+ )+ end++ it "sends a webhook request" do+ stub1 =+ stub_request(:post, "https://api.telegram.org/botTOKEN/sendMessage").to_return(+ body: "{\"ok\":true}",+ )+ described_class.trigger_notification(post, chan1, nil)+ expect(stub1).to have_been_requested.once+ end++ it "handles errors correctly" do+ stub1 =+ stub_request(:post, "https://api.telegram.org/botTOKEN/sendMessage").to_return(+ body: "{\"ok\":false, \"description\":\"chat not found\"}",+ )+ expect(stub1).to have_been_requested.times(0)+ expect { described_class.trigger_notification(post, chan1, nil) }.to raise_exception(+ ::DiscourseChatIntegration::ProviderError,+ )+ expect(stub1).to have_been_requested.once+ end+ end++ describe ".get_channel_by_name" do+ it "returns the right channel" do+ expected =+ DiscourseChatIntegration::Channel.create!(+ provider: "telegram",+ data: {+ name: "Awesome Channel",+ chat_id: "123",+ },+ )+ expect(described_class.get_channel_by_name("Awesome Channel")).to eq(expected)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/webex/webex_provider_spec.rb b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/webex/webex_provider_spec.rbnew file mode 100644index 00000000000..0239c703a14--- /dev/null+++ b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/webex/webex_provider_spec.rb@@ -0,0 +1,52 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe DiscourseChatIntegration::Provider::WebexProvider do+ let(:post) { Fabricate(:post) }++ describe ".trigger_notifications" do+ before { SiteSetting.chat_integration_webex_enabled = true }++ let(:chan1) do+ DiscourseChatIntegration::Channel.create!(+ provider: "webex",+ data: {+ name: "discourse",+ webhook_url:+ "https://webexapis.com/v1/webhooks/incoming/jAHJjVVQ1cgEwb4ikQQawIrGdUtlocKA9fSNvIyADQoYo0mI70pztWUDOu22gDRPJOEJtCsc688zi1RMa",+ },+ )+ end++ it "sends a webhook request" do+ stub1 = stub_request(:post, chan1.data["webhook_url"]).to_return(body: "1")+ described_class.trigger_notification(post, chan1, nil)+ expect(stub1).to have_been_requested.once+ end++ it "handles errors correctly" do+ stub1 = stub_request(:post, chan1.data["webhook_url"]).to_return(status: 400, body: "{}")+ expect(stub1).to have_been_requested.times(0)+ expect { described_class.trigger_notification(post, chan1, nil) }.to raise_exception(+ ::DiscourseChatIntegration::ProviderError,+ )+ expect(stub1).to have_been_requested.once+ end+ end++ describe ".get_channel_by_name" do+ it "returns the right channel" do+ expected =+ DiscourseChatIntegration::Channel.create!(+ provider: "webex",+ data: {+ name: "discourse",+ webhook_url:+ "https://webexapis.com/v1/webhooks/incoming/jAHJjVVQ1cgEwb4ikQQawIrGdUtlocKA9fSNvIyADQoYo0mI70pztWUDOu22gDRPJOEJtCsc688zi1RMa",+ },+ )+ expect(described_class.get_channel_by_name("discourse")).to eq(expected)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/zulip/zulip_provider_spec.rb b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/zulip/zulip_provider_spec.rbnew file mode 100644index 00000000000..005bd1033d9--- /dev/null+++ b/plugins/discourse-chat-integration/spec/lib/discourse_chat_integration/provider/zulip/zulip_provider_spec.rb@@ -0,0 +1,60 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe DiscourseChatIntegration::Provider::ZulipProvider do+ let(:post) { Fabricate(:post) }++ describe ".trigger_notifications" do+ before do+ SiteSetting.chat_integration_zulip_enabled = true+ SiteSetting.chat_integration_zulip_server = "https://hello.world"+ SiteSetting.chat_integration_zulip_bot_email_address = "[email protected]"+ SiteSetting.chat_integration_zulip_bot_api_key = "secret"+ end++ let(:chan1) do+ DiscourseChatIntegration::Channel.create!(+ provider: "zulip",+ data: {+ stream: "general",+ subject: "Discourse Notifications",+ },+ )+ end++ it "sends a webhook request" do+ stub1 = stub_request(:post, "https://hello.world/api/v1/messages").to_return(status: 200)+ described_class.trigger_notification(post, chan1, nil)+ expect(stub1).to have_been_requested.once+ end++ it "handles errors correctly" do+ stub1 =+ stub_request(:post, "https://hello.world/api/v1/messages").to_return(+ status: 400,+ body: "{}",+ )+ expect(stub1).to have_been_requested.times(0)+ expect { described_class.trigger_notification(post, chan1, nil) }.to raise_exception(+ ::DiscourseChatIntegration::ProviderError,+ )+ expect(stub1).to have_been_requested.once+ end+ end++ describe ".get_channel_by_name" do+ it "returns the right channel" do+ created =+ DiscourseChatIntegration::Channel.create!(+ provider: "zulip",+ data: {+ stream: "foo",+ subject: "Discourse Notifications",+ },+ )+ channel = described_class.get_channel_by_name("foo")+ expect(channel).to eq(created)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/models/channel_spec.rb b/plugins/discourse-chat-integration/spec/models/channel_spec.rbnew file mode 100644index 00000000000..612cb55a257--- /dev/null+++ b/plugins/discourse-chat-integration/spec/models/channel_spec.rb@@ -0,0 +1,119 @@+# frozen_string_literal: true++require "rails_helper"+require_relative "../dummy_provider"++RSpec.describe DiscourseChatIntegration::Channel do+ include_context "with dummy provider"+ include_context "with validated dummy provider"++ it "should save and load successfully" do+ expect(DiscourseChatIntegration::Channel.all.length).to eq(0)++ chan = DiscourseChatIntegration::Channel.create(provider: "dummy")++ expect(DiscourseChatIntegration::Channel.all.length).to eq(1)++ loadedChan = DiscourseChatIntegration::Channel.find(chan.id)++ expect(loadedChan.provider).to eq("dummy")+ end++ it "should edit successfully" do+ channel = DiscourseChatIntegration::Channel.create!(provider: "dummy2", data: { val: "hello" })+ expect(channel.valid?).to eq(true)+ channel.save!+ end++ it "can be filtered by provider" do+ channel1 = DiscourseChatIntegration::Channel.create!(provider: "dummy")+ channel2 = DiscourseChatIntegration::Channel.create!(provider: "dummy2", data: { val: "blah" })+ channel3 = DiscourseChatIntegration::Channel.create!(provider: "dummy2", data: { val: "blah2" })++ expect(DiscourseChatIntegration::Channel.all.length).to eq(3)++ expect(DiscourseChatIntegration::Channel.with_provider("dummy2").length).to eq(2)+ expect(DiscourseChatIntegration::Channel.with_provider("dummy").length).to eq(1)+ end++ it "can be filtered by data value" do+ channel2 = DiscourseChatIntegration::Channel.create!(provider: "dummy2", data: { val: "foo" })+ channel3 = DiscourseChatIntegration::Channel.create!(provider: "dummy2", data: { val: "blah" })++ expect(DiscourseChatIntegration::Channel.all.length).to eq(2)++ for_provider = DiscourseChatIntegration::Channel.with_provider("dummy2")+ expect(for_provider.length).to eq(2)++ expect(+ DiscourseChatIntegration::Channel+ .with_provider("dummy2")+ .with_data_value("val", "blah")+ .length,+ ).to eq(1)+ end++ it "can find its own rules" do+ channel = DiscourseChatIntegration::Channel.create(provider: "dummy")+ expect(channel.rules.size).to eq(0)+ DiscourseChatIntegration::Rule.create(channel: channel)+ DiscourseChatIntegration::Rule.create(channel: channel)+ expect(channel.rules.size).to eq(2)+ end++ it "destroys its rules on destroy" do+ channel = DiscourseChatIntegration::Channel.create(provider: "dummy")+ expect(channel.rules.size).to eq(0)+ rule1 = DiscourseChatIntegration::Rule.create(channel: channel)+ rule2 = DiscourseChatIntegration::Rule.create(channel: channel)++ expect(DiscourseChatIntegration::Rule.with_channel(channel).exists?).to eq(true)+ channel.destroy()+ expect(DiscourseChatIntegration::Rule.with_channel(channel).exists?).to eq(false)+ end++ describe "validations" do+ it "validates provider correctly" do+ channel = DiscourseChatIntegration::Channel.create!(provider: "dummy")+ expect(channel.valid?).to eq(true)+ channel.provider = "somerandomprovider"+ expect(channel.valid?).to eq(false)+ end++ it "succeeds with valid data" do+ channel2 = DiscourseChatIntegration::Channel.new(provider: "dummy2", data: { val: "hello" })+ expect(channel2.valid?).to eq(true)+ end++ it "disallows invalid data" do+ channel2 = DiscourseChatIntegration::Channel.new(provider: "dummy2", data: { val: " " })+ expect(channel2.valid?).to eq(false)+ end++ it "disallows unknown keys" do+ channel2 =+ DiscourseChatIntegration::Channel.new(+ provider: "dummy2",+ data: {+ val: "hello",+ unknown: "world",+ },+ )+ expect(channel2.valid?).to eq(false)+ end++ it "requires all keys" do+ channel2 = DiscourseChatIntegration::Channel.new(provider: "dummy2", data: {})+ expect(channel2.valid?).to eq(false)+ end++ it "disallows duplicate channels" do+ channel1 =+ DiscourseChatIntegration::Channel.create(provider: "dummy2", data: { val: "hello" })+ channel2 = DiscourseChatIntegration::Channel.new(provider: "dummy2", data: { val: "hello" })+ expect(channel2.valid?).to eq(false)+ channel2.data[:val] = "hello2"+ expect(channel2.valid?).to eq(true)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/models/rule_spec.rb b/plugins/discourse-chat-integration/spec/models/rule_spec.rbnew file mode 100644index 00000000000..6ae96c32b9c--- /dev/null+++ b/plugins/discourse-chat-integration/spec/models/rule_spec.rb@@ -0,0 +1,252 @@+# frozen_string_literal: true++require "rails_helper"+require_relative "../dummy_provider"++RSpec.describe DiscourseChatIntegration::Rule do+ include_context "with dummy provider"++ let(:tag1) { Fabricate(:tag) }+ let(:tag2) { Fabricate(:tag) }++ let(:channel) { DiscourseChatIntegration::Channel.create(provider: "dummy") }+ let(:category) { Fabricate(:category) }+ let(:group) { Fabricate(:group) }++ describe ".alloc_key" do+ it "should return sequential numbers" do+ expect(DiscourseChatIntegration::Rule.create(channel: channel).key).to eq("rule:1")+ expect(DiscourseChatIntegration::Rule.create(channel: channel).key).to eq("rule:2")+ expect(DiscourseChatIntegration::Rule.create(channel: channel).key).to eq("rule:3")+ end+ end++ it "should convert between channel and channel_id successfully" do+ rule = DiscourseChatIntegration::Rule.create(channel: channel)+ expect(rule.channel_id).to eq(channel.id)+ expect(rule.channel.id).to eq(channel.id)+ end++ it "should save and load successfully" do+ expect(DiscourseChatIntegration::Rule.all.length).to eq(0)++ rule =+ DiscourseChatIntegration::Rule.create(+ channel: channel,+ category_id: category.id,+ tags: [tag1.name, tag2.name],+ filter: "watch",+ )++ expect(DiscourseChatIntegration::Rule.all.length).to eq(1)++ loadedRule = DiscourseChatIntegration::Rule.find(rule.id)++ expect(loadedRule.channel.id).to eq(channel.id)+ expect(loadedRule.category_id).to eq(category.id)+ expect(loadedRule.tags).to contain_exactly(tag1.name, tag2.name)+ expect(loadedRule.filter).to eq("watch")+ end++ describe "general operations" do+ before do+ rule =+ DiscourseChatIntegration::Rule.create(+ channel: channel,+ category_id: category.id,+ tags: [tag1.name, tag2.name],+ )+ end++ it "can be modified" do+ rule = DiscourseChatIntegration::Rule.all.first+ rule.tags = [tag1.name]++ rule.save!++ rule = DiscourseChatIntegration::Rule.all.first+ expect(rule.tags).to contain_exactly(tag1.name)+ end++ it "can be deleted" do+ DiscourseChatIntegration::Rule.new(channel: channel).save!+ expect(DiscourseChatIntegration::Rule.all.length).to eq(2)++ rule = DiscourseChatIntegration::Rule.all.first+ rule.destroy++ expect(DiscourseChatIntegration::Rule.all.length).to eq(1)+ end++ it "can delete all" do+ DiscourseChatIntegration::Rule.create(channel: channel)+ DiscourseChatIntegration::Rule.create(channel: channel)+ DiscourseChatIntegration::Rule.create(channel: channel)+ DiscourseChatIntegration::Rule.create(channel: channel)++ expect(DiscourseChatIntegration::Rule.all.length).to eq(5)++ DiscourseChatIntegration::Rule.destroy_all++ expect(DiscourseChatIntegration::Rule.all.length).to eq(0)+ end++ it "can be filtered by channel" do+ channel2 = DiscourseChatIntegration::Channel.create(provider: "dummy")+ channel3 = DiscourseChatIntegration::Channel.create(provider: "dummy")++ rule2 = DiscourseChatIntegration::Rule.create(channel: channel)+ rule3 = DiscourseChatIntegration::Rule.create(channel: channel)+ rule4 = DiscourseChatIntegration::Rule.create(channel: channel2)+ rule5 = DiscourseChatIntegration::Rule.create(channel: channel3)++ expect(DiscourseChatIntegration::Rule.all.length).to eq(5)++ expect(DiscourseChatIntegration::Rule.with_channel(channel).length).to eq(3)+ expect(DiscourseChatIntegration::Rule.with_channel(channel2).length).to eq(1)+ end++ it "can be filtered by category" do+ rule2 = DiscourseChatIntegration::Rule.create(channel: channel, category_id: category.id)+ rule3 = DiscourseChatIntegration::Rule.create(channel: channel, category_id: nil)++ expect(DiscourseChatIntegration::Rule.all.length).to eq(3)++ expect(DiscourseChatIntegration::Rule.with_category_id(category.id).length).to eq(2)+ expect(DiscourseChatIntegration::Rule.with_category_id(nil).length).to eq(1)+ end++ it "can be filtered by group" do+ group1 = Fabricate(:group)+ group2 = Fabricate(:group)+ rule2 =+ DiscourseChatIntegration::Rule.create!(+ channel: channel,+ type: "group_message",+ group_id: group1.id,+ )+ rule3 =+ DiscourseChatIntegration::Rule.create!(+ channel: channel,+ type: "group_message",+ group_id: group2.id,+ )++ expect(DiscourseChatIntegration::Rule.all.length).to eq(3)++ expect(DiscourseChatIntegration::Rule.with_category_id(category.id).length).to eq(1)+ expect(DiscourseChatIntegration::Rule.with_group_ids([group1.id, group2.id]).length).to eq(2)+ expect(DiscourseChatIntegration::Rule.with_group_ids([group1.id]).length).to eq(1)+ expect(DiscourseChatIntegration::Rule.with_group_ids([group2.id]).length).to eq(1)+ end++ it "can be filtered by type" do+ group1 = Fabricate(:group)++ rule2 =+ DiscourseChatIntegration::Rule.create!(+ channel: channel,+ type: "group_message",+ group_id: group1.id,+ )+ rule3 =+ DiscourseChatIntegration::Rule.create!(+ channel: channel,+ type: "group_mention",+ group_id: group1.id,+ )++ expect(DiscourseChatIntegration::Rule.all.length).to eq(3)++ expect(DiscourseChatIntegration::Rule.with_type("group_message").length).to eq(1)+ expect(DiscourseChatIntegration::Rule.with_type("group_mention").length).to eq(1)+ expect(DiscourseChatIntegration::Rule.with_type("normal").length).to eq(1)+ end++ it "can be sorted by precedence" do+ rule2 = DiscourseChatIntegration::Rule.create(channel: channel, filter: "mute")+ rule3 = DiscourseChatIntegration::Rule.create(channel: channel, filter: "follow")+ rule4 = DiscourseChatIntegration::Rule.create(channel: channel, filter: "thread")+ rule5 = DiscourseChatIntegration::Rule.create(channel: channel, filter: "mute")++ expect(DiscourseChatIntegration::Rule.all.length).to eq(5)++ expect(DiscourseChatIntegration::Rule.all.order_by_precedence.map(&:filter)).to eq(+ %w[mute mute thread watch follow],+ )+ end+ end++ describe "validations" do+ let(:rule) do+ DiscourseChatIntegration::Rule.create(+ filter: "watch",+ channel: channel,+ category_id: category.id,+ )+ end++ it "validates channel correctly" do+ expect(rule.valid?).to eq(true)+ rule.channel_id = "blahblahblah"+ expect(rule.valid?).to eq(false)+ rule.channel_id = -1+ expect(rule.valid?).to eq(false)+ end++ it "doesn't allow both category and group to be set" do+ expect(rule.valid?).to eq(true)+ rule.group_id = group.id+ expect(rule.valid?).to eq(false)+ rule.category_id = nil+ rule.type = "group_message"+ expect(rule.valid?).to eq(true)+ end++ it "validates group correctly" do+ rule.category_id = nil+ rule.group_id = group.id+ rule.type = "group_message"+ expect(rule.valid?).to eq(true)+ rule.group_id = -99+ expect(rule.valid?).to eq(false)+ end++ it "validates category correctly" do+ expect(rule.valid?).to eq(true)+ rule.category_id = -99+ expect(rule.valid?).to eq(false)+ end++ it "validates filter correctly" do+ expect(rule.valid?).to eq(true)+ rule.filter = "thread"+ expect(rule.valid?).to eq(true)+ rule.filter = "follow"+ expect(rule.valid?).to eq(true)+ rule.filter = "mute"+ expect(rule.valid?).to eq(true)+ rule.filter = ""+ expect(rule.valid?).to eq(false)+ rule.filter = "somerandomstring"+ expect(rule.valid?).to eq(false)+ end++ it "validates tags correctly" do+ expect(rule.valid?).to eq(true)+ rule.tags = []+ expect(rule.valid?).to eq(true)+ rule.tags = [tag1.name]+ expect(rule.valid?).to eq(true)+ rule.tags = [tag1.name, "blah"]+ expect(rule.valid?).to eq(false)+ end++ it "doesn't allow save when invalid" do+ expect(rule.valid?).to eq(true)+ rule.filter = "somerandomfilter"+ expect(rule.valid?).to eq(false)+ expect(rule.save).to eq(false)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/requests/chat_controller_spec.rb b/plugins/discourse-chat-integration/spec/requests/chat_controller_spec.rbnew file mode 100644index 00000000000..3dc02338b4f--- /dev/null+++ b/plugins/discourse-chat-integration/spec/requests/chat_controller_spec.rb@@ -0,0 +1,352 @@+# frozen_string_literal: true++require_relative "../dummy_provider"++RSpec.describe "Chat Controller", type: :request do+ let(:topic) { Fabricate(:post).topic }+ let(:admin) { Fabricate(:admin) }+ let(:category) { Fabricate(:category) }+ let(:category2) { Fabricate(:category) }+ let(:tag) { Fabricate(:tag) }+ let(:channel) { DiscourseChatIntegration::Channel.create(provider: "dummy") }++ include_context "with dummy provider"+ include_context "with validated dummy provider"++ before { SiteSetting.chat_integration_enabled = true }++ shared_examples "admin constraints" do |action, route|+ context "when user is not signed in" do+ it "should raise the right error" do+ public_send(action, route)+ expect(response.status).to eq(404)+ end+ end++ context "when user is not an admin" do+ it "should raise the right error" do+ sign_in(Fabricate(:user))+ public_send(action, route)+ expect(response.status).to eq(404)+ end+ end+ end++ describe "listing providers" do+ include_examples "admin constraints", "get", "/admin/plugins/chat-integration/providers.json"++ context "when signed in as an admin" do+ before { sign_in(admin) }++ it "should return the right response" do+ get "/admin/plugins/chat-integration/providers.json"++ expect(response.status).to eq(200)++ json = response.parsed_body++ expect(json["providers"].size).to eq(2)++ expect(json["providers"].find { |h| h["name"] == "dummy" }).to eq(+ "name" => "dummy",+ "id" => "dummy",+ "channel_parameters" => [],+ )+ end+ end+ end++ describe "testing channels" do+ include_examples "admin constraints", "get", "/admin/plugins/chat-integration/test.json"++ context "when signed in as an admin" do+ before { sign_in(admin) }++ it "should return the right response" do+ post "/admin/plugins/chat-integration/test.json",+ params: {+ channel_id: channel.id,+ topic_id: topic.id,+ }++ expect(response.status).to eq(200)+ end++ it "should fail for invalid channel" do+ post "/admin/plugins/chat-integration/test.json",+ params: {+ channel_id: 999,+ topic_id: topic.id,+ }++ expect(response.status).to eq(422)+ end+ end+ end++ describe "viewing channels" do+ include_examples "admin constraints", "get", "/admin/plugins/chat-integration/channels.json"++ context "when signed in as an admin" do+ before { sign_in(admin) }++ it "should return the right response" do+ rule =+ DiscourseChatIntegration::Rule.create(+ channel: channel,+ filter: "follow",+ category_id: category.id,+ tags: [tag.name],+ )++ get "/admin/plugins/chat-integration/channels.json", params: { provider: "dummy" }++ expect(response.status).to eq(200)++ channels = response.parsed_body["channels"]++ expect(channels.count).to eq(1)++ expect(channels.first).to eq(+ "id" => channel.id,+ "provider" => "dummy",+ "data" => {+ },+ "error_key" => nil,+ "error_info" => nil,+ "rules" => [+ {+ "id" => rule.id,+ "type" => "normal",+ "group_name" => nil,+ "group_id" => nil,+ "filter" => "follow",+ "channel_id" => channel.id,+ "category_id" => category.id,+ "tags" => [tag.name],+ },+ ],+ )+ end++ it "should fail for invalid provider" do+ get "/admin/plugins/chat-integration/channels.json", params: { provider: "someprovider" }+ expect(response.status).to eq(400)+ end+ end+ end++ describe "adding a channel" do+ include_examples "admin constraints", "post", "/admin/plugins/chat-integration/channels.json"++ context "as an admin" do+ before { sign_in(admin) }++ it "should be able to add a new channel" do+ post "/admin/plugins/chat-integration/channels.json",+ params: {+ channel: {+ provider: "dummy",+ data: {+ },+ },+ }++ expect(response.status).to eq(200)++ channel = DiscourseChatIntegration::Channel.all.last++ expect(channel.provider).to eq("dummy")+ end++ it "should fail for invalid params" do+ post "/admin/plugins/chat-integration/channels.json",+ params: {+ channel: {+ provider: "dummy2",+ data: {+ val: "something with whitespace",+ },+ },+ }++ expect(response.status).to eq(422)+ end+ end+ end++ describe "updating a channel" do+ let(:channel) do+ DiscourseChatIntegration::Channel.create(provider: "dummy2", data: { val: "something" })+ end++ include_examples "admin constraints", "put", "/admin/plugins/chat-integration/channels/1.json"++ context "as an admin" do+ before { sign_in(admin) }++ it "should be able update a channel" do+ put "/admin/plugins/chat-integration/channels/#{channel.id}.json",+ params: {+ channel: {+ data: {+ val: "something-else",+ },+ },+ }++ expect(response.status).to eq(200)++ channel = DiscourseChatIntegration::Channel.all.last+ expect(channel.data).to eq("val" => "something-else")+ end++ it "should fail for invalid params" do+ put "/admin/plugins/chat-integration/channels/#{channel.id}.json",+ params: {+ channel: {+ data: {+ val: "something with whitespace",+ },+ },+ }++ expect(response.status).to eq(422)+ end+ end+ end++ describe "deleting a channel" do+ let(:channel) { DiscourseChatIntegration::Channel.create(provider: "dummy", data: {}) }++ include_examples "admin constraints",+ "delete",+ "/admin/plugins/chat-integration/channels/1.json"++ context "as an admin" do+ before { sign_in(admin) }++ it "should be able delete a channel" do+ delete "/admin/plugins/chat-integration/channels/#{channel.id}.json"++ expect(response.status).to eq(200)+ expect(DiscourseChatIntegration::Channel.all.size).to eq(0)+ end+ end+ end++ describe "adding a rule" do+ include_examples "admin constraints", "put", "/admin/plugins/chat-integration/rules.json"++ context "as an admin" do+ before { sign_in(admin) }++ it "should be able to add a new rule" do+ post "/admin/plugins/chat-integration/rules.json",+ params: {+ rule: {+ channel_id: channel.id,+ category_id: category.id,+ filter: "watch",+ tags: [tag.name],+ },+ }++ expect(response.status).to eq(200)++ rule = DiscourseChatIntegration::Rule.all.last++ expect(rule.channel_id).to eq(channel.id)+ expect(rule.category_id).to eq(category.id)+ expect(rule.filter).to eq("watch")+ expect(rule.tags).to eq([tag.name])+ end++ it "should fail for invalid params" do+ post "/admin/plugins/chat-integration/rules.json",+ params: {+ rule: {+ channel_id: channel.id,+ category_id: category.id,+ filter: "watch",+ tags: ["somenonexistanttag"],+ },+ }++ expect(response.status).to eq(422)+ end+ end+ end++ describe "updating a rule" do+ let(:rule) do+ DiscourseChatIntegration::Rule.create(+ channel: channel,+ filter: "follow",+ category_id: category.id,+ tags: [tag.name],+ )+ end++ include_examples "admin constraints", "put", "/admin/plugins/chat-integration/rules/1.json"++ context "as an admin" do+ before { sign_in(admin) }++ it "should be able update a rule" do+ put "/admin/plugins/chat-integration/rules/#{rule.id}.json",+ params: {+ rule: {+ channel_id: channel.id,+ category_id: category2.id,+ filter: rule.filter,+ tags: rule.tags,+ },+ }++ expect(response.status).to eq(200)++ rule = DiscourseChatIntegration::Rule.all.last+ expect(rule.category_id).to eq(category2.id)+ end++ it "should fail for invalid params" do+ put "/admin/plugins/chat-integration/rules/#{rule.id}.json",+ params: {+ rule: {+ channel_id: channel.id,+ category_id: category.id,+ filter: "watch",+ tags: ["somenonexistanttag"],+ },+ }++ expect(response.status).to eq(422)+ end+ end+ end++ describe "deleting a rule" do+ let(:rule) do+ DiscourseChatIntegration::Rule.create!(+ channel_id: channel.id,+ filter: "follow",+ category_id: category.id,+ tags: [tag.name],+ )+ end++ include_examples "admin constraints", "delete", "/admin/plugins/chat-integration/rules/1.json"++ context "as an admin" do+ before { sign_in(admin) }++ it "should be able delete a rule" do+ delete "/admin/plugins/chat-integration/rules/#{rule.id}.json"++ expect(response.status).to eq(200)+ expect(DiscourseChatIntegration::Rule.all.size).to eq(0)+ end+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/requests/public_controller_spec.rb b/plugins/discourse-chat-integration/spec/requests/public_controller_spec.rbnew file mode 100644index 00000000000..5f5c187485f--- /dev/null+++ b/plugins/discourse-chat-integration/spec/requests/public_controller_spec.rb@@ -0,0 +1,24 @@+# frozen_string_literal: true++RSpec.describe "Public Controller", type: :request do+ before { SiteSetting.chat_integration_enabled = true }++ describe "loading a transcript" do+ it "should be able to load a transcript" do+ key = DiscourseChatIntegration::Helper.save_transcript("Some content here")++ get "/chat-transcript/#{key}.json"++ expect(response.status).to eq(200)++ expect(response.body).to eq('{"content":"Some content here"}')+ end++ it "should 404 for non-existent transcript" do+ key = "abcdefghijk"+ get "/chat-transcript/#{key}.json"++ expect(response.status).to eq(404)+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/services/manager_spec.rb b/plugins/discourse-chat-integration/spec/services/manager_spec.rbnew file mode 100644index 00000000000..347d07aa973--- /dev/null+++ b/plugins/discourse-chat-integration/spec/services/manager_spec.rb@@ -0,0 +1,386 @@+# frozen_string_literal: true++require "rails_helper"+require_dependency "post_creator"+require_relative "../dummy_provider"++RSpec.describe DiscourseChatIntegration::Manager do+ let(:manager) { ::DiscourseChatIntegration::Manager }+ let(:category) { Fabricate(:category) }+ let(:group) { Fabricate(:group) }+ let(:group2) { Fabricate(:group) }+ let(:topic) { Fabricate(:topic, category_id: category.id) }+ let(:first_post) { Fabricate(:post, topic: topic) }+ let(:second_post) { Fabricate(:post, topic: topic, post_number: 2) }++ describe ".trigger_notifications" do+ include_context "with dummy provider"++ let(:chan1) { DiscourseChatIntegration::Channel.create!(provider: "dummy") }+ let(:chan2) { DiscourseChatIntegration::Channel.create!(provider: "dummy") }+ let(:chan3) { DiscourseChatIntegration::Channel.create!(provider: "dummy") }++ before { SiteSetting.chat_integration_enabled = true }++ it "should fail gracefully when a provider throws an exception" do+ DiscourseChatIntegration::Rule.create!(+ channel: chan1,+ filter: "watch",+ category_id: category.id,+ )++ # Triggering a ProviderError should set the error_key to the error message+ provider.set_raise_exception(+ DiscourseChatIntegration::ProviderError.new info: { error_key: "hello" }+ )+ manager.trigger_notifications(first_post.id)+ expect(provider.sent_to_channel_ids).to contain_exactly+ expect(DiscourseChatIntegration::Channel.all.first.error_key).to eq("hello")++ # Triggering a different error should set the error_key to a generic message+ provider.set_raise_exception(StandardError.new "hello")+ manager.trigger_notifications(first_post.id)+ expect(provider.sent_to_channel_ids).to contain_exactly+ expect(DiscourseChatIntegration::Channel.all.first.error_key).to eq(+ "chat_integration.channel_exception",+ )++ provider.set_raise_exception(nil)++ manager.trigger_notifications(first_post.id)+ expect(DiscourseChatIntegration::Channel.all.first.error_key.nil?).to be true+ end++ it "should not send notifications when provider is disabled" do+ SiteSetting.chat_integration_enabled = false+ DiscourseChatIntegration::Rule.create!(+ channel: chan1,+ filter: "watch",+ category_id: category.id,+ )++ manager.trigger_notifications(first_post.id)++ expect(provider.sent_to_channel_ids).to contain_exactly+ end++ it "should send a notification to watched and following channels for new topic" do+ DiscourseChatIntegration::Rule.create!(+ channel: chan1,+ filter: "watch",+ category_id: category.id,+ )+ DiscourseChatIntegration::Rule.create!(+ channel: chan2,+ filter: "follow",+ category_id: category.id,+ )+ DiscourseChatIntegration::Rule.create!(+ channel: chan3,+ filter: "mute",+ category_id: category.id,+ )++ manager.trigger_notifications(first_post.id)++ expect(provider.sent_to_channel_ids).to contain_exactly(chan1.id, chan2.id)+ end++ it "should send a notification only to watched for reply" do+ DiscourseChatIntegration::Rule.create!(+ channel: chan1,+ filter: "watch",+ category_id: category.id,+ )+ DiscourseChatIntegration::Rule.create!(+ channel: chan2,+ filter: "follow",+ category_id: category.id,+ )+ DiscourseChatIntegration::Rule.create!(+ channel: chan3,+ filter: "mute",+ category_id: category.id,+ )++ manager.trigger_notifications(second_post.id)++ expect(provider.sent_to_channel_ids).to contain_exactly(chan1.id)+ end++ it "should respect wildcard category settings" do+ DiscourseChatIntegration::Rule.create!(channel: chan1, filter: "watch", category_id: nil)++ manager.trigger_notifications(first_post.id)++ expect(provider.sent_to_channel_ids).to contain_exactly(chan1.id)+ end++ it "should respect mute over watch" do+ DiscourseChatIntegration::Rule.create!(channel: chan1, filter: "watch", category_id: nil) # Wildcard watch+ DiscourseChatIntegration::Rule.create!(+ channel: chan1,+ filter: "mute",+ category_id: category.id,+ ) # Specific mute++ manager.trigger_notifications(first_post.id)++ expect(provider.sent_to_channel_ids).to contain_exactly+ end++ it "should respect watch over follow" do+ DiscourseChatIntegration::Rule.create!(channel: chan1, filter: "follow", category_id: nil) # Wildcard follow+ DiscourseChatIntegration::Rule.create!(+ channel: chan1,+ filter: "watch",+ category_id: category.id,+ ) # Specific watch++ manager.trigger_notifications(second_post.id)++ expect(provider.sent_to_channel_ids).to contain_exactly(chan1.id)+ end++ it "should respect thread over watch" do+ DiscourseChatIntegration::Rule.create!(channel: chan1, filter: "watch", category_id: nil) # Wildcard watch+ DiscourseChatIntegration::Rule.create!(+ channel: chan1,+ filter: "thread",+ category_id: category.id,+ ) # Specific thread++ manager.trigger_notifications(second_post.id)++ expect(provider.sent_to_channel_ids).to contain_exactly(chan1.id)+ end++ it "should not notify about private messages" do+ DiscourseChatIntegration::Rule.create!(channel: chan1, filter: "follow", category_id: nil) # Wildcard watch++ private_post = Fabricate(:private_message_post)++ manager.trigger_notifications(private_post.id)++ expect(provider.sent_to_channel_ids).to contain_exactly+ end++ it "should work for group pms" do+ DiscourseChatIntegration::Rule.create!(channel: chan1, filter: "watch") # Wildcard watch+ DiscourseChatIntegration::Rule.create!(+ channel: chan2,+ type: "group_message",+ filter: "watch",+ group_id: group.id,+ ) # Group watch++ private_post = Fabricate(:private_message_post)+ private_post.topic.invite_group(Fabricate(:user), group)++ manager.trigger_notifications(private_post.id)++ expect(provider.sent_to_channel_ids).to contain_exactly(chan2.id)+ end++ it "should work for pms with multiple groups" do+ DiscourseChatIntegration::Rule.create!(+ channel: chan1,+ type: "group_message",+ filter: "watch",+ group_id: group.id,+ )+ DiscourseChatIntegration::Rule.create!(+ channel: chan2,+ type: "group_message",+ filter: "watch",+ group_id: group2.id,+ )++ private_post = Fabricate(:private_message_post)+ private_post.topic.invite_group(Fabricate(:user), group)+ private_post.topic.invite_group(Fabricate(:user), group2)++ manager.trigger_notifications(private_post.id)++ expect(provider.sent_to_channel_ids).to contain_exactly(chan1.id, chan2.id)+ end++ it "should work for group mentions" do+ third_post =+ Fabricate(:post, topic: topic, post_number: 3, raw: "let's mention @#{group.name}")++ DiscourseChatIntegration::Rule.create!(channel: chan1, filter: "watch") # Wildcard watch+ DiscourseChatIntegration::Rule.create!(+ channel: chan2,+ type: "group_message",+ filter: "watch",+ group_id: group.id,+ )+ DiscourseChatIntegration::Rule.create!(+ channel: chan3,+ type: "group_mention",+ filter: "watch",+ group_id: group.id,+ )++ manager.trigger_notifications(third_post.id)+ expect(provider.sent_to_channel_ids).to contain_exactly(chan1.id, chan3.id)+ end++ it "should give group rule precedence over normal rules" do+ third_post =+ Fabricate(:post, topic: topic, post_number: 3, raw: "let's mention @#{group.name}")++ DiscourseChatIntegration::Rule.create!(+ channel: chan1,+ filter: "mute",+ category_id: category.id,+ ) # Mute category+ manager.trigger_notifications(third_post.id)+ expect(provider.sent_to_channel_ids).to contain_exactly++ DiscourseChatIntegration::Rule.create!(+ channel: chan1,+ filter: "watch",+ type: "group_mention",+ group_id: group.id,+ ) # Watch mentions+ manager.trigger_notifications(third_post.id)+ expect(provider.sent_to_channel_ids).to contain_exactly(chan1.id)+ end++ it "should not notify about mentions in private messages" do+ # Group 1 watching for messages on channel 1+ DiscourseChatIntegration::Rule.create!(+ channel: chan1,+ filter: "watch",+ type: "group_message",+ group_id: group.id,+ )+ # Group 2 watching for mentions on channel 2+ DiscourseChatIntegration::Rule.create!(+ channel: chan2,+ filter: "watch",+ type: "group_mention",+ group_id: group2.id,+ )++ # Make a private message only accessible to group 1+ private_message = Fabricate(:private_message_post)+ private_message.topic.invite_group(Fabricate(:user), group)++ # Mention group 2 in the message+ mention_post =+ Fabricate(+ :post,+ topic: private_message.topic,+ post_number: 2,+ raw: "let's mention @#{group2.name}",+ )++ # We expect that only group 1 receives a notification+ manager.trigger_notifications(mention_post.id)+ expect(provider.sent_to_channel_ids).to contain_exactly(chan1.id)+ end++ it "should not notify about posts the chat_user cannot see" do+ DiscourseChatIntegration::Rule.create!(channel: chan1, filter: "follow", category_id: nil) # Wildcard watch++ # Create a group & user+ group = Fabricate(:group, name: "friends")+ user = Fabricate(:user, username: "david")+ group.add(user)++ # Set the chat_user to the newly created non-admin user+ SiteSetting.chat_integration_discourse_username = "david"++ # Create a category+ category = Fabricate(:category, name: "Test category")+ topic.category = category+ topic.save!++ # Restrict category to admins only+ category.set_permissions(Group[:admins] => :full)+ category.save!++ # Check no notification sent+ manager.trigger_notifications(first_post.id)+ expect(provider.sent_to_channel_ids).to contain_exactly++ # Now expose category to new user+ category.set_permissions(Group[:friends] => :full)+ category.save!++ # Check notification sent+ manager.trigger_notifications(first_post.id)+ expect(provider.sent_to_channel_ids).to contain_exactly(chan1.id)+ end++ describe "with tags enabled" do+ let(:tag) { Fabricate(:tag, name: "gsoc") }+ let(:tagged_topic) { Fabricate(:topic, category_id: category.id, tags: [tag]) }+ let(:tagged_first_post) { Fabricate(:post, topic: tagged_topic) }++ before(:each) { SiteSetting.tagging_enabled = true }++ it "should still work for rules without any tags specified" do+ DiscourseChatIntegration::Rule.create!(channel: chan1, filter: "follow", category_id: nil) # Wildcard watch++ manager.trigger_notifications(first_post.id)+ manager.trigger_notifications(tagged_first_post.id)++ expect(provider.sent_to_channel_ids).to contain_exactly(chan1.id, chan1.id)+ end++ it "should only match tagged topics when rule has tags" do+ DiscourseChatIntegration::Rule.create!(+ channel: chan1,+ filter: "follow",+ category_id: category.id,+ tags: [tag.name],+ )++ manager.trigger_notifications(first_post.id)+ manager.trigger_notifications(tagged_first_post.id)++ expect(provider.sent_to_channel_ids).to contain_exactly(chan1.id)+ end+ end++ describe "with whispers and actions enabled" do+ before do+ SiteSetting.create_post_for_category_and_tag_changes = true+ SiteSetting.whispers_allowed_groups = "#{Group::AUTO_GROUPS[:staff]}"+ end++ it "should notify about category changes" do+ DiscourseChatIntegration::Rule.create!(+ channel: chan1,+ filter: "watch",+ category_id: category.id,+ )++ new_category = Fabricate(:category)+ DiscourseChatIntegration::Rule.create!(+ channel: chan1,+ filter: "watch",+ category_id: new_category.id,+ )++ manager.trigger_notifications(first_post.id)+ expect(provider.sent_to_channel_ids).to contain_exactly(chan1.id)++ # Change category+ PostRevisor.new(first_post, topic).revise!(+ Discourse.system_user,+ category_id: new_category.id,+ )++ last_topic_post = topic.posts.last+ manager.trigger_notifications(last_topic_post.id)+ expect(provider.sent_messages.count).to eq(2)+ expect(provider.sent_messages.last).to eq(post: last_topic_post.id, channel: chan1)+ end+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/services/problem_check/channel_errors_spec.rb b/plugins/discourse-chat-integration/spec/services/problem_check/channel_errors_spec.rbnew file mode 100644index 00000000000..00e463a64aa--- /dev/null+++ b/plugins/discourse-chat-integration/spec/services/problem_check/channel_errors_spec.rb@@ -0,0 +1,35 @@+# frozen_string_literal: true++require_relative "../../dummy_provider"++RSpec.describe ProblemCheck::ChannelErrors do+ include_context "with dummy provider"++ let(:check) { described_class.new }++ context "when chat integration is not enabled" do+ before { SiteSetting.stubs(chat_integration_enabled: false) }++ it { expect(check).to be_chill_about_it }+ end++ context "when chat integration is enabled" do+ before { SiteSetting.stubs(chat_integration_enabled: true) }++ context "when an enabled channel has errors" do+ before { Fabricate(:channel, provider: "dummy", error_key: "whoops") }++ it do+ expect(check).to have_a_problem.with_priority("low").with_message(+ "Some chat integration channels have errors. Visit <a href='/admin/plugins/chat-integration'>the chat integration section</a> to find out more.",+ )+ end+ end++ context "when a disabled chanel has errors" do+ before { Fabricate(:channel, provider: "dummy", error_key: nil) }++ it { expect(check).to be_chill_about_it }+ end+ end+enddiff --git a/plugins/discourse-chat-integration/spec/system/core_features_spec.rb b/plugins/discourse-chat-integration/spec/system/core_features_spec.rbnew file mode 100644index 00000000000..db86db283bd--- /dev/null+++ b/plugins/discourse-chat-integration/spec/system/core_features_spec.rb@@ -0,0 +1,7 @@+# frozen_string_literal: true++RSpec.describe "Core features", type: :system do+ before { enable_current_plugin }++ it_behaves_like "having working core features"+enddiff --git a/plugins/discourse-chat-integration/spec/system/create_channel_spec.rb b/plugins/discourse-chat-integration/spec/system/create_channel_spec.rbnew file mode 100644index 00000000000..80689b39cee--- /dev/null+++ b/plugins/discourse-chat-integration/spec/system/create_channel_spec.rb@@ -0,0 +1,55 @@+# frozen_string_literal: true+require_relative "../dummy_provider"++RSpec.describe "Create channel", type: :system do+ fab!(:admin)++ include_context "with dummy provider"+ let(:manager) { ::DiscourseChatIntegration::Manager }+ let(:chan1) { DiscourseChatIntegration::Channel.create!(provider: "dummy") }+ let(:category) { Fabricate(:category) }+ let(:topic) { Fabricate(:topic, category_id: category.id) }+ let(:first_post) { Fabricate(:post, topic: topic) }++ before do+ SiteSetting.chat_integration_enabled = true+ SiteSetting.chat_integration_discord_enabled = true+ sign_in(admin)+ end++ it "creates and displays a new channel" do+ visit("/admin/plugins/chat-integration/discord")++ expect(page).to have_no_css(".channel-details")++ click_button(I18n.t("js.chat_integration.create_channel"))++ find("input[name='param-name']").fill_in(with: "bloop")+ find("input[name='param-webhook_url']").fill_in(with: "https://discord.com/api/webhooks/bloop")+ click_button(I18n.t("js.chat_integration.edit_channel_modal.save"))++ expect(page).to have_css(".channel-details")+ expect(find(".channel-info")).to have_content("bloop")+ end++ it "shows the error in the channel modal" do+ DiscourseChatIntegration::Rule.create!(+ channel: chan1,+ filter: "watch",+ category_id: category.id,+ )++ provider.set_raise_exception(+ DiscourseChatIntegration::ProviderError.new info: { error_key: "hello" }+ )+ manager.trigger_notifications(first_post.id)++ visit("/admin/plugins/chat-integration/dummy")++ expect(find(".error-message")).to have_content(+ I18n.t("js.chat_integration.channels_with_errors"),+ )+ find(".channel-title").find("button").click+ expect(page).to have_content "{\n \"error_key\": \"hello\"\n}"+ end+enddiff --git a/plugins/discourse-chat-integration/test/javascripts/acceptance/chat-integration-test.js b/plugins/discourse-chat-integration/test/javascripts/acceptance/chat-integration-test.jsnew file mode 100755index 00000000000..0120616fb81--- /dev/null+++ b/plugins/discourse-chat-integration/test/javascripts/acceptance/chat-integration-test.js@@ -0,0 +1,222 @@+import { click, fillIn, triggerEvent, visit } from "@ember/test-helpers";+import { test } from "qunit";+import { acceptance } from "discourse/tests/helpers/qunit-helpers";++const response = (object) => {+ return [200, { "Content-Type": "text/html; charset=utf-8" }, object];+};++const jsonResponse = (object) => {+ return [200, { "Content-Type": "application/json; charset=utf-8" }, object];+};++acceptance("Chat Integration", function (needs) {+ needs.user();++ needs.pretender((server) => {+ server.get("/admin/plugins/chat-integration/providers", () => {+ return jsonResponse({+ providers: [+ {+ name: "dummy",+ id: "dummy",+ channel_parameters: [{ key: "somekey", regex: "^\\S+$" }],+ },+ ],+ });+ });++ server.get("/admin/plugins/chat-integration/channels", () => {+ return jsonResponse({+ channels: [+ {+ id: 97,+ provider: "dummy",+ data: { somekey: "#general" },+ rules: [+ {+ id: 98,+ channel_id: 97,+ category_id: null,+ team_id: null,+ type: "normal",+ tags: [],+ filter: "watch",+ error_key: null,+ },+ ],+ },+ ],+ });+ });++ server.post("/admin/plugins/chat-integration/channels", () => {+ return response({});+ });++ server.put("/admin/plugins/chat-integration/channels/:id", () => {+ return response({});+ });++ server.delete("/admin/plugins/chat-integration/channels/:id", () => {+ return response({});+ });++ server.post("/admin/plugins/chat-integration/rules", () => {+ return response({});+ });++ server.put("/admin/plugins/chat-integration/rules/:id", () => {+ return response({});+ });++ server.delete("/admin/plugins/chat-integration/rules/:id", () => {+ return response({});+ });++ server.post("/admin/plugins/chat-integration/test", () => {+ return response({});+ });++ server.get("/groups/search.json", () => {+ return jsonResponse([]);+ });+ });++ test("Rules load successfully", async function (assert) {+ await visit("/admin/plugins/chat-integration");++ assert+ .dom("#admin-plugin-chat table")+ .exists("it shows the table of rules");++ assert+ .dom("#admin-plugin-chat table tr td")+ .hasText("All posts and replies", "rule displayed");+ });++ test("Create channel works", async function (assert) {+ await visit("/admin/plugins/chat-integration");+ await click("#create-channel");++ assert+ .dom("#chat-integration-edit-channel-modal")+ .exists("it displays the modal");+ assert.dom("#save-channel").isDisabled();++ await fillIn("#chat-integration-edit-channel-modal input", "#general");++ assert.dom("#save-channel").isEnabled();++ await click("#save-channel");++ assert+ .dom("#chat-integration-edit-channel-modal")+ .doesNotExist("modal closes on save");+ });++ test("Edit channel works", async function (assert) {+ await visit("/admin/plugins/chat-integration");+ await click(".channel-header button");++ assert+ .dom("#chat-integration-edit-channel-modal")+ .exists("it displays the modal");+ assert.dom("#save-channel").isEnabled();++ await fillIn("#chat-integration-edit-channel-modal input", " general");+ assert.dom("#save-channel").isDisabled();++ await fillIn("#chat-integration-edit-channel-modal input", "#random");+ assert.dom("#save-channel").isEnabled();++ // Press enter+ await triggerEvent("#chat-integration-edit-channel-modal", "submit");++ assert+ .dom("#chat-integration-edit-channel-modal")+ .doesNotExist("modal saves on enter");+ });++ test("Create rule works", async function (assert) {+ await visit("/admin/plugins/chat-integration");++ assert.dom(".channel-footer button").exists("create button is displayed");++ await click(".channel-footer button");++ assert+ .dom("#chat-integration-edit-rule_modal")+ .exists("modal opens on edit");+ assert.dom("#save-rule").isEnabled();++ await click("#save-rule");++ assert+ .dom("#chat-integration-edit-rule_modal")+ .doesNotExist("modal closes on save");+ });++ test("Edit rule works", async function (assert) {+ await visit("/admin/plugins/chat-integration");++ assert.dom(".edit").exists("edit button is displayed");++ await click(".edit");++ assert+ .dom("#chat-integration-edit-rule_modal")+ .exists("modal opens on edit");+ assert.dom("#save-rule").isEnabled();++ await click("#save-rule");++ assert+ .dom("#chat-integration-edit-rule_modal")+ .doesNotExist("modal closes on save");+ });++ test("Delete channel works", async function (assert) {+ await visit("/admin/plugins/chat-integration");++ assert+ .dom(".channel-header .delete-channel")+ .exists("delete buttons exists");+ await click(".channel-header .delete-channel");++ assert.dom("div.dialog-content").exists("dialog is displayed");+ await click("div.dialog-content .btn-danger");++ assert.dom("div.dialog-content").doesNotExist("dialog has closed");+ });++ test("Delete rule works", async function (assert) {+ await visit("/admin/plugins/chat-integration");++ assert.dom(".delete").exists();+ await click(".delete");+ });++ test("Test channel works", async function (assert) {+ await visit("/admin/plugins/chat-integration");++ await click(".btn-chat-test");++ assert.dom("#chat_integration_test_modal").exists("it displays the modal");+ assert.dom("#send-test").isDisabled();++ await fillIn("#choose-topic-title", "9318");+ await click("#chat_integration_test_modal .radio");++ assert.dom("#send-test").isEnabled();++ await click("#send-test");++ assert+ .dom("#chat_integration_test_modal")+ .exists("modal doesn't close on send");+ assert+ .dom("#modal-alert.alert-success")+ .exists("success message displayed");+ });+});diff --git a/plugins/discourse-chat-integration/test/javascripts/acceptance/transcript-test.js b/plugins/discourse-chat-integration/test/javascripts/acceptance/transcript-test.jsnew file mode 100644index 00000000000..6768cd38abf--- /dev/null+++ b/plugins/discourse-chat-integration/test/javascripts/acceptance/transcript-test.js@@ -0,0 +1,37 @@+import { settled, visit } from "@ember/test-helpers";+import { test } from "qunit";+import { acceptance } from "discourse/tests/helpers/qunit-helpers";++/**+ * Workaround for https://github.com/tildeio/router.js/pull/335+ */+async function visitWithRedirects(url) {+ try {+ await visit(url);+ } catch (error) {+ const { message } = error;+ if (message !== "TransitionAborted") {+ throw error;+ }+ await settled();+ }+}++acceptance("Chat Integration - slack transcript", function (needs) {+ needs.user({+ can_create_topic: true,+ });++ needs.pretender((server, helper) => {+ server.get("/chat-transcript/abcde", () => {+ return helper.response({+ content: "This is a chat transcript",+ });+ });+ });++ test("Can open composer with transcript", async function (assert) {+ await visitWithRedirects("/chat-transcript/abcde");+ assert.dom(".d-editor-input").hasValue("This is a chat transcript");+ });+});diff --git a/translator.yml b/translator.ymlindex 7423ffbae8a..271c319550c 100644--- a/translator.yml+++ b/translator.yml@@ -192,3 +192,10 @@ files:- source_path: plugins/discourse-math/config/locales/server.en.ymldestination_path: plugins/math/server.ymllabel: math++ - source_path: plugins/discourse-chat-integration/config/locales/client.en.yml+ destination_path: plugins/chat-integration/client.yml+ label: chat-integration+ - source_path: plugins/discourse-chat-integration/config/locales/server.en.yml+ destination_path: plugins/chat-integration/server.yml+ label: chat-integration