summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/book.js6
-rw-r--r--lib/configuration.js2
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/book.js b/lib/book.js
index 7881a8d..b481818 100644
--- a/lib/book.js
+++ b/lib/book.js
@@ -91,6 +91,8 @@ Book.prototype.parse = function() {
var that = this;
var multilingal = false;
+
+ that.logDebug("start parsing configuration");
return this.config.load()
.then(function() {
@@ -101,15 +103,17 @@ Book.prototype.parse = function() {
return that.parseLangs()
.then(function() {
multilingal = that.langs.length > 0;
+ if (multilingual) that.logInfo("Parsing multilingual book, with", that.langs.length, "lanuages");
// Sub-books that inherit from the current book configuration
that.books = _.map(that.langs, function(lang) {
+ that.logInfo("Preparing language book", lang.lang);
return new Book(
path.join(that.root, lang.path),
_.merge({}, that.context, {
config: _.extend({}, that.options, {
'output': path.join(that.options.output, lang.path),
- 'lang': lang.lang
+ 'language': lang.lang
})
}),
that
diff --git a/lib/configuration.js b/lib/configuration.js
index 10184c9..4c441f0 100644
--- a/lib/configuration.js
+++ b/lib/configuration.js
@@ -149,7 +149,7 @@ Configuration.DEFAULT = {
"title": null,
"description": null,
"isbn": null,
- "lang": "en",
+ "language": "en",
// Structure
"structure": {