main/inc/lib/extra_field_option.lib.php 1 location
|
@@ 761-770 (lines=10) @@
|
758 |
|
* @param bool $translateDisplayText Optional |
759 |
|
* @return array |
760 |
|
*/ |
761 |
|
public function get($id, $translateDisplayText = true) |
762 |
|
{ |
763 |
|
$info = parent::get($id); |
764 |
|
|
765 |
|
if ($translateDisplayText) { |
766 |
|
$info['display_text'] = self::translateDisplayName($info['display_text']); |
767 |
|
} |
768 |
|
|
769 |
|
return $info; |
770 |
|
} |
771 |
|
|
772 |
|
/** |
773 |
|
* Translate the display text for a extra field option |
main/inc/lib/extra_field.lib.php 1 location
|
@@ 2560-2569 (lines=10) @@
|
2557 |
|
* @param bool $translateDisplayText Optional |
2558 |
|
* @return array |
2559 |
|
*/ |
2560 |
|
public function get($id, $translateDisplayText = true) |
2561 |
|
{ |
2562 |
|
$info = parent::get($id); |
2563 |
|
|
2564 |
|
if ($translateDisplayText) { |
2565 |
|
$info['display_text'] = self::translateDisplayName($info['variable'], $info['display_text']); |
2566 |
|
} |
2567 |
|
|
2568 |
|
return $info; |
2569 |
|
} |
2570 |
|
|
2571 |
|
/** |
2572 |
|
* Translate the display text for a extra field |