fastlane-plugin-google_sheet_localize 0.1.93 → 0.1.94
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57acbef4e8273cd7c6047404c83551df9a1a5c12bb855e7dd498e19ca925b46e
|
4
|
+
data.tar.gz: 85cbe306ab06afe1a0caed1feff42eaa987a78e6f16907097b6aa0f0440de9f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ec5baa353980a2e5ddcf1b1a78cc6205c6b9e3773994366a921648cc9008567ddd8c0c053b167e41e20e961b0afd43cdd7515bdd972a3be44c54c6a1b94b988
|
7
|
+
data.tar.gz: f728d0255c78a6b4f0e38d3babc7c8df2295e0c2c3e9da37cac32388f80db4b7f00049202232c10ce94b48122d4988f178111d2dbe9fca73e8e8dafdaedf51a1
|
@@ -209,8 +209,7 @@ module Fastlane
|
|
209
209
|
f.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n")
|
210
210
|
f.write("<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n")
|
211
211
|
f.write("<plist version=\"1.0\">\n")
|
212
|
-
|
213
|
-
line = ""
|
212
|
+
f.write("<dict>\n")
|
214
213
|
|
215
214
|
filteredItems.each_with_index { |item, index|
|
216
215
|
|
@@ -229,34 +228,29 @@ module Fastlane
|
|
229
228
|
|
230
229
|
text = text.gsub("\n", "|")
|
231
230
|
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
231
|
+
f.write("\t\t<key>#{identifier}</key>\n")
|
232
|
+
f.write("\t\t<dict>\n")
|
233
|
+
f.write("\t\t\t<key>NSStringLocalizedFormatKey</key>\n")
|
234
|
+
f.write("\t\t\t<string>%#@#{identifier}@</string>\n")
|
235
|
+
f.write("\t\t\t<key>#{identifier}</key>\n")
|
236
|
+
f.write("\t\t\t<dict>\n")
|
237
|
+
f.write("\t\t\t\t<key>NSStringFormatSpecTypeKey</key>\n")
|
238
|
+
f.write("\t\t\t\t<string>NSStringPluralRuleType</string>\n")
|
239
|
+
f.write("\t\t\t\t<key>NSStringFormatValueTypeKey</key>\n")
|
240
|
+
f.write("\t\t\t\t<string>d</string>\n")
|
242
241
|
|
243
242
|
text.split("|").each_with_index { |word, wordIndex|
|
244
243
|
if wordIndex % 2 == 0
|
245
|
-
|
244
|
+
f.write("\t\t\t\t<key>#{word}</key>\n")
|
246
245
|
else
|
247
|
-
|
246
|
+
f.write("\t\t\t\t<string>#{word}</string>\n")
|
248
247
|
end
|
249
248
|
}
|
250
|
-
|
251
|
-
|
249
|
+
f.write("\t\t\t</dict>\n")
|
250
|
+
f.write("\t\t</dict>\n")
|
252
251
|
end
|
253
252
|
}
|
254
|
-
|
255
|
-
if line.length > 0
|
256
|
-
f.write("<dict>\n")
|
257
|
-
f.write(line)
|
258
|
-
f.write("</dict>\n")
|
259
|
-
end
|
253
|
+
f.write("</dict>\n")
|
260
254
|
f.write("</plist>\n")
|
261
255
|
end
|
262
256
|
end
|