}
// Append country when lang is present more than one time in the list
- if (this._langsCount[res] > 1) {
+ if (undefined !== this._langsCount && this._langsCount[res] > 1) {
res += '_' + this.fluidbook.datas.country;
}
return res;
// Format the language name according to the settings
getLanguageName: function (languageCode) {
-
- // Todo: once we have the Fluidbook country/flag avialble (see ticket #2173), we need to use that to build the language code (ie. language_country)
- // Todo: check if languageCode passed in includes underscore and if not, append the country to make the full language ID matched in this.multilang
-
var details = this.multilang[languageCode],
name = '';