LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-13-2006, 07:21 AM   #1
sanjay2k4
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Rep: Reputation: 0
Cool system locale


Hi
Actually i wat find the function for all the locale(Language) loaded in system. in windows GetKeyboardLayoutList does the work. i need similar function .

can any one help me

Thanks & Regards
Sanjay
 
Old 06-13-2006, 09:53 AM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
`locale -a'
 
Old 06-14-2006, 08:23 AM   #3
sanjay2k4
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by osor
`locale -a'
hi
i need the "C" Level Function . not the command
 
Old 06-14-2006, 11:47 AM   #4
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
*Maybe one of the mods could move this to the programming section to get the attention it needs*

Hi sanjay. AFAIK, POSIX leaves the manner in which a locale is made available as implementation-defined. Most linux systems that I know keep locales in /usr/share/locale AND-OR /usr/local/share/locale. The only C-level functions that I know of that deal with locales (not beyond a POSIX level) are setlocale() and localeconv() (both defined in <locale.h>). There is also a <langinfo.h>. The only thing I see that can be done is calling the locale program from within C or searching through /usr/....

Sorry I'm not of much help, but what exactly are you trying to do? Sometimes there's no need to reinvent the wheel (sometimes there is). You can usually use gettext to do language-related stuff.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
locale: Cannot Set LC_ALL to default locale: No such file or directory. asym Linux - General 11 10-24-2018 05:54 PM
How to change the locale by setting the system default locale letdoit Slackware 6 08-18-2011 03:34 AM
locale: Cannot set LC_ALL to default locale: Invalid argument GadgetWiz Mandriva 1 03-31-2006 11:38 PM
"perl: warning: Setting locale failed." System wide problem Darek84CJ Debian 3 01-25-2006 05:22 PM
C locale and system locale johnnydangerous Fedora 4 04-11-2005 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration