Skip to main content
gamedev.net
🔒 Locked

enumerating locales

Started by ugenn Nov 27, 2003 at 11:12 AM 2 replies 400+ views
Original Post
ugenn
ugenn
how can i enumerate all available locales on windows and linux?
Oxyd
Oxyd
Hm... do you mean, that if you''ll have a function with some locale wariables, then you''ll print out the vars? I don''t know if you meant this, but if yes, then it''s impossible (without some hardcore inline assembler code hacking).

Oxyd
ugenn
ugenn
quote:
Original post by Oxyd
Hm... do you mean, that if you''ll have a function with some locale wariables, then you''ll print out the vars? I don''t know if you meant this, but if yes, then it''s impossible (without some hardcore inline assembler code hacking).

Oxyd


nothing to do with asm, or low-lev hacking. Locales as in i18n.
SiCrane
SiCrane
Don''t know about linux, but on Windows 2000 and later, you can use the National Language Support API to determine locales installed on the system. Probably you''re looking for the EnumSystemLanguageGroups() and EnumLanguageGroupLocales() functions.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.