- Create a new message (maybe called 'visualeditor-tool-substitutetitle') that consists merely of $1 in English and a lengthy qqq that tells them to use {{GRAMMAR:foo|$1}} for languages that need it.
- Replace all lines like ve.ui.MWGalleryInspectorTool.static.title = OO.ui.deferMsg( 'visualeditor-mwgalleryinspector-title' ); with ve.ui.MWGalleryInspectorTool.static.title = OO.ui.deferMsg( 'visualeditor-tool-substitutetitle', 'visualeditor-mwgalleryinspector-title' );
- Help the translators update all their messages as needed. Weep for languages in which the case should vary for all the extra work we've made them do.
https://translatewiki.net/wiki/Thread:Support/Visualeditor-toolbar-insert_and_related_items