Browse Source

Merge pull request #59 from basst85/translate

Translate login.html
master
Giacomo Lacava 11 years ago
parent
commit
3e0c69e2ba
  1. 4
      README.md
  2. 48
      interface_localization.js
  3. 2
      login.html
  4. 4
      profile-edit.html

4
README.md

@ -9,7 +9,7 @@ To use it, clone this repo under ~/.twister/html like this: @@ -9,7 +9,7 @@ To use it, clone this repo under ~/.twister/html like this:
Localisation
------------
If you want a localised interface (currently available only for NL, IT, FR and soon RU),
If you want a localised interface (currently available only for NL, IT, FR and RU),
use the experimental `i18n` branch:
git checkout i18n
@ -57,7 +57,7 @@ If you want to add your own translation, edit `interface_localization.js` like t @@ -57,7 +57,7 @@ If you want to add your own translation, edit `interface_localization.js` like t
it should match what the browser reports. The Klingon ISO is "tlh", so:
var knownLanguages = ["en","nl","it","fr","tlh"];`
var knownLanguages = ["en","nl","it","fr","ru","tlh"];`
For multi-region languages, if you want to catch them all, use only the first half
(e.g. to match it and it-ch, specify "it").

48
interface_localization.js

@ -158,7 +158,11 @@ if(preferredLanguage == "en"){ @@ -158,7 +158,11 @@ if(preferredLanguage == "en"){
"Client Version:": "Client Version:",
"Mining difficulty:": "Mining difficulty:",
"Block generation status": "Block generation status",
"Current hash rate:": "Current hash rate:"
"Current hash rate:": "Current hash rate:",
"Terminate Daemon:": "Terminate Daemon:",
"Exit": "Exit",
"Save Changes": "Save Changes",
"Secret key:": "Secret key:"
};
}
@ -280,7 +284,7 @@ if(preferredLanguage == "nl"){ @@ -280,7 +284,7 @@ if(preferredLanguage == "nl"){
"View All": "Toon alles",
"Who to Follow": "Wie volgen?",
"Your message was sent!": "Je bericht is verzonden!",
"twister login": "Twister login",
"twister login": "twister login",
"Existing local users": "Bestaande lokale gebruikers",
"Or...": "Of...",
"Create a new user": "Maak een nieuwe gebruiker aan",
@ -295,7 +299,11 @@ if(preferredLanguage == "nl"){ @@ -295,7 +299,11 @@ if(preferredLanguage == "nl"){
"Client Version:": "Client versie:",
"Mining difficulty:": "Mining moeilijkheid:",
"Block generation status": "Block genereer status",
"Current hash rate:": "Huidige hash snelheid:"
"Current hash rate:": "Huidige hash snelheid:",
"Terminate Daemon:": "Daemon beëindigen",
"Exit": "Beëindigen",
"Save Changes": "Opslaan",
"Secret key:": "Geheime sleutel:"
};
}
@ -429,7 +437,11 @@ if(preferredLanguage == "it"){ @@ -429,7 +437,11 @@ if(preferredLanguage == "it"){
"Client Version:": "Client Version:",
"Mining difficulty:": "Mining difficulty:",
"Block generation status": "Block generation status",
"Current hash rate:": "Current hash rate:"
"Current hash rate:": "Current hash rate:",
"Terminate Daemon:": "Terminate Daemon:",
"Exit": "Exit",
"Save Changes": "Save Changes",
"Secret key:": "Secret key:"
};
}
@ -567,7 +579,11 @@ if(preferredLanguage == "fr"){ @@ -567,7 +579,11 @@ if(preferredLanguage == "fr"){
"Client Version:": "Client Version:",
"Mining difficulty:": "Mining difficulty:",
"Block generation status": "Block generation status",
"Current hash rate:": "Current hash rate:"
"Current hash rate:": "Current hash rate:",
"Terminate Daemon:": "Terminate Daemon:",
"Exit": "Exit",
"Save Changes": "Save Changes",
"Secret key:": "Secret key:"
};
}
@ -703,7 +719,27 @@ if(preferredLanguage == "ru"){ @@ -703,7 +719,27 @@ if(preferredLanguage == "ru"){
"View": "Просмотреть",
"View All": "Просмотреть Всё",
"Who to Follow": "Кого почитать",
"Your message was sent!": "Ваше сообщение было отправлено!"
"Your message was sent!": "Ваше сообщение было отправлено!",
"twister login": "twister login",
"Existing local users": "Existing local users",
"Or...": "Or...",
"Create a new user": "Create a new user",
"Login": "Login",
"Check availability": "Check availability",
"Create this nickname": "Create this nickname",
"Type nickname here": "Type nickname here",
"Import secret key": "Import secret key",
"52-characters secret": "52-characters secret",
"With nickname": "With nickname",
"Import key": "Import key",
"Client Version:": "Client Version:",
"Mining difficulty:": "Mining difficulty:",
"Block generation status": "Block generation status",
"Current hash rate:": "Current hash rate:",
"Terminate Daemon:": "Terminate Daemon:",
"Exit": "Exit",
"Save Changes": "Save Changes",
"Secret key:": "Secret key:"
};
}

2
login.html

@ -15,6 +15,8 @@ @@ -15,6 +15,8 @@
<script src="twister_user.js"></script>
<script src="interface_common.js"></script>
<script src="interface_login.js"></script>
<script src="polyglot.min.js"></script>
<script src="interface_localization.js"></script>
<script>
$(document).ready(function()

4
profile-edit.html

@ -11,6 +11,8 @@ @@ -11,6 +11,8 @@
<script src="jquery.storageapi.js"></script>
<script src="mobile_abstract.js"></script>
<script src="twister_io.js"></script>
<script src="polyglot.min.js"></script>
<script src="interface_localization.js"></script>
<script src="twister_user.js"></script>
<script src="twister_network.js"></script>
<script src="twister_following.js"></script>
@ -89,7 +91,7 @@ @@ -89,7 +91,7 @@
</div>
<div style="font-size:80%;text-align: center;">
Secret key: <span class="secret-key"></span>
<span class="label">Secret key:</span> <span class="secret-key"></span>
</div>
</div>

Loading…
Cancel
Save