Title: Translating strings from HTML
Last modified: March 21, 2026

---

# Translating strings from HTML

 *  Resolved [N.g](https://wordpress.org/support/users/loralora/)
 * (@loralora)
 * [2 months, 2 weeks ago](https://wordpress.org/support/topic/translating-strings-from-html/)
 * Hello. Thank you for plugin.
   We use a link to the **MultivendorX plugin, and 
   my navigation and page title (inside the plugin dashboard)** aren’t translated.
   Is there a way to **translate the string Messages %s**?
 *     ```wp-block-code
       Messages <span class="%s">%s</span>
       ```
   
 * I tried that.
 *     ```wp-block-code
       function custom_better_messages_force_translation( $translated_text, $text, $domain ) {    if ( $domain === 'bp-better-messages' && $text === 'Messages <span class="%s">%s</span>' ) {        $translated_text = 'Zpravy <span class="%s">%s</span>';    }    return $translated_text;}add_filter( 'gettext', 'custom_better_messages_force_translation', 20, 3 );
       ```
   
 * But it didn’t help. The Loco Translate plugin (Individual) is used for translation.
   If there’s a solution, could you please share it? We use the Ajax version.

Viewing 1 replies (of 1 total)

 *  Plugin Support [Andrij Tkachenko](https://wordpress.org/support/users/andrijtkachenko/)
 * (@andrijtkachenko)
 * [2 months, 2 weeks ago](https://wordpress.org/support/topic/translating-strings-from-html/#post-18858475)
 * Hi,
 * Thank you for reporting this. The navigation label in the MultiVendorX vendor
   dashboard was missing a translation wrapper — this will be fixed in the next 
   update.
   Thanks!

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftranslating-strings-from-html%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/bp-better-messages/assets/icon-256x256.png?rev=2835105)
 * [Better Messages - Chat Rooms, Group Chat, Private Messages & AI Chat Bots](https://wordpress.org/plugins/bp-better-messages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bp-better-messages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bp-better-messages/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-better-messages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-better-messages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-better-messages/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Andrij Tkachenko](https://wordpress.org/support/users/andrijtkachenko/)
 * Last activity: [2 months, 2 weeks ago](https://wordpress.org/support/topic/translating-strings-from-html/#post-18858475)
 * Status: resolved