Added I18N support for Xen-API error codes.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2006-12-23 11:24:10 +00:00
1 parent 055785c1c8
commit 8ecdc794ab
4 files changed
+96 -4

No files matched your search

+12 -2
View File
@@ -7,16 +7,26 @@ all: build
.PHONY: build
build:
CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py build
for file in `cd xen/xm; find messages -name xen-xm.po`; do \
dest=`echo "build/$$file" | \
sed -e 's#xen-xm.po#LC_MESSAGES/xen-xm.mo#'`; \
mkdir -p `dirname "$$dest"`; \
msgfmt -c -o "$$dest" "xen/xm/$$file"; \
done
.PHONY: install
ifndef XEN_PYTHON_NATIVE_INSTALL
install: all
install: install-messages
CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --prefix="" --force
else
install: all
install: install-messages
CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" --force
endif
install-messages: all
mkdir -p "$(DESTDIR)/usr/share/locale"
cp -R build/messages/* "$(DESTDIR)/usr/share/locale/"
.PHONY: test
test:
export LD_LIBRARY_PATH=$$(readlink -f ../libxc):$$(readlink -f ../xenstore); python test.py -b -u
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.