[REF] - Add helper function for the repetitive task of fetching multilingual
authorColeman Watts <coleman@civicrm.org>
Thu, 18 Jun 2020 16:21:54 +0000 (12:21 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 21 Jul 2020 19:30:41 +0000 (15:30 -0400)
commit394d18d37dddeef902a9d86bc8cf9e6c49e98069
tree7b7da7edb6dc757367a49d85ffca98e4d15f3db0
parentccfc383799f4e44b48bf1f2186b9eb57db5ca8ae
[REF] - Add helper function for the repetitive task of fetching multilingual

Adds the function CRM_Core_I18n::getMultilingual() and replaces a bunch of
places where the work was being done manually.

This also fixes a suspected bug where multiple domains may not have been compatible
with multiple languages, as the current domain id was previously ignored,
but is respected in the helper function.
13 files changed:
CRM/Admin/Form/Setting/Localization.php
CRM/Case/Info.php
CRM/Contribute/BAO/ContributionPage.php
CRM/Core/BAO/SchemaHandler.php
CRM/Core/BAO/WordReplacement.php
CRM/Core/DAO/AllCoreTables.php
CRM/Core/I18n.php
CRM/Core/I18n/Schema.php
CRM/Logging/Schema.php
CRM/Upgrade/Form.php
CRM/Upgrade/Incremental/Base.php
CRM/Upgrade/Incremental/php/FiveTwentySeven.php
api/v3/System.php