Index: stringoverrides.admin.inc =================================================================== --- stringoverrides.admin.inc (revision 300) +++ stringoverrides.admin.inc (working copy) @@ -26,6 +26,13 @@ function stringoverrides_admin() { $form['string'][$delta] = stringoverrides_textbox_combo($delta); $delta++; } + $form['language'] = array( + '#type' => 'textfield', + '#title' => t('Language code'), + '#description' => t('The language code that appears in the language information and text direction for the HTML document. Note that this cannot be "en", but something else. "en-US" is appropriate, but feel free to change it.', array('@dirlang' => 'http://www.w3.org/TR/1999/REC-html401-19991224/struct/dirlang.html#langcodes')), + '#default_value' => variable_get('stringoverrides_language', 'en-US'), + '#required' => TRUE, + ); $form['save'] = array( '#type' => 'submit', @@ -50,6 +57,9 @@ function stringoverrides_admin_submit($f // Save into the English language definition variable_set('locale_custom_strings_en', $words); + // Save the language name + variable_set('stringoverrides_language', $form_values['language']); + // Output a message to the user drupal_set_message('Your changes have been saved.'); } Index: stringoverrides.module =================================================================== --- stringoverrides.module (revision 300) +++ stringoverrides.module (working copy) @@ -102,9 +102,10 @@ function stringoverrides_enable() { */ if (!function_exists('locale')) { function locale_supported_languages($reset = FALSE, $getall = FALSE) { + $language = variable_get('stringoverrides_language', 'en-US'); return array( - 'name' => array('xx' => 'String Overrides'), - 'formula' => array('xx' => ''), + 'name' => array($language => 'String Overrides'), + 'formula' => array($language => ''), ); }