Skip to content
Snippets Groups Projects
Commit c7964557 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Make rule names translatable

parent fa751668
No related branches found
No related tags found
No related merge requests found
...@@ -974,7 +974,7 @@ class ShippingRule { ...@@ -974,7 +974,7 @@ class ShippingRule {
function getRuleName($vals) { function getRuleName($vals) {
// Replace all {variable} tags in the name by the variables from $vals // Replace all {variable} tags in the name by the variables from $vals
$matches=array(); $matches=array();
$name=$this->name; $name=JText::_($this->name);
preg_match_all('/{([A-Za-z0-9_]+)}/', $name, $matches); preg_match_all('/{([A-Za-z0-9_]+)}/', $name, $matches);
foreach ($matches[1] as $m) { foreach ($matches[1] as $m) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment