CnPack Forum


 
Subject: 在运行期是否可以翻译窗体
redmonkey
新警察
Rank: 1



UID 41337
Digest Posts 0
Credits 8
Posts 3
点点分 8
Reading Access 10
Registered 2008-11-25
Status Offline
Post at 2008-11-25 16:50  Profile | Blog | P.M. 
在运行期是否可以翻译窗体

4.        拖一TCnLangTranslator,双击打开翻译管理器,生成语言条目并翻译、保存。

如果我在运行期,能否show出翻译窗体,然后设置,如不能,有无处理办法

var
//
a: TCnTranslatorEditor ;
begin
  try
  a := TCnTranslatorEditor.Create(self,nil);
  a.Edit;
  finally
  a.Free ;
  end;

有问题
Top
redmonkey
新警察
Rank: 1



UID 41337
Digest Posts 0
Credits 8
Posts 3
点点分 8
Reading Access 10
Registered 2008-11-25
Status Offline
Post at 2008-11-25 16:54  Profile | Blog | P.M. 
!LanguageID=2052
!LanguageName=中文(中国)
!TranslationAuthor=
!TranslationAuthorEmail=
!TranslationDefaultFont=MS Sans Serif,8,,0,clWindowText,DEFAULT_CHARSET
TApplication..!Font=
TApplication..Action1.Caption=
TApplication..Action1.Category=
TApplication..Action1.HelpKeyword=
TApplication..Action1.Hint=
TApplication..Action1.SecondaryShortCuts.Text=
TApplication..Action2.Caption=
TApplication..Action2.Category=
TApplication..Action2.HelpKeyword=
TApplication..Action2.Hint=
TApplication..Action2.SecondaryShortCuts.Text=
TApplication..Bevel1.HelpKeyword=
TApplication..Bevel1.Hint=
TApplication..BitBtn1.Caption=
TApplication..BitBtn1.HelpKeyword=
TApplication..BitBtn1.Hint=
TApplication..btn1.Caption=
TApplication..btn1.HelpKeyword=
TApplication..btn1.Hint=
TApplication..Button1.Caption=
TApplication..Button1.HelpKeyword=
TApplication..Button1.Hint=
TApplication..Button2.Caption=
TApplication..Button2.HelpKeyword=
TApplication..Button2.Hint=
TApplication..Button3.Caption=
TApplication..Button3.HelpKeyword=
TApplication..Button3.Hint=
TApplication..Button4.Caption=
TApplication..Button4.HelpKeyword=
TApplication..Button4.Hint=
TApplication..CheckBox1.Caption=
TApplication..CheckBox1.HelpKeyword=
TApplication..CheckBox1.Hint=
TApplication..CheckListBox1.HelpKeyword=
TApplication..CheckListBox1.Hint=
TApplication..CheckListBox1.ImeName=
TApplication..CheckListBox1.Items.Text=
TApplication..chkStorageMode.Caption=
TApplication..chkStorageMode.HelpKeyword=
TApplication..chkStorageMode.Hint=
TApplication..ComboBox1.HelpKeyword=
TApplication..ComboBox1.Hint=
TApplication..ComboBox1.ImeName=
TApplication..ComboBox1.Items.Text=
TApplication..ComboBox1.Text=
TApplication..Edit1.HelpKeyword=
TApplication..Edit1.Hint=
TApplication..Edit1.ImeName=
TApplication..Edit1.Text=
TApplication..GroupBox1.Caption=
TApplication..GroupBox1.HelpKeyword=
TApplication..GroupBox1.Hint=
TApplication..Label1.Caption=
TApplication..Label1.HelpKeyword=
TApplication..Label1.Hint=
TApplication..lbl1.Caption=
TApplication..lbl1.HelpKeyword=
TApplication..lbl1.Hint=
TApplication..lblLangs.Caption=
TApplication..lblLangs.HelpKeyword=
TApplication..lblLangs.Hint=
TApplication..ListBox1.HelpKeyword=
TApplication..ListBox1.Hint=
TApplication..ListBox1.ImeName=
TApplication..ListBox1.Items.Text=
TApplication..ListView1.Columns.Item0.Caption=
TApplication..ListView1.Columns.Item1.Caption=
TApplication..ListView1.HelpKeyword=
TApplication..ListView1.Hint=
TApplication..ListView1.ListItem0.Caption=
TApplication..ListView1.ListItem0.SubItems.Text=
TApplication..ListView1.ListItem1.Caption=
TApplication..ListView1.ListItem1.SubItems.Text=
TApplication..ListView1.ListItem2.Caption=
TApplication..ListView1.ListItem2.SubItems.Text=
TApplication..ListView1.ListItem3.Caption=
TApplication..ListView1.ListItem3.SubItems.Text=
TApplication..Memo1.HelpKeyword=
TApplication..Memo1.Hint=
TApplication..Memo1.ImeName=
TApplication..Memo1.Lines.Text=
TApplication..mmoLangs.HelpKeyword=
TApplication..mmoLangs.Hint=
TApplication..mmoLangs.ImeName=
TApplication..mmoLangs.Lines.Text=
TApplication..N1.Caption=
TApplication..N1.Hint=
TApplication..N2.Caption=
TApplication..N2.Hint=
TApplication..N3.Caption=
TApplication..N3.Hint=
TApplication..N4.Caption=
TApplication..N4.Hint=
TApplication..N5.Caption=
TApplication..N5.Hint=
TApplication..N6.Caption=
TApplication..N6.Hint=
TApplication..N7.Caption=
TApplication..N7.Hint=
TApplication..N8.Caption=
TApplication..N8.Hint=
TApplication..OpenDialog1.DefaultExt=
TApplication..OpenDialog1.FileName=
TApplication..OpenDialog1.Filter=
TApplication..OpenDialog1.InitialDir=
TApplication..OpenDialog1.Title=
TApplication..PageControl1.HelpKeyword=
TApplication..PageControl1.Hint=
TApplication..Panel1.Caption=
TApplication..Panel1.HelpKeyword=
TApplication..Panel1.Hint=
TApplication..RadioButton1.Caption=
TApplication..RadioButton1.HelpKeyword=
TApplication..RadioButton1.Hint=
TApplication..RadioGroup1.Caption=
TApplication..RadioGroup1.HelpKeyword=
TApplication..RadioGroup1.Hint=
TApplication..RadioGroup1.Items.Text=
TApplication..SpeedButton1.Caption=
TApplication..SpeedButton1.HelpKeyword=
TApplication..SpeedButton1.Hint=
TApplication..StaticText1.Caption=
TApplication..StaticText1.HelpKeyword=
TApplication..StaticText1.Hint=
TApplication..StatusBar1.!Font=
TApplication..StatusBar1.HelpKeyword=
TApplication..StatusBar1.Hint=
TApplication..StatusBar1.Panels.Item0.Text=
TApplication..StatusBar1.Panels.Item1.Text=
TApplication..StatusBar1.Panels.Item2.Text=
TApplication..StatusBar1.SimpleText=
TApplication..TabControl1.HelpKeyword=
TApplication..TabControl1.Hint=
TApplication..TabControl1.Tabs.Text=
TApplication..TabSheet1.Caption=
TApplication..TabSheet1.HelpKeyword=
TApplication..TabSheet1.Hint=
TApplication..TabSheet2.Caption=
TApplication..TabSheet2.HelpKeyword=
TApplication..TabSheet2.Hint=
TApplication..ToolBar1.Caption=
TApplication..ToolBar1.HelpKeyword=
TApplication..ToolBar1.Hint=
TApplication..ToolButton1.Caption=
TApplication..ToolButton1.HelpKeyword=
TApplication..ToolButton1.Hint=
TApplication..ToolButton2.Caption=
TApplication..ToolButton2.HelpKeyword=
TApplication..ToolButton2.Hint=
TApplication..ToolButton3.Caption=
TApplication..ToolButton3.HelpKeyword=
TApplication..ToolButton3.Hint=
TApplication..ToolButton4.HelpKeyword=
TApplication..ToolButton5.HelpKeyword=
TApplication..ToolButton6.Caption=
TApplication..ToolButton6.HelpKeyword=
TApplication..ToolButton6.Hint=
TApplication..TreeView1.HelpKeyword=
TApplication..TreeView1.Hint=
TApplication..TreeView1.TreeNode0.Text=
TApplication..TreeView1.TreeNode1.Text=
TApplication..TreeView1.TreeNode2.Text=
TApplication..TreeView1.TreeNode3.Text=
TApplication..TreeView1.TreeNode4.Text=
TApplication..TreeView1.TreeNode5.Text=
TForm1.Caption=
TForm1.HelpFile=
TForm1.HelpKeyword=
TForm1.Hint=
TForm3.Caption=
TForm3.HelpFile=
TForm3.HelpKeyword=
TForm3.Hint=
Top
redmonkey
新警察
Rank: 1



UID 41337
Digest Posts 0
Credits 8
Posts 3
点点分 8
Reading Access 10
Registered 2008-11-25
Status Offline
Post at 2008-11-25 16:55  Profile | Blog | P.M. 
以上是在运行期生成的翻译文件
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2008-11-26 10:38  Profile | Blog | P.M. 
这个运行期翻译的功能我们是不支持的。
Translator中需要用到IDE提供的ToolsAPI接口来获取设计期的信息,在运行期这些信息可能无法获得或获得不完整,从而导致生成的文件内容错误。
Top
 




All times are GMT++8, the time now is 2024-11-25 14:13

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.006871 second(s), 7 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP