better locale support in message template UI, #24659
pass correct arguments to msg_template::prepare, #24659