]> code.citadel.org Git - citadel.git/blobdiff - webcit/subst.c
* modify gettext parameter syntax to skip () so, its now <?SOME:TOKEN(12343, _("trans...
[citadel.git] / webcit / subst.c
index e5adac22356bfa3108d74bbeda44ce8c55007ffd..f932e10ba8e43a06d03b8298abf9bf7725a26004 100644 (file)
@@ -743,6 +743,8 @@ TemplateParam *GetNextParameter(StrBuf *Buf, const char **pCh, const char *pe, W
        else if (*pch == '_') {
                Parm->Type = TYPE_GETTEXT;
                pch ++;
+               if (*pch == '(')
+                       pch ++;
        }
        else if (*pch == 'B') {
                Parm->Type = TYPE_BSTR;
@@ -784,6 +786,10 @@ TemplateParam *GetNextParameter(StrBuf *Buf, const char **pCh, const char *pe, W
                        Parm->Start = pchs;
                        Parm->len = pche - pchs;
                        pch ++; /* move after trailing quote */
+                       if ((Parm->Type = TYPE_GETTEXT) && (*pch == ')')) {
+                               pch ++;
+                       }
+
                }
        }
        else {