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)
|