Microdoft WPF

The following .NET file types with WPF resources can be localized with RC-WinTrans:

  • EXE and DLL (.NET application assembly files)
  • XAML (WPF window files)

WPF Support in RC-WinTrans

Since 2011 and Version 9.1, WPF resources in .NET assembly files can be translated / localized in RC-WinTrans as "true" WPF. This means that the complete source data from a WPF assembly (EXE or DLL)- including WPF windows, menus and images- will be read, presented and rendered for translation with RC-WinTrans.

RC-WinTrans handles WPF just like other .NET applications- no special preparation or conversion is required. For multi-lingual .NET applications RC-WinTrans will create translated .NET satellite assembly DLLs, one for each target language (the same as other .NET assemblies based on Forms resources (RESX).

Figure 1:  The "Project Data" tree view of RC-WinTrans (left) where a WPF assembly "WPFAppl.exe" has been added to
the active project. The resources tree has been expanded to show the individual resources of the "Window3.baml" file
in the application (EXE) file. On the right the translatable text of the "Window3.baml" file is listed in the "Text Table" view.

RC-WinTrans makes the following display / editing options available for WPF data:
  • "Text Table" view / "Translation Edit" bar.
  • "Menu" view (for menu resources).
  • (External) WPF GUI Editor (see below).
Developer info:  RC-WinTrans does NOT require WPF resources to be prepared (with MSBuild.exe) in such a way that all items are given the ID "x:Uid." RC-WinTrans uses the "Name" attribute to identify an item in the translation process, and only uses an "x:Uid" attribute value if "Name" does not exist.

WPF GUI Editor for Localization

The WPF GUI Editor is supplied as an add-on to the RC-WinTrans system to handle the translation / localization of WPF resources. As a "true" WPF GUI Editor, the layout of WPF windows is displayed and handled with the greatest degree of accuracy possible. This means that what you see in the editor is exactly what you will see in the translated file, with the application's underlying structure and intended functionality kept intact. In fact, WPF windows created with Visual Studio 2008 or 2010 are shown and edited with the WPF GUI Editor for Localization just as they would be in Microsoft Visual Studio, with the added benefit of access to the wide range of localization features offered by RC-WinTrans.

The WPF GUI Editor provides side-by-side source and target views of a selected WPF window. There the layout of the target WPF window can be edited and subjected to localization-specific tasks supplied by the editor, e.g., mark items that have been resized (Figure 3) or reset changed items back to their original size and position. The editor also has a check for missing and incorrect hotkeys.

The WPF GUI Editor runs as a client application with RC-WinTrans as the main application. Larger WPF windows can be optimally displayed by maximizing the WPF GUI Editor's main window. The WPF GUI Editor also has a zoom function to enlarge or reduce the current WPF window. Other useful features include a "Document Outline" view providing an overview of the selected window's elements and navigation between them.

All WPF standard elements from Visual Studio 2008 and 2010 will be supported by the WPF GUI Editor, as well as your own custom controls and third-party WPF.

Figure 2:  The WPF GUI Editor's "Source" (English) and "Target" (Japanese) views.

Figure 3:  The WPF GUI Editor where the "Cancel" button is being enlarged to accommodate the Japanese text.
Both the WPF window and the "Cancel" button are marked in blue to indicate that modifications have been made.

Required Software
  • RC-WinTrans 9 (Build Version 9.1, January 2011)
  • WPF GUI Editor for Localization Add-On
  • Microsoft .NET 4.0 (installed with RC-WinTrans)