summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkunal.kursija2016-09-22 12:45:40 (GMT)
committerBojan Zivanovic2016-09-22 12:45:40 (GMT)
commitc571dcf1c1cfaf05f94522a0d93a95c7ed93b0c5 (patch)
tree90eb328e37cbe10fceb1787c4137b121da7426df
parent6cdadbf2eee97300bf8b6ae864484f102b0685ed (diff)
Issue #2800371 by kunal.kursija: Replace t() with this->t()8.x-1.0-beta4
-rw-r--r--src/Form/ZoneForm.php2
-rw-r--r--src/Plugin/Field/FieldWidget/AddressDefaultWidget.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Form/ZoneForm.php b/src/Form/ZoneForm.php
index 01d52ba..441411a 100644
--- a/src/Form/ZoneForm.php
+++ b/src/Form/ZoneForm.php
@@ -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,
];
diff --git a/src/Plugin/Field/FieldWidget/AddressDefaultWidget.php b/src/Plugin/Field/FieldWidget/AddressDefaultWidget.php
index 064f9a7..029a718 100644
--- a/src/Plugin/Field/FieldWidget/AddressDefaultWidget.php
+++ b/src/Plugin/Field/FieldWidget/AddressDefaultWidget.php
@@ -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();