diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index d55a7bd65..b7180dfd7 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -6,6 +6,7 @@ - rfe #9981: RedirectAfterLogin Setting - Added user create, update, and delete web services ( HD Publishing ) - Added Survey web test suite for validating expression/branching logic + - fixed SMS i18n for the user profile fields. 7.7.6 - Added mobile style template. If enabled in settings, will serve alternate style templates diff --git a/docs/upgrades/upgrade_7.7.6-7.7.7.pl b/docs/upgrades/upgrade_7.7.6-7.7.7.pl index f6f71ad4e..0fd198a3d 100644 --- a/docs/upgrades/upgrade_7.7.6-7.7.7.pl +++ b/docs/upgrades/upgrade_7.7.6-7.7.7.pl @@ -34,10 +34,28 @@ addUseEmailAsUsernameToSettings( $session ); alterVATNumberTable( $session ); addRedirectAfterLoginUrlToSettings( $session ); addSurveyTestResultsTemplateColumn( $session ); +fixSMSUserProfileI18N($session); finish($session); # this line required +#---------------------------------------------------------------------------- +sub fixSMSUserProfileI18N { + my $session = shift; + print "\tFixing bad I18N in SMS user profile fields..." unless $quiet; + my $field = WebGUI::ProfileField->new($session, 'receiveInboxEmailNotifications'); + my $properties = $field->get(); + $properties->{label} = q!WebGUI::International::get('receive inbox emails','WebGUI')!; + $field->set($properties); + + $field = WebGUI::ProfileField->new($session, 'receiveInboxSmsNotifications'); + $properties = $field->get(); + $properties->{label} = q!WebGUI::International::get('receive inbox sms','WebGUI')!; + $field->set($properties); + + print "Done\n" unless $quiet; +} + #---------------------------------------------------------------------------- sub addOgoneToConfig { my $session = shift; diff --git a/lib/WebGUI/i18n/English/WebGUI.pm b/lib/WebGUI/i18n/English/WebGUI.pm index 50335c1fa..5498e28e4 100644 --- a/lib/WebGUI/i18n/English/WebGUI.pm +++ b/lib/WebGUI/i18n/English/WebGUI.pm @@ -4421,6 +4421,18 @@ Users may override this setting in their profile. message => q{Enables displaying using a mobile style template and mobile page layout template. When enabled, the alternate templates are used when the browser's user agent string matches the list set in the config file.}, }, + 'receive inbox emails' => { + message => q|Receive inbox notifications as email?|, + context => q|Label in profile field|, + lastUpdated => 1242438242, + }, + + 'receive inbox sms' => { + message => q|Receive inbox notifications as SMS?|, + context => q|Label in profile field|, + lastUpdated => 1242438244, + }, + }; 1;