mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52: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
18 lines
385 B
PHP
18 lines
385 B
PHP
<?php
|
|
|
|
echo pht('Indexing username tokens for typeaheads...')."\n";
|
|
|
|
$table = new PhabricatorUser();
|
|
$table->openTransaction();
|
|
$table->beginReadLocking();
|
|
|
|
$users = $table->loadAll();
|
|
echo pht('%d users to index', count($users));
|
|
foreach ($users as $user) {
|
|
$user->updateNameTokens();
|
|
echo '.';
|
|
}
|
|
|
|
$table->endReadLocking();
|
|
$table->saveTransaction();
|
|
echo "\n".pht('Done.')."\n";
|