[ic] Explode and Collapse tree - little question
Stefan Hornburg
racke at linuxia.de
Fri Nov 14 15:56:25 EST 2003
On Mon, 10 Nov 2003 11:09:56 +0100
Twentys <twentys at libero.it> wrote:
> Hi to everybody.
> Does anybody know where I can translate Explode tree and Collapse tree for other languages?
Apply the following patch to your Menu.pm file and add the translations for
Explode tree / Collapse tree to your locale database.
Bye
Racke
diff -u -r2.34 -r2.35
--- Menu.pm 7 Nov 2003 18:28:53 -0000 2.34
+++ Menu.pm 14 Nov 2003 14:32:58 -0000 2.35
@@ -396,10 +396,13 @@
$opt->{collapse_url} .= 'collapse=1';
}
+ my $explode_label = errmsg($opt->{explode_label} || 'Explode tree');
+ my $collapse_label = errmsg($opt->{collapse_label} || 'Collapse tree');
+
$opt->{header_template} ||= <<EOF;
<P>
-<a href="{EXPLODE_URL}" {LINK_STYLE?} style="{LINK_STYLE}"{/LINK_STYLE?} {LINK_CLASS?} class="{LINK_CLASS}"{/LINK_CLASS?}>Explode tree</A><br>
-<a href="{COLLAPSE_URL}" {LINK_STYLE?} style="{LINK_STYLE}"{/LINK_STYLE?} {LINK_CLASS?} class="{LINK_CLASS}"{/LINK_CLASS?}>Collapse tree</A>
+<a href="{EXPLODE_URL}" {LINK_STYLE?} style="{LINK_STYLE}"{/LINK_STYLE?} {LINK_CLASS?} class="{LINK_CLASS}"{/LINK_CLASS?}>$explode_label</A><br>
+<a href="{COLLAPSE_URL}" {LINK_STYLE?} style="{LINK_STYLE}"{/LINK_STYLE?} {LINK_CLASS?} class="{LINK_CLASS}"{/LINK_CLASS?}>$collapse_label</A>
</P>
EOF
@@ -855,10 +858,12 @@
$opt->{toggle_class} ||= '';
$opt->{explode_url} ||= "javascript:${vpf}do_explode(); void(0)";
$opt->{collapse_url} ||= "javascript:${vpf}do_collapse(); void(0)";
+ my $explode_label = errmsg($opt->{explode_label} || 'Explode tree');
+ my $collapse_label = errmsg($opt->{collapse_label} || 'Collapse tree');
$opt->{header_template} ||= <<EOF;
<P>
-<a href="{EXPLODE_URL}" {LINK_STYLE?} style="{LINK_STYLE}"{/LINK_STYLE?} {LINK_CLASS?} class="{LINK_CLASS}"{/LINK_CLASS?}>Explode tree</A><br>
-<a href="{COLLAPSE_URL}" {LINK_STYLE?} style="{LINK_STYLE}"{/LINK_STYLE?} {LINK_CLASS?} class="{LINK_CLASS}"{/LINK_CLASS?}>Collapse tree</A>
+<a href="{EXPLODE_URL}" {LINK_STYLE?} style="{LINK_STYLE}"{/LINK_STYLE?} {LINK_CLASS?} class="{LINK_CLASS}"{/LINK_CLASS?}>$explode_label</A><br>
+<a href="{COLLAPSE_URL}" {LINK_STYLE?} style="{LINK_STYLE}"{/LINK_STYLE?} {LINK_CLASS?} class="{LINK_CLASS}"{/LINK_CLASS?}>$collapse_label</A>
</P>
EOF
--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team
More information about the interchange-users
mailing list