Skip to content

Commit

Permalink
Move local name row up
Browse files Browse the repository at this point in the history
  • Loading branch information
r12a committed Jun 8, 2019
1 parent 2c6fcc7 commit 92046b4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,9 @@
}
if (warning) out += '<br/><span class="udhrWarning">The sole source for this language is the translation of the Universal Declaration of Human Rights. That text may not contain all characters needed for this language.</span>'
out += '</td></td><td class="links"></tr>'

// local name
if (langs[lang].local) out += '<tr><th>Local name</th><td style="font-size:90%">'+langs[lang].local+'</td></td><td class="links"></td></tr>'

// region
switch (langs[lang].region) {
Expand All @@ -357,16 +360,15 @@
case 'carib': region = 'Caribbean';break
}
out += '<tr><th>Region</th><td>'+region+'</td></td><td class="links"></td></tr>'

// speakers
if (langs[lang].speakers === '?') var speakers = 'Not known'
else {
speakers = langs[lang].speakers.replace(/~/,'')
speakers = parseInt(speakers).toLocaleString('en')
}
//speakers = speakers.replace(/\?/,'0')
out += '<tr><th>Native speakers</th><td>'+speakers+'</td></tr>'

// local name
if (langs[lang].local) out += '<tr><th>Local name</th><td style="font-size:90%">'+langs[lang].local+'</td></td><td class="links"></td></tr>'

// notes
if (langs[lang].notes) out += '<tr><th>Notes</th><td style="font-size:90%">'+langs[lang].notes+'</td></td><td class="links"></td></tr>'
Expand Down

0 comments on commit 92046b4

Please sign in to comment.