Skip to content

Commit

Permalink
Make 'permalink copied to clipboard' msg translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
MusikAnimal committed Mar 14, 2018
1 parent 3c5f6d4 commit 131806a
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion javascripts/shared/pv.js
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,7 @@ class Pv extends PvConfig {
$('.permalink-copy').val($('.permalink').prop('href'))[0].select();
try {
document.execCommand('copy');
this.toastSuccess('Permalink copied to clipboard');
this.toastSuccess($.i18n('permalink-copied'));
e.preventDefault();
document.activeElement.blur();
} catch (e) {
Expand Down
1 change: 1 addition & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@
"param-error-3": "Invalid <code>$1</code>, using defaults instead. See the $2 for more information.",
"percent-mobile": "% Mobile",
"permalink": "Permalink",
"permalink-copied": "Permalink copied to clipboard",
"pie": "Pie",
"platform": "Platform",
"playcounts": "Playcounts",
Expand Down
1 change: 1 addition & 0 deletions messages/qqq.json
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@
"param-error-3": "General error message for when an invalid parameter is passed in. $1 is the name of the parameter and $2 is a link to the tool's URL documentation, with the message 'documentation' as the text.",
"percent-mobile": "Label for the column showing the percentage of mobile pageviews a page had.\n{{Identical|Mobile}}",
"permalink": "A permanent link to the tool with the current data. By default the tool shows the latest-N days, this will link to the exact date range.\n{{Identical|Permalink}}",
"permalink-copied": "Message shown when a permanent link to the tool has been copied to the user's clipboard.",
"pie": "Label for pie chart option (https://en.wikipedia.org/wiki/Pie_chart)",
"platform": "Header for the part of the interface that lets the user choose which platform to view statistics for. For example, 'Desktop', 'Mobile app', etc.\n{{Identical|Platform}}",
"playcounts": "Term for the number of times an audio or video file has been played. This is used as a label.",
Expand Down
2 changes: 1 addition & 1 deletion public_html/application.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public_html/langviews/application.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public_html/massviews/application.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public_html/mediaviews/application.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public_html/meta/application.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions public_html/redirectviews/application.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public_html/siteviews/application.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions public_html/topviews/application.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public_html/userviews/application.js

Large diffs are not rendered by default.

0 comments on commit 131806a

Please sign in to comment.