/[drupal]/contributions/modules/translation_framework/contrib/google_translation/google_translation.admin.inc
ViewVC logotype

Diff of /contributions/modules/translation_framework/contrib/google_translation/google_translation.admin.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.2, Thu Apr 23 22:18:03 2009 UTC revision 1.1.2.3, Mon Aug 10 20:32:00 2009 UTC
# Line 29  function google_translation_admin_settin Line 29  function google_translation_admin_settin
29      '#maxlength'     => 255,      '#maxlength'     => 255,
30      '#description'   => t('Number of HTTP redirects that should be followed by the request'),      '#description'   => t('Number of HTTP redirects that should be followed by the request'),
31    );    );
32      $form['settings']['google_translation_enabled_locales_only'] = array(
33        '#type' => 'checkbox',
34        '#title' => t('Translate for enabled locales only'),
35        '#default_value' => variable_get('google_translation_enabled_locales_only', false),
36        '#description' => t('Check this if you wish the translation engine to only support the languages currently enabled in the system'),
37      );
38    $form['settings']['google_translation_max_string_size'] = array(    $form['settings']['google_translation_max_string_size'] = array(
39      '#type' => 'textfield',      '#type' => 'textfield',
40      '#title' => t('Maximum String Size'),      '#title' => t('Maximum String Size'),
# Line 47  function google_translation_language_map Line 53  function google_translation_language_map
53    $form = array();    $form = array();
54    $mappings = variable_get('google_translation_language_mappings', array());    $mappings = variable_get('google_translation_language_mappings', array());
55    $locales = locale_language_list('name');    $locales = locale_language_list('name');
56    $google_locales = google_translation_languages();    $google_locales = google_translation_languages(FALSE, TRUE);
57    if (is_array($mappings) && !empty($mappings)) {    if (is_array($mappings) && !empty($mappings)) {
58      $rows = array();      $rows = array();
59      $header = array('language' => t('Drupal Language'), 'google' => t('Google Language'), 'link' => t('Operation'));      $header = array('language' => t('Drupal Language'), 'google' => t('Google Language'), 'link' => t('Operation'));

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3

  ViewVC Help
Powered by ViewVC 1.1.2