When ultragrid is used, it has built-in printing and other functions, but its dialog box is an English interface during previewing. It is unfriendly to use. In fact, this set of components provides powerful Custom Resource functions.
Below is the Chinese version of the print preview dialog box.
Infragistics. Shared. resourcecustomizer rc = infragistics. Win. Printing. Resources. customizer; // resources. customizer;
RC. setcustomizedstring ("printpreview_dialogcaption", "print preview ");
RC. setcustomizedstring ("printpreview_tool_print", "Print (& P )");
RC. setcustomizedstring ("printpreview_tool_closepreview", "close (& C )");
RC. setcustomizedstring ("printpreview_tool_contextmenupreviewzoom", "display ratio ");
RC. setcustomizedstring ("printpreview_tool_current_page", "Current page ");
RC. setcustomizedstring ("printpreview_tool_exit", "exit (& X )");
RC. setcustomizedstring ("printpreview_tool_first_page", "first page ");
RC. setcustomizedstring ("printpreview_tool_go_to", "Jump ");
RC. setcustomizedstring ("printpreview_tool_last_page", "Last page ");
RC. setcustomizedstring ("printpreview_tool_next_page", "Next page ");
RC. setcustomizedstring ("printpreview_tool_previus_page", "Previous Page ");
RC. setcustomizedstring ("printpreview_tool_next_view", "Next view (& n )");
RC. setcustomizedstring ("printpreview_tool_previus_view", "previous view (& P )");
RC. setcustomizedstring ("printpreview_tool_hand_tool", "hand tool (& H )");
RC. setcustomizedstring ("printpreview_tool_page_setup", "page settings (& U )");
RC. setcustomizedstring ("printpreview_tool_snapshot_tool", "snapshot tool (& S )");
RC. setcustomizedstring ("printpreview_tool_view", "View (& V )");
RC. setcustomizedstring ("printpreview_tool_whole_page", "");
RC. setcustomizedstring ("printpreview_tool_zoom", "zoom (& Z )");
RC. setcustomizedstring ("printpreview_tool_zoom_in", "zoom in ");
RC. setcustomizedstring ("printpreview_tool_zoom_out", "zoom out ");
RC. setcustomizedstring ("printpreview_toolcategory_context_menus", "context menu ");
RC. setcustomizedstring ("printpreview_toolcategory_file", "file ");
RC. setcustomizedstring ("printpreview_toolcategory_menus", "menu ");
RC. setcustomizedstring ("printpreview_toolcategory_tools", "toolbar ");
RC. setcustomizedstring ("printpreview_toolcategory_view", "View ");
RC. setcustomizedstring ("printpreview_toolcategory_zoom_mode", "zoom mode ");
RC. setcustomizedstring ("printpreview_tooltip_closepreview", "close ");
RC. setcustomizedstring ("printpreview_tooltip_zoom", "zoom ");
RC. setcustomizedstring ("statusbar_page_x_of_x", "page: {0}/{1 }");
RC. setcustomizedstring ("customizeimg_toolbar_menubar", "menu ");
RC. setcustomizedstring ("customizeimg_toolbar_standard", "standard ");
RC. setcustomizedstring ("customizeimg_toolbar_view", "View ");
RC. setcustomizedstring ("printpreview_tool_file", "file (& F )");
RC. setcustomizedstring ("printpreview_tool_tools", "tool (& T )");
RC. setcustomizedstring ("printpreview_tool_dynamic_zoom_tool", "Dynamic Scaling tool (& D )");
RC. setcustomizedstring ("printpreview_tool_zoom_out_tool", "");
RC. setcustomizedstring ("printpreview_tool_zoom_in_tool", "zoom in tool ");
// RC. setcustomizedstring ("printpreview_tool_page_layout", "menu ");
RC. setcustomizedstring ("previewrowcolselection_cancel", "cancel ");
RC. setcustomizedstring ("previewrowcolselection_selectedpages", "{0} X {1} page ");
RC. setcustomizedstring ("previewrowcolselection_cancel", "cancel ");
RC. setcustomizedstring ("printpreview_tool_page_width", "page width ");
RC. setcustomizedstring ("printpreview_zoomlistitem_marginwidth", "text width ");
RC. setcustomizedstring ("printpreview_zoomlistitem_pagewidth", "page width ");
RC. setcustomizedstring ("printpreview_zoomlistitem_wholepage", "");
RC. setcustomizedstring ("printpreview_tool_page_layout", "page layout ");
RC. setcustomizedstring ("printpreview_tool_margin_width", "text width ");
RC. setcustomizedstring ("contextmenupreviewhand", "zoom View ");
RC. setcustomizedstring ("printpreview_tool_performance_page_thumbnails", "");
RC. setcustomizedstring ("printpreview_tool_show_page_numbers", "display page number ");
RC. setcustomizedstring ("printpreview_tool_contextmenuthumbnail", "thumbnail ");
RC. setcustomizedstring ("printpreview_tool_enlarge_page_thumbnails", "zoom in ");
RC. setcustomizedstring ("printpreview_tool_thumbnails", "thumbnail ");
RC. setcustomizedstring ("printpreview_tool_continuous", "sequential ");
// Description
RC. setcustomizedstring ("statusbar_dynamiczoom_instructions", "click and drag to scale ");
RC. setcustomizedstring ("statusbar_page_x_of_x", "Current page: {0}/{1 }");
RC. setcustomizedstring ("statusbar_snapshot_instructions ctions", "click and drag to copy the selected rectangular area to the Clipboard ");
RC. setcustomizedstring ("statusbar_zoomin_instructions ctions", "click and drag, and the system will enlarge the selected rectangular area ");
RC. setcustomizedstring ("statusbar_zoomout_instructions", "click and drag to narrow down the selected rectangular area ");
RC. setcustomizedstring ("statusbar_hand_instructions ctions", "click and drag to show more content ");
What about the localization of other controls. All are implemented by calling setcustomizedstring, but you need to check the key and value for help.