From 2df88df182d9ea699e41f89262430aaafd213f3d Mon Sep 17 00:00:00 2001 From: artze <13703523+artze@users.noreply.github.com> Date: Wed, 4 Nov 2020 14:45:05 +0800 Subject: [PATCH 1/2] Add doc for setting up local server --- i18n-tracking.yml | 42 +++++++++++------------ src/data/en.yml | 7 ++++ src/templates/pages/get-started/index.hbs | 9 +++++ 3 files changed, 37 insertions(+), 21 deletions(-) diff --git a/i18n-tracking.yml b/i18n-tracking.yml index 36b202a268..3384b5e9f7 100644 --- a/i18n-tracking.yml +++ b/i18n-tracking.yml @@ -1,5 +1,12 @@ es: src/data/en.yml: + line 114: ' environment15' + line 113: ' environment14' + line 115: ' environment16' + line 102: ' download8' + line 103: ' download9' + line 104: ' download10' + line 105: ' download11' line 256: ' , the organization that supports p5.js.' line 251: ' We need your help! p5.js is free, open-source software. We want to make our community as open' line 269: ' Your donation supports software development for p5.js, education resources' @@ -12,7 +19,6 @@ es: line 277: ' support-5' line 37: Editor line 55: footer5 - line 114: ' acknowledge that not everyone has the time, financial means, or capacity to' line 123: ' p3xh2' line 41: Reference line 118: ' p2x3' @@ -35,8 +41,6 @@ es: line 61: tagline6 line 111: ' identity and expression, sexual orientation, race, ethnicity, language,' line 112: ' neuro-type, size, disability, class, religion, culture, subculture,' - line 113: ' political opinion, age, skill level, occupation, and background. We' - line 115: ' actively participate, but we recognize and encourage involvement of all' line 116: ' kinds. We facilitate and foster access and empowerment. We are all learners.' line 117: ' p2x2' line 119: ' p2x4' @@ -153,10 +157,6 @@ es: line 129: ' p3xp6' line 148: ' The p5.js library is free software; you can redistribute it and/or modify it' line 46: Community - line 102: ' software, and the tools to learn it, should be accessible to everyone.' - line 103: ' p1x2' - line 104: ' Using the metaphor of a sketch, p5.js has a full set of drawing' - line 105: ' functionality. However, you’re not limited to your drawing canvas. You can' line 133: ' p4xp3' line 134: ' p4xp4' line 141: ' project-a-2-5-phuong' @@ -1819,6 +1819,13 @@ es: line 2557: ' teach-case12-content5-2' ko: src/data/en.yml: + line 114: ' environment15' + line 113: ' environment14' + line 115: ' environment16' + line 102: ' download8' + line 103: ' download9' + line 104: ' download10' + line 105: ' download11' line 251: ' We need your help! p5.js is free, open-source software. We want to make our community as open' line 256: ' , the organization that supports p5.js.' line 269: ' Your donation supports software development for p5.js, education resources' @@ -1831,7 +1838,6 @@ ko: line 277: ' support-5' line 37: Editor line 55: footer5 - line 114: ' acknowledge that not everyone has the time, financial means, or capacity to' line 123: ' p3xh2' line 41: Reference line 118: ' p2x3' @@ -1854,8 +1860,6 @@ ko: line 61: tagline6 line 111: ' identity and expression, sexual orientation, race, ethnicity, language,' line 112: ' neuro-type, size, disability, class, religion, culture, subculture,' - line 113: ' political opinion, age, skill level, occupation, and background. We' - line 115: ' actively participate, but we recognize and encourage involvement of all' line 116: ' kinds. We facilitate and foster access and empowerment. We are all learners.' line 117: ' p2x2' line 119: ' p2x4' @@ -1973,10 +1977,6 @@ ko: line 129: ' p3xp6' line 148: ' The p5.js library is free software; you can redistribute it and/or modify it' line 46: Community - line 102: ' software, and the tools to learn it, should be accessible to everyone.' - line 103: ' p1x2' - line 104: ' Using the metaphor of a sketch, p5.js has a full set of drawing' - line 105: ' functionality. However, you’re not limited to your drawing canvas. You can' line 133: ' p4xp3' line 134: ' p4xp4' line 141: ' project-a-2-5-phuong' @@ -3638,6 +3638,13 @@ ko: line 2557: ' teach-case12-content5-2' zh-Hans: src/data/en.yml: + line 114: ' environment15' + line 113: ' environment14' + line 115: ' environment16' + line 102: ' download8' + line 103: ' download9' + line 104: ' download10' + line 105: ' download11' line 251: ' We need your help! p5.js is free, open-source software. We want to make our community as open' line 256: ' , the organization that supports p5.js.' line 269: ' Your donation supports software development for p5.js, education resources' @@ -3650,7 +3657,6 @@ zh-Hans: line 277: ' support-5' line 37: Editor line 55: footer5 - line 114: ' acknowledge that not everyone has the time, financial means, or capacity to' line 123: ' p3xh2' line 41: Reference line 118: ' p2x3' @@ -3672,8 +3678,6 @@ zh-Hans: line 61: tagline6 line 111: ' identity and expression, sexual orientation, race, ethnicity, language,' line 112: ' neuro-type, size, disability, class, religion, culture, subculture,' - line 113: ' political opinion, age, skill level, occupation, and background. We' - line 115: ' actively participate, but we recognize and encourage involvement of all' line 116: ' kinds. We facilitate and foster access and empowerment. We are all learners.' line 117: ' p2x2' line 119: ' p2x4' @@ -3791,10 +3795,6 @@ zh-Hans: line 129: ' p3xp6' line 148: ' The p5.js library is free software; you can redistribute it and/or modify it' line 46: Community - line 102: ' software, and the tools to learn it, should be accessible to everyone.' - line 103: ' p1x2' - line 104: ' Using the metaphor of a sketch, p5.js has a full set of drawing' - line 105: ' functionality. However, you’re not limited to your drawing canvas. You can' line 133: ' p4xp3' line 134: ' p4xp4' line 141: ' project-a-2-5-phuong' diff --git a/src/data/en.yml b/src/data/en.yml index bbc1a804f8..9b8e89572e 100644 --- a/src/data/en.yml +++ b/src/data/en.yml @@ -99,6 +99,10 @@ get started: download1: 'The easiest way to start is by using the empty example that comes with the ' download2: p5.js complete download3: ' download.' + download8: 'After download, you need to set up a local server. See instructions ' + download9: here + download10: '. Run your local server within the downloaded folder and on your browser, go to ' + download11: 'http://localhost:{your-port-num}/empty-example' download4: >- If you look in index.html, you'll notice that it links to the file p5.js. If you would like to use the minified version (compressed for faster page @@ -133,6 +137,9 @@ get started: Open the index.html file in your browser by double clicking on it in your file manager or type: environment12: 'file:///the/file/path/to/your/html' + environment14: ' (or ' + environment15: 'http://localhost:{your-port-num}/empty-example' + environment16: ' if you are using a local server)' environment13: ' in the address bar to view your sketch.' your-first-sketch-title: Your First Sketch your-first-sketch-intro1: 'In the ' diff --git a/src/templates/pages/get-started/index.hbs b/src/templates/pages/get-started/index.hbs index 4a88fe379a..3f1ba168e6 100644 --- a/src/templates/pages/get-started/index.hbs +++ b/src/templates/pages/get-started/index.hbs @@ -123,6 +123,13 @@ function draw() { {{#i18n "download3"}}{{/i18n}}

+

+ {{#i18n "download8"}}{{/i18n}} + {{#i18n "download9"}}{{/i18n}} + {{#i18n "download10"}}{{/i18n}} + {{#i18n "download11"}}{{/i18n}} +

+

{{#i18n "download4"}}{{/i18n}}

<script src="../p5.min.js"></script>
@@ -166,6 +173,8 @@ function draw() {

{{#i18n "environment11"}}{{/i18n}} {{#i18n "environment12"}}{{/i18n}} + {{#i18n "environment14"}}{{/i18n}} {{#i18n "environment15"}}{{/i18n}} + {{#i18n "environment16"}}{{/i18n}} {{#i18n "environment13"}}{{/i18n}}

From 9862a53b3baf606ba50d2d5525b7502da3eddc97 Mon Sep 17 00:00:00 2001 From: artze <13703523+artze@users.noreply.github.com> Date: Tue, 17 Nov 2020 13:37:49 +0800 Subject: [PATCH 2/2] Add translation entries to es, ko and zh-Hans yml --- src/data/es.yml | 7 +++++++ src/data/ko.yml | 7 +++++++ src/data/zh-Hans.yml | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/src/data/es.yml b/src/data/es.yml index 0e998fe8f8..ef75743c48 100644 --- a/src/data/es.yml +++ b/src/data/es.yml @@ -100,6 +100,10 @@ get started: download1: La manera más simple de empezar es usando el ejemplo en blanco incluido en download2: p5.js completo download3: disponible en el sitio. + download8: 'After download, you need to set up a local server. See instructions ' + download9: here + download10: '. Run your local server within the downloaded folder and on your browser, go to ' + download11: 'http://localhost:{your-port-num}/empty-example' download4: >- Si revisas el archivo index.html, te darás cuenta que tiene un enlace al archivo p5.js. Si estás buscando usar la versión reducida (comprimida para @@ -135,6 +139,9 @@ get started: Abre el archivo index.html en tu navegador haciendo doble click en él o escribiendo: environment12: 'file:///la/ubicacion/de/tu/archivo/html' + environment14: ' (or ' + environment15: 'http://localhost:{your-port-num}/empty-example' + environment16: ' if you are using a local server)' environment13: ' en la barra de direcciones de tu navegador para ver tu bosquejo.' your-first-sketch-title: Tu primer bosquejo your-first-sketch-intro1: 'En el ' diff --git a/src/data/ko.yml b/src/data/ko.yml index ff4a468173..a511aad53e 100644 --- a/src/data/ko.yml +++ b/src/data/ko.yml @@ -87,6 +87,10 @@ get started: download1: '' download2: p5.js complete download3: 를 다운받아 시작하는 것이 가장 쉽고 간편한 방법입니다. + download8: 'After download, you need to set up a local server. See instructions ' + download9: here + download10: '. Run your local server within the downloaded folder and on your browser, go to ' + download11: 'http://localhost:{your-port-num}/empty-example' download4: >- 그 중 index.html 파일에는 p5.js 링크가 적혀있습니다. 불러오는 시간을 단축하려면, p5.js 링크를 그 간략 버전인 p5.min.js로 아래와 같이 변경하면 됩니다. @@ -113,6 +117,9 @@ get started: index.html 파일을 브라우저에서 열어볼까요? 파일 관리 시스템에서 index.html 파일을 더블 클릭하거나 브라우저 주소창에 다음을 입력하세요: environment12: 'file:///나의/html/경로' + environment14: ' (or ' + environment15: 'http://localhost:{your-port-num}/empty-example' + environment16: ' if you are using a local server)' environment13: ' ' your-first-sketch-title: 나의 첫 스케치 your-first-sketch-intro1: '기존 프로세싱 사용자라면 다음의 페이지를 읽어보세요: ' diff --git a/src/data/zh-Hans.yml b/src/data/zh-Hans.yml index eb63ba79d6..f839d6fffd 100644 --- a/src/data/zh-Hans.yml +++ b/src/data/zh-Hans.yml @@ -87,6 +87,10 @@ get started: download1: 最简易的起点是使用 download2: p5.js 完整版 download3: 下载所提供的空白范例。 + download8: 'After download, you need to set up a local server. See instructions ' + download9: here + download10: '. Run your local server within the downloaded folder and on your browser, go to ' + download11: 'http://localhost:{your-port-num}/empty-example' download4: >- 查看 index.html 您可以发现其中有个 p5.js 的链接。如果您想要使用极简化的档案(以加速网页加载的速度),将链接档案名改为 p5.min.js @@ -112,6 +116,9 @@ get started: environment10: p5 starter code opened up in sublime editor. environment11: 在文件浏览器内双击 index.html 以在您的网页浏览器内开启该档案,或您也可以直接在网页浏览器内的网址栏输入: environment12: 'file:///html文件在硬盘上的位置/' + environment14: ' (or ' + environment15: 'http://localhost:{your-port-num}/empty-example' + environment16: ' if you are using a local server)' environment13: 以查看您的绘图。 your-first-sketch-title: Your First Sketch your-first-sketch-intro1: 'In the '