From 9ee03828ae8ddfc1c31861430e497ffc724f51d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Onur=20G=C3=BCm=C3=BC=C5=9F?= <10urgumus@gmail.com>
Date: Tue, 25 Jan 2022 18:13:58 +0300
Subject: [PATCH] found the 0.001% LOL
Update on i18n stuff
---
src/i18n/en_US.jsonc | 26 ++++++++-
src/i18n/tr_TR.jsonc | 58 +++++++++++++++----
src/renderer/index.js | 16 ++---
src/renderer/views/components/lyrics-view.ejs | 2 +-
src/renderer/views/pages/about.ejs | 29 +++++-----
src/renderer/views/pages/podcasts.ejs | 20 +++----
6 files changed, 105 insertions(+), 46 deletions(-)
diff --git a/src/i18n/en_US.jsonc b/src/i18n/en_US.jsonc
index 872d9ff1..6f07ded9 100644
--- a/src/i18n/en_US.jsonc
+++ b/src/i18n/en_US.jsonc
@@ -13,6 +13,7 @@
"notification.updatingLibraryAlbums": "Updating library albums...",
"notification.updatingLibraryArtists": "Updating library artists...",
// Terms
+ "term.appleInc": "Apple Inc.",
"term.appleMusic": "Apple Music",
"term.applePodcasts": "Apple Podcasts",
"term.itunes": "iTunes",
@@ -70,6 +71,7 @@
"term.enabled": "Enabled",
"term.disabled": "Disabled",
"term.connect": "Connect",
+ "term.connecting": "Connecting...",
"term.confirm": "Confirm ?",
"term.more": "More",
"term.less": "Less",
@@ -86,6 +88,15 @@
"term.clearAll": "Clear All",
"term.recentStations": "Recent Stations",
"term.language": "Language",
+ "term.noLyrics": "Loading... / Lyrics not found./ Instrumental.",
+ "term.copyright": "Copyright",
+ "term.rightsReserved": "All Rights Reserved.",
+ "term.sponsor": "Sponsor this project",
+ "term.ciderTeam": "Cider Team",
+ "term.developer": "Developer",
+ "term.socialTeam": "Social Team",
+ "term.contributors": "Contributors",
+
// Home
"home.title": "Home",
"home.recentlyPlayed": "Recently Played",
@@ -101,6 +112,16 @@
"error.noResults": "No Results.",
"error.noResults.description": "Try a new search.",
+ //Podcasts
+ "podcast.followOnCider": "Follow On Cider",
+ "podcast.followedOnCider": "Following On Cider",
+ "podcast.subscribeOnItunes": "Subscribe On iTunes",
+ "podcast.subscribedOnItunes": "Subscribed On iTunes",
+ "podcast.itunesStore": "iTunes Store",
+ "podcast.episodes": "Episodes",
+ "podcast.playEpisode": "Play Episode",
+ "podcast.website": "Podcast Website",
+
// Actions
"action.addToLibrary": "Add to Library",
"action.addToLibrary.success": "Added to Library",
@@ -207,5 +228,8 @@
// Web Remote
"remote.web.title": "Cider Remote",
- "remote.web.description": "Scan the QR code to pair your phone up with this Cider instance"
+ "remote.web.description": "Scan the QR code to pair your phone up with this Cider instance",
+
+ //About
+ "about.thanks": "Major thanks to the Cider Collective Team and all of our contributors."
}
\ No newline at end of file
diff --git a/src/i18n/tr_TR.jsonc b/src/i18n/tr_TR.jsonc
index 64ea7ee3..7975adaf 100644
--- a/src/i18n/tr_TR.jsonc
+++ b/src/i18n/tr_TR.jsonc
@@ -1,10 +1,9 @@
{
- // Turkish Language support by gms10ur
- //updated to the base file at 24.01.2022 21:00 GTM+3
-
// App info
"app.name": "Cider",
+ "date.format": "${d} ${m}, ${y}",
+
// Dialogs
"dialog.cancel": "İptal",
"dialog.ok": "Tamam",
@@ -15,6 +14,7 @@
"notification.updatingLibraryArtists": "Arşiv'deki sanatçılar alınıyor...",
// Terms
+ "term.appleInc": "Apple",
"term.appleMusic": "Apple Müzik",
"term.applePodcasts": "Apple Podcastler",
"term.itunes": "iTunes",
@@ -67,11 +67,12 @@
"term.size": "Boyut",
"term.size.normal": "Normal",
"term.size.compact": "Daha Sıkı",
- "term.enable": "Etkinleştir",
- "term.disable": "Devre Dışı Bırak",
- "term.enabled": "Etkin",
- "term.disabled": "Devre Dışı",
+ "term.enable": "Aç",
+ "term.disable": "Kapa",
+ "term.enabled": "Açık",
+ "term.disabled": "Kapalı",
"term.connect": "Bağlan",
+ "term.connecting": "Bağlanıyor...",
"term.confirm": "Onayla?",
"term.more": "Daha Fazla",
"term.less": "Daha Az",
@@ -84,18 +85,44 @@
"term.time.updated": "Şu tarihte güncellendi: ",
"term.fullscreenView": "Tam Ekrana Geç",
"term.defaultView": "Normal Görünüme Dön",
+ "term.spacializedAudioSetting": "Uzamsal Ses Ayarları",
+ "term.clearAll": "Tümünü Temizle",
+ "term.recentStations": "Son İstasyonlar",
+ "term.language": "Dil Seçimi",
+ "term.noLyrics": "Yükleniyor... / Şarkı Sözü Bulunamadı./ Enstrumantal.",
+ "term.copyright": "Copyright",
+ "term.rightsReserved": "Tüm Haklası Saklıdır.",
+ "term.sponsor": "Bu Projeye Destek Olun",
+ "term.ciderTeam": "Cider Ekibi",
+ "term.developer": "Geliştirici",
+ "term.socialTeam": "Sosyal Ekip",
+ "term.contributors": "Katkıda Bulunanlar",
// Home
"home.title": "Ana Sayfa",
"home.recentlyPlayed": "Son Oynatılanlar",
"home.recentlyAdded": "Son Eklenenler",
- "home.artistsFeed": "Sanatçılarınızın Son Yayınları",
+ "home.artistsFeed": "Son Çıkanlar",
+ "home.artistsFeed.noArtist": "Birkaç sanatçı takip ettiğinizde, sanatçılarınızın son çıkan yayınları burada gözükür.",
"home.madeForYou": "Sadece Size Özel",
"home.friendsListeningTo": "Arkadaşlarınızın Dinledikleri",
"home.followedArtists": "Takip Edilen Sanatçılar",
// Errors
"error.appleMusicSubRequired": "Apple Müzik, aktif bir abonelik gerektirir.",
+ "error.connectionError": "Apple Müzik ile bağlantı kurulamadı.",
+ "error.noResults": "Hiç sonuç yok",
+ "error.noResults.description": "Tekrar deneyin.",
+
+ //Podcasts
+ "podcast.followOnCider": "Cider'de Takip Et",
+ "podcast.followedOnCider": "Cider'de Takip Ediliyor",
+ "podcast.subscribeOnItunes": "itunes'de Abone Ol",
+ "podcast.subscribedOnItunes": "iTunes'de Abone Olundu",
+ "podcast.itunesStore": "iTunes Mağazası",
+ "podcast.episodes": "Bölümler",
+ "podcast.playEpisode": "Bölümü Oynat",
+ "podcast.website": "Web Sayfası",
// Actions
"action.addToLibrary": "Arşiv'e Ekle",
@@ -137,7 +164,7 @@
"settings.header.audio.description": "Cider'in sizin için en iyi dinleme deneyimini sağlayabilmesi için ses ayarlarınızı yapın.",
"settings.option.audio.quality": "Ses Kalitesi", // Dropdown
"settings.header.audio.quality.high": "Yüksek Kalite",
- "settings.header.audio.quality.low": "yüksek Verimlilik",
+ "settings.header.audio.quality.low": "Yüksek Verimlilik",
"settings.header.audio.quality.auto": "Otomatik",
"settings.option.audio.seamlessTransition": "Kesintisiz Ses Geçişi", // Toggle
"settings.option.audio.enableAdvancedFunctionality": "Gelişmiş Ses Deneyimi", // Toggle
@@ -161,9 +188,11 @@
"settings.header.visual.animatedArtworkQuality.low": "Düşük",
"settings.header.visual.animatedArtworkQuality.medium": "Orta",
"settings.header.visual.animatedArtworkQuality.high": "Yüksek",
- "settings.header.visual.animatedArtworkQuality.extreme": "En Yüksek",
+ "settings.header.visual.animatedArtworkQuality.veryHigh": "Daha Yüksek",
+ "settings.header.visual.animatedArtworkQuality.extreme": "Ekstrem",
"settings.option.visual.animatedWindowBackground": "Hareketli Uygulama Arka Planı", // Toggle
"settings.option.visual.hardwareAcceleration": "Donanım Hızlandırması", // Dropdown
+ "settings.option.visual.hardwareAcceleration.description": "Etki etmesi için uygulamayı yeniden başlatmak gerekir.",
"settings.header.visual.hardwareAcceleration.default": "Varsayılan",
"settings.header.visual.hardwareAcceleration.webGPU": "Gelişmiş",
// Refer to term.disabled for the disabled option
@@ -198,8 +227,15 @@
"settings.option.experimental.compactUI": "Kompakt Arayüz", // Toggle
// Refer to term.disabled & term.enabled
+ // Settings - Unfinished
+ "settings.header.unfinished": "Geliştirme Aşamasında",
+
// Web Remote
"remote.web.title": "Cider'e Bağlan",
- "remote.web.description": "Telefonunuzu Bu Cider Oturumuyla Eşleştirmek için QR Kodunu Tarayın"
+ "remote.web.description": "Telefonunuzu Bu Cider Oturumuyla Eşleştirmek için QR Kodunu Tarayın",
+
+ //About
+ "about.thanks": "Cider Collective Ekibine ve tüm katkıda bulunanlara çok teşekkür ederiz."
+
}
\ No newline at end of file
diff --git a/src/renderer/index.js b/src/renderer/index.js
index 4f82df13..92339e72 100644
--- a/src/renderer/index.js
+++ b/src/renderer/index.js
@@ -1768,7 +1768,7 @@ const app = new Vue({
downloaded = response
library = library.concat(downloaded.data)
self.library.downloadNotification.show = true
- self.library.downloadNotification.message = "Updating library songs..."
+ self.library.downloadNotification.message = app.getLz('notification.updatingLibrarySongs')
self.library.downloadNotification.total = downloaded.meta.total
self.library.downloadNotification.progress = library.length
@@ -1848,7 +1848,7 @@ const app = new Vue({
downloaded = response
library = library.concat(downloaded.data)
self.library.downloadNotification.show = true
- self.library.downloadNotification.message = "Updating library albums..."
+ self.library.downloadNotification.message = app.getLz('notification.updatingLibraryAlbums')
self.library.downloadNotification.total = downloaded.meta.total
self.library.downloadNotification.progress = library.length
if (downloaded.meta.total == 0) {
@@ -1931,7 +1931,7 @@ const app = new Vue({
downloaded = response
library = library.concat(downloaded.data)
self.library.downloadNotification.show = true
- self.library.downloadNotification.message = "Updating library artists..."
+ self.library.downloadNotification.message = app.getLz('notification.updatingLibraryArtists')
self.library.downloadNotification.total = downloaded.meta.total
self.library.downloadNotification.progress = library.length
if (downloaded.meta.total == 0) {
@@ -3237,7 +3237,7 @@ const app = new Vue({
},
{
"icon": "./assets/feather/radio.svg",
- "name": "Start Radio",
+ "name": app.getLz('action.startRadio'),
"action": function() {
app.mk.setStationQueue({ song: app.mk.nowPlayingItem.id }).then(() => {
app.mk.play()
@@ -3288,7 +3288,7 @@ const app = new Vue({
app.cfg.lastfm.auth_token = "";
app.cfg.lastfm.enabled = false;
const element = document.getElementById('lfmConnect');
- element.innerHTML = 'Connect';
+ element.innerHTML = getLz('term.connect');
element.onclick = app.LastFMAuthenticate;
},
LastFMAuthenticate() {
@@ -3296,12 +3296,12 @@ const app = new Vue({
const element = document.getElementById('lfmConnect');
// new key : f9986d12aab5a0fe66193c559435ede3
window.open('https://www.last.fm/api/auth?api_key=f9986d12aab5a0fe66193c559435ede3&cb=cider://auth/lastfm');
- element.innerText = 'Connecting...';
+ element.innerText = app.getLz('term.connecting');
/* Just a timeout for the button */
setTimeout(() => {
- if (element.innerText === 'Connecting...') {
- element.innerText = 'Connect';
+ if (element.innerText === app.getLz('term.connecting')) {
+ element.innerText = app.getLz('term.connect');
console.warn('[LastFM] Attempted connection timed out.');
}
}, 20000);
diff --git a/src/renderer/views/components/lyrics-view.ejs b/src/renderer/views/components/lyrics-view.ejs
index 9576486d..3047bde6 100644
--- a/src/renderer/views/components/lyrics-view.ejs
+++ b/src/renderer/views/components/lyrics-view.ejs
@@ -35,7 +35,7 @@
Major thanks to the Cider Collective Team and all of our contributors.
+{{$root.getLz('about.thanks')}}
-"Apple Music" - Copyright © 2021 "{{$root.getLz('term.appleMusic')}}" - {{$root.getLz('term.copyright')}} © 2022 Apple Inc. - All Rights - Reserved.
+ rel="noopener" data-dt-link-to-exclude="">{{$root.getLz('term.appleInc')}} + {{$root.getLz('term.rightsReserved')}}