Skip to content

Run Windows games on Apple Silicon — free, open source, with an open compatibility database that tells you what actually works.

l10n: the five untranslated interface strings get their French line, and make-app refuses any L() key without one

Gauthier Piarrettefdb0c71e7dee
diff --git a/Scripts/make-app.sh b/Scripts/make-app.sh
index be86b0d..7165206 100755
--- a/Scripts/make-app.sh
+++ b/Scripts/make-app.sh
@@ -16,6 +16,15 @@ import re, collections
keys = re.findall(r'^\s*"((?:[^"\\]|\\.)*)"\s*:\s*"', open("Sources/HighballApp/L10n.swift").read(), re.M)
dups = [k for k, c in collections.Counter(keys).items() if c > 1]
if dups: print("error: duplicate L10n keys:", dups); raise SystemExit(1)
+# Every string the interface passes through L() must have a French line: a French Mac must
+# never see English (2026-09-15). Kit-side error texts are out of this net for now.
+import glob
+used = set()
+for f in glob.glob("Sources/HighballApp/*.swift"):
+ if f.endswith("L10n.swift"): continue
+ used |= set(re.findall(r'\bL\("((?:[^"\\]|\\.)*)"\)', open(f).read()))
+missing = sorted(used - set(keys))
+if missing: print("error: L() keys without a French translation:", missing); raise SystemExit(1)
PY
swift build -c "$CONFIG" --product HighballApp
APP=dist/Highball.app
diff --git a/Sources/HighballApp/L10n.swift b/Sources/HighballApp/L10n.swift
index 3f7a71d..e87009e 100644
--- a/Sources/HighballApp/L10n.swift
+++ b/Sources/HighballApp/L10n.swift
@@ -465,5 +465,11 @@ enum L10n {
"An environment needs attention — Highball can't read its settings, so its games aren't showing.": "Un environnement nécessite votre attention — Highball ne peut pas lire ses réglages, donc ses jeux n'apparaissent pas.",
"Some environments need attention — Highball can't read their settings, so their games aren't showing.": "Certains environnements nécessitent votre attention — Highball ne peut pas lire leurs réglages, donc leurs jeux n'apparaissent pas.",
"Open Troubleshooting": "Ouvrir le dépannage",
+ // Added 2026-09-15: every L() key must have a French line (make-app refuses to build otherwise)
+ "New environment": "Nouvel environnement",
+ "'%@' isn't a Windows program. Highball opens .exe, .msi and .bat files.": "« %@ » n'est pas un programme Windows. Highball ouvre les fichiers .exe, .msi et .bat.",
+ "Programs here start with %@ until this is resolved: %@": "Les programmes d'ici démarrent avec %@ tant que ce n'est pas résolu : %@",
+ "-dx11 -skiplauncher \"an argument with spaces\"": "-dx11 -skiplauncher \"un argument avec des espaces\"",
+ "authorizationCode": "authorizationCode",
]
}