From a5ca919c7a6abda1e65ba1c0ad7f3378f135f1d6 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 17 Dec 2021 10:58:33 +0100 Subject: [eventlog] Add english translations --- .../eventlog/lang/en/permissions.json | 6 ++- .../eventlog/lang/en/template-tags.json | 53 ++++++++++++++++++++++ .../eventlog/templates/page-filters-edit-rule.html | 4 +- 3 files changed, 60 insertions(+), 3 deletions(-) diff --git a/modules-available/eventlog/lang/en/permissions.json b/modules-available/eventlog/lang/en/permissions.json index ec438a4b..94fe9efd 100644 --- a/modules-available/eventlog/lang/en/permissions.json +++ b/modules-available/eventlog/lang/en/permissions.json @@ -1,3 +1,7 @@ { - "view": "View server log." + "filter.rules.edit": "Edit filter rules.", + "filter.rules.view": "View filter rules.", + "filter.transports.edit": "Edit transports.", + "filter.transports.view": "View transports.", + "view": "View server log." } \ No newline at end of file diff --git a/modules-available/eventlog/lang/en/template-tags.json b/modules-available/eventlog/lang/en/template-tags.json index 3132b97c..a035b4a8 100644 --- a/modules-available/eventlog/lang/en/template-tags.json +++ b/modules-available/eventlog/lang/en/template-tags.json @@ -1,6 +1,59 @@ { + "lang_add": "Add", + "lang_additionalMailAddresses": "Additional mail addresses", + "lang_autoJson": "Full JSON data", + "lang_autoJsonHelp": "The field \"POST format\" is ignored. The POST payload is a JSON struct with all available data regarding the according event. \"Subject\" and \"Message\" are ignored as well.", "lang_details": "Details", + "lang_editFilter": "Edit filter", "lang_event": "Event", "lang_eventLog": "Server Log", + "lang_filterArg": "Argument", + "lang_filterOp": "Op", + "lang_filterPath": "Path", + "lang_filterResult": "Resulting string", + "lang_formDataHelp": "POST event als urlencoded form data. Put your desired post string into the field above and use %TEXT% and %SUBJECT% as placeholders for where the according event fields go.", + "lang_hintRegex": "If you use a regex, you can use capture groups in the filter expression, and refer to them later on in your message body.", + "lang_host": "Host", + "lang_http": "HTTP", + "lang_httpMethod": "HTTP method", + "lang_httpPostField": "HTTP post payload", + "lang_httpPostFormat": "HTTP post payload Content-Type", + "lang_httpUri": "URI", + "lang_id": "ID", + "lang_index": "Index", + "lang_irc": "IRC", + "lang_ircNickname": "Nickname", + "lang_ircServer": "Server", + "lang_ircServerPassword": "Server password", + "lang_ircTarget": "Target Channel\/Nick", + "lang_jsonStringHelp": "Supply a json struct containing placeholders %SUBJECT% and\/or %TEXT% in the \"HTTP post payload\" fied above.", + "lang_log": "Server log", + "lang_logAndEvents": "Server log and event filtering", + "lang_mail": "Mail", + "lang_mailConfig": "Mail config", + "lang_mailUsers": "Users to mail", + "lang_mailconfigs": "Mail configs", + "lang_messageTemplate": "Message template", + "lang_messageTemplateHelp": "You can refer to the matched rules above by using their index in percentage-signs, like %0%, %1%, etc. If you used a regex and supplied capture groups, you can refer to them individually by using %0:1%, %0:2% etc. Furthermode, you can format raw numbers by appending b, kb, mb, gb to format as size in bytes, ts to format as unix timestamp, or d to format as duration in seconds.", + "lang_noMailConfig": "No mail config", + "lang_optionalDescription": "Description (for reference only)", + "lang_port": "Port", + "lang_postUseSUBJECTandTEXThint": "Use %SUBJECT% and %TEXT% placeholders which will be escaped properly, according to chosen POST format.", + "lang_reallyDelete": "Config deletion?", + "lang_replyTo": "Reply to", + "lang_rules": "Rules", + "lang_selectTransports": "Select transports", + "lang_senderAddress": "Sender address", + "lang_ssl": "TLS", + "lang_sslExplicit": "Explicit TLS", + "lang_sslImplicit": "Implicit TLS", + "lang_sslNone": "No TLS", + "lang_subject": "Subject", + "lang_title": "Title", + "lang_transportGroup": "Transport group", + "lang_transports": "Transports", + "lang_type": "Type", + "lang_typeExample": "Example", + "lang_uriUseSUBJECTandTEXThint": "You can use %SUBJECT% and %TEXT% in the URI too. They will be url-encoded.", "lang_when": "When" } \ No newline at end of file diff --git a/modules-available/eventlog/templates/page-filters-edit-rule.html b/modules-available/eventlog/templates/page-filters-edit-rule.html index a9251f53..1ddf4eb1 100644 --- a/modules-available/eventlog/templates/page-filters-edit-rule.html +++ b/modules-available/eventlog/templates/page-filters-edit-rule.html @@ -89,7 +89,7 @@

- {{lang_messageTemplateHelp}} Platzhalter %zeile.n%, blabla.... + {{lang_messageTemplateHelp}}

@@ -184,4 +184,4 @@ }; $fkInputs.on('input', chFn).change(chFn).change(); }); - \ No newline at end of file + -- cgit v1.2.3-55-g7522