don't link for a single language

This commit is contained in:
Gambhiro 2017-01-14 09:01:24 +00:00
parent ae09aabeb5
commit 35890db697
1 changed files with 4 additions and 0 deletions

View File

@ -371,6 +371,10 @@ impl MDBook {
}
pub fn link_translations(&mut self) -> &mut MDBook {
if self.translations.keys().count() == 1 {
return self;
}
for (key, book) in self.translations.clone() {
let mut newbook: Book = book.clone();