Fix user profile SMS i18n.

This commit is contained in:
Colin Kuskie 2009-05-16 01:35:56 +00:00
parent 7e0796cc78
commit 33c0ab2a05
3 changed files with 31 additions and 0 deletions

View file

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

View file

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

View file

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