I want to use catopen/catgets for international programming. I understand how to write a message source file, e.g. hello.msg and use 'gencat' to create a catalog file (.cat), and then use it in my C function.
Code:
gencat -o hello.cat hello.msg
In my hello.msg, I have
Code:
$set 100
10 "hello, world"
My question is: whether or not I can use #include "hello.h" in hello.msg file
for example, in hello.h
Code:
#define MSG_HELLO 10
in hello.msg
Code:
#include "hello.h"
$set 100
MSG_HELLO "hello, world"
I have tried, but failed.
Does anyone know any method to extract a symbol from .h file and include it into .msg file?
Thank you.