/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
#include <libintl.h>

char *dgettext(const char *domainname, const char *msgid) {
    void *fptr;
    char * retval;

    fptr = dlsym(_ChLibintl_handle, "dgettext_chdl");
    if(fptr == NULL)  {
       printf("Error: %s(): dlsym(): %s\n", __func__, dlerror());
       return NULL;
    }
    dlrunfun(fptr, &retval, dgettext, domainname, msgid);
    return retval;
}
