由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - how to get client locale inside the running application?
相关主题
Spring + Jersey 的 REST API, servlet context 能看到 Spring 的 root application context 里的bean吗?Java搞图像分析还是不成气候啊
有谁懂 php 的?问个问题(有包子)Vert.x 应该没戏了吧?
goodbug,jsp里,用angularjs的多吗?求教, python 对于很奇怪的字符的encoding 怎么处理?
xml transcoding with xerces?用react的试过中文么?
html 5 or angular storageencode high cardinality categorical features
关于在c++ member function里用signal( )help on GAMS! thx!!
怎么把 integer 转为 multi-byte integer format?HTML print an image
大家来看看这个纯Javascript实现的QR二维码生成器大家在linux下面用什么C++的IDE呢?
相关话题的讨论汇总
话题: locale话题: api话题: xentar话题: plugin话题: inside
进入Programming版参与讨论
1 (共1页)
c*******9
发帖数: 6411
1
Inside Acrobat Plugin ( in c code), can I get the client locale? I can not
find Acrobat Plugin API to do this.
Any windows API and MAC API (the plugin run in both platform) I can use to
retrieve locale?
Thanks
X****r
发帖数: 3557
2
ASHostEncoding AVAppGetLanguageEncoding (void)
Returns the ASHostEncoding corresponding to Acrobat's current locale
setting.
void* PDGetHostEncoding (void)
Indicates what kind of host encoding a system uses.

not
to

【在 c*******9 的大作中提到】
: Inside Acrobat Plugin ( in c code), can I get the client locale? I can not
: find Acrobat Plugin API to do this.
: Any windows API and MAC API (the plugin run in both platform) I can use to
: retrieve locale?
: Thanks

c*******9
发帖数: 6411
3
Thank you!

not
to

【在 c*******9 的大作中提到】
: Inside Acrobat Plugin ( in c code), can I get the client locale? I can not
: find Acrobat Plugin API to do this.
: Any windows API and MAC API (the plugin run in both platform) I can use to
: retrieve locale?
: Thanks

c*******9
发帖数: 6411
4
Hi Xentar,
Looks like
ASHostEncoding hostEncoding = AVAppGetLanguageEncoding ();
I am getting back an integer, where can I find the mapping between the
int value and the local (like en_us ...).
Thanks ...

not
use to
;

【在 c*******9 的大作中提到】
: Inside Acrobat Plugin ( in c code), can I get the client locale? I can not
: find Acrobat Plugin API to do this.
: Any windows API and MAC API (the plugin run in both platform) I can use to
: retrieve locale?
: Thanks

X****r
发帖数: 3557
5
Oh I misunderstood you. That function will get you the code page (encoding).
To get the language name, use
ASBool AVAppGetLanguageWithParams (AVAppLanguageParams params)

【在 c*******9 的大作中提到】
: Hi Xentar,
: Looks like
: ASHostEncoding hostEncoding = AVAppGetLanguageEncoding ();
: I am getting back an integer, where can I find the mapping between the
: int value and the local (like en_us ...).
: Thanks ...
:
: not
: use to
: ;

c*******9
发帖数: 6411
6
Thanks Xentar
I try this out:
AVAppLauguageParams langParams;
ASBool abool = AVAppGetLanguageWithParams( langParams );
somehow, abool is 0 and langParams does not get set new value, still the
initial value...
Any ideas?

(encoding).

【在 X****r 的大作中提到】
: Oh I misunderstood you. That function will get you the code page (encoding).
: To get the language name, use
: ASBool AVAppGetLanguageWithParams (AVAppLanguageParams params)

X****r
发帖数: 3557
7
AVAppLauguageParams这个结构要预先填好一部分数据的啊,你得告诉它你
需要什么格式的语言名字。你没有文档的吗?要不然你用这个函数:
void AVAppGetLanguage(char* buffer)

【在 c*******9 的大作中提到】
: Thanks Xentar
: I try this out:
: AVAppLauguageParams langParams;
: ASBool abool = AVAppGetLanguageWithParams( langParams );
: somehow, abool is 0 and langParams does not get set new value, still the
: initial value...
: Any ideas?
:
: (encoding).

c*******9
发帖数: 6411
8
Xentar, thank you for the help!

【在 X****r 的大作中提到】
: AVAppLauguageParams这个结构要预先填好一部分数据的啊,你得告诉它你
: 需要什么格式的语言名字。你没有文档的吗?要不然你用这个函数:
: void AVAppGetLanguage(char* buffer)

1 (共1页)
进入Programming版参与讨论
相关主题
大家在linux下面用什么C++的IDE呢?html 5 or angular storage
[合集] &x[1]和x+1是一回事吧?不管c还是c++?关于在c++ member function里用signal( )
准备面试一个java-based position,有什么书推荐一下?怎么把 integer 转为 multi-byte integer format?
一道c++的考古题大家来看看这个纯Javascript实现的QR二维码生成器
Spring + Jersey 的 REST API, servlet context 能看到 Spring 的 root application context 里的bean吗?Java搞图像分析还是不成气候啊
有谁懂 php 的?问个问题(有包子)Vert.x 应该没戏了吧?
goodbug,jsp里,用angularjs的多吗?求教, python 对于很奇怪的字符的encoding 怎么处理?
xml transcoding with xerces?用react的试过中文么?
相关话题的讨论汇总
话题: locale话题: api话题: xentar话题: plugin话题: inside