Skip to content

Commit

Permalink
log messages translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Stark committed Feb 19, 2018
1 parent b31e728 commit 4faf8f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ All notable changes to this project will be documented in this file.
### Changed
- Prevent multiple background processes
- No `nice` on Windows
- changed log level from `info` to `trace
- changed log level from `info` to `trace`

## [1.1.5] - 2017-12-05
### Changed
Expand Down
6 changes: 3 additions & 3 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function init()
if ($event->job instanceof BaseJob) {
Craft::trace(
Craft::t(
'craft-async-queue',
'async-queue',
'Handling PushEvent for {job} job', ['job' => $event->job->getDescription()]
),
__METHOD__
Expand All @@ -77,7 +77,7 @@ protected function startBackgroundProcess()

Craft::trace(
Craft::t(
'craft-async-queue',
'async-queue',
'Background process running'
),
__METHOD__
Expand All @@ -100,7 +100,7 @@ protected function startBackgroundProcess()

Craft::trace(
Craft::t(
'craft-async-queue',
'async-queue',
'Job status: {status}. Exit code: {code}', ['status' => $process->getStatus(), 'code' => $process->getExitCodeText()]
),
__METHOD__
Expand Down
3 changes: 3 additions & 0 deletions src/translations/en/async-queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@
*/
return [
'AsyncQueue plugin loaded' => 'AsyncQueue plugin loaded',
'Background process running' => 'Background process running',
'Job status: {status}. Exit code: {code}' => 'Job status: {status}. Exit code: {code}',
'Handling PushEvent for {job} job' => 'Handling PushEvent for {job} job',
];

0 comments on commit 4faf8f5

Please sign in to comment.