Skip to content

Conversation

@cassiano
Copy link
Contributor

Fixes #3711

Changes:

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #123
  • meets the standards outlined in the accessibility guidelines

@cassiano
Copy link
Contributor Author

cassiano commented Oct 29, 2025

@raclim, this is exactly the kind ot situation discussed in #3666, where a new feature (or bug fix) in introduced into the editor, bringing along with it new localization keys, which remain untranslated for all locales besides the default en-US until some user notices and manually translates it. My previous suggestion to use AI for this kind of situation, collecting eventual translation suggestions by end users afterwards (in the editor itself), would fully solve this problem.

@cassiano
Copy link
Contributor Author

BTW, I couldn't find a way to use the "rename variable" shortcut in my Macbook Pro. I have tried all kinds of Fn, Ctrl, Option and Command combinations with F2. Nothing worked.

cassiano and others added 7 commits October 29, 2025 14:49
…rtcuts-code-editing-rename-variable-locale-key
…rtcuts-code-editing-rename-variable-locale-key
…rtcuts-code-editing-rename-variable-locale-key
…rtcuts-code-editing-rename-variable-locale-key
…rtcuts-code-editing-rename-variable-locale-key
…rtcuts-code-editing-rename-variable-locale-key
…rtcuts-code-editing-rename-variable-locale-key
Copy link
Collaborator

@raclim raclim left a comment

Choose a reason for hiding this comment

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

Thanks for your work on this!

@raclim raclim merged commit a29ccf6 into processing:develop Nov 24, 2025
1 check passed
@cassiano cassiano deleted the add-translation-in-pt-BR-for-keyboard-shortcuts-code-editing-rename-variable-locale-key branch November 25, 2025 22:03
@cassiano
Copy link
Contributor Author

BTW, I couldn't find a way to use the "rename variable" shortcut in my Macbook Pro. I have tried all kinds of Fn, Ctrl, Option and Command combinations with F2. Nothing worked.

@raclim, I could not find a way to use this new feature in my Macbook Pro M3. Any help will be strongly appreciated.

@raclim
Copy link
Collaborator

raclim commented Dec 1, 2025

@cassiano I think to use the "rename variable" function within the editor, you will need to highlight the variable you wish to rename and then use the "Ctrl + F2" command (in the video below). I believe this was intended to be mirrored after the functionality within VS Code. It is a bit tricky to figure out, so there probably needs to be further instruction or an additional Menu Option to activate it more easily.

rename_variable.mov

@cassiano
Copy link
Contributor Author

cassiano commented Dec 2, 2025

@cassiano I think to use the "rename variable" function within the editor, you will need to highlight the variable you wish to rename and then use the "Ctrl + F2" command (in the video below). I believe this was intended to be mirrored after the functionality within VS Code. It is a bit tricky to figure out, so there probably needs to be further instruction or an additional Menu Option to activate it more easily.
rename_variable.mov

@raclim, I have a Macbook Pro with the M3 chip and the suggested keys DO NOT work as expected. In fact nothing happens when they are pressed after selecting the variable name. I tried Ctrl+F2, Fn+F2, Ctrl+Fn+F2 etc, with no success.

Have you tried it in a Macbook yourself?

@raclim
Copy link
Collaborator

raclim commented Dec 5, 2025

@cassiano Yes I am on a Macbook—albeit a bit older model! I do have my function keys as the standards one by default within my Keyboard Settings (pictured below), but I believe it should work if you use the Globe key as well (i.e Globe key + Ctrl + F2). This probably needs to be updated within the Keyboard Shortcuts modal so it's clearer!

Screenshot 2025-12-05 at 5 08 03 PM

@cassiano
Copy link
Contributor Author

cassiano commented Dec 6, 2025

@raclim, I have been using the way you suggested, but it still doesn't work. I am using the keyboard default settings for my Mac, so this must be a bug on p5.js's editor side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add translation in pt-BR for KeyboardShortcuts.CodeEditing.RenameVariable locale key

2 participants