Issue #1317884 by reglogge, kathyh, izus, YesCT, smiletrl: Fixed Remove all instances of <none>, <Hidden> and <br/> from translatable strings because they lead to import errors.

8.0.x
webchick 2013-01-29 20:02:37 -08:00
parent 0072202475
commit a06421e8c2
7 changed files with 9 additions and 9 deletions

View File

@ -128,7 +128,7 @@ function block_update_8003() {
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'Custom title for the block. (Empty string will use block default title, <none> will remove the title, text will cause block to use specified title.)',
'description' => 'Custom title for the block. (Empty string will use block default title, - None - will remove the title, text will cause block to use specified title.)',
'translatable' => TRUE,
)
);

View File

@ -558,7 +558,7 @@ function image_image_style_load($styles) {
* Gets an array of image styles suitable for using as select list options.
*
* @param $include_empty
* If TRUE a <none> option will be inserted in the options array.
* If TRUE a '- None -' option will be inserted in the options array.
* @return
* Array of image styles both key and value are set to style name.
*/
@ -566,7 +566,7 @@ function image_style_options($include_empty = TRUE) {
$styles = entity_load_multiple('image_style');
$options = array();
if ($include_empty && !empty($styles)) {
$options[''] = t('<none>');
$options[''] = t('- None -');
}
foreach ($styles as $name => $style) {
$options[$name] = $style->label();

View File

@ -183,7 +183,7 @@ function locale_translate_filter_form($form, &$form_state) {
);
}
else {
$empty_option = isset($filter['options'][$filter['default']]) ? $filter['options'][$filter['default']] : '<none>';
$empty_option = isset($filter['options'][$filter['default']]) ? $filter['options'][$filter['default']] : '- None -';
$form['filters']['status'][$key] = array(
'#title' => $filter['title'],
'#type' => 'select',
@ -257,7 +257,7 @@ function locale_translate_edit_form($form, &$form_state) {
drupal_static_reset('language_list');
$languages = language_list();
$langname = isset($langcode) ? $languages[$langcode]->name : "<none>";
$langname = isset($langcode) ? $languages[$langcode]->name : "- None -";
$path = drupal_get_path('module', 'locale');
$form['#attached']['css'] = array(

View File

@ -22,7 +22,7 @@ abstract class DefaultNumberFormatter extends FormatterBase {
*/
public function settingsForm(array $form, array &$form_state) {
$options = array(
'' => t('<none>'),
'' => t('- None -'),
'.' => t('Decimal point'),
',' => t('Comma'),
' ' => t('Space'),

View File

@ -87,7 +87,7 @@ class ProgrammaticTest extends WebTestBase {
'%values' => print_r($values, TRUE),
'%errors' => $valid_form ? t('None') : implode(' ', $errors),
);
$this->assertTrue($valid_input == $valid_form, format_string('Input values: %values<br/>Validation handler errors: %errors', $args));
$this->assertTrue($valid_input == $valid_form, format_string('Input values: %values<br />Validation handler errors: %errors', $args));
// We check submitted values only if we have a valid input.
if ($valid_input) {

View File

@ -91,7 +91,7 @@ function _batch_test_finished_helper($batch_id, $success, $results, $operations)
if (!$success) {
// A fatal error occurred during the processing.
$error_operation = reset($operations);
$messages[] = t('An error occurred while processing @op with arguments:<br/>@args', array('@op' => $error_operation[0], '@args' => print_r($error_operation[1], TRUE)));
$messages[] = t('An error occurred while processing @op with arguments:<br />@args', array('@op' => $error_operation[0], '@args' => print_r($error_operation[1], TRUE)));
}
drupal_set_message(implode('<br />', $messages));

View File

@ -122,7 +122,7 @@ class GroupwiseMax extends RelationshipPluginBase {
// WIP: This stuff doens't work yet: namespacing issues.
// A list of suitable views to pick one as the subview.
$views = array('' => '<none>');
$views = array('' => '- None -');
$all_views = views_get_all_views();
foreach ($all_views as $view) {
// Only get views that are suitable: