|
|||
|
.NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Usage - Three simple steps to localize > In .NET, how do I access strings in satellite dll file?
|
| Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius |
|
||||||||||||||||
| In .NET, how do I access strings in satellite dll file? - Usage - Three simple steps to localize - Technical Support (You need to be registered at the forum to write) - .NET, Delphi, ... - Sisulizer Localization Tool Support | |||||||||||||||||
| Author | Post | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|||||||||||||||||
|
Bill Welch Member
|
Hello, I have a .NET project that I am creating with Visual Studio 2008 and I am using Sisulizer 2008. I have moved all of the strings to a resource file called "CommonResources", and have translated them all from the original language (English) to French. Sisulizer has created a "fr" subfolder under the .exe folder and has written the resource dll file there as follows: fr\<projectname>.resources.dll I set the current language to French by setting "Thread.CurrentThread.CurrentUICulture" appropriately. All of the text strings that are embedded in forms are displayed with the correct French translations, but the strings that I reference from the resource file are always in English, regardless of the selected language. I access the strings in the resource file in the following manner: lblMsgLine3.Text = CommonResources.msgDB_ChangeOrUndoBeforeExit; Is there some other way I need to access the text strings in the resource file so that I will get the currently-selected language? Thank you for your help with this. Bill Welch
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Jaakko.Salmenius Administrator
|
Your approach is right. It should work. Let's figure out why it does not work. Are the strings in the same satellite assembly file as the forms? Are you using WinForms or WPF? Can you upload your original assmeble (.exe) and satellite assembly (.dll) to use. Click Private Upload to upload. I will take a look at it. Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Bill Welch Member
|
Hello Jaakko, I am using Winforms. I'm would assume that the strings are in the same satellite assembly as the forms, but I'm not sure. Is there a Sisulzer setting for this? I tried to do a "Private Upload" of the files as you suggested, but the forum would not allow uploading ".exe" or ".dll" files. Again, thanks for your help. Bill
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Jaakko.Salmenius Administrator
|
Can you zip them into a ZIP file and upload that. Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Bill Welch Member
|
Hello again Jaakko, I was able to upload my .exe and French satellite dll as a .zip file. Thanks, Bill
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Jaakko.Salmenius Administrator
|
Hi Bill, Thank you for the files. I noticed that the CommonResources in the French satellite assembly file has a wrong name. This is why .NET runtime can not use French translations. Did you use binary or project localization? In binary localization you add .exe into Sisulizer project file. In project localization you add .csproj or .sln file. It would help me if you send me your Sisulizer project file (.slp). Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Bill Welch Member
|
Hello Jaako, I just uploaded my .slp file. Thanks, Bill
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Jaakko.Salmenius Administrator
|
Can you please upload it again? It did not arrive. Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Bill Welch Member
|
Hello Jaakko, I have now uploaded my .slp file as a zip file. When I upload it in an uncompressed format, I think the upload fails, but the forum doesn't display an error message. The upload of the zip file was successful. Could you let me know if you received it? Thanks, Bill
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Janusz Grzybek Super Moderator
|
Hello Bill, We received this file - thanks. Best regards, Janusz
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Jaakko.Salmenius Administrator
|
I noticed that Sisulizer had read the name of Shared_... resource incorrectly. Can you send me your CVIPC.csproj file. I believe that it is here where Sisulizer fails to read the name correctly. Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Bill Welch Member
|
Hello Jaakko, I have uploaded the .csproj file. Thanks again, Bill
|
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Jaakko.Salmenius Administrator
|
Hi Bill, Thank you for the file. I solved the case. The problem was that Sisulizer did not correctly read the name of a resource file that was outside the project folder or its sub folders. I will fix this for build 301. The new build will come later this week. Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Bill Welch Member
|
Hello Jaakko, Thank you so much for your help with this. Will you notify me here when Build 301 is available? Regards, Bill
|
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Jaakko.Salmenius Administrator
|
I will notify you. Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Jaakko.Salmenius Administrator
|
Build 301 is now available. Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Bill Welch Member
|
Hello Jaakko, I upgraded to Build 301 this morning. Unfortunately, I am having the same problem. I will upload all of the files as before. I will also include a screenshot of the Sisulizer tree. I noticed that the Sisulizer tree contained 2 nodes for the CommonResources file. I don't know if this is at all related to the problem, but I thought I would send the extra information. Thanks for your help. Bill
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Bill Welch Member
|
Hello Jaakko, Since Build 301 did not resolve my problem, I uploaded all of the relevant files again yesterday. I did notice that "CommonResources" appears twice in the Sisulizer project tree (I uploaded a screen shot). I don't know if that is related to the problem at all, but I thought I would send the additional information. Have you had a chance to look at the problem again? Thanks again for your help. Bill
|
||||||||||||||||
| |||||||||||||||||
| Current time is 08:50 pm | |
| .NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Usage - Three simple steps to localize > In .NET, how do I access strings in satellite dll file? | |
Sisulizer software localization tool - Three simple steps to localize