From 66fc858d05219ed92b8caaf020fcf728a7785c25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=BCmin=20K=C3=B6yk=C4=B1ran?= Date: Tue, 9 Dec 2025 00:12:59 +0300 Subject: [PATCH] feat: add Turkish language support Add Turkish (tr) language support to the web UI: - Create tr.json with all translated strings - Add tr-TR to supported locales list This enables Turkish-speaking users to use the application in their native language. --- webui/Main.py | 1 + webui/i18n/tr.json | 112 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 113 insertions(+) create mode 100644 webui/i18n/tr.json diff --git a/webui/Main.py b/webui/Main.py index 1b55abe..f4b847a 100644 --- a/webui/Main.py +++ b/webui/Main.py @@ -105,6 +105,7 @@ support_locales = [ "fr-FR", "vi-VN", "th-TH", + "tr-TR", ] diff --git a/webui/i18n/tr.json b/webui/i18n/tr.json new file mode 100644 index 0000000..269e67d --- /dev/null +++ b/webui/i18n/tr.json @@ -0,0 +1,112 @@ +{ + "Language": "Turkce", + "Translation": { + "Login Required": "Giris Gerekli", + "Please login to access settings": "Ayarlara erismek icin lutfen giris yapin", + "Username": "Kullanici Adi", + "Password": "Sifre", + "Login": "Giris Yap", + "Login Error": "Giris Hatasi", + "Incorrect username or password": "Hatali kullanici adi veya sifre", + "Please enter your username and password": "Lutfen kullanici adinizi ve sifrenizi girin", + "Video Script Settings": "**Video Senaryo Ayarlari**", + "Video Subject": "Video Konusu (:red[AI otomatik olarak] video senaryosu olusturacak bir anahtar kelime girin)", + "Script Language": "Video Senaryosu Dili (AI, konunuzun diline gore otomatik cikti verecektir)", + "Generate Video Script and Keywords": "**Konuya** dayali olarak AI ile [Video Senaryosu] ve [Video Anahtar Kelimeleri] olusturmak icin tiklayin", + "Auto Detect": "Otomatik Algilama", + "Video Script": "Video Senaryosu (:blue[1. Istege bagli, AI tarafindan olusturulur 2. Dogru noktalama altyazi olusturmaya yardimci olur])", + "Generate Video Keywords": "**Senaryoya** dayali olarak AI ile [Video Anahtar Kelimeleri] olusturmak icin tiklayin", + "Please Enter the Video Subject": "Lutfen Once Video Senaryosunu Girin", + "Generating Video Script and Keywords": "AI video senaryosu ve anahtar kelimeleri olusturuyor...", + "Generating Video Keywords": "AI video anahtar kelimelerini olusturuyor...", + "Video Keywords": "Video Anahtar Kelimeleri (:blue[1. Istege bagli, AI tarafindan olusturulur 2. Ayirmak icin **Ingilizce virgul** kullanin, yalnizca Ingilizce])", + "Video Settings": "**Video Ayarlari**", + "Video Concat Mode": "Video Birlestirme Modu", + "Random": "Rastgele Birlestirme (Onerilen)", + "Sequential": "Sirali Birlestirme", + "Video Transition Mode": "Video Gecis Modu", + "None": "Yok", + "Shuffle": "Karistir", + "FadeIn": "Yavasa Belirme", + "FadeOut": "Yavasa Kaybolma", + "SlideIn": "Kayarak Giris", + "SlideOut": "Kayarak Cikis", + "Video Ratio": "Video En-Boy Orani", + "Portrait": "Dikey 9:16", + "Landscape": "Yatay 16:9", + "Clip Duration": "Video Kliplerinin Maksimum Suresi (saniye)", + "Number of Videos Generated Simultaneously": "Ayni Anda Olusturulan Video Sayisi", + "Audio Settings": "**Ses Ayarlari**", + "Speech Synthesis": "Konusma Sentezi Sesi", + "Speech Region": "Bolge (:red[Gerekli, [Bolge Al](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])", + "Speech Key": "API Anahtari (:red[Gerekli, [API Anahtari Al](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])", + "Speech Volume": "Konusma Ses Seviyesi (1.0, %100 anlamina gelir)", + "Speech Rate": "Konusma Hizi (1.0, 1x hiz anlamina gelir)", + "Male": "Erkek", + "Female": "Kadin", + "Background Music": "Arka Plan Muzigi", + "No Background Music": "Arka Plan Muzigi Yok", + "Random Background Music": "Rastgele Arka Plan Muzigi", + "Custom Background Music": "Ozel Arka Plan Muzigi", + "Custom Background Music File": "Lutfen ozel arka plan muzigi dosya yolunu girin:", + "Background Music Volume": "Arka Plan Muzigi Ses Seviyesi (0.2, %20 anlamina gelir, arka plan muzigi cok yuksek olmamali)", + "Subtitle Settings": "**Altyazi Ayarlari**", + "Enable Subtitles": "Altyazilari Etkinlestir (Isaretlenmezse asagidaki ayarlar gecerli olmaz)", + "Font": "Altyazi Fontu", + "Position": "Altyazi Konumu", + "Top": "Ust", + "Center": "Orta", + "Bottom": "Alt (Onerilen)", + "Custom": "Ozel konum (70, ustten %70 asagi anlamina gelir)", + "Font Size": "Altyazi Font Boyutu", + "Font Color": "Altyazi Font Rengi", + "Stroke Color": "Altyazi Cerceve Rengi", + "Stroke Width": "Altyazi Cerceve Kalinligi", + "Generate Video": "Video Olustur", + "Video Script and Subject Cannot Both Be Empty": "Video Konusu ve Video Senaryosu ayni anda bos olamaz", + "Generating Video": "Video olusturuluyor, lutfen bekleyin...", + "Start Generating Video": "Video Olusturmaya Basla", + "Video Generation Completed": "Video Olusturma Tamamlandi", + "Video Generation Failed": "Video Olusturma Basarisiz", + "You can download the generated video from the following links": "Olusturulan videoyu asagidaki baglantilardan indirebilirsiniz", + "Pexels API Key": "Pexels API Anahtari ([API Anahtari Al](https://www.pexels.com/api/))", + "Pixabay API Key": "Pixabay API Anahtari ([API Anahtari Al](https://pixabay.com/api/docs/#api_search_videos))", + "Basic Settings": "**Temel Ayarlar** (:blue[Genisletmek icin tiklayin])", + "Language": "Dil", + "LLM Provider": "LLM Saglayici", + "API Key": "API Anahtari (:red[Gerekli])", + "Base Url": "Temel URL", + "Account ID": "Hesap Kimlik Numarasi (Cloudflare panodan alin)", + "Model Name": "Model Adi", + "Please Enter the LLM API Key": "Lutfen **LLM API Anahtarini** Girin", + "Please Enter the Pexels API Key": "Lutfen **Pexels API Anahtarini** Girin", + "Please Enter the Pixabay API Key": "Lutfen **Pixabay API Anahtarini** Girin", + "Get Help": "Yardima ihtiyaciniz varsa veya sorulariniz varsa discord'a katilabilirsiniz: https://harryai.cc", + "Video Source": "Video Kaynagi", + "TikTok": "TikTok (TikTok destegi yakinda geliyor)", + "Bilibili": "Bilibili (Bilibili destegi yakinda geliyor)", + "Xiaohongshu": "Xiaohongshu (Xiaohongshu destegi yakinda geliyor)", + "Local file": "Yerel dosya", + "Play Voice": "Sesi Oynat", + "Voice Example": "Bu, konusma sentezini test etmek icin ornek bir metindir", + "Synthesizing Voice": "Ses sentezleniyor, lutfen bekleyin...", + "TTS Provider": "Ses sentezi saglayicisini secin", + "TTS Servers": "TTS Sunuculari", + "No voices available for the selected TTS server. Please select another server.": "Secilen TTS sunucusu icin uygun ses bulunamadi. Lutfen baska bir sunucu secin.", + "SiliconFlow API Key": "SiliconFlow API Anahtari [Almak icin tiklayin](https://cloud.siliconflow.cn/account/ak)", + "SiliconFlow TTS Settings": "SiliconFlow TTS Ayarlari", + "Speed: Range [0.25, 4.0], default is 1.0": "Hiz: Aralik [0.25, 4.0], varsayilan 1.0", + "Volume: Uses Speech Volume setting, default 1.0 maps to gain 0": "Ses Seviyesi: Konusma Ses Seviyesi ayarini kullanir, varsayilan 1.0 gain 0'a esittir", + "Hide Log": "Gunlugu Gizle", + "Hide Basic Settings": "Temel Ayarlari Gizle\n\nGizlendigi takdirde, temel ayarlar paneli sayfada goruntulenmeyecektir.\n\nTekrar goruntulemek icin `config.toml` dosyasinda `hide_config = false` olarak ayarlayin", + "LLM Settings": "**LLM Ayarlari**", + "Video Source Settings": "**Video Kaynagi Ayarlari**", + "Please Select a Valid Video Source": "Lutfen Gecerli Bir Video Kaynagi Secin", + "Custom Position (% from top)": "Ozel Konum (ustten %)", + "Please enter a value between 0 and 100": "Lutfen 0 ile 100 arasinda bir deger girin", + "Please enter a valid number": "Lutfen gecerli bir sayi girin", + "Secret Key": "Gizli Anahtar", + "Pexels": "Pexels", + "Pixabay": "Pixabay" + } +}