Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Initial Language Spanish (Mexico) not detected

Initial Language Spanish (Mexico) not detected 3 months 3 weeks ago #2874

  • enghoff
  • enghoff's Avatar
  • Offline
  • Junior Member
  • Posts: 20
  • Thank you received: 1
  • Karma: 1
We are localising Spanish (es) and Mexican Spanish (es-MX) as independent language variants, however, I2 consistently detects only the base "es" variant when it is initially attempting to pick up the language from the OS/Android, even when the system language is definitively set to Mexican Spanish.

Is this a known issue? - are any solutions known?

With thanks,
Sigurd
The administrator has disabled public write access.

Initial Language Spanish (Mexico) not detected 3 months 3 weeks ago #2875

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 1096
  • Thank you received: 231
  • Karma: 68
Are you in the latest version of I2 Localization (v2.8.4f1)?

Previous releases where using the unity systemLanguage which doesn't report variants. In v2.8.4 I added support for getting the variant on Android devices.
If you are not getting the correct behavior in the latest release, please let me know and I will add a fix asap.

Hope that helps,
Frank
Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out
The administrator has disabled public write access.

Initial Language Spanish (Mexico) not detected 3 months 3 weeks ago #2876

  • enghoff
  • enghoff's Avatar
  • Offline
  • Junior Member
  • Posts: 20
  • Thank you received: 1
  • Karma: 1
Thanks for your quick response.

I can confirm that we are running I2 Loc version 2.8.4 f1, it would be incredibly helpful if you were able to provide functionality for regional detection for Android and iOS within the next few days ;)
The administrator has disabled public write access.

Initial Language Spanish (Mexico) not detected 3 months 3 weeks ago #2877

  • enghoff
  • enghoff's Avatar
  • Offline
  • Junior Member
  • Posts: 20
  • Thank you received: 1
  • Karma: 1
Just been looking a bit more closely at your DetectDeviceLanguage code.

A couple of points specifically relating to Espanol Americas (Latin Spanish):
  • * Setting the device language to Espanol Americas yields a language code es_US, which is not defined in I2 (we been using es_MX in I2)
  • * The GoogleLanguages.GetLanguageName(mCurrentDeviceLanguage, true, true) call returns "Spanish" for es_US, which renders the exercise of incorporating the region somewhat futile
Last Edit: 3 months 3 weeks ago by enghoff.
The administrator has disabled public write access.

Initial Language Spanish (Mexico) not detected 3 months 2 weeks ago #2886

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 1096
  • Thank you received: 231
  • Karma: 68
Hi,
es-US and es-MX is not the same thing.

es-US is quite weird and is sometime added to the ISO and some times is skipped. Given that its not a region itself, but a group of regions.
For instance: msdn.microsoft.com/en-us/library/ee825488(v=cs.20).aspx

But to avoid having issue in those devices that do define that, I think the best its to just add the code to I2 Localization.
It is included now in v2.8.5a2.

If you download the beta, just change your language code to es-US and that will be selected correctly when in "Espanol Americas (Latin Spanish)"

Hope that helps,
Frank
Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out
The administrator has disabled public write access.

Initial Language Spanish (Mexico) not detected 3 months 2 weeks ago #2892

  • enghoff
  • enghoff's Avatar
  • Offline
  • Junior Member
  • Posts: 20
  • Thank you received: 1
  • Karma: 1
Thanks again for your swift and competent response as well as the update to the component.

Just fyi, we are facing the same issue with Brazilian Portuguese (pt_BR), which reverts to the main Portuguese variant when detection is attempted.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.191 seconds
Colors