summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2015-01-18 08:57:11 (GMT)
committerAlex Pott2015-01-18 08:57:11 (GMT)
commitefbeab2ca2f018b165306fe4861a7fbf9aa61d93 (patch)
tree2b12836127d8f6a1c806b2e47d17a31b1165bcb2
parent124a1fefe8dabcd715565e3be7a5e42936c8bf7c (diff)
Issue #2293813 by joshi.rohit100, pcambra: Replace t() function with class method call in locale localsettingform
-rw-r--r--core/modules/locale/src/Form/LocaleSettingsForm.php32
1 files changed, 16 insertions, 16 deletions
diff --git a/core/modules/locale/src/Form/LocaleSettingsForm.php b/core/modules/locale/src/Form/LocaleSettingsForm.php
index 4ff2c33..64460cc 100644
--- a/core/modules/locale/src/Form/LocaleSettingsForm.php
+++ b/core/modules/locale/src/Form/LocaleSettingsForm.php
@@ -36,32 +36,32 @@ class LocaleSettingsForm extends ConfigFormBase {
$form['update_interval_days'] = array(
'#type' => 'radios',
- '#title' => t('Check for updates'),
+ '#title' => $this->t('Check for updates'),
'#default_value' => $config->get('translation.update_interval_days'),
'#options' => array(
- '0' => t('Never (manually)'),
- '7' => t('Weekly'),
- '30' => t('Monthly'),
+ '0' => $this->t('Never (manually)'),
+ '7' => $this->t('Weekly'),
+ '30' => $this->t('Monthly'),
),
- '#description' => t('Select how frequently you want to check for new interface translations for your currently installed modules and themes. <a href="@url">Check updates now</a>.', array('@url' => $this->url('locale.check_translation'))),
+ '#description' => $this->t('Select how frequently you want to check for new interface translations for your currently installed modules and themes. <a href="@url">Check updates now</a>.', array('@url' => $this->url('locale.check_translation'))),
);
if ($directory = $config->get('translation.path')) {
- $description = t('Translation files are stored locally in the %path directory. You can change this directory on the <a href="@url">File system</a> configuration page.', array('%path' => $directory, '@url' => $this->url('system.file_system_settings')));
+ $description = $this->t('Translation files are stored locally in the %path directory. You can change this directory on the <a href="@url">File system</a> configuration page.', array('%path' => $directory, '@url' => $this->url('system.file_system_settings')));
}
else {
- $description = t('Translation files will not be stored locally. Change the Interface translation directory on the <a href="@url">File system configuration</a> page.', array('@url' => $this->url('system.file_system_settings')));
+ $description = $this->t('Translation files will not be stored locally. Change the Interface translation directory on the <a href="@url">File system configuration</a> page.', array('@url' => $this->url('system.file_system_settings')));
}
$form['#translation_directory'] = $directory;
$form['use_source'] = array(
'#type' => 'radios',
- '#title' => t('Translation source'),
+ '#title' => $this->t('Translation source'),
'#default_value' => $config->get('translation.use_source'),
'#options' => array(
- LOCALE_TRANSLATION_USE_SOURCE_REMOTE_AND_LOCAL => t('Drupal translation server and local files'),
- LOCALE_TRANSLATION_USE_SOURCE_LOCAL => t('Local files only'),
+ LOCALE_TRANSLATION_USE_SOURCE_REMOTE_AND_LOCAL => $this->t('Drupal translation server and local files'),
+ LOCALE_TRANSLATION_USE_SOURCE_LOCAL => $this->t('Local files only'),
),
- '#description' => t('The source of translation files for automatic interface translation.') . ' ' . $description,
+ '#description' => $this->t('The source of translation files for automatic interface translation.') . ' ' . $description,
);
if ($config->get('translation.overwrite_not_customized') == FALSE) {
@@ -75,14 +75,14 @@ class LocaleSettingsForm extends ConfigFormBase {
}
$form['overwrite'] = array(
'#type' => 'radios',
- '#title' => t('Import behavior'),
+ '#title' => $this->t('Import behavior'),
'#default_value' => $default,
'#options' => array(
- LOCALE_TRANSLATION_OVERWRITE_NONE => t("Don't overwrite existing translations."),
- LOCALE_TRANSLATION_OVERWRITE_NON_CUSTOMIZED => t('Only overwrite imported translations, customized translations are kept.'),
- LOCALE_TRANSLATION_OVERWRITE_ALL => t('Overwrite existing translations.'),
+ LOCALE_TRANSLATION_OVERWRITE_NONE => $this->t("Don't overwrite existing translations."),
+ LOCALE_TRANSLATION_OVERWRITE_NON_CUSTOMIZED => $this->t('Only overwrite imported translations, customized translations are kept.'),
+ LOCALE_TRANSLATION_OVERWRITE_ALL => $this->t('Overwrite existing translations.'),
),
- '#description' => t('How to treat existing translations when automatically updating the interface translations.'),
+ '#description' => $this->t('How to treat existing translations when automatically updating the interface translations.'),
);
return parent::buildForm($form, $form_state);