<: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?

Cheers,
Urs

spip rocks :slight_smile:

--
Urs Riggenbach

Urs Riggenbach Consulting
Weissensteinstrasse 76
4500 Solothurn
Switzerland

+41 79 918 0663 (CH)
+358 45 872 3836 (FI)
https://www.ursriggenbach.com

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.

[(#SET{title,<:suite:>}|oui)]

#GET{title}

Excellent Serge,
works splendid!

Cheers,
Urs

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

You should try (for <:somestring:>)

#SET{param,#ARRAY{spip_lang,en}}

[(somestring|_T{#GET{param}})]

http://code.spip.net/autodoc/tree/ecrire/inc/utils.php.html#function__T