From MSQL_User@st.hhs.nl Mon Mar 27 09:53:53 2000 Date: Mon, 27 Mar 2000 18:11:55 +0200 (METDST) From: "J. op den Brouw" To: htdig3-dev@htdig.org Subject: [htdig3-dev] plural_suffix patch for 3.2.0 series Geoff, here it is. You need to rewrite the comments for the defaults.cc section; it's not that formal.... diff -ur htdig-3.2.0b2-032600/htcommon/defaults.cc htdig-3.2.0b2-032600-plural/htcommon/defaults.cc --- htdig-3.2.0b2-032600/htcommon/defaults.cc Sun Mar 26 10:00:49 2000 +++ htdig-3.2.0b2-032600-plural/htcommon/defaults.cc Mon Mar 27 17:42:15 2000 @@ -1555,6 +1555,11 @@ to reduce the number of open/close operations of connections, when retrieving a document with HTTP. " }, +{ "plural_suffix", "s", + "string", "htsearch", "", "3.2.0b2", "Presentation: Text", "plural_suffix: en", " + Specifies the value of the PLURAL_MATCHES environtment + attribute used in the header, footer and template files. +" }, { "prefix_match_character", "*", "string", "htsearch", "", "3.1.0b1", "Searching:Method", "prefix_match_character: ing", " A null prefix character means that prefix matching should be diff -ur htdig-3.2.0b2-032600/htsearch/Display.cc htdig-3.2.0b2-032600-plural/htsearch/Display.cc --- htdig-3.2.0b2-032600/htsearch/Display.cc Sun Mar 19 09:01:03 2000 +++ htdig-3.2.0b2-032600-plural/htsearch/Display.cc Mon Mar 27 17:57:21 2000 @@ -415,7 +415,7 @@ else if (mystrcasecmp(config["match_method"], "or") == 0) vars.Add("MATCH_MESSAGE", new String("some")); vars.Add("MATCHES", new String(form("%d", nMatches))); - vars.Add("PLURAL_MATCHES", new String(nMatches == 1 ? (char *)"" : (char *)"s")); + vars.Add("PLURAL_MATCHES", new String((nMatches == 1) ? (char *)"" : (const char *) config["plural_suffix"])); vars.Add("PAGE", new String(form("%d", pageNumber))); vars.Add("PAGES", new String(form("%d", nPages))); vars.Add("FIRSTDISPLAYED", --jesse -------------------------------------------------------------------- J. op den Brouw Johanna Westerdijkplein 75 Haagse Hogeschool 2521 EN DEN HAAG Faculty of Engeneering Netherlands Electrical Engeneering +31 70 4458936 -------------------- J.E.J.opdenBrouw@st.hhs.nl -------------------- Linux - because reboots are for hardware changes ------------------------------------ To unsubscribe from the htdig3-dev mailing list, send a message to htdig3-dev-unsubscribe@htdig.org You will receive a message to confirm this.