Skip to content

Conversation

@yukienomiya
Copy link
Member

@yukienomiya yukienomiya commented Aug 7, 2020

See PR #803

Changes:

  • Add the getenJSON.js script that generates the English version of the Reference JSON files (en.json) from the data.json and the staticStrings.json.

  • Add the en.json file. This file could serve both as a template for new translations and as an always up-to-date model to compare the translations with, in order to know when and where they need to be updated.

  • Add the staticStrings.json file that contains static text from the Reference section of the website (page headings, menu, footer, etc.). This file is used by the getenJSON script to build the en.json.

  • Update the Reference section of the i18n_contribution.md file.

Notes:

The getenJSON.js script extracts most of the data it needs from the data.json, however some strings are actually hardcoded in the webpages and can't be fetched from the documentation: these "static strings" are stored in the staticStrings.json file. The only purpose of the staticStrings.json is therefore only to store data needed by the getenJSON script.
When creating a new translation, the contributor will only need to duplicate and translate the en.json.

yukienomiya and others added 8 commits August 6, 2020 10:19
This script will extract data from the data.json (p5.js documentation) and from the staticStrings.json file and generate the English version of the Reference translation files (en.json).
Transform description elements from strings to arrays, to match new format.
Move p5 Classes out of the p5 Class object, to match new format.
Add the script section that swaps text from class pages of the Reference (it currently only performs the swaps in method/fields pages).
Update the function with the new JSON format.
@yukienomiya yukienomiya marked this pull request as ready for review August 9, 2020 00:00
mcturner1995 and others added 15 commits August 14, 2020 16:48
adding korean sketch, prep for korean launch
add Korean name of 2019 showcase curator
"stop1": "数字:现在值的最低值",    CHANGED TO:    "stop1": "数字:现在值的最高值",
This script will extract data from the data.json (p5.js documentation) and from the staticStrings.json file and generate the English version of the Reference translation files (en.json).
Copy link
Contributor

@outofambit outofambit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. GitHub doesn't seem to be showing the right diff (its showing this PR will add a bunch of commits that are already in main), but I reviewed the changes from @yukienomiya. 🚀

@outofambit outofambit merged commit 3b40829 into processing:main Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants