Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-1563

Wrong ts()-tagging for new contact (sub-)types

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.7
    • Component/s: Internationalisation
    • Labels:
      None

      Description

      CRM/Contact/Form/Edit.php line 175 contains wrong ts()tagging for new contact (sub)types:

      if ( $this->_contactSubType ) {
      CRM_Utils_System::setTitle( ts( 'New %1', array(1 => $this->_contactSubType ) ) );
      } else {
      CRM_Utils_System::setTitle( ts( 'New %1', array(1 => $this->_contactType ) ) );
      }

      This is wrong, as the (sub-)types might have different genders in different lanugages, so the 'New %1' string might translate to different forms. There's no trivial solution to this, as the contact subtypes are user-defined.

        Attachments

          Activity

            People

            • Assignee:
              sunil Sunil Pawar
              Reporter:
              shot Piotr Szotkowski
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: