Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ts() function within CRM_Core_Error::statusBounce() method #20857

Merged
merged 3 commits into from
Jul 24, 2021

Conversation

scardinius
Copy link
Contributor

Overview

I couldn't translate you have tried to access a report that does not exist text.

Before

Some texts within CRM_Core_Error::statusBounce() method don't have translation function.

After

All CRM_Core_Error::statusBounce() methods have translation function ts().

@civibot
Copy link

civibot bot commented Jul 15, 2021

(Standard links)

@civibot civibot bot added the master label Jul 15, 2021
@demeritcowboy
Copy link
Contributor

Intermittent test fail: api.v4.Action.CreateWithOptionGroupTest.testWithCustomDataForMultipleContacts

jenkins retest this please

@@ -75,7 +75,7 @@ public function run() {
) . '.php';
$error = include_once $classFile;
if ($error == FALSE) {
CRM_Core_Error::statusBounce('Participant listing code file: ' . $classFile . ' does not exist. Please verify your custom particpant listing settings in CiviCRM administrative panel.');
CRM_Core_Error::statusBounce(ts('Participant listing code file: %1 does not exist. Please verify your custom particpant listing settings in CiviCRM administrative panel.', [1 => $classFile]));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't even know this existed! It's a bit technical and seems unlikely to be something a user would deal with - so it's a judgement call I guess whether to include it in translation.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also participant is spelled wrong. (particpant)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good points - I think I've managed to add a spelling fix - the other is a judgement call as you say & I'm on the side of 'getting this merged'

eileenmcnaughton and others added 2 commits July 24, 2021 12:57
Co-authored-by: demeritcowboy <demeritcowboy@hotmail.com>
@demeritcowboy demeritcowboy merged commit ae73958 into civicrm:master Jul 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants