1
#------------------------------------------------------
2
# Set this variable in according with your language
4
# Used for folder name and source .po file name.
6
# Used for to change the current Language in the target handbook.
9
#------------------------------------------------------
12
DOCDIR = $(DESTDIR)${kde_htmldir}
13
EXTRA_DIST = index.docbook addcamera.png cameraclient.png imageviewer.png mainwindow.png setupalbum.png
15
docbook_DATA = index.docbook
16
docbookdir = $(kde_htmldir)/$(KDE_LANG)/digikam
17
noinst_HEADERS = index_$(KDE_LANG).po
20
index_$(KDE_LANG).po: ../en/index_en.pot
21
msgmerge -o index_$(KDE_LANG).po $(srcdir)/index_$(KDE_LANG).po ../en/index_en.pot
23
index.docbook: ../en/index.docbook ../en/index_en.pot index_$(KDE_LANG).po
24
${MAKE} index_$(KDE_LANG).po ../en/index-shifted.docbook
25
@echo "converting $(LANGUAGE_NAME) help"
26
@echo "(this takes very very long, please be patient...)"
27
po2xml ../en/index-shifted.docbook index_$(KDE_LANG).po | \
28
sed s/^\<\!ENTITY\ %\ English\ /\<\!ENTITY\ %\ $(LANGUAGE_NAME)\ /g > $@
30
# --- Translated html help, not needed in distribution. Just for the Web site ---
32
index.html: index.docbook
33
cd ../en;${MAKE} index.html;cd ../$(KDE_LANG)
34
@MEINPROC@ --check index.docbook
36
mkdir -p ../html/$(KDE_LANG)
37
mv *.html ../html/$(KDE_LANG)/
38
cp -R *.png ../html/$(KDE_LANG)/
40
mkdir -p ../html/$(KDE_LANG)/common
41
cp -R ${DOCDIR}/$(KDE_LANG)/common/* ../html/$(KDE_LANG)/common
42
for file in ../html/$(KDE_LANG)/*.html; do { \
44
cat $$file | sed s+help:/common+./common+g > $$file.new; \
45
mv $$file.new $$file; \