Skip to content

Commit df109e1

Browse files
committed
---
yaml --- r: 341439 b: refs/heads/rxwei-patch-1 c: 7135b89 h: refs/heads/master i: 341437: 8c672bf 341435: 07f6fca 341431: 2724e76 341423: 11bf61f 341407: 860a5b7 341375: 2994580
1 parent da2abb7 commit df109e1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-08-18-a: b10b1fce14385faa6d44f6b933e95
10151015
refs/heads/rdar-43033749-fix-batch-mode-no-diags-swift-5.0-branch: a14e64eaad30de89f0f5f0b2a782eed7ecdcb255
10161016
refs/heads/revert-19006-error-bridging-integer-type: 8a9065a3696535305ea53fe9b71f91cbe6702019
10171017
refs/heads/revert-19050-revert-19006-error-bridging-integer-type: ecf752d54b05dd0a20f510f0bfa54a3fec3bcaca
1018-
refs/heads/rxwei-patch-1: e595b44a1066210d14a9d973d36171b5d2937abc
1018+
refs/heads/rxwei-patch-1: 7135b8969ee9f4a78a9bc2f7cbde55c968ca42f1
10191019
refs/heads/shahmishal-patch-1: e58ec0f7488258d42bef51bc3e6d7b3dc74d7b2a
10201020
refs/heads/typelist-existential: 4046359efd541fb5c72d69a92eefc0a784df8f5e
10211021
refs/tags/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-08-20-a: 4319ba09e4fb8650ee86061075c74a016b6baab9

branches/rxwei-patch-1/stdlib/public/Darwin/Foundation/Foundation.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public let NSNotFound: Int = .max
5555
/// - If `value` is the empty string, `key` is returned.
5656
/// - If `value` is not the empty string, `value` is returned.
5757
///
58-
/// Exporting Localizations
59-
/// -----------------------
58+
/// Export Localizations with Xcode
59+
/// -------------------------------
6060
///
6161
/// Xcode can read through a project's code to find invocations of
6262
/// `NSLocalizedString(_:tableName:bundle:value:comment:)` and automatically
@@ -80,8 +80,8 @@ public let NSNotFound: Int = .max
8080
/// xcodebuild -importLocalizations -project <projectname>.xcodeproj \
8181
/// -localizationPath <path>
8282
///
83-
/// Keys and Values
84-
/// ---------------
83+
/// Choose Meaningful Keys
84+
/// ----------------------
8585
///
8686
/// Words can often have multiple different meanings depending on the context
8787
/// in which they're used. For example, the word "Book" can be used as a noun—a
@@ -104,8 +104,8 @@ public let NSNotFound: Int = .max
104104
/// verb: Title of the button that makes a reservation.
105105
/// """)
106106
///
107-
/// Limitations
108-
/// -----------
107+
/// Use Only String Literals
108+
/// ------------------------
109109
///
110110
/// Variables and interpolated strings cannot be passed into `key`, `tableName`,
111111
/// `value`, and `comment`.
@@ -152,8 +152,8 @@ public let NSNotFound: Int = .max
152152
/// Luckily, since comments aren't localized, multi-line string literals can be
153153
/// safely used with `comment`.
154154
///
155-
/// Alternatives
156-
/// ------------
155+
/// Restrict Autosynthesized Localizations
156+
/// --------------------------------------
157157
///
158158
/// If having Xcode generate strings files from code isn't desired behavior,
159159
/// you should call `Bundle.localizedString(forKey:value:table:)` instead.

0 commit comments

Comments
 (0)