pht() for Settings
Test Plan: did a run with ALL CAPS through `/settings/` and subpages. This includes changing (and forgetting) my password. Did not test the following: - LDAP Reviewers: epriestley, btrahan, chad Reviewed By: chad CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5174
This commit is contained in:
committed by
epriestley
parent
e82a066287
commit
c9b96f82bf
@@ -54,9 +54,11 @@ final class PhabricatorSettingsMainController
|
||||
continue;
|
||||
}
|
||||
if (!empty($result[$key])) {
|
||||
throw new Exception(
|
||||
"Two settings panels share the same panel key ('{$key}'): ".
|
||||
get_class($panel).', '.get_class($result[$key]).'.');
|
||||
throw new Exception(pht(
|
||||
"Two settings panels share the same panel key ('%s'): %s, %s.",
|
||||
$key,
|
||||
get_class($panel),
|
||||
get_class($result[$key])));
|
||||
}
|
||||
$result[$key] = $panel;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user