Open tomasr78 opened 6 years ago
Have you tried embedding some HTML/XML in the tag/msgstr that won't show,such as <-- ID1 -->
? Haven't tried it myself.
Sorry but I don't understand your suggestion, could you please explain more detailed.
Something like this:
[[[Hello world<!--ID1-->]]]
I have tried to add [[[Hello world]]] but then the whole string "Hello world" goes to msgstr when parsing. The id is not extracted from text.
I am not sure is Issues subject which I wrote reflect the idea of the problem which I get every time when I change translation text slightly.
I would like to explain the problem. The i18n use translation text surrounded with [[[]]] tags as translation index for other languages and the smallest change in text breaks that index and all translations are lost.
For example I have C# MVC web page with title
[[[PDF to Word Converter]]]
I get this translated to 22 languages. At next day I want slightly change English words positions in that title for A/B testing. Whenever I do this the all translations for other language gets lost because the English text which is also translation tag is changed.Is it possible to prevent this and keep translations even if original text is changed? Any suggestions are welcome.
My suggestion would be to introduce optional translationTag and use it as translation match id.
[[[text to translate///ID=1]]]