Skip to content
Snippets Groups Projects
Commit ea05977f authored by acidicX's avatar acidicX
Browse files

added Firefox OS /fxos route and install methods as well as a few language strings

parent 5574d5d3
No related branches found
No related tags found
No related merge requests found
......@@ -97,3 +97,9 @@ FlowRouter.route '/room-not-found/:type/:name',
action: (params) ->
Session.set 'roomNotFound', {type: params.type, name: params.name}
BlazeLayout.render 'main', {center: 'roomNotFound'}
FlowRouter.route '/fxos',
name: 'firefox-os-install'
action: ->
BlazeLayout.render 'fxOsInstallPrompt'
Template.fxOsInstallPrompt.onRendered ->
showPrompt = () ->
request = window.navigator.mozApps.install 'http://' + location.host + '/manifest.webapp'
request.onsuccess = () ->
# Save the App object that is returned
appRecord = this.result
BlazeLayout.render 'fxOsInstallDone'
request.onerror = () ->
# Display the error information from the DOMError object
BlazeLayout.render 'fxOsInstallError', {installError: this.error.name}
setTimeout(showPrompt, 2000);
\ No newline at end of file
<template name="fxOsInstallPrompt">
<section class="full-page">
<div class="wrapper">
<header>
<a class="logo" href="/">
<img src="/images/logo/logo.svg?v=3" />
</a>
</header>
<div class="cms-page">
<h1>{{_ "Install_FxOs"}}</h1>
<p>{{_ "Install_FxOs_follow_instructions"}}</p>
</div>
</div>
</section>
</template>
<template name="fxOsInstallDone">
<section class="full-page">
<div class="wrapper">
<header>
<a class="logo" href="/">
<img src="/images/logo/logo.svg?v=3" />
</a>
</header>
<div class="cms-page">
<h1>{{_ "Install_FxOs"}}</h1>
<p>{{_ "Install_FxOs_done"}}</p>
</div>
</div>
</section>
</template>
<template name="fxOsInstallError">
<section class="full-page">
<div class="wrapper">
<header>
<a class="logo" href="/">
<img src="/images/logo/logo.svg?v=3" />
</a>
</header>
<div class="cms-page">
<h1>{{_ "Install_FxOs"}}</h1>
<p>{{_ "Install_FxOs_error"}}</p>
<p>{{installError}}</p>
</div>
</div>
</section>
</template>
\ No newline at end of file
......@@ -133,6 +133,10 @@
"hours" : "Stunden",
"Incorrect_Password" : "Falsches Passwort",
"inline_code" : "inline_code",
"Install_FxOs": "Installiere Rocket.Chat auf deinem Firefox",
"Install_FxOs_follow_instructions" : "Bitte bestätige die Installation der App (drücke \"Installieren\" in der Aufforderung).",
"Install_FxOs_done" : "Super! Du kannst Rocket.Chat nun über das Icon auf deinem Startbildschirm nutzen. Viel Spaß mit Rocket.Chat!",
"Install_FxOs_error" : "Schade, das hat leider nicht geklappt! Der folgende Fehler ist aufgetreten:",
"Invalid_confirm_pass" : "Die Passwörter stimmen nicht überein",
"Invalid_email" : "Email-Adresse ungültigt",
"Invalid_name" : "Der Name darf nicht leer sein",
......@@ -400,4 +404,4 @@
"You_will_not_be_able_to_recover" : "Sie können es nicht wieder rückgängig machen!",
"Your_entry_has_been_deleted" : "Ihr Eintrag wurde gelöscht.",
"Your_Open_Source_solution" : "Deine eigene Open Source Chat Lösung"
}
\ No newline at end of file
}
......@@ -149,6 +149,10 @@
"hours" : "hours",
"Incorrect_Password" : "Incorrect Password",
"inline_code" : "inline_code",
"Install_FxOs" : "Install Rocket.Chat on your Firefox",
"Install_FxOs_follow_instructions" : "Please confirm the app installation on your device (press \"Install\" when prompted).",
"Install_FxOs_done" : "Great! You can now use Rocket.Chat via the icon on your homescreen. Have fun with Rocket.Chat!",
"Install_FxOs_error" : "Sorry, that did not work as intended! The following error appeared:",
"Invalid_confirm_pass" : "The password confirmation does not match password",
"Invalid_email" : "The e-mail entered is invalid",
"Invalid_name" : "The name must not be empty",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment