I am using MingW + NetBeans IDE and working on a localized project every thing was fine until i was compiling my program and using dynamic linking. When i switched to static link by "-static" program runs and some part is translated into spanish but some part is not translated. But when i switch back to dynamic linking everything is translated correctly to spanish...

I need to know what the problem is?

i m using normat gettext() function i have created .po file then also have created .mo file and set the environment variable in my code to es_MX. i have no issued when i link as dynamic but when i choose static link option some part of my application is translated and some is not. i m using gtk 2.0 with mingw also...

#include <libintl.h>

string s = "LANG=";
s = s.append("es_MX");
putenv(s.c_str());
setlocale(LC_ALL, "esm");
bindtextdomain(LOCALE_DOMAIN_MAIN, LOCALE_PATH);
textdomain(LOCALE_DOMAIN_MAIN);

samples snapshot for Dynamic Link: http://flic.kr/p/bgtCL6

Static Link: http://flic.kr/p/bgtCRR


--
Waqar Ali Khan