i18n for upload ui
This commit is contained in:
parent
54b3da996c
commit
61c42bd073
3 changed files with 21 additions and 16 deletions
13
_i18n/en.yml
13
_i18n/en.yml
|
|
@ -35,8 +35,17 @@ ipfs_text: 'Upload a file from your device to the Interplanetary File System. T
|
||||||
ipfs_button_text: 'Upload'
|
ipfs_button_text: 'Upload'
|
||||||
ipfs_secondary_cta: 'See what others have uploaded'
|
ipfs_secondary_cta: 'See what others have uploaded'
|
||||||
ipfs_image_alt: 'Interplanetary File System logo'
|
ipfs_image_alt: 'Interplanetary File System logo'
|
||||||
upload_ui_source_ack: "Upload UI upstream source"
|
upload:
|
||||||
|
ui_source_ack: "Upload UI upstream source"
|
||||||
|
page_title: Upload files to
|
||||||
|
page_description:
|
||||||
|
- This Butter Box is part of the Interplanetary File System (IPFS). You can always upload files to this box and see the files others have uploaded. Whenever the Butter Box is connected to the Internet, it'll make those files available to people everywhere.
|
||||||
|
- Remember, anyone will be able to see the files you upload here, so don't upload private things.
|
||||||
|
drop_files_here: Drop files here
|
||||||
|
or: or
|
||||||
|
choose_files: Choose Files
|
||||||
|
result: Result
|
||||||
|
upload: Upload
|
||||||
|
|
||||||
captive:
|
captive:
|
||||||
welcome_details: |
|
welcome_details: |
|
||||||
|
|
|
||||||
|
|
@ -66,11 +66,6 @@ layout: default
|
||||||
<a class="btn-main uppercase" href="/upload">{% t ipfs_button_text %}</a>
|
<a class="btn-main uppercase" href="/upload">{% t ipfs_button_text %}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a href="/view_uploads">
|
|
||||||
<div class="outlink content-expander">
|
|
||||||
<span>{% t ipfs_secondary_cta %}</span>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
19
upload.html
19
upload.html
|
|
@ -10,7 +10,7 @@ layout: empty
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
<title>Upload files to IPFS from Browser</title>
|
<title>{% t upload.page_title %} IPFS</title>
|
||||||
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/upload/style.css?v0.1" type='text/css'>
|
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/upload/style.css?v0.1" type='text/css'>
|
||||||
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/upload/upload-utilities.css?v0.1" type='text/css'>
|
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/upload/upload-utilities.css?v0.1" type='text/css'>
|
||||||
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/upload/node-menu.css?v0.1" type='text/css'>
|
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/upload/node-menu.css?v0.1" type='text/css'>
|
||||||
|
|
@ -24,15 +24,16 @@ layout: empty
|
||||||
<div class="b-nav">
|
<div class="b-nav">
|
||||||
<nav>
|
<nav>
|
||||||
<a href="#" title="home">
|
<a href="#" title="home">
|
||||||
<h1>Upload files to <img src="{{ site.baseurl }}/assets/images/upload/ipfs.png" style="margin: 0 2px"></h1>
|
<h1>{% t upload.page_title %} <img src="{{ site.baseurl }}/assets/images/upload/ipfs.png" style="margin: 0 2px"></h1>
|
||||||
</a>
|
</a>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<div id="wrapper">
|
<div id="wrapper">
|
||||||
<div id="top">
|
<div id="top">
|
||||||
<p>This Butter Box is part of the Interplanetary File System (IPFS). You can always upload files to this box and see the files others have uploaded. Whenever the Butter Box is connected to the Internet, it'll make those files available to people everywhere.</p>
|
{% for item in site.translations[site.lang].upload.page_description %}
|
||||||
<p>Remember, anyone will be able to see the files you upload here, so don't upload private things. </p>
|
<p>{{ item }}</p>
|
||||||
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
<div id="hidden-menu">
|
<div id="hidden-menu">
|
||||||
<div class="form">
|
<div class="form">
|
||||||
|
|
@ -161,8 +162,8 @@ layout: empty
|
||||||
d="M48.4 26.5c-.9 0-1.7.7-1.7 1.7v11.6h-43.3v-11.6c0-.9-.7-1.7-1.7-1.7s-1.7.7-1.7 1.7v13.2c0 .9.7 1.7 1.7 1.7h46.7c.9 0 1.7-.7 1.7-1.7v-13.2c0-1-.7-1.7-1.7-1.7zm-24.5 6.1c.3.3.8.5 1.2.5.4 0 .9-.2 1.2-.5l10-11.6c.7-.7.7-1.7 0-2.4s-1.7-.7-2.4 0l-7.1 8.3v-25.3c0-.9-.7-1.7-1.7-1.7s-1.7.7-1.7 1.7v25.3l-7.1-8.3c-.7-.7-1.7-.7-2.4 0s-.7 1.7 0 2.4l10 11.6z">
|
d="M48.4 26.5c-.9 0-1.7.7-1.7 1.7v11.6h-43.3v-11.6c0-.9-.7-1.7-1.7-1.7s-1.7.7-1.7 1.7v13.2c0 .9.7 1.7 1.7 1.7h46.7c.9 0 1.7-.7 1.7-1.7v-13.2c0-1-.7-1.7-1.7-1.7zm-24.5 6.1c.3.3.8.5 1.2.5.4 0 .9-.2 1.2-.5l10-11.6c.7-.7.7-1.7 0-2.4s-1.7-.7-2.4 0l-7.1 8.3v-25.3c0-.9-.7-1.7-1.7-1.7s-1.7.7-1.7 1.7v25.3l-7.1-8.3c-.7-.7-1.7-.7-2.4 0s-.7 1.7 0 2.4l10 11.6z">
|
||||||
</path>
|
</path>
|
||||||
</svg>
|
</svg>
|
||||||
Drop files here <br> or
|
{% t upload.drop_files_here %} <br> {% t upload.or %}
|
||||||
<label for='files'>Choose Files »</label>
|
<label for='files'>{% t upload.choose_files %} »</label>
|
||||||
<input type="file" name="files[]" id="files" class="box_file"
|
<input type="file" name="files[]" id="files" class="box_file"
|
||||||
data-multiple-caption="{count} files selected" multiple="">
|
data-multiple-caption="{count} files selected" multiple="">
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -172,13 +173,13 @@ layout: empty
|
||||||
</div>
|
</div>
|
||||||
<div id="divResponse">
|
<div id="divResponse">
|
||||||
<pre id="response">
|
<pre id="response">
|
||||||
<spam id="info">Result:</spam>
|
<spam id="info">{% t upload.result %}:</spam>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="upload_conf">
|
<div id="upload_conf">
|
||||||
<button type="button" onclick="upload()" class="box_button" id="buttonUpload">Upload<img
|
<button type="button" onclick="upload()" class="box_button" id="buttonUpload">{% t upload.upload %}<img
|
||||||
src="{{ site.baseurl }}/assets/images/upload/upload.png" /></button>
|
src="{{ site.baseurl }}/assets/images/upload/upload.png" /></button>
|
||||||
<div class="min-loading blue loading-hidden">
|
<div class="min-loading blue loading-hidden">
|
||||||
<div></div>
|
<div></div>
|
||||||
|
|
@ -190,7 +191,7 @@ layout: empty
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="source-ack">
|
<div id="source-ack">
|
||||||
<small><a href="https://github.com/anarkrypto/upload-files-to-ipfs-from-browser-panel">{% t upload_ui_source_ack %}</a></small>
|
<small><a href="https://github.com/anarkrypto/upload-files-to-ipfs-from-browser-panel">{% t upload.ui_source_ack %}</a></small>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue