Skip to content

Add localization context to navigation Back labels - #3077

Merged
manuq merged 1 commit into
mainfrom
translation-context
Nov 10, 2026
Merged

manuq merged 1 commit into
mainfrom
translation-context

Conversation

@manuq

@manuq manuq commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

To explain to translators that this is for navigation, not the "back" body part.

To make it easier, extract the Back button to a separate scene. Most menus had its own copy of it, with the left arrow icon and the cancel shortcut. Make it a scene and instantiate it.

I learned about the importance of this at GodotFest 2026 in the talk "Continuous community driven translations with gettext and Weblate" by Simon Dalvai (@dulvui). In that talk, there was an example of "back" being contextualized as "the body part". That made me realize that we have the same word, but in this case, is for UI navigation.

To explain to translators that this is for navigation, not the "back" body part.

To make it easier, extract the Back button to a separate scene. Most menus had
its own copy of it, with the left arrow icon and the cancel shortcut. Make it a
scene and instantiate it.

I learned about the importance of this at GodotFest 2026 in the talk "Continuous
community driven translations with gettext and Weblate" by Simon Dalvai
(@dulvui). In that talk, there was an example of "back" being contextualized as
"the body part". That made me realize that we have the same word, but in this
case, is for UI navigation.
@manuq
manuq requested a review from a team as a code owner November 10, 2026 17:37
@manuq

manuq commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator Author

Note that this is where the localization context is set in the editor. It is a StringName so instead of adding a full sentence about it, I used a single word "navigation".

Image

@manuq
manuq merged commit f47e4ae into main Nov 10, 2026
7 checks passed
@manuq
manuq deleted the translation-context branch November 10, 2026 17:40
@github-actions

Copy link
Copy Markdown

Play this branch at https://play.threadbare.game/branches/endlessm/translation-context/.

(This launches the game from the start, not directly at the change(s) in this pull request.)

@dulvui

dulvui commented Nov 10, 2026

Copy link
Copy Markdown

Hi @manuq! Great to see that my talk was useful :-)

@manuq

manuq commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator Author

Hi @manuq! Great to see that my talk was useful :-)

It was Simon. Grazie mille!

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.

2 participants