从区域设置确定语言代码 [英] Determination of language codes from a locale
问题描述
您好,
我发现两个类库已经获得了方法getLanguage。
http://www.icu-project.org/apiref/ic...0edae91f75c94f
http:/ /java.sun.com/javase/6/docs/ap ... l #getLanguage()
此方法提供获取ISO 639语言代码的功能来自
语言环境。我正在寻找提供相同服务的C函数。
我知道函数可以查询当前设置但是我没有看到POSIX API中的函数从通常的
命名约定中提取ISO 639代码。这是检索这种函数的推荐方法。信息?
http://opengroup.org/onlinepubs/0096...setlocale.html
问候,
Markus
Markus Elfring写道:
>
我发现两个类库已经获得了方法
" getLanguage"。
http://www.icu-project.org/apiref/ic...0edae91f75c94f
http://java.sun.com/javase/6/docs/ap...l#getLanguage( )
此方法提供的功能从区域设置获取ISO 639语言
代码。我正在寻找一个提供
相同服务的C函数。
我知道函数可以查询当前设置
setlocale。但我没有在POSIX API中看到一个函数来从通常的命名约定中提取ISO 639代码。检索此类信息的推荐方法是什么?
http://opengroup.org/onlinepubs/0096...setlocale.html
这是关于clc的偏离主题试试comp.unix.programmer。 POSIX是
而不是C.
-
[邮箱]:Chuck F(cinefalconer at maineline dot net)
[page]:< http://cbfalconer.home.att.net>
尝试下载部分。
< blockquote>>我找到了两个已经获得方法getLanguage的类库。
> http://www.icu-project.org/apiref/ic...0edae91f75c94f
http://java.sun.com/javase/6/ docs / ap ... l #getLanguage()
这个方法提供了从语言环境中获取ISO 639语言代码的能力。我正在寻找一个C函数提供相同的服务。
我知道当前的设置可以通过函数
setlocale查询。但我没有看到POSIX API中的函数从通常的命名约定中提取ISO 639代码。
检索此类信息的推荐方法是什么?
http://opengroup.org/onlinepubs/0096...setlocale.html
这是关于c.l.c的偏离主题。试试comp.unix.programmer。
POSIX不是C.
请求的功能是否属于标准C库?
我看到使用特定语言信息常量(对于nl_langinfo())
作为获得所需数据的另一个候选者。我发现不清楚一个细节
是否符合ISO标准。
http://opengroup.org/onlinepubs/0096...anginfo.h.html
http://www.gnu.org/software/ libc / man ...- Fast-Way.html
问候,
Markus
>
Markus Elfring写道:
>
>>我找到了两个已经获得方法的类库
" getLanguage"。br /> http://www.icu-project。 org / apiref / ic ... 0edae91f75c94f
http://java.sun.com/javase/6/docs/ap...l#getLanguage( )
方法提供了从语言环境中获取ISO 639语言代码的能力。我正在寻找提供相同服务的C函数。
我知道当前的设置可以通过函数
setlocale来查询。但是我没有看到POSIX API中的函数从通常的命名约定中提取ISO 639代码。
推荐的方法是什么检索这些信息?
http://opengroup.org/onlinepubs/0096...setlocale。 html
这是关于clc的偏离主题试试comp.unix.programmer。
POSIX不是C.
请求的功能是否属于标准C库?
这仍然是c.l.c的主题。另外,请不要发送电子邮件
回复可以在新闻组中处理的事情。 F''ups设定。
-
[邮件]:Chuck F(cinefalconer at maineline dot net)
[页面]:< http://cbfalconer.home.att.net>
尝试下载部分。
Hello,
I have found two class libraries that have got the method "getLanguage".
http://www.icu-project.org/apiref/ic...0edae91f75c94f
http://java.sun.com/javase/6/docs/ap...l#getLanguage()
This method provides the capability to get the ISO 639 language code from a
locale. I am looking for a C function that offers the same service.
I know that a current setting can be queried by the function "setlocale". But I
do not see a function in the POSIX API to extract ISO 639 codes from the usual
naming conventions. Which is the recommended way to retrieve such information?
http://opengroup.org/onlinepubs/0096...setlocale.html
Regards,
Markus
Markus Elfring wrote:>
I have found two class libraries that have got the method
"getLanguage".
http://www.icu-project.org/apiref/ic...0edae91f75c94f
http://java.sun.com/javase/6/docs/ap...l#getLanguage()
This method provides the capability to get the ISO 639 language
code from a locale. I am looking for a C function that offers the
same service.
I know that a current setting can be queried by the function
"setlocale". But I do not see a function in the POSIX API to
extract ISO 639 codes from the usual naming conventions. Which is
the recommended way to retrieve such information?
http://opengroup.org/onlinepubs/0096...setlocale.htmlThis is off-topic on c.l.c. Try comp.unix.programmer. POSIX is
not C.
--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
>I have found two class libraries that have got the method "getLanguage".>http://www.icu-project.org/apiref/ic...0edae91f75c94f
http://java.sun.com/javase/6/docs/ap...l#getLanguage()
This method provides the capability to get the ISO 639 language
code from a locale. I am looking for a C function that offers
the same service.
I know that a current setting can be queried by the function
"setlocale". But I do not see a function in the POSIX API to
extract ISO 639 codes from the usual naming conventions.
Which is the recommended way to retrieve such information?
http://opengroup.org/onlinepubs/0096...setlocale.html
This is off-topic on c.l.c. Try comp.unix.programmer.
POSIX is not C.Can the requested functionality belong to a standard C library?
I see the use of specific language information constants (for "nl_langinfo()")
as another candidate to get the desired data. I find it not clear if a detail
like codeset name adheres to an ISO standard.
http://opengroup.org/onlinepubs/0096...anginfo.h.html
http://www.gnu.org/software/libc/man...-Fast-Way.html
Regards,
Markus
Markus Elfring wrote:>>>I have found two class libraries that have got the method
"getLanguage".
http://www.icu-project.org/apiref/ic...0edae91f75c94f
http://java.sun.com/javase/6/docs/ap...l#getLanguage()
This method provides the capability to get the ISO 639 language
code from a locale. I am looking for a C function that offers
the same service.
I know that a current setting can be queried by the function
"setlocale". But I do not see a function in the POSIX API to
extract ISO 639 codes from the usual naming conventions.
Which is the recommended way to retrieve such information?
http://opengroup.org/onlinepubs/0096...setlocale.html
This is off-topic on c.l.c. Try comp.unix.programmer.
POSIX is not C.
Can the requested functionality belong to a standard C library?This is still off topic for c.l.c. Also, please do not send e-mail
replies to things that can be handled in the newsgroup. F''ups set.
--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
这篇关于从区域设置确定语言代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!