| 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'), |
| 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')); |