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

i18n for console messages

Open kjhollen opened this issue 7 years ago • 3 comments

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

It's been a while, but we, @al6862 @anpanring would like to take over this issue. Could we try it out first based on pull request #3488?

Bernice55231 avatar Mar 29 '23 17:03 Bernice55231

@Bernice55231 This is pretty old and I'm not sure still relevant especially considering we have an FES system that can support translated messages as well.

limzykenneth avatar Apr 03 '23 13:04 limzykenneth

This is approved for implementation in a minor release of 2.x, but it's not quite fleshed out for assignment just yet. To move forward, this issue needs an implementation proposal as well as a volunteer to work on it.

PS: This message is part of cleaning up the p5.js 2.0 roadmap prior to release, to make outstanding more more approachable for new contributors. You can join the conversation about this new version on this Discourse thread or this GitHub thread!

If you're new to p5.js contribution, welcome! Please be sure to read through the contributor guidelines, and keep in mind that you should not file a pull request (or start working on code changes) without a corresponding issue or before an issue has been approved for implementation and assigned.

ksen0 avatar Apr 16 '25 09:04 ksen0

Is anyone currently working on this? If not, I'd like to take it on. This would be my first contribution to open source.

ombalgude avatar Sep 23 '25 05:09 ombalgude

Hi @ombalgude , thanks for your interest! This is an older issue, and currently the FES system in 2.x is undergoing some bigger re-work in terms of architecture, so this issue is actually not quite applicable any more. Sorry about that, I'll close it. You can check other Good First Issue issues. You're also welcome to also volunteer for issues with "Help Wanted" but these may be a bit more complicated (you can always ask in comments or on Discord for any clarification, of course). When you volunteer for an issue, I also recommend giving a brief explanation of how you'd approach it. Lastly, if you haven't already, I recommend reading through the contributor documentation and guidelines. Welcome, hope to see you soon on some other issue/thread/PR!

ksen0 avatar Sep 23 '25 18:09 ksen0

okay ill go for another issue

ombalgude avatar Sep 24 '25 08:09 ombalgude