projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* now template tokens can work as functions, you can add params to them after in...
[citadel.git]
/
webcit
/
gettext.c
diff --git
a/webcit/gettext.c
b/webcit/gettext.c
index 549dfa0d89742d4444ef3b0365f8d6f2c57323db..aaa83df34770fe4c4061fcc514d62f6a64a5c8ba 100644
(file)
--- a/
webcit/gettext.c
+++ b/
webcit/gettext.c
@@
-319,6
+319,7
@@
void initialize_locales(void) {
}
}
+
void ShutdownLocale(void)
{
int i;
@@
-355,3
+356,8
@@
void preset_locale(void)
#endif /* ENABLE_NLS */
+void TmplGettext(StrBuf *Target, int nTokens, WCTemplateToken *Token)
+{
+ StrBufAppendBufPlain(Target, _(Token->Params[0]->Start), -1, 0);
+
+}