Add default text

This commit is contained in:
Florian Gabach
2017-03-03 10:55:19 +01:00
parent 32a24c31dc
commit 58daf0f708
4 changed files with 11 additions and 5 deletions
@@ -235,6 +235,7 @@
};
607FACE41AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
DevelopmentTeam = 62PP362QNQ;
LastSwiftMigration = 0820;
TestTargetID = 607FACCF1AFB9204008FA782;
};
@@ -571,6 +572,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = B618AB26E5C0028641390646 /* Pods-OpenSourceController_Tests.debug.xcconfig */;
buildSettings = {
DEVELOPMENT_TEAM = 62PP362QNQ;
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
@@ -588,6 +590,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 87501F335829155E114806FA /* Pods-OpenSourceController_Tests.release.xcconfig */;
buildSettings = {
DEVELOPMENT_TEAM = 62PP362QNQ;
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
INFOPLIST_FILE = Tests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
@@ -9,14 +9,14 @@
import Foundation
extension Array {
/// Get an index safely
public func get(at index: Int) -> Element? {
guard index >= 0
&& index < count else {
return nil
guard index >= 0
&& index < count else {
return nil
}
return self[index]
}
}
@@ -31,6 +31,8 @@ public class LicenceFile: NSObject {
public init(title: String, url: String) {
self.title = title
self.url = url
self.detail = NSLocalizedString("Unable to load this licence.",
comment: "")
}
/// Download licence detail
+1
View File
@@ -86,6 +86,7 @@ OpenSourceController is currently write in english. If you need translation for
```
"Tiers library" = "<your_translation>";
"Unable to load this licence." = "<your_translation>";
```
## Applications