Merge "Change "learn more" to "more details about this file""

This commit is contained in:
jenkins-bot 2014-06-19 08:17:53 +00:00 committed by Gerrit Code Review
commit 30a1940737
3 changed files with 7 additions and 7 deletions

View file

@ -10,8 +10,8 @@
"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-optin-pref": "Enable <span class=\"plainlinks\">[https://www.mediawiki.org/wiki/Special:MyLanguage/Multimedia/About_Media_Viewer Media Viewer]</span>",
"multimediaviewer-file-page": "Go to corresponding file page",
"multimediaviewer-repository": "Learn more on $1",
"multimediaviewer-repository-local": "Learn more",
"multimediaviewer-repository": "More details about this file on $1",
"multimediaviewer-repository-local": "More details about this file",
"multimediaviewer-datetime-created": "Created: $1",
"multimediaviewer-datetime-uploaded": "Uploaded: $1",
"multimediaviewer-userpage-link": "{{GENDER:$2|Uploaded}} by $1",
@ -96,7 +96,7 @@
"multimediaviewer-feedback-button-text": "Your feedback about this tool",
"multimediaviewer-feedback-popup-text": "Leave feedback about this new media viewing experience",
"multimediaviewer-description-page-button-text": "More details",
"multimediaviewer-description-page-popup-text": "More details on $1",
"multimediaviewer-description-page-popup-text": "More details about this file on $1",
"multimediaviewer-commons-subtitle": "The free media repository",
"multimediaviewer-view-expanded": "Expand view",
"multimediaviewer-close-popup-text": "Close this tool (Esc)",

View file

@ -106,7 +106,7 @@ def check_elements_in_viewer_for_image1(page)
# Image metadata links
page.mmv_image_metadata_links_wrapper_element.when_present.should be_visible
# Repo link
page.mmv_image_metadata_repo_link_element.when_present.text.should match /Learn more on Wikimedia Commons/
page.mmv_image_metadata_repo_link_element.when_present.text.should match /More details about this file on Wikimedia Commons/
page.mmv_image_metadata_repo_link_element.when_present.attribute('href').should match /boats_in_Kerala.jpg$/
# Category links
page.mmv_image_metadata_category_links_wrapper_element.when_present.should be_visible
@ -150,7 +150,7 @@ def check_elements_in_viewer_for_image2(page)
# Image metadata links
page.mmv_image_metadata_links_wrapper_element.when_present.should be_visible
# Repo link
page.mmv_image_metadata_repo_link_element.when_present.text.should match /Learn more on Wikimedia Commons/
page.mmv_image_metadata_repo_link_element.when_present.text.should match /More details about this file on Wikimedia Commons/
page.mmv_image_metadata_repo_link_element.when_present.attribute('href').should match /All_Hands_Offsite.*\.jpg$/
# Category links
page.mmv_image_metadata_category_links_wrapper_element.when_present.should be_visible

View file

@ -42,11 +42,11 @@
repoInfo = new mw.mmv.model.Repo( 'Example Wiki' );
panel.setRepoDisplay( repoInfo );
assert.strictEqual( panel.$repo.text(), 'Learn more on Example Wiki', 'Text set to something useful for remote wiki - if this fails it might be because of localisation' );
assert.strictEqual( panel.$repo.text(), 'More details about this file on Example Wiki', 'Text set to something useful for remote wiki - if this fails it might be because of localisation' );
repoInfo = new mw.mmv.model.Repo();
panel.setRepoDisplay( repoInfo );
assert.strictEqual( panel.$repo.text(), 'Learn more on ' + mw.config.get( 'wgSiteName' ), 'Text set to something useful for local wiki - if this fails it might be because of localisation' );
assert.strictEqual( panel.$repo.text(), 'More details about this file on ' + mw.config.get( 'wgSiteName' ), 'Text set to something useful for local wiki - if this fails it might be because of localisation' );
panel.setFilePageLink( 'https://commons.wikimedia.org/wiki/File:Foobar.jpg' );
assert.strictEqual( panel.$repo.prop( 'href' ), 'https://commons.wikimedia.org/wiki/File:Foobar.jpg', 'The file link was set successfully.' );