mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-29 10:12:41 +01:00
Initialize translator after loading custom libraries
Summary: Installs may set global translation which may not be available before loading libraries. Test Plan: $ aphrontpath.php / Reviewers: nh Reviewed By: nh CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D2819
This commit is contained in:
parent
f469496f46
commit
77f44ded98
1 changed files with 5 additions and 5 deletions
|
@ -60,11 +60,6 @@ $conf['phabricator.env'] = $env;
|
||||||
|
|
||||||
PhabricatorEnv::setEnvConfig($conf);
|
PhabricatorEnv::setEnvConfig($conf);
|
||||||
|
|
||||||
$translation = PhabricatorEnv::newObjectFromConfig('translation.provider');
|
|
||||||
PhutilTranslator::getInstance()
|
|
||||||
->setLanguage($translation->getLanguage())
|
|
||||||
->addTranslations($translation->getTranslations());
|
|
||||||
|
|
||||||
phutil_load_library('arcanist/src');
|
phutil_load_library('arcanist/src');
|
||||||
|
|
||||||
foreach (PhabricatorEnv::getEnvConfig('load-libraries') as $library) {
|
foreach (PhabricatorEnv::getEnvConfig('load-libraries') as $library) {
|
||||||
|
@ -78,3 +73,8 @@ $tz = PhabricatorEnv::getEnvConfig('phabricator.timezone');
|
||||||
if ($tz) {
|
if ($tz) {
|
||||||
date_default_timezone_set($tz);
|
date_default_timezone_set($tz);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$translation = PhabricatorEnv::newObjectFromConfig('translation.provider');
|
||||||
|
PhutilTranslator::getInstance()
|
||||||
|
->setLanguage($translation->getLanguage())
|
||||||
|
->addTranslations($translation->getTranslations());
|
||||||
|
|
Loading…
Reference in a new issue