Problems with gettext()

mailneeraj_at_gmail.com
Date: 04/26/05

  • Next message: William Ahern: "Re: about select ( synchronous I/O multiplexing)"
    Date: 26 Apr 2005 07:55:17 -0700
    
    

    Here's what I've been trying:

    ...
    printf("bindtextdomain(): %s \n", bindtextdomain("myDomain",
    "/root/progs/MessageCatalogs"));
    printf("textdomain(): %s \n", textdomain("myDomain"));
    printf("gettext(): %s \n", gettext("Long"));
    ...

    I've got a valid .mo file in the directory
    "/root/progs/MessageCatalogs". besides, I've also set the environment
    varialble LC_MESSAGES to "myDomain".

    The entry in the corresponding .po file is as follows:
    (The .po file is generated after compiling the .mo file using msgfmt)
    msgid "Long"
    msgstr "LONG"

    The output is as follows:
    bindtextdomain(): /root/progs/MessageCatalogs
    textdomain(): myDomain
    gettext(): Long

    I was expecting a "LONG" instead of "Long".

    Thanks in advance,
    Neeraj


  • Next message: William Ahern: "Re: about select ( synchronous I/O multiplexing)"

    Relevant Pages

    • Re: DNS without suffix
      ... > I am trying to re-create the environment of one of our customer (it ... > There is only one domain call mydomain, ... Single-Label DNS Names ...
      (microsoft.public.win2000.dns)
    • DNS without suffix
      ... I am trying to re-create the environment of one of our customer (it wasn´t setup by us and we have to live with it) ... They created a domain mydomain without any suffix and an AD intregrated zone call mydomain. ...
      (microsoft.public.win2000.dns)