From 52eba4f2a74d2ee33941c0ae5befe4e74587215b Mon Sep 17 00:00:00 2001
From: Ahmet Altay <46381367+ahmetaltay33@users.noreply.github.com>
Date: Thu, 23 Sep 2021 16:25:53 +0300
Subject: [PATCH 1/2] Added Turkish language support (tr-TR)
---
platform/i18n/src/locales/index.js | 6 ++-
.../i18n/src/locales/tr-TR/AboutModal.json | 14 ++++++
platform/i18n/src/locales/tr-TR/Buttons.json | 43 +++++++++++++++++++
.../i18n/src/locales/tr-TR/CineDialog.json | 8 ++++
platform/i18n/src/locales/tr-TR/Common.json | 16 +++++++
.../i18n/src/locales/tr-TR/DatePicker.json | 5 +++
platform/i18n/src/locales/tr-TR/Header.json | 8 ++++
.../src/locales/tr-TR/MeasurementTable.json | 9 ++++
.../i18n/src/locales/tr-TR/StudyList.json | 10 +++++
.../locales/tr-TR/UserPreferencesModal.json | 9 ++++
.../locales/tr-TR/ViewportDownloadForm.json | 14 ++++++
platform/i18n/src/locales/tr-TR/index.js | 25 +++++++++++
platform/i18n/src/utils.js | 1 +
13 files changed, 166 insertions(+), 2 deletions(-)
create mode 100644 platform/i18n/src/locales/tr-TR/AboutModal.json
create mode 100644 platform/i18n/src/locales/tr-TR/Buttons.json
create mode 100644 platform/i18n/src/locales/tr-TR/CineDialog.json
create mode 100644 platform/i18n/src/locales/tr-TR/Common.json
create mode 100644 platform/i18n/src/locales/tr-TR/DatePicker.json
create mode 100644 platform/i18n/src/locales/tr-TR/Header.json
create mode 100644 platform/i18n/src/locales/tr-TR/MeasurementTable.json
create mode 100644 platform/i18n/src/locales/tr-TR/StudyList.json
create mode 100644 platform/i18n/src/locales/tr-TR/UserPreferencesModal.json
create mode 100644 platform/i18n/src/locales/tr-TR/ViewportDownloadForm.json
create mode 100644 platform/i18n/src/locales/tr-TR/index.js
diff --git a/platform/i18n/src/locales/index.js b/platform/i18n/src/locales/index.js
index dcfc9ba85e6..c8ccfbcd2f8 100644
--- a/platform/i18n/src/locales/index.js
+++ b/platform/i18n/src/locales/index.js
@@ -1,4 +1,5 @@
-import ar from './ar/';
+import tr_TR from './tr-TR/';
+import de from './de/';
import en_US from './en-US/';
import es from './es/';
import fr from './fr/';
@@ -10,7 +11,8 @@ import zh from './zh/';
import test_lng from './test-LNG/';
export default {
- ...ar,
+ ...tr_TR,
+ ...de,
...en_US,
...es,
...fr,
diff --git a/platform/i18n/src/locales/tr-TR/AboutModal.json b/platform/i18n/src/locales/tr-TR/AboutModal.json
new file mode 100644
index 00000000000..487e4082c6d
--- /dev/null
+++ b/platform/i18n/src/locales/tr-TR/AboutModal.json
@@ -0,0 +1,14 @@
+{
+ "Browser": "Tarayıcı",
+ "Build Number": "Derleme Numarası",
+ "Latest Master Commits": "Son Kaynak Kod Güncellemesi",
+ "More details": "Daha Fazla Detay",
+ "Name": "İsim",
+ "OHIF Viewer - About": "OHIF Viewer - Hakkında",
+ "OS": "İşletim Sistemi",
+ "Report an issue": "Sorun Bildir",
+ "Repository URL": "Kaynak Kod URL",
+ "Value": "Değer",
+ "Version Information": "Sürüm Bilgisi",
+ "Visit the forum": "Forumu ziyaret et"
+}
diff --git a/platform/i18n/src/locales/tr-TR/Buttons.json b/platform/i18n/src/locales/tr-TR/Buttons.json
new file mode 100644
index 00000000000..83c2655c115
--- /dev/null
+++ b/platform/i18n/src/locales/tr-TR/Buttons.json
@@ -0,0 +1,43 @@
+{
+ "Acquired": "Edinilen",
+ "Angle": "Açı",
+ "Axial": "Eksenel",
+ "Bidirectional": "Çift Yönlü",
+ "Brush": "Fırça",
+ "CINE": "CINE",
+ "Cancel": "Vazgeç",
+ "Circle": "Daire",
+ "Clear": "Temizle",
+ "Coronal": "Koronal",
+ "Crosshairs": "Kesişim",
+ "Download": "İndir",
+ "Ellipse": "Elips",
+ "Elliptical": "Eliptik",
+ "Flip H": "Çevir D",
+ "Flip V": "Çevir Y",
+ "Freehand": "Serbest El",
+ "Invert": "Tersini Çevir",
+ "Layout": "$t(Common:Layout)",
+ "Length": "Uzunluk",
+ "Levels": "Seviyeler",
+ "Magnify": "Büyüt",
+ "Manual": "Manuel",
+ "Measurements": "Ölçümler",
+ "More": "$t(Common:More)",
+ "Next": "$t(Common:Next)",
+ "Pan": "Tut",
+ "Play": "$t(Common:Play)",
+ "Previous": "$t(Common:Previous)",
+ "Probe": "İncele",
+ "ROI Window": "ROI Penceresi",
+ "Rectangle": "Diktörtgen",
+ "Reset": "$t(Common:Reset)",
+ "Reset to Defaults": "Varsayılana $t(Common:Reset)",
+ "Rotate Right": "Sağa Döndür",
+ "Sagittal": "Sagital",
+ "Save": "Kaydet",
+ "Stack Scroll": "Yığın Kaydırma",
+ "Stop": "$t(Common:Stop)",
+ "Themes": "Temalar",
+ "Zoom": "Yakınlaştır"
+}
diff --git a/platform/i18n/src/locales/tr-TR/CineDialog.json b/platform/i18n/src/locales/tr-TR/CineDialog.json
new file mode 100644
index 00000000000..7f93001d343
--- /dev/null
+++ b/platform/i18n/src/locales/tr-TR/CineDialog.json
@@ -0,0 +1,8 @@
+{
+ "Next image": "$t(Common:Next) $t(Common:Image)",
+ "Play / Stop": "$t(Common:Play) / $t(Common:Stop)",
+ "Previous image": "$t(Common:Previous) $t(Common:Image)",
+ "Skip to first image": "İlk $t(Common:Image) Geç",
+ "Skip to last image": "Son $t(Common:Image) Geç",
+ "fps": "fps"
+}
diff --git a/platform/i18n/src/locales/tr-TR/Common.json b/platform/i18n/src/locales/tr-TR/Common.json
new file mode 100644
index 00000000000..eddaacc4349
--- /dev/null
+++ b/platform/i18n/src/locales/tr-TR/Common.json
@@ -0,0 +1,16 @@
+{
+ "Close": "Kapat",
+ "Image": "Görüntü",
+ "Layout": "Düzen",
+ "Measurements": "Ölçümler",
+ "More": "Daha Fazla",
+ "Next": "Sonraki",
+ "Play": "Oynat",
+ "Previous": "Önceki",
+ "Reset": "Sıfırla",
+ "RowsPerPage": "Sayfa başına satır",
+ "Series": "Seriler",
+ "Show": "Göster",
+ "Stop": "Durdur",
+ "StudyDate": "Çalışma Zamanı"
+}
diff --git a/platform/i18n/src/locales/tr-TR/DatePicker.json b/platform/i18n/src/locales/tr-TR/DatePicker.json
new file mode 100644
index 00000000000..ca1073dcd80
--- /dev/null
+++ b/platform/i18n/src/locales/tr-TR/DatePicker.json
@@ -0,0 +1,5 @@
+{
+ "Clear dates": "Tarihleri Temizle",
+ "End Date": "Bitiş Tarih",
+ "Start Date": "Başlangıç Tarihi"
+}
diff --git a/platform/i18n/src/locales/tr-TR/Header.json b/platform/i18n/src/locales/tr-TR/Header.json
new file mode 100644
index 00000000000..d4a5815bf6f
--- /dev/null
+++ b/platform/i18n/src/locales/tr-TR/Header.json
@@ -0,0 +1,8 @@
+{
+ "About": "Hakkında",
+ "Back to Viewer": "Görüntüleyiciye Dön",
+ "INVESTIGATIONAL USE ONLY": "SADECE ARAŞTIRMA AMAÇLI KULLANIM",
+ "Options": "Seçenekler",
+ "Preferences": "Tercihler",
+ "Study list": "Çalışma Listesi"
+}
diff --git a/platform/i18n/src/locales/tr-TR/MeasurementTable.json b/platform/i18n/src/locales/tr-TR/MeasurementTable.json
new file mode 100644
index 00000000000..ac89358f832
--- /dev/null
+++ b/platform/i18n/src/locales/tr-TR/MeasurementTable.json
@@ -0,0 +1,9 @@
+{
+ "Criteria nonconformities": "Kriter uygunsuzlukları",
+ "Delete": "Sil",
+ "Description": "Açıklama",
+ "MAX": "Enfazla",
+ "NonTargets": "Hedefsiz",
+ "Relabel": "Tekrar Etiketle",
+ "Targets": "Hedefler"
+}
diff --git a/platform/i18n/src/locales/tr-TR/StudyList.json b/platform/i18n/src/locales/tr-TR/StudyList.json
new file mode 100644
index 00000000000..4eaea20ca85
--- /dev/null
+++ b/platform/i18n/src/locales/tr-TR/StudyList.json
@@ -0,0 +1,10 @@
+{
+ "AccessionNumber": "Accession #",
+ "Empty": "Boş",
+ "MRN": "MRN",
+ "Modality": "Modalite",
+ "PatientName": "Hasta Adı",
+ "StudyDate": "Çalışma Zamanı",
+ "StudyDescription": "Açıklama",
+ "StudyList": "Çalışma Listesi"
+}
diff --git a/platform/i18n/src/locales/tr-TR/UserPreferencesModal.json b/platform/i18n/src/locales/tr-TR/UserPreferencesModal.json
new file mode 100644
index 00000000000..1a843a3a4a3
--- /dev/null
+++ b/platform/i18n/src/locales/tr-TR/UserPreferencesModal.json
@@ -0,0 +1,9 @@
+{
+ "Cancel": "$t(Buttons:Cancel)",
+ "No hotkeys found": "Bu uygulama için hiçbir kısayol tuşu yapılandırılmamış. Kısayol tuşları, uygulamanın app-config.js dosyasında yapılandırılabilir.",
+ "Reset to Defaults": "$t(Buttons:Reset to Defaults)",
+ "ResetDefaultMessage": "Tercihler başarıyla varsayılana sıfırlandı.
Bu eylemi gerçekleştirmek için Kaydetmelisiniz.",
+ "Save": "$t(Buttons:Save)",
+ "SaveMessage": "Tercihler kaydedildi",
+ "User Preferences": "Kullanıcı tercihleri"
+}
diff --git a/platform/i18n/src/locales/tr-TR/ViewportDownloadForm.json b/platform/i18n/src/locales/tr-TR/ViewportDownloadForm.json
new file mode 100644
index 00000000000..22ce0efcd62
--- /dev/null
+++ b/platform/i18n/src/locales/tr-TR/ViewportDownloadForm.json
@@ -0,0 +1,14 @@
+{
+ "emptyFilenameError": "Dosya adı boş olamaz.",
+ "fileType": "Dosya Tipi",
+ "filename": "Dosya Adı",
+ "formTitle": "Lütfen çıktı görüntüsü için boyutları, dosya adını ve istediğiniz türü belirtin.",
+ "imageHeight": "Görüntü Yüksekliği (px)",
+ "imagePreview": "Görüntü Önizleme",
+ "imageWidth": "Görüntü Genişliği (px)",
+ "keepAspectRatio": "En-boy oranını koru",
+ "loadingPreview": "Görüntü Önzilemesi Yükleniyor...",
+ "minHeightError": "Minimum geçerli yükseklik 100 pikseldir.",
+ "minWidthError": "Minimum geçerli genişlik 100 pikseldir.",
+ "showAnnotations": "Ek Açıklamaları Göster"
+}
diff --git a/platform/i18n/src/locales/tr-TR/index.js b/platform/i18n/src/locales/tr-TR/index.js
new file mode 100644
index 00000000000..174822bd3cd
--- /dev/null
+++ b/platform/i18n/src/locales/tr-TR/index.js
@@ -0,0 +1,25 @@
+import AboutModal from './AboutModal.json';
+import Buttons from './Buttons.json';
+import CineDialog from './CineDialog.json';
+import Common from './Common.json';
+import DatePicker from './DatePicker.json';
+import Header from './Header.json';
+import MeasurementTable from './MeasurementTable.json';
+import StudyList from './StudyList.json';
+import UserPreferencesModal from './UserPreferencesModal.json';
+import ViewportDownloadForm from './ViewportDownloadForm.json';
+
+export default {
+ 'tr-TR': {
+ AboutModal,
+ Buttons,
+ CineDialog,
+ Common,
+ DatePicker,
+ Header,
+ MeasurementTable,
+ StudyList,
+ UserPreferencesModal,
+ ViewportDownloadForm,
+ },
+};
diff --git a/platform/i18n/src/utils.js b/platform/i18n/src/utils.js
index 93e368cd113..b3fbacbfe8d 100644
--- a/platform/i18n/src/utils.js
+++ b/platform/i18n/src/utils.js
@@ -49,6 +49,7 @@ const languagesMap = {
te: 'Telugu',
th: 'Thai',
tr: 'Turkish',
+ 'tr-TR': 'Turkish (Turkey)',
uk: 'Ukrainian',
vi: 'Vietnamese',
zh: 'Chinese',
From 2cd0f9dfb36b18b5f9ac06b9cc721faeb1c42666 Mon Sep 17 00:00:00 2001
From: Alireza
Date: Wed, 4 Oct 2023 12:09:22 -0400
Subject: [PATCH 2/2] fix build
---
platform/i18n/src/locales/index.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/platform/i18n/src/locales/index.js b/platform/i18n/src/locales/index.js
index c8ccfbcd2f8..f167c9703ed 100644
--- a/platform/i18n/src/locales/index.js
+++ b/platform/i18n/src/locales/index.js
@@ -1,5 +1,5 @@
import tr_TR from './tr-TR/';
-import de from './de/';
+import ar from './ar/';
import en_US from './en-US/';
import es from './es/';
import fr from './fr/';
@@ -11,8 +11,8 @@ import zh from './zh/';
import test_lng from './test-LNG/';
export default {
+ ...ar,
...tr_TR,
- ...de,
...en_US,
...es,
...fr,