mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 14:52:40 +01:00
Improve translation of an "arc land" string
Summary: This lost formatting in a pht() conversion; give the bold back and make it properly translatable. Test Plan: Will land. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D12843
This commit is contained in:
parent
383633e63f
commit
c6fa42b9c5
1 changed files with 18 additions and 6 deletions
|
@ -25,6 +25,9 @@ final class ArcanistLandWorkflow extends ArcanistWorkflow {
|
||||||
private $revision;
|
private $revision;
|
||||||
private $messageFile;
|
private $messageFile;
|
||||||
|
|
||||||
|
const REFTYPE_BRANCH = 'branch';
|
||||||
|
const REFTYPE_BOOKMARK = 'bookmark';
|
||||||
|
|
||||||
public function getRevisionDict() {
|
public function getRevisionDict() {
|
||||||
return $this->revision;
|
return $this->revision;
|
||||||
}
|
}
|
||||||
|
@ -401,12 +404,21 @@ EOTEXT
|
||||||
$repository_api->execxLocal('checkout %s', $this->branch);
|
$repository_api->execxLocal('checkout %s', $this->branch);
|
||||||
}
|
}
|
||||||
|
|
||||||
echo phutil_console_format(
|
switch ($this->branchType) {
|
||||||
"%s\n",
|
case self::REFTYPE_BOOKMARK:
|
||||||
pht(
|
$message = pht(
|
||||||
'Switched to %s **%s**. Identifying and merging...',
|
'Switched to bookmark **%s**. Identifying and merging...',
|
||||||
$this->branchType,
|
$this->branch);
|
||||||
$this->branch));
|
break;
|
||||||
|
case self::REFTYPE_BRANCH:
|
||||||
|
default:
|
||||||
|
$message = pht(
|
||||||
|
'Switched to branch **%s**. Identifying and merging...',
|
||||||
|
$this->branch);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
echo phutil_console_format($message."\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
private function printPendingCommits() {
|
private function printPendingCommits() {
|
||||||
|
|
Loading…
Reference in a new issue