Solved

Need suggestion for message catalog(I18N) on Windows?

Posted on 2003-11-05
2
195 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
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 250 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

New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

Question has a verified solution.

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

Suggested Solutions

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…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

929 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

11 Experts available now in Live!

Get 1:1 Help Now