XMPP invitation landing page, without javascript
Less text = better
| -rw-r--r-- | index.html | 1 | ||||
| -rw-r--r-- | lang/de.json | 6 | ||||
| -rw-r--r-- | lang/en.json | 6 | ||||
| -rw-r--r-- | scripts/main.js | 2 |
4 files changed, 5 insertions, 10 deletions
@@ -24,7 +24,6 @@ <div class="main"> <noscript><h3>You need JavaScript to follow the invitation.</h3></noscript> <h3 class="text-center" id="heading"></h3> - <p class="lead text-center" id="intro"></p> <p class="text-center"><a class="btn btn-primary" id="button"></a></p> <input type="url" class="form-control text-center" id="url_in"></input> <p class="lead text-center" id="clients"></p> diff --git a/lang/de.json b/lang/de.json index e667162..48ee055 100644 --- a/lang/de.json +++ b/lang/de.json @@ -2,15 +2,13 @@ "chat": { "title": "Einladung von {{name}}", "heading": "{{name}} hat Sie zum Chatten eingeladen", - "intro": "Fügen Sie {{name}} zu Ihren Kontakten hinzu, indem Sie hier klicken:", - "button": "{{name}} hinzufügen", + "button": "{{name}} als Kontakt hinzufügen", "":"" }, "muc": { "title": "Einladung zu {{name}}", "heading": "Sie wurden zu {{name}} eingeladen", - "intro": "Treten Sie dem Gruppenchat {{name}} bei, indem Sie hier klicken:", - "button": "{{name}} beitreten", + "button": "Gruppenchat {{name}} beitreten", "":"" }, "clients": "Wenn der Link nicht funktioniert, müssen Sie einen XMPP-Client installieren und einrichten, und dann diese Seite nochmal aufsuchen.", diff --git a/lang/en.json b/lang/en.json index 41d7305..ac90f47 100644 --- a/lang/en.json +++ b/lang/en.json @@ -2,15 +2,13 @@ "chat": { "title": "Invitation from {{name}}", "heading": "{{name}} has invited you to chat", - "intro": "Add {{name}} to your contact list by clicking the following link:", - "button": "Add {{name}}", + "button": "Add {{name}} to contact list", "":"" }, "muc": { "title": "Invitation to {{name}}", "heading": "You have been invited to {{name}}", - "intro": "Join the chat room {{name}} by clicking the following link:", - "button": "Join {{name}}", + "button": "Join the chat room {{name}}", "":"" }, "clients": "If this link does not work, you need to install and configure an XMPP client, and visit this page again afterwards.", diff --git a/scripts/main.js b/scripts/main.js index 81771e5..d0e996e 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -60,7 +60,7 @@ // translation document.title = i18n.text(key_prefix + 'title', display_data); // MUC/chat specific - ['heading', 'intro', 'button'].forEach(function(id) { + ['heading', 'button'].forEach(function(id) { document.getElementById(id).innerHTML = i18n.text(key_prefix + id, display_data); }); // and agnostic |