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

Minor misc fixes #1986

Merged
merged 9 commits into from
Aug 15, 2023
Merged

Conversation

PeterMis
Copy link
Member

@PeterMis PeterMis self-assigned this Aug 15, 2023
Copy link
Member

@dasgarner dasgarner left a comment

Choose a reason for hiding this comment

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

Translation tweaks in commented cases.

throw new InvalidArgumentException(__('This Player is not configured or ready to receive push commands over XMR. Please contact your administrator.'), 'xmrRegistered');
if ($display->xmrChannel == '' || $display->xmrPubKey == '') {
throw new InvalidArgumentException(
__(sprintf(
Copy link
Member

Choose a reason for hiding this comment

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

This needs to be the other way around sprintf(__())

Copy link
Member Author

Choose a reason for hiding this comment

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

whoops, fixed


$displayAction = clone $action;

try {
$displayAction->setIdentity($display->xmrChannel, $display->xmrPubKey);
} catch (\Exception $exception) {
throw new InvalidArgumentException(__('Invalid XMR registration'), 'xmrPubKey');
throw new InvalidArgumentException(
__(sprintf(
Copy link
Member

Choose a reason for hiding this comment

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

As above

throw new ConfigurationException(sprintf(__('%d of %d player actions failed'), $failures, count($this->actions)));
if ($failures > 0) {
throw new ConfigurationException(
sprintf(
Copy link
Member

Choose a reason for hiding this comment

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

This one is the right way around 😄

@PeterMis PeterMis merged commit 4624b2e into xibosignage:westphal Aug 15, 2023
2 checks passed
@PeterMis PeterMis deleted the fixes/minor-misc-fixes branch August 15, 2023 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants