StoryQuest Bootstrap: Make it translatable and add Spanish translation - #2859
Conversation
Create a new domain for the addon. Load the game catalog in it, and set the editor locale to it. Add the plugin script and dialog scene to the list of files to extract. In the script, mark the menu label and the error messages as translatable. Regenerate the POT file, and update the Spanish translation. Resolve #2851
|
@LauraFoglia @lasr21 @Stregoica777 if any of you can, please review this Spanish translation! Steps:
And let me know what do you think about the dialog translation. |
| var errors: PackedStringArray | ||
| if title.length() < MIN_TITLE_LENGTH: | ||
| errors.append("⚠ The title must be at least %d letters long." % MIN_TITLE_LENGTH) | ||
| errors.append(tr("⚠ The title must be at least %d letters long.") % MIN_TITLE_LENGTH) |
There was a problem hiding this comment.
One for a future PR: we could replace the warning triangle emoji with getting an icon from the theme with get_theme_icon("StatusWarning", "EditorIcons") - but this would mean changing this from being displayed in a single RichTextLabel to being a grid/similar.
There was a problem hiding this comment.
Yes! Let's do that as followup.
| #: addons/storyquest_bootstrap/new_storyquest_dialog.tscn | ||
| msgid "project_green" | ||
| msgstr "proyecto_verde" |
There was a problem hiding this comment.
No need to fix this here but perhaps it would be better to set the placeholder text for this in code, derived from the working title placeholder text in the same way as the real folder name is.
There was a problem hiding this comment.
Good point, and then it wouldn't be necessary to translate it!
|
OK, I can receive feedback from the main branch. |
Create a new domain for the addon. Load the game catalog in it, and set the editor locale to it.
Add the plugin script and dialog scene to the list of files to extract. In the script, mark the menu label and the error messages as translatable.
Regenerate the POT file, and update the Spanish translation.
Resolve #2851