[gettext][mo-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’sUse gettextorUse alternative MO readeroption 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.