![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello. I have been trying unsuccessfully to use the Enterprise Localization Toolkit to make a small test application multi-lingual. If it works successfully we want to implement it into a Microsoft Commerce Server 2002 site, to enable them to have French and American sites, and ultimately a Japanese site too. The problem I have having is like this: I have created a test application, called GlobalTestLTK, with one page and 9 controls. I have followed the instructions for the Toolkit up to the point of creating the satellite assemblies. My 9 controls are all in the database and I have entered some different language strings against the Text property of them using the Localization Designer and Translater pages. I build my solution in Visual Studio, and it creates a dll, GlobalTestLTK.dll. This dll is 20k. If I run the solution, I get the error: Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure "GlobalTestLTK.resources" was correctly embedded or linked into assembly "GlobalTestLTK". baseName: GlobalTestLTK locationInfo: <null> resource file name: GlobalTestLTK.resources assembly: GlobalTestLTK, Version=1.0.2209.18123, Culture=neutral, PublicKeyToken=null So I load the Localization Management application, open my application, and click Generate Resource Files. I enter the project dll (GlobalTestLTK.dll) as my neutral language file, leave Satellite Assemblies checked and click the Generate Files button. This program then creates the language sub directories and compiles the language specific dlls into them (for example, bin\en-GB\GlobalTestLTK.resources.dll). However it also overwrites the GlobalTestLTK.dll in the \bin, which becomes a 4k file. If I now try to run the project, I get the error: Could not load type 'GlobalTestLTK.Global'. Presumably this is because the dll no longer contains the compiled site, but just the compiled language stuff. I have tried using loose files and then using al.exe manually, but it seems to do the same thing. I have tried using a different dll as my neutral language file (by changing the filename in the textbox in the Management Appliaction) but this results in the first error ("no resources found"). I have also tried editing the CreateSatellites.cmd file to change the parameters of the al.exe calls, but I always end up with either an overwritten, 4k dll file, or the "no resources found" error. The documentation also implies that the dlls in the language directories should be called "foo.dll" rather than "foo.resources.dll", but these files are created and named automatically by the Management Application. Am I doing something obvious wrong? Should the neutral language dll be the same as the site dll? Should I have something in the site (a resx file for example) to define the neutral language, before using the ToolKit? Any help or pointers you could offer would be greatly appreciated, as I have been struggling with this for a few hours and it's starting to drive me (and my colleague who sits next to me and gets the brunt of my frustration!) a bit mental! Thanks Ben PS I also sent this query to the support email address mentioned in the msdn article (entloctk (AT) microsoft (DOT) com) and it was returned to me as address unknown! |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Hello Ben, Could you provide more details of your fix as I have the same problem & can't get round it? I have tried all the things you mentioned before you found your fix & I've also tried creating a neutral.resx (& webprojectname.resx) in my web project's root, as you advise, but to no avail. Any further info would be a great help. Cheers, Marc. -- mhunt |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |