fastlane-plugin-google_sheet_localize 0.1.91 → 0.1.92
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: 7c5d55a28b123eed47eaf0607c597661d0de0c8f0c11453a58bce1f443a23c35
|
4
|
+
data.tar.gz: d791549491b632842b33c9d3c06954fd3a20e44a9b56d0595d9deef457c9cb87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44c1ab6536b3a8bd94652f273c5530f8be5f2751a09182c4ad1b2613349ed32fbfbd10e5bdc7e6c452848c2c77765789d0e90a7c3c243e398ffb8a1cb3618a65
|
7
|
+
data.tar.gz: 99a6ad65149db07568570489c15976a852068355b174bc62a35811e1b72a36284ea87d082c5bdea281b36a8ad76c11835ab75ae2c0e3b1031c013a90f37d9664
|
@@ -210,14 +210,14 @@ module Fastlane
|
|
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("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n")
|
212
212
|
f.write("<plist version=\"1.0\">\n")
|
213
|
-
|
213
|
+
|
214
|
+
line = ""
|
214
215
|
|
215
216
|
filteredItems.each_with_index { |item, index|
|
216
217
|
|
217
218
|
text = self.mapInvalidPlaceholder(item['text'])
|
218
219
|
identifier = item['identifierIos']
|
219
220
|
|
220
|
-
line = ""
|
221
221
|
if !identifier.include?('//') && text.include?("one|")
|
222
222
|
if text == "" || text == "TBD"
|
223
223
|
default_language_object = languages.select { |languageItem| languageItem['language'] == defaultLanguage }.first["items"]
|
@@ -230,29 +230,34 @@ module Fastlane
|
|
230
230
|
|
231
231
|
text = text.gsub("\n", "|")
|
232
232
|
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
233
|
+
line = line + "\t\t<key>#{identifier}</key>\n"
|
234
|
+
line = line + "\t\t<dict>\n"
|
235
|
+
line = line + "\t\t\t<key>NSStringLocalizedFormatKey</key>\n"
|
236
|
+
line = line + "\t\t\t<string>%#@#{identifier}@</string>\n"
|
237
|
+
line = line + "\t\t\t<key>#{identifier}</key>\n"
|
238
|
+
line = line + "\t\t\t<dict>\n"
|
239
|
+
line = line + "\t\t\t\t<key>NSStringFormatSpecTypeKey</key>\n"
|
240
|
+
line = line + "\t\t\t\t<string>NSStringPluralRuleType</string>\n"
|
241
|
+
line = line + "\t\t\t\t<key>NSStringFormatValueTypeKey</key>\n"
|
242
|
+
line = line + "\t\t\t\t<string>d</string>\n"
|
243
243
|
|
244
244
|
text.split("|").each_with_index { |word, wordIndex|
|
245
245
|
if wordIndex % 2 == 0
|
246
|
-
|
246
|
+
line = line + "\t\t\t\t<key>#{word}</key>\n"
|
247
247
|
else
|
248
|
-
|
248
|
+
line = line + "\t\t\t\t<string>#{word}</string>\n"
|
249
249
|
end
|
250
250
|
}
|
251
|
-
|
252
|
-
|
251
|
+
line = line + "\t\t\t</dict>\n"
|
252
|
+
line = line + "\t\t</dict>\n"
|
253
253
|
end
|
254
254
|
}
|
255
|
-
|
255
|
+
|
256
|
+
if line.length > 0
|
257
|
+
f.write("<dict>\n")
|
258
|
+
f.write(line)
|
259
|
+
f.write("</dict>\n")
|
260
|
+
end
|
256
261
|
f.write("</plist>\n")
|
257
262
|
end
|
258
263
|
end
|