mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
16 lines
439 B
Swift
16 lines
439 B
Swift
// RUN: %target-run-simple-swift | FileCheck %s
|
||
|
||
import Foundation
|
||
|
||
let key = "inquiens"
|
||
let value = "λαμπερός"
|
||
|
||
let s1 = NSLocalizedString(key, comment: "Hello")
|
||
// CHECK: key = inquiens s1 = inquiens
|
||
println("key = \(key) s1 = \(s1)")
|
||
|
||
let s2 = NSLocalizedString(key, tableName:nil, bundle: NSBundle.mainBundle(), value: value, comment: "Hello")
|
||
// CHECK: key = inquiens s2 = λαμπερός
|
||
println("key = \(key) s2 = \(s2)")
|
||
|