mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 17:02:41 +01:00
36e2d02d6e
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
21 lines
477 B
PHP
21 lines
477 B
PHP
<?php
|
|
|
|
echo pht('Adding %s to events.', 'mailkeys')."\n";
|
|
|
|
$table = new PhabricatorCalendarEvent();
|
|
$conn_w = $table->establishConnection('w');
|
|
$iterator = new LiskMigrationIterator($table);
|
|
foreach ($iterator as $event) {
|
|
$id = $event->getID();
|
|
|
|
echo pht('Populating event %d...', $id)."\n";
|
|
|
|
queryfx(
|
|
$conn_w,
|
|
'UPDATE %T SET mailKey = %s WHERE id = %d',
|
|
$table->getTableName(),
|
|
Filesystem::readRandomCharacters(20),
|
|
$id);
|
|
}
|
|
|
|
echo pht('Done.')."\n";
|