Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Re: nonenglish mod -the problem

Quote Reply
Re: nonenglish mod -the problem In reply to
In the nph-build.cgi you have:

--------------------------------------

sub build_linked_title_mb {
# --------------------------------------------------------
# Returns a string of the current category broken up
# by section, with each part linked to the respective section.

my ($input) = $_[0];
my ($description) = $_[1];
my (@dirs, $dir, $output, $path, $last, @descs, $desc);

@dirs = split (/\//, $input);
@descs = split (/\\/, $description);
$last = pop (@dirs);
$last = pop (@descs);

$output = qq| <A HREF="$build_root_url/">Hem</A> :|;
foreach $dir (@dirs) {
$path .= "/$dir";
$desc = shift (@descs);
$output .= qq| <A HREF="$build_root_url$path/">$desc</A> :|;
}
$output .= " $last";

return $output;
}

--------------------------------------

I changed the $desc in [HREF="$build_root_url$path/">$desc</A> :|;] to Nisse [HREF="$build_root_url$path/">Nisse</A> :|;], and Nisse showed up fine. The problem is with $desc. But how to fix it...?

/Bosse

Subject Author Views Date
Thread nonenglish mod BosseJarnhall 1504 Jun 8, 2001, 2:07 AM
Post Re: nonenglish mod -the problem
BosseJarnhall 1440 Jun 8, 2001, 2:29 AM