|
The rt_language utility retrieves and modifies resource language identifier.
Command-line syntax:
rt_language filename option option option ...
filename - path and name of the PE32, PE32+, RES file or .NET assembly.
If the file name or an option contains spaces, it must be enclosed in quotes. Example:
rt_language "c:\test files\somefile.exe" -l:NEUTRAL
Running rt_language without parameters displays help on the command-line options.
General options:
- [] - optional parameter.
- -q - quiet mode.
Options for Win32 resources:
- -l:[[%type],[%name],[%old_language],]%new_language - change language. To change the language in a resource version, use the rt_version utility.
- -g[:[%type],[%name],[%language]] - get the list of resources and languages
- -list - list all supported languages
Parameters:
- %type - resource type. When no resource type is specified, the program will process all the resource types. To specify a resource type that is addressable by index, enter the # character followed by the index.
- %name - resource name.- If the name is not specified, the utility will process all the resources of the specified type. To specify a resource that is addressable by index, enter the # character followed by the index.
- %language, %old_language,%new_language - decimal language code, hexadecimal language code (0x...) or language name. If this parameter is not specified, the utility will use the neutral language (NEUTRAL, language code 0)
Options for .NET resources:
- -al:%langcode - set the language in the System.Reflection.NeutralResourcesLanguageAttribute attribute
- -gal - get the language specified in the System.Reflection.NeutralResourcesLanguageAttribute attribute
Parameters:
- %langcode - language code; e.g., En-US, Ru-RU.
Note:
- Inserting the NeutralResourcesLanguageAttribute attribute is not supported.
Examples:
Set the neutral language for all Win32 resources:
rt_language "c:\test files\somefile.exe" -l:0
Get the languages from a resource file:
rt_language "c:\test files\somefile.exe" -g
|