Refactor the gallery album i18n so translators don't have to translate URLs
when not needed.
This commit is contained in:
parent
be0891f382
commit
b805e75765
2 changed files with 4 additions and 4 deletions
|
|
@ -1335,8 +1335,8 @@ sub www_showConfirmation {
|
|||
my $output = '<p>' . sprintf( $i18n->get('save message'), $self->getUrl ) . '</p>'
|
||||
. '<p>' . $i18n->get('what next') . '</p>'
|
||||
. '<ul>'
|
||||
. sprintf( $i18n->get('add photo'), $self->getUrl('func=add;class=WebGUI::Asset::File::GalleryFile::Photo') )
|
||||
. sprintf( $i18n->get('return to album'), $self->getUrl )
|
||||
. sprintf( '<li><a href="%s">%s</a></li>', $self->getUrl('func=add;class=WebGUI::Asset::File::GalleryFile::Photo'), $i18n->get('add photo') )
|
||||
. sprintf( '<li><a href="%s">%s</a></li>', $self->getUrl, $i18n->get('return to album') )
|
||||
. '</ul>'
|
||||
;
|
||||
|
||||
|
|
|
|||
|
|
@ -29,12 +29,12 @@ our $I18N = {
|
|||
},
|
||||
|
||||
'add photo' => {
|
||||
message => '<li><a href="%s">Add Photo</a></li>',
|
||||
message => 'Add Photo',
|
||||
lastUpdated => 0,
|
||||
},
|
||||
|
||||
'return to album' => {
|
||||
message => '<li><a href="%s">Return to Album</a></li>',
|
||||
message => 'Return to Album',
|
||||
lastUpdated => 0,
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue