/**
  * Return the type Description of this test Service
  * @return string
  */
 public function getTypeDescription()
 {
     return tx_caretaker_LocalizationHelper::localizeString($this->typeDescription);
 }
 /**
  * Get the localized StateInformation
  *
  * @return string
  */
 public function getLocallizedStateInfo()
 {
     return tx_caretaker_LocalizationHelper::localizeString('LLL:EXT:caretaker/locallang_fe.xml:state_' . strtolower($this->getStateInfo()));
 }
 function test_locallization_of_multiple_lll_strings()
 {
     $str = 'foo {LLL:EXT:caretaker/tests/locallang-test.xml:foo} baz {LLL:EXT:caretaker/tests/locallang-test.xml:bar}{LLL:EXT:caretaker/tests/locallang-test.xml:foo}';
     $lll = tx_caretaker_LocalizationHelper::localizeString($str);
     $this->assertEquals('foo bar baz bambar', $lll);
 }
 /**
  * Get the locallized and valuemerged message to show
  * @return string
  */
 public function getLocallizedInfotext()
 {
     $result = $this->text;
     // check for LLL strings
     $result = tx_caretaker_LocalizationHelper::localizeString($result);
     // insert Values
     foreach ($this->values as $key => $value) {
         $marker = '###VALUE_' . strtoupper($key) . '###';
         $result = str_replace($marker, $value, $result);
     }
     return $result;
 }
 /**
  * @param array $context
  * @return string
  */
 public static function localizeSubstring($context)
 {
     return tx_caretaker_LocalizationHelper::localizeString($context[1]);
 }