function _getVersionInfoUrl(locale, removeCountryPartOfLocale) {

        locale = locale || brackets.getLocale();

        if (removeCountryPartOfLocale) {
            locale = locale.substring(0, 2);
        }

        //AUTOUPDATE_PRERELEASE_BEGIN
        // The following code is needed for supporting Auto Update in prerelease,
        //and will be removed eventually for stable releases
        {
            if (locale) {
                if(locale.length > 2) {
                    locale = locale.substring(0, 2);
                }
                switch(locale)  {
                case "de":
                    break;
                case "es":
                    break;
                case "fr":
                    break;
                case "ja":
                    break;
                case "en":
                default:
                    locale = "en";
                }
                return brackets.config.update_info_url.replace("<locale>", locale);
            }
        }
        //AUTOUPDATE_PRERELEASE_END

        return brackets.config.update_info_url + '?locale=' + locale;
    }
function _getVersionInfoUrl(locale, removeCountryPartOfLocale) {

        locale = locale || brackets.getLocale();

        if (removeCountryPartOfLocale) {
            locale = locale.substring(0, 2);
        }

        //AUTOUPDATE_PRERELEASE_BEGIN
        // The following code is needed for supporting Auto Update in prerelease,
        //and will be removed eventually for stable releases
        {
            if (locale) {
                if(locale.length > 2) {
                    locale = locale.substring(0, 2);
                }
                switch(locale)  {
                case "de":
                    break;
                case "es":
                    break;
                case "fr":
                    break;
                case "ja":
                    break;
                case "en":
                default:
                    locale = "en";
                }
                return brackets.config.update_info_url.replace("<locale>", locale);
            }
        }
        //AUTOUPDATE_PRERELEASE_END

        return brackets.config.update_info_url + '?locale=' + locale;
    }
function _getVersionInfoUrl ( locale , removeCountryPartOfLocale ) { locale = locale || brackets . getLocale ( ) ; if ( removeCountryPartOfLocale ) { locale = locale . substring ( 0 , 2 ) ; } //AUTOUPDATE_PRERELEASE_BEGIN // The following code is needed for supporting Auto Update in prerelease, //and will be removed eventually for stable releases { if ( locale ) { if ( locale . length > 2 ) { locale = locale . substring ( 0 , 2 ) ; } switch ( locale ) { case "de" : break ; case "es" : break ; case "fr" : break ; case "ja" : break ; case "en" : default : locale = "en" ; } return brackets . config . update_info_url . replace ( "<locale>" , locale ) ; } } //AUTOUPDATE_PRERELEASE_END return brackets . config . update_info_url + '?locale=' + locale ; }
Construct a new version update url with the given locale.

@param {string=} locale - optional locale, defaults to 'brackets.getLocale()' when omitted.
@param {boolean=} removeCountryPartOfLocale - optional, remove existing country information from locale 'en-gb' => 'en'
return {string} the new version update url
Construct a new version update url with the given locale .
Get the version info url