Commit 38b31f51 authored by Riccardo Spagni's avatar Riccardo Spagni
Browse files

Merge branch 'Moneropedia-patch' into 'master'

Moneropedia localization fix

See merge request monero-project/monero-site!903
parents b118de6c d98012f8
---
entry: "Klucz widoczności"
terms: ["view-key", "view-keys", "klucz-widoczności", "klucza-widoczności", "kluczem-widoczności"]
summary: "Jeden z dwóch rodzajów prywanych i publicznych kluczy kryptograficznych przypisanych do każdego konta. Prywatny klucz widoczności jest wymagany do wyświetlenia wszystkich transakcji danego konta."
---
......
---
entry: "Portfel"
terms: ["wallet", "wallets", "portfel", "portfela"]
summary: "Portfel przechowuje informacje niezbędne do wysyłania i otrzymywanie Monero."
---
......
---
layout: base
---
<h1 class="text-center">{{page.title}}</h1>
<h1 class="text-center">{% t page.title %}</h1>
<div class="site-wrap">
<!-- FULL WIDTH BLOCK -->
<section class="container full">
<div class="info-block text-adapt">
<h2>{{page.entry}}</h2>
<h2>{% t page.entry %}</h2>
<div>
{{content}}
</div>
......
......@@ -33,6 +33,7 @@ module Jekyll
@@moneropedia = Hash.new
@@moneropedia_ordered = Hash.new
@@language = Array.new
@@localConfig = Hash.new
def convert(content)
# Building language from config
......@@ -42,6 +43,8 @@ module Jekyll
# Each country code has its own hash
@@moneropedia[lang] = Array.new
@@moneropedia_ordered[lang] = Hash.new
@@localConfig[lang] = Hash.new
@@localConfig[lang] = SafeYAML.load_file(File.join(@config["source"], "/_i18n/", lang + ".yml"))
end
end
......@@ -60,8 +63,10 @@ module Jekyll
entry = SafeYAML.load_file(entry_file)
if !entry.empty?
@@moneropedia[lang].push({ :terms => entry['terms'], :summary => entry['summary'], :file => File.basename(entry_file, ".*") })
@@moneropedia_ordered[lang] = @@moneropedia_ordered[lang].merge({ entry['entry'] => File.basename(entry_file, ".*") })
baseName = File.basename(entry_file, ".*")
displayName = @@localConfig[lang]["moneropedia"]["entries"][baseName]
@@moneropedia[lang].push({ :terms => entry['terms'], :summary => entry['summary'], :file => baseName })
@@moneropedia_ordered[lang] = @@moneropedia_ordered[lang].merge({ displayName => baseName })
end
end
......
---
layout: moneropedia
title: titles.moneropedia
entry: moneropedia.entries.00
---
@moneropedia_article
......
---
layout: moneropedia
title: titles.moneropedia
entry: moneropedia.entries.account
---
@moneropedia_article
......
---
layout: moneropedia
title: titles.moneropedia
entry: moneropedia.entries.address-book
---
@moneropedia_article
......
---
layout: moneropedia
title: titles.moneropedia
entry: moneropedia.entries.address
---
@moneropedia_article
......
---
layout: moneropedia
title: titles.moneropedia
entry: moneropedia.entries.airgap
---
@moneropedia_article
......
---
layout: moneropedia
title: titles.moneropedia
entry: moneropedia.entries.atomic-units
---
@moneropedia_article
......
---
layout: moneropedia
title: titles.moneropedia
entry: moneropedia.entries.base32-address
---
@moneropedia_article
......
---
layout: moneropedia
title: titles.moneropedia
entry: moneropedia.entries.base64-address
---
@moneropedia_article
......
---
layout: moneropedia
title: titles.moneropedia
entry: moneropedia.entries.block
---
@moneropedia_article
......
---
layout: moneropedia
title: titles.moneropedia
entry: moneropedia.entries.blockchain
---
@moneropedia_article
......
---
layout: moneropedia
title: titles.moneropedia
entry: moneropedia.entries.bootstrap-node
---
@moneropedia_article
......
---
layout: moneropedia
title: titles.moneropedia
entry: moneropedia.entries.canonically-unique-host
---
@moneropedia_article
......
---
layout: moneropedia
title: titles.moneropedia
entry: moneropedia.entries.change
---
@moneropedia_article
......
---
layout: moneropedia
title: titles.moneropedia
entry: moneropedia.entries.clearnet
---
@moneropedia_article
......
---
layout: moneropedia
title: titles.moneropedia
entry: moneropedia.entries.coinbase
---
@moneropedia_article
......
---
layout: moneropedia
title: titles.moneropedia
entry: moneropedia.entries.consensus
---
@moneropedia_article
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment