diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index e0cd1dc74..f276b66a1 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -22,6 +22,7 @@ - fixed #11069: "More" options menu in asset manager - rfe #10755: Adding SetLanguage bazaar item - fixed #11176: New upgrade error in 7.6.35 to 7.7.17 + - fixed #11181: ableToBeFriend label not i18n 7.8.2 - Added scheduled vendor payout workflow activity. (Special thanks to Martin @ Oqapi) diff --git a/docs/upgrades/upgrade_7.8.2-7.8.3.pl b/docs/upgrades/upgrade_7.8.2-7.8.3.pl index ab4476476..b0d402b9b 100644 --- a/docs/upgrades/upgrade_7.8.2-7.8.3.pl +++ b/docs/upgrades/upgrade_7.8.2-7.8.3.pl @@ -23,6 +23,7 @@ use WebGUI::Session; use WebGUI::Storage; use WebGUI::Asset; use WebGUI::Utility; +use WebGUI::ProfileField; my $toVersion = '7.8.3'; @@ -38,9 +39,23 @@ addClipboardAdminSetting($session); addTrashAdminSetting($session); addPickLanguageMacro($session); installSetLanguage($session); +i18nAbleToBeFriend($session); finish($session); # this line required +#---------------------------------------------------------------------------- +sub i18nAbleToBeFriend { + my $session = shift; + print "\tInternationalize the Able To Be Friend profile field... " unless $quiet; + my $field = WebGUI::ProfileField->new($session, 'ableToBeFriend'); + if ($field) { + my $props = $field->get(); + $props->{label} = q{WebGUI::International::get('user profile field friend availability','WebGUI')}; + $field->set($props); + } + print "Done.\n" unless $quiet; +} + #---------------------------------------------------------------------------- sub addClipboardAdminSetting { my $session = shift;