#227 Target information changed into English from other language

v1.6
closed-fixed
vincent
5
2009-07-17
2009-04-11
Seung-Bum Lee
No

Platform : Windows XP
Version : SVN 1.6.0 version whichi is built. Same symptom with 1.5.1
Hardware : ATI Radeon X1300PRO + Intel Core 2

Korean language is shown properly before initiating image capture using File-> Image capture.

When "Save as" dialog is activated and moved, target information displayed left top of windows is changed into English. Saved image also contains English version target information.

After saving, the information is returned to Korean.

Attached, image for before starting image capture and during image capture.

Discussion

  • Seung-Bum Lee
    Seung-Bum Lee
    2009-04-11

    Top: Normal, Bottom: Language change during saving image

     
    Attachments
  • vincent
    vincent
    2009-07-17

    The problem comes from the bindtextdomain call in the gettext integration code. The "locale" directory, where all the translation files are located, is defined using a relative path to the directory of the current process. When calling OPENFILENAME, the current directory changes to the root of the user’s profile (%userprofile%). That's why gettext can't find the "locale" dir anymore. So the fix simply consists in storing the celestia application path, and then using it as an absolute path in the bindextdomain call. That's what the attached
    patch does.

    The bug seems to be fixed with this patch:
    http://www.shatters.net/forum/viewtopic.php?f=3&t=13735

     
  • vincent
    vincent
    2009-07-17

     
    Attachments
  • vincent
    vincent
    2009-07-17

    • assigned_to: nobody --> vincent_gian
     
  • vincent
    vincent
    2009-07-17

    • status: open --> open-fixed
     
  • Seung-Bum Lee
    Seung-Bum Lee
    2009-07-17

    • status: open-fixed --> open-accepted
     
  • Seung-Bum Lee
    Seung-Bum Lee
    2009-07-17

    • status: open-accepted --> open-fixed
     
  • Seung-Bum Lee
    Seung-Bum Lee
    2009-07-17

    This is checked with patch.

     
  • Seung-Bum Lee
    Seung-Bum Lee
    2009-07-17

    • status: open-fixed --> closed-fixed