Wrong identificator of language

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

cew
User
Posts: 213
Joined: Tue Feb 01, 2011 8:14 am

Wrong identificator of language

Post by cew »

Hi all,

how can I switch between different UI languages?
I tried to get experiences using the SDK FullDemo c# project.
I copied the "Languages" directory, containing the PDFXVW_XXX.xml files, to different locations, but i always get the message "Wrong identificator of language".
The right place seems to be the output dirctory of the project, right?

I copied the "Languages" from an actual PDFXchange-Viewer installation because i couldn't find any language files in the SDK. Is that right?

Please help!

Best regards
cew
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Wrong identificator of language

Post by Stefan - PDF-XChange »

Hello Cew,

Yes copying them from an end user installation is the corect way to get the most up to date language versions.
The language files should be in a subfolder named "Languages" in the same folder where the other Viewer files are.

And make sure you are using the correct locale ID's for the languages you need (e.g. 0x0409 for English)
Here you can match a locale ID with the language you need.

Best,
Stefan
cew
User
Posts: 213
Joined: Tue Feb 01, 2011 8:14 am

Re: Wrong identificator of language

Post by cew »

the error occures in the full demo example.

in the screen shot you can see that I copied the Languages directory to where the exe will be build.
But the error still occures.
I debugged the code in Form1.cs:

Code: Select all

  private void cob_Language_SelectedIndexChanged(object sender, EventArgs e)
        {
            string str;
            object vDataIn;
            str = "International.LocaleID";
            vDataIn = aLangValue[cob_Language.SelectedIndex];
            try
            {
                axCoPDFXCview1.SetProperty(str, vDataIn, 0);
            }
            catch (Exception ex)
            {
                ShowErrorMessage(System.Runtime.InteropServices.Marshal.GetHRForException(ex));
            }
        }
vDataIn has the right value (language code) received from your dropdown.

What's wrong?
You do not have the required permissions to view the files attached to this post.
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Wrong identificator of language

Post by Corwin - Tracker Sup »

Hi cew,

Actually you need to copy "Languages" folder to directory with registered PDFXCview.exe application.

HTH.
cew
User
Posts: 213
Joined: Tue Feb 01, 2011 8:14 am

Re: Wrong identificator of language

Post by cew »

That works.
But what about SDK's FullDemo example?
The assemblyname is "PDFViewerActiveXTestCS.exe".
I appended a screenshot of that output directory where you can see the that the "Languages" is in the output directory.
This still doesn't work...
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Wrong identificator of language

Post by Corwin - Tracker Sup »

You should not place "Languages" directory in your app output directory. It should be placed with PDF-XChange main executable file (PDFXCview.exe).
cew
User
Posts: 213
Joined: Tue Feb 01, 2011 8:14 am

Re: Wrong identificator of language

Post by cew »

Thanks for your help.

I couldn't get the Full Demo to work but my application works fine :D

Best regards,
cew
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: Wrong identificator of language

Post by John - Tracker Supp »

Good show ;)
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com