Fixed some translations
authorRemixDev <deezloaderremix@gmail.com>
Sat, 14 Sep 2019 17:32:47 +0000 (19:32 +0200)
committerRemixDev <deezloaderremix@gmail.com>
Sat, 14 Sep 2019 17:32:47 +0000 (19:32 +0200)
app/public/js/frontend.js
app/public/locales/de.json
app/public/locales/en.json
app/public/locales/es.json
app/public/locales/fa.json
app/public/locales/it.json
app/public/locales/pt-BR.json
app/public/locales/tr.json
app/public/locales/uwu.json
app/views/index.ejs

index d6c00c886b5d10124af3271fd2e2befbedb434b0..e6efaed3053cd822211ef6d2d53b8feec370138a 100644 (file)
@@ -862,7 +862,7 @@ socket.on("getTrackList", function (data) {
                if (data.reqType == 'artist') {
                        trackListModalApp.title = data.response.name
                        trackListModalApp.image = data.response.picture_xl
-                       trackListModalApp.type = data.reqType
+                       trackListModalApp.type = i18n(data.reqType[0].toUpperCase() + data.reqType.substring(1))
                        trackListModalApp.link = `https://www.deezer.com/${data.reqType}/${data.id}`
                        trackListModalApp.head = [
                                {title: '', smallonly:true},
@@ -889,7 +889,7 @@ socket.on("getTrackList", function (data) {
                                showTrackListSelective($(this).data('link'), true)
                        })
                } else if(data.reqType == 'playlist') {
-                       trackListSelectiveModalApp.type = data.reqType
+                       trackListSelectiveModalApp.type = i18n(data.reqType[0].toUpperCase() + data.reqType.substring(1))
                        trackListSelectiveModalApp.link = `https://www.deezer.com/${data.reqType}/${data.id}`
                        trackListSelectiveModalApp.title = data.response.title
                        trackListSelectiveModalApp.image = data.response.picture_xl
@@ -932,7 +932,7 @@ socket.on("getTrackList", function (data) {
                        var [hh,mm,ss] = convertDurationSeparated(totalDuration)
                        trackListSelectiveModalApp.metadata += `, ${hh>0 ? `${hh} hr` : ""} ${mm} min`
                } else if(data.reqType == 'album') {
-                       trackListSelectiveModalApp.type = data.reqType
+                       trackListSelectiveModalApp.type = i18n(data.reqType[0].toUpperCase() + data.reqType.substring(1))
                        trackListSelectiveModalApp.link = `https://www.deezer.com/${data.reqType}/${data.id}`
                        trackListSelectiveModalApp.title = data.response.title
                        trackListSelectiveModalApp.explicit = data.response.explicit_lyrics
@@ -987,7 +987,7 @@ socket.on("getTrackList", function (data) {
                        var [hh,mm,ss] = convertDurationSeparated(totalDuration)
                        trackListSelectiveModalApp.metadata += `, ${hh>0 ? `${hh} hr` : ""} ${mm} min`
                } else if(data.reqType == 'spotifyplaylist') {
-                       trackListModalApp.type = "Spotify Playlist"
+                       trackListModalApp.type = i18n("Spotify Playlist")
                        trackListModalApp.link = 'spotify:playlist:'+data.id
                        trackListModalApp.title = data.response.title
                        trackListModalApp.image = data.response.image
index be7fdfb41beab64dfed89f28135ae0a7127ac9b2..9cf760f5e95771dc5fe22a16593c513f497faad9 100644 (file)
        "Download {{ type }}": "Download {{ type }}",
        "Download FLAC": "Download FLAC",
        "Download MP3 320kbps": "Download MP3 320kbps",
-       "Download MP3 128kbps": "Download MP3 128kbps"
-}
\ No newline at end of file
+       "Download MP3 128kbps": "Download MP3 128kbps",
+       "Spotify Playlist": "Spotify Playlist"
+}
index c58d133fdc29a8393d00a5ada556477689bac1a9..fe21f713e31c24d1de7fc92063e6db0f828dae16 100644 (file)
        "Download {{ type }}": "Download {{ type }}",
        "Download FLAC": "Download FLAC",
        "Download MP3 320kbps": "Download MP3 320kbps",
-       "Download MP3 128kbps": "Download MP3 128kbps"
-}
\ No newline at end of file
+       "Download MP3 128kbps": "Download MP3 128kbps",
+       "Spotify Playlist": "Spotify Playlist"
+}
index 982d3ec0c967479dd6acf6124d38ea1476cb0767..f237e66b1d487fd3b6476d8fd80933bd61b9e284 100644 (file)
        "Download {{ type }}": "Download {{ type }}",
        "Download FLAC": "Download FLAC",
        "Download MP3 320kbps": "Download MP3 320kbps",
-       "Download MP3 128kbps": "Download MP3 128kbps"
-}
\ No newline at end of file
+       "Download MP3 128kbps": "Download MP3 128kbps",
+       "Spotify Playlist": "Spotify Playlist"
+}
index 9076ff334a59f9543ab29006fba01f99223058cd..6c48c52876317a0c6f22ae40ed38d296d8a43df3 100644 (file)
@@ -42,7 +42,7 @@
        "Artist Artwork Name Template": "الگوی نام کاور هنرمند",
        "Download images as PNGs": "عکس‌ها با فرمت PNG دانلود شوند",
        "Tags": "برچسب‌ها",
-       "کاراکتر های باطل": "Null Character",
+       "Null Character": "کاراکتر های باطل",
        "with space": "با فاصله",
        "Multitag Separator": "جدا‌ساز برچسب‌های چندگانه",
        "YY": "YY",
        "All downloads completed!": "تمامی دانلود‌ها به پایان رسیدند!",
        "One download removed!": "یک مورد از صف دانلود پاک شد!",
        "All downloads removed!": "همه موارد از صف دانلود پاک شدند!",
-       "Null Character": "Null Character",
        "Download {{ type }}": "Download {{ type }}",
-       "Download FLAC": "Download FLAC",
-       "Download MP3 320kbps": "Download MP3 320kbps",
-       "Download MP3 128kbps": "Download MP3 128kbps"
-}
\ No newline at end of file
+       "Download FLAC": "دانلود   FLAC",
+       "Download MP3 320kbps": "دانلود MP3 320kbps",
+       "Download MP3 128kbps": "دانلود MP3 128kbps",
+       "Spotify Playlist": "لیست پخش Spotify"
+}
index 3da559b3ee26f27b663932d8d62b352055e7d834..76bd1da09b96a1eff8150b57fe80417b9dc0ff63 100644 (file)
        "Download {{ type }}": "Scarica {{ type }}",
        "Download FLAC": "Scarica FLAC",
        "Download MP3 320kbps": "Scarica MP3 320kbps",
-       "Download MP3 128kbps": "Scarica MP3 128kbps"
+       "Download MP3 128kbps": "Scarica MP3 128kbps",
+       "Spotify Playlist": "Playlist Spotify"
 }
index 5b4d43c3ce0f209e7c63dbf921cb30b9c7991d14..c9be987be6c9bc9901d6cf8dc419468c8059a239 100644 (file)
        "Download {{ type }}": "Download {{ type }}",
        "Download FLAC": "Download FLAC",
        "Download MP3 320kbps": "Download MP3 320kbps",
-       "Download MP3 128kbps": "Download MP3 128kbps"
-}
\ No newline at end of file
+       "Download MP3 128kbps": "Download MP3 128kbps",
+       "Spotify Playlist": "Spotify Playlist"
+}
index f981bc326bb01437b419862d4da25717fa64c7e5..e6bd84f716aeaf1dc4c95d7b7cb9f75618ed9793 100644 (file)
        "Download {{ type }}": "Download {{ type }}",
        "Download FLAC": "Download FLAC",
        "Download MP3 320kbps": "Download MP3 320kbps",
-       "Download MP3 128kbps": "Download MP3 128kbps"
-}
\ No newline at end of file
+       "Download MP3 128kbps": "Download MP3 128kbps",
+       "Spotify Playlist": "Spotify Playlist"
+}
index b7ffed4bf0912de918b3265e5ec1fca34c874c39..f070834fc3a1156dcef8256de5d5c45b0dbb6109 100644 (file)
        "userToken": "usewtoken",
        "with space": "wif space",
        "Download {{ type }}": "downwoad {{ type }}",
-       "Download FLAC": "downwoad FLAC",
-       "Download MP3 320kbps": "downwoad MP3 320kbps",
-       "Download MP3 128kbps": "downwoad MP3 128kbps"
+       "Download FLAC": "downwoad fwac",
+       "Download MP3 320kbps": "downwoad mp3 320kbps",
+       "Download MP3 128kbps": "downwoad mp3 128kbps",
+       "Spotify Playlist": "spotify pwaywist"
 }
index ad866838dbfade89b43c236d526d283a7ea0aaf3..917deeb5ad35d21c5f3c5322d58e347067b0af68 100644 (file)
                </div>
        </div>
        <div class="modal-footer">
-               <a href="#" id="download_all_tracks" v-bind:data-link="link" class="btn btn-flat waves-effect waves-light left"><%= __('Download {{ type }}')%></a>
+               <a href="#" id="download_all_tracks" v-bind:data-link="link" class="btn btn-flat waves-effect waves-light left"><%= __('Download {{ type }}', {type: '{{ type }}'})%></a>
                <a href="#" class="modal-close waves-effect btn-flat"><%= __('Close')%></a>
        </div>
 </div>
                </div>
        </div>
        <div class="modal-footer">
-               <a href="#" id="download_all_tracks_selective" v-bind:data-link="link" class="btn btn-flat waves-effect waves-light left">Download {{ type }}</a>
+               <a href="#" id="download_all_tracks_selective" v-bind:data-link="link" class="btn btn-flat waves-effect waves-light left"><%= __('Download {{ type }}', {type: '{{ type }}'})%></a>
                <a href="#" id="download_track_selection" class="btn btn-flat waves-effect waves-light deezloader-primary white-text"><span class="hide-on-small-only"><%= __('Download selection')%><i class="material-icons right">file_download</i></span><i class="material-icons hide-on-med-and-up">file_download</i></a>
                <a href="#" class="modal-close waves-effect btn-flat"><%= __('Close')%></a>
        </div>