Skip to content

Commit 7cb659b

Browse files
Lang: Remove Norwegian Bokmal nb (#384)
As the translation level is below 80%
1 parent a9d35b8 commit 7cb659b

File tree

4 files changed

+4
-219
lines changed

4 files changed

+4
-219
lines changed

editor.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,9 @@ <h2><i class="fa fa-cogs"></i> <strong>{{ title }}</strong></h2>
352352
<li><span title="Spanish"><a lang="es" href="#" class="action lang-choice" id="es" tabindex="127">Español</a></span></li>
353353
<li><span title="French"><a lang="fr" href="#" class="action lang-choice" id="fr" tabindex="128">Français</a></span></li>
354354
<li><span title="Korean"><a lang="ko" href="#" class="action lang-choice" id="ko" tabindex="129">한국어</a></span></li>
355-
<li><span title="Norwegian Bokmal"><a lang="nb" href="#" class="action lang-choice" id="nb" tabindex="130">Norsk Bokmal</a></span></li>
356-
<li><span title="Norwegian Nynorsk"><a lang="nn" href="#" class="action lang-choice" id="nn" tabindex="131">Norsk Nynorsk</a></span></li>
357-
<li><span title="Portuguese"><a lang="pt" href="#" class="action lang-choice" id="pt" tabindex="132">Português</a></span></li>
358-
<li><span title="Serbian"><a lang="sr" href="#" class="action lang-choice" id="sr" tabindex="133">Српски</a></span></li>
355+
<li><span title="Norwegian Nynorsk"><a lang="nn" href="#" class="action lang-choice" id="nn" tabindex="130">Norsk Nynorsk</a></span></li>
356+
<li><span title="Portuguese"><a lang="pt" href="#" class="action lang-choice" id="pt" tabindex="131">Português</a></span></li>
357+
<li><span title="Serbian"><a lang="sr" href="#" class="action lang-choice" id="sr" tabindex="132">Српски</a></span></li>
359358
</ul>
360359
<div><a id="add-language-link" class="action" title="Add a language translation to the Editor" href="https://support.microbit.org/support/solutions/articles/19000106022-translating-the-micro-bit-python-editor" target="_blank" tabindex="134">Add a language</a></div>
361360
</div>

js/python-main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ function translations(baseLanguage) {
269269
'use strict';
270270
// These values must be valid language codes
271271
// https://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
272-
var validLangs = ['en', 'es', 'fr', 'hr', 'ko', 'nb', 'nn', 'pl', 'pt', 'sr', 'zh-HK', 'zh-CN', 'zh-TW'];
272+
var validLangs = ['en', 'es', 'fr', 'hr', 'ko', 'nn', 'pl', 'pt', 'sr', 'zh-HK', 'zh-CN', 'zh-TW'];
273273

274274
// This is the base language that will be extended with the translations.
275275
// It is assumed this translation object (likely 'en') contains all the

lang/en.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,6 @@ var LANGUAGE = {
143143
'ko': {
144144
'title': 'Korean'
145145
},
146-
'nb': {
147-
'title': 'Norwegian Bokmal'
148-
},
149146
'nn': {
150147
'title': 'Norwegian Nynorsk'
151148
},

lang/nb.js

Lines changed: 0 additions & 211 deletions
This file was deleted.

0 commit comments

Comments
 (0)