projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GETTEXT: optionaly allow to escape translated tokens.
[citadel.git]
/
webcit
/
gettext.c
diff --git
a/webcit/gettext.c
b/webcit/gettext.c
index d687588336935dc355171d037356f96cbaa7830f..ba4b5f37feb3f74912242b16fc503ca93ce9f7e0 100644
(file)
--- a/
webcit/gettext.c
+++ b/
webcit/gettext.c
@@
-427,10
+427,11
@@
void initialize_locales(void) {
#endif /* ENABLE_NLS */
#endif /* ENABLE_NLS */
-
void TmplGettext(StrBuf *Target, WCTemplputParams *TP)
{
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);
}
}