Problem/Motivation
Even when the translation has been added, the 'Custom Body Class Settings' label in content type edit page does not show the translation for the active site language.
Steps to reproduce
- Install and enable module.
- Add translation to the 'Custom Body Class Settings' string.
- Access content type edit screen (/admin/structure/types/manage/content_type).
- The label 'Custom Body Class Settings' does not show the translation.
Proposed resolution
Change line 46 of custom_body_class.module from
#title' => ('Custom Body Class Settings'),
to
#title' => t('Custom Body Class Settings'),
After this change, the label translation in displayed.
Comments
Comment #2
viren18febs commentedI have added a patch with the changes.
Thanks
Comment #3
ilfelice commentedHello @viren18febs!
Thank you for the fast response.
I don't have my dev PC at hand, so have not actually tried the patch.
But looking at it, and being as simple as it is, I think it patch is good to go.
Have a happy new year!
Comment #6
astonvictor commentedIt works for me. Added changes as an MR.
Comment #7
astonvictor commentednote that the
2.0.0branch is missing in Gitlab.