Translation: Use native category titles

This commit is contained in:
mDuo13
2019-11-05 23:34:23 -08:00
parent 2bfe9e574b
commit 45b4539e01
3 changed files with 74 additions and 17 deletions

View File

@@ -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. "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 から) 851ゴチカクット フォント (http://pm85122.onamae.jp/851Gkktt.html から)
作成者の8:51:22pmさんに感謝 作成者の8:51:22pmさんに感謝
*/
@font-face { @font-face {
font-family: '851Gkktt'; font-family: '851Gkktt';
font-style: normal; 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-face {
font-family: 'M PLUS 1p'; font-family: 'M PLUS 1p';
font-style: normal; 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'); 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; unicode-range: U+20, U+3001-30fe, U+4e00-9faf, U+ff00-ffef;
} }
*/

View File

@@ -171,7 +171,7 @@ targets:
learn: learn:
head: "Learn How It Works" #TODO:translate head: "Learn How It Works" #TODO:translate
about_xrp: "XRPについて" about_xrp: "XRPについて"
cta: "全概念" cta: "全コンセプト"
read_docs: read_docs:
head: "ドキュメントを読む" head: "ドキュメントを読む"
full_doc_index: "全ドキュメント目次" full_doc_index: "全ドキュメント目次"
@@ -353,7 +353,7 @@ pages:
targets: targets:
- en - en
- name: 概念 - name: コンセプト
funnel: Docs funnel: Docs
doc_type: Concepts doc_type: Concepts
html: concepts.html 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 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: targets:
- en - 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 - ja
- md: concepts/payment-system-basics/accounts/accounts.md - md: concepts/payment-system-basics/accounts/accounts.md
@@ -679,9 +688,18 @@ pages:
doc_type: Concepts doc_type: Concepts
category: Payment Types category: Payment Types
template: template-landing-children.html 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: targets:
- en - 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 - ja
# Redirect from the old landing name/URL # 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 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: targets:
- en - 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 - ja
- md: concepts/issued-currencies/issued-currencies-overview.md - 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 blurb: The XRP Ledger contains a fully-functional exchange where users can trade issued currencies for XRP or each other. #TODO:translate
targets: targets:
- en - 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 - ja
- md: concepts/decentralized-exchange/offers.md - 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 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: targets:
- en - 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 - ja
- md: concepts/consensus-network/consensus.md - md: concepts/consensus-network/consensus.md
@@ -1240,9 +1285,18 @@ pages:
doc_type: Concepts doc_type: Concepts
category: The rippled Server category: The rippled Server
template: template-landing-children.html 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: targets:
- en - 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 - ja
- md: concepts/the-rippled-server/rippled-server-modes.md - md: concepts/the-rippled-server/rippled-server-modes.md

View File

@@ -10,25 +10,28 @@
{% if use_page.supercategory is defined %} {% if use_page.supercategory is defined %}
<div class="sidenav_parent"> <div class="sidenav_parent">
{% if use_page == (pages|selectattr('supercategory', 'defined_and_equalto', use_page.supercategory)|first) %} {% if use_page == (pages|selectattr('supercategory', 'defined_and_equalto', use_page.supercategory)|first) %}
<a href="{{ link_prefix}}{{ use_page.html }}">{{ use_page.supercategory }}</a> <a href="{{ link_prefix}}{{ use_page.html }}">{{ use_page.name }}</a>
{% else %} {% else %}
<a href="{{ link_prefix}}{{ (pages|selectattr('supercategory', 'defined_and_equalto', use_page.supercategory)|first).html }}"> {{ use_page.supercategory }}</a> {% set parent_page = (pages|selectattr('supercategory', 'defined_and_equalto', use_page.supercategory)|first) %}
<a href="{{ link_prefix}}{{ parent_page.html }}"> {{ parent_page.name }}</a>
{% endif %} {% endif %}
</div> </div>
{% elif use_page.doc_type is defined %} {% elif use_page.doc_type is defined %}
<div class="sidenav_parent"> <div class="sidenav_parent">
{% if use_page == (pages|selectattr('doc_type', 'defined_and_equalto', use_page.doc_type)|first) %} {% if use_page == (pages|selectattr('doc_type', 'defined_and_equalto', use_page.doc_type)|first) %}
<a href="{{ link_prefix}}{{ use_page.html }}">{{ use_page.doc_type }}</a> <a href="{{ link_prefix}}{{ use_page.html }}">{{ use_page.name }}</a>
{% else %} {% else %}
<a href="{{ link_prefix}}{{ (pages|selectattr('doc_type', 'defined_and_equalto', use_page.doc_type)|first).html }}"> {{ use_page.doc_type }}</a> {% set parent_page = (pages|selectattr('doc_type', 'defined_and_equalto', use_page.doc_type)|first) %}
<a href="{{ link_prefix}}{{ parent_page.html }}"> {{ parent_page.name }}</a>
{% endif %} {% endif %}
</div> </div>
{% elif use_page.funnel is defined %} {% elif use_page.funnel is defined %}
<div class="sidenav_parent"> <div class="sidenav_parent">
{% if use_page == (pages|selectattr('funnel', 'defined_and_equalto', use_page.funnel)|first) %} {% if use_page == (pages|selectattr('funnel', 'defined_and_equalto', use_page.funnel)|first) %}
<a href="{{ link_prefix}}{{ use_page.html }}">{{ use_page.funnel }}</a> <a href="{{ link_prefix}}{{ use_page.html }}">{{ use_page.name }}</a>
{% else %} {% else %}
<a href="{{ link_prefix}}{{ (pages|selectattr('funnel', 'defined_and_equalto', use_page.funnel)|first).html }}"> {{ use_page.funnel }}</a> {% set parent_page = (pages|selectattr('funnel', 'defined_and_equalto', use_page.funnel)|first) %}
<a href="{{ link_prefix}}{{ parent_page.html }}"> {{ parent_page.name }}</a>
{% endif %} {% endif %}
</div> </div>
{% endif %} {% endif %}
@@ -79,7 +82,7 @@
<a class="{% if use_page.category is undefined or use_page.category != cat %}collapsed {% endif %}sidenav_cat_toggler" role="button" data-toggle="collapse" href="#sidenav_collapse_{{loop.index}}" aria-expanded="true" aria-controls="sidenav_collapse_{{loop.index}}"></a> <a class="{% if use_page.category is undefined or use_page.category != cat %}collapsed {% endif %}sidenav_cat_toggler" role="button" data-toggle="collapse" href="#sidenav_collapse_{{loop.index}}" aria-expanded="true" aria-controls="sidenav_collapse_{{loop.index}}"></a>
{% endif %} {% endif %}
<h5 class="card-title"> <h5 class="card-title">
<a class="sidenav_cat_title{% if use_page == (cat_parent) %} active{% elif use_page.category is defined and use_page.category == cat %} active-parent{% endif %}" href="{{ link_prefix}}{{ cat_parent.html }}">{{ cat }}</a> <a class="sidenav_cat_title{% if use_page == (cat_parent) %} active{% elif use_page.category is defined and use_page.category == cat %} active-parent{% endif %}" href="{{ link_prefix}}{{ cat_parent.html }}">{{ cat_parent.name }}</a>
</h5> </h5>
</div><!-- /.card-header --> </div><!-- /.card-header -->
@@ -152,7 +155,7 @@
<a class="collapsed sidenav_cat_toggler" role="button" data-toggle="collapse" href="#sidenav_collapse_{{loop.index}}" aria-expanded="true" aria-controls="sidenav_collapse_{{loop.index}}"></a> <a class="collapsed sidenav_cat_toggler" role="button" data-toggle="collapse" href="#sidenav_collapse_{{loop.index}}" aria-expanded="true" aria-controls="sidenav_collapse_{{loop.index}}"></a>
{% endif %} {% endif %}
<h5 class="card-title"> <h5 class="card-title">
<a class="sidenav_cat_title" href="{{ link_prefix}}{{ supercat_parent.html }}">{{ supercat }}</a> <a class="sidenav_cat_title" href="{{ link_prefix}}{{ supercat_parent.html }}">{{ supercat_parent.name }}</a>
</h5> </h5>
</div><!-- /.card-header --> </div><!-- /.card-header -->
@@ -203,7 +206,7 @@
<a class="{% if use_page.category is undefined or use_page.category != cat %}collapsed {% endif %}sidenav_cat_toggler" role="button" data-toggle="collapse" href="#sidenav_collapse_{{loop.index}}" aria-expanded="true" aria-controls="sidenav_collapse_{{loop.index}}"></a> <a class="{% if use_page.category is undefined or use_page.category != cat %}collapsed {% endif %}sidenav_cat_toggler" role="button" data-toggle="collapse" href="#sidenav_collapse_{{loop.index}}" aria-expanded="true" aria-controls="sidenav_collapse_{{loop.index}}"></a>
{% endif %} {% endif %}
<h5 class="card-title"> <h5 class="card-title">
<a class="sidenav_cat_title{% if use_page == (cat_parent) %} active{% elif use_page.category is defined and use_page.category == cat %} active-parent{% endif %}" href="{{ link_prefix}}{{ cat_parent.html }}">{{ cat }}</a> <a class="sidenav_cat_title{% if use_page == (cat_parent) %} active{% elif use_page.category is defined and use_page.category == cat %} active-parent{% endif %}" href="{{ link_prefix}}{{ cat_parent.html }}">{{ cat_parent.name }}</a>
<!-- <a class="sidenav_cat_title" href="{{ link_prefix}}{{ cat_parent.html }}">{{ cat }}</a> --> <!-- <a class="sidenav_cat_title" href="{{ link_prefix}}{{ cat_parent.html }}">{{ cat }}</a> -->
</h5> </h5>
</div><!-- /.card-header --> </div><!-- /.card-header -->