You are here

public function FrxControls::drupal_translation in Forena Reports 6

Same name and namespace in other branches
  1. 6.2 plugins/FrxControls.inc \FrxControls::drupal_translation()
  2. 7.2 plugins/FrxControls.inc \FrxControls::drupal_translation()
  3. 7.3 plugins/FrxControls.inc \FrxControls::drupal_translation()
  4. 7.4 plugins/FrxControls.inc \FrxControls::drupal_translation()

File

plugins/FrxControls.inc, line 47
contains various methods for extending report formating, layout, transformation and design.

Class

FrxControls
@file contains various methods for extending report formating, layout, transformation and design.

Code

public function drupal_translation($value, $format_str, $teng) {
  $field = '';
  if ($format_str) {
    $field = '{' . $format_str . '}';
  }
  $field = $teng
    ->replace($field, null, TRUE);
  $vars = array();
  if ($field) {
    $vars = @unserialize($field);
  }
  return t($value, $vars);
}