To localize the designer control
- In Windows Explorer, navigate to C:\Program Files\GrapeCity\ActiveReports 6\Localization (on a 64-bit Windows operating system, navigate to C:\Program Files (x86)\GrapeCity\ActiveReports 6\Localization).
- Edit the ARDesigner.bat file:
- Right-click the ARDesigner.bat file and select Edit.
- Change the culture in the line set Culture="en-Us" to the culture you want to use. For your convenience, here is a list of predefined .NET Cultures.
- Ensure that the ProgamFilesDDPath is correct.
|
Caution: Do not change the ProjectName, dllName, msDir, or BaseNamespace. |
- Save and close the ARDesigner.bat file.
- Change strings in the resource files:
- Double-click the ARDesigner.zip file to open it.
- Extract all of the files to C:\Program Files\GrapeCity\ActiveReports 6\Localization (on a 64-bit Windows operating system, extract the files to C:\Program Files (x86)\GrapeCity\ActiveReports 6\Localization). An ARDesigner subfolder is created.
|
Note: If you are working on a 64-bit Windows operating system, you should extract files to C:\Program Files (x86)\GrapeCity\ActiveReports 6\Localization. |
- In the new ARDesigner folder's Res subfolder, open each of the resources.resx file and change the strings as needed.
- Drill down in each of the following subfolders and edit the *.resx files as needed: Designers, Dialogs, ReportExplorer, and ScriptEditor.
- If you want to change any of the images, rename your localized images to the names of the ones in the Res\Resources subfolder and replace them with your localized images.
- Back in the main Localization folder, double-click the ARDesigner.bat file to run it. The NameCompleter.exe application runs, and creates:
- A SatelliteAssembly folder inside the ARDesigner folder.
- A language subfolder with the same name as the culture you set in the ARDesigner.bat file inside the SatelliteAssemby folder.
- A localized ActiveReports.ARDesigner.resources.dll file inside the language subfolder.
- Copy the language subfolder and paste it into the Debug folder of your application.
|
Note: If you want to put your localization in the Global Assembly Cache (GAC), you must first send the localized ActiveReports.ARDesigner.resources.dll file to GrapeCity and get it signed. Then you can drag the language subfolder with the signed dll file into C:\WINDOWS\ASSEMBLY. |
To test your localized application on a machine that does not share the culture of the localized dll
- Add the following code in the form's constructor just before the InitializeComponent method is called.
- Replace the "ja" in the example code with the culture specified in the ARDesigner.bat file.
To write the code in Visual Basic.NET
Visual Basic.NET code. Paste INSIDE the the form's constructor just before the InitializeComponent method. |
Copy Code |
System.Threading.Thread.CurrentThread.CurrentUICulture = New System.Globalization.CultureInfo("ja") |
To write the code in C#
C# code. Paste INSIDE the form's constructor just before the InitializeComponent method. |
Copy Code |
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("ja"); |
See Also