Project

General

Profile

Revision c278f2a0

IDc278f2a0a05bbbfebb22914b9092a0c1ecec1279
Parent 03c3b241
Child a20ddbc4

Added by Andreas Kohlbecker almost 4 years ago

Fixing case of labels and adding spanisch translations

View differences:

modules/cdm_dataportal/settings.php
2582 2582

  
2583 2583
  $form['search_settings'][SEARCH_RESULTS_SHOW_THUMBNAIL_CHECKBOX] = array(
2584 2584
    '#type' => 'checkbox',
2585
    '#title' => t('Show the <i>Show Image Thumbnails</i> button') . ':',
2585
    '#title' => t('Show the') .  ' <i>' . t('Display image thumbnails') . '</i>' . t('button') . ':',
2586 2586
    '#default_value' => variable_get(SEARCH_RESULTS_SHOW_THUMBNAIL_CHECKBOX, SEARCH_RESULTS_SHOW_THUMBNAIL_CHECKBOX_DEFAULT),
2587 2587
    '#description' => t('The search results page will offer a button to toggle the display of image thumbnails.'),
2588 2588
  );
modules/cdm_dataportal/theme/cdm_dataportal.common.theme
356 356
}
357 357

  
358 358
/* ============================ pager ============================= */
359

  
359 360
/**
360 361
 * @todo Please document this function.
361 362
 * @see http://drupal.org/node/1354
......
371 372
    $out .= '<div class="pager">';
372 373
    if ($pager->currentIndex > 0) {
373 374
      $out .= theme('cdm_pager_link', array(
374
        'text' => t('« first'),
375
        'text' => '« ' . t('First'),
375 376
        'linkIndex' => 0,
376 377
        'pager' => $pager,
377 378
        'path' => $path,
......
379 380
        'attributes' => array('class' => array('pager-first')),
380 381
        ));
381 382
      $out .= theme('cdm_pager_link', array(
382
        'text' => t('‹ previous'),
383
        'text' => '‹ ' . t('Previous'),
383 384
        'linkIndex' => $pager->currentIndex - 1,
384 385
        'pager' => $pager,
385 386
        'path' => $path,
......
403 404
    }
404 405

  
405 406
    if ($pager->nextIndex) {
406
      $out .= theme('cdm_pager_link', array('text' => t('next ›'), 'linkIndex' => $pager->nextIndex, 'pager' => $pager, 'path' => $path, 'parameters' => $parameters, 'attributes' => array(
407
  'class' => array('pager-next'),
408
)));
409
      $out .= theme('cdm_pager_link', array('text' => t('last »'), 'linkIndex' => $pager->pagesAvailable - 1, 'pager' => $pager, 'path' => $path, 'parameters' => $parameters, 'attributes' => array(
410
  'class' => array('pager-last'),
411
)));
407
      $out .= theme(
408
        'cdm_pager_link',
409
        array(
410
          'text' => t('Next') . ' ›',
411
          'linkIndex' => $pager->nextIndex,
412
          'pager' => $pager,
413
          'path' => $path,
414
          'parameters' => $parameters,
415
          'attributes' => array(
416
            'class' => array('pager-next'),
417
          )
418
        )
419
      );
420
      $out .= theme(
421
        'cdm_pager_link',
422
        array(
423
          'text' => t('Last') . ' »',
424
          'linkIndex' => $pager->pagesAvailable - 1,
425
          'pager' => $pager,
426
          'path' => $path,
427
          'parameters' => $parameters,
428
          'attributes' => array(
429
            'class' => array('pager-last'),
430
          )
431
        )
432
      );
412 433
    }
413 434
    $out .= '</div>';
414 435

  
modules/cdm_dataportal/theme/cdm_dataportal.page.theme
250 250
    }
251 251
  }
252 252
  if (variable_get(SEARCH_RESULTS_SHOW_THUMBNAIL_CHECKBOX, SEARCH_RESULTS_SHOW_THUMBNAIL_CHECKBOX_DEFAULT)) {
253
    $out .= '<form name="pageoptions"><div id="showThumbnails"><input class="showThumbnails" type="checkbox" name="showThumbnails" ' . (do_showThumbnails() == 1 ? 'checked="checked"' : '') . '> ' . t('Display Image Thumbnails') . '</div></form>';
253
    $out .= '<form name="pageoptions"><div id="showThumbnails"><input class="showThumbnails" type="checkbox" name="showThumbnails" ' . (do_showThumbnails() == 1 ? 'checked="checked"' : '') . '> ' . t('Display image thumbnails') . '</div></form>';
254 254
  }
255 255
  $out .= '</div>';
256 256

  
modules/cdm_dataportal/translations/cdm_dataportal.es.po
1046 1046
msgstr ""
1047 1047

  
1048 1048
#: settings.php:2509
1049
msgid "Show the <i>Show Image Thumbnails</i> button"
1049
msgid "Show the"
1050 1050
msgstr ""
1051 1051

  
1052 1052
#: settings.php:2511
......
2346 2346
msgstr "Modificar búsqueda"
2347 2347

  
2348 2348
#: theme/cdm_dataportal.page.theme:255
2349
msgid "Display Image Thumbnails"
2350
msgstr ""
2349
msgid "Display image thumbnails"
2350
msgstr "Muestra miniaturas de imágenes"
2351 2351

  
2352 2352
#: theme/cdm_dataportal.page.theme:263
2353 2353
msgid "results for"
themes/palmweb_2/template.php
120 120
  $out .= '<form name="pageoptions">';
121 121
  $out .= '<input id="showThumbnails" type="checkbox" name="showThumbnails" ';
122 122
  $out .= $showThumbnails == 1 ? 'checked="checked"' : '';
123
  $out .= '> ' . t('Show Image Thumbnails') . '</form></div>';
123
  $out .= '> ' . t('Display image thumbnails') . '</form></div>';
124 124
  if (!empty($pager) && count($pager->records) > 0) {
125 125
      $out .= '<div id="search_results">';
126 126
    $list_of_taxa = compose_list_of_taxa($pager->records);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)