<:Translation:> tags in #SET{}

Hi All,

I'm running a multilingual site and use SPIP's syntax for translating
website aspects at the squelettes level.

For example using the <:somestring:> tag that I have defined as "Test
String" in the local_en.php file.

'somestring' => 'Test String',

The <:somestring:> tag works well at the squelettes level, but I can't
get it to work in conjunction with the #SET tag.

Both these don't work:
#SET{1title, "<:somestring:>"}
#SET{1title, <:somestring:>}

In the site it simply shows up as
Test String"}

...and the variable is not set.
Is there a workaround?


spip rocks :slight_smile:

Urs Riggenbach

Urs Riggenbach Consulting
Weissensteinstrasse 76
4500 Solothurn

+41 79 918 0663 (CH)
+358 45 872 3836 (FI)

Important: This email is confidential and may be privileged.
If you are not the intended recipient, please delete
it and notify us immediately; you should not copy
or use it for any purpose, nor disclose its contents
to any other person. Thank you.



Excellent Serge,
works splendid!


Maybe you can also use the function _T() defined in ecrire/inc/utils.php

You should try (for <:somestring:>)