Skip to content

Commit 68c9b75

Browse files
committed
Added i18n tags for text on books page
1 parent 9ac6988 commit 68c9b75

File tree

5 files changed

+198
-24
lines changed

5 files changed

+198
-24
lines changed

i18n-tracking.yml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,54 @@ es:
170170
line 551: ' credit-moon-xin'
171171
line 552: ' description-moon-xin'
172172
line 669: ' credit-moon-xin'
173+
line 604: ' book-title-1'
174+
line 605: ' book-authors-1'
175+
line 606: ' book-publisher-1'
176+
line 607: ' book-pages-1'
177+
line 608: ' book-type-1'
178+
line 609: ' book-description-1'
179+
line 610: ' order-link-1a'
180+
line 611: ' order-link-1b'
181+
line 612: ' book-title-2'
182+
line 613: ' book-authors-2'
183+
line 614: ' book-publisher-2'
184+
line 615: ' book-pages-2'
185+
line 616: ' book-type-2'
186+
line 617: ' book-description-2'
187+
line 618: ' order-link-2a'
188+
line 619: ' order-link-2b'
189+
line 620: ' book-title-3'
190+
line 621: ' book-authors-3'
191+
line 622: ' book-publisher-3'
192+
line 623: ' book-pages-3'
193+
line 624: ' book-type-3'
194+
line 625: ' book-description-3'
195+
line 626: ' order-link-3a'
196+
line 627: ' order-link-3b'
197+
line 628: ' book-1-title'
198+
line 629: ' book-1-authors'
199+
line 630: ' book-1-publisher'
200+
line 631: ' book-1-pages'
201+
line 632: ' book-1-type'
202+
line 633: ' book-1-description'
203+
line 634: ' book-1-order-a'
204+
line 635: ' book-1-order-b'
205+
line 636: ' book-2-title'
206+
line 637: ' book-2-authors'
207+
line 638: ' book-2-publisher'
208+
line 639: ' book-2-pages'
209+
line 640: ' book-2-type'
210+
line 641: ' book-2-description'
211+
line 642: ' book-2-order-a'
212+
line 643: ' book-2-order-b'
213+
line 644: ' book-3-title'
214+
line 645: ' book-3-authors'
215+
line 646: ' book-3-publisher'
216+
line 647: ' book-3-pages'
217+
line 648: ' book-3-type'
218+
line 649: ' book-3-description'
219+
line 650: ' book-3-order-a'
220+
line 651: ' book-3-order-b'
173221
zh-Hans:
174222
src/data/en.yml:
175223
line 44: ' description-roni'
@@ -269,3 +317,51 @@ zh-Hans:
269317
line 551: ' credit-moon-xin'
270318
line 552: ' description-moon-xin'
271319
line 669: ' credit-moon-xin'
320+
line 604: ' book-title-1'
321+
line 605: ' book-authors-1'
322+
line 606: ' book-publisher-1'
323+
line 607: ' book-pages-1'
324+
line 608: ' book-type-1'
325+
line 609: ' book-description-1'
326+
line 610: ' order-link-1a'
327+
line 611: ' order-link-1b'
328+
line 612: ' book-title-2'
329+
line 613: ' book-authors-2'
330+
line 614: ' book-publisher-2'
331+
line 615: ' book-pages-2'
332+
line 616: ' book-type-2'
333+
line 617: ' book-description-2'
334+
line 618: ' order-link-2a'
335+
line 619: ' order-link-2b'
336+
line 620: ' book-title-3'
337+
line 621: ' book-authors-3'
338+
line 622: ' book-publisher-3'
339+
line 623: ' book-pages-3'
340+
line 624: ' book-type-3'
341+
line 625: ' book-description-3'
342+
line 626: ' order-link-3a'
343+
line 627: ' order-link-3b'
344+
line 628: ' book-1-title'
345+
line 629: ' book-1-authors'
346+
line 630: ' book-1-publisher'
347+
line 631: ' book-1-pages'
348+
line 632: ' book-1-type'
349+
line 633: ' book-1-description'
350+
line 634: ' book-1-order-a'
351+
line 635: ' book-1-order-b'
352+
line 636: ' book-2-title'
353+
line 637: ' book-2-authors'
354+
line 638: ' book-2-publisher'
355+
line 639: ' book-2-pages'
356+
line 640: ' book-2-type'
357+
line 641: ' book-2-description'
358+
line 642: ' book-2-order-a'
359+
line 643: ' book-2-order-b'
360+
line 644: ' book-3-title'
361+
line 645: ' book-3-authors'
362+
line 646: ' book-3-publisher'
363+
line 647: ' book-3-pages'
364+
line 648: ' book-3-type'
365+
line 649: ' book-3-description'
366+
line 650: ' book-3-order-a'
367+
line 651: ' book-3-order-b'

src/data/en.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,30 @@ community:
601601

602602
books:
603603
books-title: "Books"
604+
book-1-title: "Getting Started with p5.js"
605+
book-1-authors: "Lauren McCarthy, Casey Reas, and Ben Fry. "
606+
book-1-publisher: "Published October 2015, Maker Media. "
607+
book-1-pages: "246 pages. "
608+
book-1-type: "Paperback."
609+
book-1-description: "Written by the lead p5.js developer and the founders of Processing, this book provides an introduction to the creative possibilities of today's Web, using JavaScript and HTML."
610+
book-1-order-a: "Order Print/Ebook from O'Reilly"
611+
book-1-order-b: "Order from Amazon"
612+
book-2-title: "Introduction to p5.js (Spanish Edition)"
613+
book-2-authors: "Lauren McCarthy, Casey Reas, and Ben Fry. Translated by Aarón Montoya-Moraga."
614+
book-2-publisher: "Published 2018, Processing Foundation, Inc. "
615+
book-2-pages: "246 pages. "
616+
book-2-type: "Soft cover."
617+
book-2-description: "Written by the lead p5.js developer and the founders of Processing, this book provides an introduction to the creative possibilities of today's Web, using JavaScript and HTML."
618+
book-2-order-a: "Order the PDF from The Processing Foundation Press"
619+
book-2-order-b: "Order the physical version from Amazon"
620+
book-3-title: "Generative Design"
621+
book-3-authors: "Benedikt Gross, Hartmut Bohnacker, Julia Laub and Claudius Lazzeroni."
622+
book-3-publisher: "Published October 30, 2018, Princeton Architectural Press; Reprint edition. "
623+
book-3-pages: "255 pages. "
624+
book-3-type: "Paperback."
625+
book-3-description: "By using simple languages such as JavaScript in p5.js, artists and makers can create everything from interactive typography and textiles to 3D-printed furniture to complex and elegant infographics."
626+
book-3-order-a: "Order from Princeton Architectural Press"
627+
book-3-order-b: "Order from Amazon"
604628

605629
examples:
606630
Examples: "Examples"

src/data/es.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,30 @@ community:
603603

604604
books:
605605
books-title: "Libros"
606+
book-1-title: "Getting Started with p5.js"
607+
book-1-authors: "Lauren McCarthy, Casey Reas, and Ben Fry. "
608+
book-1-publisher: "Published October 2015, Maker Media. "
609+
book-1-pages: "246 pages. "
610+
book-1-type: "Paperback."
611+
book-1-description: "Written by the lead p5.js developer and the founders of Processing, this book provides an introduction to the creative possibilities of today's Web, using JavaScript and HTML."
612+
book-1-order-a: "Order Print/Ebook from O'Reilly"
613+
book-1-order-b: "Order from Amazon"
614+
book-2-title: "Introducción a p5.js (Spanish Edition)"
615+
book-2-authors: "Lauren McCarthy, Casey Reas, y Ben Fry. Traducido por Aarón Montoya-Moraga."
616+
book-2-publisher: "Publicado 2018, Processing Foundation, Inc. "
617+
book-2-pages: "246 páginas. "
618+
book-2-type: "Tapa blanda. "
619+
book-2-description: "Escrito por la desarolladora principal de p5.js y los fundadores de Processing, este libro provee una introducción a las posibilidades creativas de la web actual, usando Javascript y HTML."
620+
book-2-order-a: "Ordena el pdf desde The Processing Foundation Press"
621+
book-2-order-b: "Ordena la versión física desde Amazon"
622+
book-3-title: "Generative Design"
623+
book-3-authors: "Benedikt Gross, Hartmut Bohnacker, Julia Laub and Claudius Lazzeroni."
624+
book-3-publisher: "Published October 30, 2018, Princeton Architectural Press; Reprint edition. "
625+
book-3-pages: "255 pages. "
626+
book-3-type: "Paperback."
627+
book-3-description: "By using simple languages such as JavaScript in p5.js, artists and makers can create everything from interactive typography and textiles to 3D-printed furniture to complex and elegant infographics."
628+
book-3-order-a: "Order from Princeton Architectural Press"
629+
book-3-order-b: "Order from Amazon"
606630

607631
examples:
608632
Examples: "Ejemplos"

src/data/zh-Hans.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,30 @@ community:
601601

602602
books:
603603
books-title: "书籍"
604+
book-1-title: "Getting Started with p5.js"
605+
book-1-authors: "Lauren McCarthy, Casey Reas, and Ben Fry. "
606+
book-1-publisher: "Published October 2015, Maker Media. "
607+
book-1-pages: "246 pages. "
608+
book-1-type: "Paperback."
609+
book-1-description: "Written by the lead p5.js developer and the founders of Processing, this book provides an introduction to the creative possibilities of today's Web, using JavaScript and HTML."
610+
book-1-order-a: "Order Print/Ebook from O'Reilly"
611+
book-1-order-b: "Order from Amazon"
612+
book-2-title: "Introduction to p5.js (Spanish Edition)"
613+
book-2-authors: "Lauren McCarthy, Casey Reas, and Ben Fry. Translated by Aarón Montoya-Moraga."
614+
book-2-publisher: "Published 2018, Processing Foundation, Inc. "
615+
book-2-pages: "246 pages. "
616+
book-2-type: "Soft cover."
617+
book-2-description: "Written by the lead p5.js developer and the founders of Processing, this book provides an introduction to the creative possibilities of today's Web, using JavaScript and HTML."
618+
book-2-order-a: "Order the PDF from The Processing Foundation Press"
619+
book-2-order-b: "Order the physical version from Amazon"
620+
book-3-title: "Generative Design"
621+
book-3-authors: "Benedikt Gross, Hartmut Bohnacker, Julia Laub and Claudius Lazzeroni."
622+
book-3-publisher: "Published October 30, 2018, Princeton Architectural Press; Reprint edition. "
623+
book-3-pages: "255 pages. "
624+
book-3-type: "Paperback."
625+
book-3-description: "By using simple languages such as JavaScript in p5.js, artists and makers can create everything from interactive typography and textiles to 3D-printed furniture to complex and elegant infographics."
626+
book-3-order-a: "Order from Princeton Architectural Press"
627+
book-3-order-b: "Order from Amazon"
604628

605629
examples:
606630
Examples: "范例"

src/templates/pages/books/index.hbs

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,20 @@ slug: books/
2020
</div>
2121

2222
<div class="wide-right-column book">
23-
<h2>Getting Started with p5.js</h2>
24-
<p>Lauren McCarthy, Casey Reas, and Ben Fry<br>
25-
Published October 2015, Maker Media. 246 pages. Paperback.
26-
</p>
27-
28-
<p>Written by the lead p5.js developer and the founders of Processing, this book provides an introduction to the creative possibilities of today's Web, using JavaScript and HTML.</p>
23+
<h2>{{#i18n "book-1-title"}}{{/i18n}}</h2>
2924

25+
<p>{{#i18n "book-1-authors"}}{{/i18n}}</p>
3026
<p>
31-
<a href="http://shop.oreilly.com/product/0636920032076.do" target="_blank">Order Print/Ebook from O'Reilly</a><br>
32-
<a href="http://www.amazon.com/Make-Interactive-Graphics-JavaScript-Processing/dp/1457186772" target="_blank">Order from Amazon</a>
27+
{{#i18n "book-1-publisher"}}{{/i18n}}
28+
{{#i18n "book-1-pages"}}{{/i18n}}
29+
{{#i18n "book-1-type"}}{{/i18n}}
3330
</p>
3431

32+
<p>{{#i18n "book-1-description"}}{{/i18n}}</p>
33+
34+
<p><a href="http://shop.oreilly.com/product/0636920032076.do" target="_blank">{{#i18n "book-1-order-a"}}{{/i18n}}</a></p>
35+
<p><a href="http://www.amazon.com/Make-Interactive-Graphics-JavaScript-Processing/dp/1457186772" target="_blank">{{#i18n "book-1-order-b"}}{{/i18n}}</a></p>
36+
3537
</div>
3638
</div>
3739

@@ -43,18 +45,20 @@ slug: books/
4345
</div>
4446

4547
<div class="wide-right-column book">
46-
<h2>Introducción a p5.js</h2>
47-
<p>Lauren McCarthy, Casey Reas, y Ben Fry. Traducido por Aarón Montoya-Moraga.
48-
Publicado 2018, Processing Foundation, Inc. 246 páginas. Tapa blanda.
49-
</p>
50-
51-
<p>Escrito por la desarolladora principal de p5.js y los fundadores de Processing, este libro provee una introducción a las posibilidades creativas de la web actual, usando Javascript y HTML.</p>
48+
<h2>{{#i18n "book-2-title"}}{{/i18n}}</h2>
5249

50+
<p>{{#i18n "book-2-authors"}}{{/i18n}}</p>
5351
<p>
54-
<a href="https://processingfoundation.press/product/introduccion-a-p5-js/" target='_blank'>Ordena el pdf desde The Processing Foundation Press</a><br>
55-
<a href="https://www.amazon.com/Introducci%C3%B3n-p5-js-Spanish-Lauren-McCarthy/dp/0999881302/" target="_blank">Ordena la versión física desde Amazon</a>
52+
{{#i18n "book-2-publisher"}}{{/i18n}}
53+
{{#i18n "book-2-pages"}}{{/i18n}}
54+
{{#i18n "book-2-type"}}{{/i18n}}
5655
</p>
5756

57+
<p>{{#i18n "book-2-description"}}{{/i18n}}</p>
58+
59+
<p><a href="https://processingfoundation.press/product/introduccion-a-p5-js/" target="_blank">{{#i18n "book-2-order-a"}}{{/i18n}}</a></p>
60+
<p><a href="https://www.amazon.com/Introducci%C3%B3n-p5-js-Spanish-Lauren-McCarthy/dp/0999881302/" target="_blank">{{#i18n "book-2-order-b"}}{{/i18n}}</a></p>
61+
5862
</div>
5963

6064
</div>
@@ -67,18 +71,20 @@ slug: books/
6771
</div>
6872

6973
<div class="wide-right-column book">
70-
<h2>Generative Design</h2>
71-
<p>Benedikt Gross, Hartmut Bohnacker, Julia Laub and Claudius Lazzeroni<br>
72-
Published October 30, 2018, Princeton Architectural Press; Reprint edition. 255 pages. Paperback.
73-
</p>
74-
75-
<p>By using simple languages such as JavaScript in p5.js, artists and makers can create everything from interactive typography and textiles to 3D-printed furniture to complex and elegant infographics.</p>
74+
<h2>{{#i18n "book-3-title"}}{{/i18n}}</h2>
7675

76+
<p>{{#i18n "book-3-authors"}}{{/i18n}}</p>
7777
<p>
78-
<a href="https://www.papress.com/html/product.details.dna?isbn=9781616897581" target="_blank">Order from Princeton Architectural Press</a><br>
79-
<a href="https://www.amazon.com/Generative-Design-Visualize-Program-JavaScript/dp/1616897589" target="_blank">Order from Amazon</a>
78+
{{#i18n "book-3-publisher"}}{{/i18n}}
79+
{{#i18n "book-3-pages"}}{{/i18n}}
80+
{{#i18n "book-3-type"}}{{/i18n}}
8081
</p>
8182

83+
<p>{{#i18n "book-3-description"}}{{/i18n}}</p>
84+
85+
<p><a href="https://www.papress.com/html/product.details.dna?isbn=9781616897581" target="_blank">{{#i18n "book-3-order-a"}}{{/i18n}}</a></p>
86+
<p><a href="https://www.amazon.com/Generative-Design-Visualize-Program-JavaScript/dp/1616897589" target="_blank">{{#i18n "book-3-order-b"}}{{/i18n}}</a></p>
87+
8288
</div>
8389
</div>
8490
<br>

0 commit comments

Comments
 (0)