Skip to content

Commit c35b564

Browse files
author
Joshua Spence
committed
Various translation improvements
Summary: Depends on D14070. Test Plan: Eyeball it. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, hach-que Differential Revision: https://secure.phabricator.com/D14073
1 parent 495cb7a commit c35b564

File tree

53 files changed

+217
-142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+217
-142
lines changed

scripts/symbols/import_repository_symbols.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function commit_symbols(
102102
$repository->getPHID());
103103
}
104104

105-
echo pht('Loading %s symbols...', new PhutilNumber(count($sql))), "\n";
105+
echo pht('Loading %s symbols...', phutil_count($sql)), "\n";
106106
foreach (array_chunk($sql, 128) as $chunk) {
107107
queryfx(
108108
$conn_w,

src/applications/auth/controller/config/PhabricatorAuthListController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function processRequest() {
109109
'only users with a verified email address at one of these %s '.
110110
'allowed domain(s) will be able to register an account: %s',
111111
$domains_link,
112-
new PhutilNumber(count($domains_value)),
112+
phutil_count($domains_value),
113113
phutil_tag('strong', array(), implode(', ', $domains_value)));
114114
} else {
115115
$issues[] = pht(

src/applications/auth/management/PhabricatorAuthManagementRefreshWorkflow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function execute(PhutilArgumentParser $args) {
7878
"%s\n",
7979
pht(
8080
'Found %s account(s) to refresh.',
81-
new PhutilNumber(count($accounts))));
81+
phutil_count($accounts)));
8282
}
8383

8484
$providers = PhabricatorAuthProvider::getAllEnabledProviders();

src/applications/celerity/management/CelerityManagementMapWorkflow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function execute(PhutilArgumentParser $args) {
1818
$this->log(
1919
pht(
2020
'Rebuilding %d resource source(s).',
21-
new PhutilNumber(count($resources_map))));
21+
phutil_count($resources_map)));
2222

2323
foreach ($resources_map as $name => $resources) {
2424
$this->rebuildResources($resources);

src/applications/config/check/PhabricatorDaemonsSetupCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ protected function executeChecks() {
115115
$list_section = array(
116116
pht(
117117
'The configurations differ in the following %s way(s):',
118-
new PhutilNumber(count($issues))),
118+
phutil_count($issues)),
119119
phutil_tag(
120120
'ul',
121121
array(),

src/applications/config/check/PhabricatorPathSetupCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected function executeChecks() {
111111

112112
$this
113113
->newIssue('config.PATH.'.$digest)
114-
->setName(pht('$PATH Component Unusable'))
114+
->setName(pht('%s Component Unusable', '$PATH'))
115115
->setSummary(
116116
pht(
117117
'A component of the configured PATH can not be used by '.

src/applications/config/view/PhabricatorSetupIssueView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ private function renderPHPConfig(array $configs, $issue) {
387387
array(),
388388
pht(
389389
'PHP also loaded these %s configuration file(s):',
390-
new PhutilNumber(count($more_loc))));
390+
phutil_count($more_loc)));
391391
$info[] = phutil_tag(
392392
'pre',
393393
array(),

src/applications/conpherence/conduit/ConpherenceUpdateThreadConduitAPIMethod.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,13 @@ protected function defineReturnType() {
2929
protected function defineErrorTypes() {
3030
return array(
3131
'ERR_USAGE_NO_ROOM_ID' => pht(
32-
'You must specify a room id or room phid to query transactions '.
33-
'from.'),
32+
'You must specify a room ID or room PHID to query transactions from.'),
3433
'ERR_USAGE_ROOM_NOT_FOUND' => pht(
35-
'room does not exist or logged in user can not see it.'),
34+
'Room does not exist or logged in user can not see it.'),
3635
'ERR_USAGE_ONLY_SELF_REMOVE' => pht(
3736
'Only a user can remove themselves from a room.'),
3837
'ERR_USAGE_NO_UPDATES' => pht(
39-
'You must specify data that actually updates the conpherence.'),
38+
'You must specify data that actually updates the Conpherence.'),
4039
);
4140
}
4241

src/applications/conpherence/controller/ConpherenceUpdateController.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -325,26 +325,22 @@ private function renderRemovePersonDialogue(
325325
$remove_person = $request->getStr('remove_person');
326326
$participants = $conpherence->getParticipants();
327327

328-
$message = pht(
329-
'Are you sure you want to leave this room?');
328+
$message = pht('Are you sure you want to leave this room?');
330329
$test_conpherence = clone $conpherence;
331330
$test_conpherence->attachParticipants(array());
332331
if (!PhabricatorPolicyFilter::hasCapability(
333332
$user,
334333
$test_conpherence,
335334
PhabricatorPolicyCapability::CAN_VIEW)) {
336335
if (count($participants) == 1) {
337-
$message .= pht(
338-
' The room will be inaccessible forever and ever.');
336+
$message .= ' '.pht('The room will be inaccessible forever and ever.');
339337
} else {
340-
$message .= pht(
341-
' Someone else in the room can add you back later.');
338+
$message .= ' '.pht('Someone else in the room can add you back later.');
342339
}
343340
}
344341
$body = phutil_tag(
345342
'p',
346-
array(
347-
),
343+
array(),
348344
$message);
349345

350346
require_celerity_resource('conpherence-update-css');

src/applications/conpherence/storage/ConpherenceTransaction.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,14 @@ public function getTitle() {
7777
count($rem));
7878
} else if ($add) {
7979
$title = pht(
80-
'%s added %d files(s).',
80+
'%s added %s files(s).',
8181
$this->renderHandleLink($author_phid),
82-
count($add));
82+
phutil_count($add));
8383
} else {
8484
$title = pht(
85-
'%s removed %d file(s).',
85+
'%s removed %s file(s).',
8686
$this->renderHandleLink($author_phid),
87-
count($rem));
87+
phutil_count($rem));
8888
}
8989
return $title;
9090
break;

0 commit comments

Comments
 (0)