From 73db86308019f03c2aabc264b337fd6a7478b16f Mon Sep 17 00:00:00 2001 From: Bat Date: Wed, 18 Apr 2018 17:39:52 +0100 Subject: [PATCH 1/2] i18n: playlists components --- front/src/components/playlists/Card.vue | 7 ++++-- front/src/components/playlists/Editor.vue | 20 +++++++++-------- front/src/components/playlists/Form.vue | 22 +++++++++---------- .../components/playlists/PlaylistModal.vue | 22 +++++++++---------- .../playlists/TrackPlaylistIcon.vue | 4 ++-- 5 files changed, 40 insertions(+), 35 deletions(-) diff --git a/front/src/components/playlists/Card.vue b/front/src/components/playlists/Card.vue index 6dd1b0a0c..670b43194 100644 --- a/front/src/components/playlists/Card.vue +++ b/front/src/components/playlists/Card.vue @@ -10,13 +10,16 @@ {{ playlist.user.username }}
- Updated + + + +
- {{ playlist.tracks_count }} tracks + {{ $t('{%count%} tracks', { count: playlist.tracks_count }) }} Play all
diff --git a/front/src/components/playlists/Editor.vue b/front/src/components/playlists/Editor.vue index c668857ea..c036737ce 100644 --- a/front/src/components/playlists/Editor.vue +++ b/front/src/components/playlists/Editor.vue @@ -2,16 +2,16 @@

- Playlist editor + {{ $t('Playlist editor') }}

@@ -28,13 +28,15 @@ :disabled="queueTracks.length === 0" :class="['ui', {disabled: queueTracks.length === 0}, 'labeled', 'icon', 'button']" title="Copy tracks from current queue to playlist"> - Insert from queue ({{ queueTracks.length }} tracks)
+ + {{ $t('Insert from queue ({%count%} tracks)', { count: queueTracks.length }) }} +
- Clear playlist -

Do you want to clear the playlist "{{ playlist.name }}"?

-

This will remove all tracks from this playlist and cannot be undone.

-

Clear playlist

+ {{ $t('Clear playlist') }} +

{{ $t('Do you want to clear the playlist "{%name%}"?', { name: playlist.name }) }}

+

{{ $t('This will remove all tracks from this playlist and cannot be undone.') }}

+

{{ $t('Clear playlist') }}