From ba9ccf3b34c050a2da4de71ed0089139efa8f1b6 Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Mon, 4 Nov 2019 14:57:51 -0800 Subject: [PATCH] Start template translation work --- dactyl-config.yml | 63 ++++++++++++++++++++++++++++++++++ tool/template-base.html | 8 ++--- tool/template-breadcrumbs.html | 17 +++++---- tool/template-doc.html | 6 ++-- tool/template-footer.html | 10 +++--- tool/template-forpdf.html | 2 +- tool/template-github-edit.html | 2 +- tool/template-home.html | 12 +++---- 8 files changed, 94 insertions(+), 26 deletions(-) diff --git a/dactyl-config.yml b/dactyl-config.yml index 7cd54822f9..f684494c7a 100644 --- a/dactyl-config.yml +++ b/dactyl-config.yml @@ -68,12 +68,64 @@ targets: # Override them with --vars to change which fork/branch to edit. github_forkurl: https://github.com/ripple/xrpl-dev-portal github_branch: master + strings: + blog: "Blog" + search: "Search site with Google..." + bc_home: "Home" + tl_banner: + head: "Sorry, this page is not available in your language." + body: "We are making an effort to offer the XRP Ledger Dev Portal in a variety of languages, but not all pages are available in all languages. If you'd like to help, please contribute!" #TODO: have a real link for contributing translations + pagetoc: "In this document" + footer: + ripple: + careers: "Ripple Careers" + github: "Ripple on GitHub" + xrp_resources: "XRP Resources" + license: "License" + to_top: + short: "Top" + long: "Jump to top of page" + github_edit: "Edit" + home: + intro: + head: "Powering the Internet of Value." + body1: "The XRP Ledger is open-source technology that anyone can use." + body2: "Use the tools and information provided here to integrate with and contribute to the open-source platform." + subhead: "Want more?" + sub_body: "Get updates about XRP Ledger webinars, releases, and documentation!" + cta: "Sign up!" - name: ja lang: ja display_name: XRP Ledger Dev Portal (日本語) github_forkurl: https://github.com/ripple/xrpl-dev-portal github_branch: master + strings: + blog: "ブログ" + search: "このサイトをGoogleで検索" + bc_home: "ホーム" + tl_banner: + head: "も仕分けありませんがこのページは日本語では入手不可" #TODO: check translation + body: "We are making an effort to offer the XRP Ledger Dev Portal in a variety of languages, but not all pages are available in all languages. If you'd like to help, please contribute!" #TODO: translate. & have a real link for contributing translations + pagetoc: "目次" + footer: + ripple: + careers: "Ripple 採用情報" + github: "GitHubでRipple" + xrp_resources: "XRP リソース" + license: "ライセンス" + to_top: + short: "先頭へ" + long: "このページの先頭へ" + github_edit: "Edit" #TODO:translate? (This is the "Edit" button that takes you to the page on GitHub where you can edit the current file and contribute your changes back.) + home: # Text from xrpl.org/index.html + intro: + head: "価値のインターネットをパワーする。" + body1: "XRP Ledgerは誰でもが使い得るオープンソース技術。" + body2: "Use the tools and information provided here to integrate with and contribute to the open-source platform." #TODO:translate + subhead: "Want more?" #TODO:translate + sub_body: "Get updates about XRP Ledger webinars, releases, and documentation!" #TODO:translate + cta: "Sign up!" #TODO:translate - name: xrp-api-only lang: en @@ -81,6 +133,10 @@ targets: github_forkurl: https://github.com/ripple/xrpl-dev-portal github_branch: master no_cover: true + strings: + blog: "Blog" + search: "Search site with Google..." + bc_home: "Home" # Data API target for porting changes to the README in the upstream repo # Intended for use in markdown (--md) mode. @@ -102,6 +158,13 @@ pages: sidebar: disabled targets: - en + + - name: ドキュメント + funnel: Docs + template: template-landing-docs.html + html: docs.html + sidebar: disabled + targets: - ja # Concepts --------------------------------------------------------------------- diff --git a/tool/template-base.html b/tool/template-base.html index 41e84487ff..84466ccee7 100644 --- a/tool/template-base.html +++ b/tool/template-base.html @@ -44,7 +44,7 @@