/[winpt]/trunk/Src/wptRegistry.cpp
ViewVC logotype

Diff of /trunk/Src/wptRegistry.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 73 by twoaday, Tue Nov 8 07:15:13 2005 UTC revision 76 by twoaday, Thu Nov 10 14:07:06 2005 UTC
# Line 404  get_reg_entry_gpg4win (const char *path) Line 404  get_reg_entry_gpg4win (const char *path)
404  char*  char*
405  get_reg_entry_mo (void)  get_reg_entry_mo (void)
406  {        {      
407      char *p;      char *p, *pp;
408        const char *lang;
409        
410      p = get_reg_entry (HKEY_CURRENT_USER,      p = get_reg_entry (HKEY_CURRENT_USER,
411                         "Control Panel\\Mingw32\\NLS", "MODir");                         "Control Panel\\Mingw32\\NLS", "MODir");
412      if (!p)      if (p)
413          p = get_reg_entry_gpg4win ("share\\locale");          return p;
414        
415        lang = get_gettext_langid ();
416        if (!lang)
417            return NULL;
418        pp = new char[strlen ("share\\xxxxx\\locale\\LC_MESSAGES")+8];
419        if (!pp)
420            BUG (NULL);
421        sprintf (pp, "share\\locale\\%s\\LC_MESSAGES", lang);
422        p = get_reg_entry_gpg4win (pp);
423        free_if_alloc (pp);
424      return p;      return p;
425  }  }
426    

Legend:
Removed from v.73  
changed lines
  Added in v.76

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26