Skip to content

Commit

Permalink
Siteviews: i18n fixes, Bug: T164664
Browse files Browse the repository at this point in the history
  • Loading branch information
MusikAnimal committed Jun 1, 2017
1 parent 96f5fcb commit 0c7c582
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
"hosted": "Hosted with $1 on $2.",
"hover-to-exclude": "To exclude pages from view, hover over their names and click the ✖",
"images": "Images",
"individual-projects": "Individual projects",
"info": "Info",
"include-subcategories": "Include all subcategories",
"invalid-category-url": "Invalid category! Please enter the full wiki URL of the category.",
Expand Down
1 change: 1 addition & 0 deletions messages/qqq.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@
"hosted": "Footer message about where the tool is hosted. $1 is a heart symbol (meaning 'love'). $2 is the name of the hosting service, for example, 'Tool Labs'.",
"hover-to-exclude": "Placeholder in the input of the Topviews application, instructing to hover over entries and click on the X to exclude them from view",
"images": "The word 'images'.\n{{Identical|Image}}",
"individual-projects": "Label for the option to view data on individual projects in Siteviews, as opposed to 'All projects'.",
"info": "A link to the wiki page information page of the article. This appears in the 'info tiles' on Pageviews Analysis\n{{Identical|Info}}",
"invalid-category-url": "Error message saying the user inputted wiki URL is not a valid category (as in the Category namespace).",
"invalid-lang-project": "Error message saying the given value is not a valid WMF multilingual project. $1 is the name of the project.",
Expand Down
8 changes: 6 additions & 2 deletions public_html/siteviews/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,14 @@
</select>
</div>
<div class="all-projects-selector">
<label>Query for:</label>
<label>
<?php echo $I18N->msg( 'query-for' ); ?>
</label>
<div class="radio">
<label>
<input class="all-projects-radio" type="radio" name="all-projects" value="0" checked="checked">Individual projects</input>
<input class="all-projects-radio" type="radio" name="all-projects" value="0" checked="checked">
<?php echo $I18N->msg( 'individual-projects' ); ?>
</input>
</label>
</div>
<div class="radio">
Expand Down
6 changes: 4 additions & 2 deletions views/siteviews/index.haml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,12 @@
%option(value="spider")
= $I18N->msg( 'spider' )
%div.all-projects-selector
%label Query for:
%label
= $I18N->msg( 'query-for' )
%div.radio
%label
%input.all-projects-radio(type="radio" name="all-projects" value="0" checked="checked") Individual projects
%input.all-projects-radio(type="radio" name="all-projects" value="0" checked="checked")
= $I18N->msg( 'individual-projects' )
%div.radio
%label
%input.all-projects-radio#all-projects(type="radio" name="all-projects" value="1")
Expand Down

0 comments on commit 0c7c582

Please sign in to comment.