diff --git a/i18n/translations/de-DE.json b/i18n/translations/de-DE.json index ee4297a1a..ae76038c3 100644 --- a/i18n/translations/de-DE.json +++ b/i18n/translations/de-DE.json @@ -119,8 +119,7 @@ "Index: %s": "Index: %s", "Inputs (%d):": "Input (%d):", "Install?": "Installieren?", - "Insufficient Entropy!": "Unzureichende Entropie!", - "Insufficient entropy": "Unzureichende Entropie", + "Insufficient entropy!": "Unzureichende Entropie!", "Invalid Tamper Check Code": "Ungültiger Tamper Check Code", "Invalid address": "Ungültige Adresse", "Invalid mnemonic length": "Ungültige mnemonische Lange", @@ -187,8 +186,7 @@ "Please load a wallet output descriptor": "Bitte lade einen Wallet Ausgabedeskriptor", "Plunge Rate": "Tauchrate", "Policy Type": "Richtlinientyp:", - "Poor entropy": "Schlechte Entropie", - "Poor entropy detected!": "Schlechte Entropie erkannt!", + "Poor entropy!": "Schlechte Entropie!", "Print Test QR": "Drucke Test-QR", "Print Tiny Seed?": "Tiny Seed drucken?", "Print to QR": "Als QR-Code drucken", @@ -240,7 +238,7 @@ "Settings": "Einstellungen", "Settings stored internally on flash.": "Die Einstellungen werden intern auf Flash gespeichert.", "Settings stored on SD card.": "Einstellungen auf SD-Karte gespeichert.", - "Shannon's Entropy:": "Shannons Entropie:", + "Shannon's entropy:": "Shannons Entropie:", "Shutdown": "Ausschalten", "Shutdown Time": "Abschaltzeit:", "Shutting down..": "Herunterfahren..", diff --git a/i18n/translations/es-MX.json b/i18n/translations/es-MX.json index 3a2475949..05998691d 100644 --- a/i18n/translations/es-MX.json +++ b/i18n/translations/es-MX.json @@ -119,8 +119,7 @@ "Index: %s": "Índice: %s", "Inputs (%d):": "Entradas (%d):", "Install?": "¿Instalar?", - "Insufficient Entropy!": "¡Entropía Insuficiente!", - "Insufficient entropy": "Entropía insuficiente", + "Insufficient entropy!": "¡Entropía Insuficiente!", "Invalid Tamper Check Code": "Código de verificación no válido", "Invalid address": "Dirección inválida", "Invalid mnemonic length": "Longitud mnemónica no válida", @@ -187,8 +186,7 @@ "Please load a wallet output descriptor": "Carga un descriptor de cartera", "Plunge Rate": "Tasa de Caída", "Policy Type": "Tipo de póliza", - "Poor entropy": "Baja entropía", - "Poor entropy detected!": "Mala entropía detectada!", + "Poor entropy!": "Baja entropía!", "Print Test QR": "Prueba de Impresión QR", "Print Tiny Seed?": "¿Imprimir Tiny Seed?", "Print to QR": "Imprimir como Código QR", @@ -240,7 +238,7 @@ "Settings": "Ajustes", "Settings stored internally on flash.": "Ajustes almacenados internamente en flash.", "Settings stored on SD card.": "Configuración almacenada en la tarjeta SD.", - "Shannon's Entropy:": "Entropía de Shannon:", + "Shannon's entropy:": "Entropía de Shannon:", "Shutdown": "Apagar", "Shutdown Time": "Tiempo de Apagado", "Shutting down..": "Apagando..", diff --git a/i18n/translations/fr-FR.json b/i18n/translations/fr-FR.json index 266c39b35..648d8bee2 100644 --- a/i18n/translations/fr-FR.json +++ b/i18n/translations/fr-FR.json @@ -119,8 +119,7 @@ "Index: %s": "Index : %s", "Inputs (%d):": "Entrées (%d) :", "Install?": "Installer ?", - "Insufficient Entropy!": "Entropie insuffisante !", - "Insufficient entropy": "Entropie insuffisante", + "Insufficient entropy!": "Entropie insuffisante !", "Invalid Tamper Check Code": "Code de non compromis non valide", "Invalid address": "Adresse invalide", "Invalid mnemonic length": "Longueur mnémonique invalide", @@ -187,8 +186,7 @@ "Please load a wallet output descriptor": "Veuillez charger un descripteur de sortie de portefeuille", "Plunge Rate": "Taux de plongée", "Policy Type": "Type de politique", - "Poor entropy": "Entropie faible", - "Poor entropy detected!": "Entropie faible détectée !", + "Poor entropy!": "Entropie faible !", "Print Test QR": "Impression Test QR", "Print Tiny Seed?": "Imprimer Tiny Seed ?", "Print to QR": "Imprimer Code QR", @@ -240,7 +238,7 @@ "Settings": "Paramètres", "Settings stored internally on flash.": "Paramètres stockés en interne sur flash.", "Settings stored on SD card.": "Paramètres stockés sur la carte SD.", - "Shannon's Entropy:": "Entropie de Shannon :", + "Shannon's entropy:": "Entropie de Shannon :", "Shutdown": "Éteindre", "Shutdown Time": "Delai d'Arrêt", "Shutting down..": "Arrêt en cours..", diff --git a/i18n/translations/ja-JP.json b/i18n/translations/ja-JP.json index 0fe4a7908..124e8b373 100644 --- a/i18n/translations/ja-JP.json +++ b/i18n/translations/ja-JP.json @@ -119,8 +119,7 @@ "Index: %s": "インデックス:%s", "Inputs (%d):": "インプット(%d):", "Install?": "インストールしますか?", - "Insufficient Entropy!": "不十分なエントロピー!", - "Insufficient entropy": "不十分なエントロピー", + "Insufficient entropy!": "不十分なエントロピー!", "Invalid Tamper Check Code": "無効な改ざんチェックコード", "Invalid address": "無効なアドレス", "Invalid mnemonic length": "無効なニーモニックの長さ", @@ -187,8 +186,7 @@ "Please load a wallet output descriptor": "ウォレットの出力記述子をロードしてください", "Plunge Rate": "沈下率", "Policy Type": "証券の種類", - "Poor entropy": "低品質なエントロピー", - "Poor entropy detected!": "低品質なエントロピーが検出されました!", + "Poor entropy!": "低品質なエントロピー!", "Print Test QR": "テストQRを印刷", "Print Tiny Seed?": "小さなシードを印刷しますか?", "Print to QR": "QRを印刷", @@ -240,7 +238,7 @@ "Settings": "設定", "Settings stored internally on flash.": "設定はフラッシュメモリに内部保存されています.", "Settings stored on SD card.": "設定はSDカードに保存されています.", - "Shannon's Entropy:": "シャノンのエントロピー:", + "Shannon's entropy:": "シャノンのエントロピー:", "Shutdown": "シャットダウン", "Shutdown Time": "シャットダウン時間", "Shutting down..": "シャットダウン中..", diff --git a/i18n/translations/ko-KR.json b/i18n/translations/ko-KR.json index 7367a442b..2ccd4f9ec 100644 --- a/i18n/translations/ko-KR.json +++ b/i18n/translations/ko-KR.json @@ -119,8 +119,7 @@ "Index: %s": "인덱스: %s", "Inputs (%d):": "Input (%d):", "Install?": "설치하시겠습니까?", - "Insufficient Entropy!": "엔트로피가 충분하지 않습니다!", - "Insufficient entropy": "엔트로피가 충분하지 않습니다", + "Insufficient entropy!": "엔트로피가 충분하지 않습니다!", "Invalid Tamper Check Code": "유효하지 않은 탬퍼 체크 코드", "Invalid address": "주소가 잘못되었습니다", "Invalid mnemonic length": "니모닉 길이가 잘못되었습니다", @@ -187,8 +186,7 @@ "Please load a wallet output descriptor": "지갑 출력 디스크립터를 불러오십시오", "Plunge Rate": "침수율", "Policy Type": "정책 유형", - "Poor entropy": "엔트로피가 부족합니다", - "Poor entropy detected!": "엔트로피가 부족합니다!", + "Poor entropy!": "엔트로피가 부족합니다!", "Print Test QR": "QR 테스트 인쇄", "Print Tiny Seed?": "Tiny Seed를 인쇄하시겠습니까?", "Print to QR": "QR로 인쇄", @@ -240,7 +238,7 @@ "Settings": "설정", "Settings stored internally on flash.": "설정은 플래시에서 내부적으로 저장됩니다.", "Settings stored on SD card.": "SD 카드에 저장된 설정.", - "Shannon's Entropy:": "Shannon의 엔트로피:", + "Shannon's entropy:": "Shannon의 엔트로피:", "Shutdown": "종료", "Shutdown Time": "자동 종료시간", "Shutting down..": "종료 중..", diff --git a/i18n/translations/nl-NL.json b/i18n/translations/nl-NL.json index fb1d053b3..2400de46b 100644 --- a/i18n/translations/nl-NL.json +++ b/i18n/translations/nl-NL.json @@ -119,8 +119,7 @@ "Index: %s": "Index: %s", "Inputs (%d):": "Invoer (%d):", "Install?": "Installeren?", - "Insufficient Entropy!": "Onvoldoende Entropie!", - "Insufficient entropy": "Onvoldoende entropie", + "Insufficient entropy!": "Onvoldoende Entropie!", "Invalid Tamper Check Code": "Ongeldige sabotagecontrolecode", "Invalid address": "Ongeldig adres", "Invalid mnemonic length": "Ongeldige geheugensteun lengte", @@ -187,8 +186,7 @@ "Please load a wallet output descriptor": "Laadt een portemonnee descriptor in", "Plunge Rate": "Duik tarief", "Policy Type": "Type beleid", - "Poor entropy": "Slechte entropie", - "Poor entropy detected!": "Lage entropie gedetecteerd!", + "Poor entropy!": "Slechte entropie!", "Print Test QR": "Test QR afdrukken", "Print Tiny Seed?": "Tiny Seed afdrukken?", "Print to QR": "Afdrukken naar QR", @@ -240,7 +238,7 @@ "Settings": "Instellingen", "Settings stored internally on flash.": "Instellingen intern opgeslagen op flitser.", "Settings stored on SD card.": "Instellingen opgeslagen op SD kaart.", - "Shannon's Entropy:": "Shannon's entropie:", + "Shannon's entropy:": "Shannon's entropie:", "Shutdown": "Afsluiten", "Shutdown Time": "Uitschakelingstijd:", "Shutting down..": "Bezig met afsluiten..", diff --git a/i18n/translations/pt-BR.json b/i18n/translations/pt-BR.json index 1c1983e27..73236695b 100644 --- a/i18n/translations/pt-BR.json +++ b/i18n/translations/pt-BR.json @@ -119,8 +119,7 @@ "Index: %s": "Índice: %s", "Inputs (%d):": "Entradas (%d):", "Install?": "Instalar?", - "Insufficient Entropy!": "Entropia insuficiente!", - "Insufficient entropy": "Entropia insuficiente", + "Insufficient entropy!": "Entropia insuficiente!", "Invalid Tamper Check Code": "Código de verificação inválido", "Invalid address": "Endereço inválido", "Invalid mnemonic length": "Comprimento de mnemônico inválido", @@ -187,8 +186,7 @@ "Please load a wallet output descriptor": "Carregue um descritor da carteira", "Plunge Rate": "Taxa de Mergulho", "Policy Type": "Tipo de Apólice", - "Poor entropy": "Entropia fraca", - "Poor entropy detected!": "Baixa entropia detectada!", + "Poor entropy!": "Entropia fraca!", "Print Test QR": "Imprimir QR de teste", "Print Tiny Seed?": "Imprimir Tiny Seed?", "Print to QR": "Imprimir QR", @@ -240,7 +238,7 @@ "Settings": "Configurações", "Settings stored internally on flash.": "Configurações armazenadas internamente no flash.", "Settings stored on SD card.": "Configurações armazenadas no cartão SD.", - "Shannon's Entropy:": "Entropia de Shannon:", + "Shannon's entropy:": "Entropia de Shannon:", "Shutdown": "Desligar", "Shutdown Time": "Tempo de desligamento", "Shutting down..": "Desligando..", diff --git a/i18n/translations/ru-RU.json b/i18n/translations/ru-RU.json index c4887cdb3..e9f78351f 100644 --- a/i18n/translations/ru-RU.json +++ b/i18n/translations/ru-RU.json @@ -119,8 +119,7 @@ "Index: %s": "Индекс: %s", "Inputs (%d):": "Входы (%d):", "Install?": "Установить?", - "Insufficient Entropy!": "Недостаточная Энтропия!", - "Insufficient entropy": "Недостаточная энтропия", + "Insufficient entropy!": "Недостаточная Энтропия!", "Invalid Tamper Check Code": "Недействительный код проверки вскрытия", "Invalid address": "Неверный адрес", "Invalid mnemonic length": "Неверная длина мнемоники", @@ -187,8 +186,7 @@ "Please load a wallet output descriptor": "Пожалуйста загрузите выходной дескриптор кошелька", "Plunge Rate": "Скорость Погружения", "Policy Type": "Тип политики", - "Poor entropy": "Плохая энтропия", - "Poor entropy detected!": "Обнаружена плохая энтропия!", + "Poor entropy!": "Плохая энтропия!", "Print Test QR": "Напечатать Тестовый QR", "Print Tiny Seed?": "Распечатать Tiny Seed?", "Print to QR": "Печать в QR", @@ -240,7 +238,7 @@ "Settings": "Настройки", "Settings stored internally on flash.": "Настройки хранятся во флэш-памяти.", "Settings stored on SD card.": "Настройки сохранены на SD-карте.", - "Shannon's Entropy:": "Энтропия Шеннона:", + "Shannon's entropy:": "Энтропия Шеннона:", "Shutdown": "Выключить", "Shutdown Time": "Время выключения", "Shutting down..": "Выключение..", diff --git a/i18n/translations/tr-TR.json b/i18n/translations/tr-TR.json index 4d8ca3d2d..25104988b 100644 --- a/i18n/translations/tr-TR.json +++ b/i18n/translations/tr-TR.json @@ -119,8 +119,7 @@ "Index: %s": "Dizin: %s", "Inputs (%d):": "Girişler (%d):", "Install?": "Yükle?", - "Insufficient Entropy!": "Yetersiz Entropi!", - "Insufficient entropy": "Yetersiz entropi", + "Insufficient entropy!": "Yetersiz entropi!", "Invalid Tamper Check Code": "Geçersiz Kurcalama Kontrol Kodu", "Invalid address": "Geçersiz adres", "Invalid mnemonic length": "Geçersiz mnemonic uzunluğu", @@ -187,8 +186,7 @@ "Please load a wallet output descriptor": "Lütfen bir cüzdan çıktı tanımlayıcısı yükleyin", "Plunge Rate": "Dalış Hızı", "Policy Type": "Politika türü", - "Poor entropy": "Düşük entropi", - "Poor entropy detected!": "Düşük entropi tespit edildi!", + "Poor entropy!": "Düşük entropi!", "Print Test QR": "Test QR'ını Yazdır", "Print Tiny Seed?": "Tiny Seed Yazdırılsın mı?", "Print to QR": "QR'a Yazdır", @@ -240,7 +238,7 @@ "Settings": "Ayarlar", "Settings stored internally on flash.": "Ayarlar dahili olarak flaşta saklanır.", "Settings stored on SD card.": "Ayarlar SD karta kaydedildi.", - "Shannon's Entropy:": "Shannon Entropisi:", + "Shannon's entropy:": "Shannon entropisi:", "Shutdown": "Kapat", "Shutdown Time": "Kapanma Süresi", "Shutting down..": "Kapatılıyor..", diff --git a/i18n/translations/vi-VN.json b/i18n/translations/vi-VN.json index 6fdebf7a2..bee1fec41 100644 --- a/i18n/translations/vi-VN.json +++ b/i18n/translations/vi-VN.json @@ -119,8 +119,7 @@ "Index: %s": "Chỉ mục: %s", "Inputs (%d):": "Đầu vào (%d):", "Install?": "Cài đặt phần mềm?", - "Insufficient Entropy!": "Entropy không đủ!", - "Insufficient entropy": "Không đủ entropy", + "Insufficient entropy!": "Entropy không đủ!", "Invalid Tamper Check Code": "Mã kiểm tra giả mạo không hợp lệ", "Invalid address": "Địa chỉ không hợp lệ", "Invalid mnemonic length": "Độ dài mã Mnemonic không hợp lệ", @@ -187,8 +186,7 @@ "Please load a wallet output descriptor": "Vui lòng tải bộ mô tả đầu ra ví", "Plunge Rate": "Tỷ lệ sụt giảm", "Policy Type": "Loại Chính sách", - "Poor entropy": "Entropy kém", - "Poor entropy detected!": "Phát hiện entropy yếu!", + "Poor entropy!": "Entropy kém!", "Print Test QR": "In kiểm tra QR", "Print Tiny Seed?": "In Tiny Seed?", "Print to QR": "In ra QR", @@ -240,7 +238,7 @@ "Settings": "Cài đặt", "Settings stored internally on flash.": "Cài đặt được lưu trữ nội bộ trên đèn flash.", "Settings stored on SD card.": "Cài đặt được lưu trên thẻ SD.", - "Shannon's Entropy:": "Entropy của Shannon:", + "Shannon's entropy:": "Entropy của Shannon:", "Shutdown": "Tắt máy", "Shutdown Time": "Thời gian tắt máy", "Shutting down..": "Đang tắt..", diff --git a/i18n/translations/zh-CN.json b/i18n/translations/zh-CN.json index f32407ecd..0ed7b9ae8 100644 --- a/i18n/translations/zh-CN.json +++ b/i18n/translations/zh-CN.json @@ -119,8 +119,7 @@ "Index: %s": "索引: %s", "Inputs (%d):": "输入 (%d):", "Install?": "安装?", - "Insufficient Entropy!": "熵不足!", - "Insufficient entropy": "熵不足", + "Insufficient entropy!": "熵不足!", "Invalid Tamper Check Code": "无效的防篡改检查码", "Invalid address": "无效地址", "Invalid mnemonic length": "助记词长度无效", @@ -187,8 +186,7 @@ "Please load a wallet output descriptor": "请加载钱包输出描述符", "Plunge Rate": "下刀速度", "Policy Type": "政策类型", - "Poor entropy": "熵值低", - "Poor entropy detected!": "检测到低熵!", + "Poor entropy!": "熵值低!", "Print Test QR": "打印测试二维码", "Print Tiny Seed?": "打印 Tiny Seed?", "Print to QR": "打印到二维码", @@ -240,7 +238,7 @@ "Settings": "设置", "Settings stored internally on flash.": "设置存储在 Flash 内部。", "Settings stored on SD card.": "设置存储在SD卡上。", - "Shannon's Entropy:": "香农熵:", + "Shannon's entropy:": "香农熵:", "Shutdown": "关机", "Shutdown Time": "关机时间", "Shutting down..": "关机中..", diff --git a/src/krux/pages/capture_entropy.py b/src/krux/pages/capture_entropy.py index a9de85ab1..d3489e19e 100644 --- a/src/krux/pages/capture_entropy.py +++ b/src/krux/pages/capture_entropy.py @@ -116,11 +116,11 @@ def entropy_measurement_update(self, img, all_at_once=False, show_measurement=Tr ) elif entropy_level == POOR_ENTROPY: self.ctx.display.draw_hcentered_text( - t("Poor entropy"), self.y_label_offset, theme.del_color + t("Poor entropy!"), self.y_label_offset, theme.del_color ) else: self.ctx.display.draw_hcentered_text( - t("Insufficient entropy"), + t("Insufficient entropy!"), self.y_label_offset, theme.error_color, ) @@ -187,7 +187,7 @@ def capture(self, show_entropy_details=True): shannon_16b = shannon.entropy_img16b(img_bytes) shannon_16b_total = shannon_16b * img_pixels - entropy_msg = t("Shannon's Entropy:") + "\n" + entropy_msg = t("Shannon's entropy:") + "\n" entropy_msg += str(round(shannon_16b, 2)) + " " + "bits/px" + "\n" entropy_msg += t("(%d total)") % int(shannon_16b_total) + "\n\n" entropy_msg += t("Pixels deviation index:") + " " @@ -198,7 +198,7 @@ def capture(self, show_entropy_details=True): shannon_16b < INSUFFICIENT_SHANNONS_ENTROPY_TH or self.stdev_index < INSUFFICIENT_VARIANCE_TH ): - error_msg = t("Insufficient Entropy!") + error_msg = t("Insufficient entropy!") error_msg += "\n\n" error_msg += entropy_msg self.ctx.display.draw_centered_text(error_msg, theme.error_color) diff --git a/src/krux/pages/fill_flash.py b/src/krux/pages/fill_flash.py index ddf01f026..b9fcda3db 100644 --- a/src/krux/pages/fill_flash.py +++ b/src/krux/pages/fill_flash.py @@ -60,7 +60,7 @@ def capture_image_with_sufficient_entropy(self, entropy_measurement): if entropy_measurement.stdev_index > POOR_VARIANCE_TH: self.ctx.display.to_portrait() return img.to_bytes() - raise ValueError("Insufficient entropy") + raise ValueError(t("Insufficient entropy!")) def fill_flash_with_camera_entropy(self): """Fill the flash memory with entropy data from the camera.""" diff --git a/src/krux/pages/new_mnemonic/dice_rolls.py b/src/krux/pages/new_mnemonic/dice_rolls.py index 0a74cfbd4..fd0289b5f 100644 --- a/src/krux/pages/new_mnemonic/dice_rolls.py +++ b/src/krux/pages/new_mnemonic/dice_rolls.py @@ -156,7 +156,7 @@ def stats_for_nerds(self): offset_x += bar_pad offset_y += FONT_HEIGHT self.ctx.display.draw_hcentered_text( - t("Shannon's Entropy:") + " " + str(shannon_entropy) + " " + "bits", + t("Shannon's entropy:") + " " + str(shannon_entropy) + " " + "bits", offset_y, ) @@ -278,7 +278,7 @@ def delete_roll(buffer): if self.calculate_entropy() < ( self.min_entropy - ENTROPY_TOLERANCE ): - warning_txt += t("Poor entropy detected!") + warning_txt += t("Poor entropy!") if self.pattern_detection(): if warning_txt: warning_txt += "\n" diff --git a/src/krux/translations/__init__.py b/src/krux/translations/__init__.py index 7f678e97d..b790f3a0c 100644 --- a/src/krux/translations/__init__.py +++ b/src/krux/translations/__init__.py @@ -153,8 +153,7 @@ 958390318, 3242179508, 3034883011, - 3755547839, - 2032416055, + 649035497, 3248804547, 2585599782, 4093416954, @@ -221,8 +220,7 @@ 3561756278, 784609464, 473757803, - 3761518438, - 3639136476, + 978980745, 3037062877, 2362732578, 3123770978, @@ -274,7 +272,7 @@ 473154195, 563836138, 712533907, - 2377955518, + 1959451368, 1825881236, 3656120779, 2120776272, diff --git a/src/krux/translations/de.py b/src/krux/translations/de.py index e8a54d58d..f22d081fc 100644 --- a/src/krux/translations/de.py +++ b/src/krux/translations/de.py @@ -142,7 +142,6 @@ "Input (%d):", "Installieren?", "Unzureichende Entropie!", - "Unzureichende Entropie", "Ungültiger Tamper Check Code", "Ungültige Adresse", "Ungültige mnemonische Lange", @@ -209,8 +208,7 @@ "Bitte lade einen Wallet Ausgabedeskriptor", "Tauchrate", "Richtlinientyp:", - "Schlechte Entropie", - "Schlechte Entropie erkannt!", + "Schlechte Entropie!", "Drucke Test-QR", "Tiny Seed drucken?", "Als QR-Code drucken", diff --git a/src/krux/translations/es.py b/src/krux/translations/es.py index fc21d72cb..89336a8fc 100644 --- a/src/krux/translations/es.py +++ b/src/krux/translations/es.py @@ -142,7 +142,6 @@ "Entradas (%d):", "¿Instalar?", "¡Entropía Insuficiente!", - "Entropía insuficiente", "Código de verificación no válido", "Dirección inválida", "Longitud mnemónica no válida", @@ -209,8 +208,7 @@ "Carga un descriptor de cartera", "Tasa de Caída", "Tipo de póliza", - "Baja entropía", - "Mala entropía detectada!", + "Baja entropía!", "Prueba de Impresión QR", "¿Imprimir Tiny Seed?", "Imprimir como Código QR", diff --git a/src/krux/translations/fr.py b/src/krux/translations/fr.py index b8346534b..030c98586 100644 --- a/src/krux/translations/fr.py +++ b/src/krux/translations/fr.py @@ -142,7 +142,6 @@ "Entrées (%d)\u2009:", "Installer\u2009?", "Entropie insuffisante\u2009!", - "Entropie insuffisante", "Code de non compromis non valide", "Adresse invalide", "Longueur mnémonique invalide", @@ -209,8 +208,7 @@ "Veuillez charger un descripteur de sortie de portefeuille", "Taux de plongée", "Type de politique", - "Entropie faible", - "Entropie faible détectée\u2009!", + "Entropie faible\u2009!", "Impression Test QR", "Imprimer Tiny Seed\u2009?", "Imprimer Code QR", diff --git a/src/krux/translations/ja.py b/src/krux/translations/ja.py index 9b23225f0..f8188c42b 100644 --- a/src/krux/translations/ja.py +++ b/src/krux/translations/ja.py @@ -142,7 +142,6 @@ "インプット(%d):", "インストールしますか?", "不十分なエントロピー!", - "不十分なエントロピー", "無効な改ざんチェックコード", "無効なアドレス", "無効なニーモニックの長さ", @@ -209,8 +208,7 @@ "ウォレットの出力記述子をロードしてください", "沈下率", "証券の種類", - "低品質なエントロピー", - "低品質なエントロピーが検出されました!", + "低品質なエントロピー!", "テストQRを印刷", "小さなシードを印刷しますか?", "QRを印刷", diff --git a/src/krux/translations/ko.py b/src/krux/translations/ko.py index a22cf1883..cd322cf36 100644 --- a/src/krux/translations/ko.py +++ b/src/krux/translations/ko.py @@ -142,7 +142,6 @@ "Input (%d):", "설치하시겠습니까?", "엔트로피가 충분하지 않습니다!", - "엔트로피가 충분하지 않습니다", "유효하지 않은 탬퍼 체크 코드", "주소가 잘못되었습니다", "니모닉 길이가 잘못되었습니다", @@ -209,7 +208,6 @@ "지갑 출력 디스크립터를 불러오십시오", "침수율", "정책 유형", - "엔트로피가 부족합니다", "엔트로피가 부족합니다!", "QR 테스트 인쇄", "Tiny Seed를 인쇄하시겠습니까?", diff --git a/src/krux/translations/nl.py b/src/krux/translations/nl.py index da2541db7..a4fe59625 100644 --- a/src/krux/translations/nl.py +++ b/src/krux/translations/nl.py @@ -142,7 +142,6 @@ "Invoer (%d):", "Installeren?", "Onvoldoende Entropie!", - "Onvoldoende entropie", "Ongeldige sabotagecontrolecode", "Ongeldig adres", "Ongeldige geheugensteun lengte", @@ -209,8 +208,7 @@ "Laadt een portemonnee descriptor in", "Duik tarief", "Type beleid", - "Slechte entropie", - "Lage entropie gedetecteerd!", + "Slechte entropie!", "Test QR afdrukken", "Tiny Seed afdrukken?", "Afdrukken naar QR", diff --git a/src/krux/translations/pt.py b/src/krux/translations/pt.py index 5bd883292..a60394dda 100644 --- a/src/krux/translations/pt.py +++ b/src/krux/translations/pt.py @@ -142,7 +142,6 @@ "Entradas (%d):", "Instalar?", "Entropia insuficiente!", - "Entropia insuficiente", "Código de verificação inválido", "Endereço inválido", "Comprimento de mnemônico inválido", @@ -209,8 +208,7 @@ "Carregue um descritor da carteira", "Taxa de Mergulho", "Tipo de Apólice", - "Entropia fraca", - "Baixa entropia detectada!", + "Entropia fraca!", "Imprimir QR de teste", "Imprimir Tiny Seed?", "Imprimir QR", diff --git a/src/krux/translations/ru.py b/src/krux/translations/ru.py index 5256eada9..a33bf25a3 100644 --- a/src/krux/translations/ru.py +++ b/src/krux/translations/ru.py @@ -142,7 +142,6 @@ "Входы (%d):", "Установить?", "Недостаточная Энтропия!", - "Недостаточная энтропия", "Недействительный код проверки вскрытия", "Неверный адрес", "Неверная длина мнемоники", @@ -209,8 +208,7 @@ "Пожалуйста загрузите выходной дескриптор кошелька", "Скорость Погружения", "Тип политики", - "Плохая энтропия", - "Обнаружена плохая энтропия!", + "Плохая энтропия!", "Напечатать Тестовый QR", "Распечатать Tiny Seed?", "Печать в QR", diff --git a/src/krux/translations/tr.py b/src/krux/translations/tr.py index a59aec439..83dc19a5a 100644 --- a/src/krux/translations/tr.py +++ b/src/krux/translations/tr.py @@ -141,8 +141,7 @@ "Dizin: %s", "Girişler (%d):", "Yükle?", - "Yetersiz Entropi!", - "Yetersiz entropi", + "Yetersiz entropi!", "Geçersiz Kurcalama Kontrol Kodu", "Geçersiz adres", "Geçersiz mnemonic uzunluğu", @@ -209,8 +208,7 @@ "Lütfen bir cüzdan çıktı tanımlayıcısı yükleyin", "Dalış Hızı", "Politika türü", - "Düşük entropi", - "Düşük entropi tespit edildi!", + "Düşük entropi!", "Test QR'ını Yazdır", "Tiny Seed Yazdırılsın mı?", "QR'a Yazdır", @@ -262,7 +260,7 @@ "Ayarlar", "Ayarlar dahili olarak flaşta saklanır.", "Ayarlar SD karta kaydedildi.", - "Shannon Entropisi:", + "Shannon entropisi:", "Kapat", "Kapanma Süresi", "Kapatılıyor..", diff --git a/src/krux/translations/vi.py b/src/krux/translations/vi.py index 4c46ccf64..ed87f213a 100644 --- a/src/krux/translations/vi.py +++ b/src/krux/translations/vi.py @@ -142,7 +142,6 @@ "Đầu vào (%d):", "Cài đặt phần mềm?", "Entropy không đủ!", - "Không đủ entropy", "Mã kiểm tra giả mạo không hợp lệ", "Địa chỉ không hợp lệ", "Độ dài mã Mnemonic không hợp lệ", @@ -209,8 +208,7 @@ "Vui lòng tải bộ mô tả đầu ra ví", "Tỷ lệ sụt giảm", "Loại Chính sách", - "Entropy kém", - "Phát hiện entropy yếu!", + "Entropy kém!", "In kiểm tra QR", "In Tiny Seed?", "In ra QR", diff --git a/src/krux/translations/zh.py b/src/krux/translations/zh.py index 9d0281319..c2d2383ba 100644 --- a/src/krux/translations/zh.py +++ b/src/krux/translations/zh.py @@ -142,7 +142,6 @@ "输入 (%d):", "安装?", "熵不足!", - "熵不足", "无效的防篡改检查码", "无效地址", "助记词长度无效", @@ -209,8 +208,7 @@ "请加载钱包输出描述符", "下刀速度", "政策类型", - "熵值低", - "检测到低熵!", + "熵值低!", "打印测试二维码", "打印 Tiny Seed?", "打印到二维码", diff --git a/tests/pages/new_mnemonic/test_dice_rolls.py b/tests/pages/new_mnemonic/test_dice_rolls.py index 2b65cbe64..7055f1570 100644 --- a/tests/pages/new_mnemonic/test_dice_rolls.py +++ b/tests/pages/new_mnemonic/test_dice_rolls.py @@ -379,7 +379,7 @@ def test_low_shannon_entropy_warning(amigo, mocker): assert ctx.input.wait_for_button.call_count == len(BTN_SEQUENCE) # Assert ctx.display.draw_centered_text was called with poor entropy warning" - call_message = mocker.call("Poor entropy detected!\nPattern detected!") + call_message = mocker.call("Poor entropy!\nPattern detected!") ctx.display.draw_centered_text.assert_has_calls([call_message]) diff --git a/tests/pages/test_capture_entropy.py b/tests/pages/test_capture_entropy.py index b1dc4f3e3..b668b4210 100644 --- a/tests/pages/test_capture_entropy.py +++ b/tests/pages/test_capture_entropy.py @@ -2,10 +2,10 @@ import hashlib ENTROPY_MESSAGE_STR = ( - f"Shannon's Entropy:\n%s bits/px\n(%s total)\n\nPixels deviation index: %s" + f"Shannon's entropy:\n%s bits/px\n(%s total)\n\nPixels deviation index: %s" ) -ENTROPY_INSUFFICIENT_MESSAGE_STR = "Insufficient Entropy!\n\n" + ENTROPY_MESSAGE_STR +ENTROPY_INSUFFICIENT_MESSAGE_STR = "Insufficient entropy!\n\n" + ENTROPY_MESSAGE_STR def test_cancel_capture(amigo, mocker): @@ -84,7 +84,7 @@ def test_insufficient_variance(amigo, mocker): # Assert that the result is None assert result is None - # Assert ctx.display.draw_centered_text was called with "Insufficient Entropy!" + # Assert ctx.display.draw_centered_text was called with "Insufficient entropy!" call_message = mocker.call( ENTROPY_INSUFFICIENT_MESSAGE_STR % (shannon_value, total_shannon, variance), RED ) @@ -136,7 +136,7 @@ def test_insufficient_shannons_entropy(amigo, mocker): # Assert that the result is None assert result is None - # Assert ctx.display.draw_centered_text was called with "Insufficient Entropy!" + # Assert ctx.display.draw_centered_text was called with "Insufficient entropy!" call_message = mocker.call( ENTROPY_INSUFFICIENT_MESSAGE_STR % (shannon_value, total_shannon, variance), RED ) @@ -193,7 +193,7 @@ def test_poor_variance(amigo, mocker): assert result == hasher.digest() - # Assert ctx.display.draw_centered_text was called with "Insufficient Entropy!" + # Assert ctx.display.draw_centered_text was called with "Insufficient entropy!" call_message = mocker.call( ENTROPY_MESSAGE_STR % (shannon_value, total_shannon, variance) ) @@ -250,7 +250,7 @@ def test_good_variance_good_shannons_entropy(amigo, mocker): assert result == hasher.digest() - # Assert ctx.display.draw_centered_text was called with "Insufficient Entropy!" + # Assert ctx.display.draw_centered_text was called with "Insufficient entropy!" call_message = mocker.call( ENTROPY_MESSAGE_STR % (shannon_value, total_shannon, variance) )