Commit bf8d2fc8 authored by lostkoder's avatar lostkoder
Browse files

use dependency injection instead of t() function

parent c46ddfbc
......@@ -81,15 +81,15 @@ class TimeFormatter extends FormatterBase {
*/
private function getTimeDescription() {
$output = '';
$output .= t('a - Lowercase am or pm') . '<br/>';
$output .= t('A - Uppercase AM or PM') . '<br/>';
$output .= t('B - Swatch Internet time (000 to 999)') . '<br/>';
$output .= t('g - 12-hour format of an hour (1 to 12)') . '<br/>';
$output .= t('G - 24-hour format of an hour (0 to 23)') . '<br/>';
$output .= t('h - 12-hour format of an hour (01 to 12)') . '<br/>';
$output .= t('H - 24-hour format of an hour (00 to 23)') . '<br/>';
$output .= t('i - Minutes with leading zeros (00 to 59)') . '<br/>';
$output .= t('s - Seconds, with leading zeros (00 to 59)') . '<br/>';
$output .= $this->t('a - Lowercase am or pm') . '<br/>';
$output .= $this->t('A - Uppercase AM or PM') . '<br/>';
$output .= $this->t('B - Swatch Internet time (000 to 999)') . '<br/>';
$output .= $this->t('g - 12-hour format of an hour (1 to 12)') . '<br/>';
$output .= $this->t('G - 24-hour format of an hour (0 to 23)') . '<br/>';
$output .= $this->t('h - 12-hour format of an hour (01 to 12)') . '<br/>';
$output .= $this->t('H - 24-hour format of an hour (00 to 23)') . '<br/>';
$output .= $this->t('i - Minutes with leading zeros (00 to 59)') . '<br/>';
$output .= $this->t('s - Seconds, with leading zeros (00 to 59)') . '<br/>';
return $output;
}
......
......@@ -96,16 +96,15 @@ class TimeRangeFormatter extends FormatterBase {
*/
private function getTimeDescription() {
$output = '';
$output .= t('a - Lowercase am or pm') . '<br/>';
$output .= t('A - Uppercase AM or PM') . '<br/>';
$output .= t('B - Swatch Internet time (000 to 999)') . '<br/>';
$output .= t('g - 12-hour format of an hour (1 to 12)') . '<br/>';
$output .= t('G - 24-hour format of an hour (0 to 23)') . '<br/>';
$output .= t('h - 12-hour format of an hour (01 to 12)') . '<br/>';
$output .= t('H - 24-hour format of an hour (00 to 23)') . '<br/>';
$output .= t('i - Minutes with leading zeros (00 to 59)') . '<br/>';
$output .= t('s - Seconds, with leading zeros (00 to 59)') . '<br/>';
$output .= $this->t('a - Lowercase am or pm') . '<br/>';
$output .= $this->t('A - Uppercase AM or PM') . '<br/>';
$output .= $this->t('B - Swatch Internet time (000 to 999)') . '<br/>';
$output .= $this->t('g - 12-hour format of an hour (1 to 12)') . '<br/>';
$output .= $this->t('G - 24-hour format of an hour (0 to 23)') . '<br/>';
$output .= $this->t('h - 12-hour format of an hour (01 to 12)') . '<br/>';
$output .= $this->t('H - 24-hour format of an hour (00 to 23)') . '<br/>';
$output .= $this->t('i - Minutes with leading zeros (00 to 59)') . '<br/>';
$output .= $this->t('s - Seconds, with leading zeros (00 to 59)') . '<br/>';
return $output;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment