Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

http://bazaar.launchpad.net/~gufw-developers/gui-ufw/gufw-13.04/view/head:/data/ui/add.ui

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
user@desktop:~/Desktop$ 

Thanks in advance! :)

share|improve this question
add comment

1 Answer 1

up vote 2 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
1  
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
add comment

Your Answer

 
discard

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.