[interchange-cvs] interchange - racke modified 2 files

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Fri Nov 14 09:32:58 EST 2003


User:      racke
Date:      2003-11-14 14:32:58 GMT
Modified:  dist/foundation/products locale.txt
Modified:  lib/Vend Menu.pm
Log:
allow translation of explode tree / collapse tree in menus

Revision  Changes    Path
2.26      +2 -0      interchange/dist/foundation/products/locale.txt


rev 2.26, prev_rev 2.25
Index: locale.txt
===================================================================
RCS file: /anon_cvs/repository/interchange/dist/foundation/products/locale.txt,v
retrieving revision 2.25
retrieving revision 2.26
diff -u -r2.25 -r2.26
--- locale.txt	10 Jul 2003 02:25:02 -0000	2.25
+++ locale.txt	14 Nov 2003 14:32:58 -0000	2.26
@@ -67,6 +67,7 @@
 Click here to pre-order this item or get notified as soon as this item is available again.	Click here to pre-order this item or get notified as soon as this item is available again.			Klik hier om vooruit te bestellen. U ontvangt een kennisgeving zodra dit artikel weer voorradig is.
 Code	Code			
 Collapse All Categories	Collapse All Categories			Verberg alle sub-categorieen
+Collapse tree		Baum zuklappen
 Comment	Comment			Commentaar
 Comments on %s		Meinungen zu		
 Comment on this product.	Comment on this product.	Meinung zu diesem Produkt		Geef uw mening over dit product.
@@ -100,6 +101,7 @@
 Errors	Errors	Fehler		Fouten
 Evening Phone	Evening Phone	Telefon abends		Telefoon avond
 Expiration	Expiration			Expiratiedatum
+Explode tree		Baum ausklappen
 Extension	Extension	Summe		Bedrag
 FAILED_MSG1	We're sorry, but your order could not be processed at this time due to
technical problems.  Please print the order page and give us a call.
We will follow up as soon as possible.			
 Fax	Fax			Fax



2.35      +11 -6     interchange/lib/Vend/Menu.pm


rev 2.35, prev_rev 2.34
Index: Menu.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/Menu.pm,v
retrieving revision 2.34
retrieving revision 2.35
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
@@ -1,6 +1,6 @@
 # Vend::Menu - Interchange menu processing routines
 #
-# $Id: Menu.pm,v 2.34 2003/11/07 18:28:53 mheins Exp $
+# $Id: Menu.pm,v 2.35 2003/11/14 14:32:58 racke Exp $
 #
 # Copyright (C) 2002 Mike Heins, <mike at perusion.net>
 #
@@ -21,7 +21,7 @@
 
 package Vend::Menu;
 
-$VERSION = substr(q$Revision: 2.34 $, 10);
+$VERSION = substr(q$Revision: 2.35 $, 10);
 
 use Vend::Util;
 use strict;
@@ -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
 








More information about the interchange-cvs mailing list