Commit c571dcf1 authored by kunalkursija's avatar kunalkursija Committed by bojanz

Issue #2800371 by kunal.kursija: Replace t() with this->t()

parent 6cdadbf2
......@@ -68,7 +68,7 @@ class ZoneForm extends EntityForm {
$form['scope'] = [
'#type' => 'textfield',
'#title' => $this->t('Scope'),
'#description' => t('Used to group zones by purpose. Examples: tax, shipping.'),
'#description' => $this->t('Used to group zones by purpose. Examples: tax, shipping.'),
'#default_value' => $zone->getScope(),
'#maxlength' => 255,
];
......
......@@ -170,10 +170,10 @@ class AddressDefaultWidget extends WidgetBase implements ContainerFactoryPluginI
public function settingsSummary() {
$default_country = $this->getSetting('default_country');
if (empty($default_country)) {
$default_country = t('None');
$default_country = $this->t('None');
}
elseif ($default_country == 'site_default') {
$default_country = t('Site default');
$default_country = $this->t('Site default');
}
else {
$country_list = $this->countryRepository->getList();
......
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