Set license files and headers for bitcoin.org's content

This commit is contained in:
Saivann 2014-11-21 17:13:43 -05:00
parent 27f1da3ba8
commit 2a139a51a1
276 changed files with 524 additions and 171 deletions

View file

@ -1,3 +1,6 @@
# This file is licensed under the MIT License (MIT) available on
# http://opensource.org/licenses/MIT.
#alphab_for allows to loop in an array sorted by the translated value of
#each key using appropriate collation for the current language. In short,
#this is used to generate translated table of contents.
@ -19,7 +22,7 @@ module Jekyll
if !site.has_key?("loc")
site['loc'] = {}
Dir.foreach('_translations') do |file|
next if file == '.' or file == '..'
next if file == '.' or file == '..' or file == 'COPYING'
lang=file.split('.')[0]
site['loc'][lang] = YAML.load_file('_translations/'+file)[lang]
end