From f89bf8c3f4dd6192126e824f1d89673ae8a001fc Mon Sep 17 00:00:00 2001 From: AgusW <35731885+chayankQ@users.noreply.github.com> Date: Sun, 15 Sep 2024 23:03:50 +0700 Subject: [PATCH] Update translations.rs Adding Bahasa Indonesia --- src/translations/translations.rs | 81 +++++++++++++++++++++++++++++++- 1 file changed, 79 insertions(+), 2 deletions(-) diff --git a/src/translations/translations.rs b/src/translations/translations.rs index a61f3e84..8f3e9afc 100644 --- a/src/translations/translations.rs +++ b/src/translations/translations.rs @@ -27,6 +27,7 @@ pub fn choose_adapters_translation(language: Language) -> Text<'static, StyleTyp Language::JA => "使用するネットワーク アダプターを選択してください", Language::UZ => "Tekshirish uchun tarmoq adapterini tanlang", Language::VI => "Hãy chọn network adapter để quan sát", + Language::ID => "Pilih Adapter Jaringan yang ingin dicek", }) } @@ -51,6 +52,7 @@ pub fn choose_adapters_translation(language: Language) -> Text<'static, StyleTyp // Language::FI => "Sovellusprotokolla", // Language::JA => "アプリケーション プロトコル", // Language::UZ => "Ilova protokoli", +// Language::ID => "Protokol Aplikasi", // } // } @@ -76,6 +78,7 @@ pub fn select_filters_translation(language: Language) -> Text<'static, StyleType Language::JA => "トラフィックに適用するフィルターを選択してください", Language::UZ => "Tarmoq trafigiga qo'llaniladigan filtrlarni tanlang", Language::VI => "Hãy chọn bộ lọc cho lưu lượng mạng", + Language::ID => "Pilih filter yang ingin dipasang dilalulintas jaringan", }) } @@ -98,6 +101,7 @@ pub fn start_translation(language: Language) -> &'static str { Language::JA => "開始!", Language::UZ => "Boshlash!", Language::VI => "Bắt đầu!", + Language::ID => "Mulai!", } } @@ -121,6 +125,7 @@ pub fn address_translation(language: Language) -> &'static str { Language::JA => "アドレス", Language::UZ => "Manzil", Language::VI => "Địa chỉ", + Language::ID => "Alamat", } } @@ -146,6 +151,7 @@ pub fn addresses_translation(language: Language) -> &'static str { Language::JA => "アドレス", Language::UZ => "Manzillar", Language::VI => "Danh sách địa chỉ", + Language::ID => "Alamat", } } @@ -171,6 +177,7 @@ pub fn ip_version_translation(language: Language) -> &'static str { Language::JA => "IP バージョン", Language::UZ => "IP versiyasi", Language::VI => "Phiên bản IP", + Language::ID => "Versi IP", } } @@ -194,6 +201,7 @@ pub fn ip_version_translation(language: Language) -> &'static str { // Language::FI => "Kuljetusprotokolla", // Language::JA => "トランスポート プロトコル", // Language::UZ => "Transport protokoli", +// Language::ID => "Protokol berjalan", // } // } @@ -215,6 +223,7 @@ pub fn protocol_translation(language: Language) -> &'static str { Language::JA => "プロトコル", Language::UZ => "Protokoli", Language::VI => "Phương thức", + Language::ID => "Protokol", } } @@ -240,6 +249,7 @@ pub fn traffic_rate_translation(language: Language) -> Text<'static, StyleType> Language::JA => "トラフィック レート", Language::UZ => "Trafik tezligi", Language::VI => "Lưu lượng truy cập", + Language::ID => "Tingkat lalulintas", }) } @@ -261,7 +271,8 @@ pub fn traffic_rate_translation(language: Language) -> Text<'static, StyleType> // Language::EL => "Σχετικές συνδέσεις:", // Language::FA => "پیوند های خویشاوند:", // Language::SE => "Relevanta anslutningar:", -// Language::UZ => "Tegishli ulanishlar:", +// Language::UZ => "Tegishli ulanishlar:", +// Language::ID => "Koneksi yang berkaitan", // }) // } @@ -287,6 +298,7 @@ pub fn settings_translation(language: Language) -> &'static str { Language::JA => "設定", Language::UZ => "Sozlamalar", Language::VI => "Cài đặt", + Language::ID => "Pengaturan", } } @@ -311,6 +323,7 @@ pub fn yes_translation(language: Language) -> Text<'static, StyleType> { Language::JA => "はい", Language::UZ => "Ha", Language::VI => "Chấp nhận", + Language::ID => "Ya", }) } @@ -336,6 +349,7 @@ pub fn ask_quit_translation(language: Language) -> Text<'static, StyleType> { Language::JA => "分析を終了しますか?", Language::UZ => "Tahlildan chiqishga ishonchingiz komilmi?", Language::VI => "Bạn có chắc là muốn thoát phiên phân tích này?", + Language::ID => "Apa kamu yakin untuk berhenti analisa?", }) } @@ -361,6 +375,7 @@ pub fn quit_analysis_translation(language: Language) -> &'static str { Language::JA => "分析の終了", Language::UZ => "Tahlildan chiqish", Language::VI => "Thoát phiên phân tích", + Language::ID => "Berhenti analisa", } } @@ -386,6 +401,7 @@ pub fn ask_clear_all_translation(language: Language) -> Text<'static, StyleType> Language::JA => "すべての通知を削除します。よろしいですか?", Language::UZ => "Haqiqatan ham bildirishnomalarni tozalamoqchimisiz?", Language::VI => "Bạn có chắc là muốn xóa các thông báo?", + Language::ID => "Apa kamu yakin untuk membersihkan notifikasi?", }) } @@ -411,6 +427,7 @@ pub fn clear_all_translation(language: Language) -> &'static str { Language::JA => "すべて削除", Language::UZ => "Barchasini tozalash", Language::VI => "Xóa tất cả", + Language::ID => "Bersihkan semua", } } @@ -436,6 +453,7 @@ pub fn hide_translation(language: Language) -> &'static str { Language::JA => "隠す", Language::UZ => "Yashirish", Language::VI => "Ẩn", + Language::ID => "Sembunyikan", } } @@ -460,6 +478,7 @@ pub fn network_adapter_translation(language: Language) -> &'static str { Language::FI => "Verkkosovitin", Language::JA => "ネットワーク アダプター", Language::UZ => "Tarmoq adapteri", + Language::ID => "Adapter jaringan", } } @@ -526,6 +545,9 @@ pub fn no_addresses_translation(language: Language, adapter: &str) -> Text<'stat Language::VI => format!("Không thể quan sát lưu lượng nào vì adapter mà bạn chọn không địa chỉ hoạt động...\n\n\ {network_adapter_translation}: {adapter}\n\n\ Nếu bạn đã chắc chắn kết nối với internet, hãy thử chọn network adapter khác."), + Language::ID => format!("Tidak ada sinyal yang bisa dilihat karena adapter yang kamu pilih tidak memiliki alamat yang aktif...\n\n\ + {network_adapter_translation}: {adapter}\n\n\ + Jika kamu yakin kamu terhubung ke internet, coba untuk memilih adapter lainnya."), }) } @@ -593,6 +615,9 @@ pub fn waiting_translation(language: Language, adapter: &str) -> Text<'static, S Language::VI => format!("Chưa có lưu lượng để quan sát. Đang đợi các gói tin...\n\n\ {network_adapter_translation}: {adapter}\n\n\ Bạn có chắc là đã kết nối với internet và đã chọn đúng network adapter?"), + Language::ID => format!("Tidak ada sinyal yang bisa dipantau. Menunggu paket jaringan...\n\n\ + {network_adapter_translation}: {adapter}\n\n\ + Apa kamu yakin kamu terhubung ke internet, dan memilih adapter yang benar?"), }) } @@ -659,6 +684,9 @@ pub fn some_observed_translation(language: Language, observed: u128) -> Text<'st Language::VI => format!("Tổng số gói tin bị chặn: {observed}\n\n\ Các gói tin đã lọc: 0\n\n\ Một số gói đã bị chặn, nhưng vẫn chưa có gói tin nào được bắt theo bộ lọc bạn đã chọn..."), + Language::ID => format!("Total paket yang dilacak: {observed}\n\n\ + Paket yg difilter: 0\n\n\ + Beberapa paket dilacak, tetapi tidak ada yg terlihat berdasarkan filter yang kamu pilih..."), }) } @@ -684,6 +712,7 @@ pub fn filtered_packets_translation(language: Language) -> &'static str { Language::JA => "フィルタリングされたパケット", Language::UZ => "Filtrlangan paketlar", Language::VI => "Các gói tin đã được lọc", + Language::ID => "Paket yang sudah disaring", } } @@ -708,6 +737,7 @@ pub fn filtered_bytes_translation(language: Language) -> &'static str { Language::JA => "フィルタリングされたバイト", Language::UZ => "Filtrlangan baytlar", Language::VI => "Các bytes đã được lọc", + Language::ID => "Bytes yang sudah disaring", } } @@ -747,6 +777,7 @@ pub fn of_total_translation(language: Language, percentage: &str) -> String { Language::JA => format!("(トータル: {percentage} )"), Language::UZ => format!("(Jami: {percentage} )"), Language::VI => format!("({percentage} trên tổng cộng)"), + Language::ID => format!("({percentage} dari total)"), } } @@ -893,6 +924,10 @@ pub fn error_translation(language: Language, error: &str) -> Text<'static, Style "Đã có lỗi xảy ra! \n\n\ {error}" ), + Language::ID => format!( + "Terjadi kesalahan! \n\n\ + {error}" + ), }) } @@ -978,6 +1013,7 @@ pub fn packets_translation(language: Language) -> &'static str { Language::JA => "パケット", Language::UZ => "paketlar", Language::VI => "các gói tin", + Language::ID => "paket", } } @@ -1003,6 +1039,7 @@ pub fn packets_chart_translation(language: Language) -> &'static str { Language::JA => "1 秒あたりのパケット数", Language::UZ => "paket soniyasiga", Language::VI => "gói tin trên giây", + Language::ID => "paket per detik", } } @@ -1024,6 +1061,7 @@ pub fn bytes_translation(language: Language) -> &'static str { // Language::FA => "بایت ها", Language::FI => "tavua", Language::JA => "バイト", + Language::ID => "Bytes", } } @@ -1048,6 +1086,7 @@ pub fn bytes_chart_translation(language: Language) -> &'static str { Language::JA => "1 秒あたりのバイト量", Language::UZ => "bayt soniyasiga", Language::VI => "byte trên giây", + Language::ID => "bytes per detik", } } @@ -1166,6 +1205,7 @@ pub fn notifications_title_translation(language: Language) -> Text<'static, Styl Language::JA => "通知のカスタマイズ", Language::UZ => "Bildirishnomalaringizni sozlang", Language::VI => "Tùy chỉnh thông báo của bạn", + Language::ID => "Sesuaikan notifikasi Anda", }) } @@ -1191,6 +1231,7 @@ pub fn appearance_title_translation(language: Language) -> Text<'static, StyleTy Language::JA => "テーマを選択してください", Language::UZ => "Sevimli mavzuingizni tanlang", Language::VI => "Chọn chủ đề bạn muốn", + Language::ID => "Pilih tema favorit Kamu", }) } @@ -1216,6 +1257,7 @@ pub fn active_filters_translation(language: Language) -> &'static str { Language::JA => "適用されているフィルター", Language::UZ => "Faol filtrlar", Language::VI => "Bộ lọc đang hoạt động", + Language::ID => "Filter aktif", } } @@ -1241,6 +1283,7 @@ pub fn none_translation(language: Language) -> &'static str { Language::JA => "なし", Language::UZ => "hech biri", Language::VI => "không có", + Language::ID => "Tidak ada", } } @@ -1266,6 +1309,7 @@ pub fn yeti_night_translation(language: Language) -> &'static str { Language::JA => "Sniffnet のオリジナル テーマ", Language::UZ => "Sniffnet-ning asl qora mavzusi", Language::VI => "Chủ đề tối của Sniffnet", + Language::ID => "Tema gelap bawaan Sniffnet's", } } @@ -1290,6 +1334,7 @@ pub fn yeti_day_translation(language: Language) -> &'static str { Language::JA => "Sniffnet のオリジナル ライト テーマ", Language::UZ => "Sniffnet-ning asl oq mavzusi", Language::VI => "Chủ đề sáng của Sniffnet", + Language::ID => "Tema terang bawaan Sniffnet's", } } @@ -1315,6 +1360,7 @@ pub fn deep_sea_translation(language: Language) -> &'static str { Language::JA => "ネットワーク トラフィックにダイブ", Language::UZ => "Tarmoq trafigiga qo'shilish uchun", Language::VI => "Đắm chìm vào lưu lượng mạng", + Language::ID => "Untuk mendalami lalu lintas jaringan", } } @@ -1340,6 +1386,7 @@ pub fn mon_amour_translation(language: Language) -> &'static str { Language::JA => "ドリーマーのためのテーマ", Language::UZ => "Xayolparastlar uchun chiroyli mavzu", Language::VI => "Chủ đề mộng mơ cho những kẻ mơ mộng", + Language::ID => "Tema yang indah dibuat untuk para pemimpi", } } @@ -1365,6 +1412,7 @@ pub fn incoming_translation(language: Language) -> &'static str { Language::JA => "受信", Language::UZ => "Kiruvchi", Language::VI => "Đang tới", + Language::ID => "Masuk", } } @@ -1390,6 +1438,7 @@ pub fn outgoing_translation(language: Language) -> &'static str { Language::JA => "送信", Language::UZ => "Chiquvchi", Language::VI => "Đang hướng ra ngoài", + Language::ID => "Keluar", } } @@ -1413,6 +1462,7 @@ pub fn notifications_translation(language: Language) -> &'static str { Language::FI => "Ilmoitukset", Language::UZ => "Bildirishnomalar", Language::VI => "Thông báo", + Language::ID => "Pemberitahuan", } } @@ -1433,6 +1483,7 @@ pub fn style_translation(language: Language) -> &'static str { Language::JA => "スタイル", Language::UZ => "Uslub", Language::VI => "Chủ đề", + Language::ID => "Gaya", } } @@ -1458,6 +1509,7 @@ pub fn language_translation(language: Language) -> &'static str { Language::JA => "表示言語", Language::UZ => "Til", Language::VI => "Ngôn ngữ", + Language::ID => "Bahasa", } } @@ -1483,6 +1535,7 @@ pub fn overview_translation(language: Language) -> &'static str { Language::JA => "概要", Language::UZ => "Ko'rib chiqish", Language::VI => "Tổng quan", + Language::ID => "Ringkasan", } } @@ -1508,6 +1561,7 @@ pub fn packets_threshold_translation(language: Language) -> &'static str { Language::JA => "パケット数の閾値を超過した場合に通知する", Language::UZ => "Paket chegarasi oshib ketganda xabar bering", Language::VI => "Báo cho tôi biết khi vượt quá ngưỡng gói tin", + Language::ID => "Beritahu saya ketika ambang batas paket terlampaui", } } @@ -1533,6 +1587,7 @@ pub fn bytes_threshold_translation(language: Language) -> &'static str { Language::JA => "バイト量の閾値を超過した場合に通知する", Language::UZ => "Bayt chegarasi oshib ketganda menga xabar bering", Language::VI => "Báo cho tôi biết khi vượt quá ngưỡng bytes", + Language::ID => "Beritahu saya ketika ambang batas bytes terlampaui", } } @@ -1556,6 +1611,7 @@ pub fn per_second_translation(language: Language) -> &'static str { Language::FI => "(sekunnissa)", Language::UZ => "(soniyasiga)", Language::VI => "(trên giây)", + Language::ID => "(per detik)", } } @@ -1581,6 +1637,7 @@ pub fn specify_multiples_translation(language: Language) -> &'static str { Language::JA => "'K', 'M', 'G' が選択可能です", Language::UZ => "'K', 'M' va 'G' ni ham belgilashingiz mumkin", Language::VI => "bạn cũng có thể chọn 'K', 'M' and 'G'", + Language::ID => "Anda juga dapat menentukan 'K', 'M' dan 'G'", } } @@ -1608,6 +1665,7 @@ pub fn favorite_notification_translation(language: Language) -> &'static str { Language::JA => "お気に入りに指定したホストに関してデータ送受信があった場合に通知する", Language::UZ => "Sevimlilar ro'yhatidan yangi ma'lumotlar almashganda xabar bering", Language::VI => "Báo cho tôi biết khi dữ liệu mới được trao đổi từ mục yêu thích của tôi", + Language::ID => "Beritahu saya ketika data baru dipertukarkan dari favorit saya", } } @@ -1633,6 +1691,7 @@ pub fn threshold_translation(language: Language) -> &'static str { Language::JA => "閾値", Language::UZ => "Eshik", Language::VI => "Ngưỡng", + Language::ID => "Ambang batas", } } @@ -1654,6 +1713,7 @@ pub fn volume_translation(language: Language) -> &'static str { Language::FI => "Äänenvoimakkuus", Language::UZ => "Ovoz balandligi", Language::VI => "Âm lượng", + Language::ID => "Bunyi", } } @@ -1677,6 +1737,7 @@ pub fn sound_translation(language: Language) -> &'static str { Language::FI => "Ääni", Language::UZ => "Ovoz", Language::VI => "Âm thanh", + Language::ID => "Suara", } } @@ -1702,6 +1763,7 @@ pub fn bytes_exceeded_translation(language: Language) -> &'static str { Language::JA => "バイト量の閾値を調査しました!", Language::UZ => "Bayt chegarasidan oshib ketdi!", Language::VI => "Bytes đã vượt ngưỡng!", + Language::ID => "Ambang batas byte terlampaui!", } } @@ -1727,6 +1789,7 @@ pub fn bytes_exceeded_value_translation(language: Language, value: &str) -> Stri Language::JA => format!("{value} の送受信が発生しました"), Language::UZ => format!("{value} ma'lumot almashinuvi"), Language::VI => format!("{value} đã được trao đổi"), + Language::ID => format!("{value} telah dipertukarkan"), } } @@ -1752,6 +1815,7 @@ pub fn packets_exceeded_translation(language: Language) -> &'static str { Language::JA => "パケット数のしきい値を超過しました!", Language::UZ => "Paket chegarasidan oshib ketdi!", Language::VI => "Gói tin đã vượt ngưỡng!", + Language::ID => "Ambang batas paket terlampaui!", } } @@ -1801,6 +1865,10 @@ pub fn packets_exceeded_value_translation(language: Language, value: u32) -> Str Language::JA => format!("{value} パケットの送受信が発生しました"), Language::UZ => format!("{value} paket uzatildi"), Language::VI => format!("{value} gói tin đã được trao đổi"), + Language::ID => match value { + 1 => "1 paket telah dipertukarkan".to_owned(), + npackets => format!("{npackets} paket telah dipertukarkan"), + }, } } @@ -1826,6 +1894,7 @@ pub fn favorite_transmitted_translation(language: Language) -> &'static str { Language::JA => "お気に入りのホストで新しいデータ送受信が発生しました!", Language::UZ => "Sevimli ulanishlar ro'yhatida yangi ma'lumotlar almashinuvi!", Language::VI => "Mục ưa thích vừa có trao đổi!", + Language::ID => "Data baru dipertukarkan dari favorit!", } } @@ -1891,7 +1960,10 @@ pub fn no_notifications_set_translation(language: Language) -> Text<'static, Sty Language::VI => "Bạn chưa bật tính năng thông báo!\n\n\ au khi bật, trang này sẽ hiển thị thông báo\n\n\ Hãy bật thông báo trong phần cài đặt:", - }) + Language::ID => "Anda belum mengaktifkan notifikasi!\n\n\ + Setelah mengaktifkannya, halaman ini akan menampilkan log notifikasi Anda\n\n\ + Anda dapat mengaktifkan notifikasi dari pengaturan:", + }) } pub fn no_notifications_received_translation(language: Language) -> Text<'static, StyleType> { @@ -1976,6 +2048,10 @@ pub fn no_notifications_received_translation(language: Language) -> Text<'static "Hiện tại không có gì để quan sát...\n\n\ Khi có thông báo, chúng sẽ hiển thị ở đây" } + Language::ID => { + "Tidak ada yang bisa dilihat saat ini...\n\n\ + Saat Anda menerima pemberitahuan, akan ditampilkan di sini" + } }) } @@ -2001,5 +2077,6 @@ pub fn only_last_30_translation(language: Language) -> &'static str { Language::JA => "最新の通知 30 件のみ表示されます", Language::UZ => "Faqat oxirgi 30 ta bildirishnoma ko'rsatiladi", Language::VI => "Chỉ có 30 thông báo gần nhất được hiển thị", + Language::ID => "Hanya 30 notifikasi terakhir yang ditampilkan", } }