[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: [TSVN] Off topic question about ResText - Additional infomation

From: tdkim <tdkim_at_unimo.co.kr>
Date: 2005-11-02 11:32:07 CET

I make a dll and translate it using the follow procedure.

1. Executing VC.

2. Make new project for test APP(MyApp).
 - MFC AppWizard(exe)
 - Dialog based
 - Set a resource language to english(US) APPWZENU.DLL.

3. Make new project for a resource(MyRes).
 - Win32 Dynamic-Link Library
 - An empty DLL project.

4. Add resource files of MyApp to Resource Project(MyRes).
 - Project/Add to project/Files...
   Resource.h, MyRes.rc, res/MyRes.rc2

5. Add the /NOENTRY option to MyRes project as Link option.

6. Build MyApp and MyRes project.

7. restext extract MyRes.dll template.pot

8. copy template.pot MyTrans.po

9. Translate MyTrasn.po

10. restext apply MyRes.dll MyTrans.dll MyTrans.po

11. Add the code to MyApp
CMyApp::InitInstance()
{
  m_hRes = LoadLibrary( "KorRes.dll");
  if( m_hRes != NULL)
  {
   AfxSetResourceHandle( m_hRes);
  }
  ...
}

12. Test...
Received on Wed Nov 2 11:32:44 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.