Fix the language and country format

BUG = XWALK-2361

Testing that language_info is en_US.utf8, but (LANGUAGE)_(REGION) syntax is required on the spec(https://developer.tizen.org/dev-guide/2.2.0/org.tizen.web.device.apireference/tizen/systeminfo.html#::SystemInfo::SystemInfoLocale), so fix it.
Sorry, looks like my first comment is missing. Will put it back when liying
submit this PR again.
On Nov 21, 2014 3:48 PM, "Halton Huo" <notifications@github.com> wrote:

> In system_info/system_info_locale_tizen.cc:
>
> > @@ -113,6 +116,9 @@ bool SysInfoLocale::GetCountry() {
> >      return false;
> >
> >    country_ = std::string(country_info);
> > +  //country_info may be en_US.utf8
> > +  std::size_t found = country_.find_first_of(".");
> > +  country_ = country_.substr(0, found);
>
> @deqing <https://github.com/deqing> what does ditto point to? I did not
> see your other comment.
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/crosswalk-project/tizen-extensions-crosswalk/pull/400/files#r20698296>
> .
>