Solved

Need suggestion for message catalog(I18N) on Windows?

Posted on 2003-11-05
2
194 Views
Last Modified: 2010-04-15
Hello All,
      I am working on a project where I need to port source code from Linux to Windows.The Linux sources uses api's like catopen, catgets for supporting multi-language support with the help of message catalog.
      Could somebody suggest what could be the best ways to port the same on WIndows?Some were saying I
need to create a resource with String Table where I put all the messages.
       Could someone explain me in detail about this?Are there any Windows equivalent APIs available through which I can retrieve those strings inside my program?

         Thanks for your help.
Regards,
Karthik
0
Comment
Question by:karthikd22
2 Comments
 
LVL 45

Expert Comment

by:Kdo
Comment Utility

Many of the linux APIs will have a direct replacement in the Windows world.  (Some won't.)  For those that do, a quick way to incorporate them is to define the API as a macro.

linuxapi (p1, p2, p3);

Windows macro:

#define linuxapi(p1,p2,p3) WindowsApi(p1,p2,p3)

Note that for some of these macros you might have to assume certain parameters, drop some, or change the order.

This should go a long way toward getting your conversion rolling.

Good Luck!
Kent

0
 
LVL 5

Accepted Solution

by:
g0rath earned 250 total points
Comment Utility
Is a throw away port, or will you need to support Linux clients and Windows clients?

If you need to support both, Mozilla uses platform independent string resources. Take a look.

http://www.mozilla.org/docs/refList/i18n/allxpstr-h.html
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now