Skip to content
Snippets Groups Projects
Commit 98cc303f authored by Shelane French's avatar Shelane French
Browse files

Revert "removes translate of variables"

This reverts commit 0933d4b6.
parent 4d0b2953
No related branches found
No related tags found
No related merge requests found
...@@ -229,15 +229,15 @@ class ViewsConditionalField extends FieldPluginBase implements ContainerFactoryP ...@@ -229,15 +229,15 @@ class ViewsConditionalField extends FieldPluginBase implements ContainerFactoryP
// If we find a replacement variable, replace it. // If we find a replacement variable, replace it.
if (strpos($equalto, "{{ $key }}") !== FALSE) { if (strpos($equalto, "{{ $key }}") !== FALSE) {
$field = $this->cleanVar($fields[$key]); $field = $this->cleanVar($fields[$key]);
$equalto = str_replace("{{ $key }}", $field, $equalto); $equalto = $this->t(str_replace("{{ $key }}", $field, $equalto));
} }
if (strpos($then, "{{ $key }}") !== FALSE) { if (strpos($then, "{{ $key }}") !== FALSE) {
$field = $this->cleanVar($fields[$key]); $field = $this->cleanVar($fields[$key]);
$then = str_replace("{{ $key }}", $field, $then); $then = $this->t(str_replace("{{ $key }}", $field, $then));
} }
if (strpos($or, "{{ $key }}") !== FALSE) { if (strpos($or, "{{ $key }}") !== FALSE) {
$field = $this->cleanVar($fields[$key]); $field = $this->cleanVar($fields[$key]);
$or = str_replace("{{ $key }}", $field, $or); $or = $this->t(str_replace("{{ $key }}", $field, $or));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment