你够快的。继续加油!
再来一段。供参考。
Configuration of the Microsoft .NET Add-In
../../HtmlHelp.css
Configuration of the Microsoft .NET Add-In
The configuration can be set globally, or locally for selected string lists. For global configuration, select <b>Tools</b>, then <b>Options</b>, then <b>Add-Ins</b>, to call up the dialog box for the configuration of add-ins. Select the file Parser <b>Microsoft .NET Parser</b> and click on <b>Setup</b>.
For local configuration select one or several source files with .NET data in the project view, then in the menu select <b>Project</b>, then <b>Properties</b>. In the properties dialog, click on the button <b>Options</b>. If you change the local configuration of a string list, you can use this setting as the global configuration by clicking on the button <b>Set as default</b>. For new string lists, the global configuration will be used automatically.
../../images/Pass099.gif
Additional Properties
The add-in for Microsoft .NET extracts all data which is usually required for the localization. In special cases however it may be necessary to extract and work on additional information. Click on <b>Add</b>, to add further properties which have to be extracted from the source file. The dialog box .NET Control Property will appear.
../../images/Pass100.gif
Under <b>Control name</b> enter the full name of the control and under <b>Property name</b> the name of the property which should be extracted. The Microsoft .NET add-in already extracts the properties font and ToolTipText from all controls as standard and LinkArea from System.Windows.Forms.LinkLabel. Instead of the name of the control you can also enter '*' . In this case the property will be extracted from every control.
If you select a property in the dialog box .NET Parser Options and click on <b>Remove</b>, this property will no longer be extracted from the source data.
Text properties are added to the translation list as separate entries. All other properties are converted into text and can be edited by using the command <b>Custom Properties</b> in the context menu or in the menu <b>Edit</b>. Properties with symbolic or enumerated values can be edited by selecting the symbolic values in a listbox.
Search path for user-defined controls
In Microsoft .NET programs user-developed controls or controls from third party providers can be used alongside the standard controls. In order to work on the Microsoft .NET files and to show the forms optimally in the dialog editor, the additional controls are needed as well as Microsoft .NET files. This applies not only to binary files but also for the resource files of the development environment. If PASSOLO parses or generates a target file, the additional controls needed will be searched for in the following locations:
The global directory, which can be set in the .NET Parser Options.
The directory in which the PASSOLO project is saved
The directory in which the source file is saved
The PASSOLO dialog editor also searches in the global and the project directory, however not in the source file directory.
<b>Note:</b> When the translation file is exported and sent to a translator, it cannot be assumed that the source file directory exists on the translator&’s PC or contains the relevant file.
In the edit field enter the complete path which PASSOLO should search for additional controls if these are referred to in Microsoft .NET files, or choose a path with the help of the <b>Open</b> dialog by clicking on <b>[...]</b>.
Extracting binary files
Apart from text lists, menus and dialogs, also bitmaps, icons, cursors or other binary data can be processed. Activate the option <b>Extract bitmaps</b>, <b>Extract icons</b> or <b>Extract other binary resources</b> if you also want to work with binary data contained in the Microsoft .NET files.
Further Options
When generating the target file you can choose whether to include all the resource data (strings, coordinates, properties) in the satellite DLL or only the data that was changed during translation. In this case, select the option <b>Write only changed resource information</b>. This will make the satellite DLL smaller, but you won't be able to use it for a subsequent alignment function (see <a href="../../Projects/ReadingTarget.htm">Transferring Existing Translations to PASSOLO</a>).
Microsoft .NET 插件的配置
../../HtmlHelp.css
Microsoft .NET 插件的配置
配置可以被全局或局部地设置给选定的字符串列表。对于全局配置,选择<b>工具</b>中的<b>选项</b>,然后<b>插件</b>,调用插件配置对话框。选择文件解析器<b>Microsoft .NET 解析器</b>并单击<b>安装</b>。
对于局部配置,在工程视图中选择具有 .NET 数据的一个或若干个来源文件,然后选择<b>工程</b>菜单中的<b>属性</b>。在属性对话框中,单击<b>选项</b>按钮。如果要更改一个字串列表的局部配置,可以通过单击<b>设置为默认</b>按钮,使该设置作为全局配置使用。对于新的字串列表,全局配置将被自动地使用。
../../images/Pass099.gif
附加属性
Microsoft .NET 插件提取的通常是需要被本地化的所有数据。在特殊情况下它可能需要提取并处理附加信息。单击<b>添加</b>,添加要从来源文件中提取的附加属性。将出现 .NET 控件属性对话框 。
../../images/Pass100.gif
在<b>控件名称</b>中输入控件的全名,并在<b>属性名称</b>中输入需要提取的属性名称。Microsoft .NET 插件已可提取所有标准控件中的属性字体和工具提示文本 (ToolTipText) 和 System.Windows.Forms.LinkLabel 中的 LinkArea。您也可以输入“*”来代替控件的名称。在这种情况下,将从每个控件中提取属性。
如果选择 .NET 解析器选项对话框中的属性,并单击<b>移除</b>,该属性将不再从来源数据中提取。
文本属性作为单独的项目被添加到翻译列表。所有其他属性被转换为文本,并且可以使用上下文菜单或<b>编辑</b>菜单中的<b>自定义属性</b>命令进行编辑。有符号或枚举值的属性可以通过选择一个列表框中的符号值编辑。
搜索用户定义的控件路径
在 Microsoft .NET 程序中,用户开发的控件或第三方供应商的控件可以与标准控件一起使用。以便在 Microsoft .NET 文件上工作,并在对话框编辑器上显示出最佳的窗格, 附加控件也需要 Microsoft .NET 文件。这不仅适用于二进制文件,也适用于开发环境的资源文件。如果 PASSOLO 解析或生成一个目标文件,将在下列位置中搜索需要的附加控件:
全局目录,它可以在 .NET 解析器选项中设置。
保存 PASSOLO 方案的目录
保存来源文件的目录
PASSOLO 对话框编辑器同时也在全局和方案目录中搜索,但是不在来源文件目录中搜索。
<b>注意:</b> 当翻译文件被导出和发送到一个翻译程序时,不能假定来源文件目录在翻译程序的 PC 机上存在或包含相关文件。
在编辑字段中输入 PASSOLO 需要搜索的附加控件的完整路径,如果在 Microsoft .NET 文件中这些被提交的话。或通过单击 <b>[...]</b> 按钮<b>,在打开</b>对话框的帮助下选择一个路径。
提取二进制文件
除了文本列表、菜单和对话框外,也可以处理位图、图标、光标或其他二进制数据。如果也想处理在 Microsoft .NET 文件中包含的二进制数据,激活<b>提取位图</b>、<b>提取图标</b>或<b>提取其他二进制资源</b>选项。
更多选项
当生成目标文件时,可以选择是否包括在子 DLL 中的所有资源数据 (字符串、坐标、属性) 或仅在翻译期间被更改的数据。在这种情况下,选择<b>仅写入已更改的资源信息</b>选项,将使子 DLL 更小,但是不能在随后的效准功能中使用它 (参阅 <a ref="../../Projects/ReadingTarget.htm">转移现有的翻译到 PASSOLO</a>)。