Skip to content

Instantly share code, notes, and snippets.

@klickreflex
Created August 18, 2014 14:09
Show Gist options
  • Save klickreflex/7c84c5e3e84b6dc8e008 to your computer and use it in GitHub Desktop.
Save klickreflex/7c84c5e3e84b6dc8e008 to your computer and use it in GitHub Desktop.
From 38b6c81fa6cb7cbb1511d6fc54d24d06a52d3fc4 Mon Sep 17 00:00:00 2001
From: Daniel Wentsch <hello@wentsch.me>
Date: Mon, 18 Aug 2014 15:53:23 +0200
Subject: [PATCH] Added missing localization for File Downloads Suite default
values
---
sites/all/modules/contrib/ms_files/ms_files.module | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/sites/all/modules/contrib/ms_files/ms_files.module b/sites/all/modules/contrib/ms_files/ms_files.module
index 1684cb7..a35897a 100644
--- a/sites/all/modules/contrib/ms_files/ms_files.module
+++ b/sites/all/modules/contrib/ms_files/ms_files.module
@@ -1745,14 +1745,14 @@ function ms_files_add_file_profile_form($form, &$form_state) {
'#type' => 'textfield',
'#title' => t('File Purchase Email Subject'),
'#required' => TRUE,
- '#default_value' => "Your File Download Link for [ms_file_download:fileTitle]",
+ '#default_value' => t("Your File Download Link for [ms_file_download:fileTitle]"),
);
$form['email']['purchase_mail_body'] = array(
'#type' => 'textarea',
'#title' => t('File Purchase Email Body'),
'#description' => ("The email that is sent to the user when a file download has been purchased. Leave blank to not send an email."),
'#required' => TRUE,
- '#default_value' => "Dear [ms_core_order:customerName],
+ '#default_value' => t("Dear [ms_core_order:customerName],
You have purchased the [ms_file_download:fileTitle] file for [ms_core_payment:paymentAmount] on [current-date:short]. Below are your download instructions. Thank you!
File Name: [ms_file_download:fileName]
@@ -1764,7 +1764,7 @@ Download Expiration: [ms_file_download:expirationDate]
To download the file in the future and view download statistics, please visit the 'Files' section of your account on [site:url]
Sincerely,
-[site:name]",
+[site:name]"),
);
$form['email']['purchase_mail_token_help'] = array(
'#title' => t('Replacement patterns'),
@@ -1780,18 +1780,18 @@ Sincerely,
'#type' => 'textfield',
'#title' => t('File Expired Email Subject'),
'#required' => FALSE,
- '#default_value' => "[ms_file_download:fileTitle] file has Expired",
+ '#default_value' => t("[ms_file_download:fileTitle] file has Expired"),
);
$form['email']['expired_mail_body'] = array(
'#type' => 'textarea',
'#title' => t('File Expired Email Body'),
'#description' => ("The email that is sent to the user when a file download has expired. Leave blank to not send an email."),
'#required' => FALSE,
- '#default_value' => "Dear [ms_core_order:customerName],
+ '#default_value' => t("Dear [ms_core_order:customerName],
Your [ms_file_download:fileTitle] file has expired or been cancelled. To reorder, please visit [site:url].
Sincerely,
-[site:name]",
+[site:name])",
);
$form['email']['expired_mail_token_help'] = array(
'#title' => t('Replacement patterns'),
--
1.8.5.2 (Apple Git-48)+GitX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment