p5.js icon indicating copy to clipboard operation
p5.js copied to clipboard

i18n for console messages

Open kjhollen opened this issue 6 years ago • 3 comments
trafficstars

Nature of issue?

  • [ ] Found a bug
  • [ ] Existing feature enhancement
  • [x] New feature request

In various parts of the codebase, there are console error messages for the end user hardcoded in English. We could internationalize messages to provide better support for users who speak other languages. Here are some files where I found such error messages:

  • [ ] src/webgl/3d_primitives.js
  • [ ] src/webgl/p5.Camera.js
  • [ ] src/webgl/p5.RendererGL.js
  • [ ] src/webgl/p5.Matrix.js
  • [ ] src/webgl/p5.Shader.js
  • [ ] src/webgl/p5.Texture.js
  • [ ] src/core/structure.js
  • [ ] src/math/p5.Vector.js
  • [ ] src/typography/loading_displaying.js
  • [ ] src/typography/p5.Font.js
  • [ ] src/webgl/p5.Geometry.js

This feature enhancement is not meant to cover translations themselves, but rather the architecture required to allow use of translations in the future.

kjhollen avatar Dec 11 '18 02:12 kjhollen