From 90b37da740fb692d0688e410a745c865b9639232 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 25 May 2011 08:49:12 -0700 Subject: [PATCH] Fix more i18n issues with the RenderThingData macro. Addresses bug #12141 --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Macro/RenderThingData.pm | 4 ++-- lib/WebGUI/i18n/English/Macro_RenderThingData.pm | 10 ++++++++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index d078e7f2d..7c517c2d6 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,4 +1,5 @@ 7.10.18 + - fixed #12141: Macro_RenderThingData (bad tags) nothing to translate 7.10.17 - fixed: Forced to use a PayDriver even with a balance of 0 in the cart. diff --git a/lib/WebGUI/Macro/RenderThingData.pm b/lib/WebGUI/Macro/RenderThingData.pm index f71cfc81d..4038d74c0 100644 --- a/lib/WebGUI/Macro/RenderThingData.pm +++ b/lib/WebGUI/Macro/RenderThingData.pm @@ -51,13 +51,13 @@ sub process { my $thing = WebGUI::Asset::Wobject::Thingy->newByUrl( $session, $uri->path ); # TODO: i18n - return ( "Bad URL: " . $thingDataUrl ) if !$thing || !$thingId || !$thingDataId; + return ( $i18n->get('bad url') . $thingDataUrl ) if !$thing || !$thingId || !$thingDataId; # Render my $output = $thing->www_viewThingData( $thingId, $thingDataId, $templateHint ); # FIX: Temporary solution (broken map due to template rendering