bundles/org.eclipse.orion.client.ui/web/plugins/samples/largeFileSearch/i18n.js
function addPart(locale, master, needed, toLoad, prefix, suffix) {
        if (master[locale]) {
            needed.push(locale);
            if (master[locale] === true || master[locale] === 1) {
                toLoad.push(prefix + locale + '/' + suffix);
            }
        }
    }
function addPart(locale, master, needed, toLoad, prefix, suffix) {
        if (master[locale]) {
            needed.push(locale);
            if (master[locale] === true || master[locale] === 1) {
                toLoad.push(prefix + locale + '/' + suffix);
            }
        }
    }
function addPart ( locale , master , needed , toLoad , prefix , suffix ) { if ( master [ locale ] ) { needed . push ( locale ) ; if ( master [ locale ] === true || master [ locale ] === 1 ) { toLoad . push ( prefix + locale + '/' + suffix ) ; } } }
Helper function to avoid repeating code. Lots of arguments in the desire to stay functional and support RequireJS contexts without having to know about the RequireJS contexts.
Helper function to avoid repeating code . Lots of arguments in the desire to stay functional and support RequireJS contexts without having to know about the RequireJS contexts .