mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
Fix CheckLocalizations script because I moved english Sparkle.strings
This commit is contained in:
1 parent
82718ca77f
commit
6bdaeab2c6
1 file changed
+2
-2
Vendored
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user