lang stuff

This commit is contained in:
Erik 2021-05-10 15:39:05 +03:00
parent 0aadeb94dd
commit 2eb72346d9
No known key found for this signature in database
GPG Key ID: 7E862371D3409F16
2 changed files with 29 additions and 5 deletions

View File

@ -61,7 +61,7 @@ class LocaleLoader {
let matched = null; let matched = null;
let text = []; let text = [];
for(const line of lines) { for(const line of lines) {
if(line.startsWith('//')) continue; if(line.startsWith('//') || line.startsWith('#')) continue;
const matches = line.match(/\[([_A-Z0-9]{1,})\]/u); const matches = line.match(/\[([_A-Z0-9]{1,})\]/u);
if(matches) { if(matches) {
if (matched) { if (matched) {

View File

@ -733,11 +733,35 @@ The following roles are ignored by chatlogs: {roles}
[S_MESSAGELOG_CHANNELS_LIST] [S_MESSAGELOG_CHANNELS_LIST]
The following channels are ignored by chatlogs: {channels} The following channels are ignored by chatlogs: {channels}
[S_MESSAGELOG_ROLES] [S_MESSAGELOG_IGNORE_ADD]
Successfully {action} the following roles: {changed} Successfully added {changed} to be ignored by the message logger.
[S_MESSAGELOG_CHANNELS] [S_MESSAGELOG_IGNORE_REMOVE]
Successfully {action} the following channels: {changed} Successfully removed {changed} from being ignored by the message logger.
[S_MESSAGELOG_IGNORE_SET]
Successfully set {changed} to be ignored by the message logger.
[S_MESSAGELOG_IGNORE_RESET]
Successfully reset the ignored channels for the message logger.
[S_MESSAGELOG_BYPASS_ADD]
Successfully added {changed} to be ignored by the message logger.
[S_MESSAGELOG_BYPASS_REMOVE]
Successfully removed {changed} from being ignored by the message logger.
[S_MESSAGELOG_BYPASS_SET]
Successfully set {changed} to be ignored by the message logger.
[S_MESSAGELOG_BYPASS_RESET]
Successfully reset the ignored channels for the message logger.
# [S_MESSAGELOG_ROLES]
# Successfully {action} the following roles: {changed}
# [S_MESSAGELOG_CHANNELS]
# Successfully {action} the following channels: {changed}
[S_MESSAGELOG_ATTACHMENTS] [S_MESSAGELOG_ATTACHMENTS]
Successfully turned attachment logging **{changed}**. Successfully turned attachment logging **{changed}**.