~ubuntu-branches/ubuntu/quantal/sgt-puzzles/quantal

« back to all changes in this revision

Viewing changes to debian/patches/206_translate-docs.diff

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2009-05-23 09:16:36 UTC
  • mfrom: (1.1.8 upstream) (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090523091636-cm9mpab92md698wk
Tags: 8541-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Add xpm icons files for the menus
  - debian/rules adapted to install desktop and icons files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Support translated docs using po4a as requested in #483665.
 
2
 
1
3
--- sgt-puzzles.orig/Makefile.doc
2
4
+++ sgt-puzzles/Makefile.doc
3
5
@@ -29,6 +29,34 @@
9
11
+po/puzzles-doc.pot: puzzles.but
10
12
+       po4a-gettextize -f halibut -m $< -p $@
11
13
+po/%.po: po/puzzles-doc.pot
12
 
+       msgmerge -o po/$*.new.po $< po/$*.po
 
14
+       msgmerge -o po/$*.new.po po/$*.po $<
13
15
+       mv po/$*.new.po po/$*.po
14
16
+update-po: po/puzzles-doc.pot $(wildcard po/*.po)
15
17
+
18
20
+       po4a-translate -k 0 -f halibut -m puzzles.but -p po/$*.po -l $@
19
21
+
20
22
+doc/puzzles.txt.%: doc/puzzles.but.%
21
 
+       halibut --text=$@ $<
 
23
+       halibut --text=$@ --input-charset=UTF-8 $<
22
24
+
23
25
+doc/html-%-stamp: doc/puzzles.but.%
24
26
+       mkdir -p doc
25
27
+       rm -rf doc/html-$*
26
28
+       mkdir doc/html-$*
27
 
+       cd doc/html-$* && halibut --html ../puzzles.but.$*
 
29
+       cd doc/html-$* && halibut --html --input-charset=UTF-8 ../puzzles.but.$*
28
30
+       touch $@
29
31
+
30
32
+.PHONY: update-po html-%