-
Notifications
You must be signed in to change notification settings - Fork 5
/
translations.yaml
102 lines (77 loc) · 6.46 KB
/
translations.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
en:
admin_room:
connection_instructions: |
Hi, I'm the Rocket.Chat application service
You have to connect this room to a Rocket.Chat server. To do so you can either use an already connected server (if there is one) or connect to a new server.
**Connect to a new server**
Open the Administration section of your Rocket.Chat server, select Integrations --> New Integration --> Outgoing WebHook with the following settings:
* Enabled: true
* URLs: ${as_url}/rocketchat
There is a Token which we will need for the connection, copy it and press Save Changes to create a webhook.
Now you can connect the server by sending a message in this room:
`connect rocketchaturl token rockatchat_server_id`
The `rocketchaturl` is the URL where your Rocket.Chat server is running and `token` is the token from the webhook you just created.
The `rocketchat_server_id` can be any alphanumeric string (including `_`) with a maximum length of ${max_rocketchat_server_id_length} characters. It will be part of the room aliases and user names for that server to uniquely identify them.
*It is highly recommended that you use https to connect to your Rocket.Chat server.*
A sample message could look like this:
`connect https://chat.example.com z44cwkD86P5PmdkEv7nHX7KB my_id`
**Already connected servers**
${server_list}
To use an already connected server, you can use the Rocket.Chat URL in the list:
`connect rocketchaturl`
A sample message could look like this:
`connect https://chat.example.com`
login_instructions: |
You are connected to ${rocketchat_url}.
You have to login before you can use the application service, there are two ways to do that:
1. Send a message in this room: `login rocketchatusername mysecret`
**Warning**: This will store your password *unecrypted* in the database of your homeserver
1. Login via curl: `curl ${as_url}/rocketchat/login -d '{"rocketchat_url": "${rocketchat_url}", "matrix_user_id": "${matrix_user_id}", "rocketchat_username": "ROCKETCHAT_USER", "password": "MYSECRET"}'`
no_rocketchat_server_connected: "No Rocket.Chat server is connected yet."
usage_instructions: |
You are logged in.
You are connected to ${rocketchat_url}.
`list` Lists all public rooms from the Rocket.Chat server
`bridge rocketchatroomnname` Bridge a Rocket.Chat room
`unbridge rocketchatroomnname` Unbridge a Rocket.Chat room (messages are no longer forwarded)
list_rocketchat_rooms: |
Rooms are written in *italic* when you joined them on the Rocket.Chat server, you can `bridge` such a room.
Rooms are written in **bold** when they are already bridged.
${list}
room_successfully_bridged: "${rocketchat_room_name} is now bridged."
room_successfully_unbridged: "${rocketchat_room_name} is now unbridged."
channels: "Channels"
groups: "Private Groups"
re_login: "Please login again"
defaults:
admin_room_display_name: "Admin Room (Rocket.Chat)"
direct_message_room_display_name_suffix: "(DM Rocket.Chat)"
internal_error: "An internal error occurred"
handlers:
welcome: "Your Rocket.Chat <-> Matrix application service is running"
rocketchat_login_successful: "You are logged in. Return to your Matrix client and enter help in the admin room for more instructions."
errors:
authentication_failed: "Authentication failed!"
connect_without_rocketchat_server_id: "You have to provide an id to connect to a Rocket.Chat server. It can contain any alphanumeric character and `_`. For example `connect https://rocketchat.example.com my_token rocketchat_example`"
connect_with_invalid_rocketchat_server_id: "The provided Rocket.Chat server ID `${rocketchat_server_id}` is not valid, it can only contain lowercase alphanumeric characters. The maximum length is ${max_rocketchat_server_id_length} characters."
rocketchat_login_needed: "Could not send message to Rocket.Chat, you first have to login (via admin room)."
internal: "An internal error occurred"
no_rocketchat_server: "No Rocket.Chat server found when querying ${rocketchat_url} (version information is missing from the response)"
other_user_joined: "Another user join the admin room, leaving, please create a new admin room."
rocketchat_channel_already_bridged: "The channel or group ${rocketchat_room_name} is already bridged."
rocketchat_channel_or_group_not_found: "No channel or group with the name ${rocketchat_room_name} found."
rocketchat_token_missing: "A token is needed to connect new Rocket.Chat servers"
rocketchat_server_already_connected: "The Rocket.Chat server ${rocketchat_url} is already connected, connect without a token if you want to connect to the server"
rocketchat_server_id_already_in_use: "The provided ID `${rocketchat_server_id}` is already in use, please choose another one."
rocketchat_server_not_found: "Rocket.Chat server ${rocketchat_url} not found, it is probably not connected."
rocketchat_server_unreachable: "Could not reach Rocket.Chat server ${rocketchat_url}"
rocketchat_join_first: "You have to join the channel or group ${rocketchat_room_name} on the Rocket.Chat server before you can bridge it."
rocketchat_server_upload_failed: "Uploading file ${url} to Rocket.Chat failed with '${err}'."
room_already_connected: "This room is already connected"
room_assocaited_with_aliases: "Cannot unbdrige room ${rocketchat_room_name}, because aliases (${aliases}) are still associated with the room. All aliases have to be removed before the room can be unbridged."
room_not_connected: "This room is not connected to a Rocket.Chat server, you have to connect it first to be able to execute the command, type `help` for further instructions on how to connect this room"
room_not_empty: "Cannot unbdrige channel or group ${rocketchat_room_name}, because Matrix users (${users}) are still using the room. All Matrix users have to leave a room before the room can be unbridged."
token_already_in_use: "The token ${token} is already in use, please use another token."
too_many_members_in_room: "Admin rooms must only contain the user that invites the bot. Too many members in the room, leaving."
unsupported_rocketchat_api_version: "No supported API version (>= ${min_version}) found for the Rocket.Chat server, found version: ${version}"
unbridge_of_not_bridged_room: "The channel or group ${rocketchat_room_name} is not bridged, cannot unbridge it."