Make the spellcheck-context-menu generation code more robust/future-proof (fil and fil-PH will match each other).  Currently, en-AU, de-CH, fr-CA do not match any spellcheck language. With this change, they will match en-US, de-DE, fr-FR, respectively unless  there's an exact (more specific) match. Matching en-{AU,NZ,ZA} with en-US is not ideal.
Make the spellcheck-context-menu generation code more robust/future-proof (fil and fil-PH will match each other). 
Currently, en-AU, de-CH, fr-CA do not match any spellcheck language. With
this change, they will match en-US, de-DE, fr-FR, respectively unless 
there's an exact (more specific) match. Matching en-{AU,NZ,ZA} with en-US
is not ideal.

BUG=5251
TEST=Add 'fr-CA' (but NOT fr or fr-FR) to the accept-language list and see if 'fr-FR' comes up
in the list of spell-check languages in the context menu of a textarea. Add 'de' (but not de-DE) to a-l list and see if 'de-DE' comes up in the list of spell-check languages in the context menu. 


Review URL: http://codereview.chromium.org/13262

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@6562 0039d316-1c4b-4281-b951-d872f2087c98

M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,littlstar/chromium.src,hujiajie/pa-chromium,dednal/chromium.src,bright-sparks/chromium-spacewalk,krieger-od/nwjs_chromium.src,TheTypoMaster/chromium-crosswalk,krieger-od/nwjs_chromium.src,robclark/chromium,axinging/chromium-crosswalk,rogerwang/chromium,mogoweb/chromium-crosswalk,M4sse/chromium.src,mohamed--abdel-maksoud/chromium.src,zcbenz/cefode-chromium,junmin-zhu/chromium-rivertrail,dednal/chromium.src,krieger-od/nwjs_chromium.src,mogoweb/chromium-crosswalk,keishi/chromium,Fireblend/chromium-crosswalk,Just-D/chromium-1,krieger-od/nwjs_chromium.src,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,mogoweb/chromium-crosswalk,littlstar/chromium.src,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,patrickm/chromium.src,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,M4sse/chromium.src,timopulkkinen/BubbleFish,ondra-novak/chromium.src,keishi/chromium,hgl888/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,anirudhSK/chromium,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,patrickm/chromium.src,ondra-novak/chromium.src,dednal/chromium.src,axinging/chromium-crosswalk,zcbenz/cefode-chromium,keishi/chromium,fujunwei/chromium-crosswalk,Jonekee/chromium.src,ltilve/chromium,nacl-webkit/chrome_deps,mohamed--abdel-maksoud/chromium.src,M4sse/chromium.src,anirudhSK/chromium,nacl-webkit/chrome_deps,robclark/chromium,mogoweb/chromium-crosswalk,dednal/chromium.src,PeterWangIntel/chromium-crosswalk,Jonekee/chromium.src,jaruba/chromium.src,fujunwei/chromium-crosswalk,axinging/chromium-crosswalk,ondra-novak/chromium.src,crosswalk-project/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,Pluto-tv/chromium-crosswalk,patrickm/chromium.src,dednal/chromium.src,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk,nacl-webkit/chrome_deps,anirudhSK/chromium,patrickm/chromium.src,Just-D/chromium-1,crosswalk-project/chromium-crosswalk-efl,littlstar/chromium.src,crosswalk-project/chromium-crosswalk-efl,axinging/chromium-crosswalk,chuan9/chromium-crosswalk,Just-D/chromium-1,Chilledheart/chromium,rogerwang/chromium,zcbenz/cefode-chromium,patrickm/chromium.src,hgl888/chromium-crosswalk-efl,crosswalk-project/chromium-crosswalk-efl,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,fujunwei/chromium-crosswalk,dednal/chromium.src,robclark/chromium,anirudhSK/chromium,markYoungH/chromium.src,pozdnyakov/chromium-crosswalk,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk,chuan9/chromium-crosswalk,fujunwei/chromium-crosswalk,dushu1203/chromium.src,PeterWangIntel/chromium-crosswalk,ltilve/chromium,ChromiumWebApps/chromium,TheTypoMaster/chromium-crosswalk,Jonekee/chromium.src,dushu1203/chromium.src,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,jaruba/chromium.src,hgl888/chromium-crosswalk-efl,patrickm/chromium.src,markYoungH/chromium.src,timopulkkinen/BubbleFish,fujunwei/chromium-crosswalk,Fireblend/chromium-crosswalk,markYoungH/chromium.src,bright-sparks/chromium-spacewalk,Fireblend/chromium-crosswalk,Chilledheart/chromium,M4sse/chromium.src,ltilve/chromium,junmin-zhu/chromium-rivertrail,Jonekee/chromium.src,mohamed--abdel-maksoud/chromium.src,zcbenz/cefode-chromium,rogerwang/chromium,zcbenz/cefode-chromium,Just-D/chromium-1,rogerwang/chromium,Pluto-tv/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,pozdnyakov/chromium-crosswalk,krieger-od/nwjs_chromium.src,timopulkkinen/BubbleFish,mohamed--abdel-maksoud/chromium.src,nacl-webkit/chrome_deps,timopulkkinen/BubbleFish,Jonekee/chromium.src,zcbenz/cefode-chromium,mohamed--abdel-maksoud/chromium.src,ChromiumWebApps/chromium,Fireblend/chromium-crosswalk,patrickm/chromium.src,keishi/chromium,Jonekee/chromium.src,Just-D/chromium-1,keishi/chromium,hgl888/chromium-crosswalk,ltilve/chromium,Chilledheart/chromium,keishi/chromium,nacl-webkit/chrome_deps,junmin-zhu/chromium-rivertrail,jaruba/chromium.src,hujiajie/pa-chromium,dushu1203/chromium.src,ChromiumWebApps/chromium,TheTypoMaster/chromium-crosswalk,hujiajie/pa-chromium,rogerwang/chromium,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk-efl,robclark/chromium,Pluto-tv/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,dednal/chromium.src,nacl-webkit/chrome_deps,keishi/chromium,ondra-novak/chromium.src,hujiajie/pa-chromium,ltilve/chromium,Jonekee/chromium.src,hujiajie/pa-chromium,axinging/chromium-crosswalk,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,M4sse/chromium.src,timopulkkinen/BubbleFish,zcbenz/cefode-chromium,robclark/chromium,anirudhSK/chromium,keishi/chromium,chuan9/chromium-crosswalk,chuan9/chromium-crosswalk,hujiajie/pa-chromium,timopulkkinen/BubbleFish,robclark/chromium,patrickm/chromium.src,timopulkkinen/BubbleFish,PeterWangIntel/chromium-crosswalk,Just-D/chromium-1,nacl-webkit/chrome_deps,fujunwei/chromium-crosswalk,dushu1203/chromium.src,hgl888/chromium-crosswalk,Pluto-tv/chromium-crosswalk,markYoungH/chromium.src,ltilve/chromium,markYoungH/chromium.src,timopulkkinen/BubbleFish,robclark/chromium,junmin-zhu/chromium-rivertrail,dushu1203/chromium.src,nacl-webkit/chrome_deps,littlstar/chromium.src,ondra-novak/chromium.src,Jonekee/chromium.src,fujunwei/chromium-crosswalk,M4sse/chromium.src,junmin-zhu/chromium-rivertrail,junmin-zhu/chromium-rivertrail,junmin-zhu/chromium-rivertrail,PeterWangIntel/chromium-crosswalk,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,PeterWangIntel/chromium-crosswalk,anirudhSK/chromium,Just-D/chromium-1,junmin-zhu/chromium-rivertrail,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,bright-sparks/chromium-spacewalk,dednal/chromium.src,hgl888/chromium-crosswalk,zcbenz/cefode-chromium,mogoweb/chromium-crosswalk,Chilledheart/chromium,mogoweb/chromium-crosswalk,dushu1203/chromium.src,Fireblend/chromium-crosswalk,jaruba/chromium.src,littlstar/chromium.src,hgl888/chromium-crosswalk,Fireblend/chromium-crosswalk,jaruba/chromium.src,bright-sparks/chromium-spacewalk,patrickm/chromium.src,Pluto-tv/chromium-crosswalk,dednal/chromium.src,ondra-novak/chromium.src,Fireblend/chromium-crosswalk,ChromiumWebApps/chromium,dednal/chromium.src,dushu1203/chromium.src,nacl-webkit/chrome_deps,Just-D/chromium-1,Pluto-tv/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk,keishi/chromium,TheTypoMaster/chromium-crosswalk,bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk,pozdnyakov/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,anirudhSK/chromium,hujiajie/pa-chromium,anirudhSK/chromium,jaruba/chromium.src,mohamed--abdel-maksoud/chromium.src,M4sse/chromium.src,anirudhSK/chromium,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,markYoungH/chromium.src,bright-sparks/chromium-spacewalk,jaruba/chromium.src,markYoungH/chromium.src,ondra-novak/chromium.src,timopulkkinen/BubbleFish,keishi/chromium,axinging/chromium-crosswalk,bright-sparks/chromium-spacewalk,littlstar/chromium.src,dednal/chromium.src,markYoungH/chromium.src,Fireblend/chromium-crosswalk,Fireblend/chromium-crosswalk,bright-sparks/chromium-spacewalk,pozdnyakov/chromium-crosswalk,jaruba/chromium.src,M4sse/chromium.src,Chilledheart/chromium,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Jonekee/chromium.src,markYoungH/chromium.src,rogerwang/chromium,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk-efl,Chilledheart/chromium,keishi/chromium,anirudhSK/chromium,littlstar/chromium.src,jaruba/chromium.src,junmin-zhu/chromium-rivertrail,krieger-od/nwjs_chromium.src,zcbenz/cefode-chromium,markYoungH/chromium.src,axinging/chromium-crosswalk,ChromiumWebApps/chromium,anirudhSK/chromium,hujiajie/pa-chromium,Just-D/chromium-1,crosswalk-project/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,Pluto-tv/chromium-crosswalk,axinging/chromium-crosswalk,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,Chilledheart/chromium,markYoungH/chromium.src,ltilve/chromium,mohamed--abdel-maksoud/chromium.src,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,jaruba/chromium.src,rogerwang/chromium,jaruba/chromium.src,nacl-webkit/chrome_deps,rogerwang/chromium,M4sse/chromium.src,ChromiumWebApps/chromium,hujiajie/pa-chromium,hujiajie/pa-chromium,hgl888/chromium-crosswalk-efl,nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,zcbenz/cefode-chromium,zcbenz/cefode-chromium,Chilledheart/chromium,rogerwang/chromium,robclark/chromium,dushu1203/chromium.src,ltilve/chromium,littlstar/chromium.src,ondra-novak/chromium.src,krieger-od/nwjs_chromium.src,ltilve/chromium,ChromiumWebApps/chromium,Chilledheart/chromium,ChromiumWebApps/chromium,crosswalk-project/chromium-crosswalk-efl,dushu1203/chromium.src,mogoweb/chromium-crosswalk,Pluto-tv/chromium-crosswalk,robclark/chromium,fujunwei/chromium-crosswalk,chuan9/chromium-crosswalk,chuan9/chromium-crosswalk,axinging/chromium-crosswalk,timopulkkinen/BubbleFish,mogoweb/chromium-crosswalk,hujiajie/pa-chromium,TheTypoMaster/chromium-crosswalk,axinging/chromium-crosswalk,M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,robclark/chromium,pozdnyakov/chromium-crosswalk,Jonekee/chromium.src,anirudhSK/chromium,krieger-od/nwjs_chromium.src,Jonekee/chromium.src,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl