[vlc-devel] commit: Run xgettext on the .h and not the .ui (Christophe Mutricy )

git version control git at videolan.org
Mon Apr 6 01:15:28 CEST 2009


vlc | branch: master | Christophe Mutricy <xtophe at videolan.org> | Mon Apr  6 01:02:45 2009 +0200| [04d23bd352ceb5c218da7e99591d3b6ee40060f4] | committer: Christophe Mutricy 

Run xgettext on the .h and not the .ui

Tweack the rules in po/. Not perfect you can't run make update-po (and
so make dist) if your builddir isn't a subdir of srcdir. And of course
it still putting te .gmo in srcdir

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=04d23bd352ceb5c218da7e99591d3b6ee40060f4
---

 po/Makevars    |    4 +++-
 po/POTFILES.in |   36 +++++++++++++++++-------------------
 2 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/po/Makevars b/po/Makevars
index 4781477..1dbb57e 100644
--- a/po/Makevars
+++ b/po/Makevars
@@ -1,5 +1,7 @@
 # Makefile variables for PO directory in any package using GNU gettext.
 
+VPATH += ../modules/gui ../modules/gui/qt4 ../modules/gui/qt4/ui
+
 # Usually the message domain is the same as the package name.
 DOMAIN = $(PACKAGE)
 
@@ -8,7 +10,7 @@ subdir = po
 top_builddir = ..
 
 # These options get passed to xgettext.
-XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --keyword=_NS --keyword=_ANS --keyword=qtr --language=C++
+XGETTEXT_OPTIONS = --directory=.. --keyword=_ --keyword=N_ --keyword=_NS --keyword=_ANS --keyword=qtr --keyword=Q_ --language=C++
 
 # This is the copyright holder that gets inserted into the header of the
 # $(DOMAIN).pot file.  Set this to the copyright holder of the surrounding
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 740c28b..9509a26 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,5 +1,3 @@
-# automatically created by make update-po
-
 # main sources
 include/mmx.h
 include/vlc_access.h
@@ -737,23 +735,23 @@ modules/gui/qt4/qt4.cpp
 modules/gui/qt4/qt4.hpp
 modules/gui/qt4/recents.cpp
 modules/gui/qt4/recents.hpp
-modules/gui/qt4/ui/equalizer.ui
-modules/gui/qt4/ui/open.ui
-modules/gui/qt4/ui/open_capture.ui
-modules/gui/qt4/ui/open_disk.ui
-modules/gui/qt4/ui/open_file.ui
-modules/gui/qt4/ui/open_net.ui
-modules/gui/qt4/ui/podcast_configuration.ui
-modules/gui/qt4/ui/sout.ui
-modules/gui/qt4/ui/sprefs_audio.ui
-modules/gui/qt4/ui/sprefs_input.ui
-modules/gui/qt4/ui/sprefs_interface.ui
-modules/gui/qt4/ui/sprefs_subtitles.ui
-modules/gui/qt4/ui/sprefs_video.ui
-modules/gui/qt4/ui/streampanel.ui
-modules/gui/qt4/ui/v4l2.ui
-modules/gui/qt4/ui/video_effects.ui
-modules/gui/qt4/ui/vlm.ui
+modules/gui/qt4/ui/equalizer.h
+modules/gui/qt4/ui/open.h
+modules/gui/qt4/ui/open_capture.h
+modules/gui/qt4/ui/open_disk.h
+modules/gui/qt4/ui/open_file.h
+modules/gui/qt4/ui/open_net.h
+modules/gui/qt4/ui/podcast_configuration.h
+modules/gui/qt4/ui/sout.h
+modules/gui/qt4/ui/sprefs_audio.h
+modules/gui/qt4/ui/sprefs_input.h
+modules/gui/qt4/ui/sprefs_interface.h
+modules/gui/qt4/ui/sprefs_subtitles.h
+modules/gui/qt4/ui/sprefs_video.h
+modules/gui/qt4/ui/streampanel.h
+modules/gui/qt4/ui/v4l2.h
+modules/gui/qt4/ui/video_effects.h
+modules/gui/qt4/ui/vlm.h
 modules/gui/qt4/util/customwidgets.cpp
 modules/gui/qt4/util/customwidgets.hpp
 modules/gui/qt4/util/input_slider.cpp




More information about the vlc-devel mailing list