Skip to content

Commit

Permalink
Task #60 - Enabled multilingual user emails + first Spanish translation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ccamara committed Sep 17, 2016
1 parent f5bf218 commit 039de70
Show file tree
Hide file tree
Showing 3 changed files with 8,282 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,29 @@ features[variable][] = language_negotiation_language_content
features[variable][] = language_negotiation_language_url
features[variable][] = language_types
features[variable][] = locale_language_providers_weight_language
features[variable][] = user_mail_cancel_confirm_body
features[variable][] = user_mail_cancel_confirm_subject
features[variable][] = user_mail_password_reset_body
features[variable][] = user_mail_password_reset_subject
features[variable][] = user_mail_register_admin_created_body
features[variable][] = user_mail_register_admin_created_subject
features[variable][] = user_mail_register_no_approval_required_body
features[variable][] = user_mail_register_no_approval_required_subject
features[variable][] = user_mail_register_pending_approval_body
features[variable][] = user_mail_register_pending_approval_subject
features[variable][] = user_mail_status_activated_body
features[variable][] = user_mail_status_activated_notify
features[variable][] = user_mail_status_activated_subject
features[variable][] = user_mail_status_blocked_body
features[variable][] = user_mail_status_blocked_notify
features[variable][] = user_mail_status_blocked_subject
features[variable][] = user_mail_status_canceled_body
features[variable][] = user_mail_status_canceled_notify
features[variable][] = user_mail_status_canceled_subject
features[variable_realm][] = global:default
features[variable_realm][] = language:ca
features[variable_realm][] = language:en
features[variable_realm][] = language:es
features[variable_realm][] = language:eu
features[variable_realm][] = language:gl
project path = profiles/c_inmobiliarios/modules/features/general
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,214 @@ function ft_c_inmobiliarios_multilingual_strongarm() {
);
$export['locale_language_providers_weight_language'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'user_mail_cancel_confirm_body';
$strongarm->value = '[user:name],
A request to cancel your account has been made at [site:name].
You may now cancel your account on [site:url-brief] by clicking this link or copying and pasting it into your browser:
[user:cancel-url]
NOTE: The cancellation of your account is not reversible.
This link expires in one day and nothing will happen if it is not used.
-- [site:name] team';
$export['user_mail_cancel_confirm_body'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'user_mail_cancel_confirm_subject';
$strongarm->value = 'Account cancellation request for [user:name] at [site:name]';
$export['user_mail_cancel_confirm_subject'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'user_mail_password_reset_body';
$strongarm->value = '[user:name],
A request to reset the password for your account has been made at [site:name].
You may now log in by clicking this link or copying and pasting it to your browser:
[user:one-time-login-url]
This link can only be used once to log in and will lead you to a page where you can set your password. It expires after one day and nothing will happen if it\'s not used.
-- [site:name] team';
$export['user_mail_password_reset_body'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'user_mail_password_reset_subject';
$strongarm->value = 'Replacement login information for [user:name] at [site:name]';
$export['user_mail_password_reset_subject'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'user_mail_register_admin_created_body';
$strongarm->value = '[user:name],
A site administrator at [site:name] has created an account for you. You may now log in by clicking this link or copying and pasting it to your browser:
[user:one-time-login-url]
This link can only be used once to log in and will lead you to a page where you can set your password.
After setting your password, you will be able to log in at [site:login-url] in the future using:
username: [user:name]
password: Your password
-- [site:name] team';
$export['user_mail_register_admin_created_body'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'user_mail_register_admin_created_subject';
$strongarm->value = 'An administrator created an account for you at [site:name]';
$export['user_mail_register_admin_created_subject'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'user_mail_register_no_approval_required_body';
$strongarm->value = 'Hola, [user:name]
Gracias por registrarte en [site:name]. Puedes acceder a tu cuenta haciendo clic en el siguiente enlace o copiándolo en tu navegador:
[user:one-time-login-url]
Este enlace solo funcionará una vez para acceder por primera vez a tu cuenta y establecer tu contraseña.
Una vez establecida tu contraseña, podrás acceder a [site:name] a través de la url [site:login-url] utilizando los datos siguientes:
usuario: [user:name]
contraseña: tu contraseña
-- El equipo de [site:name]';
$export['user_mail_register_no_approval_required_body'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'user_mail_register_no_approval_required_subject';
$strongarm->value = 'Detalles de la cuenta [user:name] en [site:name]';
$export['user_mail_register_no_approval_required_subject'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'user_mail_register_pending_approval_body';
$strongarm->value = '[user:name],
Thank you for registering at [site:name]. Your application for an account is currently pending approval. Once it has been approved, you will receive another e-mail containing information about how to log in, set your password, and other details.
-- [site:name] team';
$export['user_mail_register_pending_approval_body'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'user_mail_register_pending_approval_subject';
$strongarm->value = 'Account details for [user:name] at [site:name] (pending admin approval)';
$export['user_mail_register_pending_approval_subject'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'user_mail_status_activated_body';
$strongarm->value = '[user:name],
Your account at [site:name] has been activated.
You may now log in by clicking this link or copying and pasting it into your browser:
[user:one-time-login-url]
This link can only be used once to log in and will lead you to a page where you can set your password.
After setting your password, you will be able to log in at [site:login-url] in the future using:
username: [user:name]
password: Your password
-- [site:name] team';
$export['user_mail_status_activated_body'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'user_mail_status_activated_notify';
$strongarm->value = 1;
$export['user_mail_status_activated_notify'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'user_mail_status_activated_subject';
$strongarm->value = 'Account details for [user:name] at [site:name] (approved)';
$export['user_mail_status_activated_subject'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'user_mail_status_blocked_body';
$strongarm->value = '[user:name],
Your account on [site:name] has been blocked.
-- [site:name] team';
$export['user_mail_status_blocked_body'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'user_mail_status_blocked_notify';
$strongarm->value = 0;
$export['user_mail_status_blocked_notify'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'user_mail_status_blocked_subject';
$strongarm->value = 'Account details for [user:name] at [site:name] (blocked)';
$export['user_mail_status_blocked_subject'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'user_mail_status_canceled_body';
$strongarm->value = '[user:name],
Your account on [site:name] has been canceled.
-- [site:name] team';
$export['user_mail_status_canceled_body'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'user_mail_status_canceled_notify';
$strongarm->value = 0;
$export['user_mail_status_canceled_notify'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'user_mail_status_canceled_subject';
$strongarm->value = 'Account details for [user:name] at [site:name] (canceled)';
$export['user_mail_status_canceled_subject'] = $strongarm;

return $export;
}
Loading

0 comments on commit 039de70

Please sign in to comment.