mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 15:22:41 +01:00
Improve some new string translations
Summary: Ref T2217. Cleans up some of the "attached %d file(s)" stuff. Test Plan: Generated some of these transactions and verified they render more naturally. Reviewers: btrahan, chad Reviewed By: chad CC: aran Maniphest Tasks: T2217 Differential Revision: https://secure.phabricator.com/D7096
This commit is contained in:
parent
1327bd2c8a
commit
dfcac84a69
2 changed files with 65 additions and 2 deletions
|
@ -308,7 +308,7 @@ final class ManiphestTransaction
|
||||||
$this->renderHandleList($removed));
|
$this->renderHandleList($removed));
|
||||||
} else if ($removed && $added) {
|
} else if ($removed && $added) {
|
||||||
return pht(
|
return pht(
|
||||||
'%s changed projects, added %d: %s; removed %d: %s',
|
'%s changed project(s), added %d: %s; removed %d: %s',
|
||||||
$this->renderHandleLink($author_phid),
|
$this->renderHandleLink($author_phid),
|
||||||
count($added),
|
count($added),
|
||||||
$this->renderHandleList($added),
|
$this->renderHandleList($added),
|
||||||
|
@ -380,7 +380,7 @@ final class ManiphestTransaction
|
||||||
$this->renderHandleList($removed));
|
$this->renderHandleList($removed));
|
||||||
} else {
|
} else {
|
||||||
return pht(
|
return pht(
|
||||||
'%s changed projects, attached %d: %s; detached %d: %s',
|
'%s changed file(s), attached %d: %s; detached %d: %s',
|
||||||
$this->renderHandleLink($author_phid),
|
$this->renderHandleLink($author_phid),
|
||||||
count($added),
|
count($added),
|
||||||
$this->renderHandleList($added),
|
$this->renderHandleList($added),
|
||||||
|
|
|
@ -682,6 +682,69 @@ abstract class PhabricatorBaseEnglishTranslation
|
||||||
'%s Commits',
|
'%s Commits',
|
||||||
),
|
),
|
||||||
|
|
||||||
|
'%s added %d project(s): %s' => array(
|
||||||
|
array(
|
||||||
|
'%s added a project: %2$s',
|
||||||
|
'%s added projects: %2$s',
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
|
'%s removed %d project(s): %s' => array(
|
||||||
|
array(
|
||||||
|
'%s removed a project: %2$s',
|
||||||
|
'%s removed projects: %2$s',
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
|
'%s changed project(s), added %d: %s; removed %d: %s' =>
|
||||||
|
'%s changed projects, added: %3$s; removed: %5$s',
|
||||||
|
|
||||||
|
'%s attached %d file(s): %s' => array(
|
||||||
|
array(
|
||||||
|
'%s attached a file: %3$s',
|
||||||
|
'%s attached files: %3$s',
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
|
'%s detached %d file(s): %s' => array(
|
||||||
|
array(
|
||||||
|
'%s detached a file: %3$s',
|
||||||
|
'%s detached files: %3$s',
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
|
'%s changed file(s), attached %d: %s; detached %d: %s' =>
|
||||||
|
'%s changed files, attached: %3$s; detached: %5$s',
|
||||||
|
|
||||||
|
|
||||||
|
'%s added %d dependencie(s): %s.' => array(
|
||||||
|
array(
|
||||||
|
'%s added a dependency: %3$s',
|
||||||
|
'%s added a dependencies: %3$s',
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
|
'%s added %d dependent task(s): %s.' => array(
|
||||||
|
array(
|
||||||
|
'%s added a dependent task: %3$s',
|
||||||
|
'%s added dependent tasks: %3$s',
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
|
'%s removed %d dependencie(s): %s.' => array(
|
||||||
|
array(
|
||||||
|
'%s removed a dependency: %3$s.',
|
||||||
|
'%s removed dependencies: %3$s.',
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
|
'%s removed %d dependent task(s): %s.' => array(
|
||||||
|
array(
|
||||||
|
'%s removed a dependent task: %3$s.',
|
||||||
|
'%s removed dependent tasks: %3$s.',
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue