diff --git a/src/Form/SiteConfigureForm.php b/src/Form/SiteConfigureForm.php
index c75498e..20e651e 100644
--- a/src/Form/SiteConfigureForm.php
+++ b/src/Form/SiteConfigureForm.php
@@ -130,7 +130,7 @@ class SiteConfigureForm extends FormBase {
       }
 
       if (!drupal_verify_install_file($this->root . '/' . $settings_file, FILE_EXIST | FILE_READABLE | FILE_NOT_WRITABLE) || !drupal_verify_install_file($this->root . '/' . $this->sitePath, FILE_NOT_WRITABLE, 'dir')) {
-        drupal_set_message(t('All necessary changes to %dir and %file have been made, so you should remove write permissions to them now in order to avoid security risks. If you are unsure how to do so, consult the <a href="@handbook_url">online handbook</a>.', [
+        drupal_set_message($this->t('All necessary changes to %dir and %file have been made, so you should remove write permissions to them now in order to avoid security risks. If you are unsure how to do so, consult the <a href="@handbook_url">online handbook</a>.', [
           '%dir' => $this->sitePath,
           '%file' => $settings_file,
           '@handbook_url' => 'http://drupal.org/server-permissions',
diff --git a/src/Form/SyncConfigureForm.php b/src/Form/SyncConfigureForm.php
index 7ca4099..aca873d 100644
--- a/src/Form/SyncConfigureForm.php
+++ b/src/Form/SyncConfigureForm.php
@@ -84,7 +84,7 @@ class SyncConfigureForm extends FormBase {
       // need to ensure it is writeable is we are processing an upload.
       $create_directory = !is_dir($sync_directory) || $has_upload;
       if ($create_directory && !file_prepare_directory($sync_directory, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS)) {
-        $form_state->setErrorByName('sync_directory', t('The directory %directory could not be created or could not be made writable. To proceed with the installation, either create the directory and modify its permissions manually or ensure that the installer has the permissions to create it automatically. For more information, see the <a href="@handbook_url">online handbook</a>.', [
+        $form_state->setErrorByName('sync_directory', $this->t('The directory %directory could not be created or could not be made writable. To proceed with the installation, either create the directory and modify its permissions manually or ensure that the installer has the permissions to create it automatically. For more information, see the <a href="@handbook_url">online handbook</a>.', [
           '%directory' => $sync_directory,
           '@handbook_url' => 'http://drupal.org/server-permissions',
         ]));
