Remove unused translated yes/no labels in converted checkbox field definitions

This commit is contained in:
Hypolite Petovan 2020-02-05 21:42:53 -05:00
parent f2732a4ad7
commit 557ece7d5a
5 changed files with 16 additions and 18 deletions

View file

@ -97,7 +97,7 @@ class Introductions extends BaseNotifications
default:
if ($notification->getNetwork() === Protocol::DFRN) {
$lbl_knowyou = DI::l10n()->t('Claims to be known to you: ');
$knowyou = ($notification->getKnowYou() ? DI::l10n()->t('yes') : DI::l10n()->t('no'));
$knowyou = ($notification->getKnowYou() ? DI::l10n()->t('Yes') : DI::l10n()->t('No'));
} else {
$lbl_knowyou = '';
$knowyou = '';

View file

@ -219,8 +219,6 @@ class Index extends BaseSettings
'hide-friends', //Name
DI::l10n()->t('Hide contacts and friends:'), //Label
!!$profile['hide-friends'], //Value
'', //Help string
[DI::l10n()->t('No'), DI::l10n()->t('Yes')] //Off - On strings
],
'$desc' => DI::l10n()->t('Hide your contact/friend list from viewers of this profile?'),
'$yes_str' => DI::l10n()->t('Yes'),