MediaWiki:DonationFormSandbox.js: Difference between revisions
Content deleted Content added
No edit summary |
drop anything after '-' in language |
||
Line 29:
language = 'en';
}
// MediaWiki allows
// We don't want these for a javascript locale, so drop anything after '-'
language = language.split('-')[0];
return language + '-' + country;
};
|