Fix Subscribable aspect i18n. Fixes bug #11003.
This commit is contained in:
parent
6c4d146e10
commit
dd9a78d24e
3 changed files with 26 additions and 23 deletions
|
|
@ -50,6 +50,7 @@
|
|||
- fixed #10976: Form::Date not internationalized /DateTime::setToEpoch
|
||||
- fixed #11005: calendar feed workflow
|
||||
- fixed #11008: Test::Class
|
||||
- fixed #11003: Subscribable AssetAspect: no i18n
|
||||
|
||||
7.7.19
|
||||
- fixed #10838: Forwarded forum post email to new CS adds reply to original thread
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ package WebGUI::AssetAspect::Subscribable;
|
|||
|
||||
use strict;
|
||||
use Class::C3;
|
||||
use WebGUI::International;
|
||||
|
||||
=head1 NAME
|
||||
|
||||
|
|
@ -25,14 +26,14 @@ sub definition {
|
|||
my $class = shift;
|
||||
my $session = shift;
|
||||
my $definition = shift;
|
||||
my $i18n = __PACKAGE__->i18n($session);
|
||||
my $i18n = WebGUI::International->new($session, 'AssetAspect_Subscribable');
|
||||
|
||||
tie my %properties, 'Tie::IxHash', (
|
||||
subscriptionGroupId => {
|
||||
tab => "security",
|
||||
fieldType => "subscriptionGroup",
|
||||
label => $i18n->echo("Subscription Group"),
|
||||
hoverHelp => $i18n->echo("The users who are subscribed to recieve e-mail alerts for this asset"),
|
||||
label => $i18n->get("Subscription Group"),
|
||||
hoverHelp => $i18n->get("Subscription Group help"),
|
||||
defaultValue => undef,
|
||||
noFormPost => 1,
|
||||
},
|
||||
|
|
@ -40,8 +41,8 @@ sub definition {
|
|||
tab => "display",
|
||||
fieldType => "template",
|
||||
namespace => $class->getSubscriptionTemplateNamespace,
|
||||
label => $i18n->echo("Subscription Template"),
|
||||
hoverHelp => $i18n->echo("The template to use to send out e-mail notifications"),
|
||||
label => $i18n->get("Email Template"),
|
||||
hoverHelp => $i18n->get("Email Template help"),
|
||||
},
|
||||
skipNotification => {
|
||||
autoGenerate => 0,
|
||||
|
|
@ -260,21 +261,6 @@ sub getUnsubscribeUrl {
|
|||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
=head2 i18n ( )
|
||||
|
||||
Get the i18n for RSSCapable
|
||||
|
||||
=cut
|
||||
|
||||
sub i18n {
|
||||
my $class = shift;
|
||||
my $session = shift;
|
||||
|
||||
return WebGUI::International->new( $session );
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
=head2 isSubscribed ( [userId] )
|
||||
|
||||
Returns true if the user is subscribed to the asset. C<userId> is a userId to
|
||||
|
|
|
|||
|
|
@ -3,11 +3,27 @@ package WebGUI::i18n::English::AssetAspect_Subscribable;
|
|||
use strict;
|
||||
|
||||
our $I18N = {
|
||||
"new post" => {
|
||||
message => 'has posted to one of your subscriptions',
|
||||
|
||||
"Subscription Group" => {
|
||||
message => 'Subscription Group',
|
||||
lastUpdated => 0,
|
||||
context => 'Title of the e-mail that is sent for subscriptions',
|
||||
},
|
||||
|
||||
"Subscription Group help" => {
|
||||
message => 'The users who are subscribed to recieve e-mail alerts for this asset',
|
||||
lastUpdated => 0,
|
||||
},
|
||||
|
||||
"Email Template" => {
|
||||
message => 'Email Template',
|
||||
lastUpdated => 0,
|
||||
},
|
||||
|
||||
"Email Template help" => {
|
||||
message => 'The template to use to send out e-mail notifications',
|
||||
lastUpdated => 0,
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue