From 1f00dc2268d341669caebc69548a67954e26c1b0 Mon Sep 17 00:00:00 2001 From: Shawn Kwang Date: Fri, 31 Mar 2017 09:32:02 -0500 Subject: [PATCH] Drupal: Added bts() translations to user_profile Feature. Also removed project-specific strings. --- .../user_profiles.features.content.inc | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drupal/sites/all/features/user_profiles/user_profiles.features.content.inc b/drupal/sites/all/features/user_profiles/user_profiles.features.content.inc index 29f927f663..70de124862 100644 --- a/drupal/sites/all/features/user_profiles/user_profiles.features.content.inc +++ b/drupal/sites/all/features/user_profiles/user_profiles.features.content.inc @@ -60,9 +60,9 @@ function user_profiles_content_default_fields() { ), ), 'default_value_php' => NULL, - 'label' => 'Your personal background', + 'label' => bts('Your personal background', array(), NULL, 'boinc:account-profile-edit'), 'weight' => '3', - 'description' => 'Tell us about yourself. You could tell us where you\'re from, your age, occupation, hobbies, or anything else about yourself. ', + 'description' => bts('Tell us about yourself. You could tell us where you\'re from, your age, occupation, hobbies, or anything else about yourself.', array(), NULL, 'boinc:account-profile-edit'), 'type' => 'text_textarea', 'module' => 'text', ), @@ -490,13 +490,13 @@ Zimbabwe|Zimbabwe', ), ), 'default_value_php' => NULL, - 'label' => 'Your opinions about this project', + 'label' => bts('Your opinions about this project', array(), NULL, 'boinc:account-profile-edit'), 'weight' => '4', - 'description' => 'Tell us your thoughts about Einstein@Home - - 1. Why do you run Einstein@Home? + 'description' => bts('Tell us your thoughts about @this_project + 1. Why do you run @this_project? 2. What are your views about the project? - 3. Any suggestions? ', + 3. Any suggestions?', + array('@this_project' => variable_get('site_name','')), NULL, 'boinc:account-profile-edit'), 'type' => 'text_textarea', 'module' => 'text', ), @@ -695,7 +695,7 @@ Zimbabwe|Zimbabwe', ), ), 'default_value_php' => NULL, - 'label' => 'Zip code', + 'label' => 'Postal code', 'weight' => '6', 'description' => '', 'type' => 'text_textfield', @@ -705,13 +705,13 @@ Zimbabwe|Zimbabwe', // Translatables // Included for use with string extractors like potx. - t('Avatar'); - t('Country'); - t('Profile image'); - t('Website URL'); - t('Your opinions about this project'); - t('Your personal background'); - t('Zip code'); + bts('Avatar', array(), NULL, 'boinc:account-profile-edit'); + bts('Country', array(), NULL, 'boinc:account-profile-edit'); + bts('Profile image', array(), NULL, 'boinc:account-profile-edit'); + bts('Website URL', array(), NULL, 'boinc:account-profile-edit'); + bts('Your opinions about this project', array(), NULL, 'boinc:account-profile-edit'); + bts('Your personal background', array(), NULL, 'boinc:account-profile-edit'); + bts('Postal code', array(), NULL, 'boinc:account-profile-edit'); return $fields; }