HighTechTalks DotNet Forums  

back to xml

Dotnet Internationalization microsoft.public.dotnet.internationalization


Discuss back to xml in the Dotnet Internationalization forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
E.
 
Posts: n/a

Default back to xml - 04-24-2006 , 12:21 PM






hi,
a former developper decided to give the dll resources to the translator
team. The use a software that reads this dll, and is able to change it an
generate the dll for the 2nd language.
this kind of process needs to be changed, and i'd like my translator to work
with the xml resx file, directly the one used by the developpers.

so my question is, is there a way to get an xml from the dll ? i know how to
make a resx becoming a dll, but i never had to do it the other way before.
How could i do that ? Is ILDASM usefull for this ?

Many thanks

Reply With Quote
  #2  
Old   
Kevin Westhead
 
Posts: n/a

Default Re: back to xml - 04-25-2006 , 02:22 PM






I'm not sure I understand why you need to generate a resx file from a dll.
Have you lost the original resx files or are these resource dlls that were
not originally generated from resx files?

If you have the resx files then you can simply give them to the translators
and have them generate a localised version using something like WinRes
(http://msdn2.microsoft.com/en-us/lib...3(VS.80).aspx).

--
Kevin Westhead

"E." <E (AT) discussions (DOT) microsoft.com> wrote

Quote:
a former developper decided to give the dll resources to the translator
team. The use a software that reads this dll, and is able to change it an
generate the dll for the 2nd language.
this kind of process needs to be changed, and i'd like my translator to
work
with the xml resx file, directly the one used by the developpers.

so my question is, is there a way to get an xml from the dll ? i know how
to
make a resx becoming a dll, but i never had to do it the other way before.
How could i do that ? Is ILDASM usefull for this ?



Reply With Quote
  #3  
Old   
E.
 
Posts: n/a

Default Re: back to xml - 04-26-2006 , 09:46 AM




Yes in fast my translators worked only with the DLL
Not the resx
Is it doable to reverse the dll to a resx ?


"Kevin Westhead" wrote:

Quote:
I'm not sure I understand why you need to generate a resx file from a dll.
Have you lost the original resx files or are these resource dlls that were
not originally generated from resx files?

If you have the resx files then you can simply give them to the translators
and have them generate a localised version using something like WinRes
(http://msdn2.microsoft.com/en-us/lib...3(VS.80).aspx).

--
Kevin Westhead

"E." <E (AT) discussions (DOT) microsoft.com> wrote in message
news:74D53D34-A2E6-4FDA-AE26-751C27243133 (AT) microsoft (DOT) com...
a former developper decided to give the dll resources to the translator
team. The use a software that reads this dll, and is able to change it an
generate the dll for the 2nd language.
this kind of process needs to be changed, and i'd like my translator to
work
with the xml resx file, directly the one used by the developpers.

so my question is, is there a way to get an xml from the dll ? i know how
to
make a resx becoming a dll, but i never had to do it the other way before.
How could i do that ? Is ILDASM usefull for this ?




Reply With Quote
  #4  
Old   
Kevin Westhead
 
Posts: n/a

Default Re: back to xml - 04-26-2006 , 01:32 PM



Yes, it's possible using something like Reflector
(http://www.aisto.com/roeder/dotnet/) or ildasm to extract the binary
resources, then resgen to convert them back to resx.

E.g. given an assembly Test.dll, run ildasm from the command line as
follows:

ildasm /text /out:Test.il Test.dll

You should then see some additional files, such as:

Test.il
Test.res
Test.resources

The .il file will be the IL, the .res file will be the Win32 resource and
the .resources file will be the .NET resources. You can now run resgen to
recreate the resx:

resgen Test.resources Test.resx

--
Kevin Westhead

"E." <E (AT) discussions (DOT) microsoft.com> wrote

Quote:
Yes in fast my translators worked only with the DLL
Not the resx
Is it doable to reverse the dll to a resx ?

snip




Reply With Quote
  #5  
Old   
E.
 
Posts: n/a

Default Re: back to xml - 04-28-2006 , 02:02 PM



many thanks this is exactly what i was looking for !




"Kevin Westhead" wrote:

Quote:
Yes, it's possible using something like Reflector
(http://www.aisto.com/roeder/dotnet/) or ildasm to extract the binary
resources, then resgen to convert them back to resx.

E.g. given an assembly Test.dll, run ildasm from the command line as
follows:

ildasm /text /out:Test.il Test.dll

You should then see some additional files, such as:

Test.il
Test.res
Test.resources

The .il file will be the IL, the .res file will be the Win32 resource and
the .resources file will be the .NET resources. You can now run resgen to
recreate the resx:

resgen Test.resources Test.resx

--
Kevin Westhead

"E." <E (AT) discussions (DOT) microsoft.com> wrote in message
news:E53934FF-AEA7-4E1C-9B73-37FA5C45EDA3 (AT) microsoft (DOT) com...

Yes in fast my translators worked only with the DLL
Not the resx
Is it doable to reverse the dll to a resx ?

snip





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.