From 7b66c3b57753e74e46815ce9d9367126a19acee8 Mon Sep 17 00:00:00 2001 From: Andrew Hunt Date: Fri, 11 Sep 2020 16:46:17 -0400 Subject: [PATCH] DAOs with singular/plural options for entity titles --- CRM/ACL/DAO/ACL.php | 9 ++++++--- CRM/ACL/DAO/ACLCache.php | 9 ++++++--- CRM/ACL/DAO/EntityRole.php | 9 ++++++--- CRM/Activity/DAO/Activity.php | 9 ++++++--- CRM/Activity/DAO/ActivityContact.php | 9 ++++++--- CRM/Batch/DAO/Batch.php | 9 ++++++--- CRM/Batch/DAO/EntityBatch.php | 9 ++++++--- CRM/Campaign/DAO/Campaign.php | 9 ++++++--- CRM/Campaign/DAO/CampaignGroup.php | 9 ++++++--- CRM/Campaign/DAO/Survey.php | 9 ++++++--- CRM/Case/DAO/Case.php | 9 ++++++--- CRM/Case/DAO/CaseActivity.php | 9 ++++++--- CRM/Case/DAO/CaseContact.php | 9 ++++++--- CRM/Case/DAO/CaseType.php | 9 ++++++--- CRM/Contact/DAO/ACLContactCache.php | 9 ++++++--- CRM/Contact/DAO/Contact.php | 9 ++++++--- CRM/Contact/DAO/ContactType.php | 9 ++++++--- CRM/Contact/DAO/DashboardContact.php | 9 ++++++--- CRM/Contact/DAO/Group.php | 9 ++++++--- CRM/Contact/DAO/GroupContact.php | 9 ++++++--- CRM/Contact/DAO/GroupContactCache.php | 9 ++++++--- CRM/Contact/DAO/GroupNesting.php | 9 ++++++--- CRM/Contact/DAO/GroupOrganization.php | 9 ++++++--- CRM/Contact/DAO/Relationship.php | 9 ++++++--- CRM/Contact/DAO/RelationshipCache.php | 9 ++++++--- CRM/Contact/DAO/RelationshipType.php | 9 ++++++--- CRM/Contact/DAO/SavedSearch.php | 9 ++++++--- CRM/Contact/DAO/SubscriptionHistory.php | 9 ++++++--- CRM/Contribute/DAO/Contribution.php | 9 ++++++--- CRM/Contribute/DAO/ContributionPage.php | 9 ++++++--- CRM/Contribute/DAO/ContributionProduct.php | 9 ++++++--- CRM/Contribute/DAO/ContributionRecur.php | 9 ++++++--- CRM/Contribute/DAO/ContributionSoft.php | 9 ++++++--- CRM/Contribute/DAO/Premium.php | 9 ++++++--- CRM/Contribute/DAO/PremiumsProduct.php | 9 ++++++--- CRM/Contribute/DAO/Product.php | 9 ++++++--- CRM/Contribute/DAO/Widget.php | 9 ++++++--- CRM/Core/CodeGen/Specification.php | 15 +++------------ CRM/Core/DAO.php | 3 ++- CRM/Core/DAO/ActionLog.php | 9 ++++++--- CRM/Core/DAO/ActionMapping.php | 9 ++++++--- CRM/Core/DAO/ActionSchedule.php | 9 ++++++--- CRM/Core/DAO/Address.php | 9 ++++++--- CRM/Core/DAO/AddressFormat.php | 9 ++++++--- CRM/Core/DAO/Cache.php | 9 ++++++--- CRM/Core/DAO/Component.php | 9 ++++++--- CRM/Core/DAO/Country.php | 9 ++++++--- CRM/Core/DAO/County.php | 9 ++++++--- CRM/Core/DAO/CustomField.php | 9 ++++++--- CRM/Core/DAO/CustomGroup.php | 9 ++++++--- CRM/Core/DAO/Dashboard.php | 9 ++++++--- CRM/Core/DAO/Discount.php | 9 ++++++--- CRM/Core/DAO/Domain.php | 9 ++++++--- CRM/Core/DAO/Email.php | 9 ++++++--- CRM/Core/DAO/EntityFile.php | 9 ++++++--- CRM/Core/DAO/EntityTag.php | 9 ++++++--- CRM/Core/DAO/Extension.php | 9 ++++++--- CRM/Core/DAO/File.php | 9 ++++++--- CRM/Core/DAO/IM.php | 9 ++++++--- CRM/Core/DAO/Job.php | 9 ++++++--- CRM/Core/DAO/JobLog.php | 9 ++++++--- CRM/Core/DAO/LocBlock.php | 9 ++++++--- CRM/Core/DAO/LocationType.php | 9 ++++++--- CRM/Core/DAO/Log.php | 9 ++++++--- CRM/Core/DAO/MailSettings.php | 9 ++++++--- CRM/Core/DAO/Managed.php | 9 ++++++--- CRM/Core/DAO/Mapping.php | 9 ++++++--- CRM/Core/DAO/MappingField.php | 9 ++++++--- CRM/Core/DAO/Menu.php | 9 ++++++--- CRM/Core/DAO/MessageTemplate.php | 9 ++++++--- CRM/Core/DAO/Navigation.php | 9 ++++++--- CRM/Core/DAO/Note.php | 9 ++++++--- CRM/Core/DAO/OpenID.php | 9 ++++++--- CRM/Core/DAO/OptionGroup.php | 9 ++++++--- CRM/Core/DAO/OptionValue.php | 9 ++++++--- CRM/Core/DAO/Phone.php | 9 ++++++--- CRM/Core/DAO/PreferencesDate.php | 9 ++++++--- CRM/Core/DAO/PrevNextCache.php | 9 ++++++--- CRM/Core/DAO/PrintLabel.php | 9 ++++++--- CRM/Core/DAO/RecurringEntity.php | 9 ++++++--- CRM/Core/DAO/Setting.php | 9 ++++++--- CRM/Core/DAO/StateProvince.php | 9 ++++++--- CRM/Core/DAO/StatusPreference.php | 9 ++++++--- CRM/Core/DAO/SystemLog.php | 9 ++++++--- CRM/Core/DAO/Tag.php | 9 ++++++--- CRM/Core/DAO/Timezone.php | 9 ++++++--- CRM/Core/DAO/UFField.php | 9 ++++++--- CRM/Core/DAO/UFGroup.php | 9 ++++++--- CRM/Core/DAO/UFJoin.php | 9 ++++++--- CRM/Core/DAO/UFMatch.php | 9 ++++++--- CRM/Core/DAO/Website.php | 9 ++++++--- CRM/Core/DAO/WordReplacement.php | 9 ++++++--- CRM/Core/DAO/Worldregion.php | 9 ++++++--- CRM/Cxn/DAO/Cxn.php | 9 ++++++--- CRM/Dedupe/DAO/Exception.php | 9 ++++++--- CRM/Dedupe/DAO/Rule.php | 9 ++++++--- CRM/Dedupe/DAO/RuleGroup.php | 9 ++++++--- CRM/Event/Cart/DAO/Cart.php | 9 ++++++--- CRM/Event/Cart/DAO/EventInCart.php | 9 ++++++--- CRM/Event/DAO/Event.php | 9 ++++++--- CRM/Event/DAO/Participant.php | 9 ++++++--- CRM/Event/DAO/ParticipantPayment.php | 9 ++++++--- CRM/Event/DAO/ParticipantStatusType.php | 9 ++++++--- CRM/Export/Controller/Standalone.php | 2 +- CRM/Financial/DAO/Currency.php | 9 ++++++--- CRM/Financial/DAO/EntityFinancialAccount.php | 9 ++++++--- CRM/Financial/DAO/EntityFinancialTrxn.php | 9 ++++++--- CRM/Financial/DAO/FinancialAccount.php | 9 ++++++--- CRM/Financial/DAO/FinancialItem.php | 9 ++++++--- CRM/Financial/DAO/FinancialTrxn.php | 9 ++++++--- CRM/Financial/DAO/FinancialType.php | 9 ++++++--- CRM/Financial/DAO/PaymentProcessor.php | 9 ++++++--- CRM/Financial/DAO/PaymentProcessorType.php | 9 ++++++--- CRM/Financial/DAO/PaymentToken.php | 9 ++++++--- CRM/Friend/DAO/Friend.php | 9 ++++++--- CRM/Grant/DAO/Grant.php | 9 ++++++--- CRM/Mailing/DAO/BouncePattern.php | 9 ++++++--- CRM/Mailing/DAO/BounceType.php | 9 ++++++--- CRM/Mailing/DAO/Mailing.php | 9 ++++++--- CRM/Mailing/DAO/MailingAB.php | 9 ++++++--- CRM/Mailing/DAO/MailingComponent.php | 9 ++++++--- CRM/Mailing/DAO/MailingGroup.php | 9 ++++++--- CRM/Mailing/DAO/MailingJob.php | 9 ++++++--- CRM/Mailing/DAO/Recipients.php | 9 ++++++--- CRM/Mailing/DAO/Spool.php | 9 ++++++--- CRM/Mailing/DAO/TrackableURL.php | 9 ++++++--- CRM/Mailing/Event/DAO/Bounce.php | 9 ++++++--- CRM/Mailing/Event/DAO/Confirm.php | 9 ++++++--- CRM/Mailing/Event/DAO/Delivered.php | 9 ++++++--- CRM/Mailing/Event/DAO/Forward.php | 9 ++++++--- CRM/Mailing/Event/DAO/Opened.php | 9 ++++++--- CRM/Mailing/Event/DAO/Queue.php | 9 ++++++--- CRM/Mailing/Event/DAO/Reply.php | 9 ++++++--- CRM/Mailing/Event/DAO/Subscribe.php | 9 ++++++--- CRM/Mailing/Event/DAO/TrackableURLOpen.php | 9 ++++++--- CRM/Mailing/Event/DAO/Unsubscribe.php | 9 ++++++--- CRM/Member/DAO/Membership.php | 9 ++++++--- CRM/Member/DAO/MembershipBlock.php | 9 ++++++--- CRM/Member/DAO/MembershipLog.php | 9 ++++++--- CRM/Member/DAO/MembershipPayment.php | 9 ++++++--- CRM/Member/DAO/MembershipStatus.php | 9 ++++++--- CRM/Member/DAO/MembershipType.php | 9 ++++++--- CRM/PCP/DAO/PCP.php | 9 ++++++--- CRM/PCP/DAO/PCPBlock.php | 9 ++++++--- CRM/Pledge/DAO/Pledge.php | 9 ++++++--- CRM/Pledge/DAO/PledgeBlock.php | 9 ++++++--- CRM/Pledge/DAO/PledgePayment.php | 9 ++++++--- CRM/Price/DAO/LineItem.php | 9 ++++++--- CRM/Price/DAO/PriceField.php | 9 ++++++--- CRM/Price/DAO/PriceFieldValue.php | 9 ++++++--- CRM/Price/DAO/PriceSet.php | 9 ++++++--- CRM/Price/DAO/PriceSetEntity.php | 9 ++++++--- CRM/Queue/DAO/QueueItem.php | 9 ++++++--- CRM/Report/DAO/ReportInstance.php | 9 ++++++--- CRM/SMS/DAO/Provider.php | 9 ++++++--- Civi/Api4/Generic/AbstractEntity.php | 5 ++++- Civi/Api4/Generic/DAOEntity.php | 6 ++++-- xml/schema/Contribute/ContributionRecur.xml | 2 +- xml/schema/Core/IM.xml | 1 + xml/schema/Report/ReportInstance.xml | 2 +- xml/templates/dao.tpl | 7 +++++-- 161 files changed, 934 insertions(+), 477 deletions(-) diff --git a/CRM/ACL/DAO/ACL.php b/CRM/ACL/DAO/ACL.php index fa06cf96c5..57934d1303 100644 --- a/CRM/ACL/DAO/ACL.php +++ b/CRM/ACL/DAO/ACL.php @@ -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'); } /** diff --git a/CRM/ACL/DAO/ACLCache.php b/CRM/ACL/DAO/ACLCache.php index 7e3ac8429f..671354acb3 100644 --- a/CRM/ACL/DAO/ACLCache.php +++ b/CRM/ACL/DAO/ACLCache.php @@ -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'); } /** diff --git a/CRM/ACL/DAO/EntityRole.php b/CRM/ACL/DAO/EntityRole.php index 9130d307ae..4e31bd8466 100644 --- a/CRM/ACL/DAO/EntityRole.php +++ b/CRM/ACL/DAO/EntityRole.php @@ -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'); } /** diff --git a/CRM/Activity/DAO/Activity.php b/CRM/Activity/DAO/Activity.php index 03ad751cd6..26f50e0b5f 100644 --- a/CRM/Activity/DAO/Activity.php +++ b/CRM/Activity/DAO/Activity.php @@ -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'); } /** diff --git a/CRM/Activity/DAO/ActivityContact.php b/CRM/Activity/DAO/ActivityContact.php index 61676f395b..fd6633a191 100644 --- a/CRM/Activity/DAO/ActivityContact.php +++ b/CRM/Activity/DAO/ActivityContact.php @@ -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'); } /** diff --git a/CRM/Batch/DAO/Batch.php b/CRM/Batch/DAO/Batch.php index f2571b674f..7e153f4786 100644 --- a/CRM/Batch/DAO/Batch.php +++ b/CRM/Batch/DAO/Batch.php @@ -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'); } /** diff --git a/CRM/Batch/DAO/EntityBatch.php b/CRM/Batch/DAO/EntityBatch.php index 6c697fb370..f7e2fffb74 100644 --- a/CRM/Batch/DAO/EntityBatch.php +++ b/CRM/Batch/DAO/EntityBatch.php @@ -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'); } /** diff --git a/CRM/Campaign/DAO/Campaign.php b/CRM/Campaign/DAO/Campaign.php index 742996a6bd..8dc0245910 100644 --- a/CRM/Campaign/DAO/Campaign.php +++ b/CRM/Campaign/DAO/Campaign.php @@ -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'); } /** diff --git a/CRM/Campaign/DAO/CampaignGroup.php b/CRM/Campaign/DAO/CampaignGroup.php index 97d4abd5af..581ab4e505 100644 --- a/CRM/Campaign/DAO/CampaignGroup.php +++ b/CRM/Campaign/DAO/CampaignGroup.php @@ -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'); } /** diff --git a/CRM/Campaign/DAO/Survey.php b/CRM/Campaign/DAO/Survey.php index 9c9626b6be..b6bc191260 100644 --- a/CRM/Campaign/DAO/Survey.php +++ b/CRM/Campaign/DAO/Survey.php @@ -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'); } /** diff --git a/CRM/Case/DAO/Case.php b/CRM/Case/DAO/Case.php index 946c992f4b..ebf2311f67 100644 --- a/CRM/Case/DAO/Case.php +++ b/CRM/Case/DAO/Case.php @@ -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'); } /** diff --git a/CRM/Case/DAO/CaseActivity.php b/CRM/Case/DAO/CaseActivity.php index 9efe7b4af3..e0d65cb58b 100644 --- a/CRM/Case/DAO/CaseActivity.php +++ b/CRM/Case/DAO/CaseActivity.php @@ -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'); } /** diff --git a/CRM/Case/DAO/CaseContact.php b/CRM/Case/DAO/CaseContact.php index 788b1e58f9..d5b524ae02 100644 --- a/CRM/Case/DAO/CaseContact.php +++ b/CRM/Case/DAO/CaseContact.php @@ -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'); } /** diff --git a/CRM/Case/DAO/CaseType.php b/CRM/Case/DAO/CaseType.php index dbafcb30a8..246edc51fd 100644 --- a/CRM/Case/DAO/CaseType.php +++ b/CRM/Case/DAO/CaseType.php @@ -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'); } /** diff --git a/CRM/Contact/DAO/ACLContactCache.php b/CRM/Contact/DAO/ACLContactCache.php index 6b319f9636..d5383fbc1d 100644 --- a/CRM/Contact/DAO/ACLContactCache.php +++ b/CRM/Contact/DAO/ACLContactCache.php @@ -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'); } /** diff --git a/CRM/Contact/DAO/Contact.php b/CRM/Contact/DAO/Contact.php index f91dc3264b..c585b12703 100644 --- a/CRM/Contact/DAO/Contact.php +++ b/CRM/Contact/DAO/Contact.php @@ -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'); } /** diff --git a/CRM/Contact/DAO/ContactType.php b/CRM/Contact/DAO/ContactType.php index 41d8b87803..4f7f63f5a3 100644 --- a/CRM/Contact/DAO/ContactType.php +++ b/CRM/Contact/DAO/ContactType.php @@ -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'); } /** diff --git a/CRM/Contact/DAO/DashboardContact.php b/CRM/Contact/DAO/DashboardContact.php index 16c0b3b593..f8f4e87daa 100644 --- a/CRM/Contact/DAO/DashboardContact.php +++ b/CRM/Contact/DAO/DashboardContact.php @@ -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'); } /** diff --git a/CRM/Contact/DAO/Group.php b/CRM/Contact/DAO/Group.php index cdae401986..81f335ad60 100644 --- a/CRM/Contact/DAO/Group.php +++ b/CRM/Contact/DAO/Group.php @@ -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'); } /** diff --git a/CRM/Contact/DAO/GroupContact.php b/CRM/Contact/DAO/GroupContact.php index 52c66fd638..3cee7b7e07 100644 --- a/CRM/Contact/DAO/GroupContact.php +++ b/CRM/Contact/DAO/GroupContact.php @@ -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'); } /** diff --git a/CRM/Contact/DAO/GroupContactCache.php b/CRM/Contact/DAO/GroupContactCache.php index 3ee02aa7e2..e4310747a9 100644 --- a/CRM/Contact/DAO/GroupContactCache.php +++ b/CRM/Contact/DAO/GroupContactCache.php @@ -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'); } /** diff --git a/CRM/Contact/DAO/GroupNesting.php b/CRM/Contact/DAO/GroupNesting.php index 90624a6e98..6262c1f5a4 100644 --- a/CRM/Contact/DAO/GroupNesting.php +++ b/CRM/Contact/DAO/GroupNesting.php @@ -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'); } /** diff --git a/CRM/Contact/DAO/GroupOrganization.php b/CRM/Contact/DAO/GroupOrganization.php index 407ea31d83..0553dff9ec 100644 --- a/CRM/Contact/DAO/GroupOrganization.php +++ b/CRM/Contact/DAO/GroupOrganization.php @@ -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'); } /** diff --git a/CRM/Contact/DAO/Relationship.php b/CRM/Contact/DAO/Relationship.php index 14b10a5280..8ad5e40702 100644 --- a/CRM/Contact/DAO/Relationship.php +++ b/CRM/Contact/DAO/Relationship.php @@ -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'); } /** diff --git a/CRM/Contact/DAO/RelationshipCache.php b/CRM/Contact/DAO/RelationshipCache.php index cfa5a75bc2..1e874cb2bd 100644 --- a/CRM/Contact/DAO/RelationshipCache.php +++ b/CRM/Contact/DAO/RelationshipCache.php @@ -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'); } /** diff --git a/CRM/Contact/DAO/RelationshipType.php b/CRM/Contact/DAO/RelationshipType.php index e703e2fe84..3ac981c81f 100644 --- a/CRM/Contact/DAO/RelationshipType.php +++ b/CRM/Contact/DAO/RelationshipType.php @@ -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'); } /** diff --git a/CRM/Contact/DAO/SavedSearch.php b/CRM/Contact/DAO/SavedSearch.php index a5fb2d4603..c532997a2a 100644 --- a/CRM/Contact/DAO/SavedSearch.php +++ b/CRM/Contact/DAO/SavedSearch.php @@ -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'); } /** diff --git a/CRM/Contact/DAO/SubscriptionHistory.php b/CRM/Contact/DAO/SubscriptionHistory.php index 421ea33815..cbdab5b535 100644 --- a/CRM/Contact/DAO/SubscriptionHistory.php +++ b/CRM/Contact/DAO/SubscriptionHistory.php @@ -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'); } /** diff --git a/CRM/Contribute/DAO/Contribution.php b/CRM/Contribute/DAO/Contribution.php index 45f51b756c..174e9bf695 100644 --- a/CRM/Contribute/DAO/Contribution.php +++ b/CRM/Contribute/DAO/Contribution.php @@ -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'); } /** diff --git a/CRM/Contribute/DAO/ContributionPage.php b/CRM/Contribute/DAO/ContributionPage.php index 80ec08d3ac..be85752fb7 100644 --- a/CRM/Contribute/DAO/ContributionPage.php +++ b/CRM/Contribute/DAO/ContributionPage.php @@ -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'); } /** diff --git a/CRM/Contribute/DAO/ContributionProduct.php b/CRM/Contribute/DAO/ContributionProduct.php index e5a0f05370..9837f2b8c0 100644 --- a/CRM/Contribute/DAO/ContributionProduct.php +++ b/CRM/Contribute/DAO/ContributionProduct.php @@ -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'); } /** diff --git a/CRM/Contribute/DAO/ContributionRecur.php b/CRM/Contribute/DAO/ContributionRecur.php index 2ccd7486d6..f61c447051 100644 --- a/CRM/Contribute/DAO/ContributionRecur.php +++ b/CRM/Contribute/DAO/ContributionRecur.php @@ -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'); } /** diff --git a/CRM/Contribute/DAO/ContributionSoft.php b/CRM/Contribute/DAO/ContributionSoft.php index 3a1a9b7af7..fa78630bad 100644 --- a/CRM/Contribute/DAO/ContributionSoft.php +++ b/CRM/Contribute/DAO/ContributionSoft.php @@ -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'); } /** diff --git a/CRM/Contribute/DAO/Premium.php b/CRM/Contribute/DAO/Premium.php index 7e0020c134..ebbafd660e 100644 --- a/CRM/Contribute/DAO/Premium.php +++ b/CRM/Contribute/DAO/Premium.php @@ -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'); } /** diff --git a/CRM/Contribute/DAO/PremiumsProduct.php b/CRM/Contribute/DAO/PremiumsProduct.php index b153adb274..f99e9ddf30 100644 --- a/CRM/Contribute/DAO/PremiumsProduct.php +++ b/CRM/Contribute/DAO/PremiumsProduct.php @@ -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'); } /** diff --git a/CRM/Contribute/DAO/Product.php b/CRM/Contribute/DAO/Product.php index 8433e1820a..7b481641af 100644 --- a/CRM/Contribute/DAO/Product.php +++ b/CRM/Contribute/DAO/Product.php @@ -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'); } /** diff --git a/CRM/Contribute/DAO/Widget.php b/CRM/Contribute/DAO/Widget.php index 5da47438da..a49f0a9471 100644 --- a/CRM/Contribute/DAO/Widget.php +++ b/CRM/Contribute/DAO/Widget.php @@ -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'); } /** diff --git a/CRM/Core/CodeGen/Specification.php b/CRM/Core/CodeGen/Specification.php index 4d2be52ad4..6a96e0d7c2 100644 --- a/CRM/Core/CodeGen/Specification.php +++ b/CRM/Core/CodeGen/Specification.php @@ -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); - } - } diff --git a/CRM/Core/DAO.php b/CRM/Core/DAO.php index d62fba1401..ee3cfaeebb 100644 --- a/CRM/Core/DAO.php +++ b/CRM/Core/DAO.php @@ -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); } diff --git a/CRM/Core/DAO/ActionLog.php b/CRM/Core/DAO/ActionLog.php index f725a2558a..8eb9523e50 100644 --- a/CRM/Core/DAO/ActionLog.php +++ b/CRM/Core/DAO/ActionLog.php @@ -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'); } /** diff --git a/CRM/Core/DAO/ActionMapping.php b/CRM/Core/DAO/ActionMapping.php index 8a61ce5bbc..3224bc1269 100644 --- a/CRM/Core/DAO/ActionMapping.php +++ b/CRM/Core/DAO/ActionMapping.php @@ -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'); } /** diff --git a/CRM/Core/DAO/ActionSchedule.php b/CRM/Core/DAO/ActionSchedule.php index 666f773ba8..181a1bdee5 100644 --- a/CRM/Core/DAO/ActionSchedule.php +++ b/CRM/Core/DAO/ActionSchedule.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Address.php b/CRM/Core/DAO/Address.php index 7151847db2..257de9924f 100644 --- a/CRM/Core/DAO/Address.php +++ b/CRM/Core/DAO/Address.php @@ -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'); } /** diff --git a/CRM/Core/DAO/AddressFormat.php b/CRM/Core/DAO/AddressFormat.php index 762b90b6a1..d1c1d08842 100644 --- a/CRM/Core/DAO/AddressFormat.php +++ b/CRM/Core/DAO/AddressFormat.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Cache.php b/CRM/Core/DAO/Cache.php index 01bc33ea91..f8366cb2d0 100644 --- a/CRM/Core/DAO/Cache.php +++ b/CRM/Core/DAO/Cache.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Component.php b/CRM/Core/DAO/Component.php index f9b7b077f9..f1d560b656 100644 --- a/CRM/Core/DAO/Component.php +++ b/CRM/Core/DAO/Component.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Country.php b/CRM/Core/DAO/Country.php index 24d458b99c..b91e0062fb 100644 --- a/CRM/Core/DAO/Country.php +++ b/CRM/Core/DAO/Country.php @@ -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'); } /** diff --git a/CRM/Core/DAO/County.php b/CRM/Core/DAO/County.php index 97d2fae58e..9b05e4bee6 100644 --- a/CRM/Core/DAO/County.php +++ b/CRM/Core/DAO/County.php @@ -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'); } /** diff --git a/CRM/Core/DAO/CustomField.php b/CRM/Core/DAO/CustomField.php index 5edafdf5c6..a453096360 100644 --- a/CRM/Core/DAO/CustomField.php +++ b/CRM/Core/DAO/CustomField.php @@ -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'); } /** diff --git a/CRM/Core/DAO/CustomGroup.php b/CRM/Core/DAO/CustomGroup.php index 12dd47769e..8be9d28b24 100644 --- a/CRM/Core/DAO/CustomGroup.php +++ b/CRM/Core/DAO/CustomGroup.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Dashboard.php b/CRM/Core/DAO/Dashboard.php index a9d40d3243..57773da9df 100644 --- a/CRM/Core/DAO/Dashboard.php +++ b/CRM/Core/DAO/Dashboard.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Discount.php b/CRM/Core/DAO/Discount.php index ed2f53e1e1..a18cacfb60 100644 --- a/CRM/Core/DAO/Discount.php +++ b/CRM/Core/DAO/Discount.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Domain.php b/CRM/Core/DAO/Domain.php index 82ccf0f5a8..ce6b480508 100644 --- a/CRM/Core/DAO/Domain.php +++ b/CRM/Core/DAO/Domain.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Email.php b/CRM/Core/DAO/Email.php index 7c0a55b812..4f890d5cf0 100644 --- a/CRM/Core/DAO/Email.php +++ b/CRM/Core/DAO/Email.php @@ -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'); } /** diff --git a/CRM/Core/DAO/EntityFile.php b/CRM/Core/DAO/EntityFile.php index 0d32257d1e..e405a0d0d6 100644 --- a/CRM/Core/DAO/EntityFile.php +++ b/CRM/Core/DAO/EntityFile.php @@ -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'); } /** diff --git a/CRM/Core/DAO/EntityTag.php b/CRM/Core/DAO/EntityTag.php index eb2be19b66..6db35b547c 100644 --- a/CRM/Core/DAO/EntityTag.php +++ b/CRM/Core/DAO/EntityTag.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Extension.php b/CRM/Core/DAO/Extension.php index c666e3ab02..b1fc0de3f6 100644 --- a/CRM/Core/DAO/Extension.php +++ b/CRM/Core/DAO/Extension.php @@ -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'); } /** diff --git a/CRM/Core/DAO/File.php b/CRM/Core/DAO/File.php index dc6508d4a6..620734811c 100644 --- a/CRM/Core/DAO/File.php +++ b/CRM/Core/DAO/File.php @@ -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'); } /** diff --git a/CRM/Core/DAO/IM.php b/CRM/Core/DAO/IM.php index 958b4dda19..fdc40df188 100644 --- a/CRM/Core/DAO/IM.php +++ b/CRM/Core/DAO/IM.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Job.php b/CRM/Core/DAO/Job.php index ebdb62818e..cbc870082e 100644 --- a/CRM/Core/DAO/Job.php +++ b/CRM/Core/DAO/Job.php @@ -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'); } /** diff --git a/CRM/Core/DAO/JobLog.php b/CRM/Core/DAO/JobLog.php index b59a98b1f5..51db971463 100644 --- a/CRM/Core/DAO/JobLog.php +++ b/CRM/Core/DAO/JobLog.php @@ -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'); } /** diff --git a/CRM/Core/DAO/LocBlock.php b/CRM/Core/DAO/LocBlock.php index 154a2e776c..2eca88b4b6 100644 --- a/CRM/Core/DAO/LocBlock.php +++ b/CRM/Core/DAO/LocBlock.php @@ -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'); } /** diff --git a/CRM/Core/DAO/LocationType.php b/CRM/Core/DAO/LocationType.php index 70648f67db..3427ba89b3 100644 --- a/CRM/Core/DAO/LocationType.php +++ b/CRM/Core/DAO/LocationType.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Log.php b/CRM/Core/DAO/Log.php index 182d42f5d4..b550b04515 100644 --- a/CRM/Core/DAO/Log.php +++ b/CRM/Core/DAO/Log.php @@ -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'); } /** diff --git a/CRM/Core/DAO/MailSettings.php b/CRM/Core/DAO/MailSettings.php index acc8278c19..6c3c02f70d 100644 --- a/CRM/Core/DAO/MailSettings.php +++ b/CRM/Core/DAO/MailSettings.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Managed.php b/CRM/Core/DAO/Managed.php index 212817ec78..a67271247c 100644 --- a/CRM/Core/DAO/Managed.php +++ b/CRM/Core/DAO/Managed.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Mapping.php b/CRM/Core/DAO/Mapping.php index 59505d1d5f..3c7639a857 100644 --- a/CRM/Core/DAO/Mapping.php +++ b/CRM/Core/DAO/Mapping.php @@ -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'); } /** diff --git a/CRM/Core/DAO/MappingField.php b/CRM/Core/DAO/MappingField.php index cd5f06e741..bfe139eda9 100644 --- a/CRM/Core/DAO/MappingField.php +++ b/CRM/Core/DAO/MappingField.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Menu.php b/CRM/Core/DAO/Menu.php index 98f3f4ad14..3fb9a797c3 100644 --- a/CRM/Core/DAO/Menu.php +++ b/CRM/Core/DAO/Menu.php @@ -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'); } /** diff --git a/CRM/Core/DAO/MessageTemplate.php b/CRM/Core/DAO/MessageTemplate.php index 5c7965c83f..f3da47e578 100644 --- a/CRM/Core/DAO/MessageTemplate.php +++ b/CRM/Core/DAO/MessageTemplate.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Navigation.php b/CRM/Core/DAO/Navigation.php index b567777810..ed52b19610 100644 --- a/CRM/Core/DAO/Navigation.php +++ b/CRM/Core/DAO/Navigation.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Note.php b/CRM/Core/DAO/Note.php index 748d1076f1..3c730b47ee 100644 --- a/CRM/Core/DAO/Note.php +++ b/CRM/Core/DAO/Note.php @@ -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'); } /** diff --git a/CRM/Core/DAO/OpenID.php b/CRM/Core/DAO/OpenID.php index 1a61aba156..dfe13c489d 100644 --- a/CRM/Core/DAO/OpenID.php +++ b/CRM/Core/DAO/OpenID.php @@ -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'); } /** diff --git a/CRM/Core/DAO/OptionGroup.php b/CRM/Core/DAO/OptionGroup.php index 9feb9fd8f1..76ef9a0bcf 100644 --- a/CRM/Core/DAO/OptionGroup.php +++ b/CRM/Core/DAO/OptionGroup.php @@ -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'); } /** diff --git a/CRM/Core/DAO/OptionValue.php b/CRM/Core/DAO/OptionValue.php index 7f0c3644f2..5fb8ddb452 100644 --- a/CRM/Core/DAO/OptionValue.php +++ b/CRM/Core/DAO/OptionValue.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Phone.php b/CRM/Core/DAO/Phone.php index 9a6b668620..5c0b7816a5 100644 --- a/CRM/Core/DAO/Phone.php +++ b/CRM/Core/DAO/Phone.php @@ -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'); } /** diff --git a/CRM/Core/DAO/PreferencesDate.php b/CRM/Core/DAO/PreferencesDate.php index b1d08e7cd0..78fa11538f 100644 --- a/CRM/Core/DAO/PreferencesDate.php +++ b/CRM/Core/DAO/PreferencesDate.php @@ -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'); } /** diff --git a/CRM/Core/DAO/PrevNextCache.php b/CRM/Core/DAO/PrevNextCache.php index a39549db9e..258e3ef5c4 100644 --- a/CRM/Core/DAO/PrevNextCache.php +++ b/CRM/Core/DAO/PrevNextCache.php @@ -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'); } /** diff --git a/CRM/Core/DAO/PrintLabel.php b/CRM/Core/DAO/PrintLabel.php index 129e80804d..97575a87dd 100644 --- a/CRM/Core/DAO/PrintLabel.php +++ b/CRM/Core/DAO/PrintLabel.php @@ -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'); } /** diff --git a/CRM/Core/DAO/RecurringEntity.php b/CRM/Core/DAO/RecurringEntity.php index d22aa96ac7..1cffe8c273 100644 --- a/CRM/Core/DAO/RecurringEntity.php +++ b/CRM/Core/DAO/RecurringEntity.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Setting.php b/CRM/Core/DAO/Setting.php index 160f781cda..4fb42fd82a 100644 --- a/CRM/Core/DAO/Setting.php +++ b/CRM/Core/DAO/Setting.php @@ -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'); } /** diff --git a/CRM/Core/DAO/StateProvince.php b/CRM/Core/DAO/StateProvince.php index 80a91c2e1f..7342cb6e69 100644 --- a/CRM/Core/DAO/StateProvince.php +++ b/CRM/Core/DAO/StateProvince.php @@ -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'); } /** diff --git a/CRM/Core/DAO/StatusPreference.php b/CRM/Core/DAO/StatusPreference.php index b06b206f24..e5654e6014 100644 --- a/CRM/Core/DAO/StatusPreference.php +++ b/CRM/Core/DAO/StatusPreference.php @@ -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'); } /** diff --git a/CRM/Core/DAO/SystemLog.php b/CRM/Core/DAO/SystemLog.php index c18ee55ebc..d3cc2ec358 100644 --- a/CRM/Core/DAO/SystemLog.php +++ b/CRM/Core/DAO/SystemLog.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Tag.php b/CRM/Core/DAO/Tag.php index 65ae7a378b..15078e57da 100644 --- a/CRM/Core/DAO/Tag.php +++ b/CRM/Core/DAO/Tag.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Timezone.php b/CRM/Core/DAO/Timezone.php index 5f9abdfc6c..bae04f5e2d 100644 --- a/CRM/Core/DAO/Timezone.php +++ b/CRM/Core/DAO/Timezone.php @@ -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'); } /** diff --git a/CRM/Core/DAO/UFField.php b/CRM/Core/DAO/UFField.php index a112e1c6f3..87cde6f32d 100644 --- a/CRM/Core/DAO/UFField.php +++ b/CRM/Core/DAO/UFField.php @@ -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'); } /** diff --git a/CRM/Core/DAO/UFGroup.php b/CRM/Core/DAO/UFGroup.php index ae79d22da8..89d25b997e 100644 --- a/CRM/Core/DAO/UFGroup.php +++ b/CRM/Core/DAO/UFGroup.php @@ -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'); } /** diff --git a/CRM/Core/DAO/UFJoin.php b/CRM/Core/DAO/UFJoin.php index 98639423b1..28f3f56340 100644 --- a/CRM/Core/DAO/UFJoin.php +++ b/CRM/Core/DAO/UFJoin.php @@ -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'); } /** diff --git a/CRM/Core/DAO/UFMatch.php b/CRM/Core/DAO/UFMatch.php index fa08f60b22..6a5d32b772 100644 --- a/CRM/Core/DAO/UFMatch.php +++ b/CRM/Core/DAO/UFMatch.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Website.php b/CRM/Core/DAO/Website.php index e9415359c1..aed21d3676 100644 --- a/CRM/Core/DAO/Website.php +++ b/CRM/Core/DAO/Website.php @@ -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'); } /** diff --git a/CRM/Core/DAO/WordReplacement.php b/CRM/Core/DAO/WordReplacement.php index 65ac087b55..691291abcf 100644 --- a/CRM/Core/DAO/WordReplacement.php +++ b/CRM/Core/DAO/WordReplacement.php @@ -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'); } /** diff --git a/CRM/Core/DAO/Worldregion.php b/CRM/Core/DAO/Worldregion.php index 1dd866013d..0974aecff5 100644 --- a/CRM/Core/DAO/Worldregion.php +++ b/CRM/Core/DAO/Worldregion.php @@ -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'); } /** diff --git a/CRM/Cxn/DAO/Cxn.php b/CRM/Cxn/DAO/Cxn.php index b0b70337bd..03e9fc8ef0 100644 --- a/CRM/Cxn/DAO/Cxn.php +++ b/CRM/Cxn/DAO/Cxn.php @@ -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'); } /** diff --git a/CRM/Dedupe/DAO/Exception.php b/CRM/Dedupe/DAO/Exception.php index cdbb87cc90..ca488f4208 100644 --- a/CRM/Dedupe/DAO/Exception.php +++ b/CRM/Dedupe/DAO/Exception.php @@ -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'); } /** diff --git a/CRM/Dedupe/DAO/Rule.php b/CRM/Dedupe/DAO/Rule.php index dea3d38759..a09f6a7f4b 100644 --- a/CRM/Dedupe/DAO/Rule.php +++ b/CRM/Dedupe/DAO/Rule.php @@ -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'); } /** diff --git a/CRM/Dedupe/DAO/RuleGroup.php b/CRM/Dedupe/DAO/RuleGroup.php index 366ff64246..62c6a4b2d0 100644 --- a/CRM/Dedupe/DAO/RuleGroup.php +++ b/CRM/Dedupe/DAO/RuleGroup.php @@ -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'); } /** diff --git a/CRM/Event/Cart/DAO/Cart.php b/CRM/Event/Cart/DAO/Cart.php index 38da6b3227..bf8ece70d4 100644 --- a/CRM/Event/Cart/DAO/Cart.php +++ b/CRM/Event/Cart/DAO/Cart.php @@ -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'); } /** diff --git a/CRM/Event/Cart/DAO/EventInCart.php b/CRM/Event/Cart/DAO/EventInCart.php index d1550cd54a..61f42ceb22 100644 --- a/CRM/Event/Cart/DAO/EventInCart.php +++ b/CRM/Event/Cart/DAO/EventInCart.php @@ -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'); } /** diff --git a/CRM/Event/DAO/Event.php b/CRM/Event/DAO/Event.php index a7febe5bfe..553ddd7e1f 100644 --- a/CRM/Event/DAO/Event.php +++ b/CRM/Event/DAO/Event.php @@ -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'); } /** diff --git a/CRM/Event/DAO/Participant.php b/CRM/Event/DAO/Participant.php index 94db537c3a..3d7a2fa49d 100644 --- a/CRM/Event/DAO/Participant.php +++ b/CRM/Event/DAO/Participant.php @@ -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'); } /** diff --git a/CRM/Event/DAO/ParticipantPayment.php b/CRM/Event/DAO/ParticipantPayment.php index ee0070dfc2..44cff71fab 100644 --- a/CRM/Event/DAO/ParticipantPayment.php +++ b/CRM/Event/DAO/ParticipantPayment.php @@ -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'); } /** diff --git a/CRM/Event/DAO/ParticipantStatusType.php b/CRM/Event/DAO/ParticipantStatusType.php index 2b6e4f8f03..cf410c357b 100644 --- a/CRM/Event/DAO/ParticipantStatusType.php +++ b/CRM/Event/DAO/ParticipantStatusType.php @@ -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'); } /** diff --git a/CRM/Export/Controller/Standalone.php b/CRM/Export/Controller/Standalone.php index f4bb8ca534..f95f4b8d84 100644 --- a/CRM/Export/Controller/Standalone.php +++ b/CRM/Export/Controller/Standalone.php @@ -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)])); } /** diff --git a/CRM/Financial/DAO/Currency.php b/CRM/Financial/DAO/Currency.php index f96650badc..868495d6d7 100644 --- a/CRM/Financial/DAO/Currency.php +++ b/CRM/Financial/DAO/Currency.php @@ -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'); } /** diff --git a/CRM/Financial/DAO/EntityFinancialAccount.php b/CRM/Financial/DAO/EntityFinancialAccount.php index 973a99ca83..6474da9830 100644 --- a/CRM/Financial/DAO/EntityFinancialAccount.php +++ b/CRM/Financial/DAO/EntityFinancialAccount.php @@ -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'); } /** diff --git a/CRM/Financial/DAO/EntityFinancialTrxn.php b/CRM/Financial/DAO/EntityFinancialTrxn.php index 1f959ad611..4935cf9f2c 100644 --- a/CRM/Financial/DAO/EntityFinancialTrxn.php +++ b/CRM/Financial/DAO/EntityFinancialTrxn.php @@ -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'); } /** diff --git a/CRM/Financial/DAO/FinancialAccount.php b/CRM/Financial/DAO/FinancialAccount.php index d8f161e943..30be03ce47 100644 --- a/CRM/Financial/DAO/FinancialAccount.php +++ b/CRM/Financial/DAO/FinancialAccount.php @@ -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'); } /** diff --git a/CRM/Financial/DAO/FinancialItem.php b/CRM/Financial/DAO/FinancialItem.php index a59dc38e66..dd75f2405a 100644 --- a/CRM/Financial/DAO/FinancialItem.php +++ b/CRM/Financial/DAO/FinancialItem.php @@ -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'); } /** diff --git a/CRM/Financial/DAO/FinancialTrxn.php b/CRM/Financial/DAO/FinancialTrxn.php index 157984607f..e94ee652f4 100644 --- a/CRM/Financial/DAO/FinancialTrxn.php +++ b/CRM/Financial/DAO/FinancialTrxn.php @@ -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'); } /** diff --git a/CRM/Financial/DAO/FinancialType.php b/CRM/Financial/DAO/FinancialType.php index cd99c56281..d9b1ce7f58 100644 --- a/CRM/Financial/DAO/FinancialType.php +++ b/CRM/Financial/DAO/FinancialType.php @@ -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'); } /** diff --git a/CRM/Financial/DAO/PaymentProcessor.php b/CRM/Financial/DAO/PaymentProcessor.php index 7f1e8334a9..f882e0d0b1 100644 --- a/CRM/Financial/DAO/PaymentProcessor.php +++ b/CRM/Financial/DAO/PaymentProcessor.php @@ -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'); } /** diff --git a/CRM/Financial/DAO/PaymentProcessorType.php b/CRM/Financial/DAO/PaymentProcessorType.php index 597b8d27f0..3b01445876 100644 --- a/CRM/Financial/DAO/PaymentProcessorType.php +++ b/CRM/Financial/DAO/PaymentProcessorType.php @@ -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'); } /** diff --git a/CRM/Financial/DAO/PaymentToken.php b/CRM/Financial/DAO/PaymentToken.php index cb2498f083..1608dab55d 100644 --- a/CRM/Financial/DAO/PaymentToken.php +++ b/CRM/Financial/DAO/PaymentToken.php @@ -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'); } /** diff --git a/CRM/Friend/DAO/Friend.php b/CRM/Friend/DAO/Friend.php index 1513ab9dcc..690419d0b9 100644 --- a/CRM/Friend/DAO/Friend.php +++ b/CRM/Friend/DAO/Friend.php @@ -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'); } /** diff --git a/CRM/Grant/DAO/Grant.php b/CRM/Grant/DAO/Grant.php index 91b816359a..05d6701011 100644 --- a/CRM/Grant/DAO/Grant.php +++ b/CRM/Grant/DAO/Grant.php @@ -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'); } /** diff --git a/CRM/Mailing/DAO/BouncePattern.php b/CRM/Mailing/DAO/BouncePattern.php index 43822bf7c5..8c74d99ecf 100644 --- a/CRM/Mailing/DAO/BouncePattern.php +++ b/CRM/Mailing/DAO/BouncePattern.php @@ -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'); } /** diff --git a/CRM/Mailing/DAO/BounceType.php b/CRM/Mailing/DAO/BounceType.php index a31f8324f4..6511adf6d2 100644 --- a/CRM/Mailing/DAO/BounceType.php +++ b/CRM/Mailing/DAO/BounceType.php @@ -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'); } /** diff --git a/CRM/Mailing/DAO/Mailing.php b/CRM/Mailing/DAO/Mailing.php index 084489593d..95b4563035 100644 --- a/CRM/Mailing/DAO/Mailing.php +++ b/CRM/Mailing/DAO/Mailing.php @@ -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'); } /** diff --git a/CRM/Mailing/DAO/MailingAB.php b/CRM/Mailing/DAO/MailingAB.php index 0e2215e1fc..1932930dc2 100644 --- a/CRM/Mailing/DAO/MailingAB.php +++ b/CRM/Mailing/DAO/MailingAB.php @@ -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'); } /** diff --git a/CRM/Mailing/DAO/MailingComponent.php b/CRM/Mailing/DAO/MailingComponent.php index f1b81f1562..b544c0ea2e 100644 --- a/CRM/Mailing/DAO/MailingComponent.php +++ b/CRM/Mailing/DAO/MailingComponent.php @@ -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'); } /** diff --git a/CRM/Mailing/DAO/MailingGroup.php b/CRM/Mailing/DAO/MailingGroup.php index 220bfd13cb..0d3497c6cd 100644 --- a/CRM/Mailing/DAO/MailingGroup.php +++ b/CRM/Mailing/DAO/MailingGroup.php @@ -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'); } /** diff --git a/CRM/Mailing/DAO/MailingJob.php b/CRM/Mailing/DAO/MailingJob.php index bde7e35f39..edbd20cd5f 100644 --- a/CRM/Mailing/DAO/MailingJob.php +++ b/CRM/Mailing/DAO/MailingJob.php @@ -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'); } /** diff --git a/CRM/Mailing/DAO/Recipients.php b/CRM/Mailing/DAO/Recipients.php index 1852c7ac02..7e6bb43ab1 100644 --- a/CRM/Mailing/DAO/Recipients.php +++ b/CRM/Mailing/DAO/Recipients.php @@ -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'); } /** diff --git a/CRM/Mailing/DAO/Spool.php b/CRM/Mailing/DAO/Spool.php index 6027afd167..6329553862 100644 --- a/CRM/Mailing/DAO/Spool.php +++ b/CRM/Mailing/DAO/Spool.php @@ -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'); } /** diff --git a/CRM/Mailing/DAO/TrackableURL.php b/CRM/Mailing/DAO/TrackableURL.php index 3d39634397..0452ac93ba 100644 --- a/CRM/Mailing/DAO/TrackableURL.php +++ b/CRM/Mailing/DAO/TrackableURL.php @@ -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'); } /** diff --git a/CRM/Mailing/Event/DAO/Bounce.php b/CRM/Mailing/Event/DAO/Bounce.php index 1cd4024fb4..7252307252 100644 --- a/CRM/Mailing/Event/DAO/Bounce.php +++ b/CRM/Mailing/Event/DAO/Bounce.php @@ -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'); } /** diff --git a/CRM/Mailing/Event/DAO/Confirm.php b/CRM/Mailing/Event/DAO/Confirm.php index 343430c157..3c757f302d 100644 --- a/CRM/Mailing/Event/DAO/Confirm.php +++ b/CRM/Mailing/Event/DAO/Confirm.php @@ -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'); } /** diff --git a/CRM/Mailing/Event/DAO/Delivered.php b/CRM/Mailing/Event/DAO/Delivered.php index 147d70fcf8..93bb85e2d5 100644 --- a/CRM/Mailing/Event/DAO/Delivered.php +++ b/CRM/Mailing/Event/DAO/Delivered.php @@ -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'); } /** diff --git a/CRM/Mailing/Event/DAO/Forward.php b/CRM/Mailing/Event/DAO/Forward.php index ac1c8d8967..6650dd0c0c 100644 --- a/CRM/Mailing/Event/DAO/Forward.php +++ b/CRM/Mailing/Event/DAO/Forward.php @@ -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'); } /** diff --git a/CRM/Mailing/Event/DAO/Opened.php b/CRM/Mailing/Event/DAO/Opened.php index cbd24372df..9ce62afcf5 100644 --- a/CRM/Mailing/Event/DAO/Opened.php +++ b/CRM/Mailing/Event/DAO/Opened.php @@ -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'); } /** diff --git a/CRM/Mailing/Event/DAO/Queue.php b/CRM/Mailing/Event/DAO/Queue.php index 073ef521c9..4dd92f1047 100644 --- a/CRM/Mailing/Event/DAO/Queue.php +++ b/CRM/Mailing/Event/DAO/Queue.php @@ -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'); } /** diff --git a/CRM/Mailing/Event/DAO/Reply.php b/CRM/Mailing/Event/DAO/Reply.php index 8fc31b3eb3..3c3cb9cff7 100644 --- a/CRM/Mailing/Event/DAO/Reply.php +++ b/CRM/Mailing/Event/DAO/Reply.php @@ -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'); } /** diff --git a/CRM/Mailing/Event/DAO/Subscribe.php b/CRM/Mailing/Event/DAO/Subscribe.php index ce577b24d7..6659fcca1d 100644 --- a/CRM/Mailing/Event/DAO/Subscribe.php +++ b/CRM/Mailing/Event/DAO/Subscribe.php @@ -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'); } /** diff --git a/CRM/Mailing/Event/DAO/TrackableURLOpen.php b/CRM/Mailing/Event/DAO/TrackableURLOpen.php index 88c84b0b92..85f4b96810 100644 --- a/CRM/Mailing/Event/DAO/TrackableURLOpen.php +++ b/CRM/Mailing/Event/DAO/TrackableURLOpen.php @@ -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'); } /** diff --git a/CRM/Mailing/Event/DAO/Unsubscribe.php b/CRM/Mailing/Event/DAO/Unsubscribe.php index e5a230b66d..71432c59ab 100644 --- a/CRM/Mailing/Event/DAO/Unsubscribe.php +++ b/CRM/Mailing/Event/DAO/Unsubscribe.php @@ -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'); } /** diff --git a/CRM/Member/DAO/Membership.php b/CRM/Member/DAO/Membership.php index 384c69ae6b..86173b83af 100644 --- a/CRM/Member/DAO/Membership.php +++ b/CRM/Member/DAO/Membership.php @@ -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'); } /** diff --git a/CRM/Member/DAO/MembershipBlock.php b/CRM/Member/DAO/MembershipBlock.php index 91e65e6eeb..9bfff52639 100644 --- a/CRM/Member/DAO/MembershipBlock.php +++ b/CRM/Member/DAO/MembershipBlock.php @@ -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'); } /** diff --git a/CRM/Member/DAO/MembershipLog.php b/CRM/Member/DAO/MembershipLog.php index bd0b4f7924..1619acbedb 100644 --- a/CRM/Member/DAO/MembershipLog.php +++ b/CRM/Member/DAO/MembershipLog.php @@ -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'); } /** diff --git a/CRM/Member/DAO/MembershipPayment.php b/CRM/Member/DAO/MembershipPayment.php index ac386eee55..67e9bc6057 100644 --- a/CRM/Member/DAO/MembershipPayment.php +++ b/CRM/Member/DAO/MembershipPayment.php @@ -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'); } /** diff --git a/CRM/Member/DAO/MembershipStatus.php b/CRM/Member/DAO/MembershipStatus.php index 5b780e4a5b..5857dca3cf 100644 --- a/CRM/Member/DAO/MembershipStatus.php +++ b/CRM/Member/DAO/MembershipStatus.php @@ -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'); } /** diff --git a/CRM/Member/DAO/MembershipType.php b/CRM/Member/DAO/MembershipType.php index 4f5cad0e29..d904024ac4 100644 --- a/CRM/Member/DAO/MembershipType.php +++ b/CRM/Member/DAO/MembershipType.php @@ -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'); } /** diff --git a/CRM/PCP/DAO/PCP.php b/CRM/PCP/DAO/PCP.php index eb56569675..bd3fedb780 100644 --- a/CRM/PCP/DAO/PCP.php +++ b/CRM/PCP/DAO/PCP.php @@ -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'); } /** diff --git a/CRM/PCP/DAO/PCPBlock.php b/CRM/PCP/DAO/PCPBlock.php index 74f5204beb..711dc584c9 100644 --- a/CRM/PCP/DAO/PCPBlock.php +++ b/CRM/PCP/DAO/PCPBlock.php @@ -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'); } /** diff --git a/CRM/Pledge/DAO/Pledge.php b/CRM/Pledge/DAO/Pledge.php index 5f5a7632ed..2a2f80900d 100644 --- a/CRM/Pledge/DAO/Pledge.php +++ b/CRM/Pledge/DAO/Pledge.php @@ -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'); } /** diff --git a/CRM/Pledge/DAO/PledgeBlock.php b/CRM/Pledge/DAO/PledgeBlock.php index 989b14383d..111d085910 100644 --- a/CRM/Pledge/DAO/PledgeBlock.php +++ b/CRM/Pledge/DAO/PledgeBlock.php @@ -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'); } /** diff --git a/CRM/Pledge/DAO/PledgePayment.php b/CRM/Pledge/DAO/PledgePayment.php index 234a5342b2..bb88db54a7 100644 --- a/CRM/Pledge/DAO/PledgePayment.php +++ b/CRM/Pledge/DAO/PledgePayment.php @@ -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'); } /** diff --git a/CRM/Price/DAO/LineItem.php b/CRM/Price/DAO/LineItem.php index 2ad0da2b29..7e9b779089 100644 --- a/CRM/Price/DAO/LineItem.php +++ b/CRM/Price/DAO/LineItem.php @@ -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'); } /** diff --git a/CRM/Price/DAO/PriceField.php b/CRM/Price/DAO/PriceField.php index e14f60999b..2f5d0d653a 100644 --- a/CRM/Price/DAO/PriceField.php +++ b/CRM/Price/DAO/PriceField.php @@ -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'); } /** diff --git a/CRM/Price/DAO/PriceFieldValue.php b/CRM/Price/DAO/PriceFieldValue.php index c7c8e0913e..2057dd655d 100644 --- a/CRM/Price/DAO/PriceFieldValue.php +++ b/CRM/Price/DAO/PriceFieldValue.php @@ -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'); } /** diff --git a/CRM/Price/DAO/PriceSet.php b/CRM/Price/DAO/PriceSet.php index 1dd8435170..26fa138098 100644 --- a/CRM/Price/DAO/PriceSet.php +++ b/CRM/Price/DAO/PriceSet.php @@ -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'); } /** diff --git a/CRM/Price/DAO/PriceSetEntity.php b/CRM/Price/DAO/PriceSetEntity.php index 78e479a53a..4b1d3749a5 100644 --- a/CRM/Price/DAO/PriceSetEntity.php +++ b/CRM/Price/DAO/PriceSetEntity.php @@ -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'); } /** diff --git a/CRM/Queue/DAO/QueueItem.php b/CRM/Queue/DAO/QueueItem.php index a78b613e15..7ee05fcafa 100644 --- a/CRM/Queue/DAO/QueueItem.php +++ b/CRM/Queue/DAO/QueueItem.php @@ -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'); } /** diff --git a/CRM/Report/DAO/ReportInstance.php b/CRM/Report/DAO/ReportInstance.php index 08a380c76f..f4ab944703 100644 --- a/CRM/Report/DAO/ReportInstance.php +++ b/CRM/Report/DAO/ReportInstance.php @@ -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'); } /** diff --git a/CRM/SMS/DAO/Provider.php b/CRM/SMS/DAO/Provider.php index 3aa49ab0a6..afdd808359 100644 --- a/CRM/SMS/DAO/Provider.php +++ b/CRM/SMS/DAO/Provider.php @@ -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'); } /** diff --git a/Civi/Api4/Generic/AbstractEntity.php b/Civi/Api4/Generic/AbstractEntity.php index 269bcc31b3..8084614b14 100644 --- a/Civi/Api4/Generic/AbstractEntity.php +++ b/Civi/Api4/Generic/AbstractEntity.php @@ -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); diff --git a/Civi/Api4/Generic/DAOEntity.php b/Civi/Api4/Generic/DAOEntity.php index a7c47ee2e9..c27aac4ce0 100644 --- a/Civi/Api4/Generic/DAOEntity.php +++ b/Civi/Api4/Generic/DAOEntity.php @@ -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; } /** diff --git a/xml/schema/Contribute/ContributionRecur.xml b/xml/schema/Contribute/ContributionRecur.xml index 11e70b6afc..00411d639b 100644 --- a/xml/schema/Contribute/ContributionRecur.xml +++ b/xml/schema/Contribute/ContributionRecur.xml @@ -5,7 +5,7 @@ civicrm_contribution_recur 1.6 true - Recurring Contributions + Recurring Contribution id contribution_recur_id diff --git a/xml/schema/Core/IM.xml b/xml/schema/Core/IM.xml index f7738d969c..58ca90324d 100644 --- a/xml/schema/Core/IM.xml +++ b/xml/schema/Core/IM.xml @@ -8,6 +8,7 @@ 1.1 true Instant Messaging + Instant Messaging fa-comments-o id diff --git a/xml/schema/Report/ReportInstance.xml b/xml/schema/Report/ReportInstance.xml index 028c6fb722..d85b605c5d 100644 --- a/xml/schema/Report/ReportInstance.xml +++ b/xml/schema/Report/ReportInstance.xml @@ -6,7 +6,7 @@ civicrm_report_instance Users can save their report instance and put in a cron tab etc. 2.2 - Reports + Report fa-bar-chart id diff --git a/xml/templates/dao.tpl b/xml/templates/dao.tpl index 87a3463531..034137433e 100644 --- a/xml/templates/dao.tpl +++ b/xml/templates/dao.tpl @@ -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} -- 2.25.1