Author: peter
Date: Mon Sep 14 15:33:10 2009
New Revision: 3279

Log:
add migrate tasks to pluralize English UI labels and corresponding 'Add/Edit' 
menu options to be consistent with r3274, r3276, and r3277

Modified:
   trunk/lib/task/migrate/QubitMigrate107to108.class.php

Modified: trunk/lib/task/migrate/QubitMigrate107to108.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate107to108.class.php       Mon Sep 14 
15:27:47 2009        (r3278)
+++ trunk/lib/task/migrate/QubitMigrate107to108.class.php       Mon Sep 14 
15:33:10 2009        (r3279)
@@ -270,6 +270,55 @@
         'label' => array('en' => 'digital objects')
     );
 
+    // Pluralize English 'Add/Edit' menu options for Qubit
+    $menuOption = $this->getRowKey('QubitMenu', 'label', array('en' => 
'Information object'));
+    if ($menuOption)
+    {
+      $this->data['QubitMenu'][$menuOption]['label']['en'] = 'Information 
objects';
+    }
+    $menuOption = $this->getRowKey('QubitMenu', 'label', array('en' => 
'Person/organization'));
+    if ($menuOption)
+    {
+      $this->data['QubitMenu'][$menuOption]['label']['en'] = 
'Persons/organizations';
+    }
+    $menuOption = $this->getRowKey('QubitMenu', 'label', array('en' => 
'Repository'));
+    if ($menuOption)
+    {
+      $this->data['QubitMenu'][$menuOption]['label']['en'] = 'Repositories';
+    }
+    $menuOption = $this->getRowKey('QubitMenu', 'label', array('en' => 
'Term'));
+    if ($menuOption)
+    {
+      $this->data['QubitMenu'][$menuOption]['label']['en'] = 'Terms';
+    }
+    // Pluralize English 'Add/Edit' menu options for ICA-AtoM variations
+    $menuOption = $this->getRowKey('QubitMenu', 'label', array('en' => 
'Archival description'));
+    if ($menuOption)
+    {
+      $this->data['QubitMenu'][$menuOption]['label']['en'] = 'Archival 
descriptions';
+    }
+    $menuOption = $this->getRowKey('QubitMenu', 'label', array('en' => 
'Authority record'));
+    if ($menuOption)
+    {
+      $this->data['QubitMenu'][$menuOption]['label']['en'] = 'Authority 
records';
+    }
+    $menuOption = $this->getRowKey('QubitMenu', 'label', array('en' => 
'Archival institution'));
+    if ($menuOption)
+    {
+      $this->data['QubitMenu'][$menuOption]['label']['en'] = 'Archival 
institutions';
+    }
+    // Pluralize English 'Add/Edit' menu options for DCB variations
+    $menuOption = $this->getRowKey('QubitMenu', 'label', array('en' => 
'resource'));
+    if ($menuOption)
+    {
+      $this->data['QubitMenu'][$menuOption]['label']['en'] = 'resources';
+    }
+    $menuOption = $this->getRowKey('QubitMenu', 'label', array('en' => 
'organization'));
+    if ($menuOption)
+    {
+      $this->data['QubitMenu'][$menuOption]['label']['en'] = 'organizations';
+    }
+
     return $this;
   }
 
@@ -347,6 +396,95 @@
       }
     }
 
+    // Pluralize English UI Labels for Qubit
+    $uiLabel = $this->getRowKey('QubitSetting', 'value', array('en' => 
'information object'));
+    if ($uiLabel)
+    {
+      $this->data['QubitSetting'][$uiLabel]['value']['en'] = 'information 
objects';
+    }
+    $uiLabel = $this->getRowKey('QubitSetting', 'value', array('en' => 
'person/organization'));
+    if ($uiLabel)
+    {
+      $this->data['QubitSetting'][$uiLabel]['value']['en'] = 
'persons/organizations';
+    }
+    $uiLabel = $this->getRowKey('QubitSetting', 'value', array('en' => 
'creator'));
+    if ($uiLabel)
+    {
+      $this->data['QubitSetting'][$uiLabel]['value']['en'] = 'creators';
+    }
+    $uiLabel = $this->getRowKey('QubitSetting', 'value', array('en' => 
'repository'));
+    if ($uiLabel)
+    {
+      $this->data['QubitSetting'][$uiLabel]['value']['en'] = 'repositories';
+    }
+    $uiLabel = $this->getRowKey('QubitSetting', 'value', array('en' => 
'term'));
+    if ($uiLabel)
+    {
+      $this->data['QubitSetting'][$uiLabel]['value']['en'] = 'terms';
+    }
+    $uiLabel = $this->getRowKey('QubitSetting', 'value', array('en' => 
'subject'));
+    if ($uiLabel)
+    {
+      $this->data['QubitSetting'][$uiLabel]['value']['en'] = 'subjects';
+    }
+    $uiLabel = $this->getRowKey('QubitSetting', 'value', array('en' => 
'collection'));
+    if ($uiLabel)
+    {
+      $this->data['QubitSetting'][$uiLabel]['value']['en'] = 'collections';
+    }
+    $uiLabel = $this->getRowKey('QubitSetting', 'value', array('en' => 
'place'));
+    if ($uiLabel)
+    {
+      $this->data['QubitSetting'][$uiLabel]['value']['en'] = 'places';
+    }
+    $uiLabel = $this->getRowKey('QubitSetting', 'value', array('en' => 
'name'));
+    if ($uiLabel)
+    {
+      $this->data['QubitSetting'][$uiLabel]['value']['en'] = 'names';
+    }
+    $uiLabel = $this->getRowKey('QubitSetting', 'value', array('en' => 
'digital object'));
+    if ($uiLabel)
+    {
+      $this->data['QubitSetting'][$uiLabel]['value']['en'] = 'digital objects';
+    }
+    $uiLabel = $this->getRowKey('QubitSetting', 'value', array('en' => 'media 
type'));
+    if ($uiLabel)
+    {
+      $this->data['QubitSetting'][$uiLabel]['value']['en'] = 'media types';
+    }
+    $uiLabel = $this->getRowKey('QubitSetting', 'value', array('en' => 
'material type'));
+    if ($uiLabel)
+    {
+      $this->data['QubitSetting'][$uiLabel]['value']['en'] = 'material types';
+    }
+    // Pluralize English UI Labels for ICA-AtoM variations
+    $uiLabel = $this->getRowKey('QubitSetting', 'value', array('en' => 
'archival description'));
+    if ($uiLabel)
+    {
+      $this->data['QubitSetting'][$uiLabel]['value']['en'] = 'archival 
descriptions';
+    }
+    $uiLabel = $this->getRowKey('QubitSetting', 'value', array('en' => 
'authority record'));
+    if ($uiLabel)
+    {
+      $this->data['QubitSetting'][$uiLabel]['value']['en'] = 'authority 
records';
+    }
+    $uiLabel = $this->getRowKey('QubitSetting', 'value', array('en' => 
'archival institution'));
+    if ($uiLabel)
+    {
+      $this->data['QubitSetting'][$uiLabel]['value']['en'] = 'archival 
institutions';
+    }
+    // Pluralize English UI Labels for DCB variations
+    $uiLabel = $this->getRowKey('QubitSetting', 'value', array('en' => 
'resource'));
+    if ($uiLabel)
+    {
+      $this->data['QubitSetting'][$uiLabel]['value']['en'] = 'resources';
+    }
+    $uiLabel = $this->getRowKey('QubitSetting', 'value', array('en' => 
'organization'));
+    if ($uiLabel)
+    {
+      $this->data['QubitSetting'][$uiLabel]['value']['en'] = 'organizations';
+    }
+
     return $this;
   }
 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to