From c7964557bc3e87dc183a834f017176f2006baa23 Mon Sep 17 00:00:00 2001
From: Reinhold Kainhofer <reinhold@kainhofer.com>
Date: Sun, 17 Nov 2013 20:40:40 +0100
Subject: [PATCH] Make rule names translatable

---
 rules_shipping_base.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules_shipping_base.php b/rules_shipping_base.php
index 52f4c8e..78457dc 100644
--- a/rules_shipping_base.php
+++ b/rules_shipping_base.php
@@ -974,7 +974,7 @@ class ShippingRule {
 	function getRuleName($vals) {
 		// Replace all {variable} tags in the name by the variables from $vals
 		$matches=array();
-		$name=$this->name;
+		$name=JText::_($this->name);
 		preg_match_all('/{([A-Za-z0-9_]+)}/', $name, $matches);
 		
 		foreach ($matches[1] as $m) {
-- 
GitLab