Skip to content

Commit

Permalink
French, Spanish and English translations from Localize
Browse files Browse the repository at this point in the history
  • Loading branch information
glouel committed Feb 13, 2019
1 parent 26eb394 commit a8d6697
Show file tree
Hide file tree
Showing 5 changed files with 757 additions and 4 deletions.
12 changes: 12 additions & 0 deletions Aerial.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
0395835621807D1F008E8F9C /* thumbnail.png in Resources */ = {isa = PBXBuildFile; fileRef = 0395835221807D1F008E8F9C /* thumbnail.png */; };
03A2CB9C216BA9AF0061E8E8 /* VideoManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03A2CB9B216BA9AF0061E8E8 /* VideoManager.swift */; };
03A2CB9D216BB1490061E8E8 /* VideoManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03A2CB9B216BA9AF0061E8E8 /* VideoManager.swift */; };
03D37FD922145487005A146F /* es.json in Resources */ = {isa = PBXBuildFile; fileRef = 03D37FD722145487005A146F /* es.json */; };
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 */; };
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 */; };
Expand Down Expand Up @@ -109,6 +113,8 @@
0395835121807D1F008E8F9C /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
0395835221807D1F008E8F9C /* thumbnail.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = thumbnail.png; sourceTree = "<group>"; };
03A2CB9B216BA9AF0061E8E8 /* VideoManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VideoManager.swift; sourceTree = "<group>"; };
03D37FD722145487005A146F /* es.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = es.json; sourceTree = "<group>"; };
03D37FD822145487005A146F /* fr.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = fr.json; sourceTree = "<group>"; };
03E8730B2165013C002B469B /* DownloadManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DownloadManager.swift; sourceTree = "<group>"; };
03E8730E216501ED002B469B /* AsynchronousOperation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AsynchronousOperation.swift; sourceTree = "<group>"; };
03E8731221675FE0002B469B /* TimeManagement.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimeManagement.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -184,6 +190,8 @@
033192DF217B77E90073B580 /* Community */ = {
isa = PBXGroup;
children = (
03D37FD722145487005A146F /* es.json */,
03D37FD822145487005A146F /* fr.json */,
033192E0217B78240073B580 /* en.json */,
0369985C2196103300E359D3 /* missingvideos.json */,
);
Expand Down Expand Up @@ -501,6 +509,7 @@
033192E2217B78240073B580 /* en.json in Resources */,
FAC36F541BE1756D007F2A20 /* PreferencesWindow.xib in Resources */,
FAC36F4E1BE1756D007F2A20 /* icon-day.pdf in Resources */,
03D37FDA22145487005A146F /* es.json in Resources */,
0369985E2196129C00E359D3 /* missingvideos.json in Resources */,
033D62B0216CAE2C00F3AF83 /* icon-night-dark.pdf in Resources */,
0395835621807D1F008E8F9C /* thumbnail.png in Resources */,
Expand All @@ -509,6 +518,7 @@
FAC36F4A1BE1756D007F2A20 /* MainMenu.xib in Resources */,
FAC36F501BE1756D007F2A20 /* icon-night.pdf in Resources */,
0395835421807D1F008E8F9C /* [email protected] in Resources */,
03D37FDC22145487005A146F /* fr.json in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -526,10 +536,12 @@
buildActionMask = 2147483647;
files = (
FAC36F531BE1756D007F2A20 /* PreferencesWindow.xib in Resources */,
03D37FDB22145487005A146F /* fr.json in Resources */,
FAC36F4D1BE1756D007F2A20 /* icon-day.pdf in Resources */,
033D62AB216CADCD00F3AF83 /* icon-day-dark.pdf in Resources */,
0395835321807D1F008E8F9C /* [email protected] in Resources */,
0395835521807D1F008E8F9C /* thumbnail.png in Resources */,
03D37FD922145487005A146F /* es.json in Resources */,
033D62AF216CAE2C00F3AF83 /* icon-night-dark.pdf in Resources */,
0369985D2196103300E359D3 /* missingvideos.json in Resources */,
FAC36F4F1BE1756D007F2A20 /* icon-night.pdf in Resources */,
Expand Down
3 changes: 2 additions & 1 deletion Aerial/Source/Models/Cache/PoiStringProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ final class PoiStringProvider {
debugLog("Defaulting to bundle")
let cc = locale.languageCode
// Just in case, cause we had a crash earlier with the fr one for some reason...
if cc == "en" || cc == "es" {
// This is probably no longer needed
if cc == "en" || cc == "es" || cc == "fr" {
if preferences.localizeDescriptions {
let path = Bundle(for: PoiStringProvider.self).path(forResource: cc, ofType: "json")
if path != nil {
Expand Down
46 changes: 43 additions & 3 deletions Resources/Community/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@
"840FE8E4-D952-4680-B1A7-AC5BACA2C1F8": {
"name": "Upper East Side"
},

"44166C39-8566-4ECA-BD16-43159429B52F": {
"name": "Seventh Avenue"
},
Expand Down Expand Up @@ -305,6 +304,47 @@
},
"4AD99907-9E76-408D-A7FC-8429FF014201": {
"name": "Bay and Embarcadero"
},
"03EC0F5E-CCA8-4E0A-9FEC-5BD1CE151182": {
"name": "Antartica"
},
"737E9E24-49BE-4104-9B72-F352DE1AD2BF": {
"name": "North America Aurora"
},
"A837FA8C-C643-4705-AE92-074EFDD067F7": {
"name": "Africa Night"
},
"2F72BC1E-3D76-456C-81EB-842EBA488C27": {
"name": "Africa and the Middle East"
},
"12318CCB-3F78-43B7-A854-EFDCCE5312CD": {
"name": "California to Vegas"
},
"D5CFB2FF-5F8C-4637-816B-3E42FC1229B8": {
"name": "Caribbean"
},
"4F881F8B-A7D9-4FDB-A917-17BF6AC5A589": {
"name": "Caribbean Day"
},
"7825C73A-658F-48EE-B14C-EC56673094AC": {
"name": "China"
},
"E5DB138A-F04E-4619-B896-DE5CB538C534": {
"name": "Italy to Asia"
},
"F439B0A7-D18C-4B14-9681-6520E6A74FE9": {
"name": "Iran and Afghanistan"
},
"7C643A39-C0B2-4BA0-8BC2-2EAA47CC580E": {
"name": "Ireland to Asia"
},
"63C042F0-90EF-4A95-B7CC-CC9A64BF8421": {
"name": "West Africa to the Alps"
},
"78911B7E-3C69-47AD-B635-9C2486F6301D": {
"name": "New Zealand"
},
"E556BBC5-D0A0-4DB1-AC77-BC76E4A526F4": {
"name": "Sahara and Italy"
}
}

}
Loading

0 comments on commit a8d6697

Please sign in to comment.