remove user-facing English from the library (KeyOrigin::name, hddvd Title)

Library holds ZERO user-facing English (CLAUDE.md). Removed KeyOrigin::name()'s
English prose — apps map the typed enum (freemkv gets key_origin_label); diag
logs the enum's Debug repr. hddvd unnamed-title fallback 'Title N' -> neutral
TITLE_N identifier (UDF volume-label style).
This commit is contained in:
Matthew Jackson
2026-07-17 21:50:09 -07:00
parent 9dbfb70f7e
commit 3cb0a8f41c
3 changed files with 7 additions and 14 deletions
+1 -1
View File
@@ -530,7 +530,7 @@ fn dump_aacs(disc: &Disc) {
a.bus_encryption, a.bus_encryption,
a.mkb_version, a.mkb_version,
a.disc_hash, a.disc_hash,
a.key_source.name(), a.key_source,
a.vuk.is_some(), a.vuk.is_some(),
a.unit_keys.len(), a.unit_keys.len(),
a.uk_ro.len(), a.uk_ro.len(),
+3 -1
View File
@@ -522,8 +522,10 @@ fn compose_xpl_titles(
}) })
.collect(); .collect();
titles.push(DiscTitle { titles.push(DiscTitle {
// Language-neutral identifier (no user-facing English in the library):
// matches the UDF `TITLE_*` volume-label style. Apps localize display.
playlist: if t.name.is_empty() { playlist: if t.name.is_empty() {
format!("Title {}", t.number) format!("TITLE_{}", t.number)
} else { } else {
t.name.clone() t.name.clone()
}, },
+3 -12
View File
@@ -1440,18 +1440,9 @@ pub enum KeyOrigin {
ExternalUk, ExternalUk,
} }
impl KeyOrigin { // No `KeyOrigin::name()`: the library holds ZERO user-facing English (CLAUDE.md).
pub fn name(&self) -> &'static str { // `KeyOrigin` is a typed enum; applications map its variants to display text
match self { // (see freemkv's `disc_info::key_origin_label`).
KeyOrigin::DeviceKey => "MKB + device key",
KeyOrigin::ProcessingKey => "MKB + processing key",
KeyOrigin::KeyDbDerived => "KEYDB (derived)",
KeyOrigin::KeyDb => "KEYDB",
KeyOrigin::KeyDbUnitKeys => "KEYDB (unit keys)",
KeyOrigin::ExternalUk => "external UK",
}
}
}
// ─── Disc scanning ────────────────────────────────────────────────────────── // ─── Disc scanning ──────────────────────────────────────────────────────────