mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 16:23:49 +00:00
Added No description message
'No description available' message has been added when description for the given file is not available. Bug: 56446 Change-Id: Ie239e5cd0d1b645ed149ea1ecc80197b0e84bc34
This commit is contained in:
parent
132049976a
commit
f9ee5ec0a0
|
@ -27,6 +27,7 @@ $messages = array();
|
||||||
*/
|
*/
|
||||||
$messages['en'] = array(
|
$messages['en'] = array(
|
||||||
'multimediaviewer-desc' => 'Expand thumbnails in a larger size in a fullscreen interface.',
|
'multimediaviewer-desc' => 'Expand thumbnails in a larger size in a fullscreen interface.',
|
||||||
|
'multimediaviewer-desc-nil' => 'No description available.',
|
||||||
'multimediaviewer-pref' => 'Media Viewer',
|
'multimediaviewer-pref' => 'Media Viewer',
|
||||||
'multimediaviewer-pref-desc' => 'Improve your multimedia viewing experience with this new tool. It displays images in larger size on pages that have thumbnails. Images are shown in a nicer fullscreen interface overlay, and can also be viewed in full-size.',
|
'multimediaviewer-pref-desc' => 'Improve your multimedia viewing experience with this new tool. It displays images in larger size on pages that have thumbnails. Images are shown in a nicer fullscreen interface overlay, and can also be viewed in full-size.',
|
||||||
'multimediaviewer-file-page' => 'Go to corresponding file page',
|
'multimediaviewer-file-page' => 'Go to corresponding file page',
|
||||||
|
@ -68,6 +69,7 @@ $messages['en'] = array(
|
||||||
*/
|
*/
|
||||||
$messages['qqq'] = array(
|
$messages['qqq'] = array(
|
||||||
'multimediaviewer-desc' => '{{desc|name=Multimedia Viewer|url=https://www.mediawiki.org/wiki/Extension:MultimediaViewer}}',
|
'multimediaviewer-desc' => '{{desc|name=Multimedia Viewer|url=https://www.mediawiki.org/wiki/Extension:MultimediaViewer}}',
|
||||||
|
'multimediaviewer-desc-nil' => 'Text to be used when no description is available.',
|
||||||
'multimediaviewer-pref' => 'Preference title',
|
'multimediaviewer-pref' => 'Preference title',
|
||||||
'multimediaviewer-pref-desc' => 'Description of preference',
|
'multimediaviewer-pref-desc' => 'Description of preference',
|
||||||
'multimediaviewer-file-page' => 'Text for a link to the file page for an image.',
|
'multimediaviewer-file-page' => 'Text for a link to the file page for an image.',
|
||||||
|
|
|
@ -119,6 +119,7 @@ $wgResourceModules['ext.multimediaViewer'] = array_merge( array(
|
||||||
'multimediaviewer-use-file-offwiki',
|
'multimediaviewer-use-file-offwiki',
|
||||||
'multimediaviewer-about-mmv',
|
'multimediaviewer-about-mmv',
|
||||||
'multimediaviewer-discuss-mmv',
|
'multimediaviewer-discuss-mmv',
|
||||||
|
'multimediaviewer-desc-nil'
|
||||||
),
|
),
|
||||||
), $moduleInfoMMV );
|
), $moduleInfoMMV );
|
||||||
|
|
||||||
|
|
|
@ -581,6 +581,8 @@
|
||||||
if ( desc ) {
|
if ( desc ) {
|
||||||
desc = desc.value;
|
desc = desc.value;
|
||||||
whitelistHtml( ui.$imageDesc.append( $.parseHTML( desc ) ) );
|
whitelistHtml( ui.$imageDesc.append( $.parseHTML( desc ) ) );
|
||||||
|
} else {
|
||||||
|
ui.$imageDesc.append( mw.message( 'multimediaviewer-desc-nil' ).text() );
|
||||||
}
|
}
|
||||||
|
|
||||||
datetime = extmeta.DateTimeOriginal || extmeta.DateTime;
|
datetime = extmeta.DateTimeOriginal || extmeta.DateTime;
|
||||||
|
|
Loading…
Reference in a new issue