Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use I18n::translate() instead of __()
- Loading branch information
Showing
6 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?php echo __('Parameter errors') ?>: | ||
<?php echo I18n::translate('Parameter errors') ?>: | ||
|
||
<?php foreach ($errors as $parameter => $error): ?> | ||
<?php echo $parameter.' - '.$error.PHP_EOL ?> | ||
<?php endforeach ?> | ||
|
||
<?php echo __('For more help, run') ?>: | ||
<?php echo I18n::translate('For more help, run') ?>: | ||
|
||
php index.php --task=<?php echo $task ?> --help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php echo $error ?> | ||
|
||
<?php echo __('For more help, run') ?>: | ||
<?php echo I18n::translate('For more help, run') ?>: | ||
|
||
php index.php --task=<?php echo $task ?> --help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<?php echo __('Minion is a CLI tool for performing tasks.') ?> | ||
<?php echo I18n::translate('Minion is a CLI tool for performing tasks.') ?> | ||
|
||
<?php echo __('Usage') ?>: | ||
<?php echo I18n::translate('Usage') ?>: | ||
|
||
php index.php --task=<task> [--option=<value>] [--option2=<value2>] | ||
|
||
<?php echo __('Where {task} is one of the following') ?>: | ||
<?php echo I18n::translate('Where {task} is one of the following') ?>: | ||
|
||
<?php foreach($tasks as $task): ?> | ||
<?php echo $task.PHP_EOL ?> | ||
<?php endforeach ?> | ||
|
||
<?php echo __('For more information on what a task does and usage details execute') ?>: | ||
<?php echo I18n::translate('For more information on what a task does and usage details execute') ?>: | ||
|
||
php index.php --task=<task> --help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<?php echo __('Usage') ?>: | ||
<?php echo I18n::translate('Usage') ?>: | ||
|
||
php index.php --task=<?php echo $task ?> [--option=<value>] [--option2=<value2>] | ||
|
||
<?php echo __('Details') ?>: | ||
<?php echo I18n::translate('Details') ?>: | ||
|
||
<?php foreach($tags as $tag_name => $tag_content): ?> | ||
<?php echo ucfirst($tag_name).': '.$tag_content.PHP_EOL ?> | ||
<?php endforeach ?> | ||
|
||
<?php echo __('Description') ?>: | ||
<?php echo I18n::translate('Description') ?>: | ||
|
||
<?php echo $description ?> |