Last visit was: It is currently 05 Sep 2010, 00:54


All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Problem with localizeable ressources
PostPosted: 17 Apr 2008, 12:39 

Joined: 16 Apr 2008, 22:54
Posts: 5
Hi,

first of all I have to say that allemblur is a very helpful tool cause it's integrated in the build process. :)

My problem is that I use localizeable forms so I can switch the language of the software. After the built process with Assemblur it can't switch the language any more. Normally it builds 2 seperate ressource files. (2 languages).

With Assemblur it creates only one ressource file. Maybe I've forgot something to add or I use wrong settings.

Do you know a working solution for my problem? That would help me a lot cause I really want to use your tool. ;)

Greets,
Alex


Top
Offline Profile  
 
 Post subject: Re: Problem with localizeable ressources
PostPosted: 17 Apr 2008, 18:16 

Joined: 16 May 2007, 20:07
Posts: 21
Location: France
Mindphreaker wrote:
My problem is that I use localizeable forms so I can switch the language of the software. After the built process with Assemblur it can't switch the language any more. Normally it builds 2 seperate ressource files. (2 languages).

With Assemblur it creates only one ressource file. Maybe I've forgot something to add or I use wrong settings.


When a form resource is about to be renamed, Assemblur searches all assemblies specified in the configuration, trying to find matching localizable resources.

For example, if the name of the form resource is MyNamespace.MyForm.resource, Assemblur will look for MyNamespace.MyForm.[culture].resource in all assemblies.

From the top of my head, I can think of two possible reasons why things go wrong:

1. One or more resource assemblies are not part of the Assemblur configuration

2. All resource (satellite) assemblies are part of the configuration, but Assemblur fails to identify localized form resources in those assemblies.

In any case, Assemblur does not create any assemblies -- it just modifies existing ones. If there's one less (obfuscated) assembly in the destination folder, it could mean that its corresponding source assembly is not part of the configuration.

If it's not too complicated, you could also post here a trimmed-down VS solution with just some dummy source files in it (no real source code, just empty forms), if such solution still helps reproducing the problem.


Top
Offline Profile  
 
 Post subject:
PostPosted: 17 Apr 2008, 20:55 

Joined: 16 Apr 2008, 22:54
Posts: 5
Ok, I've done some additional testing on assemblur.

It seems that there is a problem saving the Assemblur settings.

What I've done:
Add an output from a Visual Studio File (recommanded)

There I select all relevant assemblies. (english, german, and the main assembly of course)

Then I klick on Enable Assemblur and klick Save.

Right after that I open the Settings Dialog again and well... there is only the main and ONE ressource file shown.

It seems that Assemblur can't save my assembly settings. :/ Maybe that's not all. Cause I wanted to create a demo project for you to show my problem. In this new demo project I was't able to select the Enable Assemblur ContextMenu Item in the "Tool" menu.

It seems that there are several saving problems. :(

Edit.:
------
Ok, here is the test project. Maybe this helps finding the problem.
http://www.gatherway.net/tmp/localization_test.zip


Top
Offline Profile  
 
 Post subject:
PostPosted: 17 Apr 2008, 21:16 

Joined: 16 Apr 2008, 22:54
Posts: 5
Test project:
http://www.gatherway.net/tmp/localization_test.zip


Top
Offline Profile  
 
 Post subject:
PostPosted: 18 Apr 2008, 06:32 

Joined: 16 May 2007, 20:07
Posts: 21
Location: France
Mindphreaker wrote:


Thanks, I'll take look.

In the meantime, as a workaround you can manually edit your Assemblur settings (.blur file) and create an entry for your missing assembly.

It's enough to copy/paste the <Assembly> node of the existing (resource) assembly, altering its subnodes only slightly (adjusting paths to point to the missing assembly).


Top
Offline Profile  
 
 Post subject:
PostPosted: 18 Apr 2008, 10:13 

Joined: 16 Apr 2008, 22:54
Posts: 5
Ok, your tipp modifying the .blur file nearly worked.
It's now possible to change the language to german. When I watch the assemblur process it writes that it analyses only the german resource file although I've included the english version too in the .blur file.

Here is my .blur file. Have I forgot something to change?
http://www.gatherway.net/tmp/gatherway.blur.zip


Top
Offline Profile  
 
 Post subject:
PostPosted: 20 Apr 2008, 14:59 

Joined: 16 May 2007, 20:07
Posts: 21
Location: France
Mindphreaker wrote:
Ok, your tipp modifying the .blur file nearly worked.
It's now possible to change the language to german. When I watch the assemblur process it writes that it analyses only the german resource file although I've included the english version too in the .blur file.

Here is my .blur file. Have I forgot something to change?
http://www.gatherway.net/tmp/gatherway.blur.zip


OK, I just figured out what the problem is. It won't work anyhow until I fix the code. Stay tuned.


Top
Offline Profile  
 
 Post subject:
PostPosted: 20 Apr 2008, 17:31 

Joined: 16 Apr 2008, 22:54
Posts: 5
Good that I could help you.
Just let me know about the new version. :)


Top
Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net & kodeki