lib/zci/commands/02_import.rb in zci-0.0.2 vs lib/zci/commands/02_import.rb in zci-0.0.3
- old
+ new
@@ -82,14 +82,14 @@
title: section[:name]
}
]
if remote_project_tree[:files].include?("/#{source_category_id}/#{file_name}")
- puts "[Crowdin] Update file `#{file_name}`"
+ puts "[Crowdin] Update section file `#{file_name}`"
@crowdin.update_file(files, type: 'webxml')
else
- puts "[Crowdin] Add file `#{file_name}`"
+ puts "[Crowdin] Add section file `#{file_name}`"
@crowdin.add_file(files, type: 'webxml')
end
end
# Creates xml files for articles and upload to Crowdin
@@ -108,13 +108,13 @@
title: article[:title]
}
]
if remote_project_tree[:files].include?("/#{source_category_id}/#{file_name}")
- puts "[Crowdin] Update file `#{file_name}`"
+ puts "[Crowdin] Update article file `#{file_name}`"
@crowdin.update_file(files, type: 'webxml')
else
- puts "[Crowdin] Add file `#{file_name}`"
+ puts "[Crowdin] Add article file `#{file_name}`"
@crowdin.add_file(files, type: 'webxml')
end
end
end # @cli_config['categories'].each