1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-manager-1.14.0/root/etc/e-smith/events/actions/navigation-conf mezzanine_patched_e-smith-manager-1.14.0/root/etc/e-smith/events/actions/navigation-conf |
2 |
--- e-smith-manager-1.14.0/root/etc/e-smith/events/actions/navigation-conf 2007-01-26 18:51:30.000000000 -0700 |
3 |
+++ mezzanine_patched_e-smith-manager-1.14.0/root/etc/e-smith/events/actions/navigation-conf 2008-01-07 07:10:08.000000000 -0700 |
4 |
@@ -110,11 +110,16 @@ |
5 |
$lexicon->{$base} = $trans; |
6 |
} |
7 |
} |
8 |
- $rec->merge_props( |
9 |
- Heading => localise($lexicon, $heading), |
10 |
- Description => localise($lexicon, $description), |
11 |
- HeadingWeight => localise($lexicon, $heading_weight), |
12 |
- DescriptionWeight => localise($lexicon, $description_weight)); |
13 |
+ |
14 |
+ my $loc_heading = localise($lexicon, $heading); |
15 |
+ $loc_heading =~ s/^\s*(\w.*?)\s*$/$1/; |
16 |
+ my $loc_description = localise($lexicon, $description); |
17 |
+ $loc_description =~ s/^\s*(\w.*?)\s*$/$1/; |
18 |
+ $rec->merge_props( |
19 |
+ Heading => $loc_heading, |
20 |
+ Description => $loc_description, |
21 |
+ HeadingWeight => localise($lexicon, $heading_weight), |
22 |
+ DescriptionWeight => localise($lexicon, $description_weight)); |
23 |
} |
24 |
} |
25 |
foreach my $lang (@langs) |