Compare commits

...

5 Commits

Author SHA1 Message Date
Kgothatso Ngako
6b095137d9 Addin the Oshiwambo welcome note 2020-02-16 13:00:05 +02:00
Kgothatso Ngako
b47224320e Adding the language bar 2020-02-16 12:55:47 +02:00
Kgothatso Ngako
c1796919c7 Small addition to the language interface 2020-02-16 12:46:02 +02:00
Kgothatso Ngako
a22cd05c61 small update 2020-02-16 12:45:30 +02:00
Kgothatso Ngako
85404df2e4 Updating translation page 2020-02-15 23:42:39 +02:00
22 changed files with 421 additions and 26 deletions

View File

@ -0,0 +1,128 @@
<template>
<!-- user links -->
<div class="nav-links">
<div
v-for="item in userLinks"
:key="item.link"
>
<DropdownLink
v-if="item.type === 'links'"
:item="item"
/>
</div>
</div>
</template>
<script>
import DropdownLink from '@theme/components/DropdownLink.vue'
import { resolveNavLinkItem } from '@parent-theme/util'
export default {
name: 'LanguageDropdown',
components: {
DropdownLink
},
computed: {
nav () {
console.log("Trying to load lang")
const { locales } = this.$site
if (locales && Object.keys(locales).length > 1) {
const currentLink = this.$page.path
const routes = this.$router.options.routes
const themeLocales = this.$site.themeConfig.locales || {}
const langauges = Object.keys(locales).map(path => {
const locale = locales[path]
const text = themeLocales[path] && themeLocales[path].label || locale.lang
let link
// Stay on the current page
if (locale.lang === this.$lang) {
link = currentLink
} else {
// Try to stay on the same page
link = currentLink.replace(this.$localeConfig.path, path)
// fallback to homepage
if (!routes.some(route => route.path === link)) {
link = path
}
}
const group = locale.group
return { text, link, group }
})
let groupedLangauges = {}
let ungroupedLangauges = []
langauges.forEach(langauge => {
if (langauge.group) {
if (groupedLangauges[langauge.group] == null) {
groupedLangauges[langauge.group] = {
text: langauge.group,
items: []
}
}
groupedLangauges[langauge.group].items.push(langauge)
} else {
ungroupedLangauges.push(langauge)
}
})
const languageDropdown = {
text: this.$themeLocaleConfig.selectText || 'Languages',
ariaLabel: this.$themeLocaleConfig.ariaLabel || 'Select language',
items: Object.values(groupedLangauges).concat(ungroupedLangauges)
}
return [languageDropdown]
}
return []
},
userLinks () {
return (this.nav || []).map(link => {
return Object.assign(resolveNavLinkItem(link), {
items: (link.items || []).map(resolveNavLinkItem)
})
})
}
}
}
</script>
<style lang="stylus">
.nav-dropdown
top: auto
right auto
.nav-links
display inline-block
a
line-height 1.4rem
color inherit
&:hover, &.router-link-active
color $accentColor
.nav-item
position relative
display inline-block
margin-left 1.5rem
line-height 2rem
&:first-child
margin-left 0
.repo-link
margin-left 1.5rem
@media (max-width: $MQMobile)
.nav-links
.nav-item, .repo-link
margin-left 0
@media (min-width: $MQMobile)
.nav-links a
&:hover, &.router-link-active
color $textColor
.nav-item > a:not(.external)
&:hover, &.router-link-active
margin-bottom -2px
border-bottom 2px solid lighten($accentColor, 8%)
</style>

View File

@ -0,0 +1,230 @@
<template>
<div
class="dropdown-wrapper"
:class="{ open }"
>
<button
class="dropdown-title"
type="button"
:aria-label="dropdownAriaLabel"
@click="setOpen(!open)"
>
<span class="title">{{ item.text }}</span>
<span
class="arrow"
:class="open ? 'down' : 'right'"
/>
</button>
<DropdownTransition>
<ul
v-show="open"
class="nav-dropdown"
>
<li
v-for="(subItem, index) in item.items"
:key="subItem.link || index"
class="dropdown-item"
>
<h4 v-if="subItem.type === 'links'">
{{ subItem.text }}
</h4>
<ul
v-if="subItem.type === 'links'"
class="dropdown-subitem-wrapper"
>
<li
v-for="childSubItem in subItem.items"
:key="childSubItem.link"
class="dropdown-subitem"
>
<NavLink
:item="childSubItem"
@focusout="
isLastItemOfArray(childSubItem, subItem.items) &&
isLastItemOfArray(subItem, item.items) &&
setOpen(false)
"
/>
</li>
</ul>
<NavLink
v-else
:item="subItem"
@focusout="isLastItemOfArray(subItem, item.items) && setOpen(false)"
/>
</li>
</ul>
</DropdownTransition>
</div>
</template>
<script>
import NavLink from '@theme/components/NavLink.vue'
import DropdownTransition from '@theme/components/DropdownTransition.vue'
import last from 'lodash/last'
export default {
name: 'DropdownLink',
components: {
NavLink,
DropdownTransition
},
props: {
item: {
required: true
}
},
data () {
return {
open: false
}
},
computed: {
dropdownAriaLabel () {
return this.item.ariaLabel || this.item.text
}
},
watch: {
$route () {
this.open = false
}
},
methods: {
setOpen (value) {
this.open = value
},
isLastItemOfArray (item, array) {
return last(array) === item
}
}
}
</script>
<style lang="stylus">
.dropdown-wrapper
cursor pointer
.dropdown-title
display block
font-size 0.9rem
font-family inherit
cursor inherit
padding inherit
line-height 1.4rem
background transparent
border none
font-weight 500
color $textColor
&:hover
border-color transparent
.arrow
vertical-align middle
margin-top -1px
margin-left 0.4rem
.nav-dropdown
.dropdown-item
color inherit
line-height 1.7rem
h4
margin 0.45rem 0 0
border-top 1px solid #eee
padding 0.45rem 1.5rem 0 1.25rem
.dropdown-subitem-wrapper
padding 0
list-style none
.dropdown-subitem
font-size 0.9em
a
display block
line-height 1.7rem
position relative
border-bottom none
font-weight 400
margin-bottom 0
padding 0 1.5rem 0 1.25rem
&:hover
color $accentColor
&.router-link-active
color $accentColor
&::after
content ""
width 0
height 0
border-left 5px solid $accentColor
border-top 3px solid transparent
border-bottom 3px solid transparent
position absolute
top calc(50% - 2px)
left 9px
&:first-child h4
margin-top 0
padding-top 0
border-top 0
@media (max-width: $MQMobile)
.dropdown-wrapper
&.open .dropdown-title
margin-bottom 0.5rem
.dropdown-title
font-weight 600
font-size inherit
&:hover
color $accentColor
.nav-dropdown
transition height .1s ease-out
overflow hidden
.dropdown-item
h4
border-top 0
margin-top 0
padding-top 0
h4, & > a
font-size 15px
line-height 2rem
.dropdown-subitem
font-size 14px
padding-left 1rem
@media (min-width: $MQMobile)
.dropdown-wrapper
height 1.8rem
&:hover .nav-dropdown,
&.open .nav-dropdown
// override the inline style.
display block !important
&.open:blur
display none
.dropdown-title .arrow
// make the arrow always down at desktop
border-left 4px solid transparent
border-right 4px solid transparent
border-top 6px solid $arrowBgColor
border-bottom 0
.nav-dropdown
display none
// Avoid height shaked by clicking
height auto !important
box-sizing border-box;
max-height calc(100vh - 2.7rem)
overflow-y auto
position absolute
top auto
right auto
background-color #fff
padding 0.6rem 0
border 1px solid #ddd
border-bottom-color #ccc
text-align left
border-radius 0.25rem
white-space nowrap
margin 0
</style>

View File

@ -1,4 +1,6 @@
# Welcome to Bitcoin, newcomers!
<LanguageDropdown/>
### Here's your FAQ:
Q: Who should I trust?

View File

@ -1,3 +1,5 @@
# About Exonumia
<LanguageDropdown/>
The study of currency.

View File

@ -2,6 +2,8 @@
by Oleg Andreev [2017/12/10](https://oleganza.com/all/bitcoin-is-like/)
<LanguageDropdown/>
**Bitcoin is like physical cash:** it is not reversible and you are responsible for handling it. If you lose your wallet, you lose your money. You can give bitcoins to someone to hold them for you, but it will be like with any bank: you have to trust them that they wont run away with your money.
**Bitcoin is unlike physical cash:** you can store as much as you want and it will not take any space. You can send it over the wire to anyone. It is impossible to counterfeit. You cant give it in one second: to actually guarantee that transaction has happened, you have to wait 10-15 minutes for the cryptographic proof to be produced by the network.

View File

@ -2,6 +2,8 @@
by Nik Custodio [2013/12/12](https://www.freecodecamp.org/news/explain-bitcoin-like-im-five-73b4257ac833/)
<LanguageDropdown/>
### If you still cant figure out what the heck a bitcoin is…
Were sitting on a park bench. Its a great day.

View File

@ -2,4 +2,6 @@
by GameKyuubi [2013/12/18](https://bitcointalk.org/index.php?topic=375643.0)
<LanguageDropdown/>
I type d that tyitle twice because I knew it was wrong the first time. Still wrong. w/e. GF's out at a lesbian bar, BTC crashing WHY AM I HOLDING? I'LL TELL YOU WHY. It's because I'm a bad trader and I KNOW I'M A BAD TRADER. Yeah you good traders can spot the highs and the lows pit pat piffy wing wong wang just like that and make a millino bucks sure no problem bro. Likewise the weak hands are like OH NO IT'S GOING DOWN I'M GONNA SELL he he he and then they're like OH GOD MY ASSHOLE when the SMART traders who KNOW WHAT THE FUCK THEY'RE DOING buy back in but you know what? I'm not part of that group. When the traders buy back in I'm already part of the market capital so GUESS WHO YOU'RE CHEATING day traders NOT ME~! Those taunt threads saying "OHH YOU SHOULD HAVE SOLD" YEAH NO SHIT. NO SHIT I SHOULD HAVE SOLD. I SHOULD HAVE SOLD MOMENTS BEFORE EVERY SELL AND BOUGHT MOMENTS BEFORE EVERY BUY BUT YOU KNOW WHAT NOT EVERYBODY IS AS COOL AS YOU. You only sell in a bear market if you are a good day trader or an illusioned noob. The people inbetween hold. In a zero-sum game such as this, traders can only take your money if you sell.

View File

@ -1,18 +1,21 @@
# Welcome to Bitcoin, newcomers!
### Here's your FAQ:
# Omwathika ko bitcoin, aaleshi aape naakulu!
Q: Who should I trust?
A: **Nobody.**
<LanguageDropdown/>
Q: When should I sell?
A: **Never.**
### Mpaka otapu landula omapulo ngoka hagapulwa olundji:
Q: Is Bitcoin dying because ____?
A: **No.**
Q: (Kombinga yo Bitcoin) Olye ndina okulineekela?
A: **Kapena gumwe.**
Q: What have I gotten myself into?
A: **Nobody knows.**
Q: Uunake ndina okulanditha (eeBitcoin dhandje)?
A: **Kapena lela ethimbo lyatulwapo, oto vulu oku landitha kehe ethimbo.**
Q: O Bitcoin otaisipo molwa ____?
A: **Ahawe.**
Q: Ondiitula miikwashike mbino?
A: **Kapena ngu eshi tseya.**
Q: How do I learn more?
Q: Ondina okwiilonga ngiini oshindji (kombinga yo Bitcoin)?
A: **We have a [wealth of content here](/translations).** Or you can visit [lopp.net](https://www.lopp.net/bitcoin-information.html)

View File

@ -1,3 +1,5 @@
# About Exonumia
<LanguageDropdown/>
The study of currency.

View File

@ -2,6 +2,8 @@
by Oleg Andreev [2017/12/10](https://oleganza.com/all/bitcoin-is-like/)
<LanguageDropdown/>
**Bitcoin oya fa oshimaliwa shokoomuma:** Ihayi vulu okuningululwa, ongwee mwene wuna oshinakugwanitha shoku yi takamitha. Ngele owa kanitha ondjato yoye yiimaliwa, nena niimaliwa yoye oya kana. Oto vulu okugandja komuntu eku kwatele, ihe ngaashi ngele tosikilile nombaanga, omuntu owu na ku kala wemwiinekela kutya ita fadhuka po niimaliwa yoye.
**Bitcoin inayi fa oshimaliwa shokoomuma:** OoBitcoin oho vulu okudhisikilila odhindji ngaashi wa hala, ihe itadhi mana po ehala. Oho vulu wo okutumina kehe ngu wa hala to longitha omukalo ngoka gwapitikwa melongitho lyooBitcoin. "Iimaliwa" mbika ihayi vulu okuningwa iimaliwa yiifundja (counterfeit). Ihayi vulu so okugandjwa mosekonde yimwe, owuna manga oku tegelela oominute 10-15 Opo ewangandjo lininge uumbapila womafutilo, opo wuvule okukwashilipaleka ngele omafutilo/elanditho olya tumwa.

View File

@ -2,6 +2,8 @@
by Nik Custodio [2013/12/12](https://www.freecodecamp.org/news/explain-bitcoin-like-im-five-73b4257ac833/)
<LanguageDropdown/>
### If you still cant figure out what the heck a bitcoin is…
Otwa kalomutumba poshipundi meshala lyomainyanyudho. Esiku ewanawa shili.

View File

@ -2,4 +2,6 @@
by GameKyuubi [2013/12/18](https://bitcointalk.org/index.php?topic=375643.0)
<LanguageDropdown/>
I type d that tyitle twice because I knew it was wrong the first time. Still wrong. w/e. GF's out at a lesbian bar, BTC crashing WHY AM I HOLDING? I'LL TELL YOU WHY. It's because I'm a bad trader and I KNOW I'M A BAD TRADER. Yeah you good traders can spot the highs and the lows pit pat piffy wing wong wang just like that and make a millino bucks sure no problem bro. Likewise the weak hands are like OH NO IT'S GOING DOWN I'M GONNA SELL he he he and then they're like OH GOD MY ASSHOLE when the SMART traders who KNOW WHAT THE FUCK THEY'RE DOING buy back in but you know what? I'm not part of that group. When the traders buy back in I'm already part of the market capital so GUESS WHO YOU'RE CHEATING day traders NOT ME~! Those taunt threads saying "OHH YOU SHOULD HAVE SOLD" YEAH NO SHIT. NO SHIT I SHOULD HAVE SOLD. I SHOULD HAVE SOLD MOMENTS BEFORE EVERY SELL AND BOUGHT MOMENTS BEFORE EVERY BUY BUT YOU KNOW WHAT NOT EVERYBODY IS AS COOL AS YOU. You only sell in a bear market if you are a good day trader or an illusioned noob. The people inbetween hold. In a zero-sum game such as this, traders can only take your money if you sell.

View File

@ -1,6 +1,8 @@
# Exonumia Translations
- [Welcome to Bitcoin](/)
- [Explain Bitcoin Like I'm Five](/explain-bitcoin-like-im-five)
- [Bitcoin Is Like](/bitcoin-is-like)
- [I AM HODLING](/i-am-hodling)
<LanguageDropdown/>
- [Welcome to Bitcoin](/ng/)
- [Fatulula Bitcoin ndafa ndina oomvula ntano](/ng/explain-bitcoin-like-im-five)
- [Bitcoin oya fa](/ng/bitcoin-is-like)
- [I AM HODLING](/ng/i-am-hodling)

View File

@ -1,4 +1,6 @@
# Welcome to Bitcoin, newcomers!
<LanguageDropdown/>
### Here's your FAQ:
Q: Who should I trust?

View File

@ -1,3 +1,5 @@
# About Exonumia
<LanguageDropdown/>
The study of currency.

View File

@ -2,6 +2,8 @@
by Oleg Andreev [2017/12/10](https://oleganza.com/all/bitcoin-is-like/)
<LanguageDropdown/>
**I-Bitcoin ifana nemali ebonakalako:** akukghonakali ukuthi uyibusele emuva godu nguwe onesibopho sokuyitjheja. Nawulahla isikhwama sakho semali, ulahla imali yakho. Unganikela omunye umuntu ama-bitcoin ukuthi akubambele wona, kodwana kuzkufana nebhanga: kumele ubathembe ukuthi angekhe babaleke nemali yakho.
**I-Bitcoin ayifani nemali ebonakalako:** ungayibulunga ngobunengi ofuna ngakho angekhe idle isikhala. Ungayithumela komunye nomunye umuntu. Akukghonakali ukuthi ibe sikhohliso. Angekhe uyinikele umzuzwana: ukwenza isiqiniseko ukuthi ithumelekile, kumele ulinde imizuzu elithjumi kufikela emizuzwini elitjhumi nahlanu ukuze uthole ubufakazi obukhiqizwa lithungelelwano.

View File

@ -2,6 +2,8 @@
ngo Nik Custodio [2013/12/12](https://www.freecodecamp.org/news/explain-bitcoin-like-im-five-73b4257ac833/)
<LanguageDropdown/>
### Nangabe nanje awazi bonyana i-Bitcoin yini …
Sihlezi phezu kwebhanga ephageni. Ilanga lihle.

View File

@ -2,4 +2,6 @@
by GameKyuubi [2013/12/18](https://bitcointalk.org/index.php?topic=375643.0)
<LanguageDropdown/>
I type d that tyitle twice because I knew it was wrong the first time. Still wrong. w/e. GF's out at a lesbian bar, BTC crashing WHY AM I HOLDING? I'LL TELL YOU WHY. It's because I'm a bad trader and I KNOW I'M A BAD TRADER. Yeah you good traders can spot the highs and the lows pit pat piffy wing wong wang just like that and make a millino bucks sure no problem bro. Likewise the weak hands are like OH NO IT'S GOING DOWN I'M GONNA SELL he he he and then they're like OH GOD MY ASSHOLE when the SMART traders who KNOW WHAT THE FUCK THEY'RE DOING buy back in but you know what? I'm not part of that group. When the traders buy back in I'm already part of the market capital so GUESS WHO YOU'RE CHEATING day traders NOT ME~! Those taunt threads saying "OHH YOU SHOULD HAVE SOLD" YEAH NO SHIT. NO SHIT I SHOULD HAVE SOLD. I SHOULD HAVE SOLD MOMENTS BEFORE EVERY SELL AND BOUGHT MOMENTS BEFORE EVERY BUY BUT YOU KNOW WHAT NOT EVERYBODY IS AS COOL AS YOU. You only sell in a bear market if you are a good day trader or an illusioned noob. The people inbetween hold. In a zero-sum game such as this, traders can only take your money if you sell.

View File

@ -1,6 +1,8 @@
# Exonumia Translations
- [Welcome to Bitcoin](/)
- [Explain Bitcoin Like I'm Five](/explain-bitcoin-like-im-five)
- [Bitcoin Is Like](/bitcoin-is-like)
- [I AM HODLING](/i-am-hodling)
<LanguageDropdown/>
- [Welcome to Bitcoin](/nr/)
- [Ngihlathululela i-Bitcoin Ngathi Ngineminyaka Emihlanu](/nr/explain-bitcoin-like-im-five)
- [I-Bitcoin Ifana Njenge](/nr/bitcoin-is-like)
- [I AM HODLING](/nr/i-am-hodling)

View File

@ -1,5 +1,7 @@
# Exonumia Translations
<LanguageDropdown/>
- [Welcome to Bitcoin](/)
- [Explain Bitcoin Like I'm Five](/explain-bitcoin-like-im-five)
- [Bitcoin Is Like](/bitcoin-is-like)

View File

@ -1,6 +1,6 @@
# Exonumia Translations
- [Welcome to Bitcoin](/)
- [Explain Bitcoin Like I'm Five](/explain-bitcoin-like-im-five)
- [Bitcoin Is Like](/bitcoin-is-like)
- [I AM HODLING](/i-am-hodling)
- [Welcome to Bitcoin](/ve/)
- [Talutshedzani Bitcoin unga ni khou amba na nwana wa minwaha mitanu](/ve/explain-bitcoin-like-im-five)
- [Bitcoin Is Like](/ve/bitcoin-is-like)
- [I AM HODLING](/ve/i-am-hodling)

6
package-lock.json generated
View File

@ -3640,9 +3640,9 @@
"dev": true
},
"electron-to-chromium": {
"version": "1.3.350",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.350.tgz",
"integrity": "sha512-j2ge29AfeTXhlL1OyIIEuprvCEmxoW4tN52A/FiZ9PyXV427RxAQXpj2seCX9rnYExpOpuv4gbM3I9A7MM2hng==",
"version": "1.3.351",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.351.tgz",
"integrity": "sha512-L8zhV8k7Znp2q3wWXYDzCyfTBeGauEX0rX/FtgmnDgmvHRqwu9NVN614wOkXx9sDZmJZpNMBaEFMXTu/vbr+Kg==",
"dev": true
},
"elliptic": {