DAOs with singular/plural options for entity titles
authorAndrew Hunt <andrew@aghstrategies.com>
Fri, 11 Sep 2020 20:46:17 +0000 (16:46 -0400)
committerColeman Watts <coleman@civicrm.org>
Sun, 13 Sep 2020 17:24:26 +0000 (13:24 -0400)
161 files changed:
CRM/ACL/DAO/ACL.php
CRM/ACL/DAO/ACLCache.php
CRM/ACL/DAO/EntityRole.php
CRM/Activity/DAO/Activity.php
CRM/Activity/DAO/ActivityContact.php
CRM/Batch/DAO/Batch.php
CRM/Batch/DAO/EntityBatch.php
CRM/Campaign/DAO/Campaign.php
CRM/Campaign/DAO/CampaignGroup.php
CRM/Campaign/DAO/Survey.php
CRM/Case/DAO/Case.php
CRM/Case/DAO/CaseActivity.php
CRM/Case/DAO/CaseContact.php
CRM/Case/DAO/CaseType.php
CRM/Contact/DAO/ACLContactCache.php
CRM/Contact/DAO/Contact.php
CRM/Contact/DAO/ContactType.php
CRM/Contact/DAO/DashboardContact.php
CRM/Contact/DAO/Group.php
CRM/Contact/DAO/GroupContact.php
CRM/Contact/DAO/GroupContactCache.php
CRM/Contact/DAO/GroupNesting.php
CRM/Contact/DAO/GroupOrganization.php
CRM/Contact/DAO/Relationship.php
CRM/Contact/DAO/RelationshipCache.php
CRM/Contact/DAO/RelationshipType.php
CRM/Contact/DAO/SavedSearch.php
CRM/Contact/DAO/SubscriptionHistory.php
CRM/Contribute/DAO/Contribution.php
CRM/Contribute/DAO/ContributionPage.php
CRM/Contribute/DAO/ContributionProduct.php
CRM/Contribute/DAO/ContributionRecur.php
CRM/Contribute/DAO/ContributionSoft.php
CRM/Contribute/DAO/Premium.php
CRM/Contribute/DAO/PremiumsProduct.php
CRM/Contribute/DAO/Product.php
CRM/Contribute/DAO/Widget.php
CRM/Core/CodeGen/Specification.php
CRM/Core/DAO.php
CRM/Core/DAO/ActionLog.php
CRM/Core/DAO/ActionMapping.php
CRM/Core/DAO/ActionSchedule.php
CRM/Core/DAO/Address.php
CRM/Core/DAO/AddressFormat.php
CRM/Core/DAO/Cache.php
CRM/Core/DAO/Component.php
CRM/Core/DAO/Country.php
CRM/Core/DAO/County.php
CRM/Core/DAO/CustomField.php
CRM/Core/DAO/CustomGroup.php
CRM/Core/DAO/Dashboard.php
CRM/Core/DAO/Discount.php
CRM/Core/DAO/Domain.php
CRM/Core/DAO/Email.php
CRM/Core/DAO/EntityFile.php
CRM/Core/DAO/EntityTag.php
CRM/Core/DAO/Extension.php
CRM/Core/DAO/File.php
CRM/Core/DAO/IM.php
CRM/Core/DAO/Job.php
CRM/Core/DAO/JobLog.php
CRM/Core/DAO/LocBlock.php
CRM/Core/DAO/LocationType.php
CRM/Core/DAO/Log.php
CRM/Core/DAO/MailSettings.php
CRM/Core/DAO/Managed.php
CRM/Core/DAO/Mapping.php
CRM/Core/DAO/MappingField.php
CRM/Core/DAO/Menu.php
CRM/Core/DAO/MessageTemplate.php
CRM/Core/DAO/Navigation.php
CRM/Core/DAO/Note.php
CRM/Core/DAO/OpenID.php
CRM/Core/DAO/OptionGroup.php
CRM/Core/DAO/OptionValue.php
CRM/Core/DAO/Phone.php
CRM/Core/DAO/PreferencesDate.php
CRM/Core/DAO/PrevNextCache.php
CRM/Core/DAO/PrintLabel.php
CRM/Core/DAO/RecurringEntity.php
CRM/Core/DAO/Setting.php
CRM/Core/DAO/StateProvince.php
CRM/Core/DAO/StatusPreference.php
CRM/Core/DAO/SystemLog.php
CRM/Core/DAO/Tag.php
CRM/Core/DAO/Timezone.php
CRM/Core/DAO/UFField.php
CRM/Core/DAO/UFGroup.php
CRM/Core/DAO/UFJoin.php
CRM/Core/DAO/UFMatch.php
CRM/Core/DAO/Website.php
CRM/Core/DAO/WordReplacement.php
CRM/Core/DAO/Worldregion.php
CRM/Cxn/DAO/Cxn.php
CRM/Dedupe/DAO/Exception.php
CRM/Dedupe/DAO/Rule.php
CRM/Dedupe/DAO/RuleGroup.php
CRM/Event/Cart/DAO/Cart.php
CRM/Event/Cart/DAO/EventInCart.php
CRM/Event/DAO/Event.php
CRM/Event/DAO/Participant.php
CRM/Event/DAO/ParticipantPayment.php
CRM/Event/DAO/ParticipantStatusType.php
CRM/Export/Controller/Standalone.php
CRM/Financial/DAO/Currency.php
CRM/Financial/DAO/EntityFinancialAccount.php
CRM/Financial/DAO/EntityFinancialTrxn.php
CRM/Financial/DAO/FinancialAccount.php
CRM/Financial/DAO/FinancialItem.php
CRM/Financial/DAO/FinancialTrxn.php
CRM/Financial/DAO/FinancialType.php
CRM/Financial/DAO/PaymentProcessor.php
CRM/Financial/DAO/PaymentProcessorType.php
CRM/Financial/DAO/PaymentToken.php
CRM/Friend/DAO/Friend.php
CRM/Grant/DAO/Grant.php
CRM/Mailing/DAO/BouncePattern.php
CRM/Mailing/DAO/BounceType.php
CRM/Mailing/DAO/Mailing.php
CRM/Mailing/DAO/MailingAB.php
CRM/Mailing/DAO/MailingComponent.php
CRM/Mailing/DAO/MailingGroup.php
CRM/Mailing/DAO/MailingJob.php
CRM/Mailing/DAO/Recipients.php
CRM/Mailing/DAO/Spool.php
CRM/Mailing/DAO/TrackableURL.php
CRM/Mailing/Event/DAO/Bounce.php
CRM/Mailing/Event/DAO/Confirm.php
CRM/Mailing/Event/DAO/Delivered.php
CRM/Mailing/Event/DAO/Forward.php
CRM/Mailing/Event/DAO/Opened.php
CRM/Mailing/Event/DAO/Queue.php
CRM/Mailing/Event/DAO/Reply.php
CRM/Mailing/Event/DAO/Subscribe.php
CRM/Mailing/Event/DAO/TrackableURLOpen.php
CRM/Mailing/Event/DAO/Unsubscribe.php
CRM/Member/DAO/Membership.php
CRM/Member/DAO/MembershipBlock.php
CRM/Member/DAO/MembershipLog.php
CRM/Member/DAO/MembershipPayment.php
CRM/Member/DAO/MembershipStatus.php
CRM/Member/DAO/MembershipType.php
CRM/PCP/DAO/PCP.php
CRM/PCP/DAO/PCPBlock.php
CRM/Pledge/DAO/Pledge.php
CRM/Pledge/DAO/PledgeBlock.php
CRM/Pledge/DAO/PledgePayment.php
CRM/Price/DAO/LineItem.php
CRM/Price/DAO/PriceField.php
CRM/Price/DAO/PriceFieldValue.php
CRM/Price/DAO/PriceSet.php
CRM/Price/DAO/PriceSetEntity.php
CRM/Queue/DAO/QueueItem.php
CRM/Report/DAO/ReportInstance.php
CRM/SMS/DAO/Provider.php
Civi/Api4/Generic/AbstractEntity.php
Civi/Api4/Generic/DAOEntity.php
xml/schema/Contribute/ContributionRecur.xml
xml/schema/Core/IM.xml
xml/schema/Report/ReportInstance.xml
xml/templates/dao.tpl

index fa06cf96c5e2b4d421217ddb1cbfeab5b34ef913..57934d13036c463ef673edd45d3988c27776f92a 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/ACL/ACL.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f75eaa0ee87675c14a224ec22b2c30a7)
+ * (GenCodeChecksum:54e8c75c28c9dd74192f60bbcf1605f6)
  */
 
 /**
@@ -117,9 +117,12 @@ class CRM_ACL_DAO_ACL extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('ACLs');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('ACLs') : ts('ACL');
   }
 
   /**
index 7e3ac8429f163e60b091c50dbd90983a661e5afc..671354acb38805bbb0cb575b6726b370bf8f629c 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/ACL/ACLCache.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cbf36d56ce734a5f7ceeb2071b68ebf8)
+ * (GenCodeChecksum:cec3d7c7aced95902840b72829550156)
  */
 
 /**
@@ -68,9 +68,12 @@ class CRM_ACL_DAO_ACLCache extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('ACLCaches');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('ACLCaches') : ts('ACLCache');
   }
 
   /**
index 9130d307ae4c3e1ea10b6bc2a382f48eb3525386..4e31bd8466f96b148a1edf85da78e58dae169b21 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/ACL/EntityRole.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:d985c951ef9a8872008576b41c1f2b9c)
+ * (GenCodeChecksum:c1087517beb5b266d4a1a0a1a342ced0)
  */
 
 /**
@@ -75,9 +75,12 @@ class CRM_ACL_DAO_EntityRole extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Entity Roles');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Entity Roles') : ts('Entity Role');
   }
 
   /**
index 03ad751cd6b738217b822db35492b5956a3b0996..26f50e0b5f652bb5d1e2df9557dfbf7b49e10ca8 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Activity/Activity.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cbcbcbb6720f015deae4097b01196c9a)
+ * (GenCodeChecksum:c1b4cc908c0220abf69f57d281eeda95)
  */
 
 /**
@@ -226,9 +226,12 @@ class CRM_Activity_DAO_Activity extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Activities');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Activities') : ts('Activity');
   }
 
   /**
index 61676f395b5f4f890305e51fdb8304fe70d48f02..fd6633a19111ab1c04130dc0898548582db81f0d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Activity/ActivityContact.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:777598f3625dfeaf37a81de282808c60)
+ * (GenCodeChecksum:60851972b9f03efb52350929e557c768)
  */
 
 /**
@@ -68,9 +68,12 @@ class CRM_Activity_DAO_ActivityContact extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Activity Contacts');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Activity Contacts') : ts('Activity Contact');
   }
 
   /**
index f2571b674f8361eb9a1e159e5e11bf42da969857..7e153f47861e85c1a057bcbe19d6b14669ee704f 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Batch/Batch.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8169fc2f338afc4a163214c0018030be)
+ * (GenCodeChecksum:29e187971d03eba3ce5e3848f2ea1a5b)
  */
 
 /**
@@ -157,9 +157,12 @@ class CRM_Batch_DAO_Batch extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Batches');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Batches') : ts('Batch');
   }
 
   /**
index 6c697fb37073e0571bf4f1ca832bb11e512157dd..f7e2fffb74bd1ec85a762ae43aef7f7d56cb41a0 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Batch/EntityBatch.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6b6bd1337d9011c2a262de0e62c1e8e1)
+ * (GenCodeChecksum:aaeb317f89d831d683f53e7c45e1b175)
  */
 
 /**
@@ -68,9 +68,12 @@ class CRM_Batch_DAO_EntityBatch extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Entity Batches');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Entity Batches') : ts('Entity Batch');
   }
 
   /**
index 742996a6bde2c84ddbd4e249d59b731576110a99..8dc0245910ea1a95712955f831fe5589ae63c872 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Campaign/Campaign.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cfa77579eb9b91b31b6c5618b52c6e87)
+ * (GenCodeChecksum:a5a49e13e66a5d32b690835a49baf535)
  */
 
 /**
@@ -166,9 +166,12 @@ class CRM_Campaign_DAO_Campaign extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Campaigns');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Campaigns') : ts('Campaign');
   }
 
   /**
index 97d4abd5af1839b7b5a9c66f77eee82ca61cb31f..581ab4e5052b63ef51e26b6c5a174aa20f9c4426 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Campaign/CampaignGroup.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:74c02a4708ef706860d023c1635b98c4)
+ * (GenCodeChecksum:55b3974bbc1aa8405d11a5c396401fa9)
  */
 
 /**
@@ -75,9 +75,12 @@ class CRM_Campaign_DAO_CampaignGroup extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Campaign Groups');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Campaign Groups') : ts('Campaign Group');
   }
 
   /**
index 9c9626b6be8c714478feddfedc7d36e85ca458f4..b6bc1912606154e485b0284fdeb6ba3a0aed247f 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Campaign/Survey.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e955546c8081852591bc08b1fdee4213)
+ * (GenCodeChecksum:afb7cfcccd2a6177b2b10e07afa92e8e)
  */
 
 /**
@@ -187,9 +187,12 @@ class CRM_Campaign_DAO_Survey extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Surveys');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Surveys') : ts('Survey');
   }
 
   /**
index 946c992f4b6a509042b4d72c8d0387ff82a23fc4..ebf2311f678e44bed07fd27d4018da5296ab802f 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Case/Case.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8b18140da75bbf971a143c205f2af1cd)
+ * (GenCodeChecksum:bae905b3b253acc0df005cc66dd9b717)
  */
 
 /**
@@ -115,9 +115,12 @@ class CRM_Case_DAO_Case extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Cases');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Cases') : ts('Case');
   }
 
   /**
index 9efe7b4af3e553cc554516347cdc9e0899f848ad..e0d65cb58b8db0babaca907f15b45514ce956dd3 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Case/CaseActivity.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:974d18e84d3416c98293bedd66c3384c)
+ * (GenCodeChecksum:565c78ce07c94d858e5e6e400c4d1ad6)
  */
 
 /**
@@ -61,9 +61,12 @@ class CRM_Case_DAO_CaseActivity extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Case Activities');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Case Activities') : ts('Case Activity');
   }
 
   /**
index 788b1e58f94810e78b6e6978c1b21fff9b038adc..d5b524ae02b442c984ffd903f6c89bd9af469063 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Case/CaseContact.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b315f42d7c886c123c9e87c9713c4911)
+ * (GenCodeChecksum:57c93b00e00d0a48d5071d5a991289ab)
  */
 
 /**
@@ -61,9 +61,12 @@ class CRM_Case_DAO_CaseContact extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Case Contacts');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Case Contacts') : ts('Case Contact');
   }
 
   /**
index dbafcb30a8dbcafeaa5a72f5ee7ceddbcba93f0b..246edc51fd667e459cfe4f9d5c6ecd87a904ec27 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Case/CaseType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cde81a56b0e8201eac521b92ded6fb45)
+ * (GenCodeChecksum:52f839e38c020cd422ef99dff4ab5f1b)
  */
 
 /**
@@ -96,9 +96,12 @@ class CRM_Case_DAO_CaseType extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Case Types');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Case Types') : ts('Case Type');
   }
 
   /**
index 6b319f9636ce77e248b306c203b4f9451a161a5a..d5383fbc1d581d5c93c7ce630c57fb168d40ebe3 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/ACLContactCache.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:97d9be5e13ece64b6c9ad1722d9bca68)
+ * (GenCodeChecksum:ff86d1eed99d09ea6768d93b3cc39973)
  */
 
 /**
@@ -68,9 +68,12 @@ class CRM_Contact_DAO_ACLContactCache extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('ACLContact Caches');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('ACLContact Caches') : ts('ACLContact Cache');
   }
 
   /**
index f91dc3264b1e5e35928815f8b2b63d80434c65c3..c585b127039b72171f6e390c44967ce5a1900020 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/Contact.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f58884560d4f49764182cd97f1bbbcdf)
+ * (GenCodeChecksum:f118596cceae71668861504b7316afa7)
  */
 
 /**
@@ -397,9 +397,12 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Contacts');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Contacts') : ts('Contact');
   }
 
   /**
index 41d8b878036906d1e0e34153eaefbde39dfc34a6..4f7f63f5a3edafac9df7b9b1959fc2b7a4f7a5b2 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/ContactType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0f7546e10f09f7637d50f7a34c632cb5)
+ * (GenCodeChecksum:9719ec84435a76decf1937f7a389ac7f)
  */
 
 /**
@@ -96,9 +96,12 @@ class CRM_Contact_DAO_ContactType extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Contact Types');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Contact Types') : ts('Contact Type');
   }
 
   /**
index 16c0b3b593796c93f952a45700125efe91740eaa..f8f4e87daa3c7c5f3a2888acf4f42f2ab4289337 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/DashboardContact.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:67153c09e74eda2febf15986f9c04439)
+ * (GenCodeChecksum:ef3a393d20b6654dcef952f21df8072d)
  */
 
 /**
@@ -80,9 +80,12 @@ class CRM_Contact_DAO_DashboardContact extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Dashboard Contacts');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Dashboard Contacts') : ts('Dashboard Contact');
   }
 
   /**
index cdae401986356649bb6561599060cea33203d5e1..81f335ad602227ce9750b44d827008e2ad1d9db1 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/Group.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6a2a222c5fa5b461727bb95379723b08)
+ * (GenCodeChecksum:9d3fc8fbc20e3b8068d5989828341c66)
  */
 
 /**
@@ -185,9 +185,12 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Groups');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Groups') : ts('Group');
   }
 
   /**
index 52c66fd638c930609b4d353de13d309c20b7612d..3cee7b7e07901cbf628d86f250a659b400e7d232 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/GroupContact.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:143ba4d95cae73fc81c8e932970cbc1f)
+ * (GenCodeChecksum:69e994c5047ecf8d68700c694047720f)
  */
 
 /**
@@ -82,9 +82,12 @@ class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Group Contacts');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Group Contacts') : ts('Group Contact');
   }
 
   /**
index 3ee02aa7e2097f2ab0801e4452706d194b555b11..e4310747a9dbb84608b5dd80fd15343d95b1af6b 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/GroupContactCache.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a169b776ec9bfc8864a05750d4ae6b95)
+ * (GenCodeChecksum:424f49d5c972e05144c327cf7ba0992c)
  */
 
 /**
@@ -61,9 +61,12 @@ class CRM_Contact_DAO_GroupContactCache extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Group Contact Caches');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Group Contact Caches') : ts('Group Contact Cache');
   }
 
   /**
index 90624a6e98fdb749120d4626376b6d438ead8716..6262c1f5a44fb0bc50a2d9d4e7c3987db5c3881f 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/GroupNesting.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0ca7da77b0229b439c9c3a4c4c2e4326)
+ * (GenCodeChecksum:396dffdb22106c85cc4832b61307c264)
  */
 
 /**
@@ -61,9 +61,12 @@ class CRM_Contact_DAO_GroupNesting extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Group Nestings');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Group Nestings') : ts('Group Nesting');
   }
 
   /**
index 407ea31d83f505e3f82cbe9c0c2f7fa273f8c6bd..0553dff9ec648657c078cbfafa26c47b8d7c6c8d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/GroupOrganization.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:dfe8edf8f786790af95f09f456d1cbe7)
+ * (GenCodeChecksum:0ae83aef7dbfb877f46a92f27001dd6b)
  */
 
 /**
@@ -61,9 +61,12 @@ class CRM_Contact_DAO_GroupOrganization extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Group Organizations');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Group Organizations') : ts('Group Organization');
   }
 
   /**
index 14b10a52802e77892254edd2063d4583955aaac6..8ad5e40702fd2e64cd43e439993f009502053f01 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/Relationship.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:25faea8225f483ae95cf29af08a8542d)
+ * (GenCodeChecksum:7fed0ad7c2ed2b072582b55afdb6469f)
  */
 
 /**
@@ -124,9 +124,12 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Relationships');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Relationships') : ts('Relationship');
   }
 
   /**
index cfa5a75bc2e0ec936dd9198202d1190c36cef8e6..1e874cb2bd9ac70fbfc822e3db29c9f40f6151f4 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/RelationshipCache.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b40781c15c3351a766a6083522f0e5e4)
+ * (GenCodeChecksum:6de8ba08019ff8821fd4e09f14db6da9)
  */
 
 /**
@@ -124,9 +124,12 @@ class CRM_Contact_DAO_RelationshipCache extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Relationship Caches');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Relationship Caches') : ts('Relationship Cache');
   }
 
   /**
index e703e2fe849b78e5065561a73fa2e65504b74f88..3ac981c81f84193346c2d7af75dc0109e51f72f6 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/RelationshipType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6e9767fcd0fc6eba8fcd408588fe0755)
+ * (GenCodeChecksum:258f862b2238ae69432d8955ae8df803)
  */
 
 /**
@@ -124,9 +124,12 @@ class CRM_Contact_DAO_RelationshipType extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Relationship Types');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Relationship Types') : ts('Relationship Type');
   }
 
   /**
index a5fb2d460375d06c57bd1bcc742f8c05b9643cc4..c532997a2a3db7381442cdf6be1468f12e9e57c2 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/SavedSearch.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4b2f292a8196a5dc4a73afc078cd11cb)
+ * (GenCodeChecksum:d863f8b0b8659633bc84578e1d6cbf10)
  */
 
 /**
@@ -82,9 +82,12 @@ class CRM_Contact_DAO_SavedSearch extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Saved Searches');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Saved Searches') : ts('Saved Search');
   }
 
   /**
index 421ea3381555f30664b05db8bf3b608b8874a1f4..cbdab5b5352aab6f512747a777cf19da901f1fb0 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/SubscriptionHistory.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7c033b0631f14da30172883b14686574)
+ * (GenCodeChecksum:c38d68dcab2d037fc65d4e59bd30d1d4)
  */
 
 /**
@@ -89,9 +89,12 @@ class CRM_Contact_DAO_SubscriptionHistory extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Subscription Histories');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Subscription Histories') : ts('Subscription History');
   }
 
   /**
index 45f51b756cad855b0a4ae6c45d1bda1a92c7925e..174e9bf69591ed243117ec5f61e0137dac46330c 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/Contribution.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cc3bcdbce84066823084f71e30f6990b)
+ * (GenCodeChecksum:d937ea0497be1a1aeb1bac09986dd802)
  */
 
 /**
@@ -252,9 +252,12 @@ class CRM_Contribute_DAO_Contribution extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Contributions');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Contributions') : ts('Contribution');
   }
 
   /**
index 80ec08d3acf67e474c303f50f213a8665539c268..be85752fb787330ae99639d90580752ed572abab 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/ContributionPage.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:902bfa164280b9ba21a7cb5a38aceba8)
+ * (GenCodeChecksum:4910b973830834fcb2ce5bb3637070d6)
  */
 
 /**
@@ -362,9 +362,12 @@ class CRM_Contribute_DAO_ContributionPage extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Contribution Pages');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Contribution Pages') : ts('Contribution Page');
   }
 
   /**
index e5a0f053702abd27b6be9e7f4abc20a0cd49b8e1..9837f2b8c084241ab20ccf933ebf5b3b041b6cb5 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/ContributionProduct.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4e76d9dc75f5bc1b1141645c8ee5e2e4)
+ * (GenCodeChecksum:a2a4170ca2004a1630e27ba83e5edff3)
  */
 
 /**
@@ -100,9 +100,12 @@ class CRM_Contribute_DAO_ContributionProduct extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Contribution Products');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Contribution Products') : ts('Contribution Product');
   }
 
   /**
index 2ccd7486d6c3dd11f3920b8dc1b7f48c6fe91d12..f61c447051453bfc5b03b7afe3669dc8eb1df2a1 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/ContributionRecur.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:decf43c002d0e4ded0fe5f2a2e2f7bd0)
+ * (GenCodeChecksum:ba5f7682a5f99b682f70cd45097feb56)
  */
 
 /**
@@ -239,9 +239,12 @@ class CRM_Contribute_DAO_ContributionRecur extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Recurring Contributions');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Recurring Contributions') : ts('Recurring Contribution');
   }
 
   /**
index 3a1a9b7af7609c05af4aa5179fc6cb8151f185bd..fa78630bad12eca067132a37ffb3e327aaa2b053 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/ContributionSoft.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:caa58722ef865c7342fdff08f24d86ee)
+ * (GenCodeChecksum:e37496d0b9938151e5bcf9e6dad23c0a)
  */
 
 /**
@@ -104,9 +104,12 @@ class CRM_Contribute_DAO_ContributionSoft extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Contribution Softs');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Contribution Softs') : ts('Contribution Soft');
   }
 
   /**
index 7e0020c134926741b9c068a8c73681af624ab722..ebbafd660e65a7351998d0e48a3a49e22ac85e80 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/Premium.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cd1826e777cea80450636ef175aaab7f)
+ * (GenCodeChecksum:b35b6fb4895df990a55d9015bb82a852)
  */
 
 /**
@@ -111,9 +111,12 @@ class CRM_Contribute_DAO_Premium extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Premiums');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Premiums') : ts('Premium');
   }
 
   /**
index b153adb274962e9a89de5b1789fe607092cdde9d..f99e9ddf30b8a99e1081d3df6bdcee9592ebc39b 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/PremiumsProduct.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4831cb4c7e0611db0f4312f6522d2c20)
+ * (GenCodeChecksum:84fea8d6a2a852495da5ed86232d42d1)
  */
 
 /**
@@ -73,9 +73,12 @@ class CRM_Contribute_DAO_PremiumsProduct extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Premiums Products');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Premiums Products') : ts('Premiums Product');
   }
 
   /**
index 8433e1820ad0ee4b6982f5b79413d5725ae82ddc..7b481641af4da90dbdba7d5257c73eef99aa14ae 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/Product.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:dea1c7db61776456a70f752fe9f93f06)
+ * (GenCodeChecksum:d6c90aacbe802ff244a6a4bbaecad4d3)
  */
 
 /**
@@ -170,9 +170,12 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Products');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Products') : ts('Product');
   }
 
   /**
index 5da47438da53eebf0e55504fd27d37a6cc5d7a05..a49f0a9471d9f9fd65e69c7061c225f412de0102 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/Widget.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e24eaf675b793969d408fbc0f847a9ed)
+ * (GenCodeChecksum:bb99920b9b2c2a8b7419ecd94dcbf577)
  */
 
 /**
@@ -141,9 +141,12 @@ class CRM_Contribute_DAO_Widget extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Widgets');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Widgets') : ts('Widget');
   }
 
   /**
index 4d2be52ad41a80a166a0a7e479ab6de497f6e767..6a96e0d7c2ab1b2596341dfaf101607ebaa71bd2 100644 (file)
@@ -204,13 +204,15 @@ class CRM_Core_CodeGen_Specification {
       }
     }
 
+    $titleFromClass = preg_replace('/([a-z])([A-Z])/', '$1 $2', $klass);
     $table = [
       'name' => $name,
       'base' => $daoPath,
       'sourceFile' => $sourceFile,
       'fileName' => $klass . '.php',
       'objectName' => $klass,
-      'title' => $tableXML->title ?? self::nameToTitle($klass),
+      'title' => $tableXML->title ?? $titleFromClass,
+      'titlePlural' => $tableXML->titlePlural ?? CRM_Utils_String::pluralize($tableXML->title ?? $titleFromClass),
       'icon' => $tableXML->icon ?? NULL,
       'add' => $tableXML->add ?? NULL,
       'labelName' => substr($name, 8),
@@ -746,15 +748,4 @@ class CRM_Core_CodeGen_Specification {
     return 'CRM_Utils_Type::HUGE';
   }
 
-  /**
-   * Converts an entity name to a user friendly string.
-   *
-   * @param string $name
-   * return string
-   */
-  public static function nameToTitle(string $name) {
-    $name = preg_replace('/([a-z])([A-Z])/', '$1 $2', $name);
-    return CRM_Utils_String::pluralize($name);
-  }
-
 }
index d62fba1401e7961d9af93590f7527de490ca577d..ee3cfaeebb6df27601801251f5e58efc5ba7575d 100644 (file)
@@ -121,11 +121,12 @@ class CRM_Core_DAO extends DB_DataObject {
 
   /**
    * Returns localized title of this entity.
+   *
    * @return string
    */
   public static function getEntityTitle() {
     $className = static::class;
-    Civi::log()->warning("$className needs to be regeneraged. Missing getEntityTitle method.", ['civi.tag' => 'deprecated']);
+    Civi::log()->warning("$className needs to be regenerated. Missing getEntityTitle method.", ['civi.tag' => 'deprecated']);
     return CRM_Core_DAO_AllCoreTables::getBriefName($className);
   }
 
index f725a2558a186451449ae1ba0461a6e334d51646..8eb9523e50a5e53c62aef17caf8dec10ff6d3048 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/ActionLog.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:2ccef6f7cc6a43d833301e93a2a0d61f)
+ * (GenCodeChecksum:a449765feaf80c56214be9fce2f118b4)
  */
 
 /**
@@ -108,9 +108,12 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Action Logs');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Action Logs') : ts('Action Log');
   }
 
   /**
index 8a61ce5bbc492cc9bfe0792b2e3fd10d088a0ef9..3224bc1269fafbd9c04ac024563c7af82e99fb1a 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/ActionMapping.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:037a3f26719a4774957814f28c499e60)
+ * (GenCodeChecksum:7db8e13984f33629f584a8a54c37fd4a)
  */
 
 /**
@@ -101,9 +101,12 @@ class CRM_Core_DAO_ActionMapping extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Action Mappings');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Action Mappings') : ts('Action Mapping');
   }
 
   /**
index 666f773ba859b2c7226dc70327bbfe912dfb8dd1..181a1bdee5068f92442792866ea12f7db881abaa 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/ActionSchedule.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:d05639de89f460efbb3474dcaf5acd27)
+ * (GenCodeChecksum:77bfa18590c85ad7b6430c018acd508c)
  */
 
 /**
@@ -300,9 +300,12 @@ class CRM_Core_DAO_ActionSchedule extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Action Schedules');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Action Schedules') : ts('Action Schedule');
   }
 
   /**
index 7151847db2f9c41fe4745643fc994f2bf2180648..257de9924f398f2ca97b359d5d610a626b28d447 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Address.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a6b8f21dd3839de1ce1273e0910f0c8c)
+ * (GenCodeChecksum:01b95dc4df972f40d718b61c77cd3b58)
  */
 
 /**
@@ -250,9 +250,12 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Addresses');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Addresses') : ts('Address');
   }
 
   /**
index 762b90b6a177136e61d4353dd7e0fb57a35f0251..d1c1d088427b811ca49e9facd74197e1453c217e 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/AddressFormat.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:1ce11647576d05acfc364969eddfcce4)
+ * (GenCodeChecksum:7cc2864a78be48031ca829de49afeef6)
  */
 
 /**
@@ -54,9 +54,12 @@ class CRM_Core_DAO_AddressFormat extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Address Formats');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Address Formats') : ts('Address Format');
   }
 
   /**
index 01bc33ea91c53c34348d14bf780e11976cf54ed2..f8366cb2d037f34c0b72202d0bc182702d34c16c 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Cache.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:af1401f844c699c6ad35366a32a8db03)
+ * (GenCodeChecksum:bafe6ce2f7fd94b2581bfc4dad813130)
  */
 
 /**
@@ -89,9 +89,12 @@ class CRM_Core_DAO_Cache extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Caches');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Caches') : ts('Cache');
   }
 
   /**
index f9b7b077f9ad6a15942caa88643cf4fe129c9962..f1d560b656b6518ab3f2d9a14b452e4935df106f 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Component.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6c3fd2c8e875746c0ceffa499624f77c)
+ * (GenCodeChecksum:a5136517000cfab182cdacc3130bc29c)
  */
 
 /**
@@ -61,9 +61,12 @@ class CRM_Core_DAO_Component extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Components');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Components') : ts('Component');
   }
 
   /**
index 24d458b99cef0c31da41f71899cfa516e5b50612..b91e0062fb23137743f151c95de8058a4d2fd854 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Country.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cdd80b394924586274cf4b91183d3637)
+ * (GenCodeChecksum:2215bb79c9fe62c60700f232598a9462)
  */
 
 /**
@@ -103,9 +103,12 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Countries');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Countries') : ts('Country');
   }
 
   /**
index 97d2fae58ea13c74485b2ab7c3547072d5095648..9b05e4bee6ccfee332df35512c689e35f7f88d90 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/County.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:96f94dbbafff9a4e1f0ff276799fcbbd)
+ * (GenCodeChecksum:5620d2136c764c786eef1c15853eaf9b)
  */
 
 /**
@@ -68,9 +68,12 @@ class CRM_Core_DAO_County extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Counties');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Counties') : ts('County');
   }
 
   /**
index 5edafdf5c6e1338110d09d5f64c89c4897fc1c65..a453096360b9319df1479f9d88a298c149fd3b10 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/CustomField.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b74179ea5553c544931562d6aac5641e)
+ * (GenCodeChecksum:3a8f6978ec00d7e2cff93f2915ac1f48)
  */
 
 /**
@@ -257,9 +257,12 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Custom Fields');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Custom Fields') : ts('Custom Field');
   }
 
   /**
index 12dd47769ebcc12105696d1b50de33d0fe7be493..8be9d28b24265a1a6d236f771c9df16660c9fe7d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/CustomGroup.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:494d883be861157d8067e6a6c50c23f6)
+ * (GenCodeChecksum:3436e2a4cf99bd9b7c859170db37bce3)
  */
 
 /**
@@ -194,9 +194,12 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Custom Groups');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Custom Groups') : ts('Custom Group');
   }
 
   /**
index a9d40d32437c04f176e4a46787d24f6a608e69b0..57773da9dfce5e44c15ed857e720277c772ca9cd 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Dashboard.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:2d134bfa6938d2e8a8d8e25e99769823)
+ * (GenCodeChecksum:262213759ac6f4c9943f4ebd454256ae)
  */
 
 /**
@@ -115,9 +115,12 @@ class CRM_Core_DAO_Dashboard extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Dashboards');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Dashboards') : ts('Dashboard');
   }
 
   /**
index ed2f53e1e1d5e9cdb48909c5ac9af7c5bb5ab8fb..a18cacfb6003801a2352c9d1167a1b9735127477 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Discount.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a23716379d3cccf678a9d8e423690e7c)
+ * (GenCodeChecksum:5fbe08bc556f5b913860a55c6d0cedc4)
  */
 
 /**
@@ -82,9 +82,12 @@ class CRM_Core_DAO_Discount extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Discounts');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Discounts') : ts('Discount');
   }
 
   /**
index 82ccf0f5a8f9508bb40d0e62b2f2800406f9bd04..ce6b480508f95181ed2eb591b66a0f58ae43b32f 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Domain.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:57a526de0b2bc02fed832a22dc50ad80)
+ * (GenCodeChecksum:99a50c29878792b8864e20d184ce9bbb)
  */
 
 /**
@@ -89,9 +89,12 @@ class CRM_Core_DAO_Domain extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Domains');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Domains') : ts('Domain');
   }
 
   /**
index 7c0a55b812bdbb031ec7904f0752eb9a81ee3a94..4f890d5cf0b0edbb1f5d8d64ff65feb991943521 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Email.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:866b627595adac9091080a4e4ab146bc)
+ * (GenCodeChecksum:2736b767bcd747315f0382f4e298ad35)
  */
 
 /**
@@ -131,9 +131,12 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Emails');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Emails') : ts('Email');
   }
 
   /**
index 0d32257d1e18d5c8f5d46a905147ac65011fbcef..e405a0d0d6a6c08a25ebd721661ab4402ea45317 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/EntityFile.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f2d4dfec2466ad664b4949983b1c7e58)
+ * (GenCodeChecksum:70221552c8c9532b2aaf9cd89e73a68d)
  */
 
 /**
@@ -68,9 +68,12 @@ class CRM_Core_DAO_EntityFile extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Entity Files');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Entity Files') : ts('Entity File');
   }
 
   /**
index eb2be19b6666f88d5de59b2b0aac0e7f3266d1af..6db35b547c235a5fc360199ba3d14621d8b39fad 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/EntityTag.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:58f15f695b38fa4cacfdf82d2734e0f0)
+ * (GenCodeChecksum:82e27d87178a408cd0a1c201f3501dd2)
  */
 
 /**
@@ -68,9 +68,12 @@ class CRM_Core_DAO_EntityTag extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Entity Tags');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Entity Tags') : ts('Entity Tag');
   }
 
   /**
index c666e3ab0222b5338cbb22a59f118ae5cd61c424..b1fc0de3f60ff8ad9e2c495b906ba742ada64f55 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Extension.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:08d2151b75e68f334bd88475b58fab7b)
+ * (GenCodeChecksum:46f6ff725b1ad9909d2340d728438d36)
  */
 
 /**
@@ -94,9 +94,12 @@ class CRM_Core_DAO_Extension extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Extensions');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Extensions') : ts('Extension');
   }
 
   /**
index dc6508d4a6e48fe001f6e36370e7970094a18448..620734811c1e8ccfa813bd02d5b3208889d56179 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/File.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:aa0883a815a43dd250612348f3ec470e)
+ * (GenCodeChecksum:dd8a70727f67481339dd514fdca6aae5)
  */
 
 /**
@@ -96,9 +96,12 @@ class CRM_Core_DAO_File extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Files');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Files') : ts('File');
   }
 
   /**
index 958b4dda190c5e123d76685c1d6ad163c543240d..fdc40df188c436c77bb38be31d33594cdccb347c 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/IM.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:da6b080a31b208a71635d272fabab7ec)
+ * (GenCodeChecksum:f64b9a15f4a240d7a137cb5655feb696)
  */
 
 /**
@@ -96,9 +96,12 @@ class CRM_Core_DAO_IM extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Instant Messaging');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Instant Messaging') : ts('Instant Messaging');
   }
 
   /**
index ebdb62818e4e9a77330b8a13efeb1ddf57d0fc03..cbc870082e443b171089aa37bf8a164d4ba4e3bb 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Job.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6e3a5de515fda550b1b5aeb493c50f0b)
+ * (GenCodeChecksum:bbc36abe96310ec5cf23d46d2d1728cb)
  */
 
 /**
@@ -117,9 +117,12 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Jobs');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Jobs') : ts('Job');
   }
 
   /**
index b59a98b1f5b2c5f509febbd870024fe0bc57c72c..51db9714637f98acc8acdad9cf99874c179e97c0 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/JobLog.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:eca8e7af1026dbfaf7beecb95ce02361)
+ * (GenCodeChecksum:74e191eba977eb496bae109ca9720ab7)
  */
 
 /**
@@ -96,9 +96,12 @@ class CRM_Core_DAO_JobLog extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Job Logs');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Job Logs') : ts('Job Log');
   }
 
   /**
index 154a2e776c611457313b7891800c34bfe2a1d868..2eca88b4b625f4792d70a00d5c5fe4be673bd4de 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/LocBlock.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8459c5a6d25e5c70e44de49b109a82fa)
+ * (GenCodeChecksum:801a2e7e05f688cf38882b466f22a292)
  */
 
 /**
@@ -87,9 +87,12 @@ class CRM_Core_DAO_LocBlock extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Loc Blocks');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Loc Blocks') : ts('Loc Block');
   }
 
   /**
index 70648f67db31fbe838d863c08ef0e13b3fa679a5..3427ba89b38bb95514a8ce766a215f2e00ccda2d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/LocationType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:325ccb933339bc909efc7d6b60c7186b)
+ * (GenCodeChecksum:450719aeeb146b60007152d03e0b6faf)
  */
 
 /**
@@ -96,9 +96,12 @@ class CRM_Core_DAO_LocationType extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Location Types');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Location Types') : ts('Location Type');
   }
 
   /**
index 182d42f5d40e5979f3dd592939d85079a18213b4..b550b04515c63e1bfe89c4cd0b668f650e5c648a 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Log.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:5dfdb2863ba1bc7b84288a522cdaef51)
+ * (GenCodeChecksum:3b97d17eeaa407d9f7f7aa6e1d819090)
  */
 
 /**
@@ -82,9 +82,12 @@ class CRM_Core_DAO_Log extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Logs');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Logs') : ts('Log');
   }
 
   /**
index acc8278c190423109dc960345d58cb4c9e33bb72..6c3c02f70d600161fd538b109aa2abdab671b13f 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/MailSettings.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b43716d8c8e362738d8d3420e8fbe03d)
+ * (GenCodeChecksum:310f3c60fe656e8ef27a67234d6fa80c)
  */
 
 /**
@@ -145,9 +145,12 @@ class CRM_Core_DAO_MailSettings extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Mail Settingses');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Mail Settingses') : ts('Mail Settings');
   }
 
   /**
index 212817ec7860199c70106ef5e58520302f432bee..a67271247cbef168e0a44f7beaf5caa294978c0d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Managed.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e6146e35f8c8321e600a4198cbd6949e)
+ * (GenCodeChecksum:119de7e386aa83b1ca5038a1e409aafe)
  */
 
 /**
@@ -82,9 +82,12 @@ class CRM_Core_DAO_Managed extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Manageds');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Manageds') : ts('Managed');
   }
 
   /**
index 59505d1d5fb0ade1c846554322ecd57b50f377ef..3c7639a857d5406dc87307fc825cdaee263d6481 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Mapping.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:c97b13ea2aaccdf8ba13b6552ccb59f2)
+ * (GenCodeChecksum:49336d40a24f0312944123741932dd25)
  */
 
 /**
@@ -68,9 +68,12 @@ class CRM_Core_DAO_Mapping extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Mappings');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Mappings') : ts('Mapping');
   }
 
   /**
index cd5f06e741b4969d8f6c9194cf12c558d941f1be..bfe139eda99242d2bd45573ed7c37a4576908249 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/MappingField.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:3702a3c3cb9cd696eb829d15f4676439)
+ * (GenCodeChecksum:7197da108e5452be6ab8b419a1506aec)
  */
 
 /**
@@ -137,9 +137,12 @@ class CRM_Core_DAO_MappingField extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Mapping Fields');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Mapping Fields') : ts('Mapping Field');
   }
 
   /**
index 98f3f4ad1491e196def19bf19f93fab70a2fde00..3fb9a797c3e08ef5dd52c917e09ce7619849c529 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Menu.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8be7941b4dccb08266109e3e1599159f)
+ * (GenCodeChecksum:b94ecc10dafe21deb7e5067ef46f32af)
  */
 
 /**
@@ -190,9 +190,12 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Menus');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Menus') : ts('Menu');
   }
 
   /**
index 5c7965c83f83e91cc309268fa5289dbd8548c5e4..f3da47e578b71f353bd6e7a9102580e214cc90b3 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/MessageTemplate.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:68dd4ac3c9f098e3577dbed8d5a2a105)
+ * (GenCodeChecksum:6881b34cbbefc06722c58fe7f20b1c58)
  */
 
 /**
@@ -120,9 +120,12 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Message Templates');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Message Templates') : ts('Message Template');
   }
 
   /**
index b567777810a4405d38851f507252262671f64af7..ed52b19610f37387c71cb0a40755d9e27646fde2 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Navigation.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:34c3d3b834400b49f1b8c6c99a08c99e)
+ * (GenCodeChecksum:8cc5473f0cd98bf289dc455eefb0af76)
  */
 
 /**
@@ -122,9 +122,12 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Navigations');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Navigations') : ts('Navigation');
   }
 
   /**
index 748d1076f18eca09adf58db42d3dad389ec04900..3c730b47ee70318bbc80326a5f526e3d77ab7df3 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Note.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:86e72396a497a58c1568d0d081435e75)
+ * (GenCodeChecksum:75161cdedcd719f035387c9c1d0d83dd)
  */
 
 /**
@@ -103,9 +103,12 @@ class CRM_Core_DAO_Note extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Notes');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Notes') : ts('Note');
   }
 
   /**
index 1a61aba156032d6f376fec6bf0310a2e264e1f87..dfe13c489d5cd092ecd970b4a092ee431c35c721 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/OpenID.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4d60933113e2b5330dd8194e7ebe6ae4)
+ * (GenCodeChecksum:7af55174e40a30da959ad7734573eb9a)
  */
 
 /**
@@ -82,9 +82,12 @@ class CRM_Core_DAO_OpenID extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Open IDs');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Open IDs') : ts('Open ID');
   }
 
   /**
index 9feb9fd8f107cf13be5610f4976fe49de1929943..76ef9a0bcff1ae9d883c28c8d4f8ff8915b643fe 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/OptionGroup.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:d0011ad2bb6c090eeb86d25916c5624b)
+ * (GenCodeChecksum:e9bb68e874d377a0c30b433103d438d4)
  */
 
 /**
@@ -96,9 +96,12 @@ class CRM_Core_DAO_OptionGroup extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Option Groups');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Option Groups') : ts('Option Group');
   }
 
   /**
index 7f0c3644f208aa9db0ef521c0f066bb9de23a826..5fb8ddb4521fddd174fc84ec15adaab4ae52fad1 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/OptionValue.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e51b16ecfe5f8302c8610b7f5dfd55e5)
+ * (GenCodeChecksum:f47024ac081427ddadce4c569934f8a6)
  */
 
 /**
@@ -164,9 +164,12 @@ class CRM_Core_DAO_OptionValue extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Option Values');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Option Values') : ts('Option Value');
   }
 
   /**
index 9a6b668620a60c9d0e8d8bbbca940cc6a33e0016..5c0b7816a5c20027ce051e48fcb03df19373274e 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Phone.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:efdb60e03b54f246e73588b6eb99611d)
+ * (GenCodeChecksum:f77d3ef5985c8945730c2fe22bb3fa45)
  */
 
 /**
@@ -117,9 +117,12 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Phones');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Phones') : ts('Phone');
   }
 
   /**
index b1d08e7cd045d04aacab815891eba79b58b35701..78fa11538f443257dd6bd8a406d38536eb3e1a95 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/PreferencesDate.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:21383b05b8c8e98ed1721aab06031907)
+ * (GenCodeChecksum:d0de29e655d17a479ec8cfc762582c39)
  */
 
 /**
@@ -87,9 +87,12 @@ class CRM_Core_DAO_PreferencesDate extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Preferences Dates');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Preferences Dates') : ts('Preferences Date');
   }
 
   /**
index a39549db9e6c467e88ef7eefa66dd14b9feb57ef..258e3ef5c403f749302a6e7ebd01e2e93c55569c 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/PrevNextCache.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8086ffe55554b0fba698136fd6dee894)
+ * (GenCodeChecksum:325d605774498631dd0a2742963d1032)
  */
 
 /**
@@ -85,9 +85,12 @@ class CRM_Core_DAO_PrevNextCache extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Prev Next Caches');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Prev Next Caches') : ts('Prev Next Cache');
   }
 
   /**
index 129e80804da9c2a2c7a5bd52aaf16ec8bbf38b5b..97575a87dd917e372201c36a326dec6beb9a64e7 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/PrintLabel.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:484a16ebc1b881e7718bfcf139024ee7)
+ * (GenCodeChecksum:9612aababed43ba4eaacc71a727c5ed9)
  */
 
 /**
@@ -115,9 +115,12 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Print Labels');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Print Labels') : ts('Print Label');
   }
 
   /**
index d22aa96ac773d2b782c7236cbda2939ccd5c5516..1cffe8c273d422715e5a1d9759a6d2cf16e2fc7f 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/RecurringEntity.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b78474c715335f7689a9a5fcdcb5718e)
+ * (GenCodeChecksum:2667b60a5f917352d52964de09cf85fa)
  */
 
 /**
@@ -73,9 +73,12 @@ class CRM_Core_DAO_RecurringEntity extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Recurring Entities');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Recurring Entities') : ts('Recurring Entity');
   }
 
   /**
index 160f781cda0f36f080989606a55240bffd23260d..4fb42fd82a45f528f58a48a0a505baac834fc950 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Setting.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:c1fda2807e8265021ffaa490325a7e4f)
+ * (GenCodeChecksum:24ec63102452f5cdff8424b5caf8b679)
  */
 
 /**
@@ -101,9 +101,12 @@ class CRM_Core_DAO_Setting extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Settings');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Settings') : ts('Setting');
   }
 
   /**
index 80a91c2e1f15debe29d19e8be6370a09f7f877e2..7342cb6e69a63a82584f822351d569bdb52d82d1 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/StateProvince.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:2dced9a7a3e6be3d05ea7b7babe4b113)
+ * (GenCodeChecksum:ca396996ffd11fc0b89e34657679a9ad)
  */
 
 /**
@@ -68,9 +68,12 @@ class CRM_Core_DAO_StateProvince extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('State Provinces');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('State Provinces') : ts('State Province');
   }
 
   /**
index b06b206f24836be57396a808f7f8b63158e4d610..e5654e60147c83755916dd131d98d28869ee90c6 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/StatusPreference.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:1fa80acc24bcb14df3947cba2daa930f)
+ * (GenCodeChecksum:7c7deea1bd07dccee5a5bae0b1d6c4c7)
  */
 
 /**
@@ -96,9 +96,12 @@ class CRM_Core_DAO_StatusPreference extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Status Preferences');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Status Preferences') : ts('Status Preference');
   }
 
   /**
index c18ee55ebca7dd4faa51523d4b4a31c9d9d98781..d3cc2ec3588086931d1cf7df89b5379dace258ed 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/SystemLog.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:46d7f317ffb5d01d9cb22898ce38abb3)
+ * (GenCodeChecksum:3765c5a89ca1e9ff224fbd49e31a4037)
  */
 
 /**
@@ -89,9 +89,12 @@ class CRM_Core_DAO_SystemLog extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('System Logs');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('System Logs') : ts('System Log');
   }
 
   /**
index 65ae7a378b80abf5e8ce5bd8d2110b4f3b7853a2..15078e57da7ef54f27926895822cbe6d84a753ff 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Tag.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7a2eb010fd96445604104b6ada9c0b99)
+ * (GenCodeChecksum:8a5eeefa40273898a4e3661b1ef43b3d)
  */
 
 /**
@@ -118,9 +118,12 @@ class CRM_Core_DAO_Tag extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Tags');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Tags') : ts('Tag');
   }
 
   /**
index 5f9abdfc6c34bb51d37ece90343520cc7d1b4a0b..bae04f5e2d28660e5994b551742ff7d30d3dcd33 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Timezone.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:fb1089cb65c1587b1242b9d250c664f7)
+ * (GenCodeChecksum:b49b5541f20c732fc7ff4cdc3687899b)
  */
 
 /**
@@ -80,9 +80,12 @@ class CRM_Core_DAO_Timezone extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Timezones');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Timezones') : ts('Timezone');
   }
 
   /**
index a112e1c6f32f156dbe83f04b2d37f6eb8115be10..87cde6f32d88ddb55373560b733a986828099164 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/UFField.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e717ec384cfe13629b4fc440af2a99d5)
+ * (GenCodeChecksum:1cf845aa31eed1a29bffcd4404862f6a)
  */
 
 /**
@@ -173,9 +173,12 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('UFFields');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('UFFields') : ts('UFField');
   }
 
   /**
index ae79d22da8e8343abe11e7d94e866bbf7d690beb..89d25b997ee094e3df91abdcdc0e553c7825c7dd 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/UFGroup.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:1cac6e6b80a630f69ce25f709a20e4a3)
+ * (GenCodeChecksum:e33df676b4e3ae50e18f1c44e437e3ea)
  */
 
 /**
@@ -227,9 +227,12 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('UFGroups');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('UFGroups') : ts('UFGroup');
   }
 
   /**
index 98639423b142cbc65deae012b9a98c4eaec1e5e3..28f3f56340ba6631daf5229b475e2bff2b72e137 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/UFJoin.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:191143bced279d48cf34cdf6cf85a5fb)
+ * (GenCodeChecksum:4bcf2b3e5905f98d83d449b1226903da)
  */
 
 /**
@@ -96,9 +96,12 @@ class CRM_Core_DAO_UFJoin extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('UFJoins');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('UFJoins') : ts('UFJoin');
   }
 
   /**
index fa08f60b222fc97675444b17341dc41929e2df83..6a5d32b772a034288a6e2c90643ce2b2d92af980 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/UFMatch.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4fca2151c2ecbd762ac9e2f067f0030f)
+ * (GenCodeChecksum:613e38722266d0117e69f521e4f0d140)
  */
 
 /**
@@ -82,9 +82,12 @@ class CRM_Core_DAO_UFMatch extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('UFMatches');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('UFMatches') : ts('UFMatch');
   }
 
   /**
index e9415359c1143aced76d2b52b5caa65511a2b136..aed21d3676e19c2e9101703d554c004fc9408131 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Website.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:9e449b1f3a997b63c79066bd5cd782ae)
+ * (GenCodeChecksum:1d9c6cf4e3d809a3b3f5963ccb189e83)
  */
 
 /**
@@ -75,9 +75,12 @@ class CRM_Core_DAO_Website extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Websites');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Websites') : ts('Website');
   }
 
   /**
index 65ac087b554357b7f7e862727dc7047e9bd2a0d4..691291abcfc155cdfc5458e9ac887f3fe8d7edeb 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/WordReplacement.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f4afc331da543068dba6d243d98b8e39)
+ * (GenCodeChecksum:104090c38770547ffa491fccdf299765)
  */
 
 /**
@@ -80,9 +80,12 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Word Replacements');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Word Replacements') : ts('Word Replacement');
   }
 
   /**
index 1dd866013d6030c445f68c7d73acaeb18eb8dee8..0974aecff55c88c7ad993b18356964a8ec61d40a 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Worldregion.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0312ba4169a285839ec54d655ff5ceb3)
+ * (GenCodeChecksum:af9fba05839764ec479cc5fad738390a)
  */
 
 /**
@@ -54,9 +54,12 @@ class CRM_Core_DAO_Worldregion extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Worldregions');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Worldregions') : ts('Worldregion');
   }
 
   /**
index b0b70337bd8a60876f7eca1180c5177144df75cf..03e9fc8ef045c7b053f4fbd73366a53e4f7e9bc4 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Cxn/Cxn.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:059dd4994211085d728a9fc8b7d80803)
+ * (GenCodeChecksum:10e6547299a52750abd62b96dfacc9de)
  */
 
 /**
@@ -117,9 +117,12 @@ class CRM_Cxn_DAO_Cxn extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Cxns');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Cxns') : ts('Cxn');
   }
 
   /**
index cdbb87cc90c7b5ba3adc8a051224eec0f87b7fd3..ca488f4208b16aae42107b099a8b845097ab591a 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Dedupe/Exception.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f4bc21b42b1b5c9cfb0ffa7d3eb46e65)
+ * (GenCodeChecksum:95d83f44443d6ddfed8758214c46ff1b)
  */
 
 /**
@@ -61,9 +61,12 @@ class CRM_Dedupe_DAO_Exception extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Exceptions');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Exceptions') : ts('Exception');
   }
 
   /**
index dea3d38759d4c96ce5822ba452671fd266ea3c22..a09f6a7f4be5084f893f18ceb6b7f4f4cc93a04a 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Dedupe/Rule.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:56abeb7ada5e3dfde910bc5033ca047d)
+ * (GenCodeChecksum:1c0c64573702774a043ea32c73f05bd8)
  */
 
 /**
@@ -82,9 +82,12 @@ class CRM_Dedupe_DAO_Rule extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Rules');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Rules') : ts('Rule');
   }
 
   /**
index 366ff64246d5e3d0ca78a01709223e41db7305b4..62c6a4b2d01771b5c2adb047e77a9a4b157ca2a9 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Dedupe/RuleGroup.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:87a385df0b5bca8150117411f2c31a4a)
+ * (GenCodeChecksum:5fb31b058249567562ab0a30a739fda2)
  */
 
 /**
@@ -89,9 +89,12 @@ class CRM_Dedupe_DAO_RuleGroup extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Rule Groups');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Rule Groups') : ts('Rule Group');
   }
 
   /**
index 38da6b32272d210f3ee7c86576a908a48e075e56..bf8ece70d43a145dab456c6b65935244eb96688a 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Event/Cart/Cart.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b4aacbeb6deddb31e520ce700e774db5)
+ * (GenCodeChecksum:b7a4ad0bbb09a64b8afefd7a1a2d6a9b)
  */
 
 /**
@@ -59,9 +59,12 @@ class CRM_Event_Cart_DAO_Cart extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Carts');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Carts') : ts('Cart');
   }
 
   /**
index d1550cd54ad61d1c01258fd53aa70168817eebce..61f42ceb2254f03560b88ff74ae569a4793d8c69 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Event/Cart/EventInCart.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b1cb9524ae26740c93dda80d0cb4ff91)
+ * (GenCodeChecksum:ef07999cbb7872dc9c1cfa6a0055bee1)
  */
 
 /**
@@ -61,9 +61,12 @@ class CRM_Event_Cart_DAO_EventInCart extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Event In Carts');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Event In Carts') : ts('Event In Cart');
   }
 
   /**
index a7febe5bfe94e9be9e40fd3e911f899c97da69a5..553ddd7e1f39bc3fd4a9bcab1128a370b249b802 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Event/Event.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:82ba48cbb804cf6f4b26fa50f07d44db)
+ * (GenCodeChecksum:3514f838a27ddbf9bdf6e63ea20aabec)
  */
 
 /**
@@ -528,9 +528,12 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Events');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Events') : ts('Event');
   }
 
   /**
index 94db537c3abe12954e9d5cbbf37d1316e1530255..3d7a2fa49dbddf5142cb977955203fc6ea296768 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Event/Participant.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:bf8ed42264e81ccaef0ae236242990d0)
+ * (GenCodeChecksum:97d6a90c8b1f973347dc8decd97f84ee)
  */
 
 /**
@@ -177,9 +177,12 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Participants');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Participants') : ts('Participant');
   }
 
   /**
index ee0070dfc21351b1e72e740c038ad82c51942c89..44cff71fabed05ba2de773f1f4da0a5f229ccaea 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Event/ParticipantPayment.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0c828890e84b791e0432445eb2d01086)
+ * (GenCodeChecksum:767fb54121e25d39d9b82cfbb4a5355b)
  */
 
 /**
@@ -61,9 +61,12 @@ class CRM_Event_DAO_ParticipantPayment extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Participant Payments');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Participant Payments') : ts('Participant Payment');
   }
 
   /**
index 2b6e4f8f030f152499f879e9a2bad0f1d9c55d44..cf410c357bcdf2f9a7ab949c76784ffcaf20416c 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Event/ParticipantStatusType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4a3012f88c67826cb4264a3340e908ec)
+ * (GenCodeChecksum:6bf827c56f673a914923346816449255)
  */
 
 /**
@@ -103,9 +103,12 @@ class CRM_Event_DAO_ParticipantStatusType extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Participant Status Types');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Participant Status Types') : ts('Participant Status Type');
   }
 
   /**
index f4bb8ca534f640fb2ed049b1ad5c8d9b751287f4..f95f4b8d84cf8b4f622de5bce87bb410d1d6f879 100644 (file)
@@ -50,7 +50,7 @@ class CRM_Export_Controller_Standalone extends CRM_Core_Controller {
     // add all the actions
     $this->addActions();
     $dao = CRM_Core_DAO_AllCoreTables::getFullName($entity);
-    CRM_Utils_System::setTitle(ts('Export %1', [1 => $dao::getEntityTitle()]));
+    CRM_Utils_System::setTitle(ts('Export %1', [1 => $dao::getEntityTitle(TRUE)]));
   }
 
   /**
index f96650badc5908feafc6cc18b53711ebe3e8343e..868495d6d7821821a1d1360d84642d02a1a814a0 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/Currency.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:5501c59b453dedfb8bba1f2fab44d9ea)
+ * (GenCodeChecksum:0347ed61e0dc585d250a83f9fa162f2d)
  */
 
 /**
@@ -75,9 +75,12 @@ class CRM_Financial_DAO_Currency extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Currencies');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Currencies') : ts('Currency');
   }
 
   /**
index 973a99ca8330f6d3c97f13ad686f74cc1b50f66a..6474da9830646d7b2cb325adbae02b6a627434ca 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/EntityFinancialAccount.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:c1d51696dd326b61f65fd064a355e7fb)
+ * (GenCodeChecksum:04ae90cfa08b3e1380f48c64e0bcc1ce)
  */
 
 /**
@@ -75,9 +75,12 @@ class CRM_Financial_DAO_EntityFinancialAccount extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Entity Financial Accounts');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Entity Financial Accounts') : ts('Entity Financial Account');
   }
 
   /**
index 1f959ad6117bbc7d8bbd062f4322bba7bf48fd1e..4935cf9f2c3154e48ea17047149a78280a392b5f 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/EntityFinancialTrxn.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:12eb23afdf6c1208bdc01aa7db52770a)
+ * (GenCodeChecksum:bbf884307aab01daa88aa7f3c06c2624)
  */
 
 /**
@@ -71,9 +71,12 @@ class CRM_Financial_DAO_EntityFinancialTrxn extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Entity Financial Trxns');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Entity Financial Trxns') : ts('Entity Financial Trxn');
   }
 
   /**
index d8f161e9437bae30da0ce056bb6a33b0083f7049..30be03ce47cf1f310c7fa0384f1ec259b624a79d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/FinancialAccount.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b9f200ff95d9186180eff484dcd12a57)
+ * (GenCodeChecksum:09d2e3d6a970fa2413b6f29ab1f580e0)
  */
 
 /**
@@ -145,9 +145,12 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Financial Accounts');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Financial Accounts') : ts('Financial Account');
   }
 
   /**
index a59dc38e6613ab5215b7e022fb3c045c1c9f9ec1..dd75f2405a5d95142f541d9e37c300814efcd3d0 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/FinancialItem.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8bb63ebee681c2eb4acbf8650b224dc2)
+ * (GenCodeChecksum:a70adfdd0e2248a7583c5c49ad0a5b85)
  */
 
 /**
@@ -115,9 +115,12 @@ class CRM_Financial_DAO_FinancialItem extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Financial Items');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Financial Items') : ts('Financial Item');
   }
 
   /**
index 157984607fb373e9c2c0244b3da40703bb73bb0e..e94ee652f48390634f733429fb4058d768c87735 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/FinancialTrxn.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:5a4324ffe222bf724ab9d4cde26eb4c2)
+ * (GenCodeChecksum:857c64b471d1872d98141aefa56aecb6)
  */
 
 /**
@@ -164,9 +164,12 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Financial Trxns');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Financial Trxns') : ts('Financial Trxn');
   }
 
   /**
index cd99c56281eb7937e52c6d02eb95f591a7c8b343..d9b1ce7f58e422671a0b67c6948fde845ee7c794 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/FinancialType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:024b000d94adcc65200c00d7cef5e624)
+ * (GenCodeChecksum:36875c58b3267bdc2def295713858868)
  */
 
 /**
@@ -82,9 +82,12 @@ class CRM_Financial_DAO_FinancialType extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Financial Types');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Financial Types') : ts('Financial Type');
   }
 
   /**
index 7f1e8334a9678b7b65ceac85d11ad821684a2f09..f882e0d0b174bb0c742be8894a3d7a97848af129 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/PaymentProcessor.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7e296728147d44cb68a9231c4995e461)
+ * (GenCodeChecksum:8277056355c9f16ae28f69ba3298730e)
  */
 
 /**
@@ -181,9 +181,12 @@ class CRM_Financial_DAO_PaymentProcessor extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Payment Processors');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Payment Processors') : ts('Payment Processor');
   }
 
   /**
index 597b8d27f0ff19374d9f8449bfcf63a81561477c..3b014458763329302cd3ea43ac79093396fc4b0d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/PaymentProcessorType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:624a9a001f451b6eb17930a9abcceb3e)
+ * (GenCodeChecksum:62dd4d3229f289de4afb3c5e3e39db66)
  */
 
 /**
@@ -175,9 +175,12 @@ class CRM_Financial_DAO_PaymentProcessorType extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Payment Processor Types');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Payment Processor Types') : ts('Payment Processor Type');
   }
 
   /**
index cb2498f0832ce707ce30376124dd732ba81670b0..1608dab55d72e644c1bd9e6f208cf73f42ccd427 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/PaymentToken.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:ce51f1e6eaf6b29f3adeb67828e85507)
+ * (GenCodeChecksum:2923b7966bbe25d435eb7b909d35541f)
  */
 
 /**
@@ -129,9 +129,12 @@ class CRM_Financial_DAO_PaymentToken extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Payment Tokens');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Payment Tokens') : ts('Payment Token');
   }
 
   /**
index 1513ab9dccc5c25e267fb8dd5a3fa27a69a31a9c..690419d0b962aa089b3a48ffc81b3a33183562ea 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Friend/Friend.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:3f1c976d43e312175e85da0427f5210d)
+ * (GenCodeChecksum:1452e2f2b01782f26a30e94bd6af3783)
  */
 
 /**
@@ -106,9 +106,12 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Friends');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Friends') : ts('Friend');
   }
 
   /**
index 91b816359a758202611ac223750db3454c3777c7..05d6701011e6506707332bf75a0bb8fc7cfa60eb 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Grant/Grant.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a2e43b7f0fb8547daf5ed874bf6174c5)
+ * (GenCodeChecksum:91aecd5b45ba8c5cd6636bb95ddbbfee)
  */
 
 /**
@@ -152,9 +152,12 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Grants');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Grants') : ts('Grant');
   }
 
   /**
index 43822bf7c5e3db2db3a8d8ae5cdb2734634fbe2a..8c74d99ecffa796f8035a1599146239fe2fdfbe2 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/BouncePattern.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:90abbaf8e68b5749a084a74d77dcc3b7)
+ * (GenCodeChecksum:65ffd17da4de88b093e578fc52d42800)
  */
 
 /**
@@ -59,9 +59,12 @@ class CRM_Mailing_DAO_BouncePattern extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Bounce Patterns');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Bounce Patterns') : ts('Bounce Pattern');
   }
 
   /**
index a31f8324f4fe03a1a642eec0fb8ea9ee76540c23..6511adf6d2d74f93db92671e6448508447acbe2f 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/BounceType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4e77659bd433033396e84b6de32c99af)
+ * (GenCodeChecksum:41a2f33a589d43ba388d36dcf8f9e54f)
  */
 
 /**
@@ -66,9 +66,12 @@ class CRM_Mailing_DAO_BounceType extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Bounce Types');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Bounce Types') : ts('Bounce Type');
   }
 
   /**
index 084489593dcbe2cdb9ea9deac588616ac95eb37c..95b4563035c617c21ad96b89bfe2d2db55e34c9d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Mailing.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6a9dc5aaff7aa7f5dcfe3f892255e357)
+ * (GenCodeChecksum:9cd784dc86cf4f54983f14440be05239)
  */
 
 /**
@@ -342,9 +342,12 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Mailings');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Mailings') : ts('Mailing');
   }
 
   /**
index 0e2215e1fc5f7a80a0f2c98d130825cecc72892c..1932930dc26461cd39536df97975b73c74cd54c8 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/MailingAB.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:af0f7d34ddde7f3971aaac5abccfcd8c)
+ * (GenCodeChecksum:075e135a610dcb619ab3ddc8c23944e1)
  */
 
 /**
@@ -130,9 +130,12 @@ class CRM_Mailing_DAO_MailingAB extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Mailing ABs');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Mailing ABs') : ts('Mailing AB');
   }
 
   /**
index f1b81f15629d57afdabbb5028be4dce21039a2bc..b544c0ea2ef935aa70c3f0a496342d1f22a78656 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/MailingComponent.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:ca95f8566048836c03e1dc58eb51ac11)
+ * (GenCodeChecksum:bb6ab1e7538409ecfa1e72a45bb287a1)
  */
 
 /**
@@ -92,9 +92,12 @@ class CRM_Mailing_DAO_MailingComponent extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Mailing Components');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Mailing Components') : ts('Mailing Component');
   }
 
   /**
index 220bfd13cb08a8554f8d50942feb52ad73f01c80..0d3497c6cdebac5986e7a1959078503d6d029744 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/MailingGroup.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a253e806fcb595ede70c812a10c0dbba)
+ * (GenCodeChecksum:4ab3dccb8706ec8f03072118ff2e9c12)
  */
 
 /**
@@ -87,9 +87,12 @@ class CRM_Mailing_DAO_MailingGroup extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Mailing Groups');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Mailing Groups') : ts('Mailing Group');
   }
 
   /**
index bde7e35f391efa21fb03a70a15fd96c8aeac78f9..edbd20cd5f9a0e9d6daa8d3fb8e7f6ab6c834730 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/MailingJob.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0c6e76df20fe3579056c287aeed27cdb)
+ * (GenCodeChecksum:eb066e39ba2501608759e6ac3dfbcaaf)
  */
 
 /**
@@ -115,9 +115,12 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Mailing Jobs');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Mailing Jobs') : ts('Mailing Job');
   }
 
   /**
index 1852c7ac022a6aeb4fa60c2207c1dc4c8179e58d..7e6bb43ab156baa1be3e9dc954454e6f87f89af6 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Recipients.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:ebd2ec177861f8f82a4bc6bc8b33fd9b)
+ * (GenCodeChecksum:3fb8b7a18899cd7dba958e9e08a944a7)
  */
 
 /**
@@ -73,9 +73,12 @@ class CRM_Mailing_DAO_Recipients extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Recipientses');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Recipientses') : ts('Recipients');
   }
 
   /**
index 6027afd1676cf9875d35a251c211c8fd107c66c8..6329553862b5b28fe832bd0148d302311c8adb4e 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Spool.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7bd4a9b64175915a43f602f4f9cfb721)
+ * (GenCodeChecksum:f2aa2d8c8ee3203bf674e6c193818dda)
  */
 
 /**
@@ -87,9 +87,12 @@ class CRM_Mailing_DAO_Spool extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Spools');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Spools') : ts('Spool');
   }
 
   /**
index 3d39634397268e1e0df4006057af18566bc67a83..0452ac93ba61db22c6f3f88eda24d9b482ca1500 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/TrackableURL.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:74f858b4e9e666e05416be884002408b)
+ * (GenCodeChecksum:ac0ae37c12d442071e726deb75e8a7ba)
  */
 
 /**
@@ -59,9 +59,12 @@ class CRM_Mailing_DAO_TrackableURL extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Trackable URLs');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Trackable URLs') : ts('Trackable URL');
   }
 
   /**
index 1cd4024fb4d6cad1d6d96f0cac121e030ef19b62..7252307252f73a254a35b1dff72e4f8481808407 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Bounce.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8e0590dde97f57494203397255fd4604)
+ * (GenCodeChecksum:dc1c97304810848da9a9c4255456799f)
  */
 
 /**
@@ -73,9 +73,12 @@ class CRM_Mailing_Event_DAO_Bounce extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Bounces');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Bounces') : ts('Bounce');
   }
 
   /**
index 343430c1579dfc5b9c48305ad68394f05bf77676..3c757f302d5c6550569bb2b2dee140e1a740a10a 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Confirm.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:827b011dc50d032e8b74d6d164314d83)
+ * (GenCodeChecksum:3d1dae89470e79336dab7506dd173499)
  */
 
 /**
@@ -59,9 +59,12 @@ class CRM_Mailing_Event_DAO_Confirm extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Confirms');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Confirms') : ts('Confirm');
   }
 
   /**
index 147d70fcf82fc642fe9d6d6947eaeacdce6249fd..93bb85e2d53471527ae2fea3e363805a0ececa2a 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Delivered.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:c983e11b4de5a1c4e6d9765eb7d12755)
+ * (GenCodeChecksum:6a81ffa6ed10a254979274ea5edbd855)
  */
 
 /**
@@ -59,9 +59,12 @@ class CRM_Mailing_Event_DAO_Delivered extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Delivereds');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Delivereds') : ts('Delivered');
   }
 
   /**
index ac1c8d89670b53ee6841f4354507a708a0937fac..6650dd0c0cb932206e94678ee0069ff68714f422 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Forward.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:359e0b700860c29a1e809fd4acbf7598)
+ * (GenCodeChecksum:16bd96b998ed8316250158886d0dc7c8)
  */
 
 /**
@@ -66,9 +66,12 @@ class CRM_Mailing_Event_DAO_Forward extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Forwards');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Forwards') : ts('Forward');
   }
 
   /**
index cbd24372dfa0ba3c77d52f2f0364fedf853544e9..9ce62afcf5c28fa31abe22b3e1b69ec04c4c8eb0 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Opened.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:dddc76ba8461f8b0c1f3c1cdccddd111)
+ * (GenCodeChecksum:d636f34b01a876a72874c4b86abacff4)
  */
 
 /**
@@ -59,9 +59,12 @@ class CRM_Mailing_Event_DAO_Opened extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Openeds');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Openeds') : ts('Opened');
   }
 
   /**
index 073ef521c99712886df7631bfb944d88ac07d5a4..4dd92f1047ee06731774056164f1b82e18477d28 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Queue.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:091cb300f1b0a67dfaf40f988806e6cf)
+ * (GenCodeChecksum:f37d1a6e35b4f827ed7daf29b3005fad)
  */
 
 /**
@@ -80,9 +80,12 @@ class CRM_Mailing_Event_DAO_Queue extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Queues');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Queues') : ts('Queue');
   }
 
   /**
index 8fc31b3eb359e704d28f7b9a81d3ee077d5733e8..3c3cb9cff7820fb24720a786a859fc0aa3e95b61 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Reply.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b1d572f3d42f6480dc98a2e6f9710fa3)
+ * (GenCodeChecksum:e4f80247fbee550b68997bd9f264dc66)
  */
 
 /**
@@ -59,9 +59,12 @@ class CRM_Mailing_Event_DAO_Reply extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Replies');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Replies') : ts('Reply');
   }
 
   /**
index ce577b24d76a5e7433fcd0c380168c323060c6c3..6659fcca1de2cc57120ff391a8f7540004a59651 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Subscribe.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:9e1dec99f17dcccde7feeca30b880a85)
+ * (GenCodeChecksum:b5a2a60211ad6eb943a6aa0db5f88840)
  */
 
 /**
@@ -73,9 +73,12 @@ class CRM_Mailing_Event_DAO_Subscribe extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Subscribes');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Subscribes') : ts('Subscribe');
   }
 
   /**
index 88c84b0b920119c676e43600ec6530b58b9a6cbe..85f4b96810e10da76ffdb9f53259f1ffd67f252b 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/TrackableURLOpen.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b543a83312f2069a45872939517aa480)
+ * (GenCodeChecksum:6e1eb0a358ed16c691ea25a741ce6f8c)
  */
 
 /**
@@ -66,9 +66,12 @@ class CRM_Mailing_Event_DAO_TrackableURLOpen extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Trackable URLOpens');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Trackable URLOpens') : ts('Trackable URLOpen');
   }
 
   /**
index e5a230b66dc76be60070e87969b3db4398cd89c4..71432c59ab116e4fe2f7493441ba7ca8bd698d1d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Unsubscribe.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:2d080a63032c9dce0331a6ed4f6c3cd2)
+ * (GenCodeChecksum:48ace30af145c288185e356b721a22d1)
  */
 
 /**
@@ -66,9 +66,12 @@ class CRM_Mailing_Event_DAO_Unsubscribe extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Unsubscribes');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Unsubscribes') : ts('Unsubscribe');
   }
 
   /**
index 384c69ae6b5857b66703fee8ea4ed20262dec189..86173b83afcc6b600e17bc5b54f71bb343291e0b 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Member/Membership.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:835c63ea0a55b78d6d115a7a6db5dde2)
+ * (GenCodeChecksum:d80be256fb175b763047883b8694559c)
  */
 
 /**
@@ -153,9 +153,12 @@ class CRM_Member_DAO_Membership extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Memberships');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Memberships') : ts('Membership');
   }
 
   /**
index 91e65e6eeb2becf3e7d2174e8c64ed63aa0fa737..9bfff5263961424141d08bc2d8b2f4fc94accfda 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Member/MembershipBlock.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8eb2f3a6c818d449da875421b54de619)
+ * (GenCodeChecksum:6a38472a1103f6f5de9e33fed620060d)
  */
 
 /**
@@ -131,9 +131,12 @@ class CRM_Member_DAO_MembershipBlock extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Membership Blocks');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Membership Blocks') : ts('Membership Block');
   }
 
   /**
index bd0b4f7924e54ec306d9b02fa7035db8643b0bfd..1619acbedb592efdf8175890c038d6584f1d0ef3 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Member/MembershipLog.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4d5744b433ca7bb5385b11945cc0fe10)
+ * (GenCodeChecksum:d1e55c6d7f0e93b21778fdd36dd6e022)
  */
 
 /**
@@ -101,9 +101,12 @@ class CRM_Member_DAO_MembershipLog extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Membership Logs');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Membership Logs') : ts('Membership Log');
   }
 
   /**
index ac386eee5571056a71d1515f946399cf504202a0..67e9bc60571425c81c260ea04e2515be0d289f55 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Member/MembershipPayment.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:39168603c262c909ebeee2ce821f0f0d)
+ * (GenCodeChecksum:e9764dc46ae261f8cad8ef1383063d61)
  */
 
 /**
@@ -59,9 +59,12 @@ class CRM_Member_DAO_MembershipPayment extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Membership Payments');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Membership Payments') : ts('Membership Payment');
   }
 
   /**
index 5b780e4a5b9d21399a5f961b7a59ecd6ae7e7cfc..5857dca3cf5dafedbd4ca755d8db77efb6d8e9bf 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Member/MembershipStatus.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f0c470d5aca6e3696a0ad8345531f8b8)
+ * (GenCodeChecksum:6bdad135e9f0e94f085296d68ca59253)
  */
 
 /**
@@ -143,9 +143,12 @@ class CRM_Member_DAO_MembershipStatus extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Membership Statuses');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Membership Statuses') : ts('Membership Status');
   }
 
   /**
index 4f5cad0e296afe03c4a5ac7cca986c2cbb1af917..d904024ac47769101b9ad32ab4b899466490d0cf 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Member/MembershipType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7c5220444512f1aa499454e977f27814)
+ * (GenCodeChecksum:db300e3a7f5ca29a1b6ca43e0885bcb5)
  */
 
 /**
@@ -181,9 +181,12 @@ class CRM_Member_DAO_MembershipType extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Membership Types');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Membership Types') : ts('Membership Type');
   }
 
   /**
index eb565696754516f8e27286cbf045c7a7e826fa8e..bd3fedb7800fa0353ac3630e053c1988e00e7d9d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/PCP/PCP.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:286225e46c4e2f3c12b17cd5f83b210d)
+ * (GenCodeChecksum:2232571099c216fb7a823556f5bd8328)
  */
 
 /**
@@ -138,9 +138,12 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('PCPs');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('PCPs') : ts('PCP');
   }
 
   /**
index 74f5204bebd1689474013f8bbceada3d53e39dd0..711dc584c95971859b0ec2a695b62237c6dfe39c 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/PCP/PCPBlock.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:ea1b4158570c5a79356b1dc0ad80db6a)
+ * (GenCodeChecksum:2039aecf7902bf0fda7f91081778b1c8)
  */
 
 /**
@@ -129,9 +129,12 @@ class CRM_PCP_DAO_PCPBlock extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('PCPBlocks');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('PCPBlocks') : ts('PCPBlock');
   }
 
   /**
index 5f5a7632ed42f0422aae8074942ad8065b08952c..2a2f80900d6868bc00240d0941a4cda342078f4a 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Pledge/Pledge.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:27003a5c2de79b60b4114bc92b65cc07)
+ * (GenCodeChecksum:0447b8be2ab956b77d0d6be123e0bdb4)
  */
 
 /**
@@ -206,9 +206,12 @@ class CRM_Pledge_DAO_Pledge extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Pledges');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Pledges') : ts('Pledge');
   }
 
   /**
index 989b14383d7a69eec50cbc6f77f234a427ff31e2..111d085910e9398acecb31756b2f1c9b60fde297 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Pledge/PledgeBlock.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:bf3640355f445e127c25402500d79668)
+ * (GenCodeChecksum:2b02296af6d4e280950d483d222b20b9)
  */
 
 /**
@@ -117,9 +117,12 @@ class CRM_Pledge_DAO_PledgeBlock extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Pledge Blocks');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Pledge Blocks') : ts('Pledge Block');
   }
 
   /**
index 234a5342b2f73204ab0f2e8b3c3c1bd56724c024..bb88db54a733cfbd2c533005a92c3e0d8f5a8f4b 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Pledge/PledgePayment.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:c47a2cbc83c672a8209bc5e725b2f81a)
+ * (GenCodeChecksum:b3b6719f4f4a8c441f271213ff7f52db)
  */
 
 /**
@@ -106,9 +106,12 @@ class CRM_Pledge_DAO_PledgePayment extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Pledge Payments');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Pledge Payments') : ts('Pledge Payment');
   }
 
   /**
index 2ad0da2b2957c832bd1f7e75beadee464af8ab31..7e9b779089b6a69901ba9489d8094ab9866cd937 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Price/LineItem.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7403b3615b0225350d893750a547061a)
+ * (GenCodeChecksum:5a365a7d4b14c9b5963aeb61576395e4)
  */
 
 /**
@@ -138,9 +138,12 @@ class CRM_Price_DAO_LineItem extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Line Items');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Line Items') : ts('Line Item');
   }
 
   /**
index e14f60999bfe2a6297e858f5b9d80d48b781b181..2f5d0d653ae9dc9139a445fb941b0b060334e8be 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Price/PriceField.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:1492c6421f1c3cb49dcab88bc411075c)
+ * (GenCodeChecksum:fdebc45a7d5c35abb0c9c480dbf201b2)
  */
 
 /**
@@ -157,9 +157,12 @@ class CRM_Price_DAO_PriceField extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Price Fields');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Price Fields') : ts('Price Field');
   }
 
   /**
index c7c8e0913e40b12bf692fa82ba8d990383b35068..2057dd655d566bd7a4f6fb56afa4bac4883ebea2 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Price/PriceFieldValue.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a1acc613daec86c6049e545af5fc7fd1)
+ * (GenCodeChecksum:16987d2cc463a2d9290339ad37070f16)
  */
 
 /**
@@ -166,9 +166,12 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Price Field Values');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Price Field Values') : ts('Price Field Value');
   }
 
   /**
index 1dd84351706af0cc2ba0050d707cdb5ffdd8f307..26fa13809836f6fc3141f974410b9a1e020ea389 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Price/PriceSet.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:52d1fb1b25eaa8f1c157012bfec0eaae)
+ * (GenCodeChecksum:c4db3cbda4900e01aeba098a4578b563)
  */
 
 /**
@@ -131,9 +131,12 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Price Sets');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Price Sets') : ts('Price Set');
   }
 
   /**
index 78e479a53a754dd5d0b21e970a826ef93e9f10fc..4b1d3749a55dba7d1a84b0000bfa37974338a7a5 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Price/PriceSetEntity.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f2d6aeda95e4bde969d5ccebe9f26791)
+ * (GenCodeChecksum:0284d1a184dd635d93dd170e94451e86)
  */
 
 /**
@@ -68,9 +68,12 @@ class CRM_Price_DAO_PriceSetEntity extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Price Set Entities');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Price Set Entities') : ts('Price Set Entity');
   }
 
   /**
index a78b613e154da0ef032542f9c076e6c499e226e8..7ee05fcafa74fd8aa95a81cae682925dc0664642 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Queue/QueueItem.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7e484400a7f8cf682b9c85e8b10c7bc7)
+ * (GenCodeChecksum:32350e9450942f29e7785ceaaed7a1b9)
  */
 
 /**
@@ -78,9 +78,12 @@ class CRM_Queue_DAO_QueueItem extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Queue Items');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Queue Items') : ts('Queue Item');
   }
 
   /**
index 08a380c76fd3e548f7e3646ab57cf092d3a68010..f4ab9447035f9c368c4bd67dfed00b9f4a25f43a 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Report/ReportInstance.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:d0c9e5593f161f18e7979012c4c13724)
+ * (GenCodeChecksum:9c05a0739ee0b8250fdc0418b5fb247d)
  */
 
 /**
@@ -192,9 +192,12 @@ class CRM_Report_DAO_ReportInstance extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Reports');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Reports') : ts('Report');
   }
 
   /**
index 3aa49ab0a6da3128f2b2fca659004cfdc6946ac8..afdd808359ac7b9a2dc278a37c1fe3eb9e7f4fed 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/SMS/Provider.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6ecda65bd52b36e04764cec8ee81e1b8)
+ * (GenCodeChecksum:478e0d0caeb2d2a81068db6ad2db67aa)
  */
 
 /**
@@ -107,9 +107,12 @@ class CRM_SMS_DAO_Provider extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Providers');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Providers') : ts('Provider');
   }
 
   /**
index 269bcc31b3c9bcb12bfaeadaf26a9539cd1d7252..8084614b14ef73f6b1f5d6af306f5b0f891cce48 100644 (file)
@@ -81,9 +81,11 @@ abstract class AbstractEntity {
   /**
    * Overridable function to return a localized title for this entity.
    *
+   * @param bool $plural
+   *   Whether to return a plural title.
    * @return string
    */
-  protected static function getEntityTitle() {
+  protected static function getEntityTitle($plural = FALSE) {
     return static::getEntityName();
   }
 
@@ -121,6 +123,7 @@ abstract class AbstractEntity {
     $info = [
       'name' => static::getEntityName(),
       'title' => static::getEntityTitle(),
+      'titlePlural' => static::getEntityTitle(TRUE),
       'type' => self::stripNamespace(get_parent_class(static::class)),
     ];
     $reflection = new \ReflectionClass(static::class);
index a7c47ee2e9a15e91f6626007b7f129e5c0511840..c27aac4ce0c33562f687784058465ecb264712e2 100644 (file)
@@ -91,12 +91,14 @@ abstract class DAOEntity extends AbstractEntity {
   }
 
   /**
+   * @param bool $plural
+   *   Whether to return a plural title.
    * @return string
    */
-  protected static function getEntityTitle() {
+  protected static function getEntityTitle($plural = FALSE) {
     $name = static::getEntityName();
     $dao = \CRM_Core_DAO_AllCoreTables::getFullName($name);
-    return $dao ? $dao::getEntityTitle() : $name;
+    return $dao ? $dao::getEntityTitle($plural) : $name;
   }
 
   /**
index 11e70b6afc496ff8bdd6fb8d95bd126cff8d5e05..00411d639be88341aef2ffde43cb18d7e3b22295 100644 (file)
@@ -5,7 +5,7 @@
   <name>civicrm_contribution_recur</name>
   <add>1.6</add>
   <log>true</log>
-  <title>Recurring Contributions</title>
+  <title>Recurring Contribution</title>
   <field>
     <name>id</name>
     <uniqueName>contribution_recur_id</uniqueName>
index f7738d969cbcb3a5ebc102954d0e87c60502beac..58ca90324dc4b5e02d6b46f2adc8b1896730185f 100644 (file)
@@ -8,6 +8,7 @@
   <add>1.1</add>
   <log>true</log>
   <title>Instant Messaging</title>
+  <titlePlural>Instant Messaging</titlePlural>
   <icon>fa-comments-o</icon>
   <field>
     <name>id</name>
index 028c6fb722e8612d0149ced4cc1e666cd1b6eac9..d85b605c5d9182403c1745aea5e7d996faf5791f 100644 (file)
@@ -6,7 +6,7 @@
   <name>civicrm_report_instance</name>
   <comment>Users can save their report instance and put in a cron tab etc.</comment>
   <add>2.2</add>
-  <title>Reports</title>
+  <title>Report</title>
   <icon>fa-bar-chart</icon>
   <field>
     <name>id</name>
index 87a3463531c9a096e0b7abfdcca99893207263ae..034137433ed489ed46385eb3060fc5bfcbb3c550 100644 (file)
@@ -61,9 +61,12 @@ class {$table.className} extends CRM_Core_DAO {ldelim}
 
     /**
      * Returns localized title of this entity.
+     *
+     * @param bool $plural
+     *   Whether to return the plural version of the title.
      */
-    public static function getEntityTitle() {ldelim}
-        return {$tsFunctionName}('{$table.title}');
+    public static function getEntityTitle($plural = FALSE) {ldelim}
+        return $plural ? {$tsFunctionName}('{$table.titlePlural}') : {$tsFunctionName}('{$table.title}');
     {rdelim}