Remove uneccessary details to link titles
authorCaroline Chuong <caroline.chuong@octo.com>
Mon, 15 Jun 2020 14:42:13 +0000 (16:42 +0200)
committerChocobozzz <chocobozzz@cpy.re>
Thu, 18 Jun 2020 07:02:23 +0000 (09:02 +0200)
12 files changed:
client/src/app/+admin/plugins/plugin-list-installed/plugin-list-installed.component.html
client/src/app/+admin/plugins/plugin-search/plugin-search.component.html
client/src/app/+my-account/my-account-ownership/my-account-ownership.component.html
client/src/app/+my-account/my-account-subscriptions/my-account-subscriptions.component.html
client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.html
client/src/app/app.component.html
client/src/app/menu/menu.component.html
client/src/app/shared/channel/avatar.component.html
client/src/app/shared/channel/avatar.component.ts
client/src/app/shared/video/video-miniature.component.ts
client/src/app/videos/+video-watch/video-watch.component.html
client/src/assets/player/videojs-components/peertube-link-button.ts

index a2d0fde08a5518713437a5235d554f4cebb29b4d..919b5d26d93bf9f5a3479f096206f139c6fdfdcc 100644 (file)
 
         <span class="plugin-version">{{ plugin.version }}</span>
 
-        <a class="plugin-icon" target="_blank" rel="noopener noreferrer" [href]="plugin.homepage" i18n-title title="Go to the plugin homepage">
+        <a class="plugin-icon" target="_blank" rel="noopener noreferrer" [href]="plugin.homepage" i18n-title title="Plugin homepage (new window)">
           <my-global-icon iconName="home"></my-global-icon>
         </a>
 
-        <a class="plugin-icon" target="_blank" rel="noopener noreferrer" [href]="'https://www.npmjs.com/package/peertube-plugin-' + plugin.name" i18n-title title="Go to the plugin homepage">
+        <a class="plugin-icon" target="_blank" rel="noopener noreferrer" [href]="'https://www.npmjs.com/package/peertube-plugin-' + plugin.name" i18n-title title="Plugin homepage (new window)">
           <my-global-icon iconName="npm"></my-global-icon>
         </a>
 
index dc4d0046987627c059976f1cdc1ea3f09626c484..d3333a370aa4536748d987ab7dffa6853e1eec45 100644 (file)
 
         <span class="plugin-version">{{ plugin.latestVersion }}</span>
 
-        <a class="plugin-icon" target="_blank" rel="noopener noreferrer" [href]="plugin.homepage" i18n-title title="Go to the plugin homepage">
+        <a class="plugin-icon" target="_blank" rel="noopener noreferrer" [href]="plugin.homepage" i18n-title title="Plugin homepage (new window)">
           <my-global-icon iconName="home"></my-global-icon>
         </a>
 
-        <a class="plugin-icon" target="_blank" rel="noopener noreferrer" [href]="'https://www.npmjs.com/package/peertube-plugin-' + plugin.name" i18n-title title="Go to the plugin npm package">
+        <a class="plugin-icon" target="_blank" rel="noopener noreferrer" [href]="'https://www.npmjs.com/package/peertube-plugin-' + plugin.name" i18n-title title="Plugin npm package (new window)">
           <my-global-icon iconName="npm"></my-global-icon>
         </a>
 
index a50acfdf8bf55552e53d8674f94473d468c0ed13..14ae497d97c12155001e9e53801a0eb42659a851 100644 (file)
   <ng-template pTemplate="body" let-videoChangeOwnership>
     <tr>
       <td>
-        <a [href]="videoChangeOwnership.initiatorAccount.url" i18n-title title="Go to the account"
+        <a [href]="videoChangeOwnership.initiatorAccount.url" i18n-title title="Account page"
            target="_blank" rel="noopener noreferrer">
           {{ createByString(videoChangeOwnership.initiatorAccount) }}
         </a>
       </td>
       <td>
-        <a [href]="videoChangeOwnership.video.url" i18n-title title="Go to the video" target="_blank" rel="noopener noreferrer">
+        <a [href]="videoChangeOwnership.video.url" i18n-title title="Video page" target="_blank" rel="noopener noreferrer">
           {{ videoChangeOwnership.video.name }}
         </a>
       </td>
index 23dfdc8f5446e3c4dcadcc6aaa8702596044355f..ce41360bf3ad6e34ab078bd5e7ba39f9444cb190 100644 (file)
@@ -8,14 +8,14 @@
     </a>
 
     <div class="video-channel-info">
-      <a [routerLink]="[ '/video-channels', videoChannel.nameWithHost ]" class="video-channel-names" i18n-title title="Go to the channel">
+      <a [routerLink]="[ '/video-channels', videoChannel.nameWithHost ]" class="video-channel-names" i18n-title title="Channel page">
         <div class="video-channel-display-name">{{ videoChannel.displayName }}</div>
         <div class="video-channel-name">{{ videoChannel.nameWithHost }}</div>
       </a>
 
       <div i18n class="video-channel-followers">{{ videoChannel.followersCount }} subscribers</div>
 
-      <a [routerLink]="[ '/accounts', videoChannel.ownerBy ]" i18n-title title="Go the owner account page" class="actor-owner">
+      <a [routerLink]="[ '/accounts', videoChannel.ownerBy ]" i18n-title title="Owner account page" class="actor-owner">
         <span i18n>Created by {{ videoChannel.ownerBy }}</span>
         <img [src]="videoChannel.ownerAvatarUrl" alt="Owner account avatar" />
       </a>
index bf4fa9396d98421795997e0c4b2b0fa4e3c7bdb8..b2e8210d374c28485ea3ae4a0e4c9b281bd612cf 100644 (file)
@@ -13,7 +13,7 @@
     </a>
 
     <div class="video-channel-info">
-      <a [routerLink]="[ '/video-channels', videoChannel.nameWithHost ]" class="video-channel-names" i18n-title title="Go to the channel">
+      <a [routerLink]="[ '/video-channels', videoChannel.nameWithHost ]" class="video-channel-names" i18n-title title="Channel page">
         <div class="video-channel-display-name">{{ videoChannel.displayName }}</div>
         <div class="video-channel-name">{{ videoChannel.nameWithHost }}</div>
       </a>
index b243c129bf0c36322bd00d5e7e011c995546b036..b66c9afde9f722d633bff7f91d84a1bef1d421ef 100644 (file)
@@ -8,7 +8,7 @@
     <div class="top-left-block">
       <span class="icon icon-menu" (click)="menu.toggleMenu()"></span>
 
-      <a class="peertube-title" [routerLink]="defaultRoute" title="Homepage" i18n-title>
+      <a class="peertube-title" [routerLink]="defaultRoute">
         <span class="icon icon-logo"></span>
         <span class="instance-name">{{ instanceName }}</span>
       </a>
index f748a47d5f29509a0cc5851018c28e24c2601c71..a8d34088ce102fbee265e0c58c17765a9e682bc8 100644 (file)
 
         <div class="footer-copyleft">
           <small class="d-inline" i18n-title title="powered by PeerTube - CopyLeft 2015-2020">
-            <a href="https://joinpeertube.org" class="mr-1" i18n-title title="PeerTube website" target="_blank" rel="noopener noreferrer" i18n>powered by PeerTube</a>
+            <a href="https://joinpeertube.org" class="mr-1" target="_blank" rel="noopener noreferrer" i18n>powered by PeerTube</a>
 
-            <a href="https://github.com/Chocobozzz/PeerTube/blob/develop/LICENSE" i18n-title title="PeerTube license" target="_blank" rel="noopener noreferrer">
+            <a href="https://github.com/Chocobozzz/PeerTube/blob/develop/LICENSE" target="_blank" rel="noopener noreferrer">
               <span aria-label="copyleft" class="d-inline-block" style="transform: rotateY(180deg)">&copy;</span> 2015-2020
             </a>
           </small>
index 062ef5bde8df36344ab0eb573d603795ac2c6f72..09871fca418b8677bedab47b509e27e095a4f2be 100644 (file)
@@ -1,8 +1,8 @@
 <div class="wrapper" [ngClass]="'avatar-' + size">
   <a [routerLink]="[ '/video-channels', video.byVideoChannel ]" [title]="channelLinkTitle">
-    <img [src]="video.videoChannelAvatarUrl" alt="Channel avatar" />
+    <img [src]="video.videoChannelAvatarUrl" i18n-alt alt="Channel avatar" />
   </a>
   <a [routerLink]="[ '/accounts', video.byAccount ]" [title]="accountLinkTitle">
-    <img [src]="video.accountAvatarUrl" alt="Account avatar" />
+    <img [src]="video.accountAvatarUrl" i18n-alt alt="Account avatar" />
   </a>
 </div>
index 2c8eeb4b215dc2fdf75d1666433aa2e7a1c20089..31f39c20013336d0906d2f3a31351192d7b94aaa 100644 (file)
@@ -20,11 +20,11 @@ export class AvatarComponent implements OnInit {
 
   ngOnInit () {
     this.channelLinkTitle = this.i18n(
-      'Go to the channel page of {{name}} ({{handle}})',
+      '{{name}} (channel page)',
       { name: this.video.channel.name, handle: this.video.byVideoChannel }
     )
     this.accountLinkTitle = this.i18n(
-      'Go to the account page of {{name}} ({{handle}})',
+      '{{name}} (account page)',
       { name: this.video.account.name, handle: this.video.byAccount }
     )
   }
index 36e18d018bffef0735eeaeac1f6f37278ddc05fd..a08c3fc8dcd16846b4c2ecdf54261f6d7ce78cd0 100644 (file)
@@ -114,7 +114,7 @@ export class VideoMiniatureComponent implements OnInit {
     this.setUpBy()
 
     this.channelLinkTitle = this.i18n(
-      'Go to the channel page of {{name}} ({{handle}})',
+      '{{name}} (channel page)',
       { name: this.video.channel.name, handle: this.video.byVideoChannel }
     )
 
index e10056f932ee69da5ac940d230a967138d937869..0447268f0d3a0458a573be085f5855a706690cf5 100644 (file)
               <avatar-channel [video]="video"></avatar-channel>
 
               <div class="video-info-channel-left-links ml-1">
-                <a [routerLink]="[ '/video-channels', video.byVideoChannel ]" i18n-title title="Go the channel page">
+                <a [routerLink]="[ '/video-channels', video.byVideoChannel ]" i18n-title title="Channel page">
                   {{ video.channel.displayName }}
                 </a>
-                <a [routerLink]="[ '/accounts', video.byAccount ]" i18n-title title="Go to the account page">
+                <a [routerLink]="[ '/accounts', video.byAccount ]" i18n-title title="Account page">
                   <span i18n>By {{ video.byAccount }}</span>
                 </a>
               </div>
index 63e92eb77575592fca41c5d250d6c45ae6587a72..e73c95900efcde5d53d2e06e8b8ef3ec15a9ddc1 100644 (file)
@@ -24,7 +24,7 @@ class PeerTubeLinkButton extends Button {
     const el = videojs.dom.createEl('a', {
       href: buildVideoLink(),
       innerHTML: 'PeerTube',
-      title: this.player().localize('Go to the video page'),
+      title: this.player().localize('Video page (new window)'),
       className: 'vjs-peertube-link',
       target: '_blank'
     })