6

Has anyone got dxgettext running under Windows 10?

I installed dxgettext from the offical homepage under Windows 10, which worked fine.

But whenever I try to run some of the installed tools (e.g. msgfmt.exe), they don't really run, but call themselves again, generating thousands of processes and making the system crawl.

This is what happens:

  • I call msgfmt --help
  • the executable msgfmt hangs, blocking the command window
  • in the TaskManager I see houndreds of msgfmt.exe processes popping up

I think, I have to replace the gettext tools of the dxgettext package with some newer version but before trying to figure it out I first wanted to ask if someone else experienced similar problems and found a working solution.

My questions:

Has anyone got the tools coming with dxgettext running under Windows 10?

What steps have been necessary to get it to run?

9
  • We haven't had any problems using it in Windows 10. Oct 20, 2016 at 20:12
  • Try running them as Administrator, so you can discard permission's problems to your project files. Oct 20, 2016 at 21:33
  • @MarcGuillot Tried running as Admin - same problem. Btw, there are no project files involved. Even msgfmt or msgfmt --help hangs. I found this problem while trying to figure out, why jvcl installation hangs. Oct 20, 2016 at 22:07
  • @JoshKelley OK. Maybe a problem with my machine. But I am not the only one experiencing this problem under Win10. Oct 20, 2016 at 22:17
  • 1
    Why the downvotes? Anything unclear? I'm not a native speaker, so please feel free to correct me... Nov 10, 2016 at 6:38

3 Answers 3

8

I resolved the problem in the following way:

  1. I downloaded https://github.com/mlocati/gettext-iconv-windows/releases/download/v0.19.8.1-v1.14/gettext0.19.8.1-iconv1.14-static-32.zip from https://mlocati.github.io/articles/gettext-iconv-windows.html
  2. I replaced the following files from the installation directory of dxgettext with files from the zip archive:

    msgattrib.exe
    msgcat.exe
    msgcmp.exe
    msgcomm.exe
    msgconv.exe
    msgen.exe
    msgexec.exe
    msgfilter.exe
    msgfmt.exe
    msggrep.exe
    msginit.exe
    msgmerge.exe
    msgunfmt.exe
    msguniq.exe
    xgettext.exe
    

Result:

  • Dxgettext and the tools, I use, seem to work fine. I found no problems with my workflow so far, with one exception:
  • If I use assemble to embed mo-files into an exe compiled with JvGnugettext.pas, I get the following error:

    Pach code “6637DB2E-62E1-4A60-AC19-C23867046A89” was not found in .exe file. Are you sure the .exe file has been compiled with the correct libraries?

    This may not be related to the original problem. However, it is resolved by replacing the original assemble.exe with the version from https://sourceforge.net/p/dzlib/code/HEAD/tree/buildtools/trunk/ (see answer by @dummzeuch).

1
  • It would also be possible to get the sources of dxgettext and compile the assemble.exe yourself.
    – dummzeuch
    Aug 28, 2018 at 11:35
5

The installer on the official home page is pretty old. Last time I looked it contained several outdated dlls and executables from the original gnugettext project that did not work correctly under recent Windows versions. You could take those from my buildtools repository on OSDN. These work for me. No guarantee that they work for you though.

https://osdn.net/projects/dzlib-tools/scm/svn/tree/head/buildtools/trunk/

1
  • I tink to replace the outdated executables is the right answer. I added an own answer to describe the steps I actually did to resolve the problem. Oct 21, 2016 at 16:03
5

I've been having these issues too with dxgettext 1.22, in Windows 10 1607. I changed some DLLs at first but kept having the bash.exe looping and hogging my PC to death.

So what I did was basically install latest Cygwin 32bit and replaced the appropiate DLLs. I kept the ones for gettext. Instructions:

  1. Download and fresh install dxgettext-1.2.2.exe from http://dxgettext.po.dk/download as admin. Restart.

  2. Download Cygwin 32bit from https://cygwin.com/install.html in a different folder from dxgettext (I took the default, c:\cygwin)

  3. Run setup-x86.exe and select "Base" Package (Install). Next, Select Required packages just in case.

  4. Move the following files from dxgettext folder to a backup folder (we'll use some DLL later):

    cyg*.dll 
    bash.exe
    
  5. Copy from c:\cygwin to the dxgettext folder the following files:

    bash.exe  (set to run as admin)
    cygwin1.dll
    cygiconv-2.dll
    cygintl-8.dll
    cygreadline7.dll
    cyggcc_s-1.dll
    cygncursesw-10.dll
    
  6. Recover the file(s) below from the backup folder (See #4) and copy to the dxgettext folder.

    cyggettextsrc-0-14-1.dll
    cyggettextlib-0-14-1.dll
    cygintl-3.dll
    
  7. Running like this, you might get error 740 (requires elevation). So: Set ggmerge.exe,ggfmt.exe to run as admin

** EDIT** Found online this very interesting link, from a programmer who offers a free backup written in Delphi. The good thing is he adapted the dxgettext tools to run in Windows 10. This helped me a lot. http://personal-backup.rathlev-home.de/translate.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.