fix: write region names in pack READMEs as labels

packreadme title-cased each slug, printing asia-ntsc as Asia Ntsc.
region.label() holds the words the site already used, and both read it.
This commit is contained in:
Abdessamad Derraz committed 2026-11-06 03:50:49 +01:00
1 parent 00aac8dc72
commit 2f81aa9c0f
4 files changed
+38 -11

No files matched your search

+2 -3
View File
@@ -5,6 +5,7 @@ goes, and which ones the user has to rename."""
from __future__ import annotations
from region import label as region_label
from siteguides import INSTALL_PS1, INSTALL_SH, pack_manual
def _detect_systems(detect: list[dict]) -> list[str]:
@@ -290,9 +291,7 @@ def _build_readme(
region_info = ""
if regions:
pretty = ", ".join(
" ".join(w.title() for w in slug.split("-")) for slug in regions
)
pretty = ", ".join(region_label(slug) for slug in regions)
region_info = (
"PACK TYPE: Region Filtered\n\n"
f" Region priority: {pretty}\n\n"