Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Initial English (default) and Norwegian (PR #36) translations
  • Loading branch information
tgerring committed Oct 5, 2014
1 parent 9d44fbb commit d6c09dd
Show file tree
Hide file tree
Showing 14 changed files with 180 additions and 37 deletions.
18 changes: 17 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ module.exports = function(grunt) {

concat: {
js: {
src: ["assets/js/libs/*.js", "assets/js/*.js"],
src: ["assets/js/libs/jquery-2.*.js", "assets/js/libs/i18next-1.*.js", "assets/js/*.js"],
dest: "public/production/assets/js/app.js"
},
},
Expand Down Expand Up @@ -159,6 +159,22 @@ module.exports = function(grunt) {
}
]
},
translations: {
files: [
{
expand: true,
cwd: 'assets/locales',
src: ['*.json'],
dest: 'public/dev/locales/'
},
{
expand: true,
cwd: 'assets/locales',
src: ['*.json'],
dest: 'public/production/locales/'
}
]
},
shippable: {
files: [
{
Expand Down
46 changes: 46 additions & 0 deletions assets/js/i18next.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
var options = { lng: "nb-no",
resGetPath: 'locales/__ns__-__lng__.json',
defaultValueFromContent: false,
useDataAttrOptions: true,
debug: true };



i18n.init(options).done(function() {
$('.splash__title').i18n();
$('.splash__text').i18n();
$('#web').i18n();

$('.intro__title').i18n();
$('#intro_feature_simple_title').i18n();
$('#intro_feature_simple_text').i18n();
$('#intro_feature_secure_title').i18n();
$('#intro_feature_secure_text').i18n();
$('#intro_feature_multitoken_title').i18n();
$('#intro_feature_multitoken_text').i18n();
$('#intro_feature_waggle_title').i18n();
$('#intro_feature_waggle_text').i18n();


$('.tech__title').i18n();
$('#tech_text_1').i18n();
$('#tech_text_2').i18n();
$('#tech_text_3').i18n();

$('.team__title').i18n();

$('.native__title').i18n();
$('.native__text').i18n();
$('#native_mac_title').i18n();
$('#native_mac_text').i18n();
$('#native_mac_download').i18n();
$('#native_mac_version').i18n();
$('#native_android_title').i18n();
$('#native_android_text').i18n();
$('#native_android_download').i18n();
$('#native_android_version').i18n();

$('.footer__title').i18n();
$('.footer__text').i18n();
$('.donate').i18n();
});
6 changes: 6 additions & 0 deletions assets/js/libs/i18next-1.7.4.min.js

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions assets/js/libs/jquery-1.11.1.min.js

This file was deleted.

4 changes: 4 additions & 0 deletions assets/js/libs/jquery-2.1.1.min.js

Large diffs are not rendered by default.

37 changes: 37 additions & 0 deletions assets/locales/translation-en-US.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"splash__title": "Meet the new Hive",
"splash__text": "A human-friendly digital token wallet for multiple platforms, now on iOS!",
"splash__btn": "Create a web wallet",

"intro__title": "Why Use Hive?",
"intro_feature_simple_title": "Simple",
"intro_feature_simple_text": "Get started in seconds and access your wallet from any device.",
"intro_feature_secure_title": "Secure",
"intro_feature_secure_text": "Hive is a HD Wallet with secure passphrase generation.",
"intro_feature_multitoken_title": "Multi-Token",
"intro_feature_multitoken_text": "Supports both Bitcoin and Litecoin, with more coming soon!",
"intro_feature_waggle_title": "Waggle",
"intro_feature_waggle_text": "Use the Waggle location feature for transactions with nearby Hive users.",

"tech__title": "How does it work?",
"tech_text_1": "Unlike hosted wallets, the new Hive does not store your tokens on a server anywhere. With just your passphrase, you can access your tokens from the iOS app, or via modern mobile and desktop browsers.",
"tech_text_2": "There is no need to back up your wallet, just your passphrase. Writing it down and keeping it safe, or storing it in a password vault application is essential. If you lose it, you will lose your tokens.",
"tech_text_3": "For more information on how Hive works, please take a look at our FAQ.",

"team__title": "The Hive Team",

"native__title": "Other Hive Products",
"native__text": "While you can share wallets between Hive iOS and Hive Web, please be aware that they will not work with Hive for Android or Mac, as these apps are built with different architectures. For more information see the Wiki.",
"native_mac_title": "Mac",
"native_mac_text": "Featuring BIP70 Payment Protocol support & more.",
"native_mac_download": "Download Hive for Mac",
"native_mac_version": "Current version: 1.4",
"native_android_title": "Android",
"native_android_text": "Featuring QR code scanner, NFC support & more.",
"native_android_download": "Download Hive Android",
"native_android_version": "Current version: 0.4.1.3.52",

"footer__title": "Connect with Hive",
"footer__text": "Keen to keep on top of what’s happening in the Hive universe? Give us your email, and we’ll send you only important stuff about Hive. Jump into our open Skype channel for a chat, or give us a shout on social media.",
"footer__donate": "Want to help support Hive? Donate BTC"
}
37 changes: 37 additions & 0 deletions assets/locales/translation-nb-NO.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"splash__title": "Møt nye Hive!",
"splash__text": "En menneskevennlig digital valuta lommebok for flere plattformer, nå tilgjengelig på iOS!",
"splash__btn": "Lag en webbasert lommebok",

"intro__title": "Hvorfor Bruke Hive?",
"intro_feature_simple_title": "Simple",
"intro_feature_simple_text": "Kom igang på sekunder og få tilgang til din lommebok fra en hvilken som helst enhet.",
"intro_feature_secure_title": "Secure",
"intro_feature_secure_text": "Hive er en HD (Hierchical Deterministic) lommebok med sikker passordfrase generering.",
"intro_feature_multitoken_title": "Multi-Token",
"intro_feature_multitoken_text": "Støtter både Bitcoin og Litecoin, med flere kommende i snart!",
"intro_feature_waggle_title": "Waggle",
"intro_feature_waggle_text": "Bruk stedtjenestene i Waggle for å utføre transaksjoner med Hive-brukere nær deg.",

"tech__title": "Hvordan fungerer det?",
"tech_text_1": "I motsetning til lommebøker som lagres hos en tilbyder, så lagrer nye Hive ikke dine midler på en server noe sted. Med din passordfrase kan du få tilgang til dine midler fra iOS appen eller via en moderne nettlser på din mobil eller datamaskin.",
"tech_text_2": "Sikkerhetskopiering av din lommebok behøves ikke, kun din passordfrase kreves. Nedskrivning og sikker lagring eller lagring av den i et passordhånteringsprogram er ytterst viktig. Om du mister passordfrasen vil du samtidig miste dine midler.",
"tech_text_3": "For mer informasjon om hvordan Hive fungerer, vennligst ta en titt på vår FAQ.",

"team__title": "Hive-Teamet",

"native__title": "Andre Hive-Produkter",
"native__text": "Det er mulig å dele lommebøker mellom Hive iOS og Hive Web, vennligst vær klar over at de ikke vil fungere med Hive for Android eller Mac. For mer informasjon se Wikien.",
"native_mac_title": "Mac",
"native_mac_text": "Støtter BIP70 Betalingsprotokoll (Payment Protocol) & mer.",
"native_mac_download": "Last ned Hive for Mac",
"native_mac_version": "Nåværende version: 1.4",
"native_android_title": "Android",
"native_android_text": "Støtter QR-kode scanning, NFC & mer.",
"native_android_download": "Last ned Hive Android",
"native_android_version": "Nåværende version: 0.4.1.3.52",

"footer__title": "Koble til med Hive",
"footer__text": "Lyst å vite hva som skjer i Hive-universet? Gi oss din epost så sender vi deg viktige ting om Hive. Eller, hopp inn i vår åpne Skype-kanal for å chatte eller gi oss et vink på sosiale medier.",
"footer__donate": "Lyst å hjelpe bygge Hive? Donér BTC"
}
6 changes: 3 additions & 3 deletions project/partials/_footer.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

<div class="footer">

<h2 class="footer__title">Connect with Hive</h2>
<h2 class="footer__title" data-i18n="footer__title">Connect with Hive</h2>

<p class="footer__text">Keen to keep on top of what’s happening in the Hive universe? Give us your email, and we’ll send you only important stuff about Hive. Jump into our open Skype channel for a chat, or give us a shout on social media.</p>
<p class="footer__text" data-i18n="footer__text">Keen to keep on top of what’s happening in the Hive universe? Give us your email, and we’ll send you only important stuff about Hive. Jump into our open Skype channel for a chat, or give us a shout on social media.</p>

<!-- Begin MailChimp Signup Form -->

Expand Down Expand Up @@ -33,7 +33,7 @@

</div>

<span class="donate">Want to help support Hive? Donate BTC</span>
<span class="donate" data-i18n="footer__donate">Want to help support Hive? Donate BTC</span>

<a class="donate" href="bitcoin:1HLRg9C1GsfEVH555hgcjzDeas14jen2Cn">1HLRg9C1GsfEVH555hgcjzDeas14jen2Cn</a>

Expand Down
3 changes: 2 additions & 1 deletion project/partials/_global/_foot.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
{{else}}

{{! will grab all the files from a folder and insert as script links }}
{{devscripts "assets/js/libs/*.js"}}
{{devscripts "assets/js/libs/jquery-2.*.js"}}
{{devscripts "assets/js/libs/i18next-1.7.*.js"}}
{{devscripts "assets/js/*.js"}}

{{! Live reload }}
Expand Down
18 changes: 9 additions & 9 deletions project/partials/_intro.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div class="intro" id="intro">

<h2 class="intro__title">Why Use Hive?</h2>
<h2 class="intro__title" data-i18n="intro__title">Why Use Hive?</h2>

<div class="intro__image">
<div class="_image"></div>
Expand All @@ -13,33 +13,33 @@
<div class="feature__item">
<div class="_header">
<span class="_icon i-face"></span>
<h3 class="_title">Simple</h3>
<h3 id="intro_feature_simple_title" data-i18n="intro_feature_simple_title" class="_title">Simple</h3>
</div>
<p class="_text">Get started in seconds and access your wallet from any device.</p>
<p id="intro_feature_simple_text" data-i18n="intro_feature_simple_text" class="_text">Get started in seconds and access your wallet from any device.</p>
</div>

<div class="feature__item">
<div class="_header">
<span class="_icon i-keys"></span>
<h3 class="_title">Secure</h3>
<h3 id="intro_feature_secure_title" data-i18n="intro_feature_secure_title" class="_title">Secure</h3>
</div>
<p class="_text">Hive is a HD Wallet with secure passphrase generation.</p>
<p id="intro_feature_secure_text" data-i18n="intro_feature_secure_text" class="_text">Hive is a HD Wallet with secure passphrase generation.</p>
</div>

<div class="feature__item">
<div class="_header">
<span class="_icon i-multi"></span>
<h3 class="_title">Multi-Token</h3>
<h3 id="intro_feature_multitoken_title" data-i18n="intro_feature_multitoken_title" class="_title">Multi-Token</h3>
</div>
<p class="_text">Supports both Bitcoin and Litecoin, with more coming soon!</p>
<p id="intro_feature_multitoken_text" data-i18n="intro_feature_multitoken_text" class="_text">Supports both Bitcoin and Litecoin, with more coming soon!</p>
</div>

<div class="feature__item">
<div class="_header">
<span class="_icon i-waggle"></span>
<h3 class="_title">Waggle</h3>
<h3 id="intro_feature_waggle_title" data-i18n="intro_feature_waggle_title" class="_title">Waggle</h3>
</div>
<p class="_text">Use the Waggle location feature for transactions with nearby Hive users.</p>
<p id="intro_feature_waggle_text" data-i18n="intro_feature_waggle_text" class="_text">Use the Waggle location feature for transactions with nearby Hive users.</p>
</div>

</div>
Expand Down
20 changes: 10 additions & 10 deletions project/partials/_native.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,35 @@

<div class="native" id="native">

<h2 class="native__title">Other Hive Products</h2>
<h2 class="native__title" data-i18n="native__title">Other Hive Products</h2>

<p class="native__text">While you can share wallets between Hive iOS and Hive Web, please be aware that they will not work with Hive for Android or Mac, as these apps are built with different architectures. For more information see the <a href="https://github.com/hivewallet/discussions/wiki" target="_blank">Wiki</a>.</p>
<p class="native__text" data-i18n="native__text">While you can share wallets between Hive iOS and Hive Web, please be aware that they will not work with Hive for Android or Mac, as these apps are built with different architectures. For more information see the <a href="https://github.com/hivewallet/discussions/wiki" target="_blank">Wiki</a>.</p>

<div class="native__features">

<div class="feature__item">
<span class="_icon i-apple"></span>
<div class="_header">
<h3 class="_title">Mac</h3>
<h3 class="_title" id="native_mac_title" data-i18n="native_mac_title">Mac</h3>
</div>
<p class="_text">Featuring BIP70 Payment Protocol support &amp; more.</p>
<p class="_text" id="native_mac_text" data-i18n="native_mac_text">Featuring BIP70 Payment Protocol support &amp; more.</p>
<div class="_subtext">
<span class="_icon i-download"></span>
<a href="https://github.com/hivewallet/hive-osx/releases/download/1.4/Hive-1.4.zip" onClick="trackEvent('Exit', 'Hive OS X');" target="_blank" class="_link">Download Hive for Mac</a>
<span class="_version">Current version: 1.4</span>
<a href="https://github.com/hivewallet/hive-osx/releases/download/1.4/Hive-1.4.zip" onClick="trackEvent('Exit', 'Hive OS X');" target="_blank" class="_link" id="native_mac_download" data-i18n="native_mac_download">Download Hive for Mac</a>
<span class="_version" id="native_mac_version" data-i18n="native_mac_version">Current version: 1.4</span>
</div>
</div>

<div class="feature__item">
<div class="_header">
<span class="_icon i-android"></span>
<h3 class="_title">Android</h3>
<h3 class="_title" id="native_android_title" data-i18n="native_android_title">Android</h3>
</div>
<p class="_text">Featuring QR code scanner, NFC support &amp; more.</p>
<p class="_text" id="native_android_text" data-i18n="native_android_text">Featuring QR code scanner, NFC support &amp; more.</p>
<div class="_subtext">
<span class="_icon i-download"></span>
<a href="https://play.google.com/store/apps/details?id=com.hivewallet.androidclient.wallet" onClick="trackEvent('Exit', 'Hive Android');" target="_blank" class="_link">Download Hive Android</a>
<span class="_version">Current version: 0.4.1.3.52</span>
<a href="https://play.google.com/store/apps/details?id=com.hivewallet.androidclient.wallet" onClick="trackEvent('Exit', 'Hive Android');" target="_blank" class="_link" id="native_android_download" data-i18n="native_android_download">Download Hive Android</a>
<span class="_version" id="native_android_version" data-i18n="native_android_version">Current version: 0.4.1.3.52</span>
</div>
</div>

Expand Down
8 changes: 4 additions & 4 deletions project/partials/_splash.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
</div>

<div class="splash__logo"></div>
<h2 class="splash__title">Meet the new Hive</h2>
<p class="splash__text">A human-friendly digital token wallet for multiple platforms, now on iOS!</p>
<h2 class="splash__title" data-i18n="splash__title">Meet the new Hive</h2>
<p class="splash__text" data-i18n="splash__text">A human-friendly digital token wallet for multiple platforms, now on iOS!</p>

<div id="ios" class="ios__link__container">
<a class="appstore__link" href="https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=906990301&mt=8" onClick="trackEvent('Exit', 'iOS');" target="_blank"></a>
</div>

<div class="splash__image"></div>

<div id="web" class="splash__btn">
<a href="http://web.hivewallet.com" onClick="trackEvent('Exit', 'Hive Web');" target="_blank">Create a web wallet</a>
<div id="web" class="splash__btn" data-i18n-target=".create_web_wallet" data-i18n="splash__btn">
<a class="create_web_wallet" href="http://web.hivewallet.com" onClick="trackEvent('Exit', 'Hive Web');" target="_blank">Create a web wallet</a>
</div>

</div>
Expand Down
2 changes: 1 addition & 1 deletion project/partials/_team.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<div class="team__wrapper">

<h2 class="team__title">The Hive Team</h2>
<h2 class="team__title" data-i18n="team__title">The Hive Team</h2>

<div class="team__members">
{{#each team}}
Expand Down
8 changes: 4 additions & 4 deletions project/partials/_tech.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

<div class="tech__wrapper">

<h2 class="tech__title">How does it work?</h2>
<h2 class="tech__title" data-i18n="tech__title">How does it work?</h2>

<p class="tech__text">Unlike hosted wallets, the new Hive does not store your tokens on a server anywhere. With just your passphrase, you can access your tokens from the iOS app, or via modern mobile and desktop browsers.</p>
<p id="tech_text_1" class="tech__text" data-i18n="tech_text_1">Unlike hosted wallets, the new Hive does not store your tokens on a server anywhere. With just your passphrase, you can access your tokens from the iOS app, or via modern mobile and desktop browsers.</p>

<p class="tech__text">There is no need to back up your wallet, just your passphrase. Writing it down and keeping it safe, or storing it in a password vault application is essential. If you lose it, you <b>will</b> lose your tokens.</p>
<p id="tech_text_2" class="tech__text" data-i18n="tech_text_2">There is no need to back up your wallet, just your passphrase. Writing it down and keeping it safe, or storing it in a password vault application is essential. If you lose it, you <b>will</b> lose your tokens.</p>

<p class="tech__text">For more information on how Hive works, <span class="break-text--portrait"></span>please take a look at our<a href="https://github.com/hivewallet/hive-js/wiki/Hive-Web-FAQ" target="_blank"> FAQ</a>.</p>
<p id="tech_text_3" class="tech__text" data-i18n="tech_text_3">For more information on how Hive works, <span class="break-text--portrait"></span>please take a look at our <a href="https://github.com/hivewallet/hive-js/wiki/Hive-Web-FAQ" target="_blank"> FAQ</a>.</p>

</div>

Expand Down

0 comments on commit d6c09dd

Please sign in to comment.