@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.

Show translation option names natively, instead of in the current translation

Summary: Ref T5267. Put "Deutsch" in the list instead of "German", so you can find your language without knowing the English word for it.

Test Plan: {F1661598}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T5267

Differential Revision: https://secure.phabricator.com/D15980

+24
+2
src/__phutil_library_map__.php
··· 2383 2383 'PhabricatorEmailVerificationController' => 'applications/auth/controller/PhabricatorEmailVerificationController.php', 2384 2384 'PhabricatorEmbedFileRemarkupRule' => 'applications/files/markup/PhabricatorEmbedFileRemarkupRule.php', 2385 2385 'PhabricatorEmojiRemarkupRule' => 'applications/macro/markup/PhabricatorEmojiRemarkupRule.php', 2386 + 'PhabricatorEmojiTranslation' => 'infrastructure/internationalization/translation/PhabricatorEmojiTranslation.php', 2386 2387 'PhabricatorEmptyQueryException' => 'infrastructure/query/PhabricatorEmptyQueryException.php', 2387 2388 'PhabricatorEnv' => 'infrastructure/env/PhabricatorEnv.php', 2388 2389 'PhabricatorEnvTestCase' => 'infrastructure/env/__tests__/PhabricatorEnvTestCase.php', ··· 6912 6913 'PhabricatorEmailVerificationController' => 'PhabricatorAuthController', 6913 6914 'PhabricatorEmbedFileRemarkupRule' => 'PhabricatorObjectRemarkupRule', 6914 6915 'PhabricatorEmojiRemarkupRule' => 'PhutilRemarkupRule', 6916 + 'PhabricatorEmojiTranslation' => 'PhutilTranslation', 6915 6917 'PhabricatorEmptyQueryException' => 'Exception', 6916 6918 'PhabricatorEnv' => 'Phobject', 6917 6919 'PhabricatorEnvTestCase' => 'PhabricatorTestCase',
+6
src/applications/settings/panel/PhabricatorAccountSettingsPanel.php
··· 102 102 $translations = array(); 103 103 foreach ($locales as $locale) { 104 104 $code = $locale->getLocaleCode(); 105 + 106 + // Get the locale's localized name if it's available. For example, 107 + // "Deutsch" instead of "German". This helps users who do not speak the 108 + // current language to find the correct setting. 109 + $raw_scope = PhabricatorEnv::beginScopedLocale($code); 105 110 $name = $locale->getLocaleName(); 111 + unset($raw_scope); 106 112 107 113 if ($locale->isSillyLocale()) { 108 114 if ($is_serious) {
+15
src/infrastructure/internationalization/translation/PhabricatorEmojiTranslation.php
··· 1 + <?php 2 + 3 + final class PhabricatorEmojiTranslation 4 + extends PhutilTranslation { 5 + 6 + public function getLocaleCode() { 7 + return 'en_X*'; 8 + } 9 + 10 + protected function getTranslations() { 11 + return array( 12 + 'Emoji (Internet)' => "\xF0\x9F\x92\xAC (\xF0\x9F\x8C\x8D)", 13 + ); 14 + } 15 + }
+1
src/infrastructure/internationalization/translation/PhabricatorVeryWowEnglishTranslation.php
··· 33 33 'Prototype' => 'Chew Toy', 34 34 'Continue' => 'Bark And Run', 35 35 'Countdown to Events' => 'To the Moon!', 36 + 'English (Very Wow)' => 'Such English', 36 37 ); 37 38 } 38 39 }