String between apostrophe with apostrophe and “special” char PROBLEM

4 years ago

dejw
Member | 2
+
0
-

I will be brief :)

Strings example:

{_'You\'re welcome!'} = OK
{_'You\'re welcome! | domain.com'} = OK
{_'You\'re welcome!|domain.com'} = OK
{_'domain.com | You\'re welcome!'} = OK
{_'domain.com|You\'re welcome!'} = Latte\CompileException

Examples above are only examples and I really need use fitht instance in my code. I'm using with {'someprefix|text for translations with random characters, even \''}. And excatly this case is not working.

Thanks for help :)

Last edited by dejw (2015-12-12 22:26)

4 years ago

CZechBoY
Member | 3377
+
0
-

Have you tried longer version?

{_}domain.com|You're welcome!{/_}

4 years ago

dejw
Member | 2
+
0
-

I've tried. Right now. And it works. Unfortunately we are using exactly this type of entries for all translations across of our huge system:

{'someprefix|text for translations with random characters, even apostrophe\' and other chars'}

So using of your hint is not possible. Why exactly this the last example doesn't work if all previous does?

Edit: I can use also quotation marks instead of apostrophes around string and it works. See below.

{"someprefix|text for translations with random characters, even apostrophe' and other chars"}

But I would like to use apostrophe – why it isn't possible? :)

Last edited by dejw (2015-12-12 22:54)