From 8fbcb01edc8bb6d486a97ce68fca9c40a1970da6 Mon Sep 17 00:00:00 2001 From: Bat Date: Sat, 14 Apr 2018 18:28:41 +0100 Subject: [PATCH] Start making components i18n-friendly --- front/src/App.vue | 26 +- front/src/components/activity/Like.vue | 19 +- front/src/components/activity/Listen.vue | 19 +- front/src/components/audio/PlayButton.vue | 10 +- front/src/components/audio/Player.vue | 24 +- front/src/components/audio/Search.vue | 10 +- front/src/components/audio/album/Card.vue | 20 +- front/src/components/audio/artist/Card.vue | 18 +- front/src/components/audio/track/Table.vue | 30 +- front/src/components/auth/Login.vue | 16 +- front/src/components/auth/Logout.vue | 6 +- front/src/components/auth/Profile.vue | 9 +- front/src/components/auth/Settings.vue | 28 +- front/src/components/auth/Signup.vue | 14 +- .../src/components/common/DangerousButton.vue | 6 +- front/src/components/discussion/Comment.vue | 8 +- front/src/components/favorites/List.vue | 22 +- .../favorites/TrackFavoriteIcon.vue | 12 +- front/src/components/instance/Stats.vue | 30 +- .../library/import/ArtistImport.vue | 8 +- .../components/library/import/BatchDetail.vue | 10 +- .../components/library/import/BatchList.vue | 12 +- .../components/library/import/FileUpload.vue | 26 +- front/src/components/library/import/Main.vue | 50 +- .../library/import/ReleaseImport.vue | 9 +- .../components/library/import/TrackImport.vue | 13 +- front/src/main.js | 8 +- front/static/translations/fr.json | 16 +- po/fr.po | 59 ++- po/funkwhale.pot | 485 +++++++++++++++++- 30 files changed, 798 insertions(+), 225 deletions(-) diff --git a/front/src/App.vue b/front/src/App.vue index bf9a1e261..e8cac7476 100644 --- a/front/src/App.vue +++ b/front/src/App.vue @@ -7,22 +7,25 @@
-

Links

+
-

About funkwhale

-

Funkwhale is a free and open-source project run by volunteers. You can help us improve the platform by reporting bugs, suggesting features and share the project with your friends!

-

The funkwhale logo was kindly designed and provided by Francis Gading.

+ +

+ +

+

+ +

@@ -32,7 +35,6 @@ :dsn="$store.state.instance.settings.raven.front_dsn.value"> - @@ -50,8 +52,6 @@ export default { PlaylistModal }, created () { - // this.$i18n.i18next.changeLanguage('fr') - console.log(this.$t('Hello, world!')) this.$store.dispatch('instance/fetchSettings') let self = this setInterval(() => { diff --git a/front/src/components/activity/Like.vue b/front/src/components/activity/Like.vue index ffb831278..deda121cc 100644 --- a/front/src/components/activity/Like.vue +++ b/front/src/components/activity/Like.vue @@ -5,17 +5,20 @@
- - favorited a track - + + + +
{{ event.object.name }} - - - + + {{ event.object.album }} + {{ event.object.artist }} + + + {{ event.object.artist }} +
diff --git a/front/src/components/activity/Listen.vue b/front/src/components/activity/Listen.vue index 7c8ee8a69..d207c280d 100644 --- a/front/src/components/activity/Listen.vue +++ b/front/src/components/activity/Listen.vue @@ -5,17 +5,20 @@
- - listened to a track - + + + +
{{ event.object.name }} - - - + + {{ event.object.album }} + {{ event.object.artist }} + + + {{ event.object.artist }} +
diff --git a/front/src/components/audio/PlayButton.vue b/front/src/components/audio/PlayButton.vue index f2a389862..14d381ca1 100644 --- a/front/src/components/audio/PlayButton.vue +++ b/front/src/components/audio/PlayButton.vue @@ -1,18 +1,18 @@ diff --git a/front/src/components/audio/track/Table.vue b/front/src/components/audio/track/Table.vue index 512ba1b49..7045cf9bd 100644 --- a/front/src/components/audio/track/Table.vue +++ b/front/src/components/audio/track/Table.vue @@ -4,9 +4,9 @@ - Title - Artist - Album + + + @@ -20,20 +20,18 @@ - + -
- Download tracks -
+
-

There is currently no way to download directly multiple tracks from funkwhale as a ZIP archive. - However, you can use a command line tools such as cURL to easily download a list of tracks. -

-

Simply copy paste the snippet below into a terminal to launch the download.

-
- Keep your PRIVATE_TOKEN secret as it gives access to your account. -
+ + cURL + + +
 export PRIVATE_TOKEN="{{ $store.state.auth.token }}"