You can add languages to your project by using the Resource DLL Wizard (Win32). For each language that you add, the wizard generates a resource module project in your project group. Each resource module project is given an extension based on the language’s locale.
To add a language to a project
- Save and build your project.
- With your project open in the IDE, choose ProjectLanguagesAdd. Alternatively, you can choose FileNewOtherDelphi ProjectsResource DLL Wizard for a Win32 application. The wizard is displayed.
- Make sure your project is selected in the list that appears in the dialog and then click Next.
- Click the check box next to the languages that you want to add to your project and then click Next.
- Review the directory path information that the wizard will use for the language’s resource modules.
Tip: To change the path, click the path, and then click the ellipsis (...) button to browse to a different directory. When you are satisfied with the path information, click Next.
- If no satellite assembly for the language exists yet, Create New appears in the Update Mode column. Click Next. If a resource module exists for the language in the directory you have specified, click in the Update Mode column to select Update or Overwrite. Choose Update to keep and modify the existing satellite assembly project. Choose Overwrite to create a new, empty project and to delete the old project and any translations it contains. Click Next.
- Review the summary of what the wizard will do and click Finish to create or update the resource modules for the languages you have selected. If the wizard asks to generate a .drc (Win32) file, click Yes. Any project that uses its own resource strings (instead of previously compiled .rc files) needs a .drcil or .drc file. If you are sure that no new files are needed (because your project does not introduce any resource strings of its own), select Skip drcil files that are not found in the final dialog. This prevents the wizard from generating, or asking to generate, files.
- Click Yes to compile. Click OK to save your project group.
The generated projects contain untranslated copies of the resource strings in your original project. By default, the Translation Manager is displayed, enabling you to begin translating the resource files.
To remove a language from a project
- Open your project.
- Select ProjectLanguagesRemove.
- Check the languages that you want to remove and then click Next.
- Click Finish.
The wizard removes the selected resource module from your project file, but does not delete the assemblies, the source of the assemblies, or the directories in which they reside.
To restore a language to a project
- Choose ProjectLanguagesAdd to start the Satellite Assembly Wizard or Resource DLL Wizard.
- Specify the directory path of the old resource module in the appropriate dialog.
- In the Update Mode column, select Update. If a resource module already exists for the language (in the directory you have specified), click in the Update Mode column to select Update or Overwrite. Choose Update to keep and modify the existing assembly project. Choose Overwrite to create a new, empty project and to delete the old project and any translations it contains.
- Click Finish.