1

In command prompt I wrote:

C:\Users\Waqar Ali Khan\Documents\NetBeansProjects\MedicalEmergency>xgettext -d
MedicalEmergency -o LocaleStrings.pot main.cpp MedicalEmergency.glade
xgettext: Language "glade" is not supported. xgettext relies on expat.

This version was built without expat.

I tried to locate the libexpat and it was there with the xgettext.exe but still I'm getting this error, can any one guide me how do I extract translatable strings from a glade file?

I know i m doing right but this error is weird no where mentioned in any tutorial :(

I'm on Windows using Netbeans IDE with GTK+ - 2.0 and MinGW with MSYS.

Sam
  • 1,509
  • 3
  • 19
  • 28

1 Answers1

0

It's best to use Intltool for extracting strings from Glade files. By coincidence, I am currently writing a tutorial on that. Look in the "Setting up Gettext" section.

Note that to use Intltool, you will have to download and build that somehow. I really hope it works on Windows, but I honestly have no idea.

kennytm
  • 510,854
  • 105
  • 1,084
  • 1,005
ptomato
  • 56,175
  • 13
  • 112
  • 165
  • Sir i m very beginner and i saw ur link but i did not understand how to build it :( – Waqar Ali Khan Nov 23 '11 at 16:35
  • @Waqar Ali Khan, What specific problems are you running into after you read his link? Is it still the same as in the original post? – josephthomas Jan 21 '12 at 01:14
  • The tutorial is now online, as a work-in-progress. (Hosted on the excellent Github Pages, a feature I only discovered the other day!) I've updated the link in my answer. – ptomato Feb 14 '12 at 22:31