Skip to content

Commit 36e2d02

Browse files
committed
phtize all the things
Summary: `pht`ize a whole bunch of strings in rP. Test Plan: Intense eyeballing. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: hach-que, Korvin, epriestley Differential Revision: https://secure.phabricator.com/D12797
1 parent d3268ae commit 36e2d02

File tree

928 files changed

+5268
-4240
lines changed

Some content is hidden

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

928 files changed

+5268
-4240
lines changed

.arclint

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
"type": "xhpast",
7575
"include": "(\\.php$)",
7676
"severity": {
77-
"16": "advice",
7877
"34": "error"
7978
},
8079
"xhpast.blacklisted.function": {

resources/sql/autopatches/20140106.macromailkey.2.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22

3-
echo "Adding mailkeys to macros.\n";
3+
echo pht('Adding mailkeys to macros.')."\n";
44

55
$table = new PhabricatorFileImageMacro();
66
$conn_w = $table->establishConnection('w');
77
$iterator = new LiskMigrationIterator($table);
88
foreach ($iterator as $macro) {
99
$id = $macro->getID();
1010

11-
echo "Populating macro {$id}...\n";
11+
echo pht('Populating macro %d...', $id)."\n";
1212

1313
if (!$macro->getMailKey()) {
1414
queryfx(
@@ -20,4 +20,4 @@
2020
}
2121
}
2222

23-
echo "Done.\n";
23+
echo pht('Done.')."\n";

resources/sql/autopatches/20140108.ddbpname.2.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22

3-
echo "Adding names to Drydock blueprints.\n";
3+
echo pht('Adding names to Drydock blueprints.')."\n";
44

55
$table = new DrydockBlueprint();
66
$conn_w = $table->establishConnection('w');
77
$iterator = new LiskMigrationIterator($table);
88
foreach ($iterator as $blueprint) {
99
$id = $blueprint->getID();
1010

11-
echo "Populating blueprint {$id}...\n";
11+
echo pht('Populating blueprint %d...', $id)."\n";
1212

1313
if (!strlen($blueprint->getBlueprintName())) {
1414
queryfx(
@@ -20,4 +20,4 @@
2020
}
2121
}
2222

23-
echo "Done.\n";
23+
echo pht('Done.')."\n";

resources/sql/autopatches/20140113.legalpadsig.2.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22

3-
echo "Adding secretkeys to legalpad document signatures.\n";
3+
echo pht('Adding secretkeys to legalpad document signatures.')."\n";
44

55
$table = new LegalpadDocumentSignature();
66
$conn_w = $table->establishConnection('w');
77
$iterator = new LiskMigrationIterator($table);
88
foreach ($iterator as $sig) {
99
$id = $sig->getID();
1010

11-
echo "Populating signature {$id}...\n";
11+
echo pht('Populating signature %d...', $id)."\n";
1212

1313
if (!$sig->getSecretKey()) {
1414
queryfx(
@@ -20,4 +20,4 @@
2020
}
2121
}
2222

23-
echo "Done.\n";
23+
echo pht('Done.')."\n";

resources/sql/autopatches/20140115.auth.3.unlimit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
foreach (new LiskMigrationIterator($session_table) as $session) {
1010
$id = $session->getID();
1111

12-
echo "Migrating session {$id}...\n";
12+
echo pht('Migrating session %d...', $id)."\n";
1313
$old_type = $session->getType();
1414
$new_type = preg_replace('/-.*$/', '', $old_type);
1515

@@ -23,4 +23,4 @@
2323
}
2424
}
2525

26-
echo "Done.\n";
26+
echo pht('Done.')."\n";

resources/sql/autopatches/20140205.cal.3.phid-mig.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
$table = new PhabricatorCalendarEvent();
44
$conn_w = $table->establishConnection('w');
55

6-
echo "Assigning PHIDs to events...\n";
6+
echo pht('Assigning PHIDs to events...')."\n";
77
foreach (new LiskMigrationIterator($table) as $event) {
88
$id = $event->getID();
99

10-
echo "Updating event {$id}...\n";
10+
echo pht('Updating event %d...', $id)."\n";
1111
if ($event->getPHID()) {
1212
continue;
1313
}
@@ -19,4 +19,4 @@
1919
$table->generatePHID(),
2020
$id);
2121
}
22-
echo "Done.\n";
22+
echo pht('Done.')."\n";

resources/sql/autopatches/20140210.herald.rule-condition-mig.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
$table = new HeraldCondition();
44
$conn_w = $table->establishConnection('w');
55

6-
echo "Migrating Herald conditions of type Herald rule from IDs to PHIDs...\n";
6+
echo pht(
7+
"Migrating Herald conditions of type Herald rule from IDs to PHIDs...\n");
78
foreach (new LiskMigrationIterator($table) as $condition) {
89
if ($condition->getFieldName() != HeraldAdapter::FIELD_RULE) {
910
continue;
@@ -14,7 +15,7 @@
1415
continue;
1516
}
1617
$id = $condition->getID();
17-
echo "Updating condition {$id}...\n";
18+
echo pht('Updating condition %s...', $id)."\n";
1819

1920
$rule = id(new HeraldRuleQuery())
2021
->setViewer(PhabricatorUser::getOmnipotentUser())
@@ -28,4 +29,4 @@
2829
json_encode($rule->getPHID()),
2930
$id);
3031
}
31-
echo "Done.\n";
32+
echo pht('Done.')."\n";

resources/sql/autopatches/20140210.projcfield.1.blurb.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55

66
$rows = new LiskRawMigrationIterator($conn_w, 'project_profile');
77

8-
echo "Migrating project descriptions to custom storage...\n";
8+
echo pht('Migrating project descriptions to custom storage...')."\n";
99
foreach ($rows as $row) {
1010
$phid = $row['projectPHID'];
11-
echo "Migrating {$phid}...\n";
1211

1312
$desc = $row['blurb'];
1413
if (strlen($desc)) {
@@ -23,4 +22,4 @@
2322
}
2423
}
2524

26-
echo "Done.\n";
25+
echo pht('Done.')."\n";

resources/sql/autopatches/20140211.dx.2.migcommenttext.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
PhabricatorContentSource::SOURCE_LEGACY,
88
array())->serialize();
99

10-
echo "Migrating Differential comment text to modern storage...\n";
10+
echo pht('Migrating Differential comment text to modern storage...')."\n";
1111
foreach ($rows as $row) {
1212
$id = $row['id'];
13-
echo "Migrating Differential comment {$id}...\n";
13+
echo pht('Migrating Differential comment %d...', $id)."\n";
1414
if (!strlen($row['content'])) {
15-
echo "Comment has no text, continuing.\n";
15+
echo pht('Comment has no text, continuing.')."\n";
1616
continue;
1717
}
1818

1919
$revision = id(new DifferentialRevision())->load($row['revisionID']);
2020
if (!$revision) {
21-
echo "Comment has no valid revision, continuing.\n";
21+
echo pht('Comment has no valid revision, continuing.')."\n";
2222
continue;
2323
}
2424

@@ -68,4 +68,4 @@
6868
$row['id']);
6969
}
7070

71-
echo "Done.\n";
71+
echo pht('Done.')."\n";

resources/sql/autopatches/20140212.dx.1.armageddon.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
PhabricatorContentSource::SOURCE_LEGACY,
88
array())->serialize();
99

10-
echo "Migrating Differential comments to modern storage...\n";
10+
echo pht('Migrating Differential comments to modern storage...')."\n";
1111
foreach ($rows as $row) {
1212
$id = $row['id'];
13-
echo "Migrating comment {$id}...\n";
13+
echo pht('Migrating comment %d...', $id)."\n";
1414

1515
$revision = id(new DifferentialRevision())->load($row['revisionID']);
1616
if (!$revision) {
17-
echo "No revision, continuing.\n";
17+
echo pht('No revision, continuing.')."\n";
1818
continue;
1919
}
2020

@@ -219,4 +219,4 @@
219219
}
220220

221221
}
222-
echo "Done.\n";
222+
echo pht('Done.')."\n";

0 commit comments

Comments
 (0)