Skip to content

A full-featured download manager.

refactor: rename Turkish i18n key from 'Tr-tr' to 'tr'

Abdullah marac36f7b73f121
diff --git a/src/main/menus/tr/darwin.json b/src/main/menus/tr/darwin.json
new file mode 100644
index 00000000..2633430b
--- /dev/null
+++ b/src/main/menus/tr/darwin.json
@@ -0,0 +1,80 @@
+{
+ "menu": [
+ {
+ "label": "Motrix",
+ "id": "menu.app",
+ "submenu": [
+ { "label": "Motrix Hakkında", "id": "app.about", "command": "application:about", "command-before": "application:show,index"},
+ { "type": "separator" },
+ { "label": "Ayarlar...", "id": "app.preferences", "command": "application:preferences", "command-before": "application:show,index"},
+ { "label": "Güncellemeleri denetle...", "id": "app.check-for-updates", "command": "application:check-for-updates" },
+ { "label": "Motrix'i gizle", "id": "app.hide", "role": "hide" },
+ { "label": "Diğerlerini gizle", "id": "app.hide-others", "role": "hideothers" },
+ { "label": "Hepsini Göster", "id": "app.unhide", "role": "unhide" },
+ { "type": "separator" },
+ { "label": "Motrix'ten çık", "id": "app.quit", "role": "quit" }
+ ]
+ },
+ {
+ "label": "Görev",
+ "id": "menu.task",
+ "submenu": [
+ { "label": "Yeni Görev", "id": "task.new-task", "command": "application:new-task", "command-arg": "uri", "command-after": "application:show,index"},
+ { "label": "Yeni BT Görevi", "id": "task.new-bt-task", "command": "application:new-bt-task", "command-arg": "torrent", "command-after": "application:show,index"},
+ { "type": "separator" },
+ { "label": "Görevi Durdur", "id": "task.pause-task", "command": "application:pause-task" },
+ { "label": "Görevi Sürdür", "id": "task.resume-task", "command": "application:resume-task" },
+ { "label": "Görevi Sil", "id": "task.delete-task", "command": "application:delete-task" },
+ { "label": "Görevi Yukarı Taşı", "id": "task.move-task-up", "command": "application:move-task-up" },
+ { "label": "Görevi Aşağı Taşı", "id": "task.move-task-down", "command": "application:move-task-down" },
+ { "type": "separator" },
+ { "label": "Bütün Görevleri Durdur", "id": "task.pause-all-task", "command": "application:pause-all-task" },
+ { "label": "Bütün Görevleri Sürdür", "id": "task.resume-all-task", "command": "application:resume-all-task" },
+ { "type": "separator" },
+ { "label": "Son Görevleri Temizle", "id": "task.clear-recent-tasks", "command": "application:clear-recent-tasks" }
+ ]
+ },
+ {
+ "label": "Düzenle",
+ "id": "menu.edit",
+ "submenu": [
+ { "label": "Geri Al", "id": "edit.undo", "role": "undo" },
+ { "label": "Yinele", "id": "edit.redo", "role": "redo" },
+ { "type": "separator" },
+ { "label": "Kes", "id": "edit.cut", "role": "cut" },
+ { "label": "Kopyala", "id": "edit.copy", "role": "copy" },
+ { "label": "Yapıştır", "id": "edit.paste", "role": "paste" },
+ { "label": "Sil", "id": "edit.delete", "role": "delete" },
+ { "label": "Hepsini Seç", "id": "edit.select-all", "role": "selectall" }
+ ]
+ },
+ {
+ "label": "Pencere",
+ "role": "window",
+ "id": "menu.window",
+ "submenu": [
+ { "label": "Yeniden yükle", "id": "window.reload", "role": "reload" },
+ { "label": "Kapat", "id": "window.close", "role": "close" },
+ { "label": "Küçült", "id": "window.minimize", "role": "minimize" },
+ { "label": "Yakınlaştır", "id": "window.zoom", "role": "zoom" },
+ { "label": "Tam Ekran Yap", "id": "window.toggle-fullscreen", "role": "togglefullscreen" },
+ { "type": "separator" },
+ { "label": "Tümünü Öne Getir", "id": "window.front", "role": "front" }
+ ]
+ },
+ {
+ "label": "Yardım",
+ "role": "help",
+ "id": "menu.help",
+ "submenu": [
+ { "label": "Motrix Web Sitesi", "id": "help.official-website", "command": "help:official-website" },
+ { "label": "Kılavuz", "id": "help.manual", "command": "help:manual" },
+ { "label": "Sürüm Notları...", "id": "help.release-notes", "command": "help:release-notes" },
+ { "type": "separator" },
+ { "label": "Sorun bildir", "id": "help.report-problem", "command": "help:report-problem" },
+ { "type": "separator" },
+ { "label": "Geliştirici Aracına geçiş yap", "id": "help.toggle-dev-tools", "role": "toggledevtools" }
+ ]
+ }
+ ]
+}
diff --git a/src/main/menus/tr/linux.json b/src/main/menus/tr/linux.json
new file mode 100644
index 00000000..efd37001
--- /dev/null
+++ b/src/main/menus/tr/linux.json
@@ -0,0 +1,80 @@
+{
+ "menu": [
+ {
+ "label": "Dosya",
+ "id": "menu.file",
+ "submenu": [
+ { "label": "Motrix Hakkında", "id": "app.about", "command": "application:about", "command-before": "application:show,index"},
+ { "type": "separator" },
+ { "label": "Ayarlar...", "id": "app.preferences", "command": "application:preferences", "command-before": "application:show,index"},
+ { "label": "Güncellemeleri denetle...", "id": "app.check-for-updates", "command": "application:check-for-updates" },
+ { "label": "Motrix'i gizle", "id": "app.hide", "role": "hide" },
+ { "label": "Diğerlerini gizle", "id": "app.hide-others", "role": "hideothers" },
+ { "label": "Hepsini Göster", "id": "app.unhide", "role": "unhide" },
+ { "type": "separator" },
+ { "label": "Motrix'ten çık", "id": "app.quit", "role": "quit" }
+ ]
+ },
+ {
+ "label": "Görev",
+ "id": "menu.task",
+ "submenu": [
+ { "label": "Yeni Görev", "id": "task.new-task", "command": "application:new-task", "command-arg": "uri", "command-after": "application:show,index"},
+ { "label": "Yeni BT Görevi", "id": "task.new-bt-task", "command": "application:new-bt-task", "command-arg": "torrent", "command-after": "application:show,index"},
+ { "type": "separator" },
+ { "label": "Görevi Durdur", "id": "task.pause-task", "command": "application:pause-task" },
+ { "label": "Görevi Sürdür", "id": "task.resume-task", "command": "application:resume-task" },
+ { "label": "Görevi Sil", "id": "task.delete-task", "command": "application:delete-task" },
+ { "label": "Görevi Yukarı Taşı", "id": "task.move-task-up", "command": "application:move-task-up" },
+ { "label": "Görevi Aşağı taşı", "id": "task.move-task-down", "command": "application:move-task-down" },
+ { "type": "separator" },
+ { "label": "Bütün Görevleri Durdur", "id": "task.pause-all-task", "command": "application:pause-all-task" },
+ { "label": "Bütün Görevleri Sürdür", "id": "task.resume-all-task", "command": "application:resume-all-task" },
+ { "type": "separator" },
+ { "label": "Son Görevleri Temizle", "id": "task.clear-recent-tasks", "command": "application:clear-recent-tasks" }
+ ]
+ },
+ {
+ "label": "Düzenle",
+ "id": "menu.edit",
+ "submenu": [
+ { "label": "Geri Al", "id": "edit.undo", "role": "undo" },
+ { "label": "Yinele", "id": "edit.redo", "role": "redo" },
+ { "type": "separator" },
+ { "label": "Kes", "id": "edit.cut", "role": "cut" },
+ { "label": "Kopyala", "id": "edit.copy", "role": "copy" },
+ { "label": "Yapıştır", "id": "edit.paste", "role": "paste" },
+ { "label": "Sil", "id": "edit.delete", "role": "delete" },
+ { "label": "Hepsini Seç", "id": "edit.select-all", "role": "selectall" }
+ ]
+ },
+ {
+ "label": "Pencere",
+ "role": "window",
+ "id": "menu.window",
+ "submenu": [
+ { "label": "Yeniden yükle", "id": "window.reload", "role": "reload" },
+ { "label": "Kapat", "id": "window.close", "role": "close" },
+ { "label": "Küçült", "id": "window.minimize", "role": "minimize" },
+ { "label": "Yakınlaştır", "id": "window.zoom", "role": "zoom" },
+ { "label": "Tam Ekran Yap", "id": "window.toggle-fullscreen", "role": "togglefullscreen" },
+ { "type": "separator" },
+ { "label": "Tümünü Öne Getir", "id": "window.front", "role": "front" }
+ ]
+ },
+ {
+ "label": "Yardım",
+ "role": "help",
+ "id": "menu.help",
+ "submenu": [
+ { "label": "Motrix Web Sitesi", "id": "help.official-website", "command": "help:official-website" },
+ { "label": "Kılavuz", "id": "help.manual", "command": "help:manual" },
+ { "label": "Sürüm Notları...", "id": "help.release-notes", "command": "help:release-notes" },
+ { "type": "separator" },
+ { "label": "Sorun bildir", "id": "help.report-problem", "command": "help:report-problem" },
+ { "type": "separator" },
+ { "label": "Geliştirici Aracına geçiş yap", "id": "help.toggle-dev-tools", "role": "toggledevtools" }
+ ]
+ }
+ ]
+}
diff --git a/src/main/menus/tr/win32.json b/src/main/menus/tr/win32.json
new file mode 100644
index 00000000..efd37001
--- /dev/null
+++ b/src/main/menus/tr/win32.json
@@ -0,0 +1,80 @@
+{
+ "menu": [
+ {
+ "label": "Dosya",
+ "id": "menu.file",
+ "submenu": [
+ { "label": "Motrix Hakkında", "id": "app.about", "command": "application:about", "command-before": "application:show,index"},
+ { "type": "separator" },
+ { "label": "Ayarlar...", "id": "app.preferences", "command": "application:preferences", "command-before": "application:show,index"},
+ { "label": "Güncellemeleri denetle...", "id": "app.check-for-updates", "command": "application:check-for-updates" },
+ { "label": "Motrix'i gizle", "id": "app.hide", "role": "hide" },
+ { "label": "Diğerlerini gizle", "id": "app.hide-others", "role": "hideothers" },
+ { "label": "Hepsini Göster", "id": "app.unhide", "role": "unhide" },
+ { "type": "separator" },
+ { "label": "Motrix'ten çık", "id": "app.quit", "role": "quit" }
+ ]
+ },
+ {
+ "label": "Görev",
+ "id": "menu.task",
+ "submenu": [
+ { "label": "Yeni Görev", "id": "task.new-task", "command": "application:new-task", "command-arg": "uri", "command-after": "application:show,index"},
+ { "label": "Yeni BT Görevi", "id": "task.new-bt-task", "command": "application:new-bt-task", "command-arg": "torrent", "command-after": "application:show,index"},
+ { "type": "separator" },
+ { "label": "Görevi Durdur", "id": "task.pause-task", "command": "application:pause-task" },
+ { "label": "Görevi Sürdür", "id": "task.resume-task", "command": "application:resume-task" },
+ { "label": "Görevi Sil", "id": "task.delete-task", "command": "application:delete-task" },
+ { "label": "Görevi Yukarı Taşı", "id": "task.move-task-up", "command": "application:move-task-up" },
+ { "label": "Görevi Aşağı taşı", "id": "task.move-task-down", "command": "application:move-task-down" },
+ { "type": "separator" },
+ { "label": "Bütün Görevleri Durdur", "id": "task.pause-all-task", "command": "application:pause-all-task" },
+ { "label": "Bütün Görevleri Sürdür", "id": "task.resume-all-task", "command": "application:resume-all-task" },
+ { "type": "separator" },
+ { "label": "Son Görevleri Temizle", "id": "task.clear-recent-tasks", "command": "application:clear-recent-tasks" }
+ ]
+ },
+ {
+ "label": "Düzenle",
+ "id": "menu.edit",
+ "submenu": [
+ { "label": "Geri Al", "id": "edit.undo", "role": "undo" },
+ { "label": "Yinele", "id": "edit.redo", "role": "redo" },
+ { "type": "separator" },
+ { "label": "Kes", "id": "edit.cut", "role": "cut" },
+ { "label": "Kopyala", "id": "edit.copy", "role": "copy" },
+ { "label": "Yapıştır", "id": "edit.paste", "role": "paste" },
+ { "label": "Sil", "id": "edit.delete", "role": "delete" },
+ { "label": "Hepsini Seç", "id": "edit.select-all", "role": "selectall" }
+ ]
+ },
+ {
+ "label": "Pencere",
+ "role": "window",
+ "id": "menu.window",
+ "submenu": [
+ { "label": "Yeniden yükle", "id": "window.reload", "role": "reload" },
+ { "label": "Kapat", "id": "window.close", "role": "close" },
+ { "label": "Küçült", "id": "window.minimize", "role": "minimize" },
+ { "label": "Yakınlaştır", "id": "window.zoom", "role": "zoom" },
+ { "label": "Tam Ekran Yap", "id": "window.toggle-fullscreen", "role": "togglefullscreen" },
+ { "type": "separator" },
+ { "label": "Tümünü Öne Getir", "id": "window.front", "role": "front" }
+ ]
+ },
+ {
+ "label": "Yardım",
+ "role": "help",
+ "id": "menu.help",
+ "submenu": [
+ { "label": "Motrix Web Sitesi", "id": "help.official-website", "command": "help:official-website" },
+ { "label": "Kılavuz", "id": "help.manual", "command": "help:manual" },
+ { "label": "Sürüm Notları...", "id": "help.release-notes", "command": "help:release-notes" },
+ { "type": "separator" },
+ { "label": "Sorun bildir", "id": "help.report-problem", "command": "help:report-problem" },
+ { "type": "separator" },
+ { "label": "Geliştirici Aracına geçiş yap", "id": "help.toggle-dev-tools", "role": "toggledevtools" }
+ ]
+ }
+ ]
+}
diff --git a/src/renderer/components/Preference/Advanced.vue b/src/renderer/components/Preference/Advanced.vue
index 480b8dbd..58e2b1db 100644
--- a/src/renderer/components/Preference/Advanced.vue
+++ b/src/renderer/components/Preference/Advanced.vue
@@ -146,7 +146,7 @@
label: '🇺🇸 English (US)'
},
{
- value: 'tr-TR',
+ value: 'tr',
label: '🇹🇷 Türkçe (TR)'
}
]
diff --git a/src/shared/locales/all.js b/src/shared/locales/all.js
index 5e5c1f28..d32d9abb 100644
--- a/src/shared/locales/all.js
+++ b/src/shared/locales/all.js
@@ -3,7 +3,7 @@ import eleLocaleZhCN from 'element-ui/lib/locale/lang/zh-CN'
import eleLocaleTr from 'element-ui/lib/locale/lang/tr-TR'
import appLocaleEnUS from '@shared/locales/en-US'
import appLocaleZhCN from '@shared/locales/zh-CN'
-import appLocaleTrTR from '@shared/locales/tr-TR'
+import appLocaleTr from '@shared/locales/tr'
const resources = {
'en-US': {
@@ -12,10 +12,10 @@ const resources = {
...appLocaleEnUS
}
},
- 'tr-TR': {
+ 'tr': {
translation: {
...eleLocaleTr,
- ...appLocaleTrTR
+ ...appLocaleTr
}
},
'zh-CN': {
diff --git a/src/shared/locales/app.js b/src/shared/locales/app.js
index c7c1630d..efae028d 100644
--- a/src/shared/locales/app.js
+++ b/src/shared/locales/app.js
@@ -1,6 +1,6 @@
import appLocaleEnUS from '@shared/locales/en-US'
import appLocaleZhCN from '@shared/locales/zh-CN'
-import appLocaleTrTR from '@shared/locales/tr-TR'
+import appLocaleTrTR from '@shared/locales/tr'
const resources = {
'en-US': {
@@ -13,7 +13,7 @@ const resources = {
...appLocaleZhCN
}
},
- 'tr-TR': {
+ 'tr': {
translation: {
...appLocaleTrTR
}
diff --git a/src/shared/locales/index.js b/src/shared/locales/index.js
index a5e15973..8f8a89b6 100644
--- a/src/shared/locales/index.js
+++ b/src/shared/locales/index.js
@@ -6,7 +6,7 @@
export const supportLanguages = [
'en-US',
'zh-CN',
- 'tr-TR'
+ 'tr'
]
/**
@@ -23,10 +23,6 @@ export function getLanguage (locale = 'en-US') {
return 'en-US'
}
- if (locale.startsWith('tr')) {
- return 'tr-TR'
- }
-
if (locale.startsWith('zh')) {
return 'zh-CN'
}
diff --git a/src/shared/locales/tr-TR/about.js b/src/shared/locales/tr/about.js
similarity index 100%
rename from src/shared/locales/tr-TR/about.js
rename to src/shared/locales/tr/about.js
diff --git a/src/shared/locales/tr-TR/app.js b/src/shared/locales/tr/app.js
similarity index 100%
rename from src/shared/locales/tr-TR/app.js
rename to src/shared/locales/tr/app.js
diff --git a/src/shared/locales/tr-TR/edit.js b/src/shared/locales/tr/edit.js
similarity index 100%
rename from src/shared/locales/tr-TR/edit.js
rename to src/shared/locales/tr/edit.js
diff --git a/src/shared/locales/tr-TR/help.js b/src/shared/locales/tr/help.js
similarity index 100%
rename from src/shared/locales/tr-TR/help.js
rename to src/shared/locales/tr/help.js
diff --git a/src/shared/locales/tr-TR/index.js b/src/shared/locales/tr/index.js
similarity index 100%
rename from src/shared/locales/tr-TR/index.js
rename to src/shared/locales/tr/index.js
diff --git a/src/shared/locales/tr-TR/menu.js b/src/shared/locales/tr/menu.js
similarity index 100%
rename from src/shared/locales/tr-TR/menu.js
rename to src/shared/locales/tr/menu.js
diff --git a/src/shared/locales/tr-TR/preferences.js b/src/shared/locales/tr/preferences.js
similarity index 100%
rename from src/shared/locales/tr-TR/preferences.js
rename to src/shared/locales/tr/preferences.js
diff --git a/src/shared/locales/tr-TR/subnav.js b/src/shared/locales/tr/subnav.js
similarity index 100%
rename from src/shared/locales/tr-TR/subnav.js
rename to src/shared/locales/tr/subnav.js
diff --git a/src/shared/locales/tr-TR/task.js b/src/shared/locales/tr/task.js
similarity index 98%
rename from src/shared/locales/tr-TR/task.js
rename to src/shared/locales/tr/task.js
index 1020c331..bba84b16 100644
--- a/src/shared/locales/tr-TR/task.js
+++ b/src/shared/locales/tr/task.js
@@ -39,7 +39,7 @@ export default {
'remove-task-file-fail': 'Görev dosyaları silinemedi, lütfen manuel olarak silin',
'remove-task-config-file-fail': 'Görev yapılandırma dosyası silinemedi, lütfen manuel olarak silin',
'move-task-up': 'Görevi yukarı taşı',
- 'move-task-down': 'Görevi aşşağı taşı',
+ 'move-task-down': 'Görevi aşağı taşı',
'pause-all-task': 'Bütün görevleri durdur',
'pause-all-task-success': 'Bütün görevleri durdurma başarılı',
'pause-all-task-fail': 'Bütün görevleri durdurma başarısız',
diff --git a/src/shared/locales/tr-TR/window.js b/src/shared/locales/tr/window.js
similarity index 100%
rename from src/shared/locales/tr-TR/window.js
rename to src/shared/locales/tr/window.js