I want to modify the text of the “submit” button that is displayed beneath the message composer.
When the user hits “Reply” to a post the “submit” button beneath the composer is labelled “Reply”. I’d like to modify this but there are more than 50 text objects that include the word “reply.” Which text label do I modify?
There are two different translation keys used for the reply button. js.composer.reply is used for the reply button that you see when you open the composer. js.topic.reply.title is used for the reply button is displayed in the topic (the button that you click to open the composer.)
I have not memorized these translation keys. The way I found them was by entering I18n.enableVerboseLocalizationSession() into the console of my browser’s web inspector. After doing that, a number key will be added to all text items on Discourse that can be customized. You can use that number to find the correct translation key. That approach is outlined here: Find a translation key with verbose localization.
On the latest Chrome browser, the translation key names are displayed in the web inspector’s ‘info’ tab.