[vlc-devel] commit: Install the translations in share on win32 and MacOSX ( 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 21:22:00 2008 +0100| [d8421cc77d6ec9a4899a2549ffe9e0a41fbdbb03]
Install the translations in share on win32 and MacOSX
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d8421cc77d6ec9a4899a2549ffe9e0a41fbdbb03
---
Makefile.am | 20 ++++++++++----------
src/libvlc.c | 4 ++--
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index a351c84..e2e820d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -337,9 +337,9 @@ vlc-bundle: vlc
done ; \
fi
cat $(top_srcdir)/po/LINGUAS | while read i; do \
- mkdir -p "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES" ; \
+ mkdir -p "$(top_builddir)/vlc-bundle/share/locale/$$i/LC_MESSAGES" ; \
cp "$(top_builddir)/po/$$i.gmo" \
- "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
+ "$(top_builddir)/vlc-bundle/share/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
done
find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
endif
@@ -540,9 +540,9 @@ VLC-release.app: vlc
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/requests/`basename $${i}` ; \
done
$(INSTALL) -m 644 $(srcdir)/share/http/requests/readme $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/requests/readme.txt
- $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/locale
+ $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/locale
cat $(top_srcdir)/po/LINGUAS | while read i; do \
- mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
+ mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/share/locale/$${i}/LC_MESSAGES ; \
cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
mkdir -p $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
ln -sf ../English.lproj/InfoPlist.strings \
@@ -639,10 +639,10 @@ VLC.app: vlc
"$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
fi ; done && \
ln -sfn `pwd`/$(srcdir)/share $(top_builddir)/VLC.app/Contents/MacOS/
- $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
+ $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/locale
cat $(top_srcdir)/po/LINGUAS | while read i; do \
- mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
- ln -sfn `pwd`/$(srcdir)/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
+ mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/share/locale/$${i}/LC_MESSAGES ; \
+ ln -sfn `pwd`/$(srcdir)/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/share/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
ln -sf ../English.lproj/InfoPlist.strings \
$(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
@@ -687,11 +687,11 @@ package-win-common:
cp $(srcdir)/share/vlc48x48.ico $(top_builddir)/vlc-$(VERSION)/
# Copy the locales
- mkdir -p $(top_builddir)/vlc-$(VERSION)/locale
+ mkdir -p $(top_builddir)/vlc-$(VERSION)/share/locale
cat $(top_srcdir)/po/LINGUAS | while read i; do \
- mkdir -p "$(top_builddir)/vlc-$(VERSION)/locale/$${i}/LC_MESSAGES" ; \
+ mkdir -p "$(top_builddir)/vlc-$(VERSION)/share/locale/$${i}/LC_MESSAGES" ; \
cp "$(srcdir)/po/$${i}.gmo" \
- "$(top_builddir)/vlc-$(VERSION)/locale/$${i}/LC_MESSAGES/vlc.mo" \
+ "$(top_builddir)/vlc-$(VERSION)/share/locale/$${i}/LC_MESSAGES/vlc.mo" \
|| true ; \
done
diff --git a/src/libvlc.c b/src/libvlc.c
index 22d1183..17482f6 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -1232,8 +1232,8 @@ static inline int LoadMessages (void)
static const char psz_path[] = LOCALEDIR;
#else
char psz_path[1024];
- if (snprintf (psz_path, sizeof (psz_path), "%s/%s",
- vlc_global()->psz_vlcpath, "locale")
+ if (snprintf (psz_path, sizeof (psz_path), "%s" DIR_SEP "%s",
+ config_GetDataDir(), "locale")
>= (int)sizeof (psz_path))
return -1;
More information about the vlc-devel
mailing list