Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: R-2-12-branch
Fetching contributors…

Cannot retrieve contributors at this time

file 37 lines (33 sloc) 0.883 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
#-*- Makefile -*-

Rsharedir = ../share
Rlocaledir = $(Rsharedir)/locale

RGUI-CATALOGS = $(wildcard RGui-*.gmo)
# no use on Windows en@quot.gmo
CATALOGS = $(filter-out en@quot.gmo $(RGUI-CATALOGS), $(wildcard *.gmo))

all:
@echo
@echo "---------- Installing translations ------------"
@mkdir -p $(Rsharedir)
@catalogs='$(CATALOGS)'; \
echo -n "msgs: "; \
for cat in $$catalogs; do \
lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
echo -n "$$lang "; \
dir=$(Rlocaledir)/$$lang/LC_MESSAGES; \
mkdir -p $$dir; \
cp -p $$cat $$dir/R.mo; \
done
@echo
@catalogs='$(RGUI-CATALOGS)'; \
echo -n "RGui: "; \
for cat in $$catalogs; do \
lang=`echo $$cat | sed -e 's/\.gmo$$//' -e 's/^RGui-//'`; \
echo -n "$$lang "; \
dir=$(Rlocaledir)/$$lang/LC_MESSAGES; \
mkdir -p $$dir; \
cp -p $$cat $$dir/RGui.mo; \
done
@echo
@echo

clean:
rm -rf $(Rlocaledir)
Something went wrong with that request. Please try again.