SamCash
asked on
ASP.NET, Globalization, language indexes, translation, conversion.
Experts,
What to use for the language parameter. We have a sql db and a Language Translation table, with each of the UI text or message strings translated into three languages (more to come).
Currently they are filtered with an "LCID" like "1033" for "en-US", "1036" for "fr-FR " and "2058" for "es-MX". However, none of the tested browsers return LCID. Chrome only returns a two char string, (fr and es), where FireFox does 2 and 4, fr and fr-FR, es and es-MX. So the int LCID 1033..., seems like a bad choice. I can change the 4 character ones to LCID but not the 2 character ones, es = 10, fr = 12. 10 and 12 do not show up in the LCID table here. I need this to work with CultureInfo for date and time and number formatting. This issue must have been solved already but I have not been able to find it.
Kind Regards
Sam
What to use for the language parameter. We have a sql db and a Language Translation table, with each of the UI text or message strings translated into three languages (more to come).
Currently they are filtered with an "LCID" like "1033" for "en-US", "1036" for "fr-FR " and "2058" for "es-MX". However, none of the tested browsers return LCID. Chrome only returns a two char string, (fr and es), where FireFox does 2 and 4, fr and fr-FR, es and es-MX. So the int LCID 1033..., seems like a bad choice. I can change the 4 character ones to LCID but not the 2 character ones, es = 10, fr = 12. 10 and 12 do not show up in the LCID table here. I need this to work with CultureInfo for date and time and number formatting. This issue must have been solved already but I have not been able to find it.
Kind Regards
Sam
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you very much.
Kind Regards
Sam