Thanks!

On 7 Aug 00, at 12:52, J. op den Brouw wrote:

> 
> Here's the patch I send to the list one time:
> 
> diff -urp htdig-3.1.5/htcommon/defaults.cc htdig-3.1.5-plural/htcommon/defaults.cc
> --- htdig-3.1.5/htcommon/defaults.cc  Fri Feb 25 03:29:10 2000
> +++ htdig-3.1.5-plural/htcommon/defaults.cc   Wed Mar 15 13:16:06 2000
> @@ -116,6 +116,7 @@ ConfigDefaults    defaults[] =
>      {"page_list_header",             "<hr noshade size=2>Pages:<br>"},
>      {"page_number_separator",                "\" \""},
>      {"page_number_text",             ""},
> +    {"plural_suffix",                        "s"},
>      {"prefix_match_character",               "*"},
>      {"prev_page_text",                       "[prev]"},
>      {"remove_bad_urls",                      "true"},
> diff -urp htdig-3.1.5/htsearch/Display.cc htdig-3.1.5-plural/htsearch/Display.cc
> --- htdig-3.1.5/htsearch/Display.cc   Fri Feb 25 03:29:11 2000
> +++ htdig-3.1.5-plural/htsearch/Display.cc    Wed Mar 15 13:17:44 2000
> @@ -402,7 +402,7 @@ Display::setVariables(int pageNumber, Li
>      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 *)"" : 
>config["plural_suffix"]));
>      vars.Add("PAGE", new String(form("%d", pageNumber)));
>      vars.Add("PAGES", new String(form("%d", nPages)));
>      vars.Add("FIRSTDISPLAYED",
> 
> 
> There is no singular_suffix equivalent. Sorry 'bout that....
> 
> 
> 
> On Mon, 7 Aug 2000, Marcel Hicking wrote:
> 
> > Nope. Nothing in the docs. I looked there before.
> > At least not for 3.1.5.
> > And I would like to have a singular_suffix as well.
> > 
> > Cheers, Marcel
> 
> --jesse
> --------------------------------------------------------------------
> J. op den Brouw                           Johanna Westerdijkplein 75
> Haagse Hogeschool                                  2521 EN  DEN HAAG
> Faculty of Engeneering                                   Netherlands
> Electrical Engeneering                                +31 70 4458936
> -------------------- [EMAIL PROTECTED] --------------------
> 
> Linux - because reboots are for hardware changes
> 
> 
> 
> 
> 
> ------------------------------------
> To unsubscribe from the htdig mailing list, send a message to
> [EMAIL PROTECTED]
> You will receive a message to confirm this.
> 



------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED]
You will receive a message to confirm this.

Reply via email to