How to translate the UI of Ultracontrols to desired language? Here is a small piece of code(written in ABL referencing to Infragistics UltraControls) that should make absolutely clear what we are looking for:
DEFINE VARIABLE grid AS Infragistics.Win.UltraWinGrid.UltraGrid NO-UNDO.DEFINE VARIABLE previewDialog AS Infragistics.Win.Printing.UltraPrintPreviewDialog NO-UNDO.DEFINE VARIABLE printDoc AS Infragistics.Win.UltraWinGrid.UltraGridPrintDocument NO-UNDO.ASSIGNgrid = NEW Infragistics.Win.UltraWinGrid.UltraGrid()previewDialog = NEW Infragistics.Win.Printing.UltraPrintPreviewDialog()printDoc = NEW Infragistics.Win.UltraWinGrid.UltraGridPrintDocument ( )printDoc:Grid = gridpreviewDialog:Document = printDocpreviewDialog:PrintDialogButtonVisible = TRUE.WAIT-FOR previewDialog:ShowDialog().(You can run this code from Procedure Editor)We need to translate all the (about 50) strings (menus, labels, tooltips, status bar texts) in the dialog produced by the above code.Examples:"File" => "Datei" in German, "Fichier" in French"Exit" => "Schliessen" in German, "Fermer" in French
Could anyone please advise? Thanks and let me know if anything else is needed.
Hello,
In order to localize our WinForms Controls you would need to change their resource string values. Below I am sharing a documentation page that demonstrates how this could be achieved by using Resource Customizer:
https://es.infragistics.com/help/winforms/win-customizing-assembly-resource-strings
Additionally you can also find a list of all resource strings categories below:
https://es.infragistics.com/help/winforms/win-assembly-resource-strings
Please let me know if you have any questions.
Regards, Ivan Kitanov
Hi Ivan, thanks for your response!
So, if I understood correctly we can translate the text on the button or labels by manually typing/giving there relevant translated values in resx file at there properties? For example:
<data name="ultraButton1.Text" xml:space="preserve"><value>ボタン1</value></data>
and later on in our code accessing this property value using
ResourceCustomizer or by System.Resources.ResourceManager.Please correct me if I misunderstood.