next up previous contents
Next: About this document ... Up: Configuration Previous: The structure   Contents


Internationnalization

This library needs some text for some informative messages. To be independant of the language, every text have been externalized, and aren't included in the library. So, to use this library, you have to provide the definition of every text. The definition of the texts are defined in the folowing structure:


\begin{lstlisting}
typedef struct {
const unsigned char * link;
const unsigned...
...nsigned char * log;
const char * (log_err[NB_HLOG]);
} h_Lang;
\end{lstlisting}

Some possible translation are provided in the header file !hiblang.h!. For exemple, here is the french version:


\begin{lstlisting}
...

So, to use the HibLib library with the french texts, you will have to fill the !h_config! structure like that:


\begin{lstlisting}
h_Config hcfg = { ...
.lang=HIBLIB_TEXTS_FR,
...
};
\end{lstlisting}



2006-02-19