Groups | Blog | Home
all groups > dotnet internationalization > april 2006 >

dotnet internationalization : back to xml


E.
4/24/2006 9:21:01 AM
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 ?

Kevin Westhead
4/25/2006 7:22:10 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/library/8bxdx003(VS.80).aspx).

--
Kevin Westhead

[quoted text, click to view]

E.
4/26/2006 6:46:03 AM

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


[quoted text, click to view]
Kevin Westhead
4/26/2006 6:32:37 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

[quoted text, click to view]

E.
4/28/2006 11:02:02 AM
many thanks this is exactly what i was looking for !




[quoted text, click to view]
AddThis Social Bookmark Button