Is there a way to set the LocaleID based on a culture code (i.e. es-ES) in C#? So far I've only found ways to set it this way:
SetProperty(@"International.LocaleID", 0x0c0a, 0);
If not, is there a list of the values for the different culture codes? I've only mange to find a partial list so far. I've found Spanish, French, and German but the Lanugages folder seems to support many more (which my product will in the future as well).
International.LocaleID
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
- Tracker Supp-Stefan
- Site Admin
- Posts: 17906
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: International.LocaleID
Hello TomChandler,
You should be using these Locale IDs:
https://docs.microsoft.com/en-us/opensp ... b0ee3dbc4a
Kind regards,
Stefan
You should be using these Locale IDs:
https://docs.microsoft.com/en-us/opensp ... b0ee3dbc4a
Kind regards,
Stefan
-
- User
- Posts: 21
- Joined: Wed May 02, 2018 6:58 pm
Re: International.LocaleID
Can you clarify the syntax I would need for those? The syntax I've found (and works) looks like this:
SetProperty(@"International.LocaleID", 0x0c0a, 0);
But on that page, it's all based 10 numbers from what I can see. Do I need to convert those to hex?
SetProperty(@"International.LocaleID", 0x0c0a, 0);
But on that page, it's all based 10 numbers from what I can see. Do I need to convert those to hex?
- Tracker Supp-Stefan
- Site Admin
- Posts: 17906
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: International.LocaleID
Hello TomChandler,
As per the Viewer Manual:
https://downloads.pdf-xchange.com/PDFV_AX.pdf
You can use either:
And a lists of the hex values can be found online. I e.g. found this one:
https://ss64.com/locale.html
Kind regards,
Stefan
As per the Viewer Manual:
https://downloads.pdf-xchange.com/PDFV_AX.pdf
You can use either:
Code: Select all
SetProperty("International.LocaleID", DataIn("French(FR)"), 0);
// or:
SetProperty("International.LocaleID", DataIn(0x040C), 0);
https://ss64.com/locale.html
Kind regards,
Stefan
-
- User
- Posts: 21
- Joined: Wed May 02, 2018 6:58 pm
Re: International.LocaleID
Perfect, thank you.
- Tracker Supp-Stefan
- Site Admin
- Posts: 17906
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact: