From 272d03a1b0f79c3a0e4dc54b7fb373bec59503a5 Mon Sep 17 00:00:00 2001 From: Guillaume Louel Date: Thu, 11 Apr 2019 16:44:49 +0200 Subject: [PATCH] pl support --- Aerial.xcodeproj/project.pbxproj | 6 ++++++ Aerial/Source/Models/Cache/PoiStringProvider.swift | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Aerial.xcodeproj/project.pbxproj b/Aerial.xcodeproj/project.pbxproj index 675c48ea..3014e0c0 100644 --- a/Aerial.xcodeproj/project.pbxproj +++ b/Aerial.xcodeproj/project.pbxproj @@ -44,6 +44,8 @@ 03D37FDA22145487005A146F /* es.json in Resources */ = {isa = PBXBuildFile; fileRef = 03D37FD722145487005A146F /* es.json */; }; 03D37FDB22145487005A146F /* fr.json in Resources */ = {isa = PBXBuildFile; fileRef = 03D37FD822145487005A146F /* fr.json */; }; 03D37FDC22145487005A146F /* fr.json in Resources */ = {isa = PBXBuildFile; fileRef = 03D37FD822145487005A146F /* fr.json */; }; + 03D3DAC4221F286700BDA52F /* pl.json in Resources */ = {isa = PBXBuildFile; fileRef = 03D3DAC3221F286700BDA52F /* pl.json */; }; + 03D3DAC5221F286D00BDA52F /* pl.json in Resources */ = {isa = PBXBuildFile; fileRef = 03D3DAC3221F286700BDA52F /* pl.json */; }; 03E8730C2165013C002B469B /* DownloadManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03E8730B2165013C002B469B /* DownloadManager.swift */; }; 03E8730F216501ED002B469B /* AsynchronousOperation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03E8730E216501ED002B469B /* AsynchronousOperation.swift */; }; 03E8731021662AEB002B469B /* DownloadManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03E8730B2165013C002B469B /* DownloadManager.swift */; }; @@ -115,6 +117,7 @@ 03A2CB9B216BA9AF0061E8E8 /* VideoManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VideoManager.swift; sourceTree = ""; }; 03D37FD722145487005A146F /* es.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = es.json; sourceTree = ""; }; 03D37FD822145487005A146F /* fr.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = fr.json; sourceTree = ""; }; + 03D3DAC3221F286700BDA52F /* pl.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = pl.json; sourceTree = ""; }; 03E8730B2165013C002B469B /* DownloadManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DownloadManager.swift; sourceTree = ""; }; 03E8730E216501ED002B469B /* AsynchronousOperation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AsynchronousOperation.swift; sourceTree = ""; }; 03E8731221675FE0002B469B /* TimeManagement.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimeManagement.swift; sourceTree = ""; }; @@ -190,6 +193,7 @@ 033192DF217B77E90073B580 /* Community */ = { isa = PBXGroup; children = ( + 03D3DAC3221F286700BDA52F /* pl.json */, 03D37FD722145487005A146F /* es.json */, 03D37FD822145487005A146F /* fr.json */, 033192E0217B78240073B580 /* en.json */, @@ -513,6 +517,7 @@ 0369985E2196129C00E359D3 /* missingvideos.json in Resources */, 033D62B0216CAE2C00F3AF83 /* icon-night-dark.pdf in Resources */, 0395835621807D1F008E8F9C /* thumbnail.png in Resources */, + 03D3DAC5221F286D00BDA52F /* pl.json in Resources */, FAC36F481BE1756D007F2A20 /* Assets.xcassets in Resources */, 033D62AC216CADCD00F3AF83 /* icon-day-dark.pdf in Resources */, FAC36F4A1BE1756D007F2A20 /* MainMenu.xib in Resources */, @@ -538,6 +543,7 @@ FAC36F531BE1756D007F2A20 /* PreferencesWindow.xib in Resources */, 03D37FDB22145487005A146F /* fr.json in Resources */, FAC36F4D1BE1756D007F2A20 /* icon-day.pdf in Resources */, + 03D3DAC4221F286700BDA52F /* pl.json in Resources */, 033D62AB216CADCD00F3AF83 /* icon-day-dark.pdf in Resources */, 0395835321807D1F008E8F9C /* thumbnail@2x.png in Resources */, 0395835521807D1F008E8F9C /* thumbnail.png in Resources */, diff --git a/Aerial/Source/Models/Cache/PoiStringProvider.swift b/Aerial/Source/Models/Cache/PoiStringProvider.swift index 4dd070bc..d1a29e1a 100644 --- a/Aerial/Source/Models/Cache/PoiStringProvider.swift +++ b/Aerial/Source/Models/Cache/PoiStringProvider.swift @@ -163,7 +163,7 @@ final class PoiStringProvider { let cc = locale.languageCode // Just in case, cause we had a crash earlier with the fr one for some reason... // This is probably no longer needed - if cc == "en" || cc == "es" || cc == "fr" { + if cc == "en" || cc == "es" || cc == "fr" || cc == "pl" { if preferences.localizeDescriptions { let path = Bundle(for: PoiStringProvider.self).path(forResource: cc, ofType: "json") if path != nil {