0 votes
in SoSci Survey (dt.) by s065450 (160 points)

Do you know a solution for placeholder in French?

if (getLanguage() == 'fre');
{
if ($code == 1) {
replace('%bucket_fr%', 'construction d'un petit immeuble');
}

Problem is that e.g. "d'un" is not displayed: because the " ' " is interpreted as end of the placeholder.

Is there any possibility to solve this problem within placeholders?

1 Answer

0 votes
by SoSci Survey (305k points)

You have at least three options:

// Use a backslash to "mask" the quotation mark
replace('%bucket_fr%', 'construction d\'un petit immeuble');
// Use doulbe quotations marks to define the string
replace('%bucket_fr%', "construction d'un petit immeuble");
// Use the correct character for the apostrophe
replace('%bucket_fr%', 'construction d’un petit immeuble');

By the way: It's the same problem with English...

by s065450 (160 points)
super easy, danke!

Willkommen im Online-Support von SoSci Survey.

Hier bekommen Sie schnelle und fundierte Antworten von anderen Projektleitern und direkt von SoSci Survey.

→ Eine Frage stellen


Welcome to the SoSci Survey online support.

Simply ask a question to quickly get answers from other professionals, and directly from SoSci Survey.

→ Ask a Question

...