Support forum of the software localization tool Sisulizer


.NET, Delphi, ... - Sisulizer Localization Tool Support Home

Get in contact with the makers of Sisulizer.
Our forum is open for all questions around Sisulizer from customers and prospects.
Don't hesitate to register and ask. The Sisulizer team will answer ASAP.

Search     Help Home Sisulizer Website Download
Search by username
Not logged in - Login | Register 

 Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius
New Topic Reply Printer Friendly
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
AuthorPost
 Posted: Thu Mar 18th, 2010 07:20 pm
PM Private Upload Quote Reply
Bill Welch
Member
 

Joined: Thu Aug 24th, 2006
Location:  
Posts: 27
Status: 
Offline
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

 

Back To Top PM Private Upload Quote Reply

 Posted: Fri Mar 19th, 2010 09:47 am
PM Private Upload Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Espoo, Finland
Posts: 2275
Status: 
Offline
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
Back To Top PM Private Upload Quote Reply

 Posted: Fri Mar 19th, 2010 01:28 pm
PM Private Upload Quote Reply
Bill Welch
Member
 

Joined: Thu Aug 24th, 2006
Location:  
Posts: 27
Status: 
Offline
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

 

Back To Top PM Private Upload Quote Reply

 Posted: Fri Mar 19th, 2010 01:42 pm
PM Private Upload Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Espoo, Finland
Posts: 2275
Status: 
Offline
Can you zip them into a ZIP file and upload that.

Jaakko



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Fri Mar 19th, 2010 01:43 pm
PM Private Upload Quote Reply
Bill Welch
Member
 

Joined: Thu Aug 24th, 2006
Location:  
Posts: 27
Status: 
Offline
Hello again Jaakko,

I was able to upload my .exe and French satellite dll as a .zip file.

Thanks,

Bill

 

Back To Top PM Private Upload Quote Reply

 Posted: Sat Mar 20th, 2010 08:42 am
PM Private Upload Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Espoo, Finland
Posts: 2275
Status: 
Offline
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
Back To Top PM Private Upload Quote Reply

 Posted: Mon Mar 22nd, 2010 01:27 pm
PM Private Upload Quote Reply
Bill Welch
Member
 

Joined: Thu Aug 24th, 2006
Location:  
Posts: 27
Status: 
Offline
Hello Jaako,

I just uploaded my .slp file.

Thanks,

Bill

 

Back To Top PM Private Upload Quote Reply

 Posted: Tue Mar 23rd, 2010 12:08 am
PM Private Upload Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Espoo, Finland
Posts: 2275
Status: 
Offline
Can you please upload it again? It did not arrive.

Jaakko



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Tue Mar 23rd, 2010 01:16 pm
PM Private Upload Quote Reply
Bill Welch
Member
 

Joined: Thu Aug 24th, 2006
Location:  
Posts: 27
Status: 
Offline
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

 

Back To Top PM Private Upload Quote Reply

 Posted: Tue Mar 23rd, 2010 04:26 pm
PM Private Upload Quote Reply
Janusz Grzybek
Super Moderator


Joined: Fri Dec 1st, 2006
Location: Zabrze, Poland
Posts: 2542
Status: 
Offline
Hello Bill,

We received this file - thanks.

Best regards,
Janusz



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Tue Mar 23rd, 2010 11:41 pm
PM Private Upload Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Espoo, Finland
Posts: 2275
Status: 
Offline
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
Back To Top PM Private Upload Quote Reply

 Posted: Wed Mar 24th, 2010 01:21 pm
PM Private Upload Quote Reply
Bill Welch
Member
 

Joined: Thu Aug 24th, 2006
Location:  
Posts: 27
Status: 
Offline
Hello Jaakko,

I have uploaded the .csproj file.

Thanks again,

Bill

Back To Top PM Private Upload Quote Reply

 Posted: Wed Mar 24th, 2010 01:51 pm
PM Private Upload Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Espoo, Finland
Posts: 2275
Status: 
Offline
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
Back To Top PM Private Upload Quote Reply

 Posted: Wed Mar 24th, 2010 02:21 pm
PM Private Upload Quote Reply
Bill Welch
Member
 

Joined: Thu Aug 24th, 2006
Location:  
Posts: 27
Status: 
Offline
Hello Jaakko,

Thank you so much for your help with this.

Will you notify me here when Build 301 is available?

Regards,

Bill

 

Back To Top PM Private Upload Quote Reply

 Posted: Wed Mar 24th, 2010 02:48 pm
PM Private Upload Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Espoo, Finland
Posts: 2275
Status: 
Offline
I will notify you.

Jaakko



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Mon Mar 29th, 2010 08:39 am
PM Private Upload Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Espoo, Finland
Posts: 2275
Status: 
Offline
Build 301 is now available.

Jaakko



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Mon Mar 29th, 2010 03:56 pm
PM Private Upload Quote Reply
Bill Welch
Member
 

Joined: Thu Aug 24th, 2006
Location:  
Posts: 27
Status: 
Offline
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

 

Back To Top PM Private Upload Quote Reply

 Posted: Wed Mar 31st, 2010 01:19 pm
PM Private Upload Quote Reply
Bill Welch
Member
 

Joined: Thu Aug 24th, 2006
Location:  
Posts: 27
Status: 
Offline
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

 

 

Back To Top PM Private Upload Quote Reply

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?



WowUltra modified by Sisulizer Copyright © 2007-09 by Jim Hale - Based on WowBB Copyright © 2003-2006 Aycan Gulez

Sisulizer software localization tool - Three simple steps to localize