From 6bdaeab2c6105fb638ac539ecffa7ff076c43d93 Mon Sep 17 00:00:00 2001 From: Zorg Date: Mon, 28 Dec 2020 11:46:17 -0800 Subject: [PATCH] Fix CheckLocalizations script because I moved english Sparkle.strings --- Sparkle/CheckLocalizations.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sparkle/CheckLocalizations.swift b/Sparkle/CheckLocalizations.swift index 0f8e4e82..da25f3e5 100644 --- a/Sparkle/CheckLocalizations.swift +++ b/Sparkle/CheckLocalizations.swift @@ -21,7 +21,7 @@ if sparkleRoot == nil || htmlPath == nil { die("Missing arguments") } -let enStringsPath = sparkleRoot! + "/Sparkle/en.lproj/Sparkle.strings" +let enStringsPath = sparkleRoot! + "/Sparkle/Base.lproj/Sparkle.strings" let enStringsDict = NSDictionary(contentsOfFile: enStringsPath) if enStringsDict == nil { die("Invalid English strings") @@ -51,7 +51,7 @@ head.addChild(XMLElement(name: "style", stringValue: css)) let locale = Locale.current for dirEntry in dirContents { - if NSString(string: dirEntry).pathExtension != "lproj" || dirEntry == "en.lproj" { + if NSString(string: dirEntry).pathExtension != "lproj" || dirEntry == "Base.lproj" || dirEntry == "en.lproj" { continue }