Fix some translations

This commit is contained in:
Chocobozzz 2020-09-01 15:52:16 +02:00
parent 09e670074d
commit fa7b6076bb
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
8 changed files with 38 additions and 46 deletions

View File

@ -14,8 +14,6 @@
<a v-translate href="">Install PeerTube</a>
<a v-translate href="">Why should I have my own PeerTube website?</a>
<a v-translate class="all" href=""><strong>Check all guides >></strong></a>
</div>
<div>
@ -24,8 +22,6 @@
<a v-translate href="">Open an account on a PeerTube website</a>
<a v-translate href="">Create playlists</a>
<a v-translate class="all" href=""><strong>Check all guides >></strong></a>
</div>
</div>
</footer>

View File

@ -1,23 +1,23 @@
<template>
<div class="block" v-bind:class="{ highlight: highlight }" v-translate="{indexName: indexName}">
<div class="block" v-bind:class="{ highlight: highlight }" v-translate="{ indexName: indexName }">
<strong>%{indexName}</strong> displays videos and channels that match your search but is not the publisher, nor the owner.
If you notice any problems with a video, report it to the corresponding administrator on the PeerTube website.
</div>
</template>
<style scoped lang="scss">
<style lang="scss">
@import '../scss/_variables';
.block {
font-style: italic;
color: $orange;
}
.highlight {
color: #fff;
background-color: $orange-darken;
font-style: normal;
padding: 20px;
.highlight {
color: #fff;
background-color: $orange-darken;
font-style: normal;
padding: 20px;
}
}
</style>

View File

@ -14,24 +14,20 @@ msgstr ""
msgid "({{ countActiveFilters() }} active)"
msgstr "({{ countActiveFilters() }} active)"
#: src/views/Search.vue:165
msgid "{{resultsCount}} results found for"
msgstr "{{resultsCount}} results found for"
#: src/components/ChannelResult.vue:17
msgid "%{ channel.followersCount } follower"
msgid_plural "%{channel.followersCount} followers"
msgstr[0] "%{ channel.followersCount } follower"
msgstr[1] "%{channel.followersCount} followers"
#: src/views/Search.vue:165
msgid "%{resultsCount} results found for"
msgstr "%{resultsCount} results found for"
#: src/components/SearchWarning.vue:1
msgid "<strong>%{indexName}</strong> displays videos and channels that match your search but is not the publisher, nor the owner. If you notice any problems with a video, report it to the corresponding administrator on the PeerTube website."
msgstr "<strong>%{indexName}</strong> displays videos and channels that match your search but is not the publisher, nor the owner. If you notice any problems with a video, report it to the corresponding administrator on the PeerTube website."
#: src/components/Footer.vue:17 src/components/Footer.vue:27
msgid "<strong>Check all guides >></strong>"
msgstr "<strong>Check all guides >></strong>"
#: src/components/Footer.vue:6
msgid "A free software to take back control of your videos"
msgstr "A free software to take back control of your videos"
@ -104,11 +100,11 @@ msgstr "Čeština"
msgid "Comedy"
msgstr "Comedy"
#: src/components/Footer.vue:21
#: src/components/Footer.vue:19
msgid "Create an account to take back control of your videos"
msgstr "Create an account to take back control of your videos"
#: src/components/Footer.vue:25
#: src/components/Footer.vue:23
msgid "Create playlists"
msgstr "Create playlists"
@ -293,14 +289,14 @@ msgid "Occitan"
msgstr "Occitan"
#: src/views/Search.vue:167
msgid "on {{instancesCount}} indexed PeerTube websites"
msgstr "on {{instancesCount}} indexed PeerTube websites"
msgid "on %{instancesCount} indexed PeerTube websites"
msgstr "on %{instancesCount} indexed PeerTube websites"
#: src/views/Search.vue:148
msgid "One of these tags"
msgstr "One of these tags"
#: src/components/Footer.vue:23
#: src/components/Footer.vue:21
msgid "Open an account on a PeerTube website"
msgstr "Open an account on a PeerTube website"

View File

@ -17,16 +17,17 @@ msgstr ""
msgid "({{ countActiveFilters() }} active)"
msgstr "({{ countActiveFilters() }} actifs)"
#: src/views/Search.vue:165
msgid "{{resultsCount}} results found for"
msgstr "{{resultsCount}} résultats trouvés pour"
#: src/components/ChannelResult.vue:17
msgid "%{ channel.followersCount } follower"
msgid_plural "%{channel.followersCount} followers"
msgstr[0] "%{ channel.followersCount } abonné"
msgstr[1] "%{channel.followersCount} abonnés"
#: src/views/Search.vue:165
#, fuzzy
msgid "%{resultsCount} results found for"
msgstr "{{resultsCount}} résultats trouvés pour"
#: src/components/SearchWarning.vue:1
msgid ""
"<strong>%{indexName}</strong> displays videos and channels that match your "
@ -39,10 +40,6 @@ msgstr ""
"constatez le moindre problème sur une vidéo, signalez-la à un administrateur "
"directement sur le site PeerTube où elle est hébergée."
#: src/components/Footer.vue:17 src/components/Footer.vue:27
msgid "<strong>Check all guides >></strong>"
msgstr "<strong>Voir tous les tutos >></strong>"
#: src/components/Footer.vue:6
msgid "A free software to take back control of your videos"
msgstr "Un logiciel libre pour reprendre le contrôle de vos vidéos"
@ -120,11 +117,11 @@ msgstr "Tchèque"
msgid "Comedy"
msgstr "Humour"
#: src/components/Footer.vue:21
#: src/components/Footer.vue:19
msgid "Create an account to take back control of your videos"
msgstr "Créez un compte pour reprendre le contrôle de vos vidéos"
#: src/components/Footer.vue:25
#: src/components/Footer.vue:23
msgid "Create playlists"
msgstr "Créer des listes de lecture"
@ -309,14 +306,15 @@ msgid "Occitan"
msgstr "Occitane"
#: src/views/Search.vue:167
msgid "on {{instancesCount}} indexed PeerTube websites"
#, fuzzy
msgid "on %{instancesCount} indexed PeerTube websites"
msgstr "sur {{instancesCount}} sites web PeerTube indexés"
#: src/views/Search.vue:148
msgid "One of these tags"
msgstr "Un seul des mots clés suivants"
#: src/components/Footer.vue:23
#: src/components/Footer.vue:21
msgid "Open an account on a PeerTube website"
msgstr "Ouvrir un compte sur un site web PeerTube"
@ -434,6 +432,9 @@ msgstr "Japonais"
msgid "简体中文(中国)"
msgstr "Chinois simplifié"
#~ msgid "<strong>Check all guides >></strong>"
#~ msgstr "<strong>Voir tous les tutos >></strong>"
#~ msgid "Publish date"
#~ msgstr "Date de publication"

View File

@ -126,7 +126,7 @@ function buildTranslationsPromise (defaultLanguage, currentLanguage) {
if (currentLanguage === defaultLanguage) return Promise.resolve(translations)
// Fetch translations from server
const fromRemote = import('../translations/' + currentLanguage + '.json')
const fromRemote = import('./translations/' + currentLanguage + '.json')
.then(module => {
const remoteTranslations = module.default
try {

View File

@ -1 +1 @@
{"en_US":{"({{ countActiveFilters() }} active)":"({{ countActiveFilters() }} active)","{{resultsCount}} results found for":"{{resultsCount}} results found for","%{ channel.followersCount } follower":["%{ channel.followersCount } follower","%{channel.followersCount} followers"],"<strong>%{indexName}</strong> displays videos and channels that match your search but is not the publisher, nor the owner. If you notice any problems with a video, report it to the corresponding administrator on the PeerTube website.":"<strong>%{indexName}</strong> displays videos and channels that match your search but is not the publisher, nor the owner. If you notice any problems with a video, report it to the corresponding administrator on the PeerTube website.","<strong>Check all guides >></strong>":"<strong>Check all guides >></strong>","A free software to take back control of your videos":"A free software to take back control of your videos","A video index developed by <a href=\"https://framasoft.org\" target=\"_blank\">Framasoft</a>":"A video index developed by <a href=\"https://framasoft.org\" target=\"_blank\">Framasoft</a>","Activism":"Activism","All of these tags":"All of these tags","Animals":"Animals","Any":"Any","Art":"Art","Attribution":"Attribution","Attribution - No Derivatives":"Attribution - No Derivatives","Attribution - Non Commercial":"Attribution - Non Commercial","Attribution - Non Commercial - No Derivatives":"Attribution - Non Commercial - No Derivatives","Attribution - Non Commercial - Share Alike":"Attribution - Non Commercial - Share Alike","Attribution - Share Alike":"Attribution - Share Alike","Best match":"Best match","Català":"Català","Category":"Category","Čeština":"Čeština","Comedy":"Comedy","Create an account to take back control of your videos":"Create an account to take back control of your videos","Create playlists":"Create playlists","Created by":"Created by","Deutsch":"Deutsch","Discover this channel on %{host}":"Discover this channel on %{host}","Display all categories":"Display all categories","Display all languages":"Display all languages","Display all licenses":"Display all licenses","Display sensitive content":"Display sensitive content","Duration":"Duration","Education":"Education","English":"English","Entertainment":"Entertainment","Español":"Español","Esperanto":"Esperanto","Euskara":"Euskara","Films":"Films","Filters":"Filters","Food":"Food","Français":"Français","Gàidhlig":"Gàidhlig","Gaming":"Gaming","Go on this account page":"Go on this account page","Go on this channel page":"Go on this channel page","Go!":"Go!","How To":"How To","In":"In","Install PeerTube":"Install PeerTube","Italiano":"Italiano","Keyword, channel, video, etc.":"Keyword, channel, video, etc.","Kids":"Kids","Language":"Language","Last 30 days":"Last 30 days","Last 365 days":"Last 365 days","Last 7 days":"Last 7 days","Least recent":"Least recent","Licence":"Licence","Long (> 10 min)":"Long (> 10 min)","Medium (4-10 min)":"Medium (4-10 min)","Most recent":"Most recent","Music":"Music","Nederlands":"Nederlands","News & Politics":"News & Politics","Next page":"Next page","No":"No","No results found for":"No results found for","Occitan":"Occitan","on {{instancesCount}} indexed PeerTube websites":"on {{instancesCount}} indexed PeerTube websites","One of these tags":"One of these tags","Open an account on a PeerTube website":"Open an account on a PeerTube website","Open your own videos website with PeerTube!":"Open your own videos website with PeerTube!","People":"People","Polski":"Polski","Português (Portugal)":"Português (Portugal)","Previous page":"Previous page","Public Domain Dedication":"Public Domain Dedication","Published date":"Published date","Reset":"Reset","Science & Technology":"Science & Technology","Search for your favorite videos and channels on %{instancesCount} PeerTube websites listed on <strong>%{indexName}</strong>!":"Search for your favorite videos and channels on %{instancesCount} PeerTube websites listed on <strong>%{indexName}</strong>!","Short (< 4 min)":"Short (< 4 min)","Sort by:":"Sort by:","Sports":"Sports","suomi":"suomi","svenska":"svenska","Tags":"Tags","Today":"Today","Travels":"Travels","Vehicles":"Vehicles","Watch the video on %{host}":"Watch the video on %{host}","Why should I have my own PeerTube website?":"Why should I have my own PeerTube website?","with {{ countActiveFilters() }} active filters":"with {{ countActiveFilters() }} active filters","Yes":"Yes","ελληνικά":"ελληνικά","русский":"русский","日本語":"日本語","简体中文(中国)":"简体中文(中国)"}}
{"en_US":{"({{ countActiveFilters() }} active)":"({{ countActiveFilters() }} active)","%{ channel.followersCount } follower":["%{ channel.followersCount } follower","%{channel.followersCount} followers"],"%{resultsCount} results found for":"%{resultsCount} results found for","<strong>%{indexName}</strong> displays videos and channels that match your search but is not the publisher, nor the owner. If you notice any problems with a video, report it to the corresponding administrator on the PeerTube website.":"<strong>%{indexName}</strong> displays videos and channels that match your search but is not the publisher, nor the owner. If you notice any problems with a video, report it to the corresponding administrator on the PeerTube website.","A free software to take back control of your videos":"A free software to take back control of your videos","A video index developed by <a href=\"https://framasoft.org\" target=\"_blank\">Framasoft</a>":"A video index developed by <a href=\"https://framasoft.org\" target=\"_blank\">Framasoft</a>","Activism":"Activism","All of these tags":"All of these tags","Animals":"Animals","Any":"Any","Art":"Art","Attribution":"Attribution","Attribution - No Derivatives":"Attribution - No Derivatives","Attribution - Non Commercial":"Attribution - Non Commercial","Attribution - Non Commercial - No Derivatives":"Attribution - Non Commercial - No Derivatives","Attribution - Non Commercial - Share Alike":"Attribution - Non Commercial - Share Alike","Attribution - Share Alike":"Attribution - Share Alike","Best match":"Best match","Català":"Català","Category":"Category","Čeština":"Čeština","Comedy":"Comedy","Create an account to take back control of your videos":"Create an account to take back control of your videos","Create playlists":"Create playlists","Created by":"Created by","Deutsch":"Deutsch","Discover this channel on %{host}":"Discover this channel on %{host}","Display all categories":"Display all categories","Display all languages":"Display all languages","Display all licenses":"Display all licenses","Display sensitive content":"Display sensitive content","Duration":"Duration","Education":"Education","English":"English","Entertainment":"Entertainment","Español":"Español","Esperanto":"Esperanto","Euskara":"Euskara","Films":"Films","Filters":"Filters","Food":"Food","Français":"Français","Gàidhlig":"Gàidhlig","Gaming":"Gaming","Go on this account page":"Go on this account page","Go on this channel page":"Go on this channel page","Go!":"Go!","How To":"How To","In":"In","Install PeerTube":"Install PeerTube","Italiano":"Italiano","Keyword, channel, video, etc.":"Keyword, channel, video, etc.","Kids":"Kids","Language":"Language","Last 30 days":"Last 30 days","Last 365 days":"Last 365 days","Last 7 days":"Last 7 days","Least recent":"Least recent","Licence":"Licence","Long (> 10 min)":"Long (> 10 min)","Medium (4-10 min)":"Medium (4-10 min)","Most recent":"Most recent","Music":"Music","Nederlands":"Nederlands","News & Politics":"News & Politics","Next page":"Next page","No":"No","No results found for":"No results found for","Occitan":"Occitan","on %{instancesCount} indexed PeerTube websites":"on %{instancesCount} indexed PeerTube websites","One of these tags":"One of these tags","Open an account on a PeerTube website":"Open an account on a PeerTube website","Open your own videos website with PeerTube!":"Open your own videos website with PeerTube!","People":"People","Polski":"Polski","Português (Portugal)":"Português (Portugal)","Previous page":"Previous page","Public Domain Dedication":"Public Domain Dedication","Published date":"Published date","Reset":"Reset","Science & Technology":"Science & Technology","Search for your favorite videos and channels on %{instancesCount} PeerTube websites listed on <strong>%{indexName}</strong>!":"Search for your favorite videos and channels on %{instancesCount} PeerTube websites listed on <strong>%{indexName}</strong>!","Short (< 4 min)":"Short (< 4 min)","Sort by:":"Sort by:","Sports":"Sports","suomi":"suomi","svenska":"svenska","Tags":"Tags","Today":"Today","Travels":"Travels","Vehicles":"Vehicles","Watch the video on %{host}":"Watch the video on %{host}","Why should I have my own PeerTube website?":"Why should I have my own PeerTube website?","with {{ countActiveFilters() }} active filters":"with {{ countActiveFilters() }} active filters","Yes":"Yes","ελληνικά":"ελληνικά","русский":"русский","日本語":"日本語","简体中文(中国)":"简体中文(中国)"}}

File diff suppressed because one or more lines are too long

View File

@ -163,9 +163,9 @@
<div id="results-anchor" class="results-summary" v-if="(formSearch && resultsCount === 0) || (resultsCount !== null && resultsCount !== 0)">
<span v-if="formSearch && resultsCount === 0" v-translate>No results found for </span>
<span v-if="resultsCount !== null && resultsCount !== 0" v-translate>{{resultsCount}} results found for </span>
<strong>{{ searchedTerm }} <span v-if="countActiveFilters() > 0" v-translate>with {{ countActiveFilters() }} active filters</span></strong>
<translate>on {{instancesCount}} indexed PeerTube websites</translate>
<span v-if="resultsCount !== null && resultsCount !== 0" v-translate="{ resultsCount: resultsCount }">%{resultsCount} results found for </span>
<strong>{{ searchedTerm }} <span v-if="countActiveFilters() > 0" v-translate>with {{ countActiveFilters() }} active filters </span></strong>
<span v-translate="{ instancesCount: instancesCount }">on %{instancesCount} indexed PeerTube websites</span>
</div>
<div v-for="result in results" :key="getResultKey(result)">
@ -394,7 +394,7 @@
searchDone: false,
indexName: '',
instancesCount: null as number,
instancesCount: 0,
results: [] as (EnhancedVideo | EnhancedVideoChannel)[],
resultsCount: null as number,
@ -442,6 +442,7 @@
if (!this.searchDone) return
this.loadUrl()
this.doSearch()
},
formSort () {
@ -650,8 +651,6 @@
this.scrollToResults()
}
this.doSearch(false)
},
buildVideoSearchQuery () {