mirror of
https://github.com/monero-project/monero-site.git
synced 2024-12-23 03:59:26 +00:00
moneropedia.rb: If an entry is not present in LANG.yml, use English one
This commit is contained in:
parent
ce5cc96aa4
commit
82726e9fd2
1 changed files with 3 additions and 0 deletions
|
@ -65,6 +65,9 @@ module Jekyll
|
|||
if !entry.empty?
|
||||
baseName = File.basename(entry_file, ".*")
|
||||
displayName = @@localConfig[lang]["moneropedia"]["entries"][baseName]
|
||||
if displayName == nil
|
||||
displayName = @@localConfig["en"]["moneropedia"]["entries"][baseName]
|
||||
end
|
||||
@@moneropedia[lang].push({ :terms => entry['terms'], :summary => entry['summary'], :file => baseName })
|
||||
@@moneropedia_ordered[lang] = @@moneropedia_ordered[lang].merge({ displayName => baseName })
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue