@@ -213,24 +213,27 @@ def write(path)
213
213
f . puts "[[#{ section . name } ]]"
214
214
215
215
section . definitions . each do |definition |
216
- f . puts "\t [#{ definition . key } ]"
216
+ f . puts ""
217
+ f . puts " [#{ definition . key } ]"
217
218
218
- value = write_value ( definition , dev_lang , f )
219
- if !value && !definition . reference_key
220
- Twine ::stdout . puts "WARNING: #{ definition . key } does not exist in developer language '#{ dev_lang } '"
221
- end
222
-
223
- if definition . reference_key
224
- f . puts "\t \t ref = #{ definition . reference_key } "
219
+ if definition . raw_comment and definition . raw_comment . length > 0
220
+ f . puts " comment = #{ definition . raw_comment } "
225
221
end
226
222
if definition . tags && definition . tags . length > 0
227
223
tag_str = definition . tags . join ( ',' )
228
- f . puts "\t \t tags = #{ tag_str } "
224
+ f . puts " tags = #{ tag_str } "
229
225
end
230
- if definition . raw_comment and definition . raw_comment . length > 0
231
- f . puts "\t \t comment = #{ definition . raw_comment } "
226
+ if definition . reference_key
227
+ f . puts " ref = #{ definition . reference_key } "
232
228
end
229
+
230
+ value = write_value ( definition , dev_lang , f )
231
+ if !value && !definition . reference_key
232
+ Twine ::stdout . puts "WARNING: #{ definition . key } does not exist in developer language '#{ dev_lang } '"
233
+ end
234
+
233
235
@language_codes [ 1 ..-1 ] . each do |lang |
236
+ next if lang == 'zh-MO' || lang == 'zh-TW'
234
237
write_value ( definition , lang , f )
235
238
end
236
239
end
@@ -248,7 +251,7 @@ def write_value(definition, language, file)
248
251
value = '`' + value + '`'
249
252
end
250
253
251
- file . puts "\t \t #{ language } = #{ value } "
254
+ file . puts " #{ language } = #{ value } "
252
255
return value
253
256
end
254
257
0 commit comments