X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fgettext.c;h=f3472b3617779f02e2826fb35dd62b38985b05a0;hb=27e6a22f021cffe2cee1a41accbf9d2f78b20dab;hp=1402983c01865e0e15c9b80eec1cf7403df65de6;hpb=47bcaaabae789a2f20de958b84714ff2e23dc5bb;p=citadel.git diff --git a/webcit/gettext.c b/webcit/gettext.c index 1402983c0..f3472b361 100644 --- a/webcit/gettext.c +++ b/webcit/gettext.c @@ -6,10 +6,6 @@ #include "webserver.h" #ifdef ENABLE_NLS - -#define NUM_LANGS 10 /* how many different locales do we know? */ -#define SEARCH_LANG 20 /* how many langs should we parse? */ - /* actual supported locales */ const char *AvailLang[NUM_LANGS] = { "C", @@ -64,7 +60,7 @@ void httplang_to_locale(StrBuf *LocaleString) int nBest; int nParts; StrBuf *Buf = NULL; - StrBuf *SBuf; + StrBuf *SBuf = NULL; nParts=StrBufNum_tokens(LocaleString,','); for (i=0; ((i=0; --i) { -// extract_token(lang, LocaleString, i, ',', sizeof lang); -// -// /* Strip out the weights; we don't use them. Also convert -// * hyphens to underscores. -// */ -// for (j=0; j%s

", AvailLangLoaded[0]); + return; + } + wprintf("