Fix JS error on translations.
queryselectorall('something').queryselectorall('something else') fails. ^ This JS error is fixed. Also we don't have specific images for German help page. So we removed the "de" from that language list. Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: I69b56e8f4bd2b92835c4aca9c2284750f3df9455
This commit is contained in:
parent
bde5ee533f
commit
6ecdcf557b
1 changed files with 3 additions and 2 deletions
|
@ -520,10 +520,11 @@ L.Map.include({
|
|||
}
|
||||
|
||||
//translatable screenshots
|
||||
var supportedLanguage = ['fr', 'it', 'de', 'es', 'pt-BR'];
|
||||
var supportedLanguage = ['fr', 'it', 'es', 'pt-BR'];
|
||||
var currentLanguage = String.locale;
|
||||
if (supportedLanguage.indexOf(currentLanguage) >= 0) {
|
||||
translatableContent = $(contentElement.querySelectorAll('.screenshot')).querySelectorAll('img');
|
||||
translatableContent = $(contentElement.querySelectorAll('.screenshot img'));
|
||||
|
||||
for (i = 0, max = translatableContent.length; i < max; i++) {
|
||||
translatableContent[i].src = translatableContent[i].src.replace('/en/', '/'+currentLanguage+'/');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue