Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to extract the strings from this file:

Which is the command for it?

This not works:

user@desktop:~/Desktop$ xgettext -k_ -kN_ -o messages.pot *.ui
xgettext: warning: file `add.ui' extension `ui' is unknown; will try C
add.ui:192: warning: unterminated character constant
add.ui:483: warning: unterminated character constant
add.ui:750: warning: unterminated character constant

Thanks in advance! :)

share|improve this question
up vote 3 down vote accepted

You need to tell xgettext that your file is a Glade file:

 xgettext -k_ -kN_ -L Glade -o messages.pot *.ui
share|improve this answer
Thanks Florian :) But that command isn't get all strings, all drop items are missing. As example: Allow|Deny|Reject|Limit drop. – costales Nov 17 '12 at 12:03
Seems xgettext doesn't support Glade3 files yet. Change into the po/ folder and run intltool-update -p -g messages.pot. Note that the project uses gui-ufw.pot instead of messages.pot so you may want to use that file, too. – Florian Diesch Nov 17 '12 at 14:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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