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
Wrong identificator of language
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- Site Admin
- Posts: 19885
- Joined: Mon Jan 12, 2009 8:07 am
Re: Wrong identificator of language
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
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
-
- User
- Posts: 213
- Joined: Tue Feb 01, 2011 8:14 am
Re: Wrong identificator of language
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:
vDataIn has the right value (language code) received from your dropdown.
What's wrong?
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));
}
}
What's wrong?
You do not have the required permissions to view the files attached to this post.
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: Wrong identificator of language
Hi cew,
Actually you need to copy "Languages" folder to directory with registered PDFXCview.exe application.
HTH.
Actually you need to copy "Languages" folder to directory with registered PDFXCview.exe application.
HTH.
-
- User
- Posts: 213
- Joined: Tue Feb 01, 2011 8:14 am
Re: Wrong identificator of language
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...
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...
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: Wrong identificator of language
You should not place "Languages" directory in your app output directory. It should be placed with PDF-XChange main executable file (PDFXCview.exe).
-
- User
- Posts: 213
- Joined: Tue Feb 01, 2011 8:14 am
Re: Wrong identificator of language
Thanks for your help.
I couldn't get the Full Demo to work but my application works fine
Best regards,
cew
I couldn't get the Full Demo to work but my application works fine

Best regards,
cew
-
- Site Admin
- Posts: 5223
- Joined: Tue Jun 29, 2004 10:34 am
Re: Wrong identificator of language
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
Best regards
Tracker Support
http://www.tracker-software.com