Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Other changes and impovements #476

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
80 changes: 80 additions & 0 deletions _locales/de/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"loading_plugin": {
"message": "L�dt Moonlight Plugin..."
},
"loading_apps": {
"message": "L�dt Anwendungen..."
},
"stopping_game": {
"message": "Stoppe $1"
},
"error": {
"message": "Fehler"
},
"cert_error": {
"message": "Zertifikat ist noch nicht generiert worden. Ist NaCl aktiviert?"
},
"busy_error": {
"message": "Dein Computer ist besch�ftigt. Halte den Stream an, um dich zu verbinden."
},
"pair_error": {
"message": "Verbindung mit $1 fehlgeschlagen."
},
"remove_host": {
"message": "Host entfernen"
},
"delete_host": {
"message": "Bist du sicher, dass du $1 entfernen m�chtest?"
},
"add_host": {
"message": "Host hinzuf�gen"
},
"offline_host": {
"message": "Der Computer ist offline"
},
"gamelist_empty": {
"message": "Deine Spieleliste ist leer."
},
"game_running": {
"message": "$1 l�uft bereits. M�chtest du es beenden? Jeder ungespeicherte Fortschritt geht verloren."
},
"quit_current_app": {
"message": "Beende die aktuelle Anwendung"
},
"option_resolution": {
"message": "Auflösung"
},
"option_framerate": {
"message": "Framerate"
},
"option_bandwidth": {
"message": "Bandbreite"
},
"option_audio": {
"message": "Audio auf Host-PC abspielen"
},
"option_optimisations": {
"message": "Optimierungen aktivieren"
},
"pairing": {
"message": "Paarung"
},
"pairing_dialog": {
"message": "Bitte geben Sie $1 auf Ihrem Computer ein. Dieser Dialog wird einmal beendet"
},
"no": {
"message": "Nein"
},
"yes": {
"message": "Ja"
},
"cancel": {
"message": "Stornieren"
},
"continue": {
"message": "Weiter"
},
"host_ip": {
"message": "IP-Adresse oder Hostname des PCs"
}
}
80 changes: 80 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"loading_plugin": {
"message": "Loading Moonlight plugin..."
},
"loading_apps": {
"message": "Loading apps..."
},
"stopping_game": {
"message": "Stopping $1"
},
"error": {
"message": "Error"
},
"cert_error": {
"message": "Cert has not been generated yet. Is NaCl initialized?"
},
"busy_error": {
"message": "Your computer is busy. Stop streaming to pair"
},
"pair_error": {
"message": "Failed to pair with $1"
},
"remove_host": {
"message": "Remove host"
},
"delete_host": {
"message": "Are you sure you want to delete $1?"
},
"add_host": {
"message": "Add host"
},
"offline_host": {
"message": "Host is offline"
},
"gamelist_empty": {
"message": "Your game list is empty"
},
"game_running": {
"message": "$1 is already running. Would you like to quit? All unsaved progress will be lost"
},
"quit_current_app": {
"message": "Quit current app"
},
"option_resolution": {
"message": "Resolution"
},
"option_framerate": {
"message": "Framerate"
},
"option_bandwidth": {
"message": "Bandwidth"
},
"option_audio": {
"message": "Play audio on host"
},
"option_optimisations": {
"message": "Enable optimizations"
},
"pairing": {
"message": "Pairing"
},
"pairing_dialog": {
"message": "Please enter $1 on your computer. This dialog will dismiss once complete"
},
"no": {
"message": "Non"
},
"yes": {
"message": "Yes"
},
"cancel": {
"message": "Cancel"
},
"continue": {
"message": "Continue"
},
"host_ip": {
"message": "IP address or hostname of the PC"
}
}
80 changes: 80 additions & 0 deletions _locales/fr/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"loading_plugin": {
"message": "Chargement du plugin..."
},
"loading_apps": {
"message": "Chargement des applications..."
},
"stopping_game": {
"message": "Arrêt de $1"
},
"error": {
"message": "Erreur"
},
"cert_error": {
"message": "Le certificat n'a pas été généré. Est-ce que NaCL est activé?"
},
"busy_error": {
"message": "Votre ordinateur est occupé. Arrêter de streamer pour appareiller"
},
"pair_error": {
"message": "Impossible d'appareiller $1"
},
"remove_host": {
"message": "Supprimer l'ordinateur"
},
"delete_host": {
"message": "Voulez-vous vraiement enlever $1?"
},
"add_host": {
"message": "Ajouter un ordinateur"
},
"offline_host": {
"message": "L'ordinateur est hors-ligne"
},
"gamelist_empty": {
"message": "Votre liste d'applications est vide"
},
"game_running": {
"message": "$1 est en cours d'execution. Voulez-vous quitter? Toute progression non enregistrée sera perdue"
},
"quit_current_app": {
"message": "Quitter l'application en cours"
},
"option_resolution": {
"message": "Resolution"
},
"option_framerate": {
"message": "Taux de rafraichissement"
},
"option_bandwidth": {
"message": "Bande passante"
},
"option_audio": {
"message": "Jouer l'audio sur l'ordinateur"
},
"option_optimisations": {
"message": "Activer les optimisations"
},
"pairing": {
"message": "Appareillage"
},
"pairing_dialog": {
"message": "Veuillez entrer $1 sur votre ordinateur. Cette fenètre se fermera ensuite"
},
"no": {
"message": "Non"
},
"yes": {
"message": "Oui"
},
"cancel": {
"message": "Anuler"
},
"continue": {
"message": "Continuer"
},
"host_ip": {
"message": "Addresse IP ou nom d'hote de l'ordinateur"
}
}
31 changes: 16 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</ul>

<div id="resolutionTooltip" class="mdl-tooltip" for="resolutionMenu">
Resolution
<span class="localize" data-message="option_resolution">Resolution</span>
</div>
</div>
<div class="nav-menu-parent">
Expand All @@ -51,7 +51,7 @@
</ul>

<div id="framerateTooltip" class="mdl-tooltip" for="framerateMenu">
Framerate
<span class="localize" data-message="option_framerate">Framerate</span>
</div>
</div>

Expand All @@ -62,10 +62,11 @@

<div class="bitrateMenu mdl-menu mdl-js-menu mdl-js-ripple-effect" for="bandwidthMenu">
<input id="bitrateSlider" class="mdl-slider mdl-js-slider" type="range" min="0" max="100" step="0.5" value="10">
<input id="bitrateInput" class="mdl-textfield__input" type="text" pattern="-?[0-9]*(\.[0-9]+)?">
</div>

<div id="bandwidthTooltip" class="mdl-tooltip" for="bandwidthMenu">
Bandwidth
<span class="localize" data-message="option_bandwidth">Bandwidth</span>
</div>
</div>

Expand All @@ -75,7 +76,7 @@
<i class="mdl-icon-toggle__label material-icons">volume_up</i>
</label>
<div id="externalAudioTooltip" class="mdl-tooltip" for="externalAudioBtn">
Play audio on the host
<span class="localize" data-message="option_audio">Play audio on the host</span>
</div>
</div>

Expand All @@ -85,13 +86,13 @@
<i class="mdl-icon-toggle__label material-icons">timeline</i>
</label>
<div id="optimizeGamesTooltip" class="mdl-tooltip" for="optimizeGamesBtn">
Allow game optimisations
<span class="localize" data-message="option_optimisations">Allow game optimisations</span>
</div>
</div>

<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" id="quitCurrentApp" aria-label="Quit current app">
<i class="material-icons">remove_circle_outline</i>
Quit Current App
<span class="localize" data-message="quit_current_app">Quit Current App</span>
</button>
</nav>
</div>
Expand All @@ -100,7 +101,7 @@
<div id="host-grid">
<div class="add-host-card mdl-card mdl-shadow--4dp" id="addHostCell">
<div class="mdl-card__title mdl-card--expand" id="addHostIcon" role="link" tabindex="0" aria-label="Add Host">
<h2 class="mdl-card__title-text">Add Host</h2>
<h2 class="mdl-card__title-text"><span class="localize" data-message="add_host">Add Host</span></h2>
</div>
</div>
</div>
Expand All @@ -124,7 +125,7 @@ <h5 id="naclSpinnerMessage"></h5>
<script type="text/javascript" src="static/js/mdns-browser/dns.js"></script>
<script type="text/javascript" src="static/js/mdns-browser/main.js"></script>
<dialog id="pairingDialog" class="mdl-dialog">
<h3 class="mdl-dialog__title">Pairing</h3>
<h3 class="mdl-dialog__title"><span class="localize" data-message="pairing">Pairing</span></h3>
<div class="mdl-dialog__content">
<p id="pairingDialogText">
Please enter the number XXXX on the GFE dialog on the computer. This dialog will be dismissed once complete
Expand All @@ -142,8 +143,8 @@ <h3 class="mdl-dialog__title">Quit Running App?</h3>
</p>
</div>
<div class="mdl-dialog__actions">
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" id="cancelQuitApp">No</button>
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" id="continueQuitApp">Yes</button>
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" id="cancelQuitApp"><span class="localize" data-message="no">No</span></button>
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" id="continueQuitApp"><span class="localize" data-message="yes">Yes</span></button>
</div>
</dialog>
<dialog id="deleteHostDialog" class="mdl-dialog">
Expand All @@ -154,21 +155,21 @@ <h3 class="mdl-dialog__title">Delete PC</h3>
</p>
</div>
<div class="mdl-dialog__actions">
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" id="cancelDeleteHost">No</button>
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" id="continueDeleteHost">Yes</button>
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" id="cancelDeleteHost"><span class="localize" data-message="no">No</span></button>
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" id="continueDeleteHost"><span class="localize" data-message="yes">Yes</span></button>
</div>
</dialog>
<dialog id="addHostDialog" class="mdl-dialog">
<h3 class="mdl-dialog__title">Add Host Manually</h3>
<div class="mdl-dialog__content">
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="text" id="dialogInputHost" />
<label class="mdl-textfield__label" for="dialogInputHost">IP Address or Hostname of GeForce PC</label>
<label class="mdl-textfield__label" for="dialogInputHost"><span class="localize" data-message="host_ip">IP Address or Hostname of GeForce PC</span></label>
</div>
</div>
<div class="mdl-dialog__actions">
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" id="cancelAddHost">Cancel</button>
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" id="continueAddHost">Continue</button>
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" id="cancelAddHost"><span class="localize" data-message="cancel">Cancel</span></button>
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" id="continueAddHost"><span class="localize" data-message="continue">Continue</span></button>
</div>
</dialog>
<div id="snackbar" class="mdl-snackbar mdl-js-snackbar">
Expand Down
12 changes: 8 additions & 4 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
"short_name": "Moonlight",
"version": "0.9.0",
"description": "Open-source client for NVIDIA GameStream",
"default_locale": "en",
"icons": {
"128": "icons/icon128.png",
"48": "icons/icon48.png",
"32": "icons/icon32.png",
"16": "icons/icon16.png"
"16": "icons/icon16.png"
},
"app": {
"background": {
Expand All @@ -17,6 +18,9 @@
"scripts": ["static/js/jquery-2.2.0.min.js", "static/js/material.min.js", "static/js/common.js", "static/js/background.js"]
}
},
"externally_connectable": {
"matches": ["*://localhost:*/*", "*://moonlight-stream.com:*/*", "*://moonlight-stream.github.io:*/*"]
},
"sockets": {
"udp": { "bind": "*", "send": "*" }
},
Expand All @@ -29,9 +33,9 @@
"power",
"overrideEscFullscreen", {
"socket": [
"tcp-connect",
"resolve-host",
"udp-bind:*:*",
"tcp-connect",
"resolve-host",
"udp-bind:*:*",
"udp-send-to:*:*"
] }
],
Expand Down
Loading