chore(i18n): finish translating code comments and scripts to English
CI / Format and clippy (push) Successful in 1m57s
CI / Dependency audit (push) Successful in 13s
CI / Check desktop app (Linux) (push) Successful in 3m54s
CI / Tests (Linux) (push) Failing after 7m25s
Release / Create release (push) Successful in 6s
Release / CLI (linux-aarch64) (push) Successful in 1m48s
Release / CLI (linux-x86_64) (push) Successful in 2m39s
Release / Desktop app (linux-aarch64) (push) Successful in 10m9s
Release / Desktop app (linux-x86_64) (push) Successful in 12m20s
Release / Desktop app (windows) (push) Successful in 7m32s
Release / Build latest.json (push) Successful in 5s
CI / Format and clippy (push) Successful in 1m57s
CI / Dependency audit (push) Successful in 13s
CI / Check desktop app (Linux) (push) Successful in 3m54s
CI / Tests (Linux) (push) Failing after 7m25s
Release / Create release (push) Successful in 6s
Release / CLI (linux-aarch64) (push) Successful in 1m48s
Release / CLI (linux-x86_64) (push) Successful in 2m39s
Release / Desktop app (linux-aarch64) (push) Successful in 10m9s
Release / Desktop app (linux-x86_64) (push) Successful in 12m20s
Release / Desktop app (windows) (push) Successful in 7m32s
Release / Build latest.json (push) Successful in 5s
Completes the English-only standardization for code, comments, scripts and CI templates (UI/CLI-facing strings stay bilingual pt-BR/en, untouched). Covers the remaining crates/, apps/gui/ui/ and apps/gui/src-tauri/ comments, .gitea/ workflow and template comments, .githooks/ hooks, and the scripts/ source comments for the files already renamed in a prior commit (check.sh, generate-logo.py, install-hooks.sh). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VAyr8d7HuAdUGB6aA5xmDD
This commit is contained in:
1 parent
da212e6926
commit
6328220c60
129 files changed
+1961
-1834
No files matched your search
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Marca registros da MFT como apagados (limpa o bit 'em uso') para fixtures de teste.
|
||||
"""Marks NTFS MFT records as deleted (clears the in-use bit) for test fixtures.
|
||||
|
||||
Uso: ntfs-mark-deleted.py imagem.img caminho/arquivo1 caminho/arquivo2 ...
|
||||
Só o nome base é usado (ntfscp grava na raiz).
|
||||
Usage: ntfs-mark-deleted.py image.img path/file1 path/file2 ...
|
||||
Only the basename is matched (ntfscp writes files to the root directory).
|
||||
"""
|
||||
import os
|
||||
import struct
|
||||
@@ -17,7 +17,7 @@ mft_lcn = struct.unpack_from("<Q", boot, 48)[0]
|
||||
rs = struct.unpack_from("<b", boot, 64)[0]
|
||||
rec = rs * bps * spc if rs > 0 else 1 << -rs
|
||||
f.seek(mft_lcn * bps * spc)
|
||||
data = f.read(rec * 4096) # MFT inicial é contígua em imagens pequenas
|
||||
data = f.read(rec * 4096) # Initial MFT is contiguous on small volumes
|
||||
count = 0
|
||||
for i in range(len(data) // rec):
|
||||
r = bytearray(data[i * rec:(i + 1) * rec])
|
||||
@@ -39,4 +39,4 @@ for i in range(len(data) // rec):
|
||||
break
|
||||
p += ln
|
||||
f.flush()
|
||||
print(f"marcados como apagados: {count}", file=sys.stderr)
|
||||
print(f"marked as deleted: {count}", file=sys.stderr)
|
||||
Reference in new issue
Block a user