-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Add ts() function within CRM_Core_Error::statusBounce() method #20857
Conversation
(Standard links)
|
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])); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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'
Co-authored-by: demeritcowboy <demeritcowboy@hotmail.com>
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()
.