From 1d44b84e4ae4b4b45e2fecb3254ac9cad5dacd93 Mon Sep 17 00:00:00 2001 From: Riccardo Spagni Date: Sat, 21 Feb 2015 13:02:12 +0200 Subject: [PATCH] moneropedia changes and fixes --- _includes/footer.html | 8 ++++++ _plugins/moneropedia.rb | 2 +- _plugins/plugin.rb | 7 +++++ _strings_en.yml | 32 +++++++++-------------- home.php | 6 ++--- knowledge-base/moneropedia/account.md | 12 ++++----- knowledge-base/moneropedia/block.md | 2 +- knowledge-base/moneropedia/blockchain.md | 9 +++++++ knowledge-base/moneropedia/change.md | 9 +++++++ knowledge-base/moneropedia/transaction.md | 2 +- knowledge-base/moneropedia/unlocktime.md | 9 +++++++ 11 files changed, 66 insertions(+), 32 deletions(-) create mode 100644 knowledge-base/moneropedia/blockchain.md create mode 100644 knowledge-base/moneropedia/change.md create mode 100644 knowledge-base/moneropedia/unlocktime.md diff --git a/_includes/footer.html b/_includes/footer.html index c7ca4dcf..4ade859c 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -16,4 +16,12 @@ $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip(); }); + + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) + })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); + + ga('create', 'UA-53312765-1', 'auto'); + ga('send', 'pageview'); \ No newline at end of file diff --git a/_plugins/moneropedia.rb b/_plugins/moneropedia.rb index 40dfe469..631d9120 100644 --- a/_plugins/moneropedia.rb +++ b/_plugins/moneropedia.rb @@ -54,7 +54,7 @@ module Jekyll # replace instances of @term with tooltips of the summary @@moneropedia.each do |entry| entry[:terms].each do |term| - content = content.gsub(/(\@#{term})\b/i, '' + term + '') + content = content.gsub(/(\@#{term})\b/i, '' + term.gsub('-',' ') + '') end end diff --git a/_plugins/plugin.rb b/_plugins/plugin.rb index 04368858..d6d3487f 100644 --- a/_plugins/plugin.rb +++ b/_plugins/plugin.rb @@ -36,6 +36,13 @@ module Jekyll if translation.nil? || translation.empty? Jekyll.logger.abort_with "Missing key: #{key}" end + + # If we have an @, pass the string through the markdown converter, so that we hit the Moneropedia plugin + if translation.include? '@' + converter = site.getConverterImpl(::Jekyll::Converters::Markdown) + translation = converter.convert(translation)[3..-6] + end + translation end end diff --git a/_strings_en.yml b/_strings_en.yml index 1ccf9cda..19a1eb6d 100644 --- a/_strings_en.yml +++ b/_strings_en.yml @@ -42,7 +42,8 @@ menu: irc-mining: "#monero-pools (Mining)" index: page_title: "Monero - secure, private, untraceable" - what_is: What is + what_is_1: What is + what_is_2: " ?" what_is_orange_block: "Monero is a secure, private, untraceable currency that is open-source and freely available to all." what_is_text_block_1: "You are your own bank, you control and are responsible for your funds, and nobody can trace your transfers." what_is_text_block_2: "Want to find out more? An overview of Monero's main features are below, and if you'd like to try Monero for yourself the" @@ -50,36 +51,27 @@ index: what_is_text_block_4: "section is an excellent launching point." news: News the_latest: The Latest - date_1: July 6th - date_2: July 27th - news_1: "Monero Missive #5" - news_2: "Monero Missive #4" - news_text_1: "includes an update on new features (rpcwallet and properly daemonizing the daemon) that are ready for testing." - news_text_2: "includes fluffypony at the Bitcoin Supernode conference, as well as major changes to keep the Monero daemon and wallet a lot more stable and reliable." private: Private secure: Secure untraceable: Untraceable - private_text: "Monero uses a cryptographically sound system to allow you to send and receive funds without your transactions being easily revealed on the blockchain (the ledger of transactions that everyone has). This ensures that your purchases, receipts, and all transfers remain absolutely private by default." - untraceable_text: "By taking advantage of ring signatures, a special property of certain types of cryptography, Monero is able to ensure that transactions are not only untraceable, but have an optional measure of ambiguity that ensures that transactions cannot easily be tied back to an individual user or computer." - secure_text: "Using the power of a distributed peer-to-peer consensus network, every transaction on the network is cryptographically secured. Individual wallets have a 24 word mnemonic that is only displayed once, and can be written down to backup the wallet. Wallet files are encrypted with a passphrase to ensure they are useless if stolen." - why_use: Why use - why_1: "It's private by default, optionally transparent (just like cash!) - the details of individual transactions, or even of an entire wallet, can be revealed publicly or privately" - why_2: "It has a a strong core team actively developing Monero, along with an amazing group of of mathematicians, cryptographers, developers, and marketing specialists actively working on it" - why_3: "A great deal of focus has been placed on improving the usability of Monero, with the aim of providing a cryptocurrency that is more readily accessible to end users" - why_4: "It was launched fairly and evenly, with no single entity unfairly controlling any significant amount of Monero or providing any sort of unfair advantage (such as an 'instamine' or 'premine')" - how_do_i: "How do I " + private_text: "Monero uses a cryptographically sound system to allow you to send and receive funds without your @transactions being easily revealed on the @blockchain (the distributed ledger of transactions). This ensures that your purchases, receipts, and all transfers remain absolutely private by default." + untraceable_text: "By taking advantage of @ring-signatures, a special property of certain types of cryptography, Monero is able to ensure that transactions are not only untraceable, but have an optional measure of ambiguity that ensures that transactions cannot easily be tied back to an individual user or computer." + secure_text: "Using the power of a distributed peer-to-peer @consensus network, every transaction on the network is cryptographically secured. Individual @accounts have a 25 word @mnemonic-seed that is only displayed once, and can be written down to backup the @account. Account files are encrypted with a passphrase to ensure they are useless if stolen." + how_do_i_1: "How do I " + how_do_i_2: " ?" get_started: get started - get_started_1: "The fastest way to start using Monero is by using a web wallet such as " + get_started_1: "The fastest way to start using Monero is by using a web @account manager such as " mymonero: "MyMonero" get_started_2: "." - get_started_3: "Alternatively, if you would like to run a full Monero node you can download the client and a kick-starter blockchain (to bring your local client up to speed) using the download link on the right." + get_started_3: "Alternatively, if you would like to run a [full Monero node](/getting-started/running) you can download the client and a kick-starter @blockchain (to bring your local client up to speed) using the download link on the right." where_can_i: Where can I - download: download + download_1: download + download_2: " ?" different_os: "Need it for a different operating system?" all_downloads: View all available downloads here c_download: Download monero_for: Monero for - latest_blockchain: Latest Blockchain + latest_blockchain: Latest @Blockchain blog: title_1: All title_2: Blog diff --git a/home.php b/home.php index 3b66925a..47b57db3 100644 --- a/home.php +++ b/home.php @@ -7,7 +7,7 @@ Title: Home
-

{% t index.what_is %} {% t global.monero %} ?

+

{% t index.what_is_1 %} {% t global.monero %} {% t index.what_is_2 %}

{% t index.what_is_orange_block %}

{% t index.what_is_text_block_1 %}

{% t index.what_is_text_block_2 %} {% t global.getting_started %} {% t index.what_is_text_block_4 %}
@@ -56,7 +56,7 @@ Title: Home

- {% t index.how_do_i %}
{% t index.get_started %} ? + {% t index.how_do_i_1 %}
{% t index.get_started %} {% t index.how_do_i_2 %}

{% t index.get_started_1 %}{% t index.mymonero %}{% t index.get_started_2 %}

{% t index.get_started_3 %}

@@ -64,7 +64,7 @@ Title: Home
-

{% t index.where_can_i %} {% t index.download %} {% t global.monero %} ?

+

{% t index.where_can_i %} {% t index.download_1 %} {% t global.monero %} {% t index.download_2 %}