src/editor/EditorStatusBar.js
function _populateLanguageDropdown() {
        // Get all non-binary languages
        var languages = _.values(LanguageManager.getLanguages()).filter(function (language) {
            return !language.isBinary();
        });

        // sort dropdown alphabetically
        languages.sort(function (a, b) {
            return a.getName().toLowerCase().localeCompare(b.getName().toLowerCase());
        });

        languageSelect.items = languages;

        // Add option to top of menu for persisting the override
        languageSelect.items.unshift("---");
        languageSelect.items.unshift(LANGUAGE_SET_AS_DEFAULT);
    }
function _populateLanguageDropdown() {
        // Get all non-binary languages
        var languages = _.values(LanguageManager.getLanguages()).filter(function (language) {
            return !language.isBinary();
        });

        // sort dropdown alphabetically
        languages.sort(function (a, b) {
            return a.getName().toLowerCase().localeCompare(b.getName().toLowerCase());
        });

        languageSelect.items = languages;

        // Add option to top of menu for persisting the override
        languageSelect.items.unshift("---");
        languageSelect.items.unshift(LANGUAGE_SET_AS_DEFAULT);
    }
function _populateLanguageDropdown ( ) { // Get all non-binary languages var languages = _ . values ( LanguageManager . getLanguages ( ) ) . filter ( function ( language ) { return ! language . isBinary ( ) ; } ) ; // sort dropdown alphabetically languages . sort ( function ( a , b ) { return a . getName ( ) . toLowerCase ( ) . localeCompare ( b . getName ( ) . toLowerCase ( ) ) ; } ) ; languageSelect . items = languages ; // Add option to top of menu for persisting the override languageSelect . items . unshift ( "---" ) ; languageSelect . items . unshift ( LANGUAGE_SET_AS_DEFAULT ) ; }
Populate the languageSelect DropdownButton's menu with all registered Languages
Populate the languageSelect DropdownButton s menu with all registered Languages