mirror of
https://github.com/friendica/friendica
synced 2025-04-28 03:50:17 +00:00
Fix birthday display and setting
- Add new translation string
This commit is contained in:
parent
1c50bc58e4
commit
db518e7ef2
3 changed files with 18 additions and 32 deletions
|
@ -774,9 +774,9 @@ class Profile
|
|||
|
||||
if (!empty($a->profile['dob'])
|
||||
&& $a->profile['dob'] > DBA::NULL_DATE
|
||||
&& $age = Temporal::getAgeByTimezone($a->profile['dob'], $a->profile['timezone'], '')
|
||||
&& $age = Temporal::getAgeByTimezone($a->profile['dob'], $a->profile['timezone'])
|
||||
) {
|
||||
$profile['age'] = [DI::l10n()->t('Age:'), $age];
|
||||
$profile['age'] = [DI::l10n()->t('Age: ') , DI::l10n()->tt('%d year old', '%d years old', $age)];
|
||||
}
|
||||
|
||||
if ($a->profile['marital']) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue