GETTEXT: optionaly allow to escape translated tokens.
[citadel.git] / webcit / gettext.c
index d687588336935dc355171d037356f96cbaa7830f..ba4b5f37feb3f74912242b16fc503ca93ce9f7e0 100644 (file)
@@ -427,10 +427,11 @@ void initialize_locales(void) {
 
 #endif /* ENABLE_NLS */
 
-
 void TmplGettext(StrBuf *Target, WCTemplputParams *TP)
 {
-       StrBufAppendBufPlain(Target, _(TP->Tokens->Params[0]->Start), -1, 0);
+       const char *Text = _(TP->Tokens->Params[0]->Start);
+
+       StrBufAppendTemplateStr(Target, TP, Text, 1);
 }