[vlc-devel] commit: Install the qt4 translations (Christophe Mutricy )

git version control git at videolan.org
Tue Jul 29 01:08:40 CEST 2008


vlc | branch: master | Christophe Mutricy <xtophe at videolan.org> | Mon Jul 28 23:26:42 2008 +0100| [f55d9a54acb69231abf6f07eeef83e3da49a731c]

Install the qt4 translations

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

 Makefile.am  |    2 ++
 configure.ac |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index e2e820d..fe7102e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -694,6 +694,8 @@ package-win-common:
 	    "$(top_builddir)/vlc-$(VERSION)/share/locale/$${i}/LC_MESSAGES/vlc.mo" \
             || true ; \
 	done
+	mkdir -p $(top_builddir)/vlc-$(VERSION)/share/locale/qt4/
+	cp $(QT4LOCALEDIR)/*.qm $(top_builddir)/vlc-$(VERSION)/share/locale/qt4/ || true
 
 #  Mozilla plugin
 if BUILD_MOZILLA
diff --git a/configure.ac b/configure.ac
index 78d05ba..ca28e24 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4888,6 +4888,8 @@ AS_IF([test "${enable_qt4}" != "no"], [
     ], [
         VLC_ADD_LIBS([qt4],[$QT4_LIBS])
     ])
+    QT4LOCALEDIR="$($PKG_CONFIG --variable=prefix QtCore)/share/qt4/translations/"
+    AC_SUBST(QT4LOCALEDIR)
     VLC_ADD_CXXFLAGS([qt4],[$QT4_CFLAGS -DQT4LOCALEDIR=\\\\\\\"$($PKG_CONFIG --variable=prefix QtCore)/share/qt4/translations/\\\\\\\"])
     AC_PATH_PROGS(MOC, [moc-qt4 moc], moc,`$PKG_CONFIG --variable=exec_prefix QtCore`/bin)
     AC_PATH_PROG(RCC, rcc, rcc,`$PKG_CONFIG --variable=exec_prefix QtCore`/bin)




More information about the vlc-devel mailing list