Slide 15
Slide 15 text
ϦιʔεϑΝΠϧ
ΞΫηε͢Δ
private func LocalizedString(key: String,
tableName: String? = nil,
bundle: NSBundle = NSBundle.mainBundle(),
value: String = "",
language: Language) -> String {
if let
path = NSBundle.mainBundle().pathForResource(language.ISO639_1, ofType: "lproj"),
bundle = NSBundle(path: path) {
return bundle.localizedStringForKey(key, value: value, table: tableName)
} else {
ʢলུʣ
}
}