[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Need suggestion for message catalog(I18N) on Windows?

Posted on 2003-11-05
2
Medium Priority
?
206 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 46

Expert Comment

by:Kent Olsen
ID: 9689138

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 500 total points
ID: 9689443
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
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.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
Suggested Courses

834 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