summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--content.token.inc42
-rw-r--r--content_admin.inc36
-rw-r--r--content_copy.module10
-rw-r--r--content_permissions.module4
-rw-r--r--content_views.inc6
-rw-r--r--examples/example_field.php8
-rw-r--r--examples/simple_field.php2
-rw-r--r--fieldgroup.module4
-rw-r--r--nodereference.module10
-rw-r--r--number.module6
-rw-r--r--optionwidgets.module6
-rw-r--r--text.module6
-rw-r--r--userreference.module14
13 files changed, 77 insertions, 77 deletions
diff --git a/content.token.inc b/content.token.inc
index 7fe24fc..937a0a5 100644
--- a/content.token.inc
+++ b/content.token.inc
@@ -57,9 +57,9 @@ if (module_exists('nodereference')) {
if ($type == 'field' || $type == 'all') {
$tokens = array();
- $tokens['node reference']['nid'] = t("Referenced node ID.");
- $tokens['node reference']['title'] = t("Referenced node title.");
- $tokens['node reference']['link'] = t("Formatted html link to the node.");
+ $tokens['node reference']['nid'] = t('Referenced node ID');
+ $tokens['node reference']['title'] = t('Referenced node title');
+ $tokens['node reference']['link'] = t('Formatted HTML link to the node');
return $tokens;
}
@@ -83,8 +83,8 @@ if (module_exists('number')) {
if ($type == 'field' || $type == 'all') {
$tokens = array();
- $tokens['number']['raw'] = t("Raw number value.");
- $tokens['number']['formatted'] = t("Formatted number value.");
+ $tokens['number']['raw'] = t('Raw number value');
+ $tokens['number']['formatted'] = t('Formatted number value');
return $tokens;
}
@@ -107,8 +107,8 @@ if (module_exists('text')) {
if ($type == 'field' || $type == 'all') {
$tokens = array();
- $tokens['text']['raw'] = t("Raw, unfiltered text.");
- $tokens['text']['formatted'] = t("Formatted and filtered text.");
+ $tokens['text']['raw'] = t('Raw, unfiltered text');
+ $tokens['text']['formatted'] = t('Formatted and filtered text');
return $tokens;
}
@@ -130,9 +130,9 @@ if (module_exists('userreference')) {
if ($type == 'field' || $type == 'all') {
$tokens = array();
- $tokens['user reference']['uid'] = t("Referenced user ID");
- $tokens['user reference']['name'] = t("Referenced user name");
- $tokens['user reference']['link'] = t("Formatted html link to referenced user");
+ $tokens['user reference']['uid'] = t('Referenced user ID');
+ $tokens['user reference']['name'] = t('Referenced user name');
+ $tokens['user reference']['link'] = t('Formatted HTML link to referenced user');
return $tokens;
}
@@ -159,9 +159,9 @@ if (module_exists('link')) {
if ($type == 'field' || $type == 'all') {
$tokens = array();
- $tokens['link']['url'] = t("Link URL");
- $tokens['link']['title'] = t("Link title");
- $tokens['link']['view'] = t("Formatted html link");
+ $tokens['link']['url'] = t('Link URL');
+ $tokens['link']['title'] = t('Link title');
+ $tokens['link']['view'] = t('Formatted HTML link');
return $tokens;
}
@@ -185,14 +185,14 @@ if (module_exists('imagefield')) {
if ($type == 'field' || $type == 'all') {
$tokens = array();
- $tokens['image']['fid'] = t("Image file ID");
- $tokens['image']['title'] = t("Image title");
- $tokens['image']['alt'] = t("Image alt text");
- $tokens['image']['filename'] = t("Image file name");
- $tokens['image']['filepath'] = t("Image path");
- $tokens['image']['filemime'] = t("Image MIME type");
- $tokens['image']['filesize'] = t("Image file size");
- $tokens['image']['view'] = t("Fully formatted HTML image tag");
+ $tokens['image']['fid'] = t('Image file ID');
+ $tokens['image']['title'] = t('Image title');
+ $tokens['image']['alt'] = t('Image alt text');
+ $tokens['image']['filename'] = t('Image file name');
+ $tokens['image']['filepath'] = t('Image path');
+ $tokens['image']['filemime'] = t('Image MIME type');
+ $tokens['image']['filesize'] = t('Image file size');
+ $tokens['image']['view'] = t('Fully formatted HTML image tag');
return $tokens;
}
diff --git a/content_admin.inc b/content_admin.inc
index ba2ea13..a733532 100644
--- a/content_admin.inc
+++ b/content_admin.inc
@@ -61,7 +61,7 @@ function content_admin_field_overview_form(&$form_state, $type_name) {
$fields = $type['fields'];
if (empty($fields)) {
drupal_set_message(t('There are no fields configured for this content type. You can !link.', array(
- '!link' => l(t('add a new field'), str_replace('/fields', '/add_field', $_GET['q'])))), 'warning');
+ '!link' => l(t('Add a new field'), str_replace('/fields', '/add_field', $_GET['q'])))), 'warning');
return array();
}
@@ -85,7 +85,7 @@ function content_admin_field_overview_form(&$form_state, $type_name) {
'#groups' => array_keys($groups),
'#extra' => array_keys($extra),
'#order' => array(),
- '#prefix' => t('<p>To change the order of a field, grab a drag-and-drop handle under the Label column and drag the field to a new location in the list. (Grab a handle by clicking and holding the mouse while hovering over a handle icon.) Remember that your changes will not be saved until you click the Save button at the bottom of the page.</p>'),
+ '#prefix' => '<p>'. t('To change the order of a field, grab a drag-and-drop handle under the Label column and drag the field to a new location in the list. (Grab a handle by clicking and holding the mouse while hovering over a handle icon.) Remember that your changes will not be saved until you click the Save button at the bottom of the page.') .'</p>',
);
// Fields.
@@ -95,8 +95,8 @@ function content_admin_field_overview_form(&$form_state, $type_name) {
'human_name' => array('#value' => $field['widget']['label']),
'name' => array('#value' => $field['field_name']),
'type' => array('#value' => $field['type']),
- 'configure' => array('#value' => l(t('configure'), 'admin/content/node-type/'. $type['url_str'] .'/fields/'. $field['field_name'] .'/edit')),
- 'remove' => array('#value' => l(t('remove'), 'admin/content/node-type/'. $type['url_str'] .'/fields/'. $field['field_name'] .'/remove')),
+ 'configure' => array('#value' => l(t('Configure'), 'admin/content/node-type/'. $type['url_str'] .'/fields/'. $field['field_name'] .'/edit')),
+ 'remove' => array('#value' => l(t('Remove'), 'admin/content/node-type/'. $type['url_str'] .'/fields/'. $field['field_name'] .'/remove')),
'weight' => array('#type' => 'textfield', '#default_value' => $weight),
'parent' => array('#type' => 'select', '#options' => $group_options, '#default_value' => ''),
'hidden_name' => array('#type' => 'hidden', '#default_value' => $field['field_name']),
@@ -111,8 +111,8 @@ function content_admin_field_overview_form(&$form_state, $type_name) {
'human_name' => array('#value' => $group['label']),
'name' => array('#value' => $group['group_name']),
'type' => array(),
- 'configure' => array('#value' => l(t('configure'), 'admin/content/node-type/'. $type['url_str'] .'/groups/'. $group['group_name'] .'/edit')),
- 'remove' => array('#value' => l(t('remove'), 'admin/content/node-type/'. $type['url_str'] .'/groups/'. $group['group_name'] .'/remove')),
+ 'configure' => array('#value' => l(t('Configure'), 'admin/content/node-type/'. $type['url_str'] .'/groups/'. $group['group_name'] .'/edit')),
+ 'remove' => array('#value' => l(t('Remove'), 'admin/content/node-type/'. $type['url_str'] .'/groups/'. $group['group_name'] .'/remove')),
'weight' => array('#type' => 'textfield', '#default_value' => $weight),
'parent' => array('#type' => 'hidden', '#default_value' => ''),
'hidden_name' => array('#type' => 'hidden', '#default_value' => $group['group_name']),
@@ -170,8 +170,8 @@ function theme_content_admin_field_overview_form($form) {
$element['parent']['#attributes']['class'] = 'group-parent';
$element['hidden_name']['#attributes']['class'] = 'field-name';
if (in_array($key, $form['#groups'])) {
- $element['human_name']['#prefix'] = '<b>';
- $element['human_name']['#suffix'] = '</b>';
+ $element['human_name']['#prefix'] = '<strong>';
+ $element['human_name']['#suffix'] = '</strong>';
}
$row[] = theme('indentation', isset($element['#depth']) ? $element['#depth'] : 0) . drupal_render($element['human_name']);
$row[] = drupal_render($element['name']);
@@ -240,7 +240,7 @@ function content_admin_display_overview_form(&$form_state, $type_name, $contexts
$fields = $type['fields'];
if (empty($fields)) {
drupal_set_message(t('There are no fields configured for this content type. You can !link.', array(
- '!link' => l(t('add a new field'), str_replace('/fields', '/add_field', $_GET['q'])))), 'warning');
+ '!link' => l(t('Add a new field'), str_replace('/fields', '/add_field', $_GET['q'])))), 'warning');
return array();
}
@@ -371,8 +371,8 @@ function theme_content_admin_display_overview_form($form) {
$row = array();
$element = &$form[$key];
if (in_array($key, $form['#groups'])) {
- $element['human_name']['#prefix'] = '<b>';
- $element['human_name']['#suffix'] = '</b>';
+ $element['human_name']['#prefix'] = '<strong>';
+ $element['human_name']['#suffix'] = '</strong>';
}
$row[] = theme('indentation', isset($element['#depth']) ? $element['#depth'] : 0) . drupal_render($element['human_name']);
$row[] = drupal_render($element['label']);
@@ -479,7 +479,7 @@ function _content_admin_field_add_new(&$form_state, $type_name, $new_field_name
'#type' => 'textfield',
'#default_value' => $new_field_name,
'#field_prefix' => 'field_',
- '#description' => t('The machine-readable name of the field. This name cannot be changed later! The name will be prefixed with \'field_\' and can include lowercase unaccented letters, numbers, and underscores. You\'ll be able to choose a human-readable label for the field on next page'),
+ '#description' => t("The machine-readable name of the field. This name cannot be changed later! The name will be prefixed with 'field_' and can include lowercase unaccented letters, numbers, and underscores. You'll be able to choose a human-readable label for the field on next page."),
'#required' => TRUE,
);
$form['new']['field_widget_type'] = array(
@@ -511,7 +511,7 @@ function theme_content_admin_field_add_new_field_widget_type($form) {
$field_types = _content_field_types();
$widget_types = _content_widget_types();
$output = '';
- $output .= t('<p>Choose the type of value to store and an input method from the list below.</p>');
+ $output .= '<p>'. t('Choose the type of value to store and an input method from the list below.') .'</p>';
$output .= '<dl>';
foreach ($field_types as $field_name => $field_type) {
$output .= '<dt>'. $field_type['label'] .'</dt>';
@@ -562,7 +562,7 @@ function _content_admin_field_add_new_validate($form, &$form_state) {
'%field_name' => $form_values['field_name'])));
}
elseif ($form_values['field_name'] == 'field_instance') {
- form_set_error('field_name', t('The name \'field_instance\' is a reserved name.'));
+ form_set_error('field_name', t("The name 'field_instance' is a reserved name."));
}
}
@@ -636,7 +636,7 @@ function _content_admin_field_remove_submit($form, &$form_state) {
'%type' => $type['name'])));
}
else {
- drupal_set_message(t('There was a problem deleting %field from %type', array(
+ drupal_set_message(t('There was a problem deleting %field from %type.', array(
'%field' => $field['widget']['label'],
'%type' => $type['name'])));
}
@@ -754,7 +754,7 @@ function _content_admin_field(&$form_state, $type_name, $field_name) {
'#default_value' => isset($field['widget']['default_value_php']) ? $field['widget']['default_value_php'] : '',
'#rows' => 6,
'#tree' => TRUE,
- '#description' => t('Advanced Usage Only: PHP code that returns a default value. Should not include &lt;?php ?&gt; delimiters. If this field is filled out, the value returned by this code will override any value specified above. Expected format :<pre>!sample</pre>Using !link_devel\'s \'devel load\' tab on a %type content page might help you figure out the expected format.', array(
+ '#description' => t("Advanced usage only: PHP code that returns a default value. Should not include &lt;?php ?&gt; delimiters. If this field is filled out, the value returned by this code will override any value specified above. Expected format :<pre>!sample</pre>Using !link_devel's 'devel load' tab on a %type content page might help you figure out the expected format.", array(
'!sample' => $sample,
'!link_devel' => l('devel.module', 'http://www.drupal.org/project/devel'),
'%type' => $type_name)),
@@ -776,7 +776,7 @@ function _content_admin_field(&$form_state, $type_name, $field_name) {
'#title' => t('Number of values'),
'#options' => array(1 => t('Unlimited'), 0 => 1) + drupal_map_assoc(range(2, 10)),
'#default_value' => $field['multiple'],
- '#description' => t('Select a specific number of values for this field, or \'Unlimited\' to provide an \'Add more\' button so the users can add as many values as they like.') .'<br/><strong>'. t('Warning! Changing this setting after data has been created could result in the loss of data!') .'</strong>',
+ '#description' => t("Select a specific number of values for this field, or 'Unlimited' to provide an 'Add more' button so the users can add as many values as they like.") .'<br/><strong>'. t('Warning! Changing this setting after data has been created could result in the loss of data!') .'</strong>',
);
$form['field']['previous_field'] = array(
@@ -877,7 +877,7 @@ function _content_admin_field_validate($form, &$form_state) {
1 => array('. implode(', ', $columns) .'),
2 => ...
);';
- form_set_error('default_value_php', t('The default value PHP code returned an incorrect value<br/>Expected format : <pre>!sample</pre> Returned value : @value', array(
+ form_set_error('default_value_php', t('The default value PHP code returned an incorrect value.<br/>Expected format: <pre>!sample</pre> Returned value: @value', array(
'!sample' => $sample,
'@value' => print_r($return, true))));
return;
diff --git a/content_copy.module b/content_copy.module
index a14ff99..fc8619c 100644
--- a/content_copy.module
+++ b/content_copy.module
@@ -151,7 +151,7 @@ function content_copy_export_form(&$form_state) {
$form['submit'] = array(
'#type' => 'submit',
- '#value' => t('Submit'),
+ '#value' => t('Export'),
);
}
$form['step'] = array(
@@ -241,7 +241,7 @@ function content_copy_import_form(&$form_state, $type_name = '') {
);
$form['submit'] = array(
'#type' => 'submit',
- '#value' => t('Submit'),
+ '#value' => t('Import'),
);
return $form;
}
@@ -352,7 +352,7 @@ function content_copy_import_form_submit($form, &$form_state) {
$content_info = _content_type_info();
if (form_get_errors() || !isset($content_info['content types']) || !is_array($content_info['content types'][$type_name])) {
- drupal_set_message(t("An error has occurred adding the content type %type.<br/>Please check the errors displayed for more details.", array(
+ drupal_set_message(t('An error has occurred adding the content type %type.<br/>Please check the errors displayed for more details.', array(
'%type' => $imported_type_name
)));
return;
@@ -382,7 +382,7 @@ function content_copy_import_form_submit($form, &$form_state) {
$field_name = $field['field_name'];
if (!empty($field['field_name']) && isset($content_info['content types'][$type_name]['fields'][$field_name])) {
- drupal_set_message(t("The imported field %field_label (%field_name) was not added to %type because that field already exists in %type.", array(
+ drupal_set_message(t('The imported field %field_label (%field_name) was not added to %type because that field already exists in %type.', array(
'%field_label' => $field_label, '%field_name' => $field_name, '%type' => $type_name)));
}
else {
@@ -391,7 +391,7 @@ function content_copy_import_form_submit($form, &$form_state) {
$field['type_name'] = $type_name;
$field = content_field_instance_create($field);
- drupal_set_message(t("The field %field_label (%field_name) was added to the content type %type.", array(
+ drupal_set_message(t('The field %field_label (%field_name) was added to the content type %type.', array(
'%field_label' => $field['widget']['label'], '%field_name' => $field_name, '%type' => $type_label)));
}
}
diff --git a/content_permissions.module b/content_permissions.module
index 380f3f3..997800f 100644
--- a/content_permissions.module
+++ b/content_permissions.module
@@ -12,8 +12,8 @@
*/
function content_permissions_perm() {
foreach (content_fields() as $field) {
- $perms[] = "edit ". $field['field_name'];
- $perms[] = "view ". $field['field_name'];
+ $perms[] = 'edit '. $field['field_name'];
+ $perms[] = 'view '. $field['field_name'];
}
return $perms;
}
diff --git a/content_views.inc b/content_views.inc
index a02d752..55dae8f 100644
--- a/content_views.inc
+++ b/content_views.inc
@@ -376,14 +376,14 @@ class views_handler_field_content_multiple extends views_handler_field_content {
'#access' => $field['multiple'],
);
$form['multiple']['group'] = array(
- '#title' => t('Group Multiple values'),
+ '#title' => t('Group multiple values'),
'#type' => 'checkbox',
'#default_value' => $options['multiple']['group'],
);
$form['multiple']['multiple_number'] = array(
'#type' => 'textfield',
'#size' => 5,
- '#field_prefix' => t('Show '),
+ '#field_prefix' => t('Show') .' ',
'#field_suffix' => t(' values,'),
'#default_value' => $options['multiple']['multiple_number'],
'#prefix' => '<div class="container-inline">',
@@ -391,7 +391,7 @@ class views_handler_field_content_multiple extends views_handler_field_content {
$form['multiple']['multiple_from'] = array(
'#type' => 'textfield',
'#size' => 5,
- '#field_prefix' => t('starting from '),
+ '#field_prefix' => t('Starting from') .' ',
'#default_value' => $options['multiple']['multiple_from'],
);
$form['multiple']['multiple_reversed'] = array(
diff --git a/examples/example_field.php b/examples/example_field.php
index f22fddd..170f486 100644
--- a/examples/example_field.php
+++ b/examples/example_field.php
@@ -179,7 +179,7 @@ function text_field_settings($op, $field) {
);
$form['advanced_options'] = array(
'#type' => 'fieldset',
- '#title' => t('Php code'),
+ '#title' => t('PHP code'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
@@ -188,7 +188,7 @@ function text_field_settings($op, $field) {
'#title' => t('Code'),
'#default_value' => !empty($field['allowed_values_php']) ? $field['allowed_values_php'] : '',
'#rows' => 6,
- '#description' => t('Advanced Usage Only: PHP code that returns a keyed array of allowed values. Should not include &lt;?php ?&gt; delimiters. If this field is filled out, the array returned by this code will override the allowed values list above.'),
+ '#description' => t('Advanced usage only: PHP code that returns a keyed array of allowed values. Should not include &lt;?php ?&gt; delimiters. If this field is filled out, the array returned by this code will override the allowed values list above.'),
);
return $form;
@@ -473,7 +473,7 @@ function text_field_formatter($field, $item, $formatter, $node) {
function text_widget_info() {
return array(
'text_textfield' => array(
- 'label' => t('Text Field'),
+ 'label' => t('Text field'),
'field types' => array('text'),
'multiple values' => CONTENT_HANDLE_CORE,
'callbacks' => array(
@@ -481,7 +481,7 @@ function text_widget_info() {
),
),
'text_textarea' => array(
- 'label' => t('Text Area'),
+ 'label' => t('Text area'),
'field types' => array('text'),
'multiple values' => CONTENT_HANDLE_CORE,
'callbacks' => array(
diff --git a/examples/simple_field.php b/examples/simple_field.php
index 82fa8d7..65ed28e 100644
--- a/examples/simple_field.php
+++ b/examples/simple_field.php
@@ -397,7 +397,7 @@ function text_field_formatter($field, $item, $formatter, $node) {
function text_widget_info() {
return array(
'text_textfield' => array(
- 'label' => t('Text Field'),
+ 'label' => t('Text field'),
'field types' => array('text'),
),
);
diff --git a/fieldgroup.module b/fieldgroup.module
index 87449f7..ee650f8 100644
--- a/fieldgroup.module
+++ b/fieldgroup.module
@@ -123,7 +123,7 @@ function fieldgroup_edit_group_form(&$form_state, $content_type, $group_name, $a
$form['settings']['form'] = array(
'#type' => 'fieldset',
'#title' => 'Form settings',
- '#description' => t('These settings apply to the group in the node editing form'),
+ '#description' => t('These settings apply to the group in the node editing form.'),
);
$form['settings']['form']['style'] = array(
'#type' => 'radios',
@@ -357,7 +357,7 @@ function fieldgroup_form_alter(&$form, $form_state, $form_id) {
elseif ($form_id == 'content_admin_display_overview_form' && !empty($form['#groups'])) {
$form['#submit'][] = 'fieldgroup_display_overview_form_submit';
if (!isset($form['submit'])) {
- $form['submit'] = array('#type' => 'submit', '#value' => t('Submit'), '#weight' => 10);
+ $form['submit'] = array('#type' => 'submit', '#value' => t('Save'), '#weight' => 10);
}
}
elseif ($form_id == '_content_admin_field_remove') {
diff --git a/nodereference.module b/nodereference.module
index a5918c4..884abaa 100644
--- a/nodereference.module
+++ b/nodereference.module
@@ -65,8 +65,8 @@ function nodereference_theme() {
function nodereference_field_info() {
return array(
'nodereference' => array(
- 'label' => t('Node Reference'),
- 'description' => t('Store the id of a related node as an integer value.'),
+ 'label' => t('Node reference'),
+ 'description' => t('Store the ID of a related node as an integer value.'),
'callbacks' => array(
'tables' => CONTENT_CALLBACK_DEFAULT,
'arguments' => CONTENT_CALLBACK_DEFAULT,
@@ -294,7 +294,7 @@ function _nodereference_titles($nid, $known_title = NULL) {
function nodereference_widget_info() {
return array(
'nodereference_select' => array(
- 'label' => t('Select List'),
+ 'label' => t('Select list'),
'field types' => array('nodereference'),
'multiple values' => CONTENT_HANDLE_MODULE,
'callbacks' => array(
@@ -302,7 +302,7 @@ function nodereference_widget_info() {
),
),
'nodereference_autocomplete' => array(
- 'label' => t('Autocomplete Text Field'),
+ 'label' => t('Autocomplete text field'),
'field types' => array('nodereference'),
'multiple values' => CONTENT_HANDLE_CORE,
'callbacks' => array(
@@ -498,7 +498,7 @@ function nodereference_autocomplete_validate($element, &$form_state) {
// explicit nid
list(, $title, $nid) = $matches;
if (!empty($title) && ($n = node_load($nid)) && $title != $n->title) {
- form_set_error($element[$field_key], t('%name : Title mismatch. Please check your selection.'), array('%name' => t($element[$field_key]['#title'])));
+ form_set_error($element[$field_key], t('%name: Title mismatch. Please check your selection.'), array('%name' => t($element[$field_key]['#title'])));
}
}
else {
diff --git a/number.module b/number.module
index 83cbbbb..3b24ee3 100644
--- a/number.module
+++ b/number.module
@@ -116,7 +116,7 @@ function number_field_settings($op, $field) {
'#title' => t('Suffix'),
'#size' => 60,
'#default_value' => !empty($field['suffix']) ? $field['suffix'] : '',
- '#description' => t('Define a string that should suffixed to the value, like m², m/s², kb/s. Leave blank for none. Separate singular and plural values with a pipe (pound|pounds). '),
+ '#description' => t('Define a string that should suffixed to the value, like m², m/s², kb/s. Leave blank for none. Separate singular and plural values with a pipe (pound|pounds).'),
);
$form['allowed_values_fieldset'] = array(
'#type' => 'fieldset',
@@ -143,7 +143,7 @@ function number_field_settings($op, $field) {
'#title' => t('Code'),
'#default_value' => !empty($field['allowed_values_php']) ? $field['allowed_values_php'] : '',
'#rows' => 6,
- '#description' => t('Advanced Usage Only: PHP code that returns a keyed array of allowed values. Should not include &lt;?php ?&gt; delimiters. If this field is filled out, the array returned by this code will override the allowed values list above.'),
+ '#description' => t('Advanced usage only: PHP code that returns a keyed array of allowed values. Should not include &lt;?php ?&gt; delimiters. If this field is filled out, the array returned by this code will override the allowed values list above.'),
);
return $form;
@@ -329,7 +329,7 @@ function theme_number_formatter_generic($element) {
function number_widget_info() {
return array(
'number' => array(
- 'label' => t('Text Field'),
+ 'label' => t('Text field'),
'field types' => array('number_integer', 'number_decimal', 'number_float'),
'multiple values' => CONTENT_HANDLE_CORE,
'callbacks' => array(
diff --git a/optionwidgets.module b/optionwidgets.module
index 26006fa..2c6f5eb 100644
--- a/optionwidgets.module
+++ b/optionwidgets.module
@@ -7,12 +7,12 @@
*/
function optionwidgets_form_alter(&$form, $form_state, $form_id) {
if ($form_id == '_content_admin_field') {
- $output = t('<p>Create a list of options as a list in <strong>Allowed values</strong> or as an array in PHP code. These values will be the same for %field in all content types.</p>', array('%field' => $form['widget']['label']['#default_value']));
+ $output = '<p>'. t('Create a list of options as a list in <strong>Allowed values</strong> or as an array in PHP code. These values will be the same for %field in all content types.', array('%field' => $form['widget']['label']['#default_value'])) .'</p>';
if ($form['widget']['widget_type']['#default_value'] == 'optionwidgets_onoff') {
- $output .= t('<p>For a \'Single on/off checkbox\' widget, define the \'off\' value first, then the \'on\' value in the <strong>Allowed values</strong> section. Note that the checkbox will be labeled with the label of the \'on\' value.</p>');
+ $output .= '<p>'. t("For a 'single on/off checkbox' widget, define the 'off' value first, then the 'on' value in the <strong>Allowed values</strong> section. Note that the checkbox will be labeled with the label of the 'on' value.") .'</p>';
}
elseif ($form['widget']['widget_type']['#default_value'] == 'optionwidgets_buttons') {
- $output .= t('<p>The \'Checkboxes / radio buttons\' widget will display checkboxes if the multiple values option is selected for this field, otherwise radios will be displayed.</p>');
+ $output .= '<p>'. t("The 'checkboxes/radio buttons' widget will display checkboxes if the multiple values option is selected for this field, otherwise radios will be displayed.") .'</p>';
}
if (in_array($form['type']['#value'], array('text', 'number_integer', 'number_float', 'number_decimal'))
&& in_array($form['widget']['widget_type']['#default_value'], array('optionwidgets_onoff', 'optionwidgets_buttons', 'optionwidgets_select'))) {
diff --git a/text.module b/text.module
index d65d53f..f61e627 100644
--- a/text.module
+++ b/text.module
@@ -102,7 +102,7 @@ function text_field_settings($op, $field) {
'#title' => t('Code'),
'#default_value' => !empty($field['allowed_values_php']) ? $field['allowed_values_php'] : '',
'#rows' => 6,
- '#description' => t('Advanced Usage Only: PHP code that returns a keyed array of allowed values. Should not include &lt;?php ?&gt; delimiters. If this field is filled out, the array returned by this code will override the allowed values list above.'),
+ '#description' => t('Advanced usage only: PHP code that returns a keyed array of allowed values. Should not include &lt;?php ?&gt; delimiters. If this field is filled out, the array returned by this code will override the allowed values list above.'),
);
return $form;
@@ -251,7 +251,7 @@ function _text_allowed_values($element) {
function text_widget_info() {
return array(
'text_textfield' => array(
- 'label' => t('Text Field'),
+ 'label' => t('Text field'),
'field types' => array('text'),
'multiple values' => CONTENT_HANDLE_CORE,
'callbacks' => array(
@@ -259,7 +259,7 @@ function text_widget_info() {
),
),
'text_textarea' => array(
- 'label' => t('Text Area (multiple rows)'),
+ 'label' => t('Text area (multiple rows)'),
'field types' => array('text'),
'multiple values' => CONTENT_HANDLE_CORE,
'callbacks' => array(
diff --git a/userreference.module b/userreference.module
index 87ba376..e209d55 100644
--- a/userreference.module
+++ b/userreference.module
@@ -49,8 +49,8 @@ function userreference_theme() {
function userreference_field_info() {
return array(
'userreference' => array(
- 'label' => t('User Reference'),
- 'description' => t('Store the id of a related user as an integer value.'),
+ 'label' => t('User reference'),
+ 'description' => t('Store the ID of a related user as an integer value.'),
'callbacks' => array(
'tables' => CONTENT_CALLBACK_DEFAULT,
'arguments' => CONTENT_CALLBACK_DEFAULT,
@@ -119,7 +119,7 @@ function userreference_field($op, &$node, $field, &$items, $teaser, $page) {
$error_field = $item['error_field'];
unset($item['error_field']);
if (!empty($item['uid']) && !in_array($item['uid'], array_keys(_userreference_potential_references($field)))) {
- form_set_error($error_field, t('%name : Invalid user.', array('%name' => t($field['widget']['label']))));
+ form_set_error($error_field, t('%name: Invalid user.', array('%name' => t($field['widget']['label']))));
}
}
}
@@ -195,7 +195,7 @@ function theme_userreference_formatter_plain($element) {
function userreference_widget_info() {
return array(
'userreference_select' => array(
- 'label' => t('Select List'),
+ 'label' => t('Select list'),
'field types' => array('userreference'),
'multiple values' => CONTENT_HANDLE_MODULE,
'callbacks' => array(
@@ -203,7 +203,7 @@ function userreference_widget_info() {
),
),
'userreference_autocomplete' => array(
- 'label' => t('Autocomplete Text Field'),
+ 'label' => t('Autocomplete text field'),
'field types' => array('userreference'),
'multiple values' => CONTENT_HANDLE_CORE,
'callbacks' => array(
@@ -250,7 +250,7 @@ function userreference_widget_settings($op, $field) {
$form = array();
$form['reverse_link'] = array(
'#type' => 'radios',
- '#title' => t('Reverse Link'),
+ '#title' => t('Reverse link'),
'#default_value' => isset($field['reverse_link']) ? $field['reverse_link'] : 0,
'#options' => array(0 => t('No'), 1 => t('Yes')),
'#required' => TRUE,
@@ -564,7 +564,7 @@ function userreference_user($type, &$edit, &$account) {
$account->content['userreference'] = $additions + array(
'#type' => 'user_profile_category',
'#attributes' => array('class' => 'user-member'),
- '#title' => t('Related Content'),
+ '#title' => t('Related content'),
'#weight' => 10,
);
}