? .DS_Store
? cache_indexes_01.patch
? ctools_contexts_03.patch
? entity_translations_00.patch
? entity_translations_01.patch
? entity_translations_02.patch
? grid_display_00.patch
? layer_filters_04.patch
Index: index.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/index/Attic/index.install,v
retrieving revision 1.1.2.14
diff -u -p -r1.1.2.14 index.install
--- index.install	28 Feb 2010 13:06:47 -0000	1.1.2.14
+++ index.install	7 Mar 2010 12:41:06 -0000
@@ -31,6 +31,13 @@ function index_schema() {
         'size' => 'big',
         'default' => '',
       ),
+      'language' => array(
+        'type' => 'varchar',
+        'length' => 12,
+        'not null' => TRUE,
+        'default' => 'zxx',
+        'description' => "Language code, e.g. 'de' or 'en-US'.",
+      ),
     ),
     'primary key' => array('iid'),
   );
Index: index.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/index/Attic/index.module,v
retrieving revision 1.1.2.42
diff -u -p -r1.1.2.42 index.module
--- index.module	28 Feb 2010 11:51:57 -0000	1.1.2.42
+++ index.module	7 Mar 2010 12:41:07 -0000
@@ -12,6 +12,11 @@
 define('INDEX_NO_ENTITY_TYPE', 'index_no_entity_type');
 
 /**
+ * Language neutral ISO 639 code.
+ */
+define('INDEX_LANGUAGE_NEUTRAL', 'zxx');
+
+/**
  * Implementation of hook_perm().
  */
 function index_perm() {
Index: includes/index.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/index/includes/Attic/index.admin.inc,v
retrieving revision 1.1.2.48
diff -u -p -r1.1.2.48 index.admin.inc
--- includes/index.admin.inc	28 Feb 2010 13:21:03 -0000	1.1.2.48
+++ includes/index.admin.inc	7 Mar 2010 12:41:07 -0000
@@ -126,6 +126,12 @@ function index_form_add(array $form_stat
     '#default_value' => $index_edited->description,
     '#rows' => 3,
   );
+  $form['identification']['language'] = array(
+    '#type' => 'select',
+    '#title' => t('Language'),
+    '#options' => index_languages(),
+    '#default_value' => $index_edited->language,
+  );
 
   // Contexts.
   $form['contexts'] = array(
@@ -412,6 +418,7 @@ function index_form_add_populate_index_r
   $index->iid = $values['iid'];
   $index->title = $values['title'];
   $index->description = $values['description'];
+  $index->language = $values['language'];
 
   // Contexts.
   $contexts_info = index_contexts_info();
@@ -837,4 +844,30 @@ function index_clone(index $index) {
   $index->insert();
   drupal_set_message(t('Index %index_original_title has been cloned to %index_clone_title.', array('%index_original_title' => $index_original_title, '%index_clone_title' => $index->title)));
   drupal_goto('admin/build/index');
+}
+
+/**
+ * Return a list of languages.
+ *
+ * @return
+ *   Array where the keys are languages codes and values are language names.
+ */
+function index_languages() {
+  static $languages = NULL;
+  include_once './includes/locale.inc';
+
+  if(!$languages) {
+    $languages = _locale_get_predefined_list();
+    foreach ($languages as $code => $names) {
+      // Include native name in output, if possible
+      $name = t($names[0]);
+      $languages[$code] = $name;
+      if (count($names) > 1 && $name != $names[1]) {
+        $languages[$code] .= ' (' . $names[1] . ')';
+      }
+    }
+    asort($languages);
+  }
+
+  return array_merge(array(INDEX_LANGUAGE_NEUTRAL => '<' . t('language neutral') . '>'), $languages);
 }
\ No newline at end of file
Index: includes/index.classes.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/index/includes/Attic/index.classes.inc,v
retrieving revision 1.1.2.41
diff -u -p -r1.1.2.41 index.classes.inc
--- includes/index.classes.inc	27 Feb 2010 19:41:10 -0000	1.1.2.41
+++ includes/index.classes.inc	7 Mar 2010 12:41:07 -0000
@@ -18,6 +18,7 @@ class index {
   public $iid = 0;
   public $title = '';
   public $description = '';
+  public $language = 'zxx';
   public $layers = array();
   public $contexts = array();
 
