@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

vrana d6ec905f c5c0324e

+11
+5
conf/default.conf.php
··· 71 71 // PhabricatorTranslation. 72 72 'translation.provider' => 'PhabricatorEnglishTranslation', 73 73 74 + // You can use 'translation.override' if you don't want to create a full 75 + // translation to give users an option for switching to it and you just want 76 + // to override some strings in the default translation. 77 + 'translation.override' => array(), 78 + 74 79 75 80 // -- Access Policies ------------------------------------------------------- // 76 81
+6
src/infrastructure/internationalization/PhabricatorEnglishTranslation.php
··· 23 23 return 'English'; 24 24 } 25 25 26 + public function getTranslations() { 27 + return 28 + PhabricatorEnv::getEnvConfig('translation.override') + 29 + parent::getTranslations(); 30 + } 31 + 26 32 }