From 4a73b01cdf169717eda5cac05a6a15aec7428482 Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Tue, 12 May 2020 17:59:23 -0700 Subject: [PATCH] Migrate to Dactyl v0.10 locale tools --- README.md | 70 +++++++- dactyl-config.yml | 171 +------------------- locale/babel.cfg | 5 + locale/en/LC_MESSAGES/messages.mo | Bin 0 -> 843 bytes locale/en/LC_MESSAGES/messages.po | 251 +++++++++++++++++++++++++++++ locale/ja/LC_MESSAGES/messages.mo | Bin 0 -> 5932 bytes locale/ja/LC_MESSAGES/messages.po | 258 ++++++++++++++++++++++++++++++ locale/messages.pot | 247 ++++++++++++++++++++++++++++ tool/template-base.html | 6 +- tool/template-breadcrumbs.html | 2 +- tool/template-doc.html | 7 +- tool/template-footer.html | 10 +- tool/template-github-edit.html | 2 +- tool/template-home.html | 82 +++++----- 14 files changed, 886 insertions(+), 225 deletions(-) create mode 100644 locale/babel.cfg create mode 100644 locale/en/LC_MESSAGES/messages.mo create mode 100644 locale/en/LC_MESSAGES/messages.po create mode 100644 locale/ja/LC_MESSAGES/messages.mo create mode 100644 locale/ja/LC_MESSAGES/messages.po create mode 100644 locale/messages.pot diff --git a/README.md b/README.md index cf00451f3f..618f7e7c95 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,9 @@ To build the site locally: For more details, see the [contribution guidelines](CONTRIBUTING.md). +## Domain Verification Checker -If you make changes to the [Domain Verification Checker](https://xrpl.org/validator-domain-verifier.html) tool and edit the domain-verifier-checker.js file, you will need to do the following: +If you make changes to the [Domain Verification Checker](https://xrpl.org/validator-domain-verifier.html) tool and edit the domain-verifier-checker.js file, you will need to do the following: 1. Install [webpack](https://webpack.js.org/) and required libraries via npm: @@ -35,3 +36,70 @@ If you make changes to the [Domain Verification Checker](https://xrpl.org/valida cd ../.. dactyl_build -t en + +## Locale Strings + +The templates can contain strings that are intended to be translated. These strings are marked off with `{% trans %}` and `{% endtrans %}` tags. You can't have any Jinja block control structures in these tags, but you can have some HTML markup and some basic Jinja variable-printing logic. See the [Jinja Documentation](https://jinja.palletsprojects.com/en/2.11.x/templates/#i18n-in-templates) for what's possible. + +If you make changes to these strings, or want to add or update a translation, you'll need to do some extra steps to manage the locale files. These steps require the [Babel](http://babel.pocoo.org/) (`pybabel`) commandline utility. To install it: + +```sh +sudo pip3 install Babel +``` + +You don't need Babel to build and view the site otherwise. + + +### Add a language + +This repo has English (en) and Japanese (ja) locales set up already. To add a language (do this from the repo top dir): + +```sh +$ pybabel init -l ja -i ./locale/messages.pot -o ./locale/ja/LC_MESSAGES/messages.po +``` + +Instead of `ja` (in two places in the above line!!) use the locale code for the language you plan to add. There's no exhaustive, definitive list, but [this list of locale codes](https://www.science.co.il/language/Locale-codes.php) is a good starting place. + +This creates a "PO" file (`./locale/ja/LC_MESSAGES/messages.po`) with empty translations for the strings in the templates, based on the "PO Template" file (`./locale/messages.pot`). + +To actually add translations for strings, you need to edit the new PO file for this translation. You can edit the PO file file with a text editor, or use a more advanced tool if you're a pro. Don't change the `msgid` values, _do_ change the `msgstr` values. + +When you're done translating, [compile the PO files](#compile-strings). + +### Update Strings + +If there are new or updated `{% trans %}` tags in the templates, first use this command to extract them: + +```sh +$ pybabel extract -F ./locale/babel.cfg -o ./locale/messages.pot ./ +``` + +Then, update _every_ language's `.po` files with the list of strings, as follows: + +```sh +$ pybabel update -l en -d ./locale/ -i ./locale/messages.pot +``` + +The above example is for English (`-l en`). **Repeat for each language code.** + +Now edit the PO files (for example, `locale/ja/LC_MESSAGES/messages.po`) to add translations for each newly-added string. Again, **repeat for each language.** + +If you only want to change an existing translation for a given string that hasn't changed in the original, you can skip straight to editing the PO files without running any `update` or `extract` commands. + +After you've edited all the PO files, be sure to [compile them](#compile-strings). + +***TODO: I don't know what happens if you skip a language or don't translate the new strings.*** + +### Compile Strings + +Whether you added a language, added new strings, or tweaked an existing translation, you must compile the PO files (text) to MO files (binary) to get Dactyl to use them. + +To compile all PO files: + +```sh +$ pybabel compile -f -d ./locale/ +``` + +If you added a new language for the first time, you need to make sure its target definition (in the `dactyl-config.yml` file) has the MO file in the `locale_file` field. + +After that, next time you build the site using Dactyl it should pull the updated translations! diff --git a/dactyl-config.yml b/dactyl-config.yml index de6cb22043..47c04b0707 100644 --- a/dactyl-config.yml +++ b/dactyl-config.yml @@ -68,145 +68,14 @@ 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..." - 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!" - 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!" - cards_1: - learn: - head: "Learn How It Works" - about_xrp: "About XRP" - cta: "All Concepts" - read_docs: - head: "Read Documentation" - full_doc_index: "Full Doc Index" - cta: "All Docs" - explore: - head: "Explore the XRP Ledger" - blurb: "Use the XRPL Explorer to view a stream of ledger activity and see validator statuses." - cta: "Go to the Explorer" - what_is_xrpl: - head: "What is the XRP Ledger?" - body_1: "The XRP Ledger is a decentralized cryptographic ledger, powered by a network of peer-to-peer servers. It is the home of XRP, a digital asset designed to bridge the many different currencies in use worldwide." - digital_asset: - head: "The Digital Asset for Payments" - url: "xrp-ledger-overview.html#the-digital-asset-for-payments" - censorship_resistant: - head: "Censorship-Resistant Transaction Processing" - url: "xrp-ledger-overview.html#censorship-resistant-transaction-processing" - fast_algorithm: - head: "Fast, Efficient Consensus Algorithm" - url: "xrp-ledger-overview.html#fast-efficient-consensus-algorithm" - finite_xrp: - head: "Finite XRP Supply" - url: "xrp-ledger-overview.html#finite-xrp-supply" - responsible_governance: - head: "Responsible Software Governance" - url: "xrp-ledger-overview.html#responsible-software-governance" - secure_crypto: - head: "Secure, Adaptable Cryptography" - url: "xrp-ledger-overview.html#secure-adaptable-cryptography" - smart_contracts: - head: "Modern Features for Smart Contracts" - url: "xrp-ledger-overview.html#modern-features-for-smart-contracts" - decentralized_exchange: - head: "On-Ledger Decentralized Exchange" - url: "xrp-ledger-overview.html#on-ledger-decentralized-exchange" - + locale_file: locale/en/LC_MESSAGES/messages.mo - 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: "サイトを検索" - bc_home: "ホーム" - tl_banner: - head: "も仕分けありませんがこのページは日本語では入手不可" #TODO: check translation - body: "XRP Ledger Dev Portalをさまざまな言語で提供するよう努力していますが、すべてのページがすべての言語で利用できるわけではありません。助けたいと思うなら、提供して下さい!" #TODO: check translation & have a real link - 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: "このツールと情報でXRPのオープンソースプラットフォームを統合して開発を提供します。" #TODO:check translation - subhead: "Want more?" #TODO:translate - sub_body: "Get updates about XRP Ledger webinars, releases, and documentation!" #TODO:translate - cta: "Sign up!" #TODO:translate - cards_1: - learn: - head: "XRP技術を理解する" - about_xrp: "XRPについて" - cta: "全コンセプト" - read_docs: - head: "ドキュメントを読む" - full_doc_index: "全ドキュメント目次" - cta: "全ドキュメント" - explore: - head: "XRP Ledgerを探る" - blurb: "XRP Ledger エクスプローラを使ってレジャーの動き、バリデータのステータスを見る。" #TODO:check translation - cta: "XRP Ledger エクスプローラへ" - what_is_xrpl: - head: "XRP Ledgerとは何?" - body_1: "XRP Ledgerは、ピアツーピア・サーバーのネットワーク機能を備えた分散型の暗号台帳です。XRP LedgerはXRPの土台となるものであり、世界中で使用されている様々な通貨の橋渡しをするために設計されたデジタル資産です。" - digital_asset: - head: "決済のためのデジタル資産" - url: "xrp-ledger-overview.html#決済のためのデジタル資産" - censorship_resistant: - head: "耐検閲性のある取引処理" - url: "xrp-ledger-overview.html#耐検閲性のある取引処理" - fast_algorithm: - head: "高速で効率的なConsensusアルゴリズム" - url: "xrp-ledger-overview.html#高速で効率的なconsensusアルゴリズム" - finite_xrp: - head: "限定されたXRP供給量" - url: "xrp-ledger-overview.html#限定されたxrp供給量" - responsible_governance: - head: "責任あるソフトウェア管理" - url: "xrp-ledger-overview.html#責任あるソフトウェア管理" - secure_crypto: - head: "安全で適応性のある暗号技術" - url: "xrp-ledger-overview.html#安全で適応性のある暗号技術" - smart_contracts: - head: "スマートコントラクト用の最新機能" - url: "xrp-ledger-overview.html#スマートコントラクト用の最新機能" - decentralized_exchange: - head: "台帳上の分散型取引所" - url: "xrp-ledger-overview.html#台帳上の分散型取引所" + locale_file: locale/ja/LC_MESSAGES/messages.mo link_subs: # Fix 2 links from untranslated send-xrp.html: "accounts.html#creating-accounts": "accounts.html#アカウントの作成" @@ -296,24 +165,6 @@ targets: github_forkurl: https://github.com/ripple/xrpl-dev-portal github_branch: master no_cover: true - strings: - blog: "Blog" - search: "Search site..." - 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!" - 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" # Data API target for porting changes to the README in the upstream repo # Intended for use in markdown (--md) mode. @@ -325,24 +176,6 @@ targets: no_cover: True link_re_subs: "([\\w-]+\\.html)": https://xrpl.org/\1 - strings: - blog: "Blog" - search: "Search site..." - 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!" - 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" pages: diff --git a/locale/babel.cfg b/locale/babel.cfg new file mode 100644 index 0000000000..79e787fa95 --- /dev/null +++ b/locale/babel.cfg @@ -0,0 +1,5 @@ +# PyBabel is for extracting strings from templates +[jinja2: **/tool/template-**.html] +encoding = utf-8 +[extractors] +jinja2 = jinja2.ext:babel_extract diff --git a/locale/en/LC_MESSAGES/messages.mo b/locale/en/LC_MESSAGES/messages.mo new file mode 100644 index 0000000000000000000000000000000000000000..69770add7c5aa02a3879ea024bd79e1fbeba1dd5 GIT binary patch literal 843 zcmc(d&u-H|5XMc3gk%Il^n}D=kT?L+8pl;=aGNUs+!EwKr9+Q&aSn)uINK> z05 zGijUjopgotlXRWby0qEfCc5}8@iK9Tc#XJAd`n75&iB*ShF^%z_bbu){vbNvEqd7b z_(ZpV>pXryr0G4Ti}UTdU|6ZrOBTX<6A5-D3@lX9tWjF;X|t}uDw;K@CDgn`FBJt! zgI*@;x&5`S31x8p5g22mF?Y+uokfBkHF3@;0tzKhc*<`_9 zl7mn(2FgeSrAs&ogV4{gR@$fo6@jc#qM;bug|Ing%>uKlb3R1S+2P>6}L*qaQGrk;n`rCzASEF0=d3@HBuEJwa}cVItF`;~Anbl}gbM)QgtD!n!_$oecay=V_M z%icW+cY4si?@uSwSh=MLv_-}u~FJ0o>p8x;= literal 0 HcmV?d00001 diff --git a/locale/en/LC_MESSAGES/messages.po b/locale/en/LC_MESSAGES/messages.po new file mode 100644 index 0000000000..b8cdbeacb7 --- /dev/null +++ b/locale/en/LC_MESSAGES/messages.po @@ -0,0 +1,251 @@ +# English translations for XRPL.org. +# Copyright (C) 2020 XRP Ledger Project +# This file is distributed under the same license as the XRPL.org project. +# Rome Reginelli , 2020. +# +msgid "" +msgstr "" +"Project-Id-Version: XRPL.org v0.0\n" +"Report-Msgid-Bugs-To: docs@ripple.com\n" +"POT-Creation-Date: 2020-05-12 16:30-0700\n" +"PO-Revision-Date: 2020-05-12 15:25-0700\n" +"Last-Translator: FULL NAME \n" +"Language: en\n" +"Language-Team: en \n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.8.0\n" + +#: tool/template-base.html:71 +msgid "Blog" +msgstr "Blog" + +#: tool/template-base.html:77 tool/template-base.html:78 +msgid "Search site..." +msgstr "Search site..." + +#: tool/template-breadcrumbs.html:3 +msgid "Home" +msgstr "" + +#: tool/template-doc.html:27 +msgid "Sorry, this page is not available in your language." +msgstr "" + +#: tool/template-doc.html:28 +msgid "" +"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!" +msgstr "" + +# Table of contents +#: tool/template-doc.html:40 +msgid "In this document" +msgstr "In this document" + +#: tool/template-footer.html:32 +msgid "Ripple Careers" +msgstr "Ripple Careers" + +#: tool/template-footer.html:33 +msgid "Ripple on GitHub" +msgstr "Ripple on GitHub" + +#: tool/template-footer.html:34 +msgid "XRP Resources" +msgstr "XRP Resources" + +#: tool/template-footer.html:61 +msgid "License" +msgstr "License" + +#: tool/template-footer.html:68 +msgid "Jump to top of page" +msgstr "Jump to top of page" + +#: tool/template-footer.html:68 +msgid "Top" +msgstr "Top" + +# Link to edit this page on GitHub +#: tool/template-github-edit.html:26 +msgid "Edit" +msgstr "Edit" + +#: tool/template-home.html:22 +msgid "Powering the Internet of Value." +msgstr "" + +#: tool/template-home.html:24 +msgid "" +"The XRP Ledger is open-source " +"technology that anyone can use." +msgstr "" + +#: tool/template-home.html:25 +msgid "" +"Use the tools and information provided here to integrate with and " +"contribute to the open-source platform." +msgstr "" + +#: tool/template-home.html:26 +msgid "Want more?" +msgstr "" + +#: tool/template-home.html:27 +msgid "Get updates about XRP Ledger webinars, releases, and documentation!" +msgstr "" + +#: tool/template-home.html:29 +msgid "Sign up!" +msgstr "" + +#: tool/template-home.html:50 +msgid "Learn How It Works" +msgstr "" + +#: tool/template-home.html:56 +msgid "About XRP" +msgstr "" + +#: tool/template-home.html:63 +msgid "All Concepts" +msgstr "" + +#: tool/template-home.html:70 +msgid "Read Documentation" +msgstr "" + +#: tool/template-home.html:78 +msgid "Full Doc Index" +msgstr "" + +#: tool/template-home.html:83 +msgid "All Docs" +msgstr "" + +#: tool/template-home.html:90 +msgid "Explore the XRP Ledger" +msgstr "" + +#: tool/template-home.html:93 +msgid "" +"Use the XRPL Explorer to view a stream of ledger activity and see " +"validator statuses." +msgstr "" + +#: tool/template-home.html:97 +msgid "Go to the Explorer" +msgstr "" + +#: tool/template-home.html:125 +msgid "What is the XRP Ledger?" +msgstr "" + +#: tool/template-home.html:128 +msgid "" +"The XRP Ledger is a decentralized cryptographic ledger, powered by a " +"network of peer-to-peer servers. It is the home of XRP, a digital asset " +"designed to bridge the many different currencies in use worldwide." +msgstr "" + +#: tool/template-home.html:132 +msgid "xrp-ledger-overview.html#the-digital-asset-for-payments" +msgstr "" + +#: tool/template-home.html:133 +msgid "(digital asset icon)" +msgstr "" + +#: tool/template-home.html:134 +msgid "The Digital Asset for Payments" +msgstr "" + +#: tool/template-home.html:138 +msgid "xrp-ledger-overview.html#censorship-resistant-transaction-processing" +msgstr "" + +#: tool/template-home.html:139 +msgid "(censorship resistance icon)" +msgstr "" + +#: tool/template-home.html:140 +msgid "Censorship-Resistant Transaction Processing" +msgstr "" + +#: tool/template-home.html:144 +msgid "xrp-ledger-overview.html#fast-efficient-consensus-algorithm" +msgstr "" + +#: tool/template-home.html:145 +msgid "(consensus algorithm icon)" +msgstr "" + +#: tool/template-home.html:146 +msgid "Fast, Efficient Consensus Algorithm" +msgstr "" + +#: tool/template-home.html:150 +msgid "xrp-ledger-overview.html#finite-xrp-supply" +msgstr "" + +#: tool/template-home.html:151 +msgid "(xrp supply icon)" +msgstr "" + +#: tool/template-home.html:152 +msgid "Finite XRP Supply" +msgstr "" + +#: tool/template-home.html:156 +msgid "xrp-ledger-overview.html#responsible-software-governance" +msgstr "" + +#: tool/template-home.html:157 +msgid "(governance icon)" +msgstr "" + +#: tool/template-home.html:158 +msgid "Responsible Software Governance" +msgstr "" + +#: tool/template-home.html:162 +msgid "xrp-ledger-overview.html#secure-adaptable-cryptography" +msgstr "" + +#: tool/template-home.html:163 +msgid "(cryptography icon)" +msgstr "" + +#: tool/template-home.html:164 +msgid "Secure, Adaptable Cryptography" +msgstr "" + +#: tool/template-home.html:168 +msgid "xrp-ledger-overview.html#modern-features-for-smart-contracts" +msgstr "" + +#: tool/template-home.html:169 +msgid "(smart contracts icon)" +msgstr "" + +#: tool/template-home.html:170 +msgid "Modern Features for Smart Contracts" +msgstr "" + +#: tool/template-home.html:174 +msgid "xrp-ledger-overview.html#on-ledger-decentralized-exchange" +msgstr "" + +#: tool/template-home.html:175 +msgid "(decentralized exchange icon)" +msgstr "" + +#: tool/template-home.html:176 +msgid "On-Ledger Decentralized Exchange" +msgstr "" + diff --git a/locale/ja/LC_MESSAGES/messages.mo b/locale/ja/LC_MESSAGES/messages.mo new file mode 100644 index 0000000000000000000000000000000000000000..8399678b29684f08fac3743c6ca6c5ebac362f89 GIT binary patch literal 5932 zcmb7HTWlOx89t~jP`Bk$pdc>oNdjsMnYELWHgztIV>_xxK1pFoNTfjd8 zzYP30@Qc8E?_}%&;DbO~uL0f-YyjR1{1Nc8z@Gu}%M$qWJzy$azY3)DuK`y8-v*MN zKL9@m{18|R{15Pc;D);bJuSd5V7(1U{>6dx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$Tky6R4JHqEo1n{lo-4Tqdfhs!DSV%{0GX((LaYlNm=n^hxFY zvJt7bmbPQg^LsEe(WV&TnA~Ryx!2%{tgC&c-n;ED=N0k;kiLp>cQ4;q43P+&p6aCv za(8}o&6OX_3+oyMI5~ZN;G=89vd`o#9kyxt@3T+7w90;j-ty9d@8!N0$~&>-HiN~| iEnWW5|9zE|4dfH#`_&`gX5_vI=f%;{Ff9ZoHxZ literal 0 HcmV?d00001 diff --git a/locale/ja/LC_MESSAGES/messages.po b/locale/ja/LC_MESSAGES/messages.po new file mode 100644 index 0000000000..3d8601d634 --- /dev/null +++ b/locale/ja/LC_MESSAGES/messages.po @@ -0,0 +1,258 @@ +# Japanese translations for XRPL.org. +# Copyright (C) 2020 XRP Ledger Project +# This file is distributed under the same license as the XRPL.org project. +# Rome Reginelli , 2020. +# +msgid "" +msgstr "" +"Project-Id-Version: XRPL.org v0.0\n" +"Report-Msgid-Bugs-To: docs@ripple.com\n" +"POT-Creation-Date: 2020-05-12 16:30-0700\n" +"PO-Revision-Date: 2020-05-12 15:25-0700\n" +"Last-Translator: FULL NAME \n" +"Language: ja\n" +"Language-Team: ja \n" +"Plural-Forms: nplurals=1; plural=0\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.8.0\n" + +#: tool/template-base.html:71 +msgid "Blog" +msgstr "ブログ" + +#: tool/template-base.html:77 tool/template-base.html:78 +msgid "Search site..." +msgstr "サイトを検索" + +#: tool/template-breadcrumbs.html:3 +msgid "Home" +msgstr "ホーム" + +#: tool/template-doc.html:27 +msgid "Sorry, this page is not available in your language." +msgstr "も仕分けありませんがこのページは日本語では入手不可" + +#: tool/template-doc.html:28 +msgid "" +"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!" +msgstr "" +"XRP Ledger Dev Portalをさまざまな言語で提供するよう努力していますが、すべてのページがすべて" +"の言語で利用できるわけではありません。助けたいと思うなら" +"" +"提供して下さい!" + +# Table of contents +#: tool/template-doc.html:40 +msgid "In this document" +msgstr "目次" + +#: tool/template-footer.html:32 +msgid "Ripple Careers" +msgstr "Ripple 採用情報" + +#: tool/template-footer.html:33 +msgid "Ripple on GitHub" +msgstr "GitHubでRipple" + +#: tool/template-footer.html:34 +msgid "XRP Resources" +msgstr "XRP リソース" + +#: tool/template-footer.html:61 +msgid "License" +msgstr "ライセンス" + +#: tool/template-footer.html:68 +msgid "Jump to top of page" +msgstr "このページの先頭へ" + +#: tool/template-footer.html:68 +msgid "Top" +msgstr "先頭へ" + +# Link to edit this page on GitHub +#: tool/template-github-edit.html:26 +msgid "Edit" +msgstr "Edit" + +#: tool/template-home.html:22 +msgid "Powering the Internet of Value." +msgstr "価値のインターネットをパワーする。" + +#: tool/template-home.html:24 +msgid "" +"The XRP Ledger is open-source " +"technology that anyone can use." +msgstr "" +"XRP Ledgerは誰でもが使い得るオープンソース技術。" + +#: tool/template-home.html:25 +msgid "" +"Use the tools and information provided here to integrate with and " +"contribute to the open-source platform." +msgstr "このツールと情報でXRPのオープンソースプラットフォームを統合して開発を提供します。" + +#: tool/template-home.html:26 +msgid "Want more?" +msgstr ""#TODO + +#: tool/template-home.html:27 +msgid "Get updates about XRP Ledger webinars, releases, and documentation!" +msgstr ""#TODO + +#: tool/template-home.html:29 +msgid "Sign up!" +msgstr ""#TODO + +#: tool/template-home.html:50 +msgid "Learn How It Works" +msgstr "XRP技術を理解する" + +#: tool/template-home.html:56 +msgid "About XRP" +msgstr "XRPについて" + +#: tool/template-home.html:63 +msgid "All Concepts" +msgstr "全コンセプト" + +#: tool/template-home.html:70 +msgid "Read Documentation" +msgstr "ドキュメントを読む" + +#: tool/template-home.html:78 +msgid "Full Doc Index" +msgstr "全ドキュメント目次" + +#: tool/template-home.html:83 +msgid "All Docs" +msgstr "全ドキュメント" + +#: tool/template-home.html:90 +msgid "Explore the XRP Ledger" +msgstr "XRP Ledgerを探る" + +#: tool/template-home.html:93 +msgid "" +"Use the XRPL Explorer to view a stream of ledger activity and see " +"validator statuses." +msgstr "XRP Ledger エクスプローラを使ってレジャーの動き、バリデータのステータスを見る。" + +#: tool/template-home.html:97 +msgid "Go to the Explorer" +msgstr "XRP Ledger エクスプローラへ" + +#: tool/template-home.html:125 +msgid "What is the XRP Ledger?" +msgstr "XRP Ledgerとは何?" + +#: tool/template-home.html:128 +msgid "" +"The XRP Ledger is a decentralized cryptographic ledger, powered by a " +"network of peer-to-peer servers. It is the home of XRP, a digital asset " +"designed to bridge the many different currencies in use worldwide." +msgstr "" +"XRP Ledgerは、ピアツーピア・サーバーのネットワーク機能を備えた分散型の暗号台帳です。" +"XRP LedgerはXRPの土台となるものであり、世界中で使用されている様々な通貨の橋渡しをするために" +"設計されたデジタル資産です。" + +#: tool/template-home.html:132 +msgid "xrp-ledger-overview.html#the-digital-asset-for-payments" +msgstr "xrp-ledger-overview.html#決済のためのデジタル資産" + +#: tool/template-home.html:133 +msgid "(digital asset icon)" +msgstr "(デジタル資産アイコン)" + +#: tool/template-home.html:134 +msgid "The Digital Asset for Payments" +msgstr "決済のためのデジタル資産" + +#: tool/template-home.html:138 +msgid "xrp-ledger-overview.html#censorship-resistant-transaction-processing" +msgstr "xrp-ledger-overview.html#耐検閲性のある取引処理" + +#: tool/template-home.html:139 +msgid "(censorship resistance icon)" +msgstr "(耐検閲性アイコン)" + +#: tool/template-home.html:140 +msgid "Censorship-Resistant Transaction Processing" +msgstr "耐検閲性のある取引処理" + +#: tool/template-home.html:144 +msgid "xrp-ledger-overview.html#fast-efficient-consensus-algorithm" +msgstr "xrp-ledger-overview.html#高速で効率的なconsensusアルゴリズム" + +#: tool/template-home.html:145 +msgid "(consensus algorithm icon)" +msgstr "(Consensusアルゴリズムアイコン)" + +#: tool/template-home.html:146 +msgid "Fast, Efficient Consensus Algorithm" +msgstr "高速で効率的なConsensusアルゴリズム" + +#: tool/template-home.html:150 +msgid "xrp-ledger-overview.html#finite-xrp-supply" +msgstr "xrp-ledger-overview.html#限定されたxrp供給量" + +#: tool/template-home.html:151 +msgid "(xrp supply icon)" +msgstr "(XRP供給量アイコン)" + +#: tool/template-home.html:152 +msgid "Finite XRP Supply" +msgstr "限定されたXRP供給量" + +#: tool/template-home.html:156 +msgid "xrp-ledger-overview.html#responsible-software-governance" +msgstr "xrp-ledger-overview.html#責任あるソフトウェア管理" + +#: tool/template-home.html:157 +msgid "(governance icon)" +msgstr "(管理アイコン)" + +#: tool/template-home.html:158 +msgid "Responsible Software Governance" +msgstr "責任あるソフトウェア管理" + +#: tool/template-home.html:162 +msgid "xrp-ledger-overview.html#secure-adaptable-cryptography" +msgstr "xrp-ledger-overview.html#安全で適応性のある暗号技術" + +#: tool/template-home.html:163 +msgid "(cryptography icon)" +msgstr "(暗号技術アイコン)" + +#: tool/template-home.html:164 +msgid "Secure, Adaptable Cryptography" +msgstr "安全で適応性のある暗号技術" + +#: tool/template-home.html:168 +msgid "xrp-ledger-overview.html#modern-features-for-smart-contracts" +msgstr "xrp-ledger-overview.html#スマートコントラクト用の最新機能" + +#: tool/template-home.html:169 +msgid "(smart contracts icon)" +msgstr "(スマートコントラクトのアイコン)" + +#: tool/template-home.html:170 +msgid "Modern Features for Smart Contracts" +msgstr "スマートコントラクト用の最新機能" + +#: tool/template-home.html:174 +msgid "xrp-ledger-overview.html#on-ledger-decentralized-exchange" +msgstr "xrp-ledger-overview.html#台帳上の分散型取引所" + +#: tool/template-home.html:175 +msgid "(decentralized exchange icon)" +msgstr "(分散型取引所アイコン)" + +#: tool/template-home.html:176 +msgid "On-Ledger Decentralized Exchange" +msgstr "台帳上の分散型取引所" diff --git a/locale/messages.pot b/locale/messages.pot new file mode 100644 index 0000000000..afeafcd68a --- /dev/null +++ b/locale/messages.pot @@ -0,0 +1,247 @@ +# Translations template for XRPL.org. +# Copyright (C) 2020 XRP Ledger Project +# This file is distributed under the same license as the XRPL.org project. +# Rome Reginelli , 2020. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2020-05-12 16:30-0700\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.8.0\n" + +#: tool/template-base.html:71 +msgid "Blog" +msgstr "" + +#: tool/template-base.html:77 tool/template-base.html:78 +msgid "Search site..." +msgstr "" + +#: tool/template-breadcrumbs.html:3 +msgid "Home" +msgstr "" + +#: tool/template-doc.html:27 +msgid "Sorry, this page is not available in your language." +msgstr "" + +#: tool/template-doc.html:28 +msgid "" +"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!" +msgstr "" + +#: tool/template-doc.html:40 +msgid "In this document" +msgstr "" + +#: tool/template-footer.html:32 +msgid "Ripple Careers" +msgstr "" + +#: tool/template-footer.html:33 +msgid "Ripple on GitHub" +msgstr "" + +#: tool/template-footer.html:34 +msgid "XRP Resources" +msgstr "" + +#: tool/template-footer.html:61 +msgid "License" +msgstr "" + +#: tool/template-footer.html:68 +msgid "Jump to top of page" +msgstr "" + +#: tool/template-footer.html:68 +msgid "Top" +msgstr "" + +#: tool/template-github-edit.html:26 +msgid "Edit" +msgstr "" + +#: tool/template-home.html:22 +msgid "Powering the Internet of Value." +msgstr "" + +#: tool/template-home.html:24 +msgid "" +"The XRP Ledger is open-source " +"technology that anyone can use." +msgstr "" + +#: tool/template-home.html:25 +msgid "" +"Use the tools and information provided here to integrate with and " +"contribute to the open-source platform." +msgstr "" + +#: tool/template-home.html:26 +msgid "Want more?" +msgstr "" + +#: tool/template-home.html:27 +msgid "Get updates about XRP Ledger webinars, releases, and documentation!" +msgstr "" + +#: tool/template-home.html:29 +msgid "Sign up!" +msgstr "" + +#: tool/template-home.html:50 +msgid "Learn How It Works" +msgstr "" + +#: tool/template-home.html:56 +msgid "About XRP" +msgstr "" + +#: tool/template-home.html:63 +msgid "All Concepts" +msgstr "" + +#: tool/template-home.html:70 +msgid "Read Documentation" +msgstr "" + +#: tool/template-home.html:78 +msgid "Full Doc Index" +msgstr "" + +#: tool/template-home.html:83 +msgid "All Docs" +msgstr "" + +#: tool/template-home.html:90 +msgid "Explore the XRP Ledger" +msgstr "" + +#: tool/template-home.html:93 +msgid "" +"Use the XRPL Explorer to view a stream of ledger activity and see " +"validator statuses." +msgstr "" + +#: tool/template-home.html:97 +msgid "Go to the Explorer" +msgstr "" + +#: tool/template-home.html:125 +msgid "What is the XRP Ledger?" +msgstr "" + +#: tool/template-home.html:128 +msgid "" +"The XRP Ledger is a decentralized cryptographic ledger, powered by a " +"network of peer-to-peer servers. It is the home of XRP, a digital asset " +"designed to bridge the many different currencies in use worldwide." +msgstr "" + +#: tool/template-home.html:132 +msgid "xrp-ledger-overview.html#the-digital-asset-for-payments" +msgstr "" + +#: tool/template-home.html:133 +msgid "(digital asset icon)" +msgstr "" + +#: tool/template-home.html:134 +msgid "The Digital Asset for Payments" +msgstr "" + +#: tool/template-home.html:138 +msgid "xrp-ledger-overview.html#censorship-resistant-transaction-processing" +msgstr "" + +#: tool/template-home.html:139 +msgid "(censorship resistance icon)" +msgstr "" + +#: tool/template-home.html:140 +msgid "Censorship-Resistant Transaction Processing" +msgstr "" + +#: tool/template-home.html:144 +msgid "xrp-ledger-overview.html#fast-efficient-consensus-algorithm" +msgstr "" + +#: tool/template-home.html:145 +msgid "(consensus algorithm icon)" +msgstr "" + +#: tool/template-home.html:146 +msgid "Fast, Efficient Consensus Algorithm" +msgstr "" + +#: tool/template-home.html:150 +msgid "xrp-ledger-overview.html#finite-xrp-supply" +msgstr "" + +#: tool/template-home.html:151 +msgid "(xrp supply icon)" +msgstr "" + +#: tool/template-home.html:152 +msgid "Finite XRP Supply" +msgstr "" + +#: tool/template-home.html:156 +msgid "xrp-ledger-overview.html#responsible-software-governance" +msgstr "" + +#: tool/template-home.html:157 +msgid "(governance icon)" +msgstr "" + +#: tool/template-home.html:158 +msgid "Responsible Software Governance" +msgstr "" + +#: tool/template-home.html:162 +msgid "xrp-ledger-overview.html#secure-adaptable-cryptography" +msgstr "" + +#: tool/template-home.html:163 +msgid "(cryptography icon)" +msgstr "" + +#: tool/template-home.html:164 +msgid "Secure, Adaptable Cryptography" +msgstr "" + +#: tool/template-home.html:168 +msgid "xrp-ledger-overview.html#modern-features-for-smart-contracts" +msgstr "" + +#: tool/template-home.html:169 +msgid "(smart contracts icon)" +msgstr "" + +#: tool/template-home.html:170 +msgid "Modern Features for Smart Contracts" +msgstr "" + +#: tool/template-home.html:174 +msgid "xrp-ledger-overview.html#on-ledger-decentralized-exchange" +msgstr "" + +#: tool/template-home.html:175 +msgid "(decentralized exchange icon)" +msgstr "" + +#: tool/template-home.html:176 +msgid "On-Ledger Decentralized Exchange" +msgstr "" diff --git a/tool/template-base.html b/tool/template-base.html index 0eda22728d..3912f652e9 100644 --- a/tool/template-base.html +++ b/tool/template-base.html @@ -68,14 +68,14 @@ {% endif %} {% endfor %} {% include 'template-github-edit.html' %} diff --git a/tool/template-breadcrumbs.html b/tool/template-breadcrumbs.html index 786628ea1c..c936f696ae 100644 --- a/tool/template-breadcrumbs.html +++ b/tool/template-breadcrumbs.html @@ -1,6 +1,6 @@