Page 1 of 1
MultiLanguage problems
Posted: Thu Aug 20, 2009 10:17 am
by 10549133
Hi,
I developp with BDS2006. for french.
In my app (VCL.NET), I want french screen but all teechart screens are in english.
I try code found in all features\..\Multilangage but without success.
At runtime, form are in english.
In my frame, I have drop an TchartEditor component
For Tchart component, I create it at runtime :
I use :
Code: Select all
uses
Teeconst, TeeProcCo, TeeTranslate, TeeFrench,
chart1 := Tchart.create(self);
[..]
charteditor1.chart := chart1;
TeeSetFrench;
I have missed something ?
Thanks
(Teechart 8.05 with fullcode)
Re: MultiLanguage problems
Posted: Fri Aug 21, 2009 8:17 am
by yeray
Bonjour ramdevteam,
Could you please try the following example? This seems to work fine here:
Code: Select all
uses Chart, TeeEdit, TeeTranslate, TeeFrench;
var ChartEditor1: TChartEditor;
Chart1: TChart;
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1 := TChart.Create(self);
Chart1.Parent := Form1;
ChartEditor1 := TChartEditor.Create(self);
TeeSetFrench;
ChartEditor1.Chart := Chart1;
ChartEditor1.Execute;
end;
Re: MultiLanguage problems
Posted: Fri Aug 21, 2009 9:12 am
by 10549133
Thanks for your answer.
I've try but
TchartEditor is always in english.
My complete code :
Code: Select all
unit testCodeU;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Chart, TeeEdit, TeeTranslate, TeeFrench;
type
TForm5 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
ChartEditor1: TChartEditor;
Chart1: TChart;
public
{ Public declarations }
class procedure Showform;
end;
implementation
{$R *.nfm}
procedure TForm5.FormCreate(Sender: TObject);
begin
Chart1 := TChart.Create(self);
Chart1.Parent := self;
ChartEditor1 := TChartEditor.Create(self);
TeeSetFrench;
ChartEditor1.Chart := Chart1;
ChartEditor1.Execute;
end;
class procedure TForm5.Showform;
var
Form5: Tform5;
begin
Form5:= Tform5.create(application);
with Form5 do
try
showmodal;
finally
release;
end;
end;
end.
The screen is called with :
Best regards
Re: MultiLanguage problems
Posted: Fri Aug 21, 2009 9:27 am
by 10549133
I have retry with 2 new projects :
- first project : VCL for win32 => Your code works fine and ChartEditor is in french
- second project : VCL for NET (like my app) => ChartEditor stay in english
In the VCL.NET project :
Code: Select all
TeeAskLanguage;
MessageDlg('TeeLanguageRegistry:' + inttostr(TeeLanguageRegistry), mtWarning, [mbOK], 0);
ChartEditor1 := TChartEditor.Create(self);
ChartEditor1.Chart := Chart1;
ChartEditor1.Execute;
in the langage list, French is pre-selected
When I clic on OK, the message is "TeeLanguageRegistry:7"
Project reference :
{%DelphiDotNetAssemblyCompiler 'c:\program files\steema software\teechart 8.05 for delphi 2006\delphi10\assemblies\Steema.TeeChart.VCL.dll'}
{%DelphiDotNetAssemblyCompiler 'c:\program files\steema software\teechart 8.05 for delphi 2006\delphi10\assemblies\Steema.TeeChart.VCL.Languages.dll'}
OS: Vista
Re: MultiLanguage problems
Posted: Wed Aug 26, 2009 7:31 am
by narcis
Hi ramdevteam,
Thanks for the information. I have checked it works fine in VCL for Win32 projects but also checked that it fails in VCL.NET project so I have added the defect (TV52014365) to the bug list to be fixed for next releases.
Re: MultiLanguage problems
Posted: Thu Aug 27, 2009 7:25 am
by 10549133
Thanks,
Do you have a public bug tracking system for viewing bugs status ?
Best Regards
Re: MultiLanguage problems
Posted: Thu Aug 27, 2009 7:55 am
by yeray
Hi ramdevteam,
No, there is no public bug tracking system. But we try to give the number of the bug labeled in the internal system to the customers sio that they can be aware at the release notes of the versions to see if the bug is expressly fixed.
Re: MultiLanguage problems
Posted: Thu Aug 27, 2009 8:01 am
by 10549133
Ok,
I have see that the other TeeChart component or popup are in english (TeeCommander Hint, Print Popup etc...)
Is it include in this ticket ?
Best Regards
Re: MultiLanguage problems
Posted: Thu Aug 27, 2009 8:19 am
by yeray
Hi ramdevteam,
The bug ticket says textually:
"Setting a language different than English doesn't work in VCL.NET, code to reproduce:
...
TeeSetFrench;
..."
I guess that fixing the translation procedure in general should solve the whole translation.
Re: MultiLanguage problems
Posted: Fri Feb 12, 2010 3:44 pm
by 10549133
Hi,
Have you fixed the bug TV52014365 ?
I haven't see it in the release.txt file of the TeeChart8.06Delphi2006.exe (Build 8.06.60902)
I need to deploy my software, but with teechart english screens, it's not very good for my french customers.
Best Regards
Re: MultiLanguage problems
Posted: Mon Feb 15, 2010 9:39 am
by narcis
Hi ramdevteam,
No, this is a high-priority item we will try to fix for next versions. We have investigated the issue a little bit but haven't found a solution to it yet.
Re: MultiLanguage problems
Posted: Mon Aug 09, 2010 10:24 am
by 10549133
Hi,
Have you some news about the bug TV52014365 ?
Best regards.
Re: MultiLanguage problems
Posted: Mon Aug 09, 2010 5:33 pm
by yeray
Hi ramdevteam,
The (TV52014365) bug has been already fixed. It will be available with the next maintenance release that should be published in the next weeks.