### Eclipse Workspace Patch 1.0
#P drupal
Index: includes/locale.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/locale.inc,v
retrieving revision 1.264
diff -u -r1.264 locale.inc
--- includes/locale.inc	21 Nov 2010 09:01:30 -0000	1.264
+++ includes/locale.inc	9 Dec 2010 18:13:15 -0000
@@ -1604,15 +1604,31 @@
       'translation' => 'all',
       'group' => 'all',
       'language' => 'all',
+      'version' => 'all',
       'string' => '',
     );
   }
 
   $sql_query = db_select('locales_source', 's');
   $sql_query->leftJoin('locales_target', 't', 't.lid = s.lid');
-  $sql_query->fields('s', array('source', 'location', 'context', 'lid', 'textgroup'));
+  $sql_query->fields('s', array('source', 'location', 'context', 'lid', 'textgroup', 'version'));
   $sql_query->fields('t', array('translation', 'language'));
 
+  switch ($query['version']) {
+    // Only strings used in current version
+    case 'current':
+      $sql_query->condition('s.version', VERSION);
+      break;
+    // Only strings unused (yet) in current version
+    case 'old':
+      $sql_query->condition('s.version', VERSION, '!=');
+      break;
+    // No version-limit
+    case 'all':
+    default:
+      break;
+  }
+
   // Compute LIKE section.
   switch ($query['translation']) {
     case 'translated':
@@ -1653,7 +1669,7 @@
   $locales = $sql_query->execute();
 
   $groups = module_invoke_all('locale', 'groups');
-  $header = array(t('Text group'), t('String'), t('Context'), ($limit_language) ? t('Language') : t('Languages'), array('data' => t('Operations'), 'colspan' => '2'));
+  $header = array(t('Text group'), t('String'), t('Context'), t('Version'), ($limit_language) ? t('Language') : t('Languages'), array('data' => t('Operations'), 'colspan' => '2'));
 
   $strings = array();
   foreach ($locales as $locale) {
@@ -1664,6 +1680,7 @@
         'location' => $locale->location,
         'source' => $locale->source,
         'context' => $locale->context,
+        'version' => $locale->version == 'none' ? t('Not used yet') : $locale->version,
       );
     }
     if (isset($locale->language)) {
@@ -1677,6 +1694,7 @@
       $groups[$string['group']],
       array('data' => check_plain(truncate_utf8($string['source'], 150, FALSE, TRUE)) . '<br /><small>' . $string['location'] . '</small>'),
       $string['context'],
+      array('data' => check_plain($string['version'])),
       array('data' => _locale_translate_language_list($string['languages'], $limit_language), 'align' => 'center'),
       array('data' => l(t('edit'), "admin/config/regional/translate/edit/$lid", array('query' => drupal_get_destination())), 'class' => array('nowrap')),
       array('data' => l(t('delete'), "admin/config/regional/translate/delete/$lid", array('query' => drupal_get_destination())), 'class' => array('nowrap')),
@@ -1696,7 +1714,7 @@
   $query = &drupal_static(__FUNCTION__);
   if (!isset($query)) {
     $query = array();
-    $fields = array('string', 'language', 'translation', 'group');
+    $fields = array('string', 'language', 'translation', 'group', 'version');
     foreach ($fields as $field) {
       if (isset($_SESSION['locale_translation_filter'][$field])) {
         $query[$field] = $_SESSION['locale_translation_filter'][$field];
Index: modules/locale/locale.admin.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/locale/locale.admin.inc,v
retrieving revision 1.21
diff -u -r1.21 locale.admin.inc
--- modules/locale/locale.admin.inc	21 Nov 2010 09:53:05 -0000	1.21
+++ modules/locale/locale.admin.inc	9 Dec 2010 18:13:15 -0000
@@ -841,6 +841,11 @@
     'description' => t('Leave blank to show all strings. The search is case sensitive.'),
   );
 
+  $filters['version'] = array(
+    'title' => t('Drupal Version'),
+    'options' => array('all' => t('All'), 'current' => t('Used in !version', array('!version' => VERSION)), 'old' => t('Not yet used in current Drupal version')),
+  );
+
   $filters['language'] = array(
     'title' => t('Language'),
     'options' => array_merge(array('all' => t('All languages'), 'en' => t('English (provided by Drupal)')), $languages),
Index: modules/locale/locale.css
===================================================================
RCS file: /cvs/drupal/drupal/modules/locale/locale.css,v
retrieving revision 1.8
diff -u -r1.8 locale.css
--- modules/locale/locale.css	8 Oct 2010 03:30:40 -0000	1.8
+++ modules/locale/locale.css	9 Dec 2010 18:13:15 -0000
@@ -7,6 +7,7 @@
 
 .form-item-language,
 .form-item-translation,
+.form-item-version,
 .form-item-group {
   float: left; /* LTR */
   padding-right: .8em; /* LTR */
