-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move translator command for channels into a separate command group ca…
…lled channel
- Loading branch information
Showing
27 changed files
with
452 additions
and
404 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# /channel language | ||
|
||
Set or remove the main language of the channels. | ||
|
||
The translator will use the main language as the source language for all messages in the channels. | ||
|
||
## Usage | ||
|
||
* Use the dropdown menu to select the main language for the channels. | ||
* Select no languages to remove the main language from the channels. | ||
* Set `this` to `False` to apply the same settings to multiple channels. | ||
* Press the `Submit` button to save the settings. | ||
|
||
## Parameters | ||
|
||
* `this` (Optional): If set to `False`, it will send a dropdown menu to select multiple channels. Default value is `True`. | ||
|
||
This command is only available to the users who have the permission to manage the channels. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# /channel translator | ||
|
||
Set or remove a translator for channels. | ||
|
||
For every message sent in the selected channels, SoruSora will translate the message into the selected languages and reply with the translations. | ||
|
||
If the main language of the channels is not selected using `/channel language`, the language used in the message will be detected automatically. | ||
|
||
## Usage | ||
|
||
* Use the dropdown menu to select the languages you want to translate messages into. | ||
* Select no languages to remove the translator. | ||
* Set `this` to `False` to set the translator to multiple channels. | ||
* Press the `Submit` button to save the settings. | ||
|
||
## Parameters | ||
|
||
* `this` (Optional): If set to `False`, it will send a dropdown menu to select multiple channels. Default value is `True`. | ||
|
||
This command is only available to the users who have the permission to manage the channels. |
12 changes: 7 additions & 5 deletions
12
...lp/translator/set_channel_languages/ko.md → sorusora/docs/help/channel/translator/ko.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
# /번역기 채널언어설정 | ||
# /채널 번역기 | ||
|
||
채널 메세지를 번역할 언어들을 설정합니다. | ||
채널의 번역기를 설정합니다. | ||
|
||
선택한 채널에 메세지가 전송되면 SoruSora는 선택된 언어들로 해당 메세지를 번역하고 번역 결과를 해당 메세지에 답장합니다. | ||
|
||
만약 `/채널 언어`를 사용하여 채널의 메인 언어를 선택하지 않았다면, 메세지에 사용된 언어가 자동으로 감지됩니다. | ||
|
||
## 사용법 | ||
|
||
* 드롭다운 메뉴에서 메세지를 번역할 언어들을 선택합니다. | ||
* 선택한 채널에 대한 번역을 비활성화하려면 아무 언어도 선택하지 마십시오. | ||
* `현재채널`을 `False`로 설정하여 여러 채널에 동일한 설정을 적용할 수 있습니다. | ||
* 번역기를 제거하려면 아무 언어도 선택하지 마십시오. | ||
* `현재채널`을 `False`로 설정하여 여러 채널에 동일한 번역기를 설정할 수 있습니다. | ||
* 설정을 저장하려면 `결정` 버튼을 누르십시오. | ||
|
||
## 변수 | ||
|
||
* `현재채널` (옵션): `False`로 설정하면 여러 채널을 선택할 수 있는 드롭다운 메뉴가 전송됩니다. 기본값은 `True`입니다. | ||
|
||
이 명령어는 서버 관리자만 사용할 수 있습니다. | ||
이 명령어는 채널 관리 권한을 가진 유저만 사용할 수 있습니다. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# /頻道 翻譯機 | ||
|
||
配置頻道的翻譯器。 | ||
|
||
對於在選定頻道中發送的每一條消息,SoruSora都將將該消息翻譯成選定語言並回復翻譯。 | ||
|
||
如果未使用 `/頻道 語言` 選擇通道的主要語言,則會自動檢測消息中使用的語言。 | ||
|
||
## 如何使用 | ||
|
||
* 從下拉菜單中選擇要翻譯消息的語言。 | ||
* 刪除翻譯器不要選擇任何語言。 | ||
* 您可以將當前頻道設置爲"False",爲多個頻道設置相同的翻譯器。 | ||
* 點擊`結晶`按鈕保存設置。 | ||
|
||
## 參數 | ||
|
||
* `當前頻道` (可選): 設置成`False`會發送下拉菜單,可以選擇多個頻道。 默認值爲 `True`。 | ||
|
||
此指令僅限具有頻道管理權限的用戶使用 |
10 changes: 5 additions & 5 deletions
10
.../docs/help/translator/set_languages/en.md → sorusora/docs/help/translator/en.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# /translator set_languages | ||
# /translator | ||
|
||
Set or remove the languages to be translated for your messages. | ||
Set or remove a translator that translate all of your messages to other languages. | ||
|
||
When this command is used, it will send dropdown menus to this channel. You can select the languages you want to translate your messages into. You can select multiple languages. | ||
|
||
For every message you send, SoruSora will translate the message into the selected languages and reply with the translations. | ||
|
||
## Usages | ||
* Use the dropdown menu to select the languages you want to translate messages into. | ||
* Select no languages to disable translation | ||
* If you want to translate your messages in specific channels, Set `all_channels` to `False` to. Then, there will be an additional dropdown menu to select the channels you want to translate your messages in. | ||
* Select no languages to remove the translator | ||
* If you want to translate your messages in specific channels, Set `all_channels` to `False`. Then, there will be an additional dropdown menu to select the channels you want to translate your messages in. | ||
* Press the `Submit` button to save the settings. | ||
|
||
## Parameters | ||
|
||
* `all_channels` (Optional): Translate your messages in all channels. Defaults to `True`. | ||
* `all_channels` (Optional): Set or remove a translator in all channels. Defaults to `True`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
sorusora/docs/help/translator/set_channel_main_language/en.md
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
sorusora/docs/help/translator/set_channel_main_language/zh-TW.md
This file was deleted.
Oops, something went wrong.
10 changes: 6 additions & 4 deletions
10
...cs/help/translator/set_languages/zh-TW.md → sorusora/docs/help/translator/zh-TW.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
# /翻譯訊息 設定語言 | ||
# /翻譯機 | ||
|
||
使用此命令將下拉菜單發送到該通道。 從那個菜單中選擇要翻譯的語言就可以了。 你可以選擇多種語言。 | ||
設置翻譯器,將您的全部信息翻譯成其他語言。 | ||
|
||
使用此命令將下拉菜單發送到該通道。從那個菜單中選擇要翻譯的語言就可以了。你可以選擇多種語言。 | ||
|
||
將您的所有信息翻譯成SoruSora選擇的語言,並將翻譯結果回覆給相應信息。 | ||
|
||
## 如何使用 | ||
|
||
* 從下拉菜單中選擇要翻譯消息的語言。 | ||
* 如果想要關閉翻譯功能,不要選擇任何語言。 | ||
* 刪除翻譯器不要選擇任何語言。 | ||
* 如果要只在特定頻道使用翻譯功能,請將`所有頻道`設置爲`False`。 那麼,還會出現可以選擇頻道的下拉菜單。 | ||
* 點擊`結晶`按鈕保存設置。 | ||
|
||
## 參數 | ||
|
||
* `所有頻道` (可選): 在所有頻道翻譯您的訊息。預設為 `True`。 | ||
* `所有頻道` (可選): 在你所在的所有頻道上設置翻譯器。 默認值爲 `True`。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Commands | ||
channel-name = channel | ||
channel-description = Commands related to channels | ||
translator-name = translator | ||
translator-description = Set or remove a translator for channels | ||
translator-this-name = this | ||
translator-this-description = If True, set or remove the translator only in this channel. Default is { $translator-this-description-default } | ||
language-name = language | ||
language-description = Set or remove the main language of the channels | ||
language-this-name = this | ||
language-this-description = If True, set or remove the main language of this channel only. Default is { $language-this-description-default } | ||
# Success | ||
translator-set = Translator has been set to the channels | ||
language-set = The language of the channels has been set | ||
# Errors | ||
no-channels-selected = Select at least one channel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,15 @@ | ||
# Commands | ||
translator-name = translator | ||
translator-description = Commands related to translation | ||
set-languages-name = set_languages | ||
set-languages-description = Set or remove the languages to be translated for your messages | ||
set-languages-all-channels-name = all_channels | ||
set-languages-all-channels-description = Set or remove the languages to be translated for your messages in all channels. Default is { $set-languages-all-channels-description-default } | ||
set-channel-languages-name = set_channel_languages | ||
set-channel-languages-description = [Admins only] Set or remove the languages to be translated for channels | ||
set-channel-languages-this-channel-name = this_channel | ||
set-channel-languages-this-channel-description = Set or remove the languages to be translated for messages in this channel. Default is { $set-channel-languages-this-channel-description-default } | ||
set-channel-main-language-name = set_channel_main_language | ||
set-channel-main-language-description = [Admins only] Set or remove the main language of the channels | ||
set-channel-main-language-this-channel-name = this_channel | ||
set-channel-main-language-this-channel-description = Set or remove the main language of this channel. Default is { $set-channel-main-language-this-channel-description-default } | ||
translator-description = Set or remove a translator that translate all of your messages to other languages | ||
translator-all-channels-name = all_channels | ||
translator-all-channels-description = Set or remove a translator for all channels you are in. Default is { $translator-all-channels-description-default } | ||
# Select UI | ||
select-languages = Select the languages you want to translate | ||
select-channels = Select the channels you want to translate messages | ||
select-channels = Select the channels to set or remove the translator | ||
# Successes | ||
languages-updated = Your languages to be translated have been updated | ||
channel-languages-updated = The languages of the channels to be translated have been updated | ||
channel-main-language-updated = The main language of the channels has been updated | ||
translator-set = Translator has been set | ||
# Errors | ||
invalid-user-settings = Your languages settings are invalid. Please set them again | ||
invalid-channel-settings = This channel's languages settings are invalid. Please set them again | ||
no-channels-selected = Select at least one channel |
Oops, something went wrong.