Title: [gettext][mo-dynamic] Problem with multi-line strings
Last modified: November 20, 2020

---

# [gettext][mo-dynamic] Problem with multi-line strings

 *  Resolved [madmax4ever](https://wordpress.org/support/users/madmax4ever/)
 * (@madmax4ever)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/gettextmo-dynamic-problem-with-multi-line-strings/)
 * Hello,
 * I am using your localization optimization and I am currently translating a plugin.
   
   But some parts of it weren’t translated as they should be in pop-ups in the back
   end. At first I blamed this plugin… In fact, it turns out that the not translated
   strings are multi-line ones, and that they are not translated only when WPPP’s`
   Use gettext` or `Use alternative MO reader` option is enabled. With those localization
   optimizations disabled, wordpress translation mechanism works with those multi-
   line strings. A sample of such multi-line strings should:
 *     ```
       sprintf(__( 'Here is a dynamic multi-line test string with replacement as="%s"
                          Could you find why it is not translated
                          by [gettext] nor [mo-dynamic]?
                          I sincerely hope. Thx!' , 'my-test-plugin-text-domain' ),
               $this) );
       ```
   
 * Of course, I delete WPPP’s localization cache dir after enabling each option 
   before testing and reporting this, just to be sure everything was in sync.
 * Hope it helps.

The topic ‘[gettext][mo-dynamic] Problem with multi-line strings’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-performance-pack_6d9fb6.svg)
 * [WP Performance Pack](https://wordpress.org/plugins/wp-performance-pack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-performance-pack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-performance-pack/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-performance-pack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-performance-pack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-performance-pack/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [madmax4ever](https://wordpress.org/support/users/madmax4ever/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/gettextmo-dynamic-problem-with-multi-line-strings/)
 * Status: resolved