Allow overriding translations without creating PhabricatorTranslation

Test Plan: Overridden '%d Detail(s)', verified that it was used.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T1139

Differential Revision: https://secure.phabricator.com/D2815
This commit is contained in:
vrana
2012-06-21 10:20:52 -07:00
parent c5c0324e1b
commit d6ec905fe3
2 changed files with 11 additions and 0 deletions

View File

@@ -23,4 +23,10 @@ final class PhabricatorEnglishTranslation
return 'English';
}
public function getTranslations() {
return
PhabricatorEnv::getEnvConfig('translation.override') +
parent::getTranslations();
}
}