Re: Cross compiling .mo files for another platform ?

On Mon, 2007-04-16 at 18:45 +0530, rush ta wrote:
> hello....
> Ok i got the application compiled for ARM architecture !!
> I copied the file
> to /usr/local/share/locale/hi_IN/LC_MESSAGES/
> when i run the application i get following error.
> Gdk-WARNING **: locale not supported by C library
> Gtk-WARNING **: locale not supported by C library
> Using the fallback 'C' locale....
> Clearly it is not find the language installed ...
> How do i resolve the issue ??
> I do have gettext binary in /usr/bin but none of the other
> gettext-tools ....
> Do i need any other files ?

The message "locale not supported by C library" refers to the "locale"
mechanism, and not gettext. You need to fix something else here.

Run the command "locale -a". This will show you the available "locales"
that have been configured on your ARM system.
I believe you do not have "hi_IN" in this list, hence the error message.

Generating a locale is quite easy. If you have Ubuntu on your desktop,
have a look at the script /usr/sbin/locale-gen. This script
automatically creates the necessary locales for your system depending on
which languages you added support through the graphical interface. If
you read the script, you can find the exact commands.
For reference, the source of the Hindi locale is at 

For something more digestable, see section 3.5 at

Hope it helps,
Simos Xenitellis

> Regards
> Rush
> On 4/12/07, Simos Xenitellis <simos lists googlemail com> wrote:
>         On Thu, 2007-04-12 at 08:11 +0530, rush ta wrote:
>         > hi...
>         > I have an app running with Hindi Locale using GTK-i18n ...
>         > Now i am cross compiling the application for another
>         platform (ARM
>         > architecture).. 
>         >
>         > My assumption is that the .mo file will need to be cross
>         compiled for
>         > that platform too... CAN U CONFIRM ?
>         > Also how do i cross compile it ?
>         > When i cross my Glade application.. Its as easy as changing
>         CC, GCC 
>         > variable etc in the makefile .....
>         msgfmt is what compiles the .po into .mo files.
>         Unless there is an issue of byte order, I do not think you
>         would need to
>         recompile the .mo files.
>         To test, get hold of "msgfmt" (package: gettext-tools) on ARM
>         and 
>         compile a sample .po file. Do the same on your desktop and
>         compare the
>         two files.
>         Simos

Attachment: signature.asc
Description: This is a digitally signed message part

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]