GeezerVison is showing github.com — Node type help text will not display the translated version · Issue #7233 · backdrop/backdrop-issues
Node type help text will not display the translated version #7233
Description
Description of the bug
The "Provide explanation or submission guidelines" option on a node type can be translated. It appears in the user interface translation, so that part is good.
But when on a node add or edit screen, it will not display that translated text.
Steps To Reproduce
To reproduce the behavior:
- Set up a second language (enable Locale, Language, etc), e.g. French.
- Add help / guidelines to a node type, e.g. "Page".
- Go to user interface translation and translate that help text.
- Visit
add/page.
Actual behavior
Displays untranslated help text.
Expected behavior
Display translated help text.
Activity
herbdool commented on Oct 23, 2026
I noticed that in node_add_page() it translates t($node_type->description) for display on the node/add page. In my testing, it won't display the translation of $node_type->help unless I also pass in the context, e.g. 'type:page:help. This is odd since the description also has a similar context but doesn't need it to be displayed.
I was trying to figure out the mechanism of where these strings become available for translation. It's not because there's a _config_translatables array set for the node type. This must predate the introduction of that.
herbdool commented on Oct 23, 2026
@indigoxela would you have time to review/test this one?
indigoxela commented on Oct 24, 2026
The "Provide explanation or submission guidelines" option on a node type can be translated.
🤯 it can? Wasn't aware of that in core.
At first I thought, this overlaps with i18n, but apparently "help" isn't considered in the contrib module.
I'm not entirely sure, if the order of filter_xss_admin() and t() is OK that way... I'm always a bit insecure when it comes to t() on variables.
Metadata
Metadata
Development
No branches or pull requestsIssue actions