v2.9.1 Auto detect culture and translate. Hungarian translations.

This commit is contained in:
pointbiz 2014-04-21 16:45:59 -04:00
parent a00fa123bb
commit 96b517edc3
4 changed files with 153 additions and 9 deletions

File diff suppressed because one or more lines are too long

View file

@ -464,7 +464,7 @@
</div> </div>
<div class="authorpgp"> <div class="authorpgp">
<span class="item"> <span class="item">
<a href="pgpsignedmsg.txt" target="_blank"><span id="footerlabelversion">Version History</span> (v2.9.0)</a> <a href="pgpsignedmsg.txt" target="_blank"><span id="footerlabelversion">Version History</span> (v2.9.1)</a>
(<a href="ninja_bitaddress.org.txt" target="_blank" id="footerlabelpgp">PGP</a>) (<a href="ninja_bitaddress.org.txt" target="_blank" id="footerlabelpgp">PGP</a>)
</span> </span>
<span class="item">527B 5C82 B1F6 B2DB 72A0<br />ECBF 8749 7B91 6397 4F5A</span> <span class="item">527B 5C82 B1F6 B2DB 72A0<br />ECBF 8749 7B91 6397 4F5A</span>

View file

@ -11,7 +11,7 @@ if (ninja.getQueryString()["asyncunittests"] == "true" || ninja.getQueryString()
if (ninja.getQueryString()["culture"] != undefined) { if (ninja.getQueryString()["culture"] != undefined) {
ninja.translator.translate(ninja.getQueryString()["culture"]); ninja.translator.translate(ninja.getQueryString()["culture"]);
} else { } else {
ninja.translator.autodetectTranslation(); ninja.translator.autoDetectTranslation();
} }
// testnet, check if testnet edition should be activated // testnet, check if testnet edition should be activated
if (ninja.getQueryString()["testnet"] == "true" || ninja.getQueryString()["testnet"] == "1") { if (ninja.getQueryString()["testnet"] == "true" || ninja.getQueryString()["testnet"] == "1") {

View file

@ -1,7 +1,7 @@
ninja.translator = { ninja.translator = {
currentCulture: "en", currentCulture: "en",
autodetectTranslation: function() { autoDetectTranslation: function() {
// window.navigator.language for Firefox / Chrome / Opera Safari // window.navigator.language for Firefox / Chrome / Opera Safari
// window.navigator.userLanguage for IE // window.navigator.userLanguage for IE
var language = window.navigator.language || window.navigator.userLanguage; var language = window.navigator.language || window.navigator.userLanguage;
@ -536,7 +536,6 @@ ninja.translator = {
"paperprint": "Stampa", "paperprint": "Stampa",
"paperlabelBIPpassphrase": "Passphrase:", "paperlabelBIPpassphrase": "Passphrase:",
"paperlabelencrypt": "BIP38 criptato?", "paperlabelencrypt": "BIP38 criptato?",
"paperadvancedcommandslabel": "Opzioni avanzate",
// bulk wallet html // bulk wallet html
"bulklabelstartindex": "Indice iniziale:", "bulklabelstartindex": "Indice iniziale:",