Posted 31 May 2020, 4:37 pm EST
Hi, We’ve got customers in several European countries. Therefore I would like to have C1TrueDBGrid’s PrintPreview/Export options translated in each country’s language. How can I manage to do so ?
Forums Home / ComponentOne / General Discussion
Posted by: SHanau on 31 May 2020, 4:37 pm EST
Posted 31 May 2020, 4:37 pm EST
Hi, We’ve got customers in several European countries. Therefore I would like to have C1TrueDBGrid’s PrintPreview/Export options translated in each country’s language. How can I manage to do so ?
Posted 1 June 2020, 5:24 pm EST
Hi Stephan,
You can use the Language property of the TrueDBGrid to get the translated PrintPreview/Export options dialog. By default, it shows the dialog based on the language specified by the CurrentUICulture but you can change it as per your need by selecting the language given in the Language enum.
Regards, Prabhat Sharma.
Posted 6 July 2021, 5:20 am EST
HI Prabhat,
Sorry for getting back to you on this issue. I did as told but the PrintPreview phrases are still in English. Furthermore using “Language” as the method of choice is being marked as outdated by VS2015.
Could you please provide a sample in C# ? And do I have to include a library or something into the distribution package of my app ?
Thanks in advance.
Posted 6 July 2021, 8:22 pm EST
Hello,
You can use the below-given code in the Form’s constructor to localize the PrintPreview/Export options dialog.
public Form1()
{
Thread.CurrentThread.CurrentCulture = new CultureInfo("ru-RU");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("ru-RU");
InitializeComponent();
}
Regards, Prabhat Sharma.
Posted 11 December 2021, 3:48 am EST - Updated 3 October 2022, 10:42 pm EST
Hello Prabhat,
Sorry for getting back to you so belated.
I’m sorry but even though I followed your advice the print preview window of C1TrueDBGrid 4.5 is still in English. Here’s what I do:
public Form1() {
// thread-culture Thread.CurrentThread.CurrentCulture = new CultureInfo("ru-RU"); Thread.CurrentThread.CurrentUICulture = new CultureInfo("ru-RU");
}
private void GridPrintGrid() { C1.Win.C1TrueDBGrid.PrintInfo myInfo = _myGrid.PrintInfo; myInfo.PrintPreview(); }
But afterwards the preview windows is still and always in English. See screenshot.
Please advise, Stephan
Posted 13 December 2021, 5:09 pm EST
Hello,
We too can observe the issue at our end and escalate this to the developers for the fix. We will let you know as soon as we get the update from their end. [Internal Tracking ID: C1WIN-26368]
Regards, Prabhat Sharma.
Posted 18 February 2022, 8:43 am EST
Hi Prabhat,
Any news on that matter ?
Thanks, Stephan
Posted 20 February 2022, 10:04 pm EST
Hello,
This issue has been fixed in the 4.5.2.20213.537 version. Now, the PrintPreview dialog is localized into Russian culture.
Regards, Prabhat Sharma.