From 45b4539e01bfc6d830095c01330094c68e65c264 Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Tue, 5 Nov 2019 23:34:23 -0800 Subject: [PATCH] Translation: Use native category titles --- assets/css/fonts-ja.css | 8 ++--- dactyl-config.yml | 62 +++++++++++++++++++++++++++++++--- tool/template-sidebar_nav.html | 21 +++++++----- 3 files changed, 74 insertions(+), 17 deletions(-) diff --git a/assets/css/fonts-ja.css b/assets/css/fonts-ja.css index f629f8f5a3..5687d791cc 100644 --- a/assets/css/fonts-ja.css +++ b/assets/css/fonts-ja.css @@ -1,5 +1,3 @@ -/* TODO: trim this down to just the font(s) we want to use for Japanese. */ - /* "Makinas" free font by Mojiwaku Kenkyuu. もじワク研究からの「マキナス」フォント @@ -24,10 +22,11 @@ https://moji-waku.com/makinas/index.html } +/* Other Japanese fonts unused for now */ /* 851ゴチカクット フォント (http://pm85122.onamae.jp/851Gkktt.html から) 作成者の8:51:22pmさんに感謝 -*/ + @font-face { font-family: '851Gkktt'; font-style: normal; @@ -38,7 +37,7 @@ https://moji-waku.com/makinas/index.html } -/* M+ 1p from Google Fonts (unicode range simplified a bit) */ +/* M+ 1p from Google Fonts (unicode range simplified a bit) @font-face { font-family: 'M PLUS 1p'; font-style: normal; @@ -56,3 +55,4 @@ https://moji-waku.com/makinas/index.html src: local('M PLUS 1p Bold'), local('MPLUS1p-Bold'), url(https://fonts.gstatic.com/s/mplus1p/v19/e3tmeuShHdiFyPFzBRrQRBEgfivGoOYmg_dUa_BuiDU9F33s7CtHVU4.0.woff2) format('woff2'); unicode-range: U+20, U+3001-30fe, U+4e00-9faf, U+ff00-ffef; } +*/ diff --git a/dactyl-config.yml b/dactyl-config.yml index f70053ec03..ca18f8be44 100644 --- a/dactyl-config.yml +++ b/dactyl-config.yml @@ -171,7 +171,7 @@ targets: learn: head: "Learn How It Works" #TODO:translate about_xrp: "XRPについて" - cta: "全概念" + cta: "全コンセプト" read_docs: head: "ドキュメントを読む" full_doc_index: "全ドキュメント目次" @@ -353,7 +353,7 @@ pages: targets: - en - - name: 概念 + - name: コンセプト funnel: Docs doc_type: Concepts html: concepts.html @@ -464,6 +464,15 @@ pages: blurb: One of the primary purposes of the XRP Ledger is payment processing. Learn more about key concepts that will help you understand the XRP Ledger payment system. #TODO:translate targets: - en + + - name: 支払いシステムの基本 + html: payment-system-basics.html + funnel: Docs + doc_type: Concepts + category: Payment System Basics + template: template-landing-children.html + blurb: One of the primary purposes of the XRP Ledger is payment processing. Learn more about key concepts that will help you understand the XRP Ledger payment system. #TODO:translate + targets: - ja - md: concepts/payment-system-basics/accounts/accounts.md @@ -679,9 +688,18 @@ pages: doc_type: Concepts category: Payment Types template: template-landing-children.html - blurb: The XRP Ledger supports point-to-point XRP payments alongside other, more specialized payment types. #TODO:translate + blurb: The XRP Ledger supports point-to-point XRP payments alongside other, more specialized payment types. targets: - en + + - name: 支払いのタイプ + html: payment-types.html + funnel: Docs + doc_type: Concepts + category: Payment Types + template: template-landing-children.html + blurb: The XRP Ledger supports point-to-point XRP payments alongside other, more specialized payment types. #TODO:translate + targets: - ja # Redirect from the old landing name/URL @@ -807,6 +825,15 @@ pages: blurb: All currencies other than XRP can be represented in the XRP Ledger as issued currencies. Learn more about how issued currencies function in the XRP Ledger. #TODO:translate targets: - en + + - name: 発行済み通貨 + html: issued-currencies.html + funnel: Docs + doc_type: Concepts + category: Issued Currencies + template: template-landing-children.html + blurb: All currencies other than XRP can be represented in the XRP Ledger as issued currencies. Learn more about how issued currencies function in the XRP Ledger. #TODO:translate + targets: - ja - md: concepts/issued-currencies/issued-currencies-overview.md @@ -972,6 +999,15 @@ pages: blurb: The XRP Ledger contains a fully-functional exchange where users can trade issued currencies for XRP or each other. #TODO:translate targets: - en + + - name: 分散型取引所 + html: decentralized-exchange.html + funnel: Docs + doc_type: Concepts + category: Decentralized Exchange + template: template-landing-children.html + blurb: The XRP Ledger contains a fully-functional exchange where users can trade issued currencies for XRP or each other. #TODO:translate + targets: - ja - md: concepts/decentralized-exchange/offers.md @@ -1037,6 +1073,15 @@ pages: blurb: The XRP Ledger uses a consensus algorithm to resolve the double spend problem and choose which transactions to execute in which order. Consensus also governs rules of transaction processing. #TODO:translate targets: - en + + - name: コンセンサスネットワーク + html: consensus-network.html + funnel: Docs + doc_type: Concepts + category: Consensus Network + template: template-landing-children.html + blurb: The XRP Ledger uses a consensus algorithm to resolve the double spend problem and choose which transactions to execute in which order. Consensus also governs rules of transaction processing. #TODO:translate + targets: - ja - md: concepts/consensus-network/consensus.md @@ -1240,9 +1285,18 @@ pages: doc_type: Concepts category: The rippled Server template: template-landing-children.html - blurb: rippled is the core peer-to-peer server that manages the XRP Ledger. This section covers concepts that help you learn the "what" and "why" behind fundamental aspects of the rippled server. #TODO:translate + blurb: rippled is the core peer-to-peer server that manages the XRP Ledger. This section covers concepts that help you learn the "what" and "why" behind fundamental aspects of the rippled server. targets: - en + + - name: rippledサーバー + html: the-rippled-server.html + funnel: Docs + doc_type: Concepts + category: The rippled Server + template: template-landing-children.html + blurb: rippled is the core peer-to-peer server that manages the XRP Ledger. This section covers concepts that help you learn the "what" and "why" behind fundamental aspects of the rippled server. #TODO:translate + targets: - ja - md: concepts/the-rippled-server/rippled-server-modes.md diff --git a/tool/template-sidebar_nav.html b/tool/template-sidebar_nav.html index 247817740e..51ee9ce5b8 100644 --- a/tool/template-sidebar_nav.html +++ b/tool/template-sidebar_nav.html @@ -10,25 +10,28 @@ {% if use_page.supercategory is defined %}
{% if use_page == (pages|selectattr('supercategory', 'defined_and_equalto', use_page.supercategory)|first) %} - {{ use_page.supercategory }} + {{ use_page.name }} {% else %} - {{ use_page.supercategory }} + {% set parent_page = (pages|selectattr('supercategory', 'defined_and_equalto', use_page.supercategory)|first) %} + {{ parent_page.name }} {% endif %}
{% elif use_page.doc_type is defined %}
{% if use_page == (pages|selectattr('doc_type', 'defined_and_equalto', use_page.doc_type)|first) %} - {{ use_page.doc_type }} + {{ use_page.name }} {% else %} - {{ use_page.doc_type }} + {% set parent_page = (pages|selectattr('doc_type', 'defined_and_equalto', use_page.doc_type)|first) %} + {{ parent_page.name }} {% endif %}
{% elif use_page.funnel is defined %}
{% if use_page == (pages|selectattr('funnel', 'defined_and_equalto', use_page.funnel)|first) %} - {{ use_page.funnel }} + {{ use_page.name }} {% else %} - {{ use_page.funnel }} + {% set parent_page = (pages|selectattr('funnel', 'defined_and_equalto', use_page.funnel)|first) %} + {{ parent_page.name }} {% endif %}
{% endif %} @@ -79,7 +82,7 @@ {% endif %}
- {{ cat }} + {{ cat_parent.name }}
@@ -152,7 +155,7 @@ {% endif %}
- {{ supercat }} + {{ supercat_parent.name }}
@@ -203,7 +206,7 @@ {% endif %}
- {{ cat }} + {{ cat_parent.name }}