Skip to content

Commit

Permalink
fix(l10n): Change the wording information about workspace quota
Browse files Browse the repository at this point in the history
Signed-off-by: Baptiste Fotia <[email protected]>
  • Loading branch information
zak39 committed Apr 25, 2024
1 parent cc54676 commit d76c9ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/Commands/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$unit = strtolower($matches[0]);

if (!$this->checkUnitBytes($unit)) {
throw new \Exception('You cannot define the good unit. Only units allow are : kb, mb, gb or tb');
throw new \Exception('You didn\'t define the good unit for quota. Allowed units are: kb, mb, gb or tb');
}
}

Expand Down Expand Up @@ -161,7 +161,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$unit = strtolower($matches[0]);

if (!$this->checkUnitBytes($unit)) {
throw new \Exception('You cannot define the good unit. Only units allow are : kb, mb, gb or tb');
throw new \Exception('You didn\'t define the good unit for quota. Allowed units are: kb, mb, gb or tb');
}

$bytes = $this->convertToByte($value);
Expand Down
6 changes: 3 additions & 3 deletions lib/Commands/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
. "Please, you must define these 2 headers : "
. "%s : To specify the workspace name."
. "%s : To specify the user's user-id or email address."
. "%s : To specify the quota for the workspace.",
. "%s : To specify the workspace quota.",
implode(", ", Csv::WORKSPACE_FIELD),
implode(", ", Csv::USER_FIELD),
implode(", ", Csv::QUOTA_FIELD)
Expand All @@ -86,7 +86,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
. "Please, you must define these 2 headers :\n"
. " - %s : To specify the workspace name.\n"
. " - %s : To specify the user's user-id or email address.\n"
. " - %s : To specify the quota for the workspace.",
. " - %s : To specify the workspace quota.",
implode(", ", Csv::WORKSPACE_FIELD),
implode(", ", Csv::USER_FIELD),
implode(", ", Csv::QUOTA_FIELD)
Expand All @@ -105,7 +105,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$unit = strtolower($matches[0]);

if (!$this->checkUnitBytes($unit)) {
throw new \Exception('You cannot define the good unit. Only units allow are : kb, mb, gb or tb');
throw new \Exception('You didn\'t define the good unit for quota. Allowed units are: kb, mb, gb or tb');
}
}

Expand Down

0 comments on commit d76c9ac

Please sign in to comment.